Search is not available for this dataset
project
stringlengths
1
235
source
stringclasses
16 values
language
stringclasses
48 values
content
stringlengths
909
64.8M
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory
go
Go
README [¶](#section-readme) --- ### Azure Data Factory Module for Go [![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory) The `armdatafactory` module provides operations for working with Azure Data Factory. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/datafactory/armdatafactory) ### Getting started #### Prerequisites * an [Azure subscription](https://azure.microsoft.com/free/) * Go 1.18 or above #### Install the package This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management. Install the Azure Data Factory module: ``` go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory ``` #### Authorization When creating a client, you will need to provide a credential for authenticating with Azure Data Factory. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ``` cred, err := azidentity.NewDefaultAzureCredential(nil) ``` For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity). #### Clients Azure Data Factory modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ``` client, err := armdatafactory.NewTriggersClient(<subscription ID>, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ``` options := arm.ClientOptions { ClientOptions: azcore.ClientOptions { Cloud: cloud.AzureChina, }, } client, err := armdatafactory.NewTriggersClient(<subscription ID>, cred, &options) ``` #### Provide Feedback If you encounter bugs or have suggestions, please [open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `Data Factory` label. ### Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.microsoft.com>. When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [<EMAIL>](mailto:<EMAIL>) with any additional questions or comments. Documentation [¶](#section-documentation) --- ### Index [¶](#pkg-index) * [type AccessPolicyResponse](#AccessPolicyResponse) * + [func (a AccessPolicyResponse) MarshalJSON() ([]byte, error)](#AccessPolicyResponse.MarshalJSON) + [func (a *AccessPolicyResponse) UnmarshalJSON(data []byte) error](#AccessPolicyResponse.UnmarshalJSON) * [type Activity](#Activity) * + [func (a *Activity) GetActivity() *Activity](#Activity.GetActivity) + [func (a Activity) MarshalJSON() ([]byte, error)](#Activity.MarshalJSON) + [func (a *Activity) UnmarshalJSON(data []byte) error](#Activity.UnmarshalJSON) * [type ActivityClassification](#ActivityClassification) * [type ActivityDependency](#ActivityDependency) * + [func (a ActivityDependency) MarshalJSON() ([]byte, error)](#ActivityDependency.MarshalJSON) + [func (a *ActivityDependency) UnmarshalJSON(data []byte) error](#ActivityDependency.UnmarshalJSON) * [type ActivityPolicy](#ActivityPolicy) * + [func (a ActivityPolicy) MarshalJSON() ([]byte, error)](#ActivityPolicy.MarshalJSON) + [func (a *ActivityPolicy) UnmarshalJSON(data []byte) error](#ActivityPolicy.UnmarshalJSON) * [type ActivityRun](#ActivityRun) * + [func (a ActivityRun) MarshalJSON() ([]byte, error)](#ActivityRun.MarshalJSON) + [func (a *ActivityRun) UnmarshalJSON(data []byte) error](#ActivityRun.UnmarshalJSON) * [type ActivityRunsClient](#ActivityRunsClient) * + [func NewActivityRunsClient(subscriptionID string, credential azcore.TokenCredential, ...) (*ActivityRunsClient, error)](#NewActivityRunsClient) * + [func (client *ActivityRunsClient) QueryByPipelineRun(ctx context.Context, resourceGroupName string, factoryName string, ...) (ActivityRunsClientQueryByPipelineRunResponse, error)](#ActivityRunsClient.QueryByPipelineRun) * [type ActivityRunsClientQueryByPipelineRunOptions](#ActivityRunsClientQueryByPipelineRunOptions) * [type ActivityRunsClientQueryByPipelineRunResponse](#ActivityRunsClientQueryByPipelineRunResponse) * [type ActivityRunsQueryResponse](#ActivityRunsQueryResponse) * + [func (a ActivityRunsQueryResponse) MarshalJSON() ([]byte, error)](#ActivityRunsQueryResponse.MarshalJSON) + [func (a *ActivityRunsQueryResponse) UnmarshalJSON(data []byte) error](#ActivityRunsQueryResponse.UnmarshalJSON) * [type AddDataFlowToDebugSessionResponse](#AddDataFlowToDebugSessionResponse) * + [func (a AddDataFlowToDebugSessionResponse) MarshalJSON() ([]byte, error)](#AddDataFlowToDebugSessionResponse.MarshalJSON) + [func (a *AddDataFlowToDebugSessionResponse) UnmarshalJSON(data []byte) error](#AddDataFlowToDebugSessionResponse.UnmarshalJSON) * [type AdditionalColumns](#AdditionalColumns) * + [func (a AdditionalColumns) MarshalJSON() ([]byte, error)](#AdditionalColumns.MarshalJSON) + [func (a *AdditionalColumns) UnmarshalJSON(data []byte) error](#AdditionalColumns.UnmarshalJSON) * [type AmazonMWSLinkedService](#AmazonMWSLinkedService) * + [func (a *AmazonMWSLinkedService) GetLinkedService() *LinkedService](#AmazonMWSLinkedService.GetLinkedService) + [func (a AmazonMWSLinkedService) MarshalJSON() ([]byte, error)](#AmazonMWSLinkedService.MarshalJSON) + [func (a *AmazonMWSLinkedService) UnmarshalJSON(data []byte) error](#AmazonMWSLinkedService.UnmarshalJSON) * [type AmazonMWSLinkedServiceTypeProperties](#AmazonMWSLinkedServiceTypeProperties) * + [func (a AmazonMWSLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AmazonMWSLinkedServiceTypeProperties.MarshalJSON) + [func (a *AmazonMWSLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AmazonMWSLinkedServiceTypeProperties.UnmarshalJSON) * [type AmazonMWSObjectDataset](#AmazonMWSObjectDataset) * + [func (a *AmazonMWSObjectDataset) GetDataset() *Dataset](#AmazonMWSObjectDataset.GetDataset) + [func (a AmazonMWSObjectDataset) MarshalJSON() ([]byte, error)](#AmazonMWSObjectDataset.MarshalJSON) + [func (a *AmazonMWSObjectDataset) UnmarshalJSON(data []byte) error](#AmazonMWSObjectDataset.UnmarshalJSON) * [type AmazonMWSSource](#AmazonMWSSource) * + [func (a *AmazonMWSSource) GetCopySource() *CopySource](#AmazonMWSSource.GetCopySource) + [func (a *AmazonMWSSource) GetTabularSource() *TabularSource](#AmazonMWSSource.GetTabularSource) + [func (a AmazonMWSSource) MarshalJSON() ([]byte, error)](#AmazonMWSSource.MarshalJSON) + [func (a *AmazonMWSSource) UnmarshalJSON(data []byte) error](#AmazonMWSSource.UnmarshalJSON) * [type AmazonRdsForLinkedServiceTypeProperties](#AmazonRdsForLinkedServiceTypeProperties) * + [func (a AmazonRdsForLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AmazonRdsForLinkedServiceTypeProperties.MarshalJSON) + [func (a *AmazonRdsForLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AmazonRdsForLinkedServiceTypeProperties.UnmarshalJSON) * [type AmazonRdsForOracleLinkedService](#AmazonRdsForOracleLinkedService) * + [func (a *AmazonRdsForOracleLinkedService) GetLinkedService() *LinkedService](#AmazonRdsForOracleLinkedService.GetLinkedService) + [func (a AmazonRdsForOracleLinkedService) MarshalJSON() ([]byte, error)](#AmazonRdsForOracleLinkedService.MarshalJSON) + [func (a *AmazonRdsForOracleLinkedService) UnmarshalJSON(data []byte) error](#AmazonRdsForOracleLinkedService.UnmarshalJSON) * [type AmazonRdsForOraclePartitionOption](#AmazonRdsForOraclePartitionOption) * + [func PossibleAmazonRdsForOraclePartitionOptionValues() []AmazonRdsForOraclePartitionOption](#PossibleAmazonRdsForOraclePartitionOptionValues) * [type AmazonRdsForOraclePartitionSettings](#AmazonRdsForOraclePartitionSettings) * + [func (a AmazonRdsForOraclePartitionSettings) MarshalJSON() ([]byte, error)](#AmazonRdsForOraclePartitionSettings.MarshalJSON) + [func (a *AmazonRdsForOraclePartitionSettings) UnmarshalJSON(data []byte) error](#AmazonRdsForOraclePartitionSettings.UnmarshalJSON) * [type AmazonRdsForOracleSource](#AmazonRdsForOracleSource) * + [func (a *AmazonRdsForOracleSource) GetCopySource() *CopySource](#AmazonRdsForOracleSource.GetCopySource) + [func (a AmazonRdsForOracleSource) MarshalJSON() ([]byte, error)](#AmazonRdsForOracleSource.MarshalJSON) + [func (a *AmazonRdsForOracleSource) UnmarshalJSON(data []byte) error](#AmazonRdsForOracleSource.UnmarshalJSON) * [type AmazonRdsForOracleTableDataset](#AmazonRdsForOracleTableDataset) * + [func (a *AmazonRdsForOracleTableDataset) GetDataset() *Dataset](#AmazonRdsForOracleTableDataset.GetDataset) + [func (a AmazonRdsForOracleTableDataset) MarshalJSON() ([]byte, error)](#AmazonRdsForOracleTableDataset.MarshalJSON) + [func (a *AmazonRdsForOracleTableDataset) UnmarshalJSON(data []byte) error](#AmazonRdsForOracleTableDataset.UnmarshalJSON) * [type AmazonRdsForOracleTableDatasetTypeProperties](#AmazonRdsForOracleTableDatasetTypeProperties) * + [func (a AmazonRdsForOracleTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AmazonRdsForOracleTableDatasetTypeProperties.MarshalJSON) + [func (a *AmazonRdsForOracleTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AmazonRdsForOracleTableDatasetTypeProperties.UnmarshalJSON) * [type AmazonRdsForSQLServerLinkedService](#AmazonRdsForSQLServerLinkedService) * + [func (a *AmazonRdsForSQLServerLinkedService) GetLinkedService() *LinkedService](#AmazonRdsForSQLServerLinkedService.GetLinkedService) + [func (a AmazonRdsForSQLServerLinkedService) MarshalJSON() ([]byte, error)](#AmazonRdsForSQLServerLinkedService.MarshalJSON) + [func (a *AmazonRdsForSQLServerLinkedService) UnmarshalJSON(data []byte) error](#AmazonRdsForSQLServerLinkedService.UnmarshalJSON) * [type AmazonRdsForSQLServerLinkedServiceTypeProperties](#AmazonRdsForSQLServerLinkedServiceTypeProperties) * + [func (a AmazonRdsForSQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AmazonRdsForSQLServerLinkedServiceTypeProperties.MarshalJSON) + [func (a *AmazonRdsForSQLServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AmazonRdsForSQLServerLinkedServiceTypeProperties.UnmarshalJSON) * [type AmazonRdsForSQLServerSource](#AmazonRdsForSQLServerSource) * + [func (a *AmazonRdsForSQLServerSource) GetCopySource() *CopySource](#AmazonRdsForSQLServerSource.GetCopySource) + [func (a *AmazonRdsForSQLServerSource) GetTabularSource() *TabularSource](#AmazonRdsForSQLServerSource.GetTabularSource) + [func (a AmazonRdsForSQLServerSource) MarshalJSON() ([]byte, error)](#AmazonRdsForSQLServerSource.MarshalJSON) + [func (a *AmazonRdsForSQLServerSource) UnmarshalJSON(data []byte) error](#AmazonRdsForSQLServerSource.UnmarshalJSON) * [type AmazonRdsForSQLServerTableDataset](#AmazonRdsForSQLServerTableDataset) * + [func (a *AmazonRdsForSQLServerTableDataset) GetDataset() *Dataset](#AmazonRdsForSQLServerTableDataset.GetDataset) + [func (a AmazonRdsForSQLServerTableDataset) MarshalJSON() ([]byte, error)](#AmazonRdsForSQLServerTableDataset.MarshalJSON) + [func (a *AmazonRdsForSQLServerTableDataset) UnmarshalJSON(data []byte) error](#AmazonRdsForSQLServerTableDataset.UnmarshalJSON) * [type AmazonRdsForSQLServerTableDatasetTypeProperties](#AmazonRdsForSQLServerTableDatasetTypeProperties) * + [func (a AmazonRdsForSQLServerTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AmazonRdsForSQLServerTableDatasetTypeProperties.MarshalJSON) + [func (a *AmazonRdsForSQLServerTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AmazonRdsForSQLServerTableDatasetTypeProperties.UnmarshalJSON) * [type AmazonRedshiftLinkedService](#AmazonRedshiftLinkedService) * + [func (a *AmazonRedshiftLinkedService) GetLinkedService() *LinkedService](#AmazonRedshiftLinkedService.GetLinkedService) + [func (a AmazonRedshiftLinkedService) MarshalJSON() ([]byte, error)](#AmazonRedshiftLinkedService.MarshalJSON) + [func (a *AmazonRedshiftLinkedService) UnmarshalJSON(data []byte) error](#AmazonRedshiftLinkedService.UnmarshalJSON) * [type AmazonRedshiftLinkedServiceTypeProperties](#AmazonRedshiftLinkedServiceTypeProperties) * + [func (a AmazonRedshiftLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AmazonRedshiftLinkedServiceTypeProperties.MarshalJSON) + [func (a *AmazonRedshiftLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AmazonRedshiftLinkedServiceTypeProperties.UnmarshalJSON) * [type AmazonRedshiftSource](#AmazonRedshiftSource) * + [func (a *AmazonRedshiftSource) GetCopySource() *CopySource](#AmazonRedshiftSource.GetCopySource) + [func (a *AmazonRedshiftSource) GetTabularSource() *TabularSource](#AmazonRedshiftSource.GetTabularSource) + [func (a AmazonRedshiftSource) MarshalJSON() ([]byte, error)](#AmazonRedshiftSource.MarshalJSON) + [func (a *AmazonRedshiftSource) UnmarshalJSON(data []byte) error](#AmazonRedshiftSource.UnmarshalJSON) * [type AmazonRedshiftTableDataset](#AmazonRedshiftTableDataset) * + [func (a *AmazonRedshiftTableDataset) GetDataset() *Dataset](#AmazonRedshiftTableDataset.GetDataset) + [func (a AmazonRedshiftTableDataset) MarshalJSON() ([]byte, error)](#AmazonRedshiftTableDataset.MarshalJSON) + [func (a *AmazonRedshiftTableDataset) UnmarshalJSON(data []byte) error](#AmazonRedshiftTableDataset.UnmarshalJSON) * [type AmazonRedshiftTableDatasetTypeProperties](#AmazonRedshiftTableDatasetTypeProperties) * + [func (a AmazonRedshiftTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AmazonRedshiftTableDatasetTypeProperties.MarshalJSON) + [func (a *AmazonRedshiftTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AmazonRedshiftTableDatasetTypeProperties.UnmarshalJSON) * [type AmazonS3CompatibleLinkedService](#AmazonS3CompatibleLinkedService) * + [func (a *AmazonS3CompatibleLinkedService) GetLinkedService() *LinkedService](#AmazonS3CompatibleLinkedService.GetLinkedService) + [func (a AmazonS3CompatibleLinkedService) MarshalJSON() ([]byte, error)](#AmazonS3CompatibleLinkedService.MarshalJSON) + [func (a *AmazonS3CompatibleLinkedService) UnmarshalJSON(data []byte) error](#AmazonS3CompatibleLinkedService.UnmarshalJSON) * [type AmazonS3CompatibleLinkedServiceTypeProperties](#AmazonS3CompatibleLinkedServiceTypeProperties) * + [func (a AmazonS3CompatibleLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AmazonS3CompatibleLinkedServiceTypeProperties.MarshalJSON) + [func (a *AmazonS3CompatibleLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AmazonS3CompatibleLinkedServiceTypeProperties.UnmarshalJSON) * [type AmazonS3CompatibleLocation](#AmazonS3CompatibleLocation) * + [func (a *AmazonS3CompatibleLocation) GetDatasetLocation() *DatasetLocation](#AmazonS3CompatibleLocation.GetDatasetLocation) + [func (a AmazonS3CompatibleLocation) MarshalJSON() ([]byte, error)](#AmazonS3CompatibleLocation.MarshalJSON) + [func (a *AmazonS3CompatibleLocation) UnmarshalJSON(data []byte) error](#AmazonS3CompatibleLocation.UnmarshalJSON) * [type AmazonS3CompatibleReadSettings](#AmazonS3CompatibleReadSettings) * + [func (a *AmazonS3CompatibleReadSettings) GetStoreReadSettings() *StoreReadSettings](#AmazonS3CompatibleReadSettings.GetStoreReadSettings) + [func (a AmazonS3CompatibleReadSettings) MarshalJSON() ([]byte, error)](#AmazonS3CompatibleReadSettings.MarshalJSON) + [func (a *AmazonS3CompatibleReadSettings) UnmarshalJSON(data []byte) error](#AmazonS3CompatibleReadSettings.UnmarshalJSON) * [type AmazonS3Dataset](#AmazonS3Dataset) * + [func (a *AmazonS3Dataset) GetDataset() *Dataset](#AmazonS3Dataset.GetDataset) + [func (a AmazonS3Dataset) MarshalJSON() ([]byte, error)](#AmazonS3Dataset.MarshalJSON) + [func (a *AmazonS3Dataset) UnmarshalJSON(data []byte) error](#AmazonS3Dataset.UnmarshalJSON) * [type AmazonS3DatasetTypeProperties](#AmazonS3DatasetTypeProperties) * + [func (a AmazonS3DatasetTypeProperties) MarshalJSON() ([]byte, error)](#AmazonS3DatasetTypeProperties.MarshalJSON) + [func (a *AmazonS3DatasetTypeProperties) UnmarshalJSON(data []byte) error](#AmazonS3DatasetTypeProperties.UnmarshalJSON) * [type AmazonS3LinkedService](#AmazonS3LinkedService) * + [func (a *AmazonS3LinkedService) GetLinkedService() *LinkedService](#AmazonS3LinkedService.GetLinkedService) + [func (a AmazonS3LinkedService) MarshalJSON() ([]byte, error)](#AmazonS3LinkedService.MarshalJSON) + [func (a *AmazonS3LinkedService) UnmarshalJSON(data []byte) error](#AmazonS3LinkedService.UnmarshalJSON) * [type AmazonS3LinkedServiceTypeProperties](#AmazonS3LinkedServiceTypeProperties) * + [func (a AmazonS3LinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AmazonS3LinkedServiceTypeProperties.MarshalJSON) + [func (a *AmazonS3LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AmazonS3LinkedServiceTypeProperties.UnmarshalJSON) * [type AmazonS3Location](#AmazonS3Location) * + [func (a *AmazonS3Location) GetDatasetLocation() *DatasetLocation](#AmazonS3Location.GetDatasetLocation) + [func (a AmazonS3Location) MarshalJSON() ([]byte, error)](#AmazonS3Location.MarshalJSON) + [func (a *AmazonS3Location) UnmarshalJSON(data []byte) error](#AmazonS3Location.UnmarshalJSON) * [type AmazonS3ReadSettings](#AmazonS3ReadSettings) * + [func (a *AmazonS3ReadSettings) GetStoreReadSettings() *StoreReadSettings](#AmazonS3ReadSettings.GetStoreReadSettings) + [func (a AmazonS3ReadSettings) MarshalJSON() ([]byte, error)](#AmazonS3ReadSettings.MarshalJSON) + [func (a *AmazonS3ReadSettings) UnmarshalJSON(data []byte) error](#AmazonS3ReadSettings.UnmarshalJSON) * [type AppFiguresLinkedService](#AppFiguresLinkedService) * + [func (a *AppFiguresLinkedService) GetLinkedService() *LinkedService](#AppFiguresLinkedService.GetLinkedService) + [func (a AppFiguresLinkedService) MarshalJSON() ([]byte, error)](#AppFiguresLinkedService.MarshalJSON) + [func (a *AppFiguresLinkedService) UnmarshalJSON(data []byte) error](#AppFiguresLinkedService.UnmarshalJSON) * [type AppFiguresLinkedServiceTypeProperties](#AppFiguresLinkedServiceTypeProperties) * + [func (a AppFiguresLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AppFiguresLinkedServiceTypeProperties.MarshalJSON) + [func (a *AppFiguresLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AppFiguresLinkedServiceTypeProperties.UnmarshalJSON) * [type AppendVariableActivity](#AppendVariableActivity) * + [func (a *AppendVariableActivity) GetActivity() *Activity](#AppendVariableActivity.GetActivity) + [func (a *AppendVariableActivity) GetControlActivity() *ControlActivity](#AppendVariableActivity.GetControlActivity) + [func (a AppendVariableActivity) MarshalJSON() ([]byte, error)](#AppendVariableActivity.MarshalJSON) + [func (a *AppendVariableActivity) UnmarshalJSON(data []byte) error](#AppendVariableActivity.UnmarshalJSON) * [type AppendVariableActivityTypeProperties](#AppendVariableActivityTypeProperties) * + [func (a AppendVariableActivityTypeProperties) MarshalJSON() ([]byte, error)](#AppendVariableActivityTypeProperties.MarshalJSON) + [func (a *AppendVariableActivityTypeProperties) UnmarshalJSON(data []byte) error](#AppendVariableActivityTypeProperties.UnmarshalJSON) * [type ArmIDWrapper](#ArmIDWrapper) * + [func (a ArmIDWrapper) MarshalJSON() ([]byte, error)](#ArmIDWrapper.MarshalJSON) + [func (a *ArmIDWrapper) UnmarshalJSON(data []byte) error](#ArmIDWrapper.UnmarshalJSON) * [type AsanaLinkedService](#AsanaLinkedService) * + [func (a *AsanaLinkedService) GetLinkedService() *LinkedService](#AsanaLinkedService.GetLinkedService) + [func (a AsanaLinkedService) MarshalJSON() ([]byte, error)](#AsanaLinkedService.MarshalJSON) + [func (a *AsanaLinkedService) UnmarshalJSON(data []byte) error](#AsanaLinkedService.UnmarshalJSON) * [type AsanaLinkedServiceTypeProperties](#AsanaLinkedServiceTypeProperties) * + [func (a AsanaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AsanaLinkedServiceTypeProperties.MarshalJSON) + [func (a *AsanaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AsanaLinkedServiceTypeProperties.UnmarshalJSON) * [type AvroCompressionCodec](#AvroCompressionCodec) * + [func PossibleAvroCompressionCodecValues() []AvroCompressionCodec](#PossibleAvroCompressionCodecValues) * [type AvroDataset](#AvroDataset) * + [func (a *AvroDataset) GetDataset() *Dataset](#AvroDataset.GetDataset) + [func (a AvroDataset) MarshalJSON() ([]byte, error)](#AvroDataset.MarshalJSON) + [func (a *AvroDataset) UnmarshalJSON(data []byte) error](#AvroDataset.UnmarshalJSON) * [type AvroDatasetTypeProperties](#AvroDatasetTypeProperties) * + [func (a AvroDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AvroDatasetTypeProperties.MarshalJSON) + [func (a *AvroDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AvroDatasetTypeProperties.UnmarshalJSON) * [type AvroFormat](#AvroFormat) * + [func (a *AvroFormat) GetDatasetStorageFormat() *DatasetStorageFormat](#AvroFormat.GetDatasetStorageFormat) + [func (a AvroFormat) MarshalJSON() ([]byte, error)](#AvroFormat.MarshalJSON) + [func (a *AvroFormat) UnmarshalJSON(data []byte) error](#AvroFormat.UnmarshalJSON) * [type AvroSink](#AvroSink) * + [func (a *AvroSink) GetCopySink() *CopySink](#AvroSink.GetCopySink) + [func (a AvroSink) MarshalJSON() ([]byte, error)](#AvroSink.MarshalJSON) + [func (a *AvroSink) UnmarshalJSON(data []byte) error](#AvroSink.UnmarshalJSON) * [type AvroSource](#AvroSource) * + [func (a *AvroSource) GetCopySource() *CopySource](#AvroSource.GetCopySource) + [func (a AvroSource) MarshalJSON() ([]byte, error)](#AvroSource.MarshalJSON) + [func (a *AvroSource) UnmarshalJSON(data []byte) error](#AvroSource.UnmarshalJSON) * [type AvroWriteSettings](#AvroWriteSettings) * + [func (a *AvroWriteSettings) GetFormatWriteSettings() *FormatWriteSettings](#AvroWriteSettings.GetFormatWriteSettings) + [func (a AvroWriteSettings) MarshalJSON() ([]byte, error)](#AvroWriteSettings.MarshalJSON) + [func (a *AvroWriteSettings) UnmarshalJSON(data []byte) error](#AvroWriteSettings.UnmarshalJSON) * [type AzPowerShellSetup](#AzPowerShellSetup) * + [func (a *AzPowerShellSetup) GetCustomSetupBase() *CustomSetupBase](#AzPowerShellSetup.GetCustomSetupBase) + [func (a AzPowerShellSetup) MarshalJSON() ([]byte, error)](#AzPowerShellSetup.MarshalJSON) + [func (a *AzPowerShellSetup) UnmarshalJSON(data []byte) error](#AzPowerShellSetup.UnmarshalJSON) * [type AzPowerShellSetupTypeProperties](#AzPowerShellSetupTypeProperties) * + [func (a AzPowerShellSetupTypeProperties) MarshalJSON() ([]byte, error)](#AzPowerShellSetupTypeProperties.MarshalJSON) + [func (a *AzPowerShellSetupTypeProperties) UnmarshalJSON(data []byte) error](#AzPowerShellSetupTypeProperties.UnmarshalJSON) * [type AzureBatchLinkedService](#AzureBatchLinkedService) * + [func (a *AzureBatchLinkedService) GetLinkedService() *LinkedService](#AzureBatchLinkedService.GetLinkedService) + [func (a AzureBatchLinkedService) MarshalJSON() ([]byte, error)](#AzureBatchLinkedService.MarshalJSON) + [func (a *AzureBatchLinkedService) UnmarshalJSON(data []byte) error](#AzureBatchLinkedService.UnmarshalJSON) * [type AzureBatchLinkedServiceTypeProperties](#AzureBatchLinkedServiceTypeProperties) * + [func (a AzureBatchLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureBatchLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureBatchLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureBatchLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureBlobDataset](#AzureBlobDataset) * + [func (a *AzureBlobDataset) GetDataset() *Dataset](#AzureBlobDataset.GetDataset) + [func (a AzureBlobDataset) MarshalJSON() ([]byte, error)](#AzureBlobDataset.MarshalJSON) + [func (a *AzureBlobDataset) UnmarshalJSON(data []byte) error](#AzureBlobDataset.UnmarshalJSON) * [type AzureBlobDatasetTypeProperties](#AzureBlobDatasetTypeProperties) * + [func (a AzureBlobDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureBlobDatasetTypeProperties.MarshalJSON) + [func (a *AzureBlobDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureBlobDatasetTypeProperties.UnmarshalJSON) * [type AzureBlobFSDataset](#AzureBlobFSDataset) * + [func (a *AzureBlobFSDataset) GetDataset() *Dataset](#AzureBlobFSDataset.GetDataset) + [func (a AzureBlobFSDataset) MarshalJSON() ([]byte, error)](#AzureBlobFSDataset.MarshalJSON) + [func (a *AzureBlobFSDataset) UnmarshalJSON(data []byte) error](#AzureBlobFSDataset.UnmarshalJSON) * [type AzureBlobFSDatasetTypeProperties](#AzureBlobFSDatasetTypeProperties) * + [func (a AzureBlobFSDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureBlobFSDatasetTypeProperties.MarshalJSON) + [func (a *AzureBlobFSDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureBlobFSDatasetTypeProperties.UnmarshalJSON) * [type AzureBlobFSLinkedService](#AzureBlobFSLinkedService) * + [func (a *AzureBlobFSLinkedService) GetLinkedService() *LinkedService](#AzureBlobFSLinkedService.GetLinkedService) + [func (a AzureBlobFSLinkedService) MarshalJSON() ([]byte, error)](#AzureBlobFSLinkedService.MarshalJSON) + [func (a *AzureBlobFSLinkedService) UnmarshalJSON(data []byte) error](#AzureBlobFSLinkedService.UnmarshalJSON) * [type AzureBlobFSLinkedServiceTypeProperties](#AzureBlobFSLinkedServiceTypeProperties) * + [func (a AzureBlobFSLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureBlobFSLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureBlobFSLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureBlobFSLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureBlobFSLocation](#AzureBlobFSLocation) * + [func (a *AzureBlobFSLocation) GetDatasetLocation() *DatasetLocation](#AzureBlobFSLocation.GetDatasetLocation) + [func (a AzureBlobFSLocation) MarshalJSON() ([]byte, error)](#AzureBlobFSLocation.MarshalJSON) + [func (a *AzureBlobFSLocation) UnmarshalJSON(data []byte) error](#AzureBlobFSLocation.UnmarshalJSON) * [type AzureBlobFSReadSettings](#AzureBlobFSReadSettings) * + [func (a *AzureBlobFSReadSettings) GetStoreReadSettings() *StoreReadSettings](#AzureBlobFSReadSettings.GetStoreReadSettings) + [func (a AzureBlobFSReadSettings) MarshalJSON() ([]byte, error)](#AzureBlobFSReadSettings.MarshalJSON) + [func (a *AzureBlobFSReadSettings) UnmarshalJSON(data []byte) error](#AzureBlobFSReadSettings.UnmarshalJSON) * [type AzureBlobFSSink](#AzureBlobFSSink) * + [func (a *AzureBlobFSSink) GetCopySink() *CopySink](#AzureBlobFSSink.GetCopySink) + [func (a AzureBlobFSSink) MarshalJSON() ([]byte, error)](#AzureBlobFSSink.MarshalJSON) + [func (a *AzureBlobFSSink) UnmarshalJSON(data []byte) error](#AzureBlobFSSink.UnmarshalJSON) * [type AzureBlobFSSource](#AzureBlobFSSource) * + [func (a *AzureBlobFSSource) GetCopySource() *CopySource](#AzureBlobFSSource.GetCopySource) + [func (a AzureBlobFSSource) MarshalJSON() ([]byte, error)](#AzureBlobFSSource.MarshalJSON) + [func (a *AzureBlobFSSource) UnmarshalJSON(data []byte) error](#AzureBlobFSSource.UnmarshalJSON) * [type AzureBlobFSWriteSettings](#AzureBlobFSWriteSettings) * + [func (a *AzureBlobFSWriteSettings) GetStoreWriteSettings() *StoreWriteSettings](#AzureBlobFSWriteSettings.GetStoreWriteSettings) + [func (a AzureBlobFSWriteSettings) MarshalJSON() ([]byte, error)](#AzureBlobFSWriteSettings.MarshalJSON) + [func (a *AzureBlobFSWriteSettings) UnmarshalJSON(data []byte) error](#AzureBlobFSWriteSettings.UnmarshalJSON) * [type AzureBlobStorageLinkedService](#AzureBlobStorageLinkedService) * + [func (a *AzureBlobStorageLinkedService) GetLinkedService() *LinkedService](#AzureBlobStorageLinkedService.GetLinkedService) + [func (a AzureBlobStorageLinkedService) MarshalJSON() ([]byte, error)](#AzureBlobStorageLinkedService.MarshalJSON) + [func (a *AzureBlobStorageLinkedService) UnmarshalJSON(data []byte) error](#AzureBlobStorageLinkedService.UnmarshalJSON) * [type AzureBlobStorageLinkedServiceTypeProperties](#AzureBlobStorageLinkedServiceTypeProperties) * + [func (a AzureBlobStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureBlobStorageLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureBlobStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureBlobStorageLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureBlobStorageLocation](#AzureBlobStorageLocation) * + [func (a *AzureBlobStorageLocation) GetDatasetLocation() *DatasetLocation](#AzureBlobStorageLocation.GetDatasetLocation) + [func (a AzureBlobStorageLocation) MarshalJSON() ([]byte, error)](#AzureBlobStorageLocation.MarshalJSON) + [func (a *AzureBlobStorageLocation) UnmarshalJSON(data []byte) error](#AzureBlobStorageLocation.UnmarshalJSON) * [type AzureBlobStorageReadSettings](#AzureBlobStorageReadSettings) * + [func (a *AzureBlobStorageReadSettings) GetStoreReadSettings() *StoreReadSettings](#AzureBlobStorageReadSettings.GetStoreReadSettings) + [func (a AzureBlobStorageReadSettings) MarshalJSON() ([]byte, error)](#AzureBlobStorageReadSettings.MarshalJSON) + [func (a *AzureBlobStorageReadSettings) UnmarshalJSON(data []byte) error](#AzureBlobStorageReadSettings.UnmarshalJSON) * [type AzureBlobStorageWriteSettings](#AzureBlobStorageWriteSettings) * + [func (a *AzureBlobStorageWriteSettings) GetStoreWriteSettings() *StoreWriteSettings](#AzureBlobStorageWriteSettings.GetStoreWriteSettings) + [func (a AzureBlobStorageWriteSettings) MarshalJSON() ([]byte, error)](#AzureBlobStorageWriteSettings.MarshalJSON) + [func (a *AzureBlobStorageWriteSettings) UnmarshalJSON(data []byte) error](#AzureBlobStorageWriteSettings.UnmarshalJSON) * [type AzureDataExplorerCommandActivity](#AzureDataExplorerCommandActivity) * + [func (a *AzureDataExplorerCommandActivity) GetActivity() *Activity](#AzureDataExplorerCommandActivity.GetActivity) + [func (a *AzureDataExplorerCommandActivity) GetExecutionActivity() *ExecutionActivity](#AzureDataExplorerCommandActivity.GetExecutionActivity) + [func (a AzureDataExplorerCommandActivity) MarshalJSON() ([]byte, error)](#AzureDataExplorerCommandActivity.MarshalJSON) + [func (a *AzureDataExplorerCommandActivity) UnmarshalJSON(data []byte) error](#AzureDataExplorerCommandActivity.UnmarshalJSON) * [type AzureDataExplorerCommandActivityTypeProperties](#AzureDataExplorerCommandActivityTypeProperties) * + [func (a AzureDataExplorerCommandActivityTypeProperties) MarshalJSON() ([]byte, error)](#AzureDataExplorerCommandActivityTypeProperties.MarshalJSON) + [func (a *AzureDataExplorerCommandActivityTypeProperties) UnmarshalJSON(data []byte) error](#AzureDataExplorerCommandActivityTypeProperties.UnmarshalJSON) * [type AzureDataExplorerDatasetTypeProperties](#AzureDataExplorerDatasetTypeProperties) * + [func (a AzureDataExplorerDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureDataExplorerDatasetTypeProperties.MarshalJSON) + [func (a *AzureDataExplorerDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureDataExplorerDatasetTypeProperties.UnmarshalJSON) * [type AzureDataExplorerLinkedService](#AzureDataExplorerLinkedService) * + [func (a *AzureDataExplorerLinkedService) GetLinkedService() *LinkedService](#AzureDataExplorerLinkedService.GetLinkedService) + [func (a AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error)](#AzureDataExplorerLinkedService.MarshalJSON) + [func (a *AzureDataExplorerLinkedService) UnmarshalJSON(data []byte) error](#AzureDataExplorerLinkedService.UnmarshalJSON) * [type AzureDataExplorerLinkedServiceTypeProperties](#AzureDataExplorerLinkedServiceTypeProperties) * + [func (a AzureDataExplorerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureDataExplorerLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureDataExplorerLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureDataExplorerSink](#AzureDataExplorerSink) * + [func (a *AzureDataExplorerSink) GetCopySink() *CopySink](#AzureDataExplorerSink.GetCopySink) + [func (a AzureDataExplorerSink) MarshalJSON() ([]byte, error)](#AzureDataExplorerSink.MarshalJSON) + [func (a *AzureDataExplorerSink) UnmarshalJSON(data []byte) error](#AzureDataExplorerSink.UnmarshalJSON) * [type AzureDataExplorerSource](#AzureDataExplorerSource) * + [func (a *AzureDataExplorerSource) GetCopySource() *CopySource](#AzureDataExplorerSource.GetCopySource) + [func (a AzureDataExplorerSource) MarshalJSON() ([]byte, error)](#AzureDataExplorerSource.MarshalJSON) + [func (a *AzureDataExplorerSource) UnmarshalJSON(data []byte) error](#AzureDataExplorerSource.UnmarshalJSON) * [type AzureDataExplorerTableDataset](#AzureDataExplorerTableDataset) * + [func (a *AzureDataExplorerTableDataset) GetDataset() *Dataset](#AzureDataExplorerTableDataset.GetDataset) + [func (a AzureDataExplorerTableDataset) MarshalJSON() ([]byte, error)](#AzureDataExplorerTableDataset.MarshalJSON) + [func (a *AzureDataExplorerTableDataset) UnmarshalJSON(data []byte) error](#AzureDataExplorerTableDataset.UnmarshalJSON) * [type AzureDataLakeAnalyticsLinkedService](#AzureDataLakeAnalyticsLinkedService) * + [func (a *AzureDataLakeAnalyticsLinkedService) GetLinkedService() *LinkedService](#AzureDataLakeAnalyticsLinkedService.GetLinkedService) + [func (a AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error)](#AzureDataLakeAnalyticsLinkedService.MarshalJSON) + [func (a *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(data []byte) error](#AzureDataLakeAnalyticsLinkedService.UnmarshalJSON) * [type AzureDataLakeAnalyticsLinkedServiceTypeProperties](#AzureDataLakeAnalyticsLinkedServiceTypeProperties) * + [func (a AzureDataLakeAnalyticsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureDataLakeAnalyticsLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureDataLakeAnalyticsLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureDataLakeStoreDataset](#AzureDataLakeStoreDataset) * + [func (a *AzureDataLakeStoreDataset) GetDataset() *Dataset](#AzureDataLakeStoreDataset.GetDataset) + [func (a AzureDataLakeStoreDataset) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreDataset.MarshalJSON) + [func (a *AzureDataLakeStoreDataset) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreDataset.UnmarshalJSON) * [type AzureDataLakeStoreDatasetTypeProperties](#AzureDataLakeStoreDatasetTypeProperties) * + [func (a AzureDataLakeStoreDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreDatasetTypeProperties.MarshalJSON) + [func (a *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreDatasetTypeProperties.UnmarshalJSON) * [type AzureDataLakeStoreLinkedService](#AzureDataLakeStoreLinkedService) * + [func (a *AzureDataLakeStoreLinkedService) GetLinkedService() *LinkedService](#AzureDataLakeStoreLinkedService.GetLinkedService) + [func (a AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreLinkedService.MarshalJSON) + [func (a *AzureDataLakeStoreLinkedService) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreLinkedService.UnmarshalJSON) * [type AzureDataLakeStoreLinkedServiceTypeProperties](#AzureDataLakeStoreLinkedServiceTypeProperties) * + [func (a AzureDataLakeStoreLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureDataLakeStoreLocation](#AzureDataLakeStoreLocation) * + [func (a *AzureDataLakeStoreLocation) GetDatasetLocation() *DatasetLocation](#AzureDataLakeStoreLocation.GetDatasetLocation) + [func (a AzureDataLakeStoreLocation) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreLocation.MarshalJSON) + [func (a *AzureDataLakeStoreLocation) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreLocation.UnmarshalJSON) * [type AzureDataLakeStoreReadSettings](#AzureDataLakeStoreReadSettings) * + [func (a *AzureDataLakeStoreReadSettings) GetStoreReadSettings() *StoreReadSettings](#AzureDataLakeStoreReadSettings.GetStoreReadSettings) + [func (a AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreReadSettings.MarshalJSON) + [func (a *AzureDataLakeStoreReadSettings) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreReadSettings.UnmarshalJSON) * [type AzureDataLakeStoreSink](#AzureDataLakeStoreSink) * + [func (a *AzureDataLakeStoreSink) GetCopySink() *CopySink](#AzureDataLakeStoreSink.GetCopySink) + [func (a AzureDataLakeStoreSink) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreSink.MarshalJSON) + [func (a *AzureDataLakeStoreSink) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreSink.UnmarshalJSON) * [type AzureDataLakeStoreSource](#AzureDataLakeStoreSource) * + [func (a *AzureDataLakeStoreSource) GetCopySource() *CopySource](#AzureDataLakeStoreSource.GetCopySource) + [func (a AzureDataLakeStoreSource) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreSource.MarshalJSON) + [func (a *AzureDataLakeStoreSource) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreSource.UnmarshalJSON) * [type AzureDataLakeStoreWriteSettings](#AzureDataLakeStoreWriteSettings) * + [func (a *AzureDataLakeStoreWriteSettings) GetStoreWriteSettings() *StoreWriteSettings](#AzureDataLakeStoreWriteSettings.GetStoreWriteSettings) + [func (a AzureDataLakeStoreWriteSettings) MarshalJSON() ([]byte, error)](#AzureDataLakeStoreWriteSettings.MarshalJSON) + [func (a *AzureDataLakeStoreWriteSettings) UnmarshalJSON(data []byte) error](#AzureDataLakeStoreWriteSettings.UnmarshalJSON) * [type AzureDatabricksDeltaLakeDataset](#AzureDatabricksDeltaLakeDataset) * + [func (a *AzureDatabricksDeltaLakeDataset) GetDataset() *Dataset](#AzureDatabricksDeltaLakeDataset.GetDataset) + [func (a AzureDatabricksDeltaLakeDataset) MarshalJSON() ([]byte, error)](#AzureDatabricksDeltaLakeDataset.MarshalJSON) + [func (a *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(data []byte) error](#AzureDatabricksDeltaLakeDataset.UnmarshalJSON) * [type AzureDatabricksDeltaLakeDatasetTypeProperties](#AzureDatabricksDeltaLakeDatasetTypeProperties) * + [func (a AzureDatabricksDeltaLakeDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureDatabricksDeltaLakeDatasetTypeProperties.MarshalJSON) + [func (a *AzureDatabricksDeltaLakeDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureDatabricksDeltaLakeDatasetTypeProperties.UnmarshalJSON) * [type AzureDatabricksDeltaLakeExportCommand](#AzureDatabricksDeltaLakeExportCommand) * + [func (a *AzureDatabricksDeltaLakeExportCommand) GetExportSettings() *ExportSettings](#AzureDatabricksDeltaLakeExportCommand.GetExportSettings) + [func (a AzureDatabricksDeltaLakeExportCommand) MarshalJSON() ([]byte, error)](#AzureDatabricksDeltaLakeExportCommand.MarshalJSON) + [func (a *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(data []byte) error](#AzureDatabricksDeltaLakeExportCommand.UnmarshalJSON) * [type AzureDatabricksDeltaLakeImportCommand](#AzureDatabricksDeltaLakeImportCommand) * + [func (a *AzureDatabricksDeltaLakeImportCommand) GetImportSettings() *ImportSettings](#AzureDatabricksDeltaLakeImportCommand.GetImportSettings) + [func (a AzureDatabricksDeltaLakeImportCommand) MarshalJSON() ([]byte, error)](#AzureDatabricksDeltaLakeImportCommand.MarshalJSON) + [func (a *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(data []byte) error](#AzureDatabricksDeltaLakeImportCommand.UnmarshalJSON) * [type AzureDatabricksDeltaLakeLinkedService](#AzureDatabricksDeltaLakeLinkedService) * + [func (a *AzureDatabricksDeltaLakeLinkedService) GetLinkedService() *LinkedService](#AzureDatabricksDeltaLakeLinkedService.GetLinkedService) + [func (a AzureDatabricksDeltaLakeLinkedService) MarshalJSON() ([]byte, error)](#AzureDatabricksDeltaLakeLinkedService.MarshalJSON) + [func (a *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(data []byte) error](#AzureDatabricksDeltaLakeLinkedService.UnmarshalJSON) * [type AzureDatabricksDeltaLakeSink](#AzureDatabricksDeltaLakeSink) * + [func (a *AzureDatabricksDeltaLakeSink) GetCopySink() *CopySink](#AzureDatabricksDeltaLakeSink.GetCopySink) + [func (a AzureDatabricksDeltaLakeSink) MarshalJSON() ([]byte, error)](#AzureDatabricksDeltaLakeSink.MarshalJSON) + [func (a *AzureDatabricksDeltaLakeSink) UnmarshalJSON(data []byte) error](#AzureDatabricksDeltaLakeSink.UnmarshalJSON) * [type AzureDatabricksDeltaLakeSource](#AzureDatabricksDeltaLakeSource) * + [func (a *AzureDatabricksDeltaLakeSource) GetCopySource() *CopySource](#AzureDatabricksDeltaLakeSource.GetCopySource) + [func (a AzureDatabricksDeltaLakeSource) MarshalJSON() ([]byte, error)](#AzureDatabricksDeltaLakeSource.MarshalJSON) + [func (a *AzureDatabricksDeltaLakeSource) UnmarshalJSON(data []byte) error](#AzureDatabricksDeltaLakeSource.UnmarshalJSON) * [type AzureDatabricksDetltaLakeLinkedServiceTypeProperties](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties) * + [func (a AzureDatabricksDetltaLakeLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureDatabricksLinkedService](#AzureDatabricksLinkedService) * + [func (a *AzureDatabricksLinkedService) GetLinkedService() *LinkedService](#AzureDatabricksLinkedService.GetLinkedService) + [func (a AzureDatabricksLinkedService) MarshalJSON() ([]byte, error)](#AzureDatabricksLinkedService.MarshalJSON) + [func (a *AzureDatabricksLinkedService) UnmarshalJSON(data []byte) error](#AzureDatabricksLinkedService.UnmarshalJSON) * [type AzureDatabricksLinkedServiceTypeProperties](#AzureDatabricksLinkedServiceTypeProperties) * + [func (a AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureDatabricksLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureDatabricksLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureFileStorageLinkedService](#AzureFileStorageLinkedService) * + [func (a *AzureFileStorageLinkedService) GetLinkedService() *LinkedService](#AzureFileStorageLinkedService.GetLinkedService) + [func (a AzureFileStorageLinkedService) MarshalJSON() ([]byte, error)](#AzureFileStorageLinkedService.MarshalJSON) + [func (a *AzureFileStorageLinkedService) UnmarshalJSON(data []byte) error](#AzureFileStorageLinkedService.UnmarshalJSON) * [type AzureFileStorageLinkedServiceTypeProperties](#AzureFileStorageLinkedServiceTypeProperties) * + [func (a AzureFileStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureFileStorageLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureFileStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureFileStorageLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureFileStorageLocation](#AzureFileStorageLocation) * + [func (a *AzureFileStorageLocation) GetDatasetLocation() *DatasetLocation](#AzureFileStorageLocation.GetDatasetLocation) + [func (a AzureFileStorageLocation) MarshalJSON() ([]byte, error)](#AzureFileStorageLocation.MarshalJSON) + [func (a *AzureFileStorageLocation) UnmarshalJSON(data []byte) error](#AzureFileStorageLocation.UnmarshalJSON) * [type AzureFileStorageReadSettings](#AzureFileStorageReadSettings) * + [func (a *AzureFileStorageReadSettings) GetStoreReadSettings() *StoreReadSettings](#AzureFileStorageReadSettings.GetStoreReadSettings) + [func (a AzureFileStorageReadSettings) MarshalJSON() ([]byte, error)](#AzureFileStorageReadSettings.MarshalJSON) + [func (a *AzureFileStorageReadSettings) UnmarshalJSON(data []byte) error](#AzureFileStorageReadSettings.UnmarshalJSON) * [type AzureFileStorageWriteSettings](#AzureFileStorageWriteSettings) * + [func (a *AzureFileStorageWriteSettings) GetStoreWriteSettings() *StoreWriteSettings](#AzureFileStorageWriteSettings.GetStoreWriteSettings) + [func (a AzureFileStorageWriteSettings) MarshalJSON() ([]byte, error)](#AzureFileStorageWriteSettings.MarshalJSON) + [func (a *AzureFileStorageWriteSettings) UnmarshalJSON(data []byte) error](#AzureFileStorageWriteSettings.UnmarshalJSON) * [type AzureFunctionActivity](#AzureFunctionActivity) * + [func (a *AzureFunctionActivity) GetActivity() *Activity](#AzureFunctionActivity.GetActivity) + [func (a *AzureFunctionActivity) GetExecutionActivity() *ExecutionActivity](#AzureFunctionActivity.GetExecutionActivity) + [func (a AzureFunctionActivity) MarshalJSON() ([]byte, error)](#AzureFunctionActivity.MarshalJSON) + [func (a *AzureFunctionActivity) UnmarshalJSON(data []byte) error](#AzureFunctionActivity.UnmarshalJSON) * [type AzureFunctionActivityMethod](#AzureFunctionActivityMethod) * + [func PossibleAzureFunctionActivityMethodValues() []AzureFunctionActivityMethod](#PossibleAzureFunctionActivityMethodValues) * [type AzureFunctionActivityTypeProperties](#AzureFunctionActivityTypeProperties) * + [func (a AzureFunctionActivityTypeProperties) MarshalJSON() ([]byte, error)](#AzureFunctionActivityTypeProperties.MarshalJSON) + [func (a *AzureFunctionActivityTypeProperties) UnmarshalJSON(data []byte) error](#AzureFunctionActivityTypeProperties.UnmarshalJSON) * [type AzureFunctionLinkedService](#AzureFunctionLinkedService) * + [func (a *AzureFunctionLinkedService) GetLinkedService() *LinkedService](#AzureFunctionLinkedService.GetLinkedService) + [func (a AzureFunctionLinkedService) MarshalJSON() ([]byte, error)](#AzureFunctionLinkedService.MarshalJSON) + [func (a *AzureFunctionLinkedService) UnmarshalJSON(data []byte) error](#AzureFunctionLinkedService.UnmarshalJSON) * [type AzureFunctionLinkedServiceTypeProperties](#AzureFunctionLinkedServiceTypeProperties) * + [func (a AzureFunctionLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureFunctionLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureFunctionLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureFunctionLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureKeyVaultLinkedService](#AzureKeyVaultLinkedService) * + [func (a *AzureKeyVaultLinkedService) GetLinkedService() *LinkedService](#AzureKeyVaultLinkedService.GetLinkedService) + [func (a AzureKeyVaultLinkedService) MarshalJSON() ([]byte, error)](#AzureKeyVaultLinkedService.MarshalJSON) + [func (a *AzureKeyVaultLinkedService) UnmarshalJSON(data []byte) error](#AzureKeyVaultLinkedService.UnmarshalJSON) * [type AzureKeyVaultLinkedServiceTypeProperties](#AzureKeyVaultLinkedServiceTypeProperties) * + [func (a AzureKeyVaultLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureKeyVaultLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureKeyVaultLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureKeyVaultLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) * + [func (a *AzureKeyVaultSecretReference) GetSecretBase() *SecretBase](#AzureKeyVaultSecretReference.GetSecretBase) + [func (a AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error)](#AzureKeyVaultSecretReference.MarshalJSON) + [func (a *AzureKeyVaultSecretReference) UnmarshalJSON(data []byte) error](#AzureKeyVaultSecretReference.UnmarshalJSON) * [type AzureMLBatchExecutionActivity](#AzureMLBatchExecutionActivity) * + [func (a *AzureMLBatchExecutionActivity) GetActivity() *Activity](#AzureMLBatchExecutionActivity.GetActivity) + [func (a *AzureMLBatchExecutionActivity) GetExecutionActivity() *ExecutionActivity](#AzureMLBatchExecutionActivity.GetExecutionActivity) + [func (a AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error)](#AzureMLBatchExecutionActivity.MarshalJSON) + [func (a *AzureMLBatchExecutionActivity) UnmarshalJSON(data []byte) error](#AzureMLBatchExecutionActivity.UnmarshalJSON) * [type AzureMLBatchExecutionActivityTypeProperties](#AzureMLBatchExecutionActivityTypeProperties) * + [func (a AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, error)](#AzureMLBatchExecutionActivityTypeProperties.MarshalJSON) + [func (a *AzureMLBatchExecutionActivityTypeProperties) UnmarshalJSON(data []byte) error](#AzureMLBatchExecutionActivityTypeProperties.UnmarshalJSON) * [type AzureMLExecutePipelineActivity](#AzureMLExecutePipelineActivity) * + [func (a *AzureMLExecutePipelineActivity) GetActivity() *Activity](#AzureMLExecutePipelineActivity.GetActivity) + [func (a *AzureMLExecutePipelineActivity) GetExecutionActivity() *ExecutionActivity](#AzureMLExecutePipelineActivity.GetExecutionActivity) + [func (a AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error)](#AzureMLExecutePipelineActivity.MarshalJSON) + [func (a *AzureMLExecutePipelineActivity) UnmarshalJSON(data []byte) error](#AzureMLExecutePipelineActivity.UnmarshalJSON) * [type AzureMLExecutePipelineActivityTypeProperties](#AzureMLExecutePipelineActivityTypeProperties) * + [func (a AzureMLExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error)](#AzureMLExecutePipelineActivityTypeProperties.MarshalJSON) + [func (a *AzureMLExecutePipelineActivityTypeProperties) UnmarshalJSON(data []byte) error](#AzureMLExecutePipelineActivityTypeProperties.UnmarshalJSON) * [type AzureMLLinkedService](#AzureMLLinkedService) * + [func (a *AzureMLLinkedService) GetLinkedService() *LinkedService](#AzureMLLinkedService.GetLinkedService) + [func (a AzureMLLinkedService) MarshalJSON() ([]byte, error)](#AzureMLLinkedService.MarshalJSON) + [func (a *AzureMLLinkedService) UnmarshalJSON(data []byte) error](#AzureMLLinkedService.UnmarshalJSON) * [type AzureMLLinkedServiceTypeProperties](#AzureMLLinkedServiceTypeProperties) * + [func (a AzureMLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureMLLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureMLLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureMLServiceLinkedService](#AzureMLServiceLinkedService) * + [func (a *AzureMLServiceLinkedService) GetLinkedService() *LinkedService](#AzureMLServiceLinkedService.GetLinkedService) + [func (a AzureMLServiceLinkedService) MarshalJSON() ([]byte, error)](#AzureMLServiceLinkedService.MarshalJSON) + [func (a *AzureMLServiceLinkedService) UnmarshalJSON(data []byte) error](#AzureMLServiceLinkedService.UnmarshalJSON) * [type AzureMLServiceLinkedServiceTypeProperties](#AzureMLServiceLinkedServiceTypeProperties) * + [func (a AzureMLServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureMLServiceLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureMLServiceLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureMLUpdateResourceActivity](#AzureMLUpdateResourceActivity) * + [func (a *AzureMLUpdateResourceActivity) GetActivity() *Activity](#AzureMLUpdateResourceActivity.GetActivity) + [func (a *AzureMLUpdateResourceActivity) GetExecutionActivity() *ExecutionActivity](#AzureMLUpdateResourceActivity.GetExecutionActivity) + [func (a AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error)](#AzureMLUpdateResourceActivity.MarshalJSON) + [func (a *AzureMLUpdateResourceActivity) UnmarshalJSON(data []byte) error](#AzureMLUpdateResourceActivity.UnmarshalJSON) * [type AzureMLUpdateResourceActivityTypeProperties](#AzureMLUpdateResourceActivityTypeProperties) * + [func (a AzureMLUpdateResourceActivityTypeProperties) MarshalJSON() ([]byte, error)](#AzureMLUpdateResourceActivityTypeProperties.MarshalJSON) + [func (a *AzureMLUpdateResourceActivityTypeProperties) UnmarshalJSON(data []byte) error](#AzureMLUpdateResourceActivityTypeProperties.UnmarshalJSON) * [type AzureMLWebServiceFile](#AzureMLWebServiceFile) * + [func (a AzureMLWebServiceFile) MarshalJSON() ([]byte, error)](#AzureMLWebServiceFile.MarshalJSON) + [func (a *AzureMLWebServiceFile) UnmarshalJSON(data []byte) error](#AzureMLWebServiceFile.UnmarshalJSON) * [type AzureMariaDBLinkedService](#AzureMariaDBLinkedService) * + [func (a *AzureMariaDBLinkedService) GetLinkedService() *LinkedService](#AzureMariaDBLinkedService.GetLinkedService) + [func (a AzureMariaDBLinkedService) MarshalJSON() ([]byte, error)](#AzureMariaDBLinkedService.MarshalJSON) + [func (a *AzureMariaDBLinkedService) UnmarshalJSON(data []byte) error](#AzureMariaDBLinkedService.UnmarshalJSON) * [type AzureMariaDBLinkedServiceTypeProperties](#AzureMariaDBLinkedServiceTypeProperties) * + [func (a AzureMariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureMariaDBLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureMariaDBLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureMariaDBLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureMariaDBSource](#AzureMariaDBSource) * + [func (a *AzureMariaDBSource) GetCopySource() *CopySource](#AzureMariaDBSource.GetCopySource) + [func (a *AzureMariaDBSource) GetTabularSource() *TabularSource](#AzureMariaDBSource.GetTabularSource) + [func (a AzureMariaDBSource) MarshalJSON() ([]byte, error)](#AzureMariaDBSource.MarshalJSON) + [func (a *AzureMariaDBSource) UnmarshalJSON(data []byte) error](#AzureMariaDBSource.UnmarshalJSON) * [type AzureMariaDBTableDataset](#AzureMariaDBTableDataset) * + [func (a *AzureMariaDBTableDataset) GetDataset() *Dataset](#AzureMariaDBTableDataset.GetDataset) + [func (a AzureMariaDBTableDataset) MarshalJSON() ([]byte, error)](#AzureMariaDBTableDataset.MarshalJSON) + [func (a *AzureMariaDBTableDataset) UnmarshalJSON(data []byte) error](#AzureMariaDBTableDataset.UnmarshalJSON) * [type AzureMySQLLinkedService](#AzureMySQLLinkedService) * + [func (a *AzureMySQLLinkedService) GetLinkedService() *LinkedService](#AzureMySQLLinkedService.GetLinkedService) + [func (a AzureMySQLLinkedService) MarshalJSON() ([]byte, error)](#AzureMySQLLinkedService.MarshalJSON) + [func (a *AzureMySQLLinkedService) UnmarshalJSON(data []byte) error](#AzureMySQLLinkedService.UnmarshalJSON) * [type AzureMySQLLinkedServiceTypeProperties](#AzureMySQLLinkedServiceTypeProperties) * + [func (a AzureMySQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureMySQLLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureMySQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureMySQLLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureMySQLSink](#AzureMySQLSink) * + [func (a *AzureMySQLSink) GetCopySink() *CopySink](#AzureMySQLSink.GetCopySink) + [func (a AzureMySQLSink) MarshalJSON() ([]byte, error)](#AzureMySQLSink.MarshalJSON) + [func (a *AzureMySQLSink) UnmarshalJSON(data []byte) error](#AzureMySQLSink.UnmarshalJSON) * [type AzureMySQLSource](#AzureMySQLSource) * + [func (a *AzureMySQLSource) GetCopySource() *CopySource](#AzureMySQLSource.GetCopySource) + [func (a *AzureMySQLSource) GetTabularSource() *TabularSource](#AzureMySQLSource.GetTabularSource) + [func (a AzureMySQLSource) MarshalJSON() ([]byte, error)](#AzureMySQLSource.MarshalJSON) + [func (a *AzureMySQLSource) UnmarshalJSON(data []byte) error](#AzureMySQLSource.UnmarshalJSON) * [type AzureMySQLTableDataset](#AzureMySQLTableDataset) * + [func (a *AzureMySQLTableDataset) GetDataset() *Dataset](#AzureMySQLTableDataset.GetDataset) + [func (a AzureMySQLTableDataset) MarshalJSON() ([]byte, error)](#AzureMySQLTableDataset.MarshalJSON) + [func (a *AzureMySQLTableDataset) UnmarshalJSON(data []byte) error](#AzureMySQLTableDataset.UnmarshalJSON) * [type AzureMySQLTableDatasetTypeProperties](#AzureMySQLTableDatasetTypeProperties) * + [func (a AzureMySQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureMySQLTableDatasetTypeProperties.MarshalJSON) + [func (a *AzureMySQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureMySQLTableDatasetTypeProperties.UnmarshalJSON) * [type AzurePostgreSQLLinkedService](#AzurePostgreSQLLinkedService) * + [func (a *AzurePostgreSQLLinkedService) GetLinkedService() *LinkedService](#AzurePostgreSQLLinkedService.GetLinkedService) + [func (a AzurePostgreSQLLinkedService) MarshalJSON() ([]byte, error)](#AzurePostgreSQLLinkedService.MarshalJSON) + [func (a *AzurePostgreSQLLinkedService) UnmarshalJSON(data []byte) error](#AzurePostgreSQLLinkedService.UnmarshalJSON) * [type AzurePostgreSQLLinkedServiceTypeProperties](#AzurePostgreSQLLinkedServiceTypeProperties) * + [func (a AzurePostgreSQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzurePostgreSQLLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzurePostgreSQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzurePostgreSQLLinkedServiceTypeProperties.UnmarshalJSON) * [type AzurePostgreSQLSink](#AzurePostgreSQLSink) * + [func (a *AzurePostgreSQLSink) GetCopySink() *CopySink](#AzurePostgreSQLSink.GetCopySink) + [func (a AzurePostgreSQLSink) MarshalJSON() ([]byte, error)](#AzurePostgreSQLSink.MarshalJSON) + [func (a *AzurePostgreSQLSink) UnmarshalJSON(data []byte) error](#AzurePostgreSQLSink.UnmarshalJSON) * [type AzurePostgreSQLSource](#AzurePostgreSQLSource) * + [func (a *AzurePostgreSQLSource) GetCopySource() *CopySource](#AzurePostgreSQLSource.GetCopySource) + [func (a *AzurePostgreSQLSource) GetTabularSource() *TabularSource](#AzurePostgreSQLSource.GetTabularSource) + [func (a AzurePostgreSQLSource) MarshalJSON() ([]byte, error)](#AzurePostgreSQLSource.MarshalJSON) + [func (a *AzurePostgreSQLSource) UnmarshalJSON(data []byte) error](#AzurePostgreSQLSource.UnmarshalJSON) * [type AzurePostgreSQLTableDataset](#AzurePostgreSQLTableDataset) * + [func (a *AzurePostgreSQLTableDataset) GetDataset() *Dataset](#AzurePostgreSQLTableDataset.GetDataset) + [func (a AzurePostgreSQLTableDataset) MarshalJSON() ([]byte, error)](#AzurePostgreSQLTableDataset.MarshalJSON) + [func (a *AzurePostgreSQLTableDataset) UnmarshalJSON(data []byte) error](#AzurePostgreSQLTableDataset.UnmarshalJSON) * [type AzurePostgreSQLTableDatasetTypeProperties](#AzurePostgreSQLTableDatasetTypeProperties) * + [func (a AzurePostgreSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzurePostgreSQLTableDatasetTypeProperties.MarshalJSON) + [func (a *AzurePostgreSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzurePostgreSQLTableDatasetTypeProperties.UnmarshalJSON) * [type AzureQueueSink](#AzureQueueSink) * + [func (a *AzureQueueSink) GetCopySink() *CopySink](#AzureQueueSink.GetCopySink) + [func (a AzureQueueSink) MarshalJSON() ([]byte, error)](#AzureQueueSink.MarshalJSON) + [func (a *AzureQueueSink) UnmarshalJSON(data []byte) error](#AzureQueueSink.UnmarshalJSON) * [type AzureSQLDWLinkedService](#AzureSQLDWLinkedService) * + [func (a *AzureSQLDWLinkedService) GetLinkedService() *LinkedService](#AzureSQLDWLinkedService.GetLinkedService) + [func (a AzureSQLDWLinkedService) MarshalJSON() ([]byte, error)](#AzureSQLDWLinkedService.MarshalJSON) + [func (a *AzureSQLDWLinkedService) UnmarshalJSON(data []byte) error](#AzureSQLDWLinkedService.UnmarshalJSON) * [type AzureSQLDWLinkedServiceTypeProperties](#AzureSQLDWLinkedServiceTypeProperties) * + [func (a AzureSQLDWLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureSQLDWLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureSQLDWLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureSQLDWTableDataset](#AzureSQLDWTableDataset) * + [func (a *AzureSQLDWTableDataset) GetDataset() *Dataset](#AzureSQLDWTableDataset.GetDataset) + [func (a AzureSQLDWTableDataset) MarshalJSON() ([]byte, error)](#AzureSQLDWTableDataset.MarshalJSON) + [func (a *AzureSQLDWTableDataset) UnmarshalJSON(data []byte) error](#AzureSQLDWTableDataset.UnmarshalJSON) * [type AzureSQLDWTableDatasetTypeProperties](#AzureSQLDWTableDatasetTypeProperties) * + [func (a AzureSQLDWTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureSQLDWTableDatasetTypeProperties.MarshalJSON) + [func (a *AzureSQLDWTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureSQLDWTableDatasetTypeProperties.UnmarshalJSON) * [type AzureSQLDatabaseLinkedService](#AzureSQLDatabaseLinkedService) * + [func (a *AzureSQLDatabaseLinkedService) GetLinkedService() *LinkedService](#AzureSQLDatabaseLinkedService.GetLinkedService) + [func (a AzureSQLDatabaseLinkedService) MarshalJSON() ([]byte, error)](#AzureSQLDatabaseLinkedService.MarshalJSON) + [func (a *AzureSQLDatabaseLinkedService) UnmarshalJSON(data []byte) error](#AzureSQLDatabaseLinkedService.UnmarshalJSON) * [type AzureSQLDatabaseLinkedServiceTypeProperties](#AzureSQLDatabaseLinkedServiceTypeProperties) * + [func (a AzureSQLDatabaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureSQLDatabaseLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureSQLDatabaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureSQLDatabaseLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureSQLMILinkedService](#AzureSQLMILinkedService) * + [func (a *AzureSQLMILinkedService) GetLinkedService() *LinkedService](#AzureSQLMILinkedService.GetLinkedService) + [func (a AzureSQLMILinkedService) MarshalJSON() ([]byte, error)](#AzureSQLMILinkedService.MarshalJSON) + [func (a *AzureSQLMILinkedService) UnmarshalJSON(data []byte) error](#AzureSQLMILinkedService.UnmarshalJSON) * [type AzureSQLMILinkedServiceTypeProperties](#AzureSQLMILinkedServiceTypeProperties) * + [func (a AzureSQLMILinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureSQLMILinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureSQLMILinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureSQLMILinkedServiceTypeProperties.UnmarshalJSON) * [type AzureSQLMITableDataset](#AzureSQLMITableDataset) * + [func (a *AzureSQLMITableDataset) GetDataset() *Dataset](#AzureSQLMITableDataset.GetDataset) + [func (a AzureSQLMITableDataset) MarshalJSON() ([]byte, error)](#AzureSQLMITableDataset.MarshalJSON) + [func (a *AzureSQLMITableDataset) UnmarshalJSON(data []byte) error](#AzureSQLMITableDataset.UnmarshalJSON) * [type AzureSQLMITableDatasetTypeProperties](#AzureSQLMITableDatasetTypeProperties) * + [func (a AzureSQLMITableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureSQLMITableDatasetTypeProperties.MarshalJSON) + [func (a *AzureSQLMITableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureSQLMITableDatasetTypeProperties.UnmarshalJSON) * [type AzureSQLSink](#AzureSQLSink) * + [func (a *AzureSQLSink) GetCopySink() *CopySink](#AzureSQLSink.GetCopySink) + [func (a AzureSQLSink) MarshalJSON() ([]byte, error)](#AzureSQLSink.MarshalJSON) + [func (a *AzureSQLSink) UnmarshalJSON(data []byte) error](#AzureSQLSink.UnmarshalJSON) * [type AzureSQLSource](#AzureSQLSource) * + [func (a *AzureSQLSource) GetCopySource() *CopySource](#AzureSQLSource.GetCopySource) + [func (a *AzureSQLSource) GetTabularSource() *TabularSource](#AzureSQLSource.GetTabularSource) + [func (a AzureSQLSource) MarshalJSON() ([]byte, error)](#AzureSQLSource.MarshalJSON) + [func (a *AzureSQLSource) UnmarshalJSON(data []byte) error](#AzureSQLSource.UnmarshalJSON) * [type AzureSQLTableDataset](#AzureSQLTableDataset) * + [func (a *AzureSQLTableDataset) GetDataset() *Dataset](#AzureSQLTableDataset.GetDataset) + [func (a AzureSQLTableDataset) MarshalJSON() ([]byte, error)](#AzureSQLTableDataset.MarshalJSON) + [func (a *AzureSQLTableDataset) UnmarshalJSON(data []byte) error](#AzureSQLTableDataset.UnmarshalJSON) * [type AzureSQLTableDatasetTypeProperties](#AzureSQLTableDatasetTypeProperties) * + [func (a AzureSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureSQLTableDatasetTypeProperties.MarshalJSON) + [func (a *AzureSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureSQLTableDatasetTypeProperties.UnmarshalJSON) * [type AzureSearchIndexDataset](#AzureSearchIndexDataset) * + [func (a *AzureSearchIndexDataset) GetDataset() *Dataset](#AzureSearchIndexDataset.GetDataset) + [func (a AzureSearchIndexDataset) MarshalJSON() ([]byte, error)](#AzureSearchIndexDataset.MarshalJSON) + [func (a *AzureSearchIndexDataset) UnmarshalJSON(data []byte) error](#AzureSearchIndexDataset.UnmarshalJSON) * [type AzureSearchIndexDatasetTypeProperties](#AzureSearchIndexDatasetTypeProperties) * + [func (a AzureSearchIndexDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureSearchIndexDatasetTypeProperties.MarshalJSON) + [func (a *AzureSearchIndexDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureSearchIndexDatasetTypeProperties.UnmarshalJSON) * [type AzureSearchIndexSink](#AzureSearchIndexSink) * + [func (a *AzureSearchIndexSink) GetCopySink() *CopySink](#AzureSearchIndexSink.GetCopySink) + [func (a AzureSearchIndexSink) MarshalJSON() ([]byte, error)](#AzureSearchIndexSink.MarshalJSON) + [func (a *AzureSearchIndexSink) UnmarshalJSON(data []byte) error](#AzureSearchIndexSink.UnmarshalJSON) * [type AzureSearchIndexWriteBehaviorType](#AzureSearchIndexWriteBehaviorType) * + [func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBehaviorType](#PossibleAzureSearchIndexWriteBehaviorTypeValues) * [type AzureSearchLinkedService](#AzureSearchLinkedService) * + [func (a *AzureSearchLinkedService) GetLinkedService() *LinkedService](#AzureSearchLinkedService.GetLinkedService) + [func (a AzureSearchLinkedService) MarshalJSON() ([]byte, error)](#AzureSearchLinkedService.MarshalJSON) + [func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error](#AzureSearchLinkedService.UnmarshalJSON) * [type AzureSearchLinkedServiceTypeProperties](#AzureSearchLinkedServiceTypeProperties) * + [func (a AzureSearchLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureSearchLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureSearchLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureStorageLinkedService](#AzureStorageLinkedService) * + [func (a *AzureStorageLinkedService) GetLinkedService() *LinkedService](#AzureStorageLinkedService.GetLinkedService) + [func (a AzureStorageLinkedService) MarshalJSON() ([]byte, error)](#AzureStorageLinkedService.MarshalJSON) + [func (a *AzureStorageLinkedService) UnmarshalJSON(data []byte) error](#AzureStorageLinkedService.UnmarshalJSON) * [type AzureStorageLinkedServiceTypeProperties](#AzureStorageLinkedServiceTypeProperties) * + [func (a AzureStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureStorageLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureStorageLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureSynapseArtifactsLinkedService](#AzureSynapseArtifactsLinkedService) * + [func (a *AzureSynapseArtifactsLinkedService) GetLinkedService() *LinkedService](#AzureSynapseArtifactsLinkedService.GetLinkedService) + [func (a AzureSynapseArtifactsLinkedService) MarshalJSON() ([]byte, error)](#AzureSynapseArtifactsLinkedService.MarshalJSON) + [func (a *AzureSynapseArtifactsLinkedService) UnmarshalJSON(data []byte) error](#AzureSynapseArtifactsLinkedService.UnmarshalJSON) * [type AzureSynapseArtifactsLinkedServiceTypeProperties](#AzureSynapseArtifactsLinkedServiceTypeProperties) * + [func (a AzureSynapseArtifactsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#AzureSynapseArtifactsLinkedServiceTypeProperties.MarshalJSON) + [func (a *AzureSynapseArtifactsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#AzureSynapseArtifactsLinkedServiceTypeProperties.UnmarshalJSON) * [type AzureTableDataset](#AzureTableDataset) * + [func (a *AzureTableDataset) GetDataset() *Dataset](#AzureTableDataset.GetDataset) + [func (a AzureTableDataset) MarshalJSON() ([]byte, error)](#AzureTableDataset.MarshalJSON) + [func (a *AzureTableDataset) UnmarshalJSON(data []byte) error](#AzureTableDataset.UnmarshalJSON) * [type AzureTableDatasetTypeProperties](#AzureTableDatasetTypeProperties) * + [func (a AzureTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#AzureTableDatasetTypeProperties.MarshalJSON) + [func (a *AzureTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#AzureTableDatasetTypeProperties.UnmarshalJSON) * [type AzureTableSink](#AzureTableSink) * + [func (a *AzureTableSink) GetCopySink() *CopySink](#AzureTableSink.GetCopySink) + [func (a AzureTableSink) MarshalJSON() ([]byte, error)](#AzureTableSink.MarshalJSON) + [func (a *AzureTableSink) UnmarshalJSON(data []byte) error](#AzureTableSink.UnmarshalJSON) * [type AzureTableSource](#AzureTableSource) * + [func (a *AzureTableSource) GetCopySource() *CopySource](#AzureTableSource.GetCopySource) + [func (a *AzureTableSource) GetTabularSource() *TabularSource](#AzureTableSource.GetTabularSource) + [func (a AzureTableSource) MarshalJSON() ([]byte, error)](#AzureTableSource.MarshalJSON) + [func (a *AzureTableSource) UnmarshalJSON(data []byte) error](#AzureTableSource.UnmarshalJSON) * [type AzureTableStorageLinkedService](#AzureTableStorageLinkedService) * + [func (a *AzureTableStorageLinkedService) GetLinkedService() *LinkedService](#AzureTableStorageLinkedService.GetLinkedService) + [func (a AzureTableStorageLinkedService) MarshalJSON() ([]byte, error)](#AzureTableStorageLinkedService.MarshalJSON) + [func (a *AzureTableStorageLinkedService) UnmarshalJSON(data []byte) error](#AzureTableStorageLinkedService.UnmarshalJSON) * [type BigDataPoolParametrizationReference](#BigDataPoolParametrizationReference) * + [func (b BigDataPoolParametrizationReference) MarshalJSON() ([]byte, error)](#BigDataPoolParametrizationReference.MarshalJSON) + [func (b *BigDataPoolParametrizationReference) UnmarshalJSON(data []byte) error](#BigDataPoolParametrizationReference.UnmarshalJSON) * [type BigDataPoolReferenceType](#BigDataPoolReferenceType) * + [func PossibleBigDataPoolReferenceTypeValues() []BigDataPoolReferenceType](#PossibleBigDataPoolReferenceTypeValues) * [type BinaryDataset](#BinaryDataset) * + [func (b *BinaryDataset) GetDataset() *Dataset](#BinaryDataset.GetDataset) + [func (b BinaryDataset) MarshalJSON() ([]byte, error)](#BinaryDataset.MarshalJSON) + [func (b *BinaryDataset) UnmarshalJSON(data []byte) error](#BinaryDataset.UnmarshalJSON) * [type BinaryDatasetTypeProperties](#BinaryDatasetTypeProperties) * + [func (b BinaryDatasetTypeProperties) MarshalJSON() ([]byte, error)](#BinaryDatasetTypeProperties.MarshalJSON) + [func (b *BinaryDatasetTypeProperties) UnmarshalJSON(data []byte) error](#BinaryDatasetTypeProperties.UnmarshalJSON) * [type BinaryReadSettings](#BinaryReadSettings) * + [func (b *BinaryReadSettings) GetFormatReadSettings() *FormatReadSettings](#BinaryReadSettings.GetFormatReadSettings) + [func (b BinaryReadSettings) MarshalJSON() ([]byte, error)](#BinaryReadSettings.MarshalJSON) + [func (b *BinaryReadSettings) UnmarshalJSON(data []byte) error](#BinaryReadSettings.UnmarshalJSON) * [type BinarySink](#BinarySink) * + [func (b *BinarySink) GetCopySink() *CopySink](#BinarySink.GetCopySink) + [func (b BinarySink) MarshalJSON() ([]byte, error)](#BinarySink.MarshalJSON) + [func (b *BinarySink) UnmarshalJSON(data []byte) error](#BinarySink.UnmarshalJSON) * [type BinarySource](#BinarySource) * + [func (b *BinarySource) GetCopySource() *CopySource](#BinarySource.GetCopySource) + [func (b BinarySource) MarshalJSON() ([]byte, error)](#BinarySource.MarshalJSON) + [func (b *BinarySource) UnmarshalJSON(data []byte) error](#BinarySource.UnmarshalJSON) * [type BlobEventTypes](#BlobEventTypes) * + [func PossibleBlobEventTypesValues() []BlobEventTypes](#PossibleBlobEventTypesValues) * [type BlobEventsTrigger](#BlobEventsTrigger) * + [func (b *BlobEventsTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger](#BlobEventsTrigger.GetMultiplePipelineTrigger) + [func (b *BlobEventsTrigger) GetTrigger() *Trigger](#BlobEventsTrigger.GetTrigger) + [func (b BlobEventsTrigger) MarshalJSON() ([]byte, error)](#BlobEventsTrigger.MarshalJSON) + [func (b *BlobEventsTrigger) UnmarshalJSON(data []byte) error](#BlobEventsTrigger.UnmarshalJSON) * [type BlobEventsTriggerTypeProperties](#BlobEventsTriggerTypeProperties) * + [func (b BlobEventsTriggerTypeProperties) MarshalJSON() ([]byte, error)](#BlobEventsTriggerTypeProperties.MarshalJSON) + [func (b *BlobEventsTriggerTypeProperties) UnmarshalJSON(data []byte) error](#BlobEventsTriggerTypeProperties.UnmarshalJSON) * [type BlobSink](#BlobSink) * + [func (b *BlobSink) GetCopySink() *CopySink](#BlobSink.GetCopySink) + [func (b BlobSink) MarshalJSON() ([]byte, error)](#BlobSink.MarshalJSON) + [func (b *BlobSink) UnmarshalJSON(data []byte) error](#BlobSink.UnmarshalJSON) * [type BlobSource](#BlobSource) * + [func (b *BlobSource) GetCopySource() *CopySource](#BlobSource.GetCopySource) + [func (b BlobSource) MarshalJSON() ([]byte, error)](#BlobSource.MarshalJSON) + [func (b *BlobSource) UnmarshalJSON(data []byte) error](#BlobSource.UnmarshalJSON) * [type BlobTrigger](#BlobTrigger) * + [func (b *BlobTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger](#BlobTrigger.GetMultiplePipelineTrigger) + [func (b *BlobTrigger) GetTrigger() *Trigger](#BlobTrigger.GetTrigger) + [func (b BlobTrigger) MarshalJSON() ([]byte, error)](#BlobTrigger.MarshalJSON) + [func (b *BlobTrigger) UnmarshalJSON(data []byte) error](#BlobTrigger.UnmarshalJSON) * [type BlobTriggerTypeProperties](#BlobTriggerTypeProperties) * + [func (b BlobTriggerTypeProperties) MarshalJSON() ([]byte, error)](#BlobTriggerTypeProperties.MarshalJSON) + [func (b *BlobTriggerTypeProperties) UnmarshalJSON(data []byte) error](#BlobTriggerTypeProperties.UnmarshalJSON) * [type CMKIdentityDefinition](#CMKIdentityDefinition) * + [func (c CMKIdentityDefinition) MarshalJSON() ([]byte, error)](#CMKIdentityDefinition.MarshalJSON) + [func (c *CMKIdentityDefinition) UnmarshalJSON(data []byte) error](#CMKIdentityDefinition.UnmarshalJSON) * [type CassandraLinkedService](#CassandraLinkedService) * + [func (c *CassandraLinkedService) GetLinkedService() *LinkedService](#CassandraLinkedService.GetLinkedService) + [func (c CassandraLinkedService) MarshalJSON() ([]byte, error)](#CassandraLinkedService.MarshalJSON) + [func (c *CassandraLinkedService) UnmarshalJSON(data []byte) error](#CassandraLinkedService.UnmarshalJSON) * [type CassandraLinkedServiceTypeProperties](#CassandraLinkedServiceTypeProperties) * + [func (c CassandraLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#CassandraLinkedServiceTypeProperties.MarshalJSON) + [func (c *CassandraLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#CassandraLinkedServiceTypeProperties.UnmarshalJSON) * [type CassandraSource](#CassandraSource) * + [func (c *CassandraSource) GetCopySource() *CopySource](#CassandraSource.GetCopySource) + [func (c *CassandraSource) GetTabularSource() *TabularSource](#CassandraSource.GetTabularSource) + [func (c CassandraSource) MarshalJSON() ([]byte, error)](#CassandraSource.MarshalJSON) + [func (c *CassandraSource) UnmarshalJSON(data []byte) error](#CassandraSource.UnmarshalJSON) * [type CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) * + [func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels](#PossibleCassandraSourceReadConsistencyLevelsValues) * [type CassandraTableDataset](#CassandraTableDataset) * + [func (c *CassandraTableDataset) GetDataset() *Dataset](#CassandraTableDataset.GetDataset) + [func (c CassandraTableDataset) MarshalJSON() ([]byte, error)](#CassandraTableDataset.MarshalJSON) + [func (c *CassandraTableDataset) UnmarshalJSON(data []byte) error](#CassandraTableDataset.UnmarshalJSON) * [type CassandraTableDatasetTypeProperties](#CassandraTableDatasetTypeProperties) * + [func (c CassandraTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#CassandraTableDatasetTypeProperties.MarshalJSON) + [func (c *CassandraTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#CassandraTableDatasetTypeProperties.UnmarshalJSON) * [type ChainingTrigger](#ChainingTrigger) * + [func (c *ChainingTrigger) GetTrigger() *Trigger](#ChainingTrigger.GetTrigger) + [func (c ChainingTrigger) MarshalJSON() ([]byte, error)](#ChainingTrigger.MarshalJSON) + [func (c *ChainingTrigger) UnmarshalJSON(data []byte) error](#ChainingTrigger.UnmarshalJSON) * [type ChainingTriggerTypeProperties](#ChainingTriggerTypeProperties) * + [func (c ChainingTriggerTypeProperties) MarshalJSON() ([]byte, error)](#ChainingTriggerTypeProperties.MarshalJSON) + [func (c *ChainingTriggerTypeProperties) UnmarshalJSON(data []byte) error](#ChainingTriggerTypeProperties.UnmarshalJSON) * [type CloudError](#CloudError) * + [func (c CloudError) MarshalJSON() ([]byte, error)](#CloudError.MarshalJSON) + [func (c *CloudError) UnmarshalJSON(data []byte) error](#CloudError.UnmarshalJSON) * [type CloudErrorBody](#CloudErrorBody) * + [func (c CloudErrorBody) MarshalJSON() ([]byte, error)](#CloudErrorBody.MarshalJSON) + [func (c *CloudErrorBody) UnmarshalJSON(data []byte) error](#CloudErrorBody.UnmarshalJSON) * [type CmdkeySetup](#CmdkeySetup) * + [func (c *CmdkeySetup) GetCustomSetupBase() *CustomSetupBase](#CmdkeySetup.GetCustomSetupBase) + [func (c CmdkeySetup) MarshalJSON() ([]byte, error)](#CmdkeySetup.MarshalJSON) + [func (c *CmdkeySetup) UnmarshalJSON(data []byte) error](#CmdkeySetup.UnmarshalJSON) * [type CmdkeySetupTypeProperties](#CmdkeySetupTypeProperties) * + [func (c CmdkeySetupTypeProperties) MarshalJSON() ([]byte, error)](#CmdkeySetupTypeProperties.MarshalJSON) + [func (c *CmdkeySetupTypeProperties) UnmarshalJSON(data []byte) error](#CmdkeySetupTypeProperties.UnmarshalJSON) * [type CommonDataServiceForAppsEntityDataset](#CommonDataServiceForAppsEntityDataset) * + [func (c *CommonDataServiceForAppsEntityDataset) GetDataset() *Dataset](#CommonDataServiceForAppsEntityDataset.GetDataset) + [func (c CommonDataServiceForAppsEntityDataset) MarshalJSON() ([]byte, error)](#CommonDataServiceForAppsEntityDataset.MarshalJSON) + [func (c *CommonDataServiceForAppsEntityDataset) UnmarshalJSON(data []byte) error](#CommonDataServiceForAppsEntityDataset.UnmarshalJSON) * [type CommonDataServiceForAppsEntityDatasetTypeProperties](#CommonDataServiceForAppsEntityDatasetTypeProperties) * + [func (c CommonDataServiceForAppsEntityDatasetTypeProperties) MarshalJSON() ([]byte, error)](#CommonDataServiceForAppsEntityDatasetTypeProperties.MarshalJSON) + [func (c *CommonDataServiceForAppsEntityDatasetTypeProperties) UnmarshalJSON(data []byte) error](#CommonDataServiceForAppsEntityDatasetTypeProperties.UnmarshalJSON) * [type CommonDataServiceForAppsLinkedService](#CommonDataServiceForAppsLinkedService) * + [func (c *CommonDataServiceForAppsLinkedService) GetLinkedService() *LinkedService](#CommonDataServiceForAppsLinkedService.GetLinkedService) + [func (c CommonDataServiceForAppsLinkedService) MarshalJSON() ([]byte, error)](#CommonDataServiceForAppsLinkedService.MarshalJSON) + [func (c *CommonDataServiceForAppsLinkedService) UnmarshalJSON(data []byte) error](#CommonDataServiceForAppsLinkedService.UnmarshalJSON) * [type CommonDataServiceForAppsLinkedServiceTypeProperties](#CommonDataServiceForAppsLinkedServiceTypeProperties) * + [func (c CommonDataServiceForAppsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#CommonDataServiceForAppsLinkedServiceTypeProperties.MarshalJSON) + [func (c *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#CommonDataServiceForAppsLinkedServiceTypeProperties.UnmarshalJSON) * [type CommonDataServiceForAppsSink](#CommonDataServiceForAppsSink) * + [func (c *CommonDataServiceForAppsSink) GetCopySink() *CopySink](#CommonDataServiceForAppsSink.GetCopySink) + [func (c CommonDataServiceForAppsSink) MarshalJSON() ([]byte, error)](#CommonDataServiceForAppsSink.MarshalJSON) + [func (c *CommonDataServiceForAppsSink) UnmarshalJSON(data []byte) error](#CommonDataServiceForAppsSink.UnmarshalJSON) * [type CommonDataServiceForAppsSource](#CommonDataServiceForAppsSource) * + [func (c *CommonDataServiceForAppsSource) GetCopySource() *CopySource](#CommonDataServiceForAppsSource.GetCopySource) + [func (c CommonDataServiceForAppsSource) MarshalJSON() ([]byte, error)](#CommonDataServiceForAppsSource.MarshalJSON) + [func (c *CommonDataServiceForAppsSource) UnmarshalJSON(data []byte) error](#CommonDataServiceForAppsSource.UnmarshalJSON) * [type ComponentSetup](#ComponentSetup) * + [func (c *ComponentSetup) GetCustomSetupBase() *CustomSetupBase](#ComponentSetup.GetCustomSetupBase) + [func (c ComponentSetup) MarshalJSON() ([]byte, error)](#ComponentSetup.MarshalJSON) + [func (c *ComponentSetup) UnmarshalJSON(data []byte) error](#ComponentSetup.UnmarshalJSON) * [type CompressionCodec](#CompressionCodec) * + [func PossibleCompressionCodecValues() []CompressionCodec](#PossibleCompressionCodecValues) * [type CompressionReadSettings](#CompressionReadSettings) * + [func (c *CompressionReadSettings) GetCompressionReadSettings() *CompressionReadSettings](#CompressionReadSettings.GetCompressionReadSettings) + [func (c CompressionReadSettings) MarshalJSON() ([]byte, error)](#CompressionReadSettings.MarshalJSON) + [func (c *CompressionReadSettings) UnmarshalJSON(data []byte) error](#CompressionReadSettings.UnmarshalJSON) * [type CompressionReadSettingsClassification](#CompressionReadSettingsClassification) * [type ConcurLinkedService](#ConcurLinkedService) * + [func (c *ConcurLinkedService) GetLinkedService() *LinkedService](#ConcurLinkedService.GetLinkedService) + [func (c ConcurLinkedService) MarshalJSON() ([]byte, error)](#ConcurLinkedService.MarshalJSON) + [func (c *ConcurLinkedService) UnmarshalJSON(data []byte) error](#ConcurLinkedService.UnmarshalJSON) * [type ConcurLinkedServiceTypeProperties](#ConcurLinkedServiceTypeProperties) * + [func (c ConcurLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#ConcurLinkedServiceTypeProperties.MarshalJSON) + [func (c *ConcurLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#ConcurLinkedServiceTypeProperties.UnmarshalJSON) * [type ConcurObjectDataset](#ConcurObjectDataset) * + [func (c *ConcurObjectDataset) GetDataset() *Dataset](#ConcurObjectDataset.GetDataset) + [func (c ConcurObjectDataset) MarshalJSON() ([]byte, error)](#ConcurObjectDataset.MarshalJSON) + [func (c *ConcurObjectDataset) UnmarshalJSON(data []byte) error](#ConcurObjectDataset.UnmarshalJSON) * [type ConcurSource](#ConcurSource) * + [func (c *ConcurSource) GetCopySource() *CopySource](#ConcurSource.GetCopySource) + [func (c *ConcurSource) GetTabularSource() *TabularSource](#ConcurSource.GetTabularSource) + [func (c ConcurSource) MarshalJSON() ([]byte, error)](#ConcurSource.MarshalJSON) + [func (c *ConcurSource) UnmarshalJSON(data []byte) error](#ConcurSource.UnmarshalJSON) * [type ConnectionStateProperties](#ConnectionStateProperties) * + [func (c ConnectionStateProperties) MarshalJSON() ([]byte, error)](#ConnectionStateProperties.MarshalJSON) + [func (c *ConnectionStateProperties) UnmarshalJSON(data []byte) error](#ConnectionStateProperties.UnmarshalJSON) * [type ControlActivity](#ControlActivity) * + [func (c *ControlActivity) GetActivity() *Activity](#ControlActivity.GetActivity) + [func (c *ControlActivity) GetControlActivity() *ControlActivity](#ControlActivity.GetControlActivity) + [func (c ControlActivity) MarshalJSON() ([]byte, error)](#ControlActivity.MarshalJSON) + [func (c *ControlActivity) UnmarshalJSON(data []byte) error](#ControlActivity.UnmarshalJSON) * [type ControlActivityClassification](#ControlActivityClassification) * [type CopyActivity](#CopyActivity) * + [func (c *CopyActivity) GetActivity() *Activity](#CopyActivity.GetActivity) + [func (c *CopyActivity) GetExecutionActivity() *ExecutionActivity](#CopyActivity.GetExecutionActivity) + [func (c CopyActivity) MarshalJSON() ([]byte, error)](#CopyActivity.MarshalJSON) + [func (c *CopyActivity) UnmarshalJSON(data []byte) error](#CopyActivity.UnmarshalJSON) * [type CopyActivityLogSettings](#CopyActivityLogSettings) * + [func (c CopyActivityLogSettings) MarshalJSON() ([]byte, error)](#CopyActivityLogSettings.MarshalJSON) + [func (c *CopyActivityLogSettings) UnmarshalJSON(data []byte) error](#CopyActivityLogSettings.UnmarshalJSON) * [type CopyActivityTypeProperties](#CopyActivityTypeProperties) * + [func (c CopyActivityTypeProperties) MarshalJSON() ([]byte, error)](#CopyActivityTypeProperties.MarshalJSON) + [func (c *CopyActivityTypeProperties) UnmarshalJSON(data []byte) error](#CopyActivityTypeProperties.UnmarshalJSON) * [type CopyBehaviorType](#CopyBehaviorType) * + [func PossibleCopyBehaviorTypeValues() []CopyBehaviorType](#PossibleCopyBehaviorTypeValues) * [type CopySink](#CopySink) * + [func (c *CopySink) GetCopySink() *CopySink](#CopySink.GetCopySink) + [func (c CopySink) MarshalJSON() ([]byte, error)](#CopySink.MarshalJSON) + [func (c *CopySink) UnmarshalJSON(data []byte) error](#CopySink.UnmarshalJSON) * [type CopySinkClassification](#CopySinkClassification) * [type CopySource](#CopySource) * + [func (c *CopySource) GetCopySource() *CopySource](#CopySource.GetCopySource) + [func (c CopySource) MarshalJSON() ([]byte, error)](#CopySource.MarshalJSON) + [func (c *CopySource) UnmarshalJSON(data []byte) error](#CopySource.UnmarshalJSON) * [type CopySourceClassification](#CopySourceClassification) * [type CopyTranslator](#CopyTranslator) * + [func (c *CopyTranslator) GetCopyTranslator() *CopyTranslator](#CopyTranslator.GetCopyTranslator) + [func (c CopyTranslator) MarshalJSON() ([]byte, error)](#CopyTranslator.MarshalJSON) + [func (c *CopyTranslator) UnmarshalJSON(data []byte) error](#CopyTranslator.UnmarshalJSON) * [type CopyTranslatorClassification](#CopyTranslatorClassification) * [type CosmosDbConnectionMode](#CosmosDbConnectionMode) * + [func PossibleCosmosDbConnectionModeValues() []CosmosDbConnectionMode](#PossibleCosmosDbConnectionModeValues) * [type CosmosDbLinkedService](#CosmosDbLinkedService) * + [func (c *CosmosDbLinkedService) GetLinkedService() *LinkedService](#CosmosDbLinkedService.GetLinkedService) + [func (c CosmosDbLinkedService) MarshalJSON() ([]byte, error)](#CosmosDbLinkedService.MarshalJSON) + [func (c *CosmosDbLinkedService) UnmarshalJSON(data []byte) error](#CosmosDbLinkedService.UnmarshalJSON) * [type CosmosDbLinkedServiceTypeProperties](#CosmosDbLinkedServiceTypeProperties) * + [func (c CosmosDbLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#CosmosDbLinkedServiceTypeProperties.MarshalJSON) + [func (c *CosmosDbLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#CosmosDbLinkedServiceTypeProperties.UnmarshalJSON) * [type CosmosDbMongoDbAPICollectionDataset](#CosmosDbMongoDbAPICollectionDataset) * + [func (c *CosmosDbMongoDbAPICollectionDataset) GetDataset() *Dataset](#CosmosDbMongoDbAPICollectionDataset.GetDataset) + [func (c CosmosDbMongoDbAPICollectionDataset) MarshalJSON() ([]byte, error)](#CosmosDbMongoDbAPICollectionDataset.MarshalJSON) + [func (c *CosmosDbMongoDbAPICollectionDataset) UnmarshalJSON(data []byte) error](#CosmosDbMongoDbAPICollectionDataset.UnmarshalJSON) * [type CosmosDbMongoDbAPICollectionDatasetTypeProperties](#CosmosDbMongoDbAPICollectionDatasetTypeProperties) * + [func (c CosmosDbMongoDbAPICollectionDatasetTypeProperties) MarshalJSON() ([]byte, error)](#CosmosDbMongoDbAPICollectionDatasetTypeProperties.MarshalJSON) + [func (c *CosmosDbMongoDbAPICollectionDatasetTypeProperties) UnmarshalJSON(data []byte) error](#CosmosDbMongoDbAPICollectionDatasetTypeProperties.UnmarshalJSON) * [type CosmosDbMongoDbAPILinkedService](#CosmosDbMongoDbAPILinkedService) * + [func (c *CosmosDbMongoDbAPILinkedService) GetLinkedService() *LinkedService](#CosmosDbMongoDbAPILinkedService.GetLinkedService) + [func (c CosmosDbMongoDbAPILinkedService) MarshalJSON() ([]byte, error)](#CosmosDbMongoDbAPILinkedService.MarshalJSON) + [func (c *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(data []byte) error](#CosmosDbMongoDbAPILinkedService.UnmarshalJSON) * [type CosmosDbMongoDbAPILinkedServiceTypeProperties](#CosmosDbMongoDbAPILinkedServiceTypeProperties) * + [func (c CosmosDbMongoDbAPILinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#CosmosDbMongoDbAPILinkedServiceTypeProperties.MarshalJSON) + [func (c *CosmosDbMongoDbAPILinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#CosmosDbMongoDbAPILinkedServiceTypeProperties.UnmarshalJSON) * [type CosmosDbMongoDbAPISink](#CosmosDbMongoDbAPISink) * + [func (c *CosmosDbMongoDbAPISink) GetCopySink() *CopySink](#CosmosDbMongoDbAPISink.GetCopySink) + [func (c CosmosDbMongoDbAPISink) MarshalJSON() ([]byte, error)](#CosmosDbMongoDbAPISink.MarshalJSON) + [func (c *CosmosDbMongoDbAPISink) UnmarshalJSON(data []byte) error](#CosmosDbMongoDbAPISink.UnmarshalJSON) * [type CosmosDbMongoDbAPISource](#CosmosDbMongoDbAPISource) * + [func (c *CosmosDbMongoDbAPISource) GetCopySource() *CopySource](#CosmosDbMongoDbAPISource.GetCopySource) + [func (c CosmosDbMongoDbAPISource) MarshalJSON() ([]byte, error)](#CosmosDbMongoDbAPISource.MarshalJSON) + [func (c *CosmosDbMongoDbAPISource) UnmarshalJSON(data []byte) error](#CosmosDbMongoDbAPISource.UnmarshalJSON) * [type CosmosDbSQLAPICollectionDataset](#CosmosDbSQLAPICollectionDataset) * + [func (c *CosmosDbSQLAPICollectionDataset) GetDataset() *Dataset](#CosmosDbSQLAPICollectionDataset.GetDataset) + [func (c CosmosDbSQLAPICollectionDataset) MarshalJSON() ([]byte, error)](#CosmosDbSQLAPICollectionDataset.MarshalJSON) + [func (c *CosmosDbSQLAPICollectionDataset) UnmarshalJSON(data []byte) error](#CosmosDbSQLAPICollectionDataset.UnmarshalJSON) * [type CosmosDbSQLAPICollectionDatasetTypeProperties](#CosmosDbSQLAPICollectionDatasetTypeProperties) * + [func (c CosmosDbSQLAPICollectionDatasetTypeProperties) MarshalJSON() ([]byte, error)](#CosmosDbSQLAPICollectionDatasetTypeProperties.MarshalJSON) + [func (c *CosmosDbSQLAPICollectionDatasetTypeProperties) UnmarshalJSON(data []byte) error](#CosmosDbSQLAPICollectionDatasetTypeProperties.UnmarshalJSON) * [type CosmosDbSQLAPISink](#CosmosDbSQLAPISink) * + [func (c *CosmosDbSQLAPISink) GetCopySink() *CopySink](#CosmosDbSQLAPISink.GetCopySink) + [func (c CosmosDbSQLAPISink) MarshalJSON() ([]byte, error)](#CosmosDbSQLAPISink.MarshalJSON) + [func (c *CosmosDbSQLAPISink) UnmarshalJSON(data []byte) error](#CosmosDbSQLAPISink.UnmarshalJSON) * [type CosmosDbSQLAPISource](#CosmosDbSQLAPISource) * + [func (c *CosmosDbSQLAPISource) GetCopySource() *CopySource](#CosmosDbSQLAPISource.GetCopySource) + [func (c CosmosDbSQLAPISource) MarshalJSON() ([]byte, error)](#CosmosDbSQLAPISource.MarshalJSON) + [func (c *CosmosDbSQLAPISource) UnmarshalJSON(data []byte) error](#CosmosDbSQLAPISource.UnmarshalJSON) * [type CosmosDbServicePrincipalCredentialType](#CosmosDbServicePrincipalCredentialType) * + [func PossibleCosmosDbServicePrincipalCredentialTypeValues() []CosmosDbServicePrincipalCredentialType](#PossibleCosmosDbServicePrincipalCredentialTypeValues) * [type CouchbaseLinkedService](#CouchbaseLinkedService) * + [func (c *CouchbaseLinkedService) GetLinkedService() *LinkedService](#CouchbaseLinkedService.GetLinkedService) + [func (c CouchbaseLinkedService) MarshalJSON() ([]byte, error)](#CouchbaseLinkedService.MarshalJSON) + [func (c *CouchbaseLinkedService) UnmarshalJSON(data []byte) error](#CouchbaseLinkedService.UnmarshalJSON) * [type CouchbaseLinkedServiceTypeProperties](#CouchbaseLinkedServiceTypeProperties) * + [func (c CouchbaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#CouchbaseLinkedServiceTypeProperties.MarshalJSON) + [func (c *CouchbaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#CouchbaseLinkedServiceTypeProperties.UnmarshalJSON) * [type CouchbaseSource](#CouchbaseSource) * + [func (c *CouchbaseSource) GetCopySource() *CopySource](#CouchbaseSource.GetCopySource) + [func (c *CouchbaseSource) GetTabularSource() *TabularSource](#CouchbaseSource.GetTabularSource) + [func (c CouchbaseSource) MarshalJSON() ([]byte, error)](#CouchbaseSource.MarshalJSON) + [func (c *CouchbaseSource) UnmarshalJSON(data []byte) error](#CouchbaseSource.UnmarshalJSON) * [type CouchbaseTableDataset](#CouchbaseTableDataset) * + [func (c *CouchbaseTableDataset) GetDataset() *Dataset](#CouchbaseTableDataset.GetDataset) + [func (c CouchbaseTableDataset) MarshalJSON() ([]byte, error)](#CouchbaseTableDataset.MarshalJSON) + [func (c *CouchbaseTableDataset) UnmarshalJSON(data []byte) error](#CouchbaseTableDataset.UnmarshalJSON) * [type CreateDataFlowDebugSessionRequest](#CreateDataFlowDebugSessionRequest) * + [func (c CreateDataFlowDebugSessionRequest) MarshalJSON() ([]byte, error)](#CreateDataFlowDebugSessionRequest.MarshalJSON) + [func (c *CreateDataFlowDebugSessionRequest) UnmarshalJSON(data []byte) error](#CreateDataFlowDebugSessionRequest.UnmarshalJSON) * [type CreateDataFlowDebugSessionResponse](#CreateDataFlowDebugSessionResponse) * + [func (c CreateDataFlowDebugSessionResponse) MarshalJSON() ([]byte, error)](#CreateDataFlowDebugSessionResponse.MarshalJSON) + [func (c *CreateDataFlowDebugSessionResponse) UnmarshalJSON(data []byte) error](#CreateDataFlowDebugSessionResponse.UnmarshalJSON) * [type CreateLinkedIntegrationRuntimeRequest](#CreateLinkedIntegrationRuntimeRequest) * + [func (c CreateLinkedIntegrationRuntimeRequest) MarshalJSON() ([]byte, error)](#CreateLinkedIntegrationRuntimeRequest.MarshalJSON) + [func (c *CreateLinkedIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error](#CreateLinkedIntegrationRuntimeRequest.UnmarshalJSON) * [type CreateRunResponse](#CreateRunResponse) * + [func (c CreateRunResponse) MarshalJSON() ([]byte, error)](#CreateRunResponse.MarshalJSON) + [func (c *CreateRunResponse) UnmarshalJSON(data []byte) error](#CreateRunResponse.UnmarshalJSON) * [type Credential](#Credential) * + [func (c *Credential) GetCredential() *Credential](#Credential.GetCredential) + [func (c Credential) MarshalJSON() ([]byte, error)](#Credential.MarshalJSON) + [func (c *Credential) UnmarshalJSON(data []byte) error](#Credential.UnmarshalJSON) * [type CredentialClassification](#CredentialClassification) * [type CredentialReference](#CredentialReference) * + [func (c CredentialReference) MarshalJSON() ([]byte, error)](#CredentialReference.MarshalJSON) + [func (c *CredentialReference) UnmarshalJSON(data []byte) error](#CredentialReference.UnmarshalJSON) * [type CredentialReferenceType](#CredentialReferenceType) * + [func PossibleCredentialReferenceTypeValues() []CredentialReferenceType](#PossibleCredentialReferenceTypeValues) * [type CredentialResource](#CredentialResource) * + [func (c CredentialResource) MarshalJSON() ([]byte, error)](#CredentialResource.MarshalJSON) + [func (c *CredentialResource) UnmarshalJSON(data []byte) error](#CredentialResource.UnmarshalJSON) * [type CustomActivity](#CustomActivity) * + [func (c *CustomActivity) GetActivity() *Activity](#CustomActivity.GetActivity) + [func (c *CustomActivity) GetExecutionActivity() *ExecutionActivity](#CustomActivity.GetExecutionActivity) + [func (c CustomActivity) MarshalJSON() ([]byte, error)](#CustomActivity.MarshalJSON) + [func (c *CustomActivity) UnmarshalJSON(data []byte) error](#CustomActivity.UnmarshalJSON) * [type CustomActivityReferenceObject](#CustomActivityReferenceObject) * + [func (c CustomActivityReferenceObject) MarshalJSON() ([]byte, error)](#CustomActivityReferenceObject.MarshalJSON) + [func (c *CustomActivityReferenceObject) UnmarshalJSON(data []byte) error](#CustomActivityReferenceObject.UnmarshalJSON) * [type CustomActivityTypeProperties](#CustomActivityTypeProperties) * + [func (c CustomActivityTypeProperties) MarshalJSON() ([]byte, error)](#CustomActivityTypeProperties.MarshalJSON) + [func (c *CustomActivityTypeProperties) UnmarshalJSON(data []byte) error](#CustomActivityTypeProperties.UnmarshalJSON) * [type CustomDataSourceLinkedService](#CustomDataSourceLinkedService) * + [func (c *CustomDataSourceLinkedService) GetLinkedService() *LinkedService](#CustomDataSourceLinkedService.GetLinkedService) + [func (c CustomDataSourceLinkedService) MarshalJSON() ([]byte, error)](#CustomDataSourceLinkedService.MarshalJSON) + [func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error](#CustomDataSourceLinkedService.UnmarshalJSON) * [type CustomDataset](#CustomDataset) * + [func (c *CustomDataset) GetDataset() *Dataset](#CustomDataset.GetDataset) + [func (c CustomDataset) MarshalJSON() ([]byte, error)](#CustomDataset.MarshalJSON) + [func (c *CustomDataset) UnmarshalJSON(data []byte) error](#CustomDataset.UnmarshalJSON) * [type CustomEventsTrigger](#CustomEventsTrigger) * + [func (c *CustomEventsTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger](#CustomEventsTrigger.GetMultiplePipelineTrigger) + [func (c *CustomEventsTrigger) GetTrigger() *Trigger](#CustomEventsTrigger.GetTrigger) + [func (c CustomEventsTrigger) MarshalJSON() ([]byte, error)](#CustomEventsTrigger.MarshalJSON) + [func (c *CustomEventsTrigger) UnmarshalJSON(data []byte) error](#CustomEventsTrigger.UnmarshalJSON) * [type CustomEventsTriggerTypeProperties](#CustomEventsTriggerTypeProperties) * + [func (c CustomEventsTriggerTypeProperties) MarshalJSON() ([]byte, error)](#CustomEventsTriggerTypeProperties.MarshalJSON) + [func (c *CustomEventsTriggerTypeProperties) UnmarshalJSON(data []byte) error](#CustomEventsTriggerTypeProperties.UnmarshalJSON) * [type CustomSetupBase](#CustomSetupBase) * + [func (c *CustomSetupBase) GetCustomSetupBase() *CustomSetupBase](#CustomSetupBase.GetCustomSetupBase) + [func (c CustomSetupBase) MarshalJSON() ([]byte, error)](#CustomSetupBase.MarshalJSON) + [func (c *CustomSetupBase) UnmarshalJSON(data []byte) error](#CustomSetupBase.UnmarshalJSON) * [type CustomSetupBaseClassification](#CustomSetupBaseClassification) * [type DWCopyCommandDefaultValue](#DWCopyCommandDefaultValue) * + [func (d DWCopyCommandDefaultValue) MarshalJSON() ([]byte, error)](#DWCopyCommandDefaultValue.MarshalJSON) + [func (d *DWCopyCommandDefaultValue) UnmarshalJSON(data []byte) error](#DWCopyCommandDefaultValue.UnmarshalJSON) * [type DWCopyCommandSettings](#DWCopyCommandSettings) * + [func (d DWCopyCommandSettings) MarshalJSON() ([]byte, error)](#DWCopyCommandSettings.MarshalJSON) + [func (d *DWCopyCommandSettings) UnmarshalJSON(data []byte) error](#DWCopyCommandSettings.UnmarshalJSON) * [type DataFlow](#DataFlow) * + [func (d *DataFlow) GetDataFlow() *DataFlow](#DataFlow.GetDataFlow) + [func (d DataFlow) MarshalJSON() ([]byte, error)](#DataFlow.MarshalJSON) + [func (d *DataFlow) UnmarshalJSON(data []byte) error](#DataFlow.UnmarshalJSON) * [type DataFlowClassification](#DataFlowClassification) * [type DataFlowComputeType](#DataFlowComputeType) * + [func PossibleDataFlowComputeTypeValues() []DataFlowComputeType](#PossibleDataFlowComputeTypeValues) * [type DataFlowDebugCommandPayload](#DataFlowDebugCommandPayload) * + [func (d DataFlowDebugCommandPayload) MarshalJSON() ([]byte, error)](#DataFlowDebugCommandPayload.MarshalJSON) + [func (d *DataFlowDebugCommandPayload) UnmarshalJSON(data []byte) error](#DataFlowDebugCommandPayload.UnmarshalJSON) * [type DataFlowDebugCommandRequest](#DataFlowDebugCommandRequest) * + [func (d DataFlowDebugCommandRequest) MarshalJSON() ([]byte, error)](#DataFlowDebugCommandRequest.MarshalJSON) + [func (d *DataFlowDebugCommandRequest) UnmarshalJSON(data []byte) error](#DataFlowDebugCommandRequest.UnmarshalJSON) * [type DataFlowDebugCommandResponse](#DataFlowDebugCommandResponse) * + [func (d DataFlowDebugCommandResponse) MarshalJSON() ([]byte, error)](#DataFlowDebugCommandResponse.MarshalJSON) + [func (d *DataFlowDebugCommandResponse) UnmarshalJSON(data []byte) error](#DataFlowDebugCommandResponse.UnmarshalJSON) * [type DataFlowDebugCommandType](#DataFlowDebugCommandType) * + [func PossibleDataFlowDebugCommandTypeValues() []DataFlowDebugCommandType](#PossibleDataFlowDebugCommandTypeValues) * [type DataFlowDebugPackage](#DataFlowDebugPackage) * + [func (d DataFlowDebugPackage) MarshalJSON() ([]byte, error)](#DataFlowDebugPackage.MarshalJSON) + [func (d *DataFlowDebugPackage) UnmarshalJSON(data []byte) error](#DataFlowDebugPackage.UnmarshalJSON) * [type DataFlowDebugPackageDebugSettings](#DataFlowDebugPackageDebugSettings) * + [func (d DataFlowDebugPackageDebugSettings) MarshalJSON() ([]byte, error)](#DataFlowDebugPackageDebugSettings.MarshalJSON) + [func (d *DataFlowDebugPackageDebugSettings) UnmarshalJSON(data []byte) error](#DataFlowDebugPackageDebugSettings.UnmarshalJSON) * [type DataFlowDebugResource](#DataFlowDebugResource) * + [func (d DataFlowDebugResource) MarshalJSON() ([]byte, error)](#DataFlowDebugResource.MarshalJSON) + [func (d *DataFlowDebugResource) UnmarshalJSON(data []byte) error](#DataFlowDebugResource.UnmarshalJSON) * [type DataFlowDebugSessionClient](#DataFlowDebugSessionClient) * + [func NewDataFlowDebugSessionClient(subscriptionID string, credential azcore.TokenCredential, ...) (*DataFlowDebugSessionClient, error)](#NewDataFlowDebugSessionClient) * + [func (client *DataFlowDebugSessionClient) AddDataFlow(ctx context.Context, resourceGroupName string, factoryName string, ...) (DataFlowDebugSessionClientAddDataFlowResponse, error)](#DataFlowDebugSessionClient.AddDataFlow) + [func (client *DataFlowDebugSessionClient) BeginCreate(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[DataFlowDebugSessionClientCreateResponse], error)](#DataFlowDebugSessionClient.BeginCreate) + [func (client *DataFlowDebugSessionClient) BeginExecuteCommand(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[DataFlowDebugSessionClientExecuteCommandResponse], error)](#DataFlowDebugSessionClient.BeginExecuteCommand) + [func (client *DataFlowDebugSessionClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (DataFlowDebugSessionClientDeleteResponse, error)](#DataFlowDebugSessionClient.Delete) + [func (client *DataFlowDebugSessionClient) NewQueryByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[DataFlowDebugSessionClientQueryByFactoryResponse]](#DataFlowDebugSessionClient.NewQueryByFactoryPager) * [type DataFlowDebugSessionClientAddDataFlowOptions](#DataFlowDebugSessionClientAddDataFlowOptions) * [type DataFlowDebugSessionClientAddDataFlowResponse](#DataFlowDebugSessionClientAddDataFlowResponse) * [type DataFlowDebugSessionClientBeginCreateOptions](#DataFlowDebugSessionClientBeginCreateOptions) * [type DataFlowDebugSessionClientBeginExecuteCommandOptions](#DataFlowDebugSessionClientBeginExecuteCommandOptions) * [type DataFlowDebugSessionClientCreateResponse](#DataFlowDebugSessionClientCreateResponse) * [type DataFlowDebugSessionClientDeleteOptions](#DataFlowDebugSessionClientDeleteOptions) * [type DataFlowDebugSessionClientDeleteResponse](#DataFlowDebugSessionClientDeleteResponse) * [type DataFlowDebugSessionClientExecuteCommandResponse](#DataFlowDebugSessionClientExecuteCommandResponse) * [type DataFlowDebugSessionClientQueryByFactoryOptions](#DataFlowDebugSessionClientQueryByFactoryOptions) * [type DataFlowDebugSessionClientQueryByFactoryResponse](#DataFlowDebugSessionClientQueryByFactoryResponse) * [type DataFlowDebugSessionInfo](#DataFlowDebugSessionInfo) * + [func (d DataFlowDebugSessionInfo) MarshalJSON() ([]byte, error)](#DataFlowDebugSessionInfo.MarshalJSON) + [func (d *DataFlowDebugSessionInfo) UnmarshalJSON(data []byte) error](#DataFlowDebugSessionInfo.UnmarshalJSON) * [type DataFlowFolder](#DataFlowFolder) * + [func (d DataFlowFolder) MarshalJSON() ([]byte, error)](#DataFlowFolder.MarshalJSON) + [func (d *DataFlowFolder) UnmarshalJSON(data []byte) error](#DataFlowFolder.UnmarshalJSON) * [type DataFlowListResponse](#DataFlowListResponse) * + [func (d DataFlowListResponse) MarshalJSON() ([]byte, error)](#DataFlowListResponse.MarshalJSON) + [func (d *DataFlowListResponse) UnmarshalJSON(data []byte) error](#DataFlowListResponse.UnmarshalJSON) * [type DataFlowReference](#DataFlowReference) * + [func (d DataFlowReference) MarshalJSON() ([]byte, error)](#DataFlowReference.MarshalJSON) + [func (d *DataFlowReference) UnmarshalJSON(data []byte) error](#DataFlowReference.UnmarshalJSON) * [type DataFlowReferenceType](#DataFlowReferenceType) * + [func PossibleDataFlowReferenceTypeValues() []DataFlowReferenceType](#PossibleDataFlowReferenceTypeValues) * [type DataFlowResource](#DataFlowResource) * + [func (d DataFlowResource) MarshalJSON() ([]byte, error)](#DataFlowResource.MarshalJSON) + [func (d *DataFlowResource) UnmarshalJSON(data []byte) error](#DataFlowResource.UnmarshalJSON) * [type DataFlowSink](#DataFlowSink) * + [func (d DataFlowSink) MarshalJSON() ([]byte, error)](#DataFlowSink.MarshalJSON) + [func (d *DataFlowSink) UnmarshalJSON(data []byte) error](#DataFlowSink.UnmarshalJSON) * [type DataFlowSource](#DataFlowSource) * + [func (d DataFlowSource) MarshalJSON() ([]byte, error)](#DataFlowSource.MarshalJSON) + [func (d *DataFlowSource) UnmarshalJSON(data []byte) error](#DataFlowSource.UnmarshalJSON) * [type DataFlowSourceSetting](#DataFlowSourceSetting) * + [func (d DataFlowSourceSetting) MarshalJSON() ([]byte, error)](#DataFlowSourceSetting.MarshalJSON) + [func (d *DataFlowSourceSetting) UnmarshalJSON(data []byte) error](#DataFlowSourceSetting.UnmarshalJSON) * [type DataFlowStagingInfo](#DataFlowStagingInfo) * + [func (d DataFlowStagingInfo) MarshalJSON() ([]byte, error)](#DataFlowStagingInfo.MarshalJSON) + [func (d *DataFlowStagingInfo) UnmarshalJSON(data []byte) error](#DataFlowStagingInfo.UnmarshalJSON) * [type DataFlowsClient](#DataFlowsClient) * + [func NewDataFlowsClient(subscriptionID string, credential azcore.TokenCredential, ...) (*DataFlowsClient, error)](#NewDataFlowsClient) * + [func (client *DataFlowsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (DataFlowsClientCreateOrUpdateResponse, error)](#DataFlowsClient.CreateOrUpdate) + [func (client *DataFlowsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (DataFlowsClientDeleteResponse, error)](#DataFlowsClient.Delete) + [func (client *DataFlowsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (DataFlowsClientGetResponse, error)](#DataFlowsClient.Get) + [func (client *DataFlowsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[DataFlowsClientListByFactoryResponse]](#DataFlowsClient.NewListByFactoryPager) * [type DataFlowsClientCreateOrUpdateOptions](#DataFlowsClientCreateOrUpdateOptions) * [type DataFlowsClientCreateOrUpdateResponse](#DataFlowsClientCreateOrUpdateResponse) * [type DataFlowsClientDeleteOptions](#DataFlowsClientDeleteOptions) * [type DataFlowsClientDeleteResponse](#DataFlowsClientDeleteResponse) * [type DataFlowsClientGetOptions](#DataFlowsClientGetOptions) * [type DataFlowsClientGetResponse](#DataFlowsClientGetResponse) * [type DataFlowsClientListByFactoryOptions](#DataFlowsClientListByFactoryOptions) * [type DataFlowsClientListByFactoryResponse](#DataFlowsClientListByFactoryResponse) * [type DataLakeAnalyticsUSQLActivity](#DataLakeAnalyticsUSQLActivity) * + [func (d *DataLakeAnalyticsUSQLActivity) GetActivity() *Activity](#DataLakeAnalyticsUSQLActivity.GetActivity) + [func (d *DataLakeAnalyticsUSQLActivity) GetExecutionActivity() *ExecutionActivity](#DataLakeAnalyticsUSQLActivity.GetExecutionActivity) + [func (d DataLakeAnalyticsUSQLActivity) MarshalJSON() ([]byte, error)](#DataLakeAnalyticsUSQLActivity.MarshalJSON) + [func (d *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(data []byte) error](#DataLakeAnalyticsUSQLActivity.UnmarshalJSON) * [type DataLakeAnalyticsUSQLActivityTypeProperties](#DataLakeAnalyticsUSQLActivityTypeProperties) * + [func (d DataLakeAnalyticsUSQLActivityTypeProperties) MarshalJSON() ([]byte, error)](#DataLakeAnalyticsUSQLActivityTypeProperties.MarshalJSON) + [func (d *DataLakeAnalyticsUSQLActivityTypeProperties) UnmarshalJSON(data []byte) error](#DataLakeAnalyticsUSQLActivityTypeProperties.UnmarshalJSON) * [type DatabricksNotebookActivity](#DatabricksNotebookActivity) * + [func (d *DatabricksNotebookActivity) GetActivity() *Activity](#DatabricksNotebookActivity.GetActivity) + [func (d *DatabricksNotebookActivity) GetExecutionActivity() *ExecutionActivity](#DatabricksNotebookActivity.GetExecutionActivity) + [func (d DatabricksNotebookActivity) MarshalJSON() ([]byte, error)](#DatabricksNotebookActivity.MarshalJSON) + [func (d *DatabricksNotebookActivity) UnmarshalJSON(data []byte) error](#DatabricksNotebookActivity.UnmarshalJSON) * [type DatabricksNotebookActivityTypeProperties](#DatabricksNotebookActivityTypeProperties) * + [func (d DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error)](#DatabricksNotebookActivityTypeProperties.MarshalJSON) + [func (d *DatabricksNotebookActivityTypeProperties) UnmarshalJSON(data []byte) error](#DatabricksNotebookActivityTypeProperties.UnmarshalJSON) * [type DatabricksSparkJarActivity](#DatabricksSparkJarActivity) * + [func (d *DatabricksSparkJarActivity) GetActivity() *Activity](#DatabricksSparkJarActivity.GetActivity) + [func (d *DatabricksSparkJarActivity) GetExecutionActivity() *ExecutionActivity](#DatabricksSparkJarActivity.GetExecutionActivity) + [func (d DatabricksSparkJarActivity) MarshalJSON() ([]byte, error)](#DatabricksSparkJarActivity.MarshalJSON) + [func (d *DatabricksSparkJarActivity) UnmarshalJSON(data []byte) error](#DatabricksSparkJarActivity.UnmarshalJSON) * [type DatabricksSparkJarActivityTypeProperties](#DatabricksSparkJarActivityTypeProperties) * + [func (d DatabricksSparkJarActivityTypeProperties) MarshalJSON() ([]byte, error)](#DatabricksSparkJarActivityTypeProperties.MarshalJSON) + [func (d *DatabricksSparkJarActivityTypeProperties) UnmarshalJSON(data []byte) error](#DatabricksSparkJarActivityTypeProperties.UnmarshalJSON) * [type DatabricksSparkPythonActivity](#DatabricksSparkPythonActivity) * + [func (d *DatabricksSparkPythonActivity) GetActivity() *Activity](#DatabricksSparkPythonActivity.GetActivity) + [func (d *DatabricksSparkPythonActivity) GetExecutionActivity() *ExecutionActivity](#DatabricksSparkPythonActivity.GetExecutionActivity) + [func (d DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error)](#DatabricksSparkPythonActivity.MarshalJSON) + [func (d *DatabricksSparkPythonActivity) UnmarshalJSON(data []byte) error](#DatabricksSparkPythonActivity.UnmarshalJSON) * [type DatabricksSparkPythonActivityTypeProperties](#DatabricksSparkPythonActivityTypeProperties) * + [func (d DatabricksSparkPythonActivityTypeProperties) MarshalJSON() ([]byte, error)](#DatabricksSparkPythonActivityTypeProperties.MarshalJSON) + [func (d *DatabricksSparkPythonActivityTypeProperties) UnmarshalJSON(data []byte) error](#DatabricksSparkPythonActivityTypeProperties.UnmarshalJSON) * [type Dataset](#Dataset) * + [func (d *Dataset) GetDataset() *Dataset](#Dataset.GetDataset) + [func (d Dataset) MarshalJSON() ([]byte, error)](#Dataset.MarshalJSON) + [func (d *Dataset) UnmarshalJSON(data []byte) error](#Dataset.UnmarshalJSON) * [type DatasetClassification](#DatasetClassification) * [type DatasetCompression](#DatasetCompression) * + [func (d DatasetCompression) MarshalJSON() ([]byte, error)](#DatasetCompression.MarshalJSON) + [func (d *DatasetCompression) UnmarshalJSON(data []byte) error](#DatasetCompression.UnmarshalJSON) * [type DatasetCompressionLevel](#DatasetCompressionLevel) * + [func PossibleDatasetCompressionLevelValues() []DatasetCompressionLevel](#PossibleDatasetCompressionLevelValues) * [type DatasetDataElement](#DatasetDataElement) * + [func (d DatasetDataElement) MarshalJSON() ([]byte, error)](#DatasetDataElement.MarshalJSON) + [func (d *DatasetDataElement) UnmarshalJSON(data []byte) error](#DatasetDataElement.UnmarshalJSON) * [type DatasetDebugResource](#DatasetDebugResource) * + [func (d DatasetDebugResource) MarshalJSON() ([]byte, error)](#DatasetDebugResource.MarshalJSON) + [func (d *DatasetDebugResource) UnmarshalJSON(data []byte) error](#DatasetDebugResource.UnmarshalJSON) * [type DatasetFolder](#DatasetFolder) * + [func (d DatasetFolder) MarshalJSON() ([]byte, error)](#DatasetFolder.MarshalJSON) + [func (d *DatasetFolder) UnmarshalJSON(data []byte) error](#DatasetFolder.UnmarshalJSON) * [type DatasetListResponse](#DatasetListResponse) * + [func (d DatasetListResponse) MarshalJSON() ([]byte, error)](#DatasetListResponse.MarshalJSON) + [func (d *DatasetListResponse) UnmarshalJSON(data []byte) error](#DatasetListResponse.UnmarshalJSON) * [type DatasetLocation](#DatasetLocation) * + [func (d *DatasetLocation) GetDatasetLocation() *DatasetLocation](#DatasetLocation.GetDatasetLocation) + [func (d DatasetLocation) MarshalJSON() ([]byte, error)](#DatasetLocation.MarshalJSON) + [func (d *DatasetLocation) UnmarshalJSON(data []byte) error](#DatasetLocation.UnmarshalJSON) * [type DatasetLocationClassification](#DatasetLocationClassification) * [type DatasetReference](#DatasetReference) * + [func (d DatasetReference) MarshalJSON() ([]byte, error)](#DatasetReference.MarshalJSON) + [func (d *DatasetReference) UnmarshalJSON(data []byte) error](#DatasetReference.UnmarshalJSON) * [type DatasetReferenceType](#DatasetReferenceType) * + [func PossibleDatasetReferenceTypeValues() []DatasetReferenceType](#PossibleDatasetReferenceTypeValues) * [type DatasetResource](#DatasetResource) * + [func (d DatasetResource) MarshalJSON() ([]byte, error)](#DatasetResource.MarshalJSON) + [func (d *DatasetResource) UnmarshalJSON(data []byte) error](#DatasetResource.UnmarshalJSON) * [type DatasetSchemaDataElement](#DatasetSchemaDataElement) * + [func (d DatasetSchemaDataElement) MarshalJSON() ([]byte, error)](#DatasetSchemaDataElement.MarshalJSON) + [func (d *DatasetSchemaDataElement) UnmarshalJSON(data []byte) error](#DatasetSchemaDataElement.UnmarshalJSON) * [type DatasetStorageFormat](#DatasetStorageFormat) * + [func (d *DatasetStorageFormat) GetDatasetStorageFormat() *DatasetStorageFormat](#DatasetStorageFormat.GetDatasetStorageFormat) + [func (d DatasetStorageFormat) MarshalJSON() ([]byte, error)](#DatasetStorageFormat.MarshalJSON) + [func (d *DatasetStorageFormat) UnmarshalJSON(data []byte) error](#DatasetStorageFormat.UnmarshalJSON) * [type DatasetStorageFormatClassification](#DatasetStorageFormatClassification) * [type DatasetsClient](#DatasetsClient) * + [func NewDatasetsClient(subscriptionID string, credential azcore.TokenCredential, ...) (*DatasetsClient, error)](#NewDatasetsClient) * + [func (client *DatasetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (DatasetsClientCreateOrUpdateResponse, error)](#DatasetsClient.CreateOrUpdate) + [func (client *DatasetsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (DatasetsClientDeleteResponse, error)](#DatasetsClient.Delete) + [func (client *DatasetsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (DatasetsClientGetResponse, error)](#DatasetsClient.Get) + [func (client *DatasetsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[DatasetsClientListByFactoryResponse]](#DatasetsClient.NewListByFactoryPager) * [type DatasetsClientCreateOrUpdateOptions](#DatasetsClientCreateOrUpdateOptions) * [type DatasetsClientCreateOrUpdateResponse](#DatasetsClientCreateOrUpdateResponse) * [type DatasetsClientDeleteOptions](#DatasetsClientDeleteOptions) * [type DatasetsClientDeleteResponse](#DatasetsClientDeleteResponse) * [type DatasetsClientGetOptions](#DatasetsClientGetOptions) * [type DatasetsClientGetResponse](#DatasetsClientGetResponse) * [type DatasetsClientListByFactoryOptions](#DatasetsClientListByFactoryOptions) * [type DatasetsClientListByFactoryResponse](#DatasetsClientListByFactoryResponse) * [type DataworldLinkedService](#DataworldLinkedService) * + [func (d *DataworldLinkedService) GetLinkedService() *LinkedService](#DataworldLinkedService.GetLinkedService) + [func (d DataworldLinkedService) MarshalJSON() ([]byte, error)](#DataworldLinkedService.MarshalJSON) + [func (d *DataworldLinkedService) UnmarshalJSON(data []byte) error](#DataworldLinkedService.UnmarshalJSON) * [type DataworldLinkedServiceTypeProperties](#DataworldLinkedServiceTypeProperties) * + [func (d DataworldLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#DataworldLinkedServiceTypeProperties.MarshalJSON) + [func (d *DataworldLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#DataworldLinkedServiceTypeProperties.UnmarshalJSON) * [type DayOfWeek](#DayOfWeek) * + [func PossibleDayOfWeekValues() []DayOfWeek](#PossibleDayOfWeekValues) * [type DaysOfWeek](#DaysOfWeek) * + [func PossibleDaysOfWeekValues() []DaysOfWeek](#PossibleDaysOfWeekValues) * [type Db2AuthenticationType](#Db2AuthenticationType) * + [func PossibleDb2AuthenticationTypeValues() []Db2AuthenticationType](#PossibleDb2AuthenticationTypeValues) * [type Db2LinkedService](#Db2LinkedService) * + [func (d *Db2LinkedService) GetLinkedService() *LinkedService](#Db2LinkedService.GetLinkedService) + [func (d Db2LinkedService) MarshalJSON() ([]byte, error)](#Db2LinkedService.MarshalJSON) + [func (d *Db2LinkedService) UnmarshalJSON(data []byte) error](#Db2LinkedService.UnmarshalJSON) * [type Db2LinkedServiceTypeProperties](#Db2LinkedServiceTypeProperties) * + [func (d Db2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#Db2LinkedServiceTypeProperties.MarshalJSON) + [func (d *Db2LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#Db2LinkedServiceTypeProperties.UnmarshalJSON) * [type Db2Source](#Db2Source) * + [func (d *Db2Source) GetCopySource() *CopySource](#Db2Source.GetCopySource) + [func (d *Db2Source) GetTabularSource() *TabularSource](#Db2Source.GetTabularSource) + [func (d Db2Source) MarshalJSON() ([]byte, error)](#Db2Source.MarshalJSON) + [func (d *Db2Source) UnmarshalJSON(data []byte) error](#Db2Source.UnmarshalJSON) * [type Db2TableDataset](#Db2TableDataset) * + [func (d *Db2TableDataset) GetDataset() *Dataset](#Db2TableDataset.GetDataset) + [func (d Db2TableDataset) MarshalJSON() ([]byte, error)](#Db2TableDataset.MarshalJSON) + [func (d *Db2TableDataset) UnmarshalJSON(data []byte) error](#Db2TableDataset.UnmarshalJSON) * [type Db2TableDatasetTypeProperties](#Db2TableDatasetTypeProperties) * + [func (d Db2TableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#Db2TableDatasetTypeProperties.MarshalJSON) + [func (d *Db2TableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#Db2TableDatasetTypeProperties.UnmarshalJSON) * [type DeleteActivity](#DeleteActivity) * + [func (d *DeleteActivity) GetActivity() *Activity](#DeleteActivity.GetActivity) + [func (d *DeleteActivity) GetExecutionActivity() *ExecutionActivity](#DeleteActivity.GetExecutionActivity) + [func (d DeleteActivity) MarshalJSON() ([]byte, error)](#DeleteActivity.MarshalJSON) + [func (d *DeleteActivity) UnmarshalJSON(data []byte) error](#DeleteActivity.UnmarshalJSON) * [type DeleteActivityTypeProperties](#DeleteActivityTypeProperties) * + [func (d DeleteActivityTypeProperties) MarshalJSON() ([]byte, error)](#DeleteActivityTypeProperties.MarshalJSON) + [func (d *DeleteActivityTypeProperties) UnmarshalJSON(data []byte) error](#DeleteActivityTypeProperties.UnmarshalJSON) * [type DeleteDataFlowDebugSessionRequest](#DeleteDataFlowDebugSessionRequest) * + [func (d DeleteDataFlowDebugSessionRequest) MarshalJSON() ([]byte, error)](#DeleteDataFlowDebugSessionRequest.MarshalJSON) + [func (d *DeleteDataFlowDebugSessionRequest) UnmarshalJSON(data []byte) error](#DeleteDataFlowDebugSessionRequest.UnmarshalJSON) * [type DelimitedTextDataset](#DelimitedTextDataset) * + [func (d *DelimitedTextDataset) GetDataset() *Dataset](#DelimitedTextDataset.GetDataset) + [func (d DelimitedTextDataset) MarshalJSON() ([]byte, error)](#DelimitedTextDataset.MarshalJSON) + [func (d *DelimitedTextDataset) UnmarshalJSON(data []byte) error](#DelimitedTextDataset.UnmarshalJSON) * [type DelimitedTextDatasetTypeProperties](#DelimitedTextDatasetTypeProperties) * + [func (d DelimitedTextDatasetTypeProperties) MarshalJSON() ([]byte, error)](#DelimitedTextDatasetTypeProperties.MarshalJSON) + [func (d *DelimitedTextDatasetTypeProperties) UnmarshalJSON(data []byte) error](#DelimitedTextDatasetTypeProperties.UnmarshalJSON) * [type DelimitedTextReadSettings](#DelimitedTextReadSettings) * + [func (d *DelimitedTextReadSettings) GetFormatReadSettings() *FormatReadSettings](#DelimitedTextReadSettings.GetFormatReadSettings) + [func (d DelimitedTextReadSettings) MarshalJSON() ([]byte, error)](#DelimitedTextReadSettings.MarshalJSON) + [func (d *DelimitedTextReadSettings) UnmarshalJSON(data []byte) error](#DelimitedTextReadSettings.UnmarshalJSON) * [type DelimitedTextSink](#DelimitedTextSink) * + [func (d *DelimitedTextSink) GetCopySink() *CopySink](#DelimitedTextSink.GetCopySink) + [func (d DelimitedTextSink) MarshalJSON() ([]byte, error)](#DelimitedTextSink.MarshalJSON) + [func (d *DelimitedTextSink) UnmarshalJSON(data []byte) error](#DelimitedTextSink.UnmarshalJSON) * [type DelimitedTextSource](#DelimitedTextSource) * + [func (d *DelimitedTextSource) GetCopySource() *CopySource](#DelimitedTextSource.GetCopySource) + [func (d DelimitedTextSource) MarshalJSON() ([]byte, error)](#DelimitedTextSource.MarshalJSON) + [func (d *DelimitedTextSource) UnmarshalJSON(data []byte) error](#DelimitedTextSource.UnmarshalJSON) * [type DelimitedTextWriteSettings](#DelimitedTextWriteSettings) * + [func (d *DelimitedTextWriteSettings) GetFormatWriteSettings() *FormatWriteSettings](#DelimitedTextWriteSettings.GetFormatWriteSettings) + [func (d DelimitedTextWriteSettings) MarshalJSON() ([]byte, error)](#DelimitedTextWriteSettings.MarshalJSON) + [func (d *DelimitedTextWriteSettings) UnmarshalJSON(data []byte) error](#DelimitedTextWriteSettings.UnmarshalJSON) * [type DependencyCondition](#DependencyCondition) * + [func PossibleDependencyConditionValues() []DependencyCondition](#PossibleDependencyConditionValues) * [type DependencyReference](#DependencyReference) * + [func (d *DependencyReference) GetDependencyReference() *DependencyReference](#DependencyReference.GetDependencyReference) + [func (d DependencyReference) MarshalJSON() ([]byte, error)](#DependencyReference.MarshalJSON) + [func (d *DependencyReference) UnmarshalJSON(data []byte) error](#DependencyReference.UnmarshalJSON) * [type DependencyReferenceClassification](#DependencyReferenceClassification) * [type DistcpSettings](#DistcpSettings) * + [func (d DistcpSettings) MarshalJSON() ([]byte, error)](#DistcpSettings.MarshalJSON) + [func (d *DistcpSettings) UnmarshalJSON(data []byte) error](#DistcpSettings.UnmarshalJSON) * [type DocumentDbCollectionDataset](#DocumentDbCollectionDataset) * + [func (d *DocumentDbCollectionDataset) GetDataset() *Dataset](#DocumentDbCollectionDataset.GetDataset) + [func (d DocumentDbCollectionDataset) MarshalJSON() ([]byte, error)](#DocumentDbCollectionDataset.MarshalJSON) + [func (d *DocumentDbCollectionDataset) UnmarshalJSON(data []byte) error](#DocumentDbCollectionDataset.UnmarshalJSON) * [type DocumentDbCollectionDatasetTypeProperties](#DocumentDbCollectionDatasetTypeProperties) * + [func (d DocumentDbCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error)](#DocumentDbCollectionDatasetTypeProperties.MarshalJSON) + [func (d *DocumentDbCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) error](#DocumentDbCollectionDatasetTypeProperties.UnmarshalJSON) * [type DocumentDbCollectionSink](#DocumentDbCollectionSink) * + [func (d *DocumentDbCollectionSink) GetCopySink() *CopySink](#DocumentDbCollectionSink.GetCopySink) + [func (d DocumentDbCollectionSink) MarshalJSON() ([]byte, error)](#DocumentDbCollectionSink.MarshalJSON) + [func (d *DocumentDbCollectionSink) UnmarshalJSON(data []byte) error](#DocumentDbCollectionSink.UnmarshalJSON) * [type DocumentDbCollectionSource](#DocumentDbCollectionSource) * + [func (d *DocumentDbCollectionSource) GetCopySource() *CopySource](#DocumentDbCollectionSource.GetCopySource) + [func (d DocumentDbCollectionSource) MarshalJSON() ([]byte, error)](#DocumentDbCollectionSource.MarshalJSON) + [func (d *DocumentDbCollectionSource) UnmarshalJSON(data []byte) error](#DocumentDbCollectionSource.UnmarshalJSON) * [type DrillDatasetTypeProperties](#DrillDatasetTypeProperties) * + [func (d DrillDatasetTypeProperties) MarshalJSON() ([]byte, error)](#DrillDatasetTypeProperties.MarshalJSON) + [func (d *DrillDatasetTypeProperties) UnmarshalJSON(data []byte) error](#DrillDatasetTypeProperties.UnmarshalJSON) * [type DrillLinkedService](#DrillLinkedService) * + [func (d *DrillLinkedService) GetLinkedService() *LinkedService](#DrillLinkedService.GetLinkedService) + [func (d DrillLinkedService) MarshalJSON() ([]byte, error)](#DrillLinkedService.MarshalJSON) + [func (d *DrillLinkedService) UnmarshalJSON(data []byte) error](#DrillLinkedService.UnmarshalJSON) * [type DrillLinkedServiceTypeProperties](#DrillLinkedServiceTypeProperties) * + [func (d DrillLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#DrillLinkedServiceTypeProperties.MarshalJSON) + [func (d *DrillLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#DrillLinkedServiceTypeProperties.UnmarshalJSON) * [type DrillSource](#DrillSource) * + [func (d *DrillSource) GetCopySource() *CopySource](#DrillSource.GetCopySource) + [func (d *DrillSource) GetTabularSource() *TabularSource](#DrillSource.GetTabularSource) + [func (d DrillSource) MarshalJSON() ([]byte, error)](#DrillSource.MarshalJSON) + [func (d *DrillSource) UnmarshalJSON(data []byte) error](#DrillSource.UnmarshalJSON) * [type DrillTableDataset](#DrillTableDataset) * + [func (d *DrillTableDataset) GetDataset() *Dataset](#DrillTableDataset.GetDataset) + [func (d DrillTableDataset) MarshalJSON() ([]byte, error)](#DrillTableDataset.MarshalJSON) + [func (d *DrillTableDataset) UnmarshalJSON(data []byte) error](#DrillTableDataset.UnmarshalJSON) * [type DynamicsAXLinkedService](#DynamicsAXLinkedService) * + [func (d *DynamicsAXLinkedService) GetLinkedService() *LinkedService](#DynamicsAXLinkedService.GetLinkedService) + [func (d DynamicsAXLinkedService) MarshalJSON() ([]byte, error)](#DynamicsAXLinkedService.MarshalJSON) + [func (d *DynamicsAXLinkedService) UnmarshalJSON(data []byte) error](#DynamicsAXLinkedService.UnmarshalJSON) * [type DynamicsAXLinkedServiceTypeProperties](#DynamicsAXLinkedServiceTypeProperties) * + [func (d DynamicsAXLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#DynamicsAXLinkedServiceTypeProperties.MarshalJSON) + [func (d *DynamicsAXLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#DynamicsAXLinkedServiceTypeProperties.UnmarshalJSON) * [type DynamicsAXResourceDataset](#DynamicsAXResourceDataset) * + [func (d *DynamicsAXResourceDataset) GetDataset() *Dataset](#DynamicsAXResourceDataset.GetDataset) + [func (d DynamicsAXResourceDataset) MarshalJSON() ([]byte, error)](#DynamicsAXResourceDataset.MarshalJSON) + [func (d *DynamicsAXResourceDataset) UnmarshalJSON(data []byte) error](#DynamicsAXResourceDataset.UnmarshalJSON) * [type DynamicsAXResourceDatasetTypeProperties](#DynamicsAXResourceDatasetTypeProperties) * + [func (d DynamicsAXResourceDatasetTypeProperties) MarshalJSON() ([]byte, error)](#DynamicsAXResourceDatasetTypeProperties.MarshalJSON) + [func (d *DynamicsAXResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error](#DynamicsAXResourceDatasetTypeProperties.UnmarshalJSON) * [type DynamicsAXSource](#DynamicsAXSource) * + [func (d *DynamicsAXSource) GetCopySource() *CopySource](#DynamicsAXSource.GetCopySource) + [func (d *DynamicsAXSource) GetTabularSource() *TabularSource](#DynamicsAXSource.GetTabularSource) + [func (d DynamicsAXSource) MarshalJSON() ([]byte, error)](#DynamicsAXSource.MarshalJSON) + [func (d *DynamicsAXSource) UnmarshalJSON(data []byte) error](#DynamicsAXSource.UnmarshalJSON) * [type DynamicsAuthenticationType](#DynamicsAuthenticationType) * + [func PossibleDynamicsAuthenticationTypeValues() []DynamicsAuthenticationType](#PossibleDynamicsAuthenticationTypeValues) * [type DynamicsCrmEntityDataset](#DynamicsCrmEntityDataset) * + [func (d *DynamicsCrmEntityDataset) GetDataset() *Dataset](#DynamicsCrmEntityDataset.GetDataset) + [func (d DynamicsCrmEntityDataset) MarshalJSON() ([]byte, error)](#DynamicsCrmEntityDataset.MarshalJSON) + [func (d *DynamicsCrmEntityDataset) UnmarshalJSON(data []byte) error](#DynamicsCrmEntityDataset.UnmarshalJSON) * [type DynamicsCrmEntityDatasetTypeProperties](#DynamicsCrmEntityDatasetTypeProperties) * + [func (d DynamicsCrmEntityDatasetTypeProperties) MarshalJSON() ([]byte, error)](#DynamicsCrmEntityDatasetTypeProperties.MarshalJSON) + [func (d *DynamicsCrmEntityDatasetTypeProperties) UnmarshalJSON(data []byte) error](#DynamicsCrmEntityDatasetTypeProperties.UnmarshalJSON) * [type DynamicsCrmLinkedService](#DynamicsCrmLinkedService) * + [func (d *DynamicsCrmLinkedService) GetLinkedService() *LinkedService](#DynamicsCrmLinkedService.GetLinkedService) + [func (d DynamicsCrmLinkedService) MarshalJSON() ([]byte, error)](#DynamicsCrmLinkedService.MarshalJSON) + [func (d *DynamicsCrmLinkedService) UnmarshalJSON(data []byte) error](#DynamicsCrmLinkedService.UnmarshalJSON) * [type DynamicsCrmLinkedServiceTypeProperties](#DynamicsCrmLinkedServiceTypeProperties) * + [func (d DynamicsCrmLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#DynamicsCrmLinkedServiceTypeProperties.MarshalJSON) + [func (d *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#DynamicsCrmLinkedServiceTypeProperties.UnmarshalJSON) * [type DynamicsCrmSink](#DynamicsCrmSink) * + [func (d *DynamicsCrmSink) GetCopySink() *CopySink](#DynamicsCrmSink.GetCopySink) + [func (d DynamicsCrmSink) MarshalJSON() ([]byte, error)](#DynamicsCrmSink.MarshalJSON) + [func (d *DynamicsCrmSink) UnmarshalJSON(data []byte) error](#DynamicsCrmSink.UnmarshalJSON) * [type DynamicsCrmSource](#DynamicsCrmSource) * + [func (d *DynamicsCrmSource) GetCopySource() *CopySource](#DynamicsCrmSource.GetCopySource) + [func (d DynamicsCrmSource) MarshalJSON() ([]byte, error)](#DynamicsCrmSource.MarshalJSON) + [func (d *DynamicsCrmSource) UnmarshalJSON(data []byte) error](#DynamicsCrmSource.UnmarshalJSON) * [type DynamicsDeploymentType](#DynamicsDeploymentType) * + [func PossibleDynamicsDeploymentTypeValues() []DynamicsDeploymentType](#PossibleDynamicsDeploymentTypeValues) * [type DynamicsEntityDataset](#DynamicsEntityDataset) * + [func (d *DynamicsEntityDataset) GetDataset() *Dataset](#DynamicsEntityDataset.GetDataset) + [func (d DynamicsEntityDataset) MarshalJSON() ([]byte, error)](#DynamicsEntityDataset.MarshalJSON) + [func (d *DynamicsEntityDataset) UnmarshalJSON(data []byte) error](#DynamicsEntityDataset.UnmarshalJSON) * [type DynamicsEntityDatasetTypeProperties](#DynamicsEntityDatasetTypeProperties) * + [func (d DynamicsEntityDatasetTypeProperties) MarshalJSON() ([]byte, error)](#DynamicsEntityDatasetTypeProperties.MarshalJSON) + [func (d *DynamicsEntityDatasetTypeProperties) UnmarshalJSON(data []byte) error](#DynamicsEntityDatasetTypeProperties.UnmarshalJSON) * [type DynamicsLinkedService](#DynamicsLinkedService) * + [func (d *DynamicsLinkedService) GetLinkedService() *LinkedService](#DynamicsLinkedService.GetLinkedService) + [func (d DynamicsLinkedService) MarshalJSON() ([]byte, error)](#DynamicsLinkedService.MarshalJSON) + [func (d *DynamicsLinkedService) UnmarshalJSON(data []byte) error](#DynamicsLinkedService.UnmarshalJSON) * [type DynamicsLinkedServiceTypeProperties](#DynamicsLinkedServiceTypeProperties) * + [func (d DynamicsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#DynamicsLinkedServiceTypeProperties.MarshalJSON) + [func (d *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#DynamicsLinkedServiceTypeProperties.UnmarshalJSON) * [type DynamicsSink](#DynamicsSink) * + [func (d *DynamicsSink) GetCopySink() *CopySink](#DynamicsSink.GetCopySink) + [func (d DynamicsSink) MarshalJSON() ([]byte, error)](#DynamicsSink.MarshalJSON) + [func (d *DynamicsSink) UnmarshalJSON(data []byte) error](#DynamicsSink.UnmarshalJSON) * [type DynamicsSinkWriteBehavior](#DynamicsSinkWriteBehavior) * + [func PossibleDynamicsSinkWriteBehaviorValues() []DynamicsSinkWriteBehavior](#PossibleDynamicsSinkWriteBehaviorValues) * [type DynamicsSource](#DynamicsSource) * + [func (d *DynamicsSource) GetCopySource() *CopySource](#DynamicsSource.GetCopySource) + [func (d DynamicsSource) MarshalJSON() ([]byte, error)](#DynamicsSource.MarshalJSON) + [func (d *DynamicsSource) UnmarshalJSON(data []byte) error](#DynamicsSource.UnmarshalJSON) * [type EloquaLinkedService](#EloquaLinkedService) * + [func (e *EloquaLinkedService) GetLinkedService() *LinkedService](#EloquaLinkedService.GetLinkedService) + [func (e EloquaLinkedService) MarshalJSON() ([]byte, error)](#EloquaLinkedService.MarshalJSON) + [func (e *EloquaLinkedService) UnmarshalJSON(data []byte) error](#EloquaLinkedService.UnmarshalJSON) * [type EloquaLinkedServiceTypeProperties](#EloquaLinkedServiceTypeProperties) * + [func (e EloquaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#EloquaLinkedServiceTypeProperties.MarshalJSON) + [func (e *EloquaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#EloquaLinkedServiceTypeProperties.UnmarshalJSON) * [type EloquaObjectDataset](#EloquaObjectDataset) * + [func (e *EloquaObjectDataset) GetDataset() *Dataset](#EloquaObjectDataset.GetDataset) + [func (e EloquaObjectDataset) MarshalJSON() ([]byte, error)](#EloquaObjectDataset.MarshalJSON) + [func (e *EloquaObjectDataset) UnmarshalJSON(data []byte) error](#EloquaObjectDataset.UnmarshalJSON) * [type EloquaSource](#EloquaSource) * + [func (e *EloquaSource) GetCopySource() *CopySource](#EloquaSource.GetCopySource) + [func (e *EloquaSource) GetTabularSource() *TabularSource](#EloquaSource.GetTabularSource) + [func (e EloquaSource) MarshalJSON() ([]byte, error)](#EloquaSource.MarshalJSON) + [func (e *EloquaSource) UnmarshalJSON(data []byte) error](#EloquaSource.UnmarshalJSON) * [type EncryptionConfiguration](#EncryptionConfiguration) * + [func (e EncryptionConfiguration) MarshalJSON() ([]byte, error)](#EncryptionConfiguration.MarshalJSON) + [func (e *EncryptionConfiguration) UnmarshalJSON(data []byte) error](#EncryptionConfiguration.UnmarshalJSON) * [type EntityReference](#EntityReference) * + [func (e EntityReference) MarshalJSON() ([]byte, error)](#EntityReference.MarshalJSON) + [func (e *EntityReference) UnmarshalJSON(data []byte) error](#EntityReference.UnmarshalJSON) * [type EnvironmentVariableSetup](#EnvironmentVariableSetup) * + [func (e *EnvironmentVariableSetup) GetCustomSetupBase() *CustomSetupBase](#EnvironmentVariableSetup.GetCustomSetupBase) + [func (e EnvironmentVariableSetup) MarshalJSON() ([]byte, error)](#EnvironmentVariableSetup.MarshalJSON) + [func (e *EnvironmentVariableSetup) UnmarshalJSON(data []byte) error](#EnvironmentVariableSetup.UnmarshalJSON) * [type EnvironmentVariableSetupTypeProperties](#EnvironmentVariableSetupTypeProperties) * + [func (e EnvironmentVariableSetupTypeProperties) MarshalJSON() ([]byte, error)](#EnvironmentVariableSetupTypeProperties.MarshalJSON) + [func (e *EnvironmentVariableSetupTypeProperties) UnmarshalJSON(data []byte) error](#EnvironmentVariableSetupTypeProperties.UnmarshalJSON) * [type EventSubscriptionStatus](#EventSubscriptionStatus) * + [func PossibleEventSubscriptionStatusValues() []EventSubscriptionStatus](#PossibleEventSubscriptionStatusValues) * [type ExcelDataset](#ExcelDataset) * + [func (e *ExcelDataset) GetDataset() *Dataset](#ExcelDataset.GetDataset) + [func (e ExcelDataset) MarshalJSON() ([]byte, error)](#ExcelDataset.MarshalJSON) + [func (e *ExcelDataset) UnmarshalJSON(data []byte) error](#ExcelDataset.UnmarshalJSON) * [type ExcelDatasetTypeProperties](#ExcelDatasetTypeProperties) * + [func (e ExcelDatasetTypeProperties) MarshalJSON() ([]byte, error)](#ExcelDatasetTypeProperties.MarshalJSON) + [func (e *ExcelDatasetTypeProperties) UnmarshalJSON(data []byte) error](#ExcelDatasetTypeProperties.UnmarshalJSON) * [type ExcelSource](#ExcelSource) * + [func (e *ExcelSource) GetCopySource() *CopySource](#ExcelSource.GetCopySource) + [func (e ExcelSource) MarshalJSON() ([]byte, error)](#ExcelSource.MarshalJSON) + [func (e *ExcelSource) UnmarshalJSON(data []byte) error](#ExcelSource.UnmarshalJSON) * [type ExecuteDataFlowActivity](#ExecuteDataFlowActivity) * + [func (e *ExecuteDataFlowActivity) GetActivity() *Activity](#ExecuteDataFlowActivity.GetActivity) + [func (e *ExecuteDataFlowActivity) GetExecutionActivity() *ExecutionActivity](#ExecuteDataFlowActivity.GetExecutionActivity) + [func (e ExecuteDataFlowActivity) MarshalJSON() ([]byte, error)](#ExecuteDataFlowActivity.MarshalJSON) + [func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error](#ExecuteDataFlowActivity.UnmarshalJSON) * [type ExecuteDataFlowActivityTypeProperties](#ExecuteDataFlowActivityTypeProperties) * + [func (e ExecuteDataFlowActivityTypeProperties) MarshalJSON() ([]byte, error)](#ExecuteDataFlowActivityTypeProperties.MarshalJSON) + [func (e *ExecuteDataFlowActivityTypeProperties) UnmarshalJSON(data []byte) error](#ExecuteDataFlowActivityTypeProperties.UnmarshalJSON) * [type ExecuteDataFlowActivityTypePropertiesCompute](#ExecuteDataFlowActivityTypePropertiesCompute) * + [func (e ExecuteDataFlowActivityTypePropertiesCompute) MarshalJSON() ([]byte, error)](#ExecuteDataFlowActivityTypePropertiesCompute.MarshalJSON) + [func (e *ExecuteDataFlowActivityTypePropertiesCompute) UnmarshalJSON(data []byte) error](#ExecuteDataFlowActivityTypePropertiesCompute.UnmarshalJSON) * [type ExecutePipelineActivity](#ExecutePipelineActivity) * + [func (e *ExecutePipelineActivity) GetActivity() *Activity](#ExecutePipelineActivity.GetActivity) + [func (e *ExecutePipelineActivity) GetControlActivity() *ControlActivity](#ExecutePipelineActivity.GetControlActivity) + [func (e ExecutePipelineActivity) MarshalJSON() ([]byte, error)](#ExecutePipelineActivity.MarshalJSON) + [func (e *ExecutePipelineActivity) UnmarshalJSON(data []byte) error](#ExecutePipelineActivity.UnmarshalJSON) * [type ExecutePipelineActivityPolicy](#ExecutePipelineActivityPolicy) * + [func (e ExecutePipelineActivityPolicy) MarshalJSON() ([]byte, error)](#ExecutePipelineActivityPolicy.MarshalJSON) + [func (e *ExecutePipelineActivityPolicy) UnmarshalJSON(data []byte) error](#ExecutePipelineActivityPolicy.UnmarshalJSON) * [type ExecutePipelineActivityTypeProperties](#ExecutePipelineActivityTypeProperties) * + [func (e ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error)](#ExecutePipelineActivityTypeProperties.MarshalJSON) + [func (e *ExecutePipelineActivityTypeProperties) UnmarshalJSON(data []byte) error](#ExecutePipelineActivityTypeProperties.UnmarshalJSON) * [type ExecutePowerQueryActivityTypeProperties](#ExecutePowerQueryActivityTypeProperties) * + [func (e ExecutePowerQueryActivityTypeProperties) MarshalJSON() ([]byte, error)](#ExecutePowerQueryActivityTypeProperties.MarshalJSON) + [func (e *ExecutePowerQueryActivityTypeProperties) UnmarshalJSON(data []byte) error](#ExecutePowerQueryActivityTypeProperties.UnmarshalJSON) * [type ExecuteSSISPackageActivity](#ExecuteSSISPackageActivity) * + [func (e *ExecuteSSISPackageActivity) GetActivity() *Activity](#ExecuteSSISPackageActivity.GetActivity) + [func (e *ExecuteSSISPackageActivity) GetExecutionActivity() *ExecutionActivity](#ExecuteSSISPackageActivity.GetExecutionActivity) + [func (e ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error)](#ExecuteSSISPackageActivity.MarshalJSON) + [func (e *ExecuteSSISPackageActivity) UnmarshalJSON(data []byte) error](#ExecuteSSISPackageActivity.UnmarshalJSON) * [type ExecuteSSISPackageActivityTypeProperties](#ExecuteSSISPackageActivityTypeProperties) * + [func (e ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error)](#ExecuteSSISPackageActivityTypeProperties.MarshalJSON) + [func (e *ExecuteSSISPackageActivityTypeProperties) UnmarshalJSON(data []byte) error](#ExecuteSSISPackageActivityTypeProperties.UnmarshalJSON) * [type ExecuteWranglingDataflowActivity](#ExecuteWranglingDataflowActivity) * + [func (e *ExecuteWranglingDataflowActivity) GetActivity() *Activity](#ExecuteWranglingDataflowActivity.GetActivity) + [func (e ExecuteWranglingDataflowActivity) MarshalJSON() ([]byte, error)](#ExecuteWranglingDataflowActivity.MarshalJSON) + [func (e *ExecuteWranglingDataflowActivity) UnmarshalJSON(data []byte) error](#ExecuteWranglingDataflowActivity.UnmarshalJSON) * [type ExecutionActivity](#ExecutionActivity) * + [func (e *ExecutionActivity) GetActivity() *Activity](#ExecutionActivity.GetActivity) + [func (e *ExecutionActivity) GetExecutionActivity() *ExecutionActivity](#ExecutionActivity.GetExecutionActivity) + [func (e ExecutionActivity) MarshalJSON() ([]byte, error)](#ExecutionActivity.MarshalJSON) + [func (e *ExecutionActivity) UnmarshalJSON(data []byte) error](#ExecutionActivity.UnmarshalJSON) * [type ExecutionActivityClassification](#ExecutionActivityClassification) * [type ExportSettings](#ExportSettings) * + [func (e *ExportSettings) GetExportSettings() *ExportSettings](#ExportSettings.GetExportSettings) + [func (e ExportSettings) MarshalJSON() ([]byte, error)](#ExportSettings.MarshalJSON) + [func (e *ExportSettings) UnmarshalJSON(data []byte) error](#ExportSettings.UnmarshalJSON) * [type ExportSettingsClassification](#ExportSettingsClassification) * [type ExposureControlBatchRequest](#ExposureControlBatchRequest) * + [func (e ExposureControlBatchRequest) MarshalJSON() ([]byte, error)](#ExposureControlBatchRequest.MarshalJSON) + [func (e *ExposureControlBatchRequest) UnmarshalJSON(data []byte) error](#ExposureControlBatchRequest.UnmarshalJSON) * [type ExposureControlBatchResponse](#ExposureControlBatchResponse) * + [func (e ExposureControlBatchResponse) MarshalJSON() ([]byte, error)](#ExposureControlBatchResponse.MarshalJSON) + [func (e *ExposureControlBatchResponse) UnmarshalJSON(data []byte) error](#ExposureControlBatchResponse.UnmarshalJSON) * [type ExposureControlClient](#ExposureControlClient) * + [func NewExposureControlClient(subscriptionID string, credential azcore.TokenCredential, ...) (*ExposureControlClient, error)](#NewExposureControlClient) * + [func (client *ExposureControlClient) GetFeatureValue(ctx context.Context, locationID string, ...) (ExposureControlClientGetFeatureValueResponse, error)](#ExposureControlClient.GetFeatureValue) + [func (client *ExposureControlClient) GetFeatureValueByFactory(ctx context.Context, resourceGroupName string, factoryName string, ...) (ExposureControlClientGetFeatureValueByFactoryResponse, error)](#ExposureControlClient.GetFeatureValueByFactory) + [func (client *ExposureControlClient) QueryFeatureValuesByFactory(ctx context.Context, resourceGroupName string, factoryName string, ...) (ExposureControlClientQueryFeatureValuesByFactoryResponse, error)](#ExposureControlClient.QueryFeatureValuesByFactory) * [type ExposureControlClientGetFeatureValueByFactoryOptions](#ExposureControlClientGetFeatureValueByFactoryOptions) * [type ExposureControlClientGetFeatureValueByFactoryResponse](#ExposureControlClientGetFeatureValueByFactoryResponse) * [type ExposureControlClientGetFeatureValueOptions](#ExposureControlClientGetFeatureValueOptions) * [type ExposureControlClientGetFeatureValueResponse](#ExposureControlClientGetFeatureValueResponse) * [type ExposureControlClientQueryFeatureValuesByFactoryOptions](#ExposureControlClientQueryFeatureValuesByFactoryOptions) * [type ExposureControlClientQueryFeatureValuesByFactoryResponse](#ExposureControlClientQueryFeatureValuesByFactoryResponse) * [type ExposureControlRequest](#ExposureControlRequest) * + [func (e ExposureControlRequest) MarshalJSON() ([]byte, error)](#ExposureControlRequest.MarshalJSON) + [func (e *ExposureControlRequest) UnmarshalJSON(data []byte) error](#ExposureControlRequest.UnmarshalJSON) * [type ExposureControlResponse](#ExposureControlResponse) * + [func (e ExposureControlResponse) MarshalJSON() ([]byte, error)](#ExposureControlResponse.MarshalJSON) + [func (e *ExposureControlResponse) UnmarshalJSON(data []byte) error](#ExposureControlResponse.UnmarshalJSON) * [type Expression](#Expression) * + [func (e Expression) MarshalJSON() ([]byte, error)](#Expression.MarshalJSON) + [func (e *Expression) UnmarshalJSON(data []byte) error](#Expression.UnmarshalJSON) * [type ExpressionType](#ExpressionType) * + [func PossibleExpressionTypeValues() []ExpressionType](#PossibleExpressionTypeValues) * [type FactoriesClient](#FactoriesClient) * + [func NewFactoriesClient(subscriptionID string, credential azcore.TokenCredential, ...) (*FactoriesClient, error)](#NewFactoriesClient) * + [func (client *FactoriesClient) ConfigureFactoryRepo(ctx context.Context, locationID string, factoryRepoUpdate FactoryRepoUpdate, ...) (FactoriesClientConfigureFactoryRepoResponse, error)](#FactoriesClient.ConfigureFactoryRepo) + [func (client *FactoriesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (FactoriesClientCreateOrUpdateResponse, error)](#FactoriesClient.CreateOrUpdate) + [func (client *FactoriesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (FactoriesClientDeleteResponse, error)](#FactoriesClient.Delete) + [func (client *FactoriesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (FactoriesClientGetResponse, error)](#FactoriesClient.Get) + [func (client *FactoriesClient) GetDataPlaneAccess(ctx context.Context, resourceGroupName string, factoryName string, ...) (FactoriesClientGetDataPlaneAccessResponse, error)](#FactoriesClient.GetDataPlaneAccess) + [func (client *FactoriesClient) GetGitHubAccessToken(ctx context.Context, resourceGroupName string, factoryName string, ...) (FactoriesClientGetGitHubAccessTokenResponse, error)](#FactoriesClient.GetGitHubAccessToken) + [func (client *FactoriesClient) NewListByResourceGroupPager(resourceGroupName string, options *FactoriesClientListByResourceGroupOptions) *runtime.Pager[FactoriesClientListByResourceGroupResponse]](#FactoriesClient.NewListByResourceGroupPager) + [func (client *FactoriesClient) NewListPager(options *FactoriesClientListOptions) *runtime.Pager[FactoriesClientListResponse]](#FactoriesClient.NewListPager) + [func (client *FactoriesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, ...) (FactoriesClientUpdateResponse, error)](#FactoriesClient.Update) * [type FactoriesClientConfigureFactoryRepoOptions](#FactoriesClientConfigureFactoryRepoOptions) * [type FactoriesClientConfigureFactoryRepoResponse](#FactoriesClientConfigureFactoryRepoResponse) * [type FactoriesClientCreateOrUpdateOptions](#FactoriesClientCreateOrUpdateOptions) * [type FactoriesClientCreateOrUpdateResponse](#FactoriesClientCreateOrUpdateResponse) * [type FactoriesClientDeleteOptions](#FactoriesClientDeleteOptions) * [type FactoriesClientDeleteResponse](#FactoriesClientDeleteResponse) * [type FactoriesClientGetDataPlaneAccessOptions](#FactoriesClientGetDataPlaneAccessOptions) * [type FactoriesClientGetDataPlaneAccessResponse](#FactoriesClientGetDataPlaneAccessResponse) * [type FactoriesClientGetGitHubAccessTokenOptions](#FactoriesClientGetGitHubAccessTokenOptions) * [type FactoriesClientGetGitHubAccessTokenResponse](#FactoriesClientGetGitHubAccessTokenResponse) * [type FactoriesClientGetOptions](#FactoriesClientGetOptions) * [type FactoriesClientGetResponse](#FactoriesClientGetResponse) * [type FactoriesClientListByResourceGroupOptions](#FactoriesClientListByResourceGroupOptions) * [type FactoriesClientListByResourceGroupResponse](#FactoriesClientListByResourceGroupResponse) * [type FactoriesClientListOptions](#FactoriesClientListOptions) * [type FactoriesClientListResponse](#FactoriesClientListResponse) * [type FactoriesClientUpdateOptions](#FactoriesClientUpdateOptions) * [type FactoriesClientUpdateResponse](#FactoriesClientUpdateResponse) * [type Factory](#Factory) * + [func (f Factory) MarshalJSON() ([]byte, error)](#Factory.MarshalJSON) + [func (f *Factory) UnmarshalJSON(data []byte) error](#Factory.UnmarshalJSON) * [type FactoryGitHubConfiguration](#FactoryGitHubConfiguration) * + [func (f *FactoryGitHubConfiguration) GetFactoryRepoConfiguration() *FactoryRepoConfiguration](#FactoryGitHubConfiguration.GetFactoryRepoConfiguration) + [func (f FactoryGitHubConfiguration) MarshalJSON() ([]byte, error)](#FactoryGitHubConfiguration.MarshalJSON) + [func (f *FactoryGitHubConfiguration) UnmarshalJSON(data []byte) error](#FactoryGitHubConfiguration.UnmarshalJSON) * [type FactoryIdentity](#FactoryIdentity) * + [func (f FactoryIdentity) MarshalJSON() ([]byte, error)](#FactoryIdentity.MarshalJSON) + [func (f *FactoryIdentity) UnmarshalJSON(data []byte) error](#FactoryIdentity.UnmarshalJSON) * [type FactoryIdentityType](#FactoryIdentityType) * + [func PossibleFactoryIdentityTypeValues() []FactoryIdentityType](#PossibleFactoryIdentityTypeValues) * [type FactoryListResponse](#FactoryListResponse) * + [func (f FactoryListResponse) MarshalJSON() ([]byte, error)](#FactoryListResponse.MarshalJSON) + [func (f *FactoryListResponse) UnmarshalJSON(data []byte) error](#FactoryListResponse.UnmarshalJSON) * [type FactoryProperties](#FactoryProperties) * + [func (f FactoryProperties) MarshalJSON() ([]byte, error)](#FactoryProperties.MarshalJSON) + [func (f *FactoryProperties) UnmarshalJSON(data []byte) error](#FactoryProperties.UnmarshalJSON) * [type FactoryRepoConfiguration](#FactoryRepoConfiguration) * + [func (f *FactoryRepoConfiguration) GetFactoryRepoConfiguration() *FactoryRepoConfiguration](#FactoryRepoConfiguration.GetFactoryRepoConfiguration) + [func (f FactoryRepoConfiguration) MarshalJSON() ([]byte, error)](#FactoryRepoConfiguration.MarshalJSON) + [func (f *FactoryRepoConfiguration) UnmarshalJSON(data []byte) error](#FactoryRepoConfiguration.UnmarshalJSON) * [type FactoryRepoConfigurationClassification](#FactoryRepoConfigurationClassification) * [type FactoryRepoUpdate](#FactoryRepoUpdate) * + [func (f FactoryRepoUpdate) MarshalJSON() ([]byte, error)](#FactoryRepoUpdate.MarshalJSON) + [func (f *FactoryRepoUpdate) UnmarshalJSON(data []byte) error](#FactoryRepoUpdate.UnmarshalJSON) * [type FactoryUpdateParameters](#FactoryUpdateParameters) * + [func (f FactoryUpdateParameters) MarshalJSON() ([]byte, error)](#FactoryUpdateParameters.MarshalJSON) + [func (f *FactoryUpdateParameters) UnmarshalJSON(data []byte) error](#FactoryUpdateParameters.UnmarshalJSON) * [type FactoryUpdateProperties](#FactoryUpdateProperties) * + [func (f FactoryUpdateProperties) MarshalJSON() ([]byte, error)](#FactoryUpdateProperties.MarshalJSON) + [func (f *FactoryUpdateProperties) UnmarshalJSON(data []byte) error](#FactoryUpdateProperties.UnmarshalJSON) * [type FactoryVSTSConfiguration](#FactoryVSTSConfiguration) * + [func (f *FactoryVSTSConfiguration) GetFactoryRepoConfiguration() *FactoryRepoConfiguration](#FactoryVSTSConfiguration.GetFactoryRepoConfiguration) + [func (f FactoryVSTSConfiguration) MarshalJSON() ([]byte, error)](#FactoryVSTSConfiguration.MarshalJSON) + [func (f *FactoryVSTSConfiguration) UnmarshalJSON(data []byte) error](#FactoryVSTSConfiguration.UnmarshalJSON) * [type FailActivity](#FailActivity) * + [func (f *FailActivity) GetActivity() *Activity](#FailActivity.GetActivity) + [func (f *FailActivity) GetControlActivity() *ControlActivity](#FailActivity.GetControlActivity) + [func (f FailActivity) MarshalJSON() ([]byte, error)](#FailActivity.MarshalJSON) + [func (f *FailActivity) UnmarshalJSON(data []byte) error](#FailActivity.UnmarshalJSON) * [type FailActivityTypeProperties](#FailActivityTypeProperties) * + [func (f FailActivityTypeProperties) MarshalJSON() ([]byte, error)](#FailActivityTypeProperties.MarshalJSON) + [func (f *FailActivityTypeProperties) UnmarshalJSON(data []byte) error](#FailActivityTypeProperties.UnmarshalJSON) * [type FileServerLinkedService](#FileServerLinkedService) * + [func (f *FileServerLinkedService) GetLinkedService() *LinkedService](#FileServerLinkedService.GetLinkedService) + [func (f FileServerLinkedService) MarshalJSON() ([]byte, error)](#FileServerLinkedService.MarshalJSON) + [func (f *FileServerLinkedService) UnmarshalJSON(data []byte) error](#FileServerLinkedService.UnmarshalJSON) * [type FileServerLinkedServiceTypeProperties](#FileServerLinkedServiceTypeProperties) * + [func (f FileServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#FileServerLinkedServiceTypeProperties.MarshalJSON) + [func (f *FileServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#FileServerLinkedServiceTypeProperties.UnmarshalJSON) * [type FileServerLocation](#FileServerLocation) * + [func (f *FileServerLocation) GetDatasetLocation() *DatasetLocation](#FileServerLocation.GetDatasetLocation) + [func (f FileServerLocation) MarshalJSON() ([]byte, error)](#FileServerLocation.MarshalJSON) + [func (f *FileServerLocation) UnmarshalJSON(data []byte) error](#FileServerLocation.UnmarshalJSON) * [type FileServerReadSettings](#FileServerReadSettings) * + [func (f *FileServerReadSettings) GetStoreReadSettings() *StoreReadSettings](#FileServerReadSettings.GetStoreReadSettings) + [func (f FileServerReadSettings) MarshalJSON() ([]byte, error)](#FileServerReadSettings.MarshalJSON) + [func (f *FileServerReadSettings) UnmarshalJSON(data []byte) error](#FileServerReadSettings.UnmarshalJSON) * [type FileServerWriteSettings](#FileServerWriteSettings) * + [func (f *FileServerWriteSettings) GetStoreWriteSettings() *StoreWriteSettings](#FileServerWriteSettings.GetStoreWriteSettings) + [func (f FileServerWriteSettings) MarshalJSON() ([]byte, error)](#FileServerWriteSettings.MarshalJSON) + [func (f *FileServerWriteSettings) UnmarshalJSON(data []byte) error](#FileServerWriteSettings.UnmarshalJSON) * [type FileShareDataset](#FileShareDataset) * + [func (f *FileShareDataset) GetDataset() *Dataset](#FileShareDataset.GetDataset) + [func (f FileShareDataset) MarshalJSON() ([]byte, error)](#FileShareDataset.MarshalJSON) + [func (f *FileShareDataset) UnmarshalJSON(data []byte) error](#FileShareDataset.UnmarshalJSON) * [type FileShareDatasetTypeProperties](#FileShareDatasetTypeProperties) * + [func (f FileShareDatasetTypeProperties) MarshalJSON() ([]byte, error)](#FileShareDatasetTypeProperties.MarshalJSON) + [func (f *FileShareDatasetTypeProperties) UnmarshalJSON(data []byte) error](#FileShareDatasetTypeProperties.UnmarshalJSON) * [type FileSystemSink](#FileSystemSink) * + [func (f *FileSystemSink) GetCopySink() *CopySink](#FileSystemSink.GetCopySink) + [func (f FileSystemSink) MarshalJSON() ([]byte, error)](#FileSystemSink.MarshalJSON) + [func (f *FileSystemSink) UnmarshalJSON(data []byte) error](#FileSystemSink.UnmarshalJSON) * [type FileSystemSource](#FileSystemSource) * + [func (f *FileSystemSource) GetCopySource() *CopySource](#FileSystemSource.GetCopySource) + [func (f FileSystemSource) MarshalJSON() ([]byte, error)](#FileSystemSource.MarshalJSON) + [func (f *FileSystemSource) UnmarshalJSON(data []byte) error](#FileSystemSource.UnmarshalJSON) * [type FilterActivity](#FilterActivity) * + [func (f *FilterActivity) GetActivity() *Activity](#FilterActivity.GetActivity) + [func (f *FilterActivity) GetControlActivity() *ControlActivity](#FilterActivity.GetControlActivity) + [func (f FilterActivity) MarshalJSON() ([]byte, error)](#FilterActivity.MarshalJSON) + [func (f *FilterActivity) UnmarshalJSON(data []byte) error](#FilterActivity.UnmarshalJSON) * [type FilterActivityTypeProperties](#FilterActivityTypeProperties) * + [func (f FilterActivityTypeProperties) MarshalJSON() ([]byte, error)](#FilterActivityTypeProperties.MarshalJSON) + [func (f *FilterActivityTypeProperties) UnmarshalJSON(data []byte) error](#FilterActivityTypeProperties.UnmarshalJSON) * [type Flowlet](#Flowlet) * + [func (f *Flowlet) GetDataFlow() *DataFlow](#Flowlet.GetDataFlow) + [func (f Flowlet) MarshalJSON() ([]byte, error)](#Flowlet.MarshalJSON) + [func (f *Flowlet) UnmarshalJSON(data []byte) error](#Flowlet.UnmarshalJSON) * [type FlowletTypeProperties](#FlowletTypeProperties) * + [func (f FlowletTypeProperties) MarshalJSON() ([]byte, error)](#FlowletTypeProperties.MarshalJSON) + [func (f *FlowletTypeProperties) UnmarshalJSON(data []byte) error](#FlowletTypeProperties.UnmarshalJSON) * [type ForEachActivity](#ForEachActivity) * + [func (f *ForEachActivity) GetActivity() *Activity](#ForEachActivity.GetActivity) + [func (f *ForEachActivity) GetControlActivity() *ControlActivity](#ForEachActivity.GetControlActivity) + [func (f ForEachActivity) MarshalJSON() ([]byte, error)](#ForEachActivity.MarshalJSON) + [func (f *ForEachActivity) UnmarshalJSON(data []byte) error](#ForEachActivity.UnmarshalJSON) * [type ForEachActivityTypeProperties](#ForEachActivityTypeProperties) * + [func (f ForEachActivityTypeProperties) MarshalJSON() ([]byte, error)](#ForEachActivityTypeProperties.MarshalJSON) + [func (f *ForEachActivityTypeProperties) UnmarshalJSON(data []byte) error](#ForEachActivityTypeProperties.UnmarshalJSON) * [type FormatReadSettings](#FormatReadSettings) * + [func (f *FormatReadSettings) GetFormatReadSettings() *FormatReadSettings](#FormatReadSettings.GetFormatReadSettings) + [func (f FormatReadSettings) MarshalJSON() ([]byte, error)](#FormatReadSettings.MarshalJSON) + [func (f *FormatReadSettings) UnmarshalJSON(data []byte) error](#FormatReadSettings.UnmarshalJSON) * [type FormatReadSettingsClassification](#FormatReadSettingsClassification) * [type FormatWriteSettings](#FormatWriteSettings) * + [func (f *FormatWriteSettings) GetFormatWriteSettings() *FormatWriteSettings](#FormatWriteSettings.GetFormatWriteSettings) + [func (f FormatWriteSettings) MarshalJSON() ([]byte, error)](#FormatWriteSettings.MarshalJSON) + [func (f *FormatWriteSettings) UnmarshalJSON(data []byte) error](#FormatWriteSettings.UnmarshalJSON) * [type FormatWriteSettingsClassification](#FormatWriteSettingsClassification) * [type FtpAuthenticationType](#FtpAuthenticationType) * + [func PossibleFtpAuthenticationTypeValues() []FtpAuthenticationType](#PossibleFtpAuthenticationTypeValues) * [type FtpReadSettings](#FtpReadSettings) * + [func (f *FtpReadSettings) GetStoreReadSettings() *StoreReadSettings](#FtpReadSettings.GetStoreReadSettings) + [func (f FtpReadSettings) MarshalJSON() ([]byte, error)](#FtpReadSettings.MarshalJSON) + [func (f *FtpReadSettings) UnmarshalJSON(data []byte) error](#FtpReadSettings.UnmarshalJSON) * [type FtpServerLinkedService](#FtpServerLinkedService) * + [func (f *FtpServerLinkedService) GetLinkedService() *LinkedService](#FtpServerLinkedService.GetLinkedService) + [func (f FtpServerLinkedService) MarshalJSON() ([]byte, error)](#FtpServerLinkedService.MarshalJSON) + [func (f *FtpServerLinkedService) UnmarshalJSON(data []byte) error](#FtpServerLinkedService.UnmarshalJSON) * [type FtpServerLinkedServiceTypeProperties](#FtpServerLinkedServiceTypeProperties) * + [func (f FtpServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#FtpServerLinkedServiceTypeProperties.MarshalJSON) + [func (f *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#FtpServerLinkedServiceTypeProperties.UnmarshalJSON) * [type FtpServerLocation](#FtpServerLocation) * + [func (f *FtpServerLocation) GetDatasetLocation() *DatasetLocation](#FtpServerLocation.GetDatasetLocation) + [func (f FtpServerLocation) MarshalJSON() ([]byte, error)](#FtpServerLocation.MarshalJSON) + [func (f *FtpServerLocation) UnmarshalJSON(data []byte) error](#FtpServerLocation.UnmarshalJSON) * [type GenericDatasetTypeProperties](#GenericDatasetTypeProperties) * + [func (g GenericDatasetTypeProperties) MarshalJSON() ([]byte, error)](#GenericDatasetTypeProperties.MarshalJSON) + [func (g *GenericDatasetTypeProperties) UnmarshalJSON(data []byte) error](#GenericDatasetTypeProperties.UnmarshalJSON) * [type GetDataFactoryOperationStatusResponse](#GetDataFactoryOperationStatusResponse) * + [func (g GetDataFactoryOperationStatusResponse) MarshalJSON() ([]byte, error)](#GetDataFactoryOperationStatusResponse.MarshalJSON) + [func (g *GetDataFactoryOperationStatusResponse) UnmarshalJSON(data []byte) error](#GetDataFactoryOperationStatusResponse.UnmarshalJSON) * [type GetMetadataActivity](#GetMetadataActivity) * + [func (g *GetMetadataActivity) GetActivity() *Activity](#GetMetadataActivity.GetActivity) + [func (g *GetMetadataActivity) GetExecutionActivity() *ExecutionActivity](#GetMetadataActivity.GetExecutionActivity) + [func (g GetMetadataActivity) MarshalJSON() ([]byte, error)](#GetMetadataActivity.MarshalJSON) + [func (g *GetMetadataActivity) UnmarshalJSON(data []byte) error](#GetMetadataActivity.UnmarshalJSON) * [type GetMetadataActivityTypeProperties](#GetMetadataActivityTypeProperties) * + [func (g GetMetadataActivityTypeProperties) MarshalJSON() ([]byte, error)](#GetMetadataActivityTypeProperties.MarshalJSON) + [func (g *GetMetadataActivityTypeProperties) UnmarshalJSON(data []byte) error](#GetMetadataActivityTypeProperties.UnmarshalJSON) * [type GetSsisObjectMetadataRequest](#GetSsisObjectMetadataRequest) * + [func (g GetSsisObjectMetadataRequest) MarshalJSON() ([]byte, error)](#GetSsisObjectMetadataRequest.MarshalJSON) + [func (g *GetSsisObjectMetadataRequest) UnmarshalJSON(data []byte) error](#GetSsisObjectMetadataRequest.UnmarshalJSON) * [type GitHubAccessTokenRequest](#GitHubAccessTokenRequest) * + [func (g GitHubAccessTokenRequest) MarshalJSON() ([]byte, error)](#GitHubAccessTokenRequest.MarshalJSON) + [func (g *GitHubAccessTokenRequest) UnmarshalJSON(data []byte) error](#GitHubAccessTokenRequest.UnmarshalJSON) * [type GitHubAccessTokenResponse](#GitHubAccessTokenResponse) * + [func (g GitHubAccessTokenResponse) MarshalJSON() ([]byte, error)](#GitHubAccessTokenResponse.MarshalJSON) + [func (g *GitHubAccessTokenResponse) UnmarshalJSON(data []byte) error](#GitHubAccessTokenResponse.UnmarshalJSON) * [type GitHubClientSecret](#GitHubClientSecret) * + [func (g GitHubClientSecret) MarshalJSON() ([]byte, error)](#GitHubClientSecret.MarshalJSON) + [func (g *GitHubClientSecret) UnmarshalJSON(data []byte) error](#GitHubClientSecret.UnmarshalJSON) * [type GlobalParameterListResponse](#GlobalParameterListResponse) * + [func (g GlobalParameterListResponse) MarshalJSON() ([]byte, error)](#GlobalParameterListResponse.MarshalJSON) + [func (g *GlobalParameterListResponse) UnmarshalJSON(data []byte) error](#GlobalParameterListResponse.UnmarshalJSON) * [type GlobalParameterResource](#GlobalParameterResource) * + [func (g GlobalParameterResource) MarshalJSON() ([]byte, error)](#GlobalParameterResource.MarshalJSON) + [func (g *GlobalParameterResource) UnmarshalJSON(data []byte) error](#GlobalParameterResource.UnmarshalJSON) * [type GlobalParameterSpecification](#GlobalParameterSpecification) * + [func (g GlobalParameterSpecification) MarshalJSON() ([]byte, error)](#GlobalParameterSpecification.MarshalJSON) + [func (g *GlobalParameterSpecification) UnmarshalJSON(data []byte) error](#GlobalParameterSpecification.UnmarshalJSON) * [type GlobalParameterType](#GlobalParameterType) * + [func PossibleGlobalParameterTypeValues() []GlobalParameterType](#PossibleGlobalParameterTypeValues) * [type GlobalParametersClient](#GlobalParametersClient) * + [func NewGlobalParametersClient(subscriptionID string, credential azcore.TokenCredential, ...) (*GlobalParametersClient, error)](#NewGlobalParametersClient) * + [func (client *GlobalParametersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (GlobalParametersClientCreateOrUpdateResponse, error)](#GlobalParametersClient.CreateOrUpdate) + [func (client *GlobalParametersClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (GlobalParametersClientDeleteResponse, error)](#GlobalParametersClient.Delete) + [func (client *GlobalParametersClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (GlobalParametersClientGetResponse, error)](#GlobalParametersClient.Get) + [func (client *GlobalParametersClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[GlobalParametersClientListByFactoryResponse]](#GlobalParametersClient.NewListByFactoryPager) * [type GlobalParametersClientCreateOrUpdateOptions](#GlobalParametersClientCreateOrUpdateOptions) * [type GlobalParametersClientCreateOrUpdateResponse](#GlobalParametersClientCreateOrUpdateResponse) * [type GlobalParametersClientDeleteOptions](#GlobalParametersClientDeleteOptions) * [type GlobalParametersClientDeleteResponse](#GlobalParametersClientDeleteResponse) * [type GlobalParametersClientGetOptions](#GlobalParametersClientGetOptions) * [type GlobalParametersClientGetResponse](#GlobalParametersClientGetResponse) * [type GlobalParametersClientListByFactoryOptions](#GlobalParametersClientListByFactoryOptions) * [type GlobalParametersClientListByFactoryResponse](#GlobalParametersClientListByFactoryResponse) * [type GoogleAdWordsAuthenticationType](#GoogleAdWordsAuthenticationType) * + [func PossibleGoogleAdWordsAuthenticationTypeValues() []GoogleAdWordsAuthenticationType](#PossibleGoogleAdWordsAuthenticationTypeValues) * [type GoogleAdWordsLinkedService](#GoogleAdWordsLinkedService) * + [func (g *GoogleAdWordsLinkedService) GetLinkedService() *LinkedService](#GoogleAdWordsLinkedService.GetLinkedService) + [func (g GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error)](#GoogleAdWordsLinkedService.MarshalJSON) + [func (g *GoogleAdWordsLinkedService) UnmarshalJSON(data []byte) error](#GoogleAdWordsLinkedService.UnmarshalJSON) * [type GoogleAdWordsLinkedServiceTypeProperties](#GoogleAdWordsLinkedServiceTypeProperties) * + [func (g GoogleAdWordsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#GoogleAdWordsLinkedServiceTypeProperties.MarshalJSON) + [func (g *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#GoogleAdWordsLinkedServiceTypeProperties.UnmarshalJSON) * [type GoogleAdWordsObjectDataset](#GoogleAdWordsObjectDataset) * + [func (g *GoogleAdWordsObjectDataset) GetDataset() *Dataset](#GoogleAdWordsObjectDataset.GetDataset) + [func (g GoogleAdWordsObjectDataset) MarshalJSON() ([]byte, error)](#GoogleAdWordsObjectDataset.MarshalJSON) + [func (g *GoogleAdWordsObjectDataset) UnmarshalJSON(data []byte) error](#GoogleAdWordsObjectDataset.UnmarshalJSON) * [type GoogleAdWordsSource](#GoogleAdWordsSource) * + [func (g *GoogleAdWordsSource) GetCopySource() *CopySource](#GoogleAdWordsSource.GetCopySource) + [func (g *GoogleAdWordsSource) GetTabularSource() *TabularSource](#GoogleAdWordsSource.GetTabularSource) + [func (g GoogleAdWordsSource) MarshalJSON() ([]byte, error)](#GoogleAdWordsSource.MarshalJSON) + [func (g *GoogleAdWordsSource) UnmarshalJSON(data []byte) error](#GoogleAdWordsSource.UnmarshalJSON) * [type GoogleBigQueryAuthenticationType](#GoogleBigQueryAuthenticationType) * + [func PossibleGoogleBigQueryAuthenticationTypeValues() []GoogleBigQueryAuthenticationType](#PossibleGoogleBigQueryAuthenticationTypeValues) * [type GoogleBigQueryDatasetTypeProperties](#GoogleBigQueryDatasetTypeProperties) * + [func (g GoogleBigQueryDatasetTypeProperties) MarshalJSON() ([]byte, error)](#GoogleBigQueryDatasetTypeProperties.MarshalJSON) + [func (g *GoogleBigQueryDatasetTypeProperties) UnmarshalJSON(data []byte) error](#GoogleBigQueryDatasetTypeProperties.UnmarshalJSON) * [type GoogleBigQueryLinkedService](#GoogleBigQueryLinkedService) * + [func (g *GoogleBigQueryLinkedService) GetLinkedService() *LinkedService](#GoogleBigQueryLinkedService.GetLinkedService) + [func (g GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error)](#GoogleBigQueryLinkedService.MarshalJSON) + [func (g *GoogleBigQueryLinkedService) UnmarshalJSON(data []byte) error](#GoogleBigQueryLinkedService.UnmarshalJSON) * [type GoogleBigQueryLinkedServiceTypeProperties](#GoogleBigQueryLinkedServiceTypeProperties) * + [func (g GoogleBigQueryLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#GoogleBigQueryLinkedServiceTypeProperties.MarshalJSON) + [func (g *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#GoogleBigQueryLinkedServiceTypeProperties.UnmarshalJSON) * [type GoogleBigQueryObjectDataset](#GoogleBigQueryObjectDataset) * + [func (g *GoogleBigQueryObjectDataset) GetDataset() *Dataset](#GoogleBigQueryObjectDataset.GetDataset) + [func (g GoogleBigQueryObjectDataset) MarshalJSON() ([]byte, error)](#GoogleBigQueryObjectDataset.MarshalJSON) + [func (g *GoogleBigQueryObjectDataset) UnmarshalJSON(data []byte) error](#GoogleBigQueryObjectDataset.UnmarshalJSON) * [type GoogleBigQuerySource](#GoogleBigQuerySource) * + [func (g *GoogleBigQuerySource) GetCopySource() *CopySource](#GoogleBigQuerySource.GetCopySource) + [func (g *GoogleBigQuerySource) GetTabularSource() *TabularSource](#GoogleBigQuerySource.GetTabularSource) + [func (g GoogleBigQuerySource) MarshalJSON() ([]byte, error)](#GoogleBigQuerySource.MarshalJSON) + [func (g *GoogleBigQuerySource) UnmarshalJSON(data []byte) error](#GoogleBigQuerySource.UnmarshalJSON) * [type GoogleCloudStorageLinkedService](#GoogleCloudStorageLinkedService) * + [func (g *GoogleCloudStorageLinkedService) GetLinkedService() *LinkedService](#GoogleCloudStorageLinkedService.GetLinkedService) + [func (g GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error)](#GoogleCloudStorageLinkedService.MarshalJSON) + [func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(data []byte) error](#GoogleCloudStorageLinkedService.UnmarshalJSON) * [type GoogleCloudStorageLinkedServiceTypeProperties](#GoogleCloudStorageLinkedServiceTypeProperties) * + [func (g GoogleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#GoogleCloudStorageLinkedServiceTypeProperties.MarshalJSON) + [func (g *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#GoogleCloudStorageLinkedServiceTypeProperties.UnmarshalJSON) * [type GoogleCloudStorageLocation](#GoogleCloudStorageLocation) * + [func (g *GoogleCloudStorageLocation) GetDatasetLocation() *DatasetLocation](#GoogleCloudStorageLocation.GetDatasetLocation) + [func (g GoogleCloudStorageLocation) MarshalJSON() ([]byte, error)](#GoogleCloudStorageLocation.MarshalJSON) + [func (g *GoogleCloudStorageLocation) UnmarshalJSON(data []byte) error](#GoogleCloudStorageLocation.UnmarshalJSON) * [type GoogleCloudStorageReadSettings](#GoogleCloudStorageReadSettings) * + [func (g *GoogleCloudStorageReadSettings) GetStoreReadSettings() *StoreReadSettings](#GoogleCloudStorageReadSettings.GetStoreReadSettings) + [func (g GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error)](#GoogleCloudStorageReadSettings.MarshalJSON) + [func (g *GoogleCloudStorageReadSettings) UnmarshalJSON(data []byte) error](#GoogleCloudStorageReadSettings.UnmarshalJSON) * [type GoogleSheetsLinkedService](#GoogleSheetsLinkedService) * + [func (g *GoogleSheetsLinkedService) GetLinkedService() *LinkedService](#GoogleSheetsLinkedService.GetLinkedService) + [func (g GoogleSheetsLinkedService) MarshalJSON() ([]byte, error)](#GoogleSheetsLinkedService.MarshalJSON) + [func (g *GoogleSheetsLinkedService) UnmarshalJSON(data []byte) error](#GoogleSheetsLinkedService.UnmarshalJSON) * [type GoogleSheetsLinkedServiceTypeProperties](#GoogleSheetsLinkedServiceTypeProperties) * + [func (g GoogleSheetsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#GoogleSheetsLinkedServiceTypeProperties.MarshalJSON) + [func (g *GoogleSheetsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#GoogleSheetsLinkedServiceTypeProperties.UnmarshalJSON) * [type GreenplumDatasetTypeProperties](#GreenplumDatasetTypeProperties) * + [func (g GreenplumDatasetTypeProperties) MarshalJSON() ([]byte, error)](#GreenplumDatasetTypeProperties.MarshalJSON) + [func (g *GreenplumDatasetTypeProperties) UnmarshalJSON(data []byte) error](#GreenplumDatasetTypeProperties.UnmarshalJSON) * [type GreenplumLinkedService](#GreenplumLinkedService) * + [func (g *GreenplumLinkedService) GetLinkedService() *LinkedService](#GreenplumLinkedService.GetLinkedService) + [func (g GreenplumLinkedService) MarshalJSON() ([]byte, error)](#GreenplumLinkedService.MarshalJSON) + [func (g *GreenplumLinkedService) UnmarshalJSON(data []byte) error](#GreenplumLinkedService.UnmarshalJSON) * [type GreenplumLinkedServiceTypeProperties](#GreenplumLinkedServiceTypeProperties) * + [func (g GreenplumLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#GreenplumLinkedServiceTypeProperties.MarshalJSON) + [func (g *GreenplumLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#GreenplumLinkedServiceTypeProperties.UnmarshalJSON) * [type GreenplumSource](#GreenplumSource) * + [func (g *GreenplumSource) GetCopySource() *CopySource](#GreenplumSource.GetCopySource) + [func (g *GreenplumSource) GetTabularSource() *TabularSource](#GreenplumSource.GetTabularSource) + [func (g GreenplumSource) MarshalJSON() ([]byte, error)](#GreenplumSource.MarshalJSON) + [func (g *GreenplumSource) UnmarshalJSON(data []byte) error](#GreenplumSource.UnmarshalJSON) * [type GreenplumTableDataset](#GreenplumTableDataset) * + [func (g *GreenplumTableDataset) GetDataset() *Dataset](#GreenplumTableDataset.GetDataset) + [func (g GreenplumTableDataset) MarshalJSON() ([]byte, error)](#GreenplumTableDataset.MarshalJSON) + [func (g *GreenplumTableDataset) UnmarshalJSON(data []byte) error](#GreenplumTableDataset.UnmarshalJSON) * [type HBaseAuthenticationType](#HBaseAuthenticationType) * + [func PossibleHBaseAuthenticationTypeValues() []HBaseAuthenticationType](#PossibleHBaseAuthenticationTypeValues) * [type HBaseLinkedService](#HBaseLinkedService) * + [func (h *HBaseLinkedService) GetLinkedService() *LinkedService](#HBaseLinkedService.GetLinkedService) + [func (h HBaseLinkedService) MarshalJSON() ([]byte, error)](#HBaseLinkedService.MarshalJSON) + [func (h *HBaseLinkedService) UnmarshalJSON(data []byte) error](#HBaseLinkedService.UnmarshalJSON) * [type HBaseLinkedServiceTypeProperties](#HBaseLinkedServiceTypeProperties) * + [func (h HBaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#HBaseLinkedServiceTypeProperties.MarshalJSON) + [func (h *HBaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#HBaseLinkedServiceTypeProperties.UnmarshalJSON) * [type HBaseObjectDataset](#HBaseObjectDataset) * + [func (h *HBaseObjectDataset) GetDataset() *Dataset](#HBaseObjectDataset.GetDataset) + [func (h HBaseObjectDataset) MarshalJSON() ([]byte, error)](#HBaseObjectDataset.MarshalJSON) + [func (h *HBaseObjectDataset) UnmarshalJSON(data []byte) error](#HBaseObjectDataset.UnmarshalJSON) * [type HBaseSource](#HBaseSource) * + [func (h *HBaseSource) GetCopySource() *CopySource](#HBaseSource.GetCopySource) + [func (h *HBaseSource) GetTabularSource() *TabularSource](#HBaseSource.GetTabularSource) + [func (h HBaseSource) MarshalJSON() ([]byte, error)](#HBaseSource.MarshalJSON) + [func (h *HBaseSource) UnmarshalJSON(data []byte) error](#HBaseSource.UnmarshalJSON) * [type HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) * + [func PossibleHDInsightActivityDebugInfoOptionValues() []HDInsightActivityDebugInfoOption](#PossibleHDInsightActivityDebugInfoOptionValues) * [type HDInsightHiveActivity](#HDInsightHiveActivity) * + [func (h *HDInsightHiveActivity) GetActivity() *Activity](#HDInsightHiveActivity.GetActivity) + [func (h *HDInsightHiveActivity) GetExecutionActivity() *ExecutionActivity](#HDInsightHiveActivity.GetExecutionActivity) + [func (h HDInsightHiveActivity) MarshalJSON() ([]byte, error)](#HDInsightHiveActivity.MarshalJSON) + [func (h *HDInsightHiveActivity) UnmarshalJSON(data []byte) error](#HDInsightHiveActivity.UnmarshalJSON) * [type HDInsightHiveActivityTypeProperties](#HDInsightHiveActivityTypeProperties) * + [func (h HDInsightHiveActivityTypeProperties) MarshalJSON() ([]byte, error)](#HDInsightHiveActivityTypeProperties.MarshalJSON) + [func (h *HDInsightHiveActivityTypeProperties) UnmarshalJSON(data []byte) error](#HDInsightHiveActivityTypeProperties.UnmarshalJSON) * [type HDInsightLinkedService](#HDInsightLinkedService) * + [func (h *HDInsightLinkedService) GetLinkedService() *LinkedService](#HDInsightLinkedService.GetLinkedService) + [func (h HDInsightLinkedService) MarshalJSON() ([]byte, error)](#HDInsightLinkedService.MarshalJSON) + [func (h *HDInsightLinkedService) UnmarshalJSON(data []byte) error](#HDInsightLinkedService.UnmarshalJSON) * [type HDInsightLinkedServiceTypeProperties](#HDInsightLinkedServiceTypeProperties) * + [func (h HDInsightLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#HDInsightLinkedServiceTypeProperties.MarshalJSON) + [func (h *HDInsightLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#HDInsightLinkedServiceTypeProperties.UnmarshalJSON) * [type HDInsightMapReduceActivity](#HDInsightMapReduceActivity) * + [func (h *HDInsightMapReduceActivity) GetActivity() *Activity](#HDInsightMapReduceActivity.GetActivity) + [func (h *HDInsightMapReduceActivity) GetExecutionActivity() *ExecutionActivity](#HDInsightMapReduceActivity.GetExecutionActivity) + [func (h HDInsightMapReduceActivity) MarshalJSON() ([]byte, error)](#HDInsightMapReduceActivity.MarshalJSON) + [func (h *HDInsightMapReduceActivity) UnmarshalJSON(data []byte) error](#HDInsightMapReduceActivity.UnmarshalJSON) * [type HDInsightMapReduceActivityTypeProperties](#HDInsightMapReduceActivityTypeProperties) * + [func (h HDInsightMapReduceActivityTypeProperties) MarshalJSON() ([]byte, error)](#HDInsightMapReduceActivityTypeProperties.MarshalJSON) + [func (h *HDInsightMapReduceActivityTypeProperties) UnmarshalJSON(data []byte) error](#HDInsightMapReduceActivityTypeProperties.UnmarshalJSON) * [type HDInsightOnDemandLinkedService](#HDInsightOnDemandLinkedService) * + [func (h *HDInsightOnDemandLinkedService) GetLinkedService() *LinkedService](#HDInsightOnDemandLinkedService.GetLinkedService) + [func (h HDInsightOnDemandLinkedService) MarshalJSON() ([]byte, error)](#HDInsightOnDemandLinkedService.MarshalJSON) + [func (h *HDInsightOnDemandLinkedService) UnmarshalJSON(data []byte) error](#HDInsightOnDemandLinkedService.UnmarshalJSON) * [type HDInsightOnDemandLinkedServiceTypeProperties](#HDInsightOnDemandLinkedServiceTypeProperties) * + [func (h HDInsightOnDemandLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#HDInsightOnDemandLinkedServiceTypeProperties.MarshalJSON) + [func (h *HDInsightOnDemandLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#HDInsightOnDemandLinkedServiceTypeProperties.UnmarshalJSON) * [type HDInsightPigActivity](#HDInsightPigActivity) * + [func (h *HDInsightPigActivity) GetActivity() *Activity](#HDInsightPigActivity.GetActivity) + [func (h *HDInsightPigActivity) GetExecutionActivity() *ExecutionActivity](#HDInsightPigActivity.GetExecutionActivity) + [func (h HDInsightPigActivity) MarshalJSON() ([]byte, error)](#HDInsightPigActivity.MarshalJSON) + [func (h *HDInsightPigActivity) UnmarshalJSON(data []byte) error](#HDInsightPigActivity.UnmarshalJSON) * [type HDInsightPigActivityTypeProperties](#HDInsightPigActivityTypeProperties) * + [func (h HDInsightPigActivityTypeProperties) MarshalJSON() ([]byte, error)](#HDInsightPigActivityTypeProperties.MarshalJSON) + [func (h *HDInsightPigActivityTypeProperties) UnmarshalJSON(data []byte) error](#HDInsightPigActivityTypeProperties.UnmarshalJSON) * [type HDInsightSparkActivity](#HDInsightSparkActivity) * + [func (h *HDInsightSparkActivity) GetActivity() *Activity](#HDInsightSparkActivity.GetActivity) + [func (h *HDInsightSparkActivity) GetExecutionActivity() *ExecutionActivity](#HDInsightSparkActivity.GetExecutionActivity) + [func (h HDInsightSparkActivity) MarshalJSON() ([]byte, error)](#HDInsightSparkActivity.MarshalJSON) + [func (h *HDInsightSparkActivity) UnmarshalJSON(data []byte) error](#HDInsightSparkActivity.UnmarshalJSON) * [type HDInsightSparkActivityTypeProperties](#HDInsightSparkActivityTypeProperties) * + [func (h HDInsightSparkActivityTypeProperties) MarshalJSON() ([]byte, error)](#HDInsightSparkActivityTypeProperties.MarshalJSON) + [func (h *HDInsightSparkActivityTypeProperties) UnmarshalJSON(data []byte) error](#HDInsightSparkActivityTypeProperties.UnmarshalJSON) * [type HDInsightStreamingActivity](#HDInsightStreamingActivity) * + [func (h *HDInsightStreamingActivity) GetActivity() *Activity](#HDInsightStreamingActivity.GetActivity) + [func (h *HDInsightStreamingActivity) GetExecutionActivity() *ExecutionActivity](#HDInsightStreamingActivity.GetExecutionActivity) + [func (h HDInsightStreamingActivity) MarshalJSON() ([]byte, error)](#HDInsightStreamingActivity.MarshalJSON) + [func (h *HDInsightStreamingActivity) UnmarshalJSON(data []byte) error](#HDInsightStreamingActivity.UnmarshalJSON) * [type HDInsightStreamingActivityTypeProperties](#HDInsightStreamingActivityTypeProperties) * + [func (h HDInsightStreamingActivityTypeProperties) MarshalJSON() ([]byte, error)](#HDInsightStreamingActivityTypeProperties.MarshalJSON) + [func (h *HDInsightStreamingActivityTypeProperties) UnmarshalJSON(data []byte) error](#HDInsightStreamingActivityTypeProperties.UnmarshalJSON) * [type HTTPAuthenticationType](#HTTPAuthenticationType) * + [func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType](#PossibleHTTPAuthenticationTypeValues) * [type HTTPDataset](#HTTPDataset) * + [func (h *HTTPDataset) GetDataset() *Dataset](#HTTPDataset.GetDataset) + [func (h HTTPDataset) MarshalJSON() ([]byte, error)](#HTTPDataset.MarshalJSON) + [func (h *HTTPDataset) UnmarshalJSON(data []byte) error](#HTTPDataset.UnmarshalJSON) * [type HTTPDatasetTypeProperties](#HTTPDatasetTypeProperties) * + [func (h HTTPDatasetTypeProperties) MarshalJSON() ([]byte, error)](#HTTPDatasetTypeProperties.MarshalJSON) + [func (h *HTTPDatasetTypeProperties) UnmarshalJSON(data []byte) error](#HTTPDatasetTypeProperties.UnmarshalJSON) * [type HTTPLinkedService](#HTTPLinkedService) * + [func (h *HTTPLinkedService) GetLinkedService() *LinkedService](#HTTPLinkedService.GetLinkedService) + [func (h HTTPLinkedService) MarshalJSON() ([]byte, error)](#HTTPLinkedService.MarshalJSON) + [func (h *HTTPLinkedService) UnmarshalJSON(data []byte) error](#HTTPLinkedService.UnmarshalJSON) * [type HTTPLinkedServiceTypeProperties](#HTTPLinkedServiceTypeProperties) * + [func (h HTTPLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#HTTPLinkedServiceTypeProperties.MarshalJSON) + [func (h *HTTPLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#HTTPLinkedServiceTypeProperties.UnmarshalJSON) * [type HTTPReadSettings](#HTTPReadSettings) * + [func (h *HTTPReadSettings) GetStoreReadSettings() *StoreReadSettings](#HTTPReadSettings.GetStoreReadSettings) + [func (h HTTPReadSettings) MarshalJSON() ([]byte, error)](#HTTPReadSettings.MarshalJSON) + [func (h *HTTPReadSettings) UnmarshalJSON(data []byte) error](#HTTPReadSettings.UnmarshalJSON) * [type HTTPServerLocation](#HTTPServerLocation) * + [func (h *HTTPServerLocation) GetDatasetLocation() *DatasetLocation](#HTTPServerLocation.GetDatasetLocation) + [func (h HTTPServerLocation) MarshalJSON() ([]byte, error)](#HTTPServerLocation.MarshalJSON) + [func (h *HTTPServerLocation) UnmarshalJSON(data []byte) error](#HTTPServerLocation.UnmarshalJSON) * [type HTTPSource](#HTTPSource) * + [func (h *HTTPSource) GetCopySource() *CopySource](#HTTPSource.GetCopySource) + [func (h HTTPSource) MarshalJSON() ([]byte, error)](#HTTPSource.MarshalJSON) + [func (h *HTTPSource) UnmarshalJSON(data []byte) error](#HTTPSource.UnmarshalJSON) * [type HdfsLinkedService](#HdfsLinkedService) * + [func (h *HdfsLinkedService) GetLinkedService() *LinkedService](#HdfsLinkedService.GetLinkedService) + [func (h HdfsLinkedService) MarshalJSON() ([]byte, error)](#HdfsLinkedService.MarshalJSON) + [func (h *HdfsLinkedService) UnmarshalJSON(data []byte) error](#HdfsLinkedService.UnmarshalJSON) * [type HdfsLinkedServiceTypeProperties](#HdfsLinkedServiceTypeProperties) * + [func (h HdfsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#HdfsLinkedServiceTypeProperties.MarshalJSON) + [func (h *HdfsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#HdfsLinkedServiceTypeProperties.UnmarshalJSON) * [type HdfsLocation](#HdfsLocation) * + [func (h *HdfsLocation) GetDatasetLocation() *DatasetLocation](#HdfsLocation.GetDatasetLocation) + [func (h HdfsLocation) MarshalJSON() ([]byte, error)](#HdfsLocation.MarshalJSON) + [func (h *HdfsLocation) UnmarshalJSON(data []byte) error](#HdfsLocation.UnmarshalJSON) * [type HdfsReadSettings](#HdfsReadSettings) * + [func (h *HdfsReadSettings) GetStoreReadSettings() *StoreReadSettings](#HdfsReadSettings.GetStoreReadSettings) + [func (h HdfsReadSettings) MarshalJSON() ([]byte, error)](#HdfsReadSettings.MarshalJSON) + [func (h *HdfsReadSettings) UnmarshalJSON(data []byte) error](#HdfsReadSettings.UnmarshalJSON) * [type HdfsSource](#HdfsSource) * + [func (h *HdfsSource) GetCopySource() *CopySource](#HdfsSource.GetCopySource) + [func (h HdfsSource) MarshalJSON() ([]byte, error)](#HdfsSource.MarshalJSON) + [func (h *HdfsSource) UnmarshalJSON(data []byte) error](#HdfsSource.UnmarshalJSON) * [type HdiNodeTypes](#HdiNodeTypes) * + [func PossibleHdiNodeTypesValues() []HdiNodeTypes](#PossibleHdiNodeTypesValues) * [type HiveAuthenticationType](#HiveAuthenticationType) * + [func PossibleHiveAuthenticationTypeValues() []HiveAuthenticationType](#PossibleHiveAuthenticationTypeValues) * [type HiveDatasetTypeProperties](#HiveDatasetTypeProperties) * + [func (h HiveDatasetTypeProperties) MarshalJSON() ([]byte, error)](#HiveDatasetTypeProperties.MarshalJSON) + [func (h *HiveDatasetTypeProperties) UnmarshalJSON(data []byte) error](#HiveDatasetTypeProperties.UnmarshalJSON) * [type HiveLinkedService](#HiveLinkedService) * + [func (h *HiveLinkedService) GetLinkedService() *LinkedService](#HiveLinkedService.GetLinkedService) + [func (h HiveLinkedService) MarshalJSON() ([]byte, error)](#HiveLinkedService.MarshalJSON) + [func (h *HiveLinkedService) UnmarshalJSON(data []byte) error](#HiveLinkedService.UnmarshalJSON) * [type HiveLinkedServiceTypeProperties](#HiveLinkedServiceTypeProperties) * + [func (h HiveLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#HiveLinkedServiceTypeProperties.MarshalJSON) + [func (h *HiveLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#HiveLinkedServiceTypeProperties.UnmarshalJSON) * [type HiveObjectDataset](#HiveObjectDataset) * + [func (h *HiveObjectDataset) GetDataset() *Dataset](#HiveObjectDataset.GetDataset) + [func (h HiveObjectDataset) MarshalJSON() ([]byte, error)](#HiveObjectDataset.MarshalJSON) + [func (h *HiveObjectDataset) UnmarshalJSON(data []byte) error](#HiveObjectDataset.UnmarshalJSON) * [type HiveServerType](#HiveServerType) * + [func PossibleHiveServerTypeValues() []HiveServerType](#PossibleHiveServerTypeValues) * [type HiveSource](#HiveSource) * + [func (h *HiveSource) GetCopySource() *CopySource](#HiveSource.GetCopySource) + [func (h *HiveSource) GetTabularSource() *TabularSource](#HiveSource.GetTabularSource) + [func (h HiveSource) MarshalJSON() ([]byte, error)](#HiveSource.MarshalJSON) + [func (h *HiveSource) UnmarshalJSON(data []byte) error](#HiveSource.UnmarshalJSON) * [type HiveThriftTransportProtocol](#HiveThriftTransportProtocol) * + [func PossibleHiveThriftTransportProtocolValues() []HiveThriftTransportProtocol](#PossibleHiveThriftTransportProtocolValues) * [type HubspotLinkedService](#HubspotLinkedService) * + [func (h *HubspotLinkedService) GetLinkedService() *LinkedService](#HubspotLinkedService.GetLinkedService) + [func (h HubspotLinkedService) MarshalJSON() ([]byte, error)](#HubspotLinkedService.MarshalJSON) + [func (h *HubspotLinkedService) UnmarshalJSON(data []byte) error](#HubspotLinkedService.UnmarshalJSON) * [type HubspotLinkedServiceTypeProperties](#HubspotLinkedServiceTypeProperties) * + [func (h HubspotLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#HubspotLinkedServiceTypeProperties.MarshalJSON) + [func (h *HubspotLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#HubspotLinkedServiceTypeProperties.UnmarshalJSON) * [type HubspotObjectDataset](#HubspotObjectDataset) * + [func (h *HubspotObjectDataset) GetDataset() *Dataset](#HubspotObjectDataset.GetDataset) + [func (h HubspotObjectDataset) MarshalJSON() ([]byte, error)](#HubspotObjectDataset.MarshalJSON) + [func (h *HubspotObjectDataset) UnmarshalJSON(data []byte) error](#HubspotObjectDataset.UnmarshalJSON) * [type HubspotSource](#HubspotSource) * + [func (h *HubspotSource) GetCopySource() *CopySource](#HubspotSource.GetCopySource) + [func (h *HubspotSource) GetTabularSource() *TabularSource](#HubspotSource.GetTabularSource) + [func (h HubspotSource) MarshalJSON() ([]byte, error)](#HubspotSource.MarshalJSON) + [func (h *HubspotSource) UnmarshalJSON(data []byte) error](#HubspotSource.UnmarshalJSON) * [type IfConditionActivity](#IfConditionActivity) * + [func (i *IfConditionActivity) GetActivity() *Activity](#IfConditionActivity.GetActivity) + [func (i *IfConditionActivity) GetControlActivity() *ControlActivity](#IfConditionActivity.GetControlActivity) + [func (i IfConditionActivity) MarshalJSON() ([]byte, error)](#IfConditionActivity.MarshalJSON) + [func (i *IfConditionActivity) UnmarshalJSON(data []byte) error](#IfConditionActivity.UnmarshalJSON) * [type IfConditionActivityTypeProperties](#IfConditionActivityTypeProperties) * + [func (i IfConditionActivityTypeProperties) MarshalJSON() ([]byte, error)](#IfConditionActivityTypeProperties.MarshalJSON) + [func (i *IfConditionActivityTypeProperties) UnmarshalJSON(data []byte) error](#IfConditionActivityTypeProperties.UnmarshalJSON) * [type ImpalaAuthenticationType](#ImpalaAuthenticationType) * + [func PossibleImpalaAuthenticationTypeValues() []ImpalaAuthenticationType](#PossibleImpalaAuthenticationTypeValues) * [type ImpalaDatasetTypeProperties](#ImpalaDatasetTypeProperties) * + [func (i ImpalaDatasetTypeProperties) MarshalJSON() ([]byte, error)](#ImpalaDatasetTypeProperties.MarshalJSON) + [func (i *ImpalaDatasetTypeProperties) UnmarshalJSON(data []byte) error](#ImpalaDatasetTypeProperties.UnmarshalJSON) * [type ImpalaLinkedService](#ImpalaLinkedService) * + [func (i *ImpalaLinkedService) GetLinkedService() *LinkedService](#ImpalaLinkedService.GetLinkedService) + [func (i ImpalaLinkedService) MarshalJSON() ([]byte, error)](#ImpalaLinkedService.MarshalJSON) + [func (i *ImpalaLinkedService) UnmarshalJSON(data []byte) error](#ImpalaLinkedService.UnmarshalJSON) * [type ImpalaLinkedServiceTypeProperties](#ImpalaLinkedServiceTypeProperties) * + [func (i ImpalaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#ImpalaLinkedServiceTypeProperties.MarshalJSON) + [func (i *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#ImpalaLinkedServiceTypeProperties.UnmarshalJSON) * [type ImpalaObjectDataset](#ImpalaObjectDataset) * + [func (i *ImpalaObjectDataset) GetDataset() *Dataset](#ImpalaObjectDataset.GetDataset) + [func (i ImpalaObjectDataset) MarshalJSON() ([]byte, error)](#ImpalaObjectDataset.MarshalJSON) + [func (i *ImpalaObjectDataset) UnmarshalJSON(data []byte) error](#ImpalaObjectDataset.UnmarshalJSON) * [type ImpalaSource](#ImpalaSource) * + [func (i *ImpalaSource) GetCopySource() *CopySource](#ImpalaSource.GetCopySource) + [func (i *ImpalaSource) GetTabularSource() *TabularSource](#ImpalaSource.GetTabularSource) + [func (i ImpalaSource) MarshalJSON() ([]byte, error)](#ImpalaSource.MarshalJSON) + [func (i *ImpalaSource) UnmarshalJSON(data []byte) error](#ImpalaSource.UnmarshalJSON) * [type ImportSettings](#ImportSettings) * + [func (i *ImportSettings) GetImportSettings() *ImportSettings](#ImportSettings.GetImportSettings) + [func (i ImportSettings) MarshalJSON() ([]byte, error)](#ImportSettings.MarshalJSON) + [func (i *ImportSettings) UnmarshalJSON(data []byte) error](#ImportSettings.UnmarshalJSON) * [type ImportSettingsClassification](#ImportSettingsClassification) * [type InformixLinkedService](#InformixLinkedService) * + [func (i *InformixLinkedService) GetLinkedService() *LinkedService](#InformixLinkedService.GetLinkedService) + [func (i InformixLinkedService) MarshalJSON() ([]byte, error)](#InformixLinkedService.MarshalJSON) + [func (i *InformixLinkedService) UnmarshalJSON(data []byte) error](#InformixLinkedService.UnmarshalJSON) * [type InformixLinkedServiceTypeProperties](#InformixLinkedServiceTypeProperties) * + [func (i InformixLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#InformixLinkedServiceTypeProperties.MarshalJSON) + [func (i *InformixLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#InformixLinkedServiceTypeProperties.UnmarshalJSON) * [type InformixSink](#InformixSink) * + [func (i *InformixSink) GetCopySink() *CopySink](#InformixSink.GetCopySink) + [func (i InformixSink) MarshalJSON() ([]byte, error)](#InformixSink.MarshalJSON) + [func (i *InformixSink) UnmarshalJSON(data []byte) error](#InformixSink.UnmarshalJSON) * [type InformixSource](#InformixSource) * + [func (i *InformixSource) GetCopySource() *CopySource](#InformixSource.GetCopySource) + [func (i *InformixSource) GetTabularSource() *TabularSource](#InformixSource.GetTabularSource) + [func (i InformixSource) MarshalJSON() ([]byte, error)](#InformixSource.MarshalJSON) + [func (i *InformixSource) UnmarshalJSON(data []byte) error](#InformixSource.UnmarshalJSON) * [type InformixTableDataset](#InformixTableDataset) * + [func (i *InformixTableDataset) GetDataset() *Dataset](#InformixTableDataset.GetDataset) + [func (i InformixTableDataset) MarshalJSON() ([]byte, error)](#InformixTableDataset.MarshalJSON) + [func (i *InformixTableDataset) UnmarshalJSON(data []byte) error](#InformixTableDataset.UnmarshalJSON) * [type InformixTableDatasetTypeProperties](#InformixTableDatasetTypeProperties) * + [func (i InformixTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#InformixTableDatasetTypeProperties.MarshalJSON) + [func (i *InformixTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#InformixTableDatasetTypeProperties.UnmarshalJSON) * [type IntegrationRuntime](#IntegrationRuntime) * + [func (i *IntegrationRuntime) GetIntegrationRuntime() *IntegrationRuntime](#IntegrationRuntime.GetIntegrationRuntime) + [func (i IntegrationRuntime) MarshalJSON() ([]byte, error)](#IntegrationRuntime.MarshalJSON) + [func (i *IntegrationRuntime) UnmarshalJSON(data []byte) error](#IntegrationRuntime.UnmarshalJSON) * [type IntegrationRuntimeAuthKeyName](#IntegrationRuntimeAuthKeyName) * + [func PossibleIntegrationRuntimeAuthKeyNameValues() []IntegrationRuntimeAuthKeyName](#PossibleIntegrationRuntimeAuthKeyNameValues) * [type IntegrationRuntimeAuthKeys](#IntegrationRuntimeAuthKeys) * + [func (i IntegrationRuntimeAuthKeys) MarshalJSON() ([]byte, error)](#IntegrationRuntimeAuthKeys.MarshalJSON) + [func (i *IntegrationRuntimeAuthKeys) UnmarshalJSON(data []byte) error](#IntegrationRuntimeAuthKeys.UnmarshalJSON) * [type IntegrationRuntimeAutoUpdate](#IntegrationRuntimeAutoUpdate) * + [func PossibleIntegrationRuntimeAutoUpdateValues() []IntegrationRuntimeAutoUpdate](#PossibleIntegrationRuntimeAutoUpdateValues) * [type IntegrationRuntimeClassification](#IntegrationRuntimeClassification) * [type IntegrationRuntimeComputeProperties](#IntegrationRuntimeComputeProperties) * + [func (i IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error)](#IntegrationRuntimeComputeProperties.MarshalJSON) + [func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error](#IntegrationRuntimeComputeProperties.UnmarshalJSON) * [type IntegrationRuntimeConnectionInfo](#IntegrationRuntimeConnectionInfo) * + [func (i IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error)](#IntegrationRuntimeConnectionInfo.MarshalJSON) + [func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error](#IntegrationRuntimeConnectionInfo.UnmarshalJSON) * [type IntegrationRuntimeCustomSetupScriptProperties](#IntegrationRuntimeCustomSetupScriptProperties) * + [func (i IntegrationRuntimeCustomSetupScriptProperties) MarshalJSON() ([]byte, error)](#IntegrationRuntimeCustomSetupScriptProperties.MarshalJSON) + [func (i *IntegrationRuntimeCustomSetupScriptProperties) UnmarshalJSON(data []byte) error](#IntegrationRuntimeCustomSetupScriptProperties.UnmarshalJSON) * [type IntegrationRuntimeCustomerVirtualNetwork](#IntegrationRuntimeCustomerVirtualNetwork) * + [func (i IntegrationRuntimeCustomerVirtualNetwork) MarshalJSON() ([]byte, error)](#IntegrationRuntimeCustomerVirtualNetwork.MarshalJSON) + [func (i *IntegrationRuntimeCustomerVirtualNetwork) UnmarshalJSON(data []byte) error](#IntegrationRuntimeCustomerVirtualNetwork.UnmarshalJSON) * [type IntegrationRuntimeDataFlowProperties](#IntegrationRuntimeDataFlowProperties) * + [func (i IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error)](#IntegrationRuntimeDataFlowProperties.MarshalJSON) + [func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error](#IntegrationRuntimeDataFlowProperties.UnmarshalJSON) * [type IntegrationRuntimeDataProxyProperties](#IntegrationRuntimeDataProxyProperties) * + [func (i IntegrationRuntimeDataProxyProperties) MarshalJSON() ([]byte, error)](#IntegrationRuntimeDataProxyProperties.MarshalJSON) + [func (i *IntegrationRuntimeDataProxyProperties) UnmarshalJSON(data []byte) error](#IntegrationRuntimeDataProxyProperties.UnmarshalJSON) * [type IntegrationRuntimeDebugResource](#IntegrationRuntimeDebugResource) * + [func (i IntegrationRuntimeDebugResource) MarshalJSON() ([]byte, error)](#IntegrationRuntimeDebugResource.MarshalJSON) + [func (i *IntegrationRuntimeDebugResource) UnmarshalJSON(data []byte) error](#IntegrationRuntimeDebugResource.UnmarshalJSON) * [type IntegrationRuntimeEdition](#IntegrationRuntimeEdition) * + [func PossibleIntegrationRuntimeEditionValues() []IntegrationRuntimeEdition](#PossibleIntegrationRuntimeEditionValues) * [type IntegrationRuntimeEntityReferenceType](#IntegrationRuntimeEntityReferenceType) * + [func PossibleIntegrationRuntimeEntityReferenceTypeValues() []IntegrationRuntimeEntityReferenceType](#PossibleIntegrationRuntimeEntityReferenceTypeValues) * [type IntegrationRuntimeInternalChannelEncryptionMode](#IntegrationRuntimeInternalChannelEncryptionMode) * + [func PossibleIntegrationRuntimeInternalChannelEncryptionModeValues() []IntegrationRuntimeInternalChannelEncryptionMode](#PossibleIntegrationRuntimeInternalChannelEncryptionModeValues) * [type IntegrationRuntimeLicenseType](#IntegrationRuntimeLicenseType) * + [func PossibleIntegrationRuntimeLicenseTypeValues() []IntegrationRuntimeLicenseType](#PossibleIntegrationRuntimeLicenseTypeValues) * [type IntegrationRuntimeListResponse](#IntegrationRuntimeListResponse) * + [func (i IntegrationRuntimeListResponse) MarshalJSON() ([]byte, error)](#IntegrationRuntimeListResponse.MarshalJSON) + [func (i *IntegrationRuntimeListResponse) UnmarshalJSON(data []byte) error](#IntegrationRuntimeListResponse.UnmarshalJSON) * [type IntegrationRuntimeMonitoringData](#IntegrationRuntimeMonitoringData) * + [func (i IntegrationRuntimeMonitoringData) MarshalJSON() ([]byte, error)](#IntegrationRuntimeMonitoringData.MarshalJSON) + [func (i *IntegrationRuntimeMonitoringData) UnmarshalJSON(data []byte) error](#IntegrationRuntimeMonitoringData.UnmarshalJSON) * [type IntegrationRuntimeNodeIPAddress](#IntegrationRuntimeNodeIPAddress) * + [func (i IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error)](#IntegrationRuntimeNodeIPAddress.MarshalJSON) + [func (i *IntegrationRuntimeNodeIPAddress) UnmarshalJSON(data []byte) error](#IntegrationRuntimeNodeIPAddress.UnmarshalJSON) * [type IntegrationRuntimeNodeMonitoringData](#IntegrationRuntimeNodeMonitoringData) * + [func (i IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error)](#IntegrationRuntimeNodeMonitoringData.MarshalJSON) + [func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error](#IntegrationRuntimeNodeMonitoringData.UnmarshalJSON) * [type IntegrationRuntimeNodesClient](#IntegrationRuntimeNodesClient) * + [func NewIntegrationRuntimeNodesClient(subscriptionID string, credential azcore.TokenCredential, ...) (*IntegrationRuntimeNodesClient, error)](#NewIntegrationRuntimeNodesClient) * + [func (client *IntegrationRuntimeNodesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimeNodesClientDeleteResponse, error)](#IntegrationRuntimeNodesClient.Delete) + [func (client *IntegrationRuntimeNodesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimeNodesClientGetResponse, error)](#IntegrationRuntimeNodesClient.Get) + [func (client *IntegrationRuntimeNodesClient) GetIPAddress(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimeNodesClientGetIPAddressResponse, error)](#IntegrationRuntimeNodesClient.GetIPAddress) + [func (client *IntegrationRuntimeNodesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimeNodesClientUpdateResponse, error)](#IntegrationRuntimeNodesClient.Update) * [type IntegrationRuntimeNodesClientDeleteOptions](#IntegrationRuntimeNodesClientDeleteOptions) * [type IntegrationRuntimeNodesClientDeleteResponse](#IntegrationRuntimeNodesClientDeleteResponse) * [type IntegrationRuntimeNodesClientGetIPAddressOptions](#IntegrationRuntimeNodesClientGetIPAddressOptions) * [type IntegrationRuntimeNodesClientGetIPAddressResponse](#IntegrationRuntimeNodesClientGetIPAddressResponse) * [type IntegrationRuntimeNodesClientGetOptions](#IntegrationRuntimeNodesClientGetOptions) * [type IntegrationRuntimeNodesClientGetResponse](#IntegrationRuntimeNodesClientGetResponse) * [type IntegrationRuntimeNodesClientUpdateOptions](#IntegrationRuntimeNodesClientUpdateOptions) * [type IntegrationRuntimeNodesClientUpdateResponse](#IntegrationRuntimeNodesClientUpdateResponse) * [type IntegrationRuntimeObjectMetadataClient](#IntegrationRuntimeObjectMetadataClient) * + [func NewIntegrationRuntimeObjectMetadataClient(subscriptionID string, credential azcore.TokenCredential, ...) (*IntegrationRuntimeObjectMetadataClient, error)](#NewIntegrationRuntimeObjectMetadataClient) * + [func (client *IntegrationRuntimeObjectMetadataClient) BeginRefresh(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[IntegrationRuntimeObjectMetadataClientRefreshResponse], error)](#IntegrationRuntimeObjectMetadataClient.BeginRefresh) + [func (client *IntegrationRuntimeObjectMetadataClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimeObjectMetadataClientGetResponse, error)](#IntegrationRuntimeObjectMetadataClient.Get) * [type IntegrationRuntimeObjectMetadataClientBeginRefreshOptions](#IntegrationRuntimeObjectMetadataClientBeginRefreshOptions) * [type IntegrationRuntimeObjectMetadataClientGetOptions](#IntegrationRuntimeObjectMetadataClientGetOptions) * [type IntegrationRuntimeObjectMetadataClientGetResponse](#IntegrationRuntimeObjectMetadataClientGetResponse) * [type IntegrationRuntimeObjectMetadataClientRefreshResponse](#IntegrationRuntimeObjectMetadataClientRefreshResponse) * [type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) * + [func (i IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) MarshalJSON() ([]byte, error)](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.MarshalJSON) + [func (i *IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) UnmarshalJSON(data []byte) error](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.UnmarshalJSON) * [type IntegrationRuntimeOutboundNetworkDependenciesEndpoint](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint) * + [func (i IntegrationRuntimeOutboundNetworkDependenciesEndpoint) MarshalJSON() ([]byte, error)](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint.MarshalJSON) + [func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpoint) UnmarshalJSON(data []byte) error](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint.UnmarshalJSON) * [type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) * + [func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) MarshalJSON() ([]byte, error)](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.MarshalJSON) + [func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) UnmarshalJSON(data []byte) error](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.UnmarshalJSON) * [type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) * + [func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) MarshalJSON() ([]byte, error)](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.MarshalJSON) + [func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) UnmarshalJSON(data []byte) error](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.UnmarshalJSON) * [type IntegrationRuntimeReference](#IntegrationRuntimeReference) * + [func (i IntegrationRuntimeReference) MarshalJSON() ([]byte, error)](#IntegrationRuntimeReference.MarshalJSON) + [func (i *IntegrationRuntimeReference) UnmarshalJSON(data []byte) error](#IntegrationRuntimeReference.UnmarshalJSON) * [type IntegrationRuntimeReferenceType](#IntegrationRuntimeReferenceType) * + [func PossibleIntegrationRuntimeReferenceTypeValues() []IntegrationRuntimeReferenceType](#PossibleIntegrationRuntimeReferenceTypeValues) * [type IntegrationRuntimeRegenerateKeyParameters](#IntegrationRuntimeRegenerateKeyParameters) * + [func (i IntegrationRuntimeRegenerateKeyParameters) MarshalJSON() ([]byte, error)](#IntegrationRuntimeRegenerateKeyParameters.MarshalJSON) + [func (i *IntegrationRuntimeRegenerateKeyParameters) UnmarshalJSON(data []byte) error](#IntegrationRuntimeRegenerateKeyParameters.UnmarshalJSON) * [type IntegrationRuntimeResource](#IntegrationRuntimeResource) * + [func (i IntegrationRuntimeResource) MarshalJSON() ([]byte, error)](#IntegrationRuntimeResource.MarshalJSON) + [func (i *IntegrationRuntimeResource) UnmarshalJSON(data []byte) error](#IntegrationRuntimeResource.UnmarshalJSON) * [type IntegrationRuntimeSsisCatalogInfo](#IntegrationRuntimeSsisCatalogInfo) * + [func (i IntegrationRuntimeSsisCatalogInfo) MarshalJSON() ([]byte, error)](#IntegrationRuntimeSsisCatalogInfo.MarshalJSON) + [func (i *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(data []byte) error](#IntegrationRuntimeSsisCatalogInfo.UnmarshalJSON) * [type IntegrationRuntimeSsisCatalogPricingTier](#IntegrationRuntimeSsisCatalogPricingTier) * + [func PossibleIntegrationRuntimeSsisCatalogPricingTierValues() []IntegrationRuntimeSsisCatalogPricingTier](#PossibleIntegrationRuntimeSsisCatalogPricingTierValues) * [type IntegrationRuntimeSsisProperties](#IntegrationRuntimeSsisProperties) * + [func (i IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error)](#IntegrationRuntimeSsisProperties.MarshalJSON) + [func (i *IntegrationRuntimeSsisProperties) UnmarshalJSON(data []byte) error](#IntegrationRuntimeSsisProperties.UnmarshalJSON) * [type IntegrationRuntimeState](#IntegrationRuntimeState) * + [func PossibleIntegrationRuntimeStateValues() []IntegrationRuntimeState](#PossibleIntegrationRuntimeStateValues) * [type IntegrationRuntimeStatus](#IntegrationRuntimeStatus) * + [func (i *IntegrationRuntimeStatus) GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus](#IntegrationRuntimeStatus.GetIntegrationRuntimeStatus) + [func (i IntegrationRuntimeStatus) MarshalJSON() ([]byte, error)](#IntegrationRuntimeStatus.MarshalJSON) + [func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error](#IntegrationRuntimeStatus.UnmarshalJSON) * [type IntegrationRuntimeStatusClassification](#IntegrationRuntimeStatusClassification) * [type IntegrationRuntimeStatusListResponse](#IntegrationRuntimeStatusListResponse) * + [func (i IntegrationRuntimeStatusListResponse) MarshalJSON() ([]byte, error)](#IntegrationRuntimeStatusListResponse.MarshalJSON) + [func (i *IntegrationRuntimeStatusListResponse) UnmarshalJSON(data []byte) error](#IntegrationRuntimeStatusListResponse.UnmarshalJSON) * [type IntegrationRuntimeStatusResponse](#IntegrationRuntimeStatusResponse) * + [func (i IntegrationRuntimeStatusResponse) MarshalJSON() ([]byte, error)](#IntegrationRuntimeStatusResponse.MarshalJSON) + [func (i *IntegrationRuntimeStatusResponse) UnmarshalJSON(data []byte) error](#IntegrationRuntimeStatusResponse.UnmarshalJSON) * [type IntegrationRuntimeType](#IntegrationRuntimeType) * + [func PossibleIntegrationRuntimeTypeValues() []IntegrationRuntimeType](#PossibleIntegrationRuntimeTypeValues) * [type IntegrationRuntimeUpdateResult](#IntegrationRuntimeUpdateResult) * + [func PossibleIntegrationRuntimeUpdateResultValues() []IntegrationRuntimeUpdateResult](#PossibleIntegrationRuntimeUpdateResultValues) * [type IntegrationRuntimeVNetProperties](#IntegrationRuntimeVNetProperties) * + [func (i IntegrationRuntimeVNetProperties) MarshalJSON() ([]byte, error)](#IntegrationRuntimeVNetProperties.MarshalJSON) + [func (i *IntegrationRuntimeVNetProperties) UnmarshalJSON(data []byte) error](#IntegrationRuntimeVNetProperties.UnmarshalJSON) * [type IntegrationRuntimesClient](#IntegrationRuntimesClient) * + [func NewIntegrationRuntimesClient(subscriptionID string, credential azcore.TokenCredential, ...) (*IntegrationRuntimesClient, error)](#NewIntegrationRuntimesClient) * + [func (client *IntegrationRuntimesClient) BeginStart(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[IntegrationRuntimesClientStartResponse], error)](#IntegrationRuntimesClient.BeginStart) + [func (client *IntegrationRuntimesClient) BeginStop(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[IntegrationRuntimesClientStopResponse], error)](#IntegrationRuntimesClient.BeginStop) + [func (client *IntegrationRuntimesClient) CreateLinkedIntegrationRuntime(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse, error)](#IntegrationRuntimesClient.CreateLinkedIntegrationRuntime) + [func (client *IntegrationRuntimesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientCreateOrUpdateResponse, error)](#IntegrationRuntimesClient.CreateOrUpdate) + [func (client *IntegrationRuntimesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientDeleteResponse, error)](#IntegrationRuntimesClient.Delete) + [func (client *IntegrationRuntimesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientGetResponse, error)](#IntegrationRuntimesClient.Get) + [func (client *IntegrationRuntimesClient) GetConnectionInfo(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientGetConnectionInfoResponse, error)](#IntegrationRuntimesClient.GetConnectionInfo) + [func (client *IntegrationRuntimesClient) GetMonitoringData(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientGetMonitoringDataResponse, error)](#IntegrationRuntimesClient.GetMonitoringData) + [func (client *IntegrationRuntimesClient) GetStatus(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientGetStatusResponse, error)](#IntegrationRuntimesClient.GetStatus) + [func (client *IntegrationRuntimesClient) ListAuthKeys(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientListAuthKeysResponse, error)](#IntegrationRuntimesClient.ListAuthKeys) + [func (client *IntegrationRuntimesClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse, ...)](#IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints) + [func (client *IntegrationRuntimesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[IntegrationRuntimesClientListByFactoryResponse]](#IntegrationRuntimesClient.NewListByFactoryPager) + [func (client *IntegrationRuntimesClient) RegenerateAuthKey(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientRegenerateAuthKeyResponse, error)](#IntegrationRuntimesClient.RegenerateAuthKey) + [func (client *IntegrationRuntimesClient) RemoveLinks(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientRemoveLinksResponse, error)](#IntegrationRuntimesClient.RemoveLinks) + [func (client *IntegrationRuntimesClient) SyncCredentials(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientSyncCredentialsResponse, error)](#IntegrationRuntimesClient.SyncCredentials) + [func (client *IntegrationRuntimesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientUpdateResponse, error)](#IntegrationRuntimesClient.Update) + [func (client *IntegrationRuntimesClient) Upgrade(ctx context.Context, resourceGroupName string, factoryName string, ...) (IntegrationRuntimesClientUpgradeResponse, error)](#IntegrationRuntimesClient.Upgrade) * [type IntegrationRuntimesClientBeginStartOptions](#IntegrationRuntimesClientBeginStartOptions) * [type IntegrationRuntimesClientBeginStopOptions](#IntegrationRuntimesClientBeginStopOptions) * [type IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions](#IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions) * [type IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse](#IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse) * [type IntegrationRuntimesClientCreateOrUpdateOptions](#IntegrationRuntimesClientCreateOrUpdateOptions) * [type IntegrationRuntimesClientCreateOrUpdateResponse](#IntegrationRuntimesClientCreateOrUpdateResponse) * [type IntegrationRuntimesClientDeleteOptions](#IntegrationRuntimesClientDeleteOptions) * [type IntegrationRuntimesClientDeleteResponse](#IntegrationRuntimesClientDeleteResponse) * [type IntegrationRuntimesClientGetConnectionInfoOptions](#IntegrationRuntimesClientGetConnectionInfoOptions) * [type IntegrationRuntimesClientGetConnectionInfoResponse](#IntegrationRuntimesClientGetConnectionInfoResponse) * [type IntegrationRuntimesClientGetMonitoringDataOptions](#IntegrationRuntimesClientGetMonitoringDataOptions) * [type IntegrationRuntimesClientGetMonitoringDataResponse](#IntegrationRuntimesClientGetMonitoringDataResponse) * [type IntegrationRuntimesClientGetOptions](#IntegrationRuntimesClientGetOptions) * [type IntegrationRuntimesClientGetResponse](#IntegrationRuntimesClientGetResponse) * [type IntegrationRuntimesClientGetStatusOptions](#IntegrationRuntimesClientGetStatusOptions) * [type IntegrationRuntimesClientGetStatusResponse](#IntegrationRuntimesClientGetStatusResponse) * [type IntegrationRuntimesClientListAuthKeysOptions](#IntegrationRuntimesClientListAuthKeysOptions) * [type IntegrationRuntimesClientListAuthKeysResponse](#IntegrationRuntimesClientListAuthKeysResponse) * [type IntegrationRuntimesClientListByFactoryOptions](#IntegrationRuntimesClientListByFactoryOptions) * [type IntegrationRuntimesClientListByFactoryResponse](#IntegrationRuntimesClientListByFactoryResponse) * [type IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions](#IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions) * [type IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse](#IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse) * [type IntegrationRuntimesClientRegenerateAuthKeyOptions](#IntegrationRuntimesClientRegenerateAuthKeyOptions) * [type IntegrationRuntimesClientRegenerateAuthKeyResponse](#IntegrationRuntimesClientRegenerateAuthKeyResponse) * [type IntegrationRuntimesClientRemoveLinksOptions](#IntegrationRuntimesClientRemoveLinksOptions) * [type IntegrationRuntimesClientRemoveLinksResponse](#IntegrationRuntimesClientRemoveLinksResponse) * [type IntegrationRuntimesClientStartResponse](#IntegrationRuntimesClientStartResponse) * [type IntegrationRuntimesClientStopResponse](#IntegrationRuntimesClientStopResponse) * [type IntegrationRuntimesClientSyncCredentialsOptions](#IntegrationRuntimesClientSyncCredentialsOptions) * [type IntegrationRuntimesClientSyncCredentialsResponse](#IntegrationRuntimesClientSyncCredentialsResponse) * [type IntegrationRuntimesClientUpdateOptions](#IntegrationRuntimesClientUpdateOptions) * [type IntegrationRuntimesClientUpdateResponse](#IntegrationRuntimesClientUpdateResponse) * [type IntegrationRuntimesClientUpgradeOptions](#IntegrationRuntimesClientUpgradeOptions) * [type IntegrationRuntimesClientUpgradeResponse](#IntegrationRuntimesClientUpgradeResponse) * [type JSONDataset](#JSONDataset) * + [func (j *JSONDataset) GetDataset() *Dataset](#JSONDataset.GetDataset) + [func (j JSONDataset) MarshalJSON() ([]byte, error)](#JSONDataset.MarshalJSON) + [func (j *JSONDataset) UnmarshalJSON(data []byte) error](#JSONDataset.UnmarshalJSON) * [type JSONDatasetTypeProperties](#JSONDatasetTypeProperties) * + [func (j JSONDatasetTypeProperties) MarshalJSON() ([]byte, error)](#JSONDatasetTypeProperties.MarshalJSON) + [func (j *JSONDatasetTypeProperties) UnmarshalJSON(data []byte) error](#JSONDatasetTypeProperties.UnmarshalJSON) * [type JSONFormat](#JSONFormat) * + [func (j *JSONFormat) GetDatasetStorageFormat() *DatasetStorageFormat](#JSONFormat.GetDatasetStorageFormat) + [func (j JSONFormat) MarshalJSON() ([]byte, error)](#JSONFormat.MarshalJSON) + [func (j *JSONFormat) UnmarshalJSON(data []byte) error](#JSONFormat.UnmarshalJSON) * [type JSONFormatFilePattern](#JSONFormatFilePattern) * + [func PossibleJSONFormatFilePatternValues() []JSONFormatFilePattern](#PossibleJSONFormatFilePatternValues) * [type JSONReadSettings](#JSONReadSettings) * + [func (j *JSONReadSettings) GetFormatReadSettings() *FormatReadSettings](#JSONReadSettings.GetFormatReadSettings) + [func (j JSONReadSettings) MarshalJSON() ([]byte, error)](#JSONReadSettings.MarshalJSON) + [func (j *JSONReadSettings) UnmarshalJSON(data []byte) error](#JSONReadSettings.UnmarshalJSON) * [type JSONSink](#JSONSink) * + [func (j *JSONSink) GetCopySink() *CopySink](#JSONSink.GetCopySink) + [func (j JSONSink) MarshalJSON() ([]byte, error)](#JSONSink.MarshalJSON) + [func (j *JSONSink) UnmarshalJSON(data []byte) error](#JSONSink.UnmarshalJSON) * [type JSONSource](#JSONSource) * + [func (j *JSONSource) GetCopySource() *CopySource](#JSONSource.GetCopySource) + [func (j JSONSource) MarshalJSON() ([]byte, error)](#JSONSource.MarshalJSON) + [func (j *JSONSource) UnmarshalJSON(data []byte) error](#JSONSource.UnmarshalJSON) * [type JSONWriteFilePattern](#JSONWriteFilePattern) * + [func PossibleJSONWriteFilePatternValues() []JSONWriteFilePattern](#PossibleJSONWriteFilePatternValues) * [type JSONWriteSettings](#JSONWriteSettings) * + [func (j *JSONWriteSettings) GetFormatWriteSettings() *FormatWriteSettings](#JSONWriteSettings.GetFormatWriteSettings) + [func (j JSONWriteSettings) MarshalJSON() ([]byte, error)](#JSONWriteSettings.MarshalJSON) + [func (j *JSONWriteSettings) UnmarshalJSON(data []byte) error](#JSONWriteSettings.UnmarshalJSON) * [type JiraLinkedService](#JiraLinkedService) * + [func (j *JiraLinkedService) GetLinkedService() *LinkedService](#JiraLinkedService.GetLinkedService) + [func (j JiraLinkedService) MarshalJSON() ([]byte, error)](#JiraLinkedService.MarshalJSON) + [func (j *JiraLinkedService) UnmarshalJSON(data []byte) error](#JiraLinkedService.UnmarshalJSON) * [type JiraLinkedServiceTypeProperties](#JiraLinkedServiceTypeProperties) * + [func (j JiraLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#JiraLinkedServiceTypeProperties.MarshalJSON) + [func (j *JiraLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#JiraLinkedServiceTypeProperties.UnmarshalJSON) * [type JiraObjectDataset](#JiraObjectDataset) * + [func (j *JiraObjectDataset) GetDataset() *Dataset](#JiraObjectDataset.GetDataset) + [func (j JiraObjectDataset) MarshalJSON() ([]byte, error)](#JiraObjectDataset.MarshalJSON) + [func (j *JiraObjectDataset) UnmarshalJSON(data []byte) error](#JiraObjectDataset.UnmarshalJSON) * [type JiraSource](#JiraSource) * + [func (j *JiraSource) GetCopySource() *CopySource](#JiraSource.GetCopySource) + [func (j *JiraSource) GetTabularSource() *TabularSource](#JiraSource.GetTabularSource) + [func (j JiraSource) MarshalJSON() ([]byte, error)](#JiraSource.MarshalJSON) + [func (j *JiraSource) UnmarshalJSON(data []byte) error](#JiraSource.UnmarshalJSON) * [type LicensedComponentSetupTypeProperties](#LicensedComponentSetupTypeProperties) * + [func (l LicensedComponentSetupTypeProperties) MarshalJSON() ([]byte, error)](#LicensedComponentSetupTypeProperties.MarshalJSON) + [func (l *LicensedComponentSetupTypeProperties) UnmarshalJSON(data []byte) error](#LicensedComponentSetupTypeProperties.UnmarshalJSON) * [type LinkedIntegrationRuntime](#LinkedIntegrationRuntime) * + [func (l LinkedIntegrationRuntime) MarshalJSON() ([]byte, error)](#LinkedIntegrationRuntime.MarshalJSON) + [func (l *LinkedIntegrationRuntime) UnmarshalJSON(data []byte) error](#LinkedIntegrationRuntime.UnmarshalJSON) * [type LinkedIntegrationRuntimeKeyAuthorization](#LinkedIntegrationRuntimeKeyAuthorization) * + [func (l *LinkedIntegrationRuntimeKeyAuthorization) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeKeyAuthorization.GetLinkedIntegrationRuntimeType) + [func (l LinkedIntegrationRuntimeKeyAuthorization) MarshalJSON() ([]byte, error)](#LinkedIntegrationRuntimeKeyAuthorization.MarshalJSON) + [func (l *LinkedIntegrationRuntimeKeyAuthorization) UnmarshalJSON(data []byte) error](#LinkedIntegrationRuntimeKeyAuthorization.UnmarshalJSON) * [type LinkedIntegrationRuntimeRbacAuthorization](#LinkedIntegrationRuntimeRbacAuthorization) * + [func (l *LinkedIntegrationRuntimeRbacAuthorization) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeRbacAuthorization.GetLinkedIntegrationRuntimeType) + [func (l LinkedIntegrationRuntimeRbacAuthorization) MarshalJSON() ([]byte, error)](#LinkedIntegrationRuntimeRbacAuthorization.MarshalJSON) + [func (l *LinkedIntegrationRuntimeRbacAuthorization) UnmarshalJSON(data []byte) error](#LinkedIntegrationRuntimeRbacAuthorization.UnmarshalJSON) * [type LinkedIntegrationRuntimeRequest](#LinkedIntegrationRuntimeRequest) * + [func (l LinkedIntegrationRuntimeRequest) MarshalJSON() ([]byte, error)](#LinkedIntegrationRuntimeRequest.MarshalJSON) + [func (l *LinkedIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error](#LinkedIntegrationRuntimeRequest.UnmarshalJSON) * [type LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType) * + [func (l *LinkedIntegrationRuntimeType) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType.GetLinkedIntegrationRuntimeType) + [func (l LinkedIntegrationRuntimeType) MarshalJSON() ([]byte, error)](#LinkedIntegrationRuntimeType.MarshalJSON) + [func (l *LinkedIntegrationRuntimeType) UnmarshalJSON(data []byte) error](#LinkedIntegrationRuntimeType.UnmarshalJSON) * [type LinkedIntegrationRuntimeTypeClassification](#LinkedIntegrationRuntimeTypeClassification) * [type LinkedService](#LinkedService) * + [func (l *LinkedService) GetLinkedService() *LinkedService](#LinkedService.GetLinkedService) + [func (l LinkedService) MarshalJSON() ([]byte, error)](#LinkedService.MarshalJSON) + [func (l *LinkedService) UnmarshalJSON(data []byte) error](#LinkedService.UnmarshalJSON) * [type LinkedServiceClassification](#LinkedServiceClassification) * [type LinkedServiceDebugResource](#LinkedServiceDebugResource) * + [func (l LinkedServiceDebugResource) MarshalJSON() ([]byte, error)](#LinkedServiceDebugResource.MarshalJSON) + [func (l *LinkedServiceDebugResource) UnmarshalJSON(data []byte) error](#LinkedServiceDebugResource.UnmarshalJSON) * [type LinkedServiceListResponse](#LinkedServiceListResponse) * + [func (l LinkedServiceListResponse) MarshalJSON() ([]byte, error)](#LinkedServiceListResponse.MarshalJSON) + [func (l *LinkedServiceListResponse) UnmarshalJSON(data []byte) error](#LinkedServiceListResponse.UnmarshalJSON) * [type LinkedServiceReference](#LinkedServiceReference) * + [func (l LinkedServiceReference) MarshalJSON() ([]byte, error)](#LinkedServiceReference.MarshalJSON) + [func (l *LinkedServiceReference) UnmarshalJSON(data []byte) error](#LinkedServiceReference.UnmarshalJSON) * [type LinkedServiceReferenceType](#LinkedServiceReferenceType) * + [func PossibleLinkedServiceReferenceTypeValues() []LinkedServiceReferenceType](#PossibleLinkedServiceReferenceTypeValues) * [type LinkedServiceResource](#LinkedServiceResource) * + [func (l LinkedServiceResource) MarshalJSON() ([]byte, error)](#LinkedServiceResource.MarshalJSON) + [func (l *LinkedServiceResource) UnmarshalJSON(data []byte) error](#LinkedServiceResource.UnmarshalJSON) * [type LinkedServicesClient](#LinkedServicesClient) * + [func NewLinkedServicesClient(subscriptionID string, credential azcore.TokenCredential, ...) (*LinkedServicesClient, error)](#NewLinkedServicesClient) * + [func (client *LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (LinkedServicesClientCreateOrUpdateResponse, error)](#LinkedServicesClient.CreateOrUpdate) + [func (client *LinkedServicesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (LinkedServicesClientDeleteResponse, error)](#LinkedServicesClient.Delete) + [func (client *LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (LinkedServicesClientGetResponse, error)](#LinkedServicesClient.Get) + [func (client *LinkedServicesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[LinkedServicesClientListByFactoryResponse]](#LinkedServicesClient.NewListByFactoryPager) * [type LinkedServicesClientCreateOrUpdateOptions](#LinkedServicesClientCreateOrUpdateOptions) * [type LinkedServicesClientCreateOrUpdateResponse](#LinkedServicesClientCreateOrUpdateResponse) * [type LinkedServicesClientDeleteOptions](#LinkedServicesClientDeleteOptions) * [type LinkedServicesClientDeleteResponse](#LinkedServicesClientDeleteResponse) * [type LinkedServicesClientGetOptions](#LinkedServicesClientGetOptions) * [type LinkedServicesClientGetResponse](#LinkedServicesClientGetResponse) * [type LinkedServicesClientListByFactoryOptions](#LinkedServicesClientListByFactoryOptions) * [type LinkedServicesClientListByFactoryResponse](#LinkedServicesClientListByFactoryResponse) * [type LogLocationSettings](#LogLocationSettings) * + [func (l LogLocationSettings) MarshalJSON() ([]byte, error)](#LogLocationSettings.MarshalJSON) + [func (l *LogLocationSettings) UnmarshalJSON(data []byte) error](#LogLocationSettings.UnmarshalJSON) * [type LogSettings](#LogSettings) * + [func (l LogSettings) MarshalJSON() ([]byte, error)](#LogSettings.MarshalJSON) + [func (l *LogSettings) UnmarshalJSON(data []byte) error](#LogSettings.UnmarshalJSON) * [type LogStorageSettings](#LogStorageSettings) * + [func (l LogStorageSettings) MarshalJSON() ([]byte, error)](#LogStorageSettings.MarshalJSON) + [func (l *LogStorageSettings) UnmarshalJSON(data []byte) error](#LogStorageSettings.UnmarshalJSON) * [type LookupActivity](#LookupActivity) * + [func (l *LookupActivity) GetActivity() *Activity](#LookupActivity.GetActivity) + [func (l *LookupActivity) GetExecutionActivity() *ExecutionActivity](#LookupActivity.GetExecutionActivity) + [func (l LookupActivity) MarshalJSON() ([]byte, error)](#LookupActivity.MarshalJSON) + [func (l *LookupActivity) UnmarshalJSON(data []byte) error](#LookupActivity.UnmarshalJSON) * [type LookupActivityTypeProperties](#LookupActivityTypeProperties) * + [func (l LookupActivityTypeProperties) MarshalJSON() ([]byte, error)](#LookupActivityTypeProperties.MarshalJSON) + [func (l *LookupActivityTypeProperties) UnmarshalJSON(data []byte) error](#LookupActivityTypeProperties.UnmarshalJSON) * [type MagentoLinkedService](#MagentoLinkedService) * + [func (m *MagentoLinkedService) GetLinkedService() *LinkedService](#MagentoLinkedService.GetLinkedService) + [func (m MagentoLinkedService) MarshalJSON() ([]byte, error)](#MagentoLinkedService.MarshalJSON) + [func (m *MagentoLinkedService) UnmarshalJSON(data []byte) error](#MagentoLinkedService.UnmarshalJSON) * [type MagentoLinkedServiceTypeProperties](#MagentoLinkedServiceTypeProperties) * + [func (m MagentoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#MagentoLinkedServiceTypeProperties.MarshalJSON) + [func (m *MagentoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#MagentoLinkedServiceTypeProperties.UnmarshalJSON) * [type MagentoObjectDataset](#MagentoObjectDataset) * + [func (m *MagentoObjectDataset) GetDataset() *Dataset](#MagentoObjectDataset.GetDataset) + [func (m MagentoObjectDataset) MarshalJSON() ([]byte, error)](#MagentoObjectDataset.MarshalJSON) + [func (m *MagentoObjectDataset) UnmarshalJSON(data []byte) error](#MagentoObjectDataset.UnmarshalJSON) * [type MagentoSource](#MagentoSource) * + [func (m *MagentoSource) GetCopySource() *CopySource](#MagentoSource.GetCopySource) + [func (m *MagentoSource) GetTabularSource() *TabularSource](#MagentoSource.GetTabularSource) + [func (m MagentoSource) MarshalJSON() ([]byte, error)](#MagentoSource.MarshalJSON) + [func (m *MagentoSource) UnmarshalJSON(data []byte) error](#MagentoSource.UnmarshalJSON) * [type ManagedIdentityCredential](#ManagedIdentityCredential) * + [func (m *ManagedIdentityCredential) GetCredential() *Credential](#ManagedIdentityCredential.GetCredential) + [func (m ManagedIdentityCredential) MarshalJSON() ([]byte, error)](#ManagedIdentityCredential.MarshalJSON) + [func (m *ManagedIdentityCredential) UnmarshalJSON(data []byte) error](#ManagedIdentityCredential.UnmarshalJSON) * [type ManagedIdentityTypeProperties](#ManagedIdentityTypeProperties) * + [func (m ManagedIdentityTypeProperties) MarshalJSON() ([]byte, error)](#ManagedIdentityTypeProperties.MarshalJSON) + [func (m *ManagedIdentityTypeProperties) UnmarshalJSON(data []byte) error](#ManagedIdentityTypeProperties.UnmarshalJSON) * [type ManagedIntegrationRuntime](#ManagedIntegrationRuntime) * + [func (m *ManagedIntegrationRuntime) GetIntegrationRuntime() *IntegrationRuntime](#ManagedIntegrationRuntime.GetIntegrationRuntime) + [func (m ManagedIntegrationRuntime) MarshalJSON() ([]byte, error)](#ManagedIntegrationRuntime.MarshalJSON) + [func (m *ManagedIntegrationRuntime) UnmarshalJSON(data []byte) error](#ManagedIntegrationRuntime.UnmarshalJSON) * [type ManagedIntegrationRuntimeError](#ManagedIntegrationRuntimeError) * + [func (m ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error)](#ManagedIntegrationRuntimeError.MarshalJSON) + [func (m *ManagedIntegrationRuntimeError) UnmarshalJSON(data []byte) error](#ManagedIntegrationRuntimeError.UnmarshalJSON) * [type ManagedIntegrationRuntimeNode](#ManagedIntegrationRuntimeNode) * + [func (m ManagedIntegrationRuntimeNode) MarshalJSON() ([]byte, error)](#ManagedIntegrationRuntimeNode.MarshalJSON) + [func (m *ManagedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error](#ManagedIntegrationRuntimeNode.UnmarshalJSON) * [type ManagedIntegrationRuntimeNodeStatus](#ManagedIntegrationRuntimeNodeStatus) * + [func PossibleManagedIntegrationRuntimeNodeStatusValues() []ManagedIntegrationRuntimeNodeStatus](#PossibleManagedIntegrationRuntimeNodeStatusValues) * [type ManagedIntegrationRuntimeOperationResult](#ManagedIntegrationRuntimeOperationResult) * + [func (m ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error)](#ManagedIntegrationRuntimeOperationResult.MarshalJSON) + [func (m *ManagedIntegrationRuntimeOperationResult) UnmarshalJSON(data []byte) error](#ManagedIntegrationRuntimeOperationResult.UnmarshalJSON) * [type ManagedIntegrationRuntimeStatus](#ManagedIntegrationRuntimeStatus) * + [func (m *ManagedIntegrationRuntimeStatus) GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus](#ManagedIntegrationRuntimeStatus.GetIntegrationRuntimeStatus) + [func (m ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error)](#ManagedIntegrationRuntimeStatus.MarshalJSON) + [func (m *ManagedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error](#ManagedIntegrationRuntimeStatus.UnmarshalJSON) * [type ManagedIntegrationRuntimeStatusTypeProperties](#ManagedIntegrationRuntimeStatusTypeProperties) * + [func (m ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error)](#ManagedIntegrationRuntimeStatusTypeProperties.MarshalJSON) + [func (m *ManagedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byte) error](#ManagedIntegrationRuntimeStatusTypeProperties.UnmarshalJSON) * [type ManagedIntegrationRuntimeTypeProperties](#ManagedIntegrationRuntimeTypeProperties) * + [func (m ManagedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error)](#ManagedIntegrationRuntimeTypeProperties.MarshalJSON) + [func (m *ManagedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) error](#ManagedIntegrationRuntimeTypeProperties.UnmarshalJSON) * [type ManagedPrivateEndpoint](#ManagedPrivateEndpoint) * + [func (m ManagedPrivateEndpoint) MarshalJSON() ([]byte, error)](#ManagedPrivateEndpoint.MarshalJSON) + [func (m *ManagedPrivateEndpoint) UnmarshalJSON(data []byte) error](#ManagedPrivateEndpoint.UnmarshalJSON) * [type ManagedPrivateEndpointListResponse](#ManagedPrivateEndpointListResponse) * + [func (m ManagedPrivateEndpointListResponse) MarshalJSON() ([]byte, error)](#ManagedPrivateEndpointListResponse.MarshalJSON) + [func (m *ManagedPrivateEndpointListResponse) UnmarshalJSON(data []byte) error](#ManagedPrivateEndpointListResponse.UnmarshalJSON) * [type ManagedPrivateEndpointResource](#ManagedPrivateEndpointResource) * + [func (m ManagedPrivateEndpointResource) MarshalJSON() ([]byte, error)](#ManagedPrivateEndpointResource.MarshalJSON) + [func (m *ManagedPrivateEndpointResource) UnmarshalJSON(data []byte) error](#ManagedPrivateEndpointResource.UnmarshalJSON) * [type ManagedPrivateEndpointsClient](#ManagedPrivateEndpointsClient) * + [func NewManagedPrivateEndpointsClient(subscriptionID string, credential azcore.TokenCredential, ...) (*ManagedPrivateEndpointsClient, error)](#NewManagedPrivateEndpointsClient) * + [func (client *ManagedPrivateEndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (ManagedPrivateEndpointsClientCreateOrUpdateResponse, error)](#ManagedPrivateEndpointsClient.CreateOrUpdate) + [func (client *ManagedPrivateEndpointsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (ManagedPrivateEndpointsClientDeleteResponse, error)](#ManagedPrivateEndpointsClient.Delete) + [func (client *ManagedPrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (ManagedPrivateEndpointsClientGetResponse, error)](#ManagedPrivateEndpointsClient.Get) + [func (client *ManagedPrivateEndpointsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, managedVirtualNetworkName string, ...) *runtime.Pager[ManagedPrivateEndpointsClientListByFactoryResponse]](#ManagedPrivateEndpointsClient.NewListByFactoryPager) * [type ManagedPrivateEndpointsClientCreateOrUpdateOptions](#ManagedPrivateEndpointsClientCreateOrUpdateOptions) * [type ManagedPrivateEndpointsClientCreateOrUpdateResponse](#ManagedPrivateEndpointsClientCreateOrUpdateResponse) * [type ManagedPrivateEndpointsClientDeleteOptions](#ManagedPrivateEndpointsClientDeleteOptions) * [type ManagedPrivateEndpointsClientDeleteResponse](#ManagedPrivateEndpointsClientDeleteResponse) * [type ManagedPrivateEndpointsClientGetOptions](#ManagedPrivateEndpointsClientGetOptions) * [type ManagedPrivateEndpointsClientGetResponse](#ManagedPrivateEndpointsClientGetResponse) * [type ManagedPrivateEndpointsClientListByFactoryOptions](#ManagedPrivateEndpointsClientListByFactoryOptions) * [type ManagedPrivateEndpointsClientListByFactoryResponse](#ManagedPrivateEndpointsClientListByFactoryResponse) * [type ManagedVirtualNetwork](#ManagedVirtualNetwork) * + [func (m ManagedVirtualNetwork) MarshalJSON() ([]byte, error)](#ManagedVirtualNetwork.MarshalJSON) + [func (m *ManagedVirtualNetwork) UnmarshalJSON(data []byte) error](#ManagedVirtualNetwork.UnmarshalJSON) * [type ManagedVirtualNetworkListResponse](#ManagedVirtualNetworkListResponse) * + [func (m ManagedVirtualNetworkListResponse) MarshalJSON() ([]byte, error)](#ManagedVirtualNetworkListResponse.MarshalJSON) + [func (m *ManagedVirtualNetworkListResponse) UnmarshalJSON(data []byte) error](#ManagedVirtualNetworkListResponse.UnmarshalJSON) * [type ManagedVirtualNetworkReference](#ManagedVirtualNetworkReference) * + [func (m ManagedVirtualNetworkReference) MarshalJSON() ([]byte, error)](#ManagedVirtualNetworkReference.MarshalJSON) + [func (m *ManagedVirtualNetworkReference) UnmarshalJSON(data []byte) error](#ManagedVirtualNetworkReference.UnmarshalJSON) * [type ManagedVirtualNetworkReferenceType](#ManagedVirtualNetworkReferenceType) * + [func PossibleManagedVirtualNetworkReferenceTypeValues() []ManagedVirtualNetworkReferenceType](#PossibleManagedVirtualNetworkReferenceTypeValues) * [type ManagedVirtualNetworkResource](#ManagedVirtualNetworkResource) * + [func (m ManagedVirtualNetworkResource) MarshalJSON() ([]byte, error)](#ManagedVirtualNetworkResource.MarshalJSON) + [func (m *ManagedVirtualNetworkResource) UnmarshalJSON(data []byte) error](#ManagedVirtualNetworkResource.UnmarshalJSON) * [type ManagedVirtualNetworksClient](#ManagedVirtualNetworksClient) * + [func NewManagedVirtualNetworksClient(subscriptionID string, credential azcore.TokenCredential, ...) (*ManagedVirtualNetworksClient, error)](#NewManagedVirtualNetworksClient) * + [func (client *ManagedVirtualNetworksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (ManagedVirtualNetworksClientCreateOrUpdateResponse, error)](#ManagedVirtualNetworksClient.CreateOrUpdate) + [func (client *ManagedVirtualNetworksClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (ManagedVirtualNetworksClientGetResponse, error)](#ManagedVirtualNetworksClient.Get) + [func (client *ManagedVirtualNetworksClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[ManagedVirtualNetworksClientListByFactoryResponse]](#ManagedVirtualNetworksClient.NewListByFactoryPager) * [type ManagedVirtualNetworksClientCreateOrUpdateOptions](#ManagedVirtualNetworksClientCreateOrUpdateOptions) * [type ManagedVirtualNetworksClientCreateOrUpdateResponse](#ManagedVirtualNetworksClientCreateOrUpdateResponse) * [type ManagedVirtualNetworksClientGetOptions](#ManagedVirtualNetworksClientGetOptions) * [type ManagedVirtualNetworksClientGetResponse](#ManagedVirtualNetworksClientGetResponse) * [type ManagedVirtualNetworksClientListByFactoryOptions](#ManagedVirtualNetworksClientListByFactoryOptions) * [type ManagedVirtualNetworksClientListByFactoryResponse](#ManagedVirtualNetworksClientListByFactoryResponse) * [type MappingDataFlow](#MappingDataFlow) * + [func (m *MappingDataFlow) GetDataFlow() *DataFlow](#MappingDataFlow.GetDataFlow) + [func (m MappingDataFlow) MarshalJSON() ([]byte, error)](#MappingDataFlow.MarshalJSON) + [func (m *MappingDataFlow) UnmarshalJSON(data []byte) error](#MappingDataFlow.UnmarshalJSON) * [type MappingDataFlowTypeProperties](#MappingDataFlowTypeProperties) * + [func (m MappingDataFlowTypeProperties) MarshalJSON() ([]byte, error)](#MappingDataFlowTypeProperties.MarshalJSON) + [func (m *MappingDataFlowTypeProperties) UnmarshalJSON(data []byte) error](#MappingDataFlowTypeProperties.UnmarshalJSON) * [type MariaDBLinkedService](#MariaDBLinkedService) * + [func (m *MariaDBLinkedService) GetLinkedService() *LinkedService](#MariaDBLinkedService.GetLinkedService) + [func (m MariaDBLinkedService) MarshalJSON() ([]byte, error)](#MariaDBLinkedService.MarshalJSON) + [func (m *MariaDBLinkedService) UnmarshalJSON(data []byte) error](#MariaDBLinkedService.UnmarshalJSON) * [type MariaDBLinkedServiceTypeProperties](#MariaDBLinkedServiceTypeProperties) * + [func (m MariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#MariaDBLinkedServiceTypeProperties.MarshalJSON) + [func (m *MariaDBLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#MariaDBLinkedServiceTypeProperties.UnmarshalJSON) * [type MariaDBSource](#MariaDBSource) * + [func (m *MariaDBSource) GetCopySource() *CopySource](#MariaDBSource.GetCopySource) + [func (m *MariaDBSource) GetTabularSource() *TabularSource](#MariaDBSource.GetTabularSource) + [func (m MariaDBSource) MarshalJSON() ([]byte, error)](#MariaDBSource.MarshalJSON) + [func (m *MariaDBSource) UnmarshalJSON(data []byte) error](#MariaDBSource.UnmarshalJSON) * [type MariaDBTableDataset](#MariaDBTableDataset) * + [func (m *MariaDBTableDataset) GetDataset() *Dataset](#MariaDBTableDataset.GetDataset) + [func (m MariaDBTableDataset) MarshalJSON() ([]byte, error)](#MariaDBTableDataset.MarshalJSON) + [func (m *MariaDBTableDataset) UnmarshalJSON(data []byte) error](#MariaDBTableDataset.UnmarshalJSON) * [type MarketoLinkedService](#MarketoLinkedService) * + [func (m *MarketoLinkedService) GetLinkedService() *LinkedService](#MarketoLinkedService.GetLinkedService) + [func (m MarketoLinkedService) MarshalJSON() ([]byte, error)](#MarketoLinkedService.MarshalJSON) + [func (m *MarketoLinkedService) UnmarshalJSON(data []byte) error](#MarketoLinkedService.UnmarshalJSON) * [type MarketoLinkedServiceTypeProperties](#MarketoLinkedServiceTypeProperties) * + [func (m MarketoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#MarketoLinkedServiceTypeProperties.MarshalJSON) + [func (m *MarketoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#MarketoLinkedServiceTypeProperties.UnmarshalJSON) * [type MarketoObjectDataset](#MarketoObjectDataset) * + [func (m *MarketoObjectDataset) GetDataset() *Dataset](#MarketoObjectDataset.GetDataset) + [func (m MarketoObjectDataset) MarshalJSON() ([]byte, error)](#MarketoObjectDataset.MarshalJSON) + [func (m *MarketoObjectDataset) UnmarshalJSON(data []byte) error](#MarketoObjectDataset.UnmarshalJSON) * [type MarketoSource](#MarketoSource) * + [func (m *MarketoSource) GetCopySource() *CopySource](#MarketoSource.GetCopySource) + [func (m *MarketoSource) GetTabularSource() *TabularSource](#MarketoSource.GetTabularSource) + [func (m MarketoSource) MarshalJSON() ([]byte, error)](#MarketoSource.MarshalJSON) + [func (m *MarketoSource) UnmarshalJSON(data []byte) error](#MarketoSource.UnmarshalJSON) * [type MetadataItem](#MetadataItem) * + [func (m MetadataItem) MarshalJSON() ([]byte, error)](#MetadataItem.MarshalJSON) + [func (m *MetadataItem) UnmarshalJSON(data []byte) error](#MetadataItem.UnmarshalJSON) * [type MicrosoftAccessLinkedService](#MicrosoftAccessLinkedService) * + [func (m *MicrosoftAccessLinkedService) GetLinkedService() *LinkedService](#MicrosoftAccessLinkedService.GetLinkedService) + [func (m MicrosoftAccessLinkedService) MarshalJSON() ([]byte, error)](#MicrosoftAccessLinkedService.MarshalJSON) + [func (m *MicrosoftAccessLinkedService) UnmarshalJSON(data []byte) error](#MicrosoftAccessLinkedService.UnmarshalJSON) * [type MicrosoftAccessLinkedServiceTypeProperties](#MicrosoftAccessLinkedServiceTypeProperties) * + [func (m MicrosoftAccessLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#MicrosoftAccessLinkedServiceTypeProperties.MarshalJSON) + [func (m *MicrosoftAccessLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#MicrosoftAccessLinkedServiceTypeProperties.UnmarshalJSON) * [type MicrosoftAccessSink](#MicrosoftAccessSink) * + [func (m *MicrosoftAccessSink) GetCopySink() *CopySink](#MicrosoftAccessSink.GetCopySink) + [func (m MicrosoftAccessSink) MarshalJSON() ([]byte, error)](#MicrosoftAccessSink.MarshalJSON) + [func (m *MicrosoftAccessSink) UnmarshalJSON(data []byte) error](#MicrosoftAccessSink.UnmarshalJSON) * [type MicrosoftAccessSource](#MicrosoftAccessSource) * + [func (m *MicrosoftAccessSource) GetCopySource() *CopySource](#MicrosoftAccessSource.GetCopySource) + [func (m MicrosoftAccessSource) MarshalJSON() ([]byte, error)](#MicrosoftAccessSource.MarshalJSON) + [func (m *MicrosoftAccessSource) UnmarshalJSON(data []byte) error](#MicrosoftAccessSource.UnmarshalJSON) * [type MicrosoftAccessTableDataset](#MicrosoftAccessTableDataset) * + [func (m *MicrosoftAccessTableDataset) GetDataset() *Dataset](#MicrosoftAccessTableDataset.GetDataset) + [func (m MicrosoftAccessTableDataset) MarshalJSON() ([]byte, error)](#MicrosoftAccessTableDataset.MarshalJSON) + [func (m *MicrosoftAccessTableDataset) UnmarshalJSON(data []byte) error](#MicrosoftAccessTableDataset.UnmarshalJSON) * [type MicrosoftAccessTableDatasetTypeProperties](#MicrosoftAccessTableDatasetTypeProperties) * + [func (m MicrosoftAccessTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#MicrosoftAccessTableDatasetTypeProperties.MarshalJSON) + [func (m *MicrosoftAccessTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#MicrosoftAccessTableDatasetTypeProperties.UnmarshalJSON) * [type MongoDbAtlasCollectionDataset](#MongoDbAtlasCollectionDataset) * + [func (m *MongoDbAtlasCollectionDataset) GetDataset() *Dataset](#MongoDbAtlasCollectionDataset.GetDataset) + [func (m MongoDbAtlasCollectionDataset) MarshalJSON() ([]byte, error)](#MongoDbAtlasCollectionDataset.MarshalJSON) + [func (m *MongoDbAtlasCollectionDataset) UnmarshalJSON(data []byte) error](#MongoDbAtlasCollectionDataset.UnmarshalJSON) * [type MongoDbAtlasCollectionDatasetTypeProperties](#MongoDbAtlasCollectionDatasetTypeProperties) * + [func (m MongoDbAtlasCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error)](#MongoDbAtlasCollectionDatasetTypeProperties.MarshalJSON) + [func (m *MongoDbAtlasCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) error](#MongoDbAtlasCollectionDatasetTypeProperties.UnmarshalJSON) * [type MongoDbAtlasLinkedService](#MongoDbAtlasLinkedService) * + [func (m *MongoDbAtlasLinkedService) GetLinkedService() *LinkedService](#MongoDbAtlasLinkedService.GetLinkedService) + [func (m MongoDbAtlasLinkedService) MarshalJSON() ([]byte, error)](#MongoDbAtlasLinkedService.MarshalJSON) + [func (m *MongoDbAtlasLinkedService) UnmarshalJSON(data []byte) error](#MongoDbAtlasLinkedService.UnmarshalJSON) * [type MongoDbAtlasLinkedServiceTypeProperties](#MongoDbAtlasLinkedServiceTypeProperties) * + [func (m MongoDbAtlasLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#MongoDbAtlasLinkedServiceTypeProperties.MarshalJSON) + [func (m *MongoDbAtlasLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#MongoDbAtlasLinkedServiceTypeProperties.UnmarshalJSON) * [type MongoDbAtlasSink](#MongoDbAtlasSink) * + [func (m *MongoDbAtlasSink) GetCopySink() *CopySink](#MongoDbAtlasSink.GetCopySink) + [func (m MongoDbAtlasSink) MarshalJSON() ([]byte, error)](#MongoDbAtlasSink.MarshalJSON) + [func (m *MongoDbAtlasSink) UnmarshalJSON(data []byte) error](#MongoDbAtlasSink.UnmarshalJSON) * [type MongoDbAtlasSource](#MongoDbAtlasSource) * + [func (m *MongoDbAtlasSource) GetCopySource() *CopySource](#MongoDbAtlasSource.GetCopySource) + [func (m MongoDbAtlasSource) MarshalJSON() ([]byte, error)](#MongoDbAtlasSource.MarshalJSON) + [func (m *MongoDbAtlasSource) UnmarshalJSON(data []byte) error](#MongoDbAtlasSource.UnmarshalJSON) * [type MongoDbAuthenticationType](#MongoDbAuthenticationType) * + [func PossibleMongoDbAuthenticationTypeValues() []MongoDbAuthenticationType](#PossibleMongoDbAuthenticationTypeValues) * [type MongoDbCollectionDataset](#MongoDbCollectionDataset) * + [func (m *MongoDbCollectionDataset) GetDataset() *Dataset](#MongoDbCollectionDataset.GetDataset) + [func (m MongoDbCollectionDataset) MarshalJSON() ([]byte, error)](#MongoDbCollectionDataset.MarshalJSON) + [func (m *MongoDbCollectionDataset) UnmarshalJSON(data []byte) error](#MongoDbCollectionDataset.UnmarshalJSON) * [type MongoDbCollectionDatasetTypeProperties](#MongoDbCollectionDatasetTypeProperties) * + [func (m MongoDbCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error)](#MongoDbCollectionDatasetTypeProperties.MarshalJSON) + [func (m *MongoDbCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) error](#MongoDbCollectionDatasetTypeProperties.UnmarshalJSON) * [type MongoDbCursorMethodsProperties](#MongoDbCursorMethodsProperties) * + [func (m MongoDbCursorMethodsProperties) MarshalJSON() ([]byte, error)](#MongoDbCursorMethodsProperties.MarshalJSON) + [func (m *MongoDbCursorMethodsProperties) UnmarshalJSON(data []byte) error](#MongoDbCursorMethodsProperties.UnmarshalJSON) * [type MongoDbLinkedService](#MongoDbLinkedService) * + [func (m *MongoDbLinkedService) GetLinkedService() *LinkedService](#MongoDbLinkedService.GetLinkedService) + [func (m MongoDbLinkedService) MarshalJSON() ([]byte, error)](#MongoDbLinkedService.MarshalJSON) + [func (m *MongoDbLinkedService) UnmarshalJSON(data []byte) error](#MongoDbLinkedService.UnmarshalJSON) * [type MongoDbLinkedServiceTypeProperties](#MongoDbLinkedServiceTypeProperties) * + [func (m MongoDbLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#MongoDbLinkedServiceTypeProperties.MarshalJSON) + [func (m *MongoDbLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#MongoDbLinkedServiceTypeProperties.UnmarshalJSON) * [type MongoDbSource](#MongoDbSource) * + [func (m *MongoDbSource) GetCopySource() *CopySource](#MongoDbSource.GetCopySource) + [func (m MongoDbSource) MarshalJSON() ([]byte, error)](#MongoDbSource.MarshalJSON) + [func (m *MongoDbSource) UnmarshalJSON(data []byte) error](#MongoDbSource.UnmarshalJSON) * [type MongoDbV2CollectionDataset](#MongoDbV2CollectionDataset) * + [func (m *MongoDbV2CollectionDataset) GetDataset() *Dataset](#MongoDbV2CollectionDataset.GetDataset) + [func (m MongoDbV2CollectionDataset) MarshalJSON() ([]byte, error)](#MongoDbV2CollectionDataset.MarshalJSON) + [func (m *MongoDbV2CollectionDataset) UnmarshalJSON(data []byte) error](#MongoDbV2CollectionDataset.UnmarshalJSON) * [type MongoDbV2CollectionDatasetTypeProperties](#MongoDbV2CollectionDatasetTypeProperties) * + [func (m MongoDbV2CollectionDatasetTypeProperties) MarshalJSON() ([]byte, error)](#MongoDbV2CollectionDatasetTypeProperties.MarshalJSON) + [func (m *MongoDbV2CollectionDatasetTypeProperties) UnmarshalJSON(data []byte) error](#MongoDbV2CollectionDatasetTypeProperties.UnmarshalJSON) * [type MongoDbV2LinkedService](#MongoDbV2LinkedService) * + [func (m *MongoDbV2LinkedService) GetLinkedService() *LinkedService](#MongoDbV2LinkedService.GetLinkedService) + [func (m MongoDbV2LinkedService) MarshalJSON() ([]byte, error)](#MongoDbV2LinkedService.MarshalJSON) + [func (m *MongoDbV2LinkedService) UnmarshalJSON(data []byte) error](#MongoDbV2LinkedService.UnmarshalJSON) * [type MongoDbV2LinkedServiceTypeProperties](#MongoDbV2LinkedServiceTypeProperties) * + [func (m MongoDbV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#MongoDbV2LinkedServiceTypeProperties.MarshalJSON) + [func (m *MongoDbV2LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#MongoDbV2LinkedServiceTypeProperties.UnmarshalJSON) * [type MongoDbV2Sink](#MongoDbV2Sink) * + [func (m *MongoDbV2Sink) GetCopySink() *CopySink](#MongoDbV2Sink.GetCopySink) + [func (m MongoDbV2Sink) MarshalJSON() ([]byte, error)](#MongoDbV2Sink.MarshalJSON) + [func (m *MongoDbV2Sink) UnmarshalJSON(data []byte) error](#MongoDbV2Sink.UnmarshalJSON) * [type MongoDbV2Source](#MongoDbV2Source) * + [func (m *MongoDbV2Source) GetCopySource() *CopySource](#MongoDbV2Source.GetCopySource) + [func (m MongoDbV2Source) MarshalJSON() ([]byte, error)](#MongoDbV2Source.MarshalJSON) + [func (m *MongoDbV2Source) UnmarshalJSON(data []byte) error](#MongoDbV2Source.UnmarshalJSON) * [type MultiplePipelineTrigger](#MultiplePipelineTrigger) * + [func (m *MultiplePipelineTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger](#MultiplePipelineTrigger.GetMultiplePipelineTrigger) + [func (m *MultiplePipelineTrigger) GetTrigger() *Trigger](#MultiplePipelineTrigger.GetTrigger) + [func (m MultiplePipelineTrigger) MarshalJSON() ([]byte, error)](#MultiplePipelineTrigger.MarshalJSON) + [func (m *MultiplePipelineTrigger) UnmarshalJSON(data []byte) error](#MultiplePipelineTrigger.UnmarshalJSON) * [type MultiplePipelineTriggerClassification](#MultiplePipelineTriggerClassification) * [type MySQLLinkedService](#MySQLLinkedService) * + [func (m *MySQLLinkedService) GetLinkedService() *LinkedService](#MySQLLinkedService.GetLinkedService) + [func (m MySQLLinkedService) MarshalJSON() ([]byte, error)](#MySQLLinkedService.MarshalJSON) + [func (m *MySQLLinkedService) UnmarshalJSON(data []byte) error](#MySQLLinkedService.UnmarshalJSON) * [type MySQLLinkedServiceTypeProperties](#MySQLLinkedServiceTypeProperties) * + [func (m MySQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#MySQLLinkedServiceTypeProperties.MarshalJSON) + [func (m *MySQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#MySQLLinkedServiceTypeProperties.UnmarshalJSON) * [type MySQLSource](#MySQLSource) * + [func (m *MySQLSource) GetCopySource() *CopySource](#MySQLSource.GetCopySource) + [func (m *MySQLSource) GetTabularSource() *TabularSource](#MySQLSource.GetTabularSource) + [func (m MySQLSource) MarshalJSON() ([]byte, error)](#MySQLSource.MarshalJSON) + [func (m *MySQLSource) UnmarshalJSON(data []byte) error](#MySQLSource.UnmarshalJSON) * [type MySQLTableDataset](#MySQLTableDataset) * + [func (m *MySQLTableDataset) GetDataset() *Dataset](#MySQLTableDataset.GetDataset) + [func (m MySQLTableDataset) MarshalJSON() ([]byte, error)](#MySQLTableDataset.MarshalJSON) + [func (m *MySQLTableDataset) UnmarshalJSON(data []byte) error](#MySQLTableDataset.UnmarshalJSON) * [type MySQLTableDatasetTypeProperties](#MySQLTableDatasetTypeProperties) * + [func (m MySQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#MySQLTableDatasetTypeProperties.MarshalJSON) + [func (m *MySQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#MySQLTableDatasetTypeProperties.UnmarshalJSON) * [type NetezzaLinkedService](#NetezzaLinkedService) * + [func (n *NetezzaLinkedService) GetLinkedService() *LinkedService](#NetezzaLinkedService.GetLinkedService) + [func (n NetezzaLinkedService) MarshalJSON() ([]byte, error)](#NetezzaLinkedService.MarshalJSON) + [func (n *NetezzaLinkedService) UnmarshalJSON(data []byte) error](#NetezzaLinkedService.UnmarshalJSON) * [type NetezzaLinkedServiceTypeProperties](#NetezzaLinkedServiceTypeProperties) * + [func (n NetezzaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#NetezzaLinkedServiceTypeProperties.MarshalJSON) + [func (n *NetezzaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#NetezzaLinkedServiceTypeProperties.UnmarshalJSON) * [type NetezzaPartitionOption](#NetezzaPartitionOption) * + [func PossibleNetezzaPartitionOptionValues() []NetezzaPartitionOption](#PossibleNetezzaPartitionOptionValues) * [type NetezzaPartitionSettings](#NetezzaPartitionSettings) * + [func (n NetezzaPartitionSettings) MarshalJSON() ([]byte, error)](#NetezzaPartitionSettings.MarshalJSON) + [func (n *NetezzaPartitionSettings) UnmarshalJSON(data []byte) error](#NetezzaPartitionSettings.UnmarshalJSON) * [type NetezzaSource](#NetezzaSource) * + [func (n *NetezzaSource) GetCopySource() *CopySource](#NetezzaSource.GetCopySource) + [func (n *NetezzaSource) GetTabularSource() *TabularSource](#NetezzaSource.GetTabularSource) + [func (n NetezzaSource) MarshalJSON() ([]byte, error)](#NetezzaSource.MarshalJSON) + [func (n *NetezzaSource) UnmarshalJSON(data []byte) error](#NetezzaSource.UnmarshalJSON) * [type NetezzaTableDataset](#NetezzaTableDataset) * + [func (n *NetezzaTableDataset) GetDataset() *Dataset](#NetezzaTableDataset.GetDataset) + [func (n NetezzaTableDataset) MarshalJSON() ([]byte, error)](#NetezzaTableDataset.MarshalJSON) + [func (n *NetezzaTableDataset) UnmarshalJSON(data []byte) error](#NetezzaTableDataset.UnmarshalJSON) * [type NetezzaTableDatasetTypeProperties](#NetezzaTableDatasetTypeProperties) * + [func (n NetezzaTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#NetezzaTableDatasetTypeProperties.MarshalJSON) + [func (n *NetezzaTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#NetezzaTableDatasetTypeProperties.UnmarshalJSON) * [type NotebookParameter](#NotebookParameter) * + [func (n NotebookParameter) MarshalJSON() ([]byte, error)](#NotebookParameter.MarshalJSON) + [func (n *NotebookParameter) UnmarshalJSON(data []byte) error](#NotebookParameter.UnmarshalJSON) * [type NotebookParameterType](#NotebookParameterType) * + [func PossibleNotebookParameterTypeValues() []NotebookParameterType](#PossibleNotebookParameterTypeValues) * [type NotebookReferenceType](#NotebookReferenceType) * + [func PossibleNotebookReferenceTypeValues() []NotebookReferenceType](#PossibleNotebookReferenceTypeValues) * [type ODataAADServicePrincipalCredentialType](#ODataAADServicePrincipalCredentialType) * + [func PossibleODataAADServicePrincipalCredentialTypeValues() []ODataAADServicePrincipalCredentialType](#PossibleODataAADServicePrincipalCredentialTypeValues) * [type ODataAuthenticationType](#ODataAuthenticationType) * + [func PossibleODataAuthenticationTypeValues() []ODataAuthenticationType](#PossibleODataAuthenticationTypeValues) * [type ODataLinkedService](#ODataLinkedService) * + [func (o *ODataLinkedService) GetLinkedService() *LinkedService](#ODataLinkedService.GetLinkedService) + [func (o ODataLinkedService) MarshalJSON() ([]byte, error)](#ODataLinkedService.MarshalJSON) + [func (o *ODataLinkedService) UnmarshalJSON(data []byte) error](#ODataLinkedService.UnmarshalJSON) * [type ODataLinkedServiceTypeProperties](#ODataLinkedServiceTypeProperties) * + [func (o ODataLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#ODataLinkedServiceTypeProperties.MarshalJSON) + [func (o *ODataLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#ODataLinkedServiceTypeProperties.UnmarshalJSON) * [type ODataResourceDataset](#ODataResourceDataset) * + [func (o *ODataResourceDataset) GetDataset() *Dataset](#ODataResourceDataset.GetDataset) + [func (o ODataResourceDataset) MarshalJSON() ([]byte, error)](#ODataResourceDataset.MarshalJSON) + [func (o *ODataResourceDataset) UnmarshalJSON(data []byte) error](#ODataResourceDataset.UnmarshalJSON) * [type ODataResourceDatasetTypeProperties](#ODataResourceDatasetTypeProperties) * + [func (o ODataResourceDatasetTypeProperties) MarshalJSON() ([]byte, error)](#ODataResourceDatasetTypeProperties.MarshalJSON) + [func (o *ODataResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error](#ODataResourceDatasetTypeProperties.UnmarshalJSON) * [type ODataSource](#ODataSource) * + [func (o *ODataSource) GetCopySource() *CopySource](#ODataSource.GetCopySource) + [func (o ODataSource) MarshalJSON() ([]byte, error)](#ODataSource.MarshalJSON) + [func (o *ODataSource) UnmarshalJSON(data []byte) error](#ODataSource.UnmarshalJSON) * [type OdbcLinkedService](#OdbcLinkedService) * + [func (o *OdbcLinkedService) GetLinkedService() *LinkedService](#OdbcLinkedService.GetLinkedService) + [func (o OdbcLinkedService) MarshalJSON() ([]byte, error)](#OdbcLinkedService.MarshalJSON) + [func (o *OdbcLinkedService) UnmarshalJSON(data []byte) error](#OdbcLinkedService.UnmarshalJSON) * [type OdbcLinkedServiceTypeProperties](#OdbcLinkedServiceTypeProperties) * + [func (o OdbcLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#OdbcLinkedServiceTypeProperties.MarshalJSON) + [func (o *OdbcLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#OdbcLinkedServiceTypeProperties.UnmarshalJSON) * [type OdbcSink](#OdbcSink) * + [func (o *OdbcSink) GetCopySink() *CopySink](#OdbcSink.GetCopySink) + [func (o OdbcSink) MarshalJSON() ([]byte, error)](#OdbcSink.MarshalJSON) + [func (o *OdbcSink) UnmarshalJSON(data []byte) error](#OdbcSink.UnmarshalJSON) * [type OdbcSource](#OdbcSource) * + [func (o *OdbcSource) GetCopySource() *CopySource](#OdbcSource.GetCopySource) + [func (o *OdbcSource) GetTabularSource() *TabularSource](#OdbcSource.GetTabularSource) + [func (o OdbcSource) MarshalJSON() ([]byte, error)](#OdbcSource.MarshalJSON) + [func (o *OdbcSource) UnmarshalJSON(data []byte) error](#OdbcSource.UnmarshalJSON) * [type OdbcTableDataset](#OdbcTableDataset) * + [func (o *OdbcTableDataset) GetDataset() *Dataset](#OdbcTableDataset.GetDataset) + [func (o OdbcTableDataset) MarshalJSON() ([]byte, error)](#OdbcTableDataset.MarshalJSON) + [func (o *OdbcTableDataset) UnmarshalJSON(data []byte) error](#OdbcTableDataset.UnmarshalJSON) * [type OdbcTableDatasetTypeProperties](#OdbcTableDatasetTypeProperties) * + [func (o OdbcTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#OdbcTableDatasetTypeProperties.MarshalJSON) + [func (o *OdbcTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#OdbcTableDatasetTypeProperties.UnmarshalJSON) * [type Office365Dataset](#Office365Dataset) * + [func (o *Office365Dataset) GetDataset() *Dataset](#Office365Dataset.GetDataset) + [func (o Office365Dataset) MarshalJSON() ([]byte, error)](#Office365Dataset.MarshalJSON) + [func (o *Office365Dataset) UnmarshalJSON(data []byte) error](#Office365Dataset.UnmarshalJSON) * [type Office365DatasetTypeProperties](#Office365DatasetTypeProperties) * + [func (o Office365DatasetTypeProperties) MarshalJSON() ([]byte, error)](#Office365DatasetTypeProperties.MarshalJSON) + [func (o *Office365DatasetTypeProperties) UnmarshalJSON(data []byte) error](#Office365DatasetTypeProperties.UnmarshalJSON) * [type Office365LinkedService](#Office365LinkedService) * + [func (o *Office365LinkedService) GetLinkedService() *LinkedService](#Office365LinkedService.GetLinkedService) + [func (o Office365LinkedService) MarshalJSON() ([]byte, error)](#Office365LinkedService.MarshalJSON) + [func (o *Office365LinkedService) UnmarshalJSON(data []byte) error](#Office365LinkedService.UnmarshalJSON) * [type Office365LinkedServiceTypeProperties](#Office365LinkedServiceTypeProperties) * + [func (o Office365LinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#Office365LinkedServiceTypeProperties.MarshalJSON) + [func (o *Office365LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#Office365LinkedServiceTypeProperties.UnmarshalJSON) * [type Office365Source](#Office365Source) * + [func (o *Office365Source) GetCopySource() *CopySource](#Office365Source.GetCopySource) + [func (o Office365Source) MarshalJSON() ([]byte, error)](#Office365Source.MarshalJSON) + [func (o *Office365Source) UnmarshalJSON(data []byte) error](#Office365Source.UnmarshalJSON) * [type Operation](#Operation) * + [func (o Operation) MarshalJSON() ([]byte, error)](#Operation.MarshalJSON) + [func (o *Operation) UnmarshalJSON(data []byte) error](#Operation.UnmarshalJSON) * [type OperationDisplay](#OperationDisplay) * + [func (o OperationDisplay) MarshalJSON() ([]byte, error)](#OperationDisplay.MarshalJSON) + [func (o *OperationDisplay) UnmarshalJSON(data []byte) error](#OperationDisplay.UnmarshalJSON) * [type OperationListResponse](#OperationListResponse) * + [func (o OperationListResponse) MarshalJSON() ([]byte, error)](#OperationListResponse.MarshalJSON) + [func (o *OperationListResponse) UnmarshalJSON(data []byte) error](#OperationListResponse.UnmarshalJSON) * [type OperationLogSpecification](#OperationLogSpecification) * + [func (o OperationLogSpecification) MarshalJSON() ([]byte, error)](#OperationLogSpecification.MarshalJSON) + [func (o *OperationLogSpecification) UnmarshalJSON(data []byte) error](#OperationLogSpecification.UnmarshalJSON) * [type OperationMetricAvailability](#OperationMetricAvailability) * + [func (o OperationMetricAvailability) MarshalJSON() ([]byte, error)](#OperationMetricAvailability.MarshalJSON) + [func (o *OperationMetricAvailability) UnmarshalJSON(data []byte) error](#OperationMetricAvailability.UnmarshalJSON) * [type OperationMetricDimension](#OperationMetricDimension) * + [func (o OperationMetricDimension) MarshalJSON() ([]byte, error)](#OperationMetricDimension.MarshalJSON) + [func (o *OperationMetricDimension) UnmarshalJSON(data []byte) error](#OperationMetricDimension.UnmarshalJSON) * [type OperationMetricSpecification](#OperationMetricSpecification) * + [func (o OperationMetricSpecification) MarshalJSON() ([]byte, error)](#OperationMetricSpecification.MarshalJSON) + [func (o *OperationMetricSpecification) UnmarshalJSON(data []byte) error](#OperationMetricSpecification.UnmarshalJSON) * [type OperationProperties](#OperationProperties) * + [func (o OperationProperties) MarshalJSON() ([]byte, error)](#OperationProperties.MarshalJSON) + [func (o *OperationProperties) UnmarshalJSON(data []byte) error](#OperationProperties.UnmarshalJSON) * [type OperationServiceSpecification](#OperationServiceSpecification) * + [func (o OperationServiceSpecification) MarshalJSON() ([]byte, error)](#OperationServiceSpecification.MarshalJSON) + [func (o *OperationServiceSpecification) UnmarshalJSON(data []byte) error](#OperationServiceSpecification.UnmarshalJSON) * [type OperationsClient](#OperationsClient) * + [func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)](#NewOperationsClient) * + [func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]](#OperationsClient.NewListPager) * [type OperationsClientListOptions](#OperationsClientListOptions) * [type OperationsClientListResponse](#OperationsClientListResponse) * [type OracleCloudStorageLinkedService](#OracleCloudStorageLinkedService) * + [func (o *OracleCloudStorageLinkedService) GetLinkedService() *LinkedService](#OracleCloudStorageLinkedService.GetLinkedService) + [func (o OracleCloudStorageLinkedService) MarshalJSON() ([]byte, error)](#OracleCloudStorageLinkedService.MarshalJSON) + [func (o *OracleCloudStorageLinkedService) UnmarshalJSON(data []byte) error](#OracleCloudStorageLinkedService.UnmarshalJSON) * [type OracleCloudStorageLinkedServiceTypeProperties](#OracleCloudStorageLinkedServiceTypeProperties) * + [func (o OracleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#OracleCloudStorageLinkedServiceTypeProperties.MarshalJSON) + [func (o *OracleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#OracleCloudStorageLinkedServiceTypeProperties.UnmarshalJSON) * [type OracleCloudStorageLocation](#OracleCloudStorageLocation) * + [func (o *OracleCloudStorageLocation) GetDatasetLocation() *DatasetLocation](#OracleCloudStorageLocation.GetDatasetLocation) + [func (o OracleCloudStorageLocation) MarshalJSON() ([]byte, error)](#OracleCloudStorageLocation.MarshalJSON) + [func (o *OracleCloudStorageLocation) UnmarshalJSON(data []byte) error](#OracleCloudStorageLocation.UnmarshalJSON) * [type OracleCloudStorageReadSettings](#OracleCloudStorageReadSettings) * + [func (o *OracleCloudStorageReadSettings) GetStoreReadSettings() *StoreReadSettings](#OracleCloudStorageReadSettings.GetStoreReadSettings) + [func (o OracleCloudStorageReadSettings) MarshalJSON() ([]byte, error)](#OracleCloudStorageReadSettings.MarshalJSON) + [func (o *OracleCloudStorageReadSettings) UnmarshalJSON(data []byte) error](#OracleCloudStorageReadSettings.UnmarshalJSON) * [type OracleLinkedService](#OracleLinkedService) * + [func (o *OracleLinkedService) GetLinkedService() *LinkedService](#OracleLinkedService.GetLinkedService) + [func (o OracleLinkedService) MarshalJSON() ([]byte, error)](#OracleLinkedService.MarshalJSON) + [func (o *OracleLinkedService) UnmarshalJSON(data []byte) error](#OracleLinkedService.UnmarshalJSON) * [type OracleLinkedServiceTypeProperties](#OracleLinkedServiceTypeProperties) * + [func (o OracleLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#OracleLinkedServiceTypeProperties.MarshalJSON) + [func (o *OracleLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#OracleLinkedServiceTypeProperties.UnmarshalJSON) * [type OraclePartitionOption](#OraclePartitionOption) * + [func PossibleOraclePartitionOptionValues() []OraclePartitionOption](#PossibleOraclePartitionOptionValues) * [type OraclePartitionSettings](#OraclePartitionSettings) * + [func (o OraclePartitionSettings) MarshalJSON() ([]byte, error)](#OraclePartitionSettings.MarshalJSON) + [func (o *OraclePartitionSettings) UnmarshalJSON(data []byte) error](#OraclePartitionSettings.UnmarshalJSON) * [type OracleServiceCloudLinkedService](#OracleServiceCloudLinkedService) * + [func (o *OracleServiceCloudLinkedService) GetLinkedService() *LinkedService](#OracleServiceCloudLinkedService.GetLinkedService) + [func (o OracleServiceCloudLinkedService) MarshalJSON() ([]byte, error)](#OracleServiceCloudLinkedService.MarshalJSON) + [func (o *OracleServiceCloudLinkedService) UnmarshalJSON(data []byte) error](#OracleServiceCloudLinkedService.UnmarshalJSON) * [type OracleServiceCloudLinkedServiceTypeProperties](#OracleServiceCloudLinkedServiceTypeProperties) * + [func (o OracleServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#OracleServiceCloudLinkedServiceTypeProperties.MarshalJSON) + [func (o *OracleServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#OracleServiceCloudLinkedServiceTypeProperties.UnmarshalJSON) * [type OracleServiceCloudObjectDataset](#OracleServiceCloudObjectDataset) * + [func (o *OracleServiceCloudObjectDataset) GetDataset() *Dataset](#OracleServiceCloudObjectDataset.GetDataset) + [func (o OracleServiceCloudObjectDataset) MarshalJSON() ([]byte, error)](#OracleServiceCloudObjectDataset.MarshalJSON) + [func (o *OracleServiceCloudObjectDataset) UnmarshalJSON(data []byte) error](#OracleServiceCloudObjectDataset.UnmarshalJSON) * [type OracleServiceCloudSource](#OracleServiceCloudSource) * + [func (o *OracleServiceCloudSource) GetCopySource() *CopySource](#OracleServiceCloudSource.GetCopySource) + [func (o *OracleServiceCloudSource) GetTabularSource() *TabularSource](#OracleServiceCloudSource.GetTabularSource) + [func (o OracleServiceCloudSource) MarshalJSON() ([]byte, error)](#OracleServiceCloudSource.MarshalJSON) + [func (o *OracleServiceCloudSource) UnmarshalJSON(data []byte) error](#OracleServiceCloudSource.UnmarshalJSON) * [type OracleSink](#OracleSink) * + [func (o *OracleSink) GetCopySink() *CopySink](#OracleSink.GetCopySink) + [func (o OracleSink) MarshalJSON() ([]byte, error)](#OracleSink.MarshalJSON) + [func (o *OracleSink) UnmarshalJSON(data []byte) error](#OracleSink.UnmarshalJSON) * [type OracleSource](#OracleSource) * + [func (o *OracleSource) GetCopySource() *CopySource](#OracleSource.GetCopySource) + [func (o OracleSource) MarshalJSON() ([]byte, error)](#OracleSource.MarshalJSON) + [func (o *OracleSource) UnmarshalJSON(data []byte) error](#OracleSource.UnmarshalJSON) * [type OracleTableDataset](#OracleTableDataset) * + [func (o *OracleTableDataset) GetDataset() *Dataset](#OracleTableDataset.GetDataset) + [func (o OracleTableDataset) MarshalJSON() ([]byte, error)](#OracleTableDataset.MarshalJSON) + [func (o *OracleTableDataset) UnmarshalJSON(data []byte) error](#OracleTableDataset.UnmarshalJSON) * [type OracleTableDatasetTypeProperties](#OracleTableDatasetTypeProperties) * + [func (o OracleTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#OracleTableDatasetTypeProperties.MarshalJSON) + [func (o *OracleTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#OracleTableDatasetTypeProperties.UnmarshalJSON) * [type OrcCompressionCodec](#OrcCompressionCodec) * + [func PossibleOrcCompressionCodecValues() []OrcCompressionCodec](#PossibleOrcCompressionCodecValues) * [type OrcDataset](#OrcDataset) * + [func (o *OrcDataset) GetDataset() *Dataset](#OrcDataset.GetDataset) + [func (o OrcDataset) MarshalJSON() ([]byte, error)](#OrcDataset.MarshalJSON) + [func (o *OrcDataset) UnmarshalJSON(data []byte) error](#OrcDataset.UnmarshalJSON) * [type OrcDatasetTypeProperties](#OrcDatasetTypeProperties) * + [func (o OrcDatasetTypeProperties) MarshalJSON() ([]byte, error)](#OrcDatasetTypeProperties.MarshalJSON) + [func (o *OrcDatasetTypeProperties) UnmarshalJSON(data []byte) error](#OrcDatasetTypeProperties.UnmarshalJSON) * [type OrcFormat](#OrcFormat) * + [func (o *OrcFormat) GetDatasetStorageFormat() *DatasetStorageFormat](#OrcFormat.GetDatasetStorageFormat) + [func (o OrcFormat) MarshalJSON() ([]byte, error)](#OrcFormat.MarshalJSON) + [func (o *OrcFormat) UnmarshalJSON(data []byte) error](#OrcFormat.UnmarshalJSON) * [type OrcSink](#OrcSink) * + [func (o *OrcSink) GetCopySink() *CopySink](#OrcSink.GetCopySink) + [func (o OrcSink) MarshalJSON() ([]byte, error)](#OrcSink.MarshalJSON) + [func (o *OrcSink) UnmarshalJSON(data []byte) error](#OrcSink.UnmarshalJSON) * [type OrcSource](#OrcSource) * + [func (o *OrcSource) GetCopySource() *CopySource](#OrcSource.GetCopySource) + [func (o OrcSource) MarshalJSON() ([]byte, error)](#OrcSource.MarshalJSON) + [func (o *OrcSource) UnmarshalJSON(data []byte) error](#OrcSource.UnmarshalJSON) * [type OrcWriteSettings](#OrcWriteSettings) * + [func (o *OrcWriteSettings) GetFormatWriteSettings() *FormatWriteSettings](#OrcWriteSettings.GetFormatWriteSettings) + [func (o OrcWriteSettings) MarshalJSON() ([]byte, error)](#OrcWriteSettings.MarshalJSON) + [func (o *OrcWriteSettings) UnmarshalJSON(data []byte) error](#OrcWriteSettings.UnmarshalJSON) * [type PackageStore](#PackageStore) * + [func (p PackageStore) MarshalJSON() ([]byte, error)](#PackageStore.MarshalJSON) + [func (p *PackageStore) UnmarshalJSON(data []byte) error](#PackageStore.UnmarshalJSON) * [type ParameterSpecification](#ParameterSpecification) * + [func (p ParameterSpecification) MarshalJSON() ([]byte, error)](#ParameterSpecification.MarshalJSON) + [func (p *ParameterSpecification) UnmarshalJSON(data []byte) error](#ParameterSpecification.UnmarshalJSON) * [type ParameterType](#ParameterType) * + [func PossibleParameterTypeValues() []ParameterType](#PossibleParameterTypeValues) * [type ParquetDataset](#ParquetDataset) * + [func (p *ParquetDataset) GetDataset() *Dataset](#ParquetDataset.GetDataset) + [func (p ParquetDataset) MarshalJSON() ([]byte, error)](#ParquetDataset.MarshalJSON) + [func (p *ParquetDataset) UnmarshalJSON(data []byte) error](#ParquetDataset.UnmarshalJSON) * [type ParquetDatasetTypeProperties](#ParquetDatasetTypeProperties) * + [func (p ParquetDatasetTypeProperties) MarshalJSON() ([]byte, error)](#ParquetDatasetTypeProperties.MarshalJSON) + [func (p *ParquetDatasetTypeProperties) UnmarshalJSON(data []byte) error](#ParquetDatasetTypeProperties.UnmarshalJSON) * [type ParquetFormat](#ParquetFormat) * + [func (p *ParquetFormat) GetDatasetStorageFormat() *DatasetStorageFormat](#ParquetFormat.GetDatasetStorageFormat) + [func (p ParquetFormat) MarshalJSON() ([]byte, error)](#ParquetFormat.MarshalJSON) + [func (p *ParquetFormat) UnmarshalJSON(data []byte) error](#ParquetFormat.UnmarshalJSON) * [type ParquetSink](#ParquetSink) * + [func (p *ParquetSink) GetCopySink() *CopySink](#ParquetSink.GetCopySink) + [func (p ParquetSink) MarshalJSON() ([]byte, error)](#ParquetSink.MarshalJSON) + [func (p *ParquetSink) UnmarshalJSON(data []byte) error](#ParquetSink.UnmarshalJSON) * [type ParquetSource](#ParquetSource) * + [func (p *ParquetSource) GetCopySource() *CopySource](#ParquetSource.GetCopySource) + [func (p ParquetSource) MarshalJSON() ([]byte, error)](#ParquetSource.MarshalJSON) + [func (p *ParquetSource) UnmarshalJSON(data []byte) error](#ParquetSource.UnmarshalJSON) * [type ParquetWriteSettings](#ParquetWriteSettings) * + [func (p *ParquetWriteSettings) GetFormatWriteSettings() *FormatWriteSettings](#ParquetWriteSettings.GetFormatWriteSettings) + [func (p ParquetWriteSettings) MarshalJSON() ([]byte, error)](#ParquetWriteSettings.MarshalJSON) + [func (p *ParquetWriteSettings) UnmarshalJSON(data []byte) error](#ParquetWriteSettings.UnmarshalJSON) * [type PaypalLinkedService](#PaypalLinkedService) * + [func (p *PaypalLinkedService) GetLinkedService() *LinkedService](#PaypalLinkedService.GetLinkedService) + [func (p PaypalLinkedService) MarshalJSON() ([]byte, error)](#PaypalLinkedService.MarshalJSON) + [func (p *PaypalLinkedService) UnmarshalJSON(data []byte) error](#PaypalLinkedService.UnmarshalJSON) * [type PaypalLinkedServiceTypeProperties](#PaypalLinkedServiceTypeProperties) * + [func (p PaypalLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#PaypalLinkedServiceTypeProperties.MarshalJSON) + [func (p *PaypalLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#PaypalLinkedServiceTypeProperties.UnmarshalJSON) * [type PaypalObjectDataset](#PaypalObjectDataset) * + [func (p *PaypalObjectDataset) GetDataset() *Dataset](#PaypalObjectDataset.GetDataset) + [func (p PaypalObjectDataset) MarshalJSON() ([]byte, error)](#PaypalObjectDataset.MarshalJSON) + [func (p *PaypalObjectDataset) UnmarshalJSON(data []byte) error](#PaypalObjectDataset.UnmarshalJSON) * [type PaypalSource](#PaypalSource) * + [func (p *PaypalSource) GetCopySource() *CopySource](#PaypalSource.GetCopySource) + [func (p *PaypalSource) GetTabularSource() *TabularSource](#PaypalSource.GetTabularSource) + [func (p PaypalSource) MarshalJSON() ([]byte, error)](#PaypalSource.MarshalJSON) + [func (p *PaypalSource) UnmarshalJSON(data []byte) error](#PaypalSource.UnmarshalJSON) * [type PhoenixAuthenticationType](#PhoenixAuthenticationType) * + [func PossiblePhoenixAuthenticationTypeValues() []PhoenixAuthenticationType](#PossiblePhoenixAuthenticationTypeValues) * [type PhoenixDatasetTypeProperties](#PhoenixDatasetTypeProperties) * + [func (p PhoenixDatasetTypeProperties) MarshalJSON() ([]byte, error)](#PhoenixDatasetTypeProperties.MarshalJSON) + [func (p *PhoenixDatasetTypeProperties) UnmarshalJSON(data []byte) error](#PhoenixDatasetTypeProperties.UnmarshalJSON) * [type PhoenixLinkedService](#PhoenixLinkedService) * + [func (p *PhoenixLinkedService) GetLinkedService() *LinkedService](#PhoenixLinkedService.GetLinkedService) + [func (p PhoenixLinkedService) MarshalJSON() ([]byte, error)](#PhoenixLinkedService.MarshalJSON) + [func (p *PhoenixLinkedService) UnmarshalJSON(data []byte) error](#PhoenixLinkedService.UnmarshalJSON) * [type PhoenixLinkedServiceTypeProperties](#PhoenixLinkedServiceTypeProperties) * + [func (p PhoenixLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#PhoenixLinkedServiceTypeProperties.MarshalJSON) + [func (p *PhoenixLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#PhoenixLinkedServiceTypeProperties.UnmarshalJSON) * [type PhoenixObjectDataset](#PhoenixObjectDataset) * + [func (p *PhoenixObjectDataset) GetDataset() *Dataset](#PhoenixObjectDataset.GetDataset) + [func (p PhoenixObjectDataset) MarshalJSON() ([]byte, error)](#PhoenixObjectDataset.MarshalJSON) + [func (p *PhoenixObjectDataset) UnmarshalJSON(data []byte) error](#PhoenixObjectDataset.UnmarshalJSON) * [type PhoenixSource](#PhoenixSource) * + [func (p *PhoenixSource) GetCopySource() *CopySource](#PhoenixSource.GetCopySource) + [func (p *PhoenixSource) GetTabularSource() *TabularSource](#PhoenixSource.GetTabularSource) + [func (p PhoenixSource) MarshalJSON() ([]byte, error)](#PhoenixSource.MarshalJSON) + [func (p *PhoenixSource) UnmarshalJSON(data []byte) error](#PhoenixSource.UnmarshalJSON) * [type Pipeline](#Pipeline) * + [func (p Pipeline) MarshalJSON() ([]byte, error)](#Pipeline.MarshalJSON) + [func (p *Pipeline) UnmarshalJSON(data []byte) error](#Pipeline.UnmarshalJSON) * [type PipelineElapsedTimeMetricPolicy](#PipelineElapsedTimeMetricPolicy) * + [func (p PipelineElapsedTimeMetricPolicy) MarshalJSON() ([]byte, error)](#PipelineElapsedTimeMetricPolicy.MarshalJSON) + [func (p *PipelineElapsedTimeMetricPolicy) UnmarshalJSON(data []byte) error](#PipelineElapsedTimeMetricPolicy.UnmarshalJSON) * [type PipelineFolder](#PipelineFolder) * + [func (p PipelineFolder) MarshalJSON() ([]byte, error)](#PipelineFolder.MarshalJSON) + [func (p *PipelineFolder) UnmarshalJSON(data []byte) error](#PipelineFolder.UnmarshalJSON) * [type PipelineListResponse](#PipelineListResponse) * + [func (p PipelineListResponse) MarshalJSON() ([]byte, error)](#PipelineListResponse.MarshalJSON) + [func (p *PipelineListResponse) UnmarshalJSON(data []byte) error](#PipelineListResponse.UnmarshalJSON) * [type PipelinePolicy](#PipelinePolicy) * + [func (p PipelinePolicy) MarshalJSON() ([]byte, error)](#PipelinePolicy.MarshalJSON) + [func (p *PipelinePolicy) UnmarshalJSON(data []byte) error](#PipelinePolicy.UnmarshalJSON) * [type PipelineReference](#PipelineReference) * + [func (p PipelineReference) MarshalJSON() ([]byte, error)](#PipelineReference.MarshalJSON) + [func (p *PipelineReference) UnmarshalJSON(data []byte) error](#PipelineReference.UnmarshalJSON) * [type PipelineReferenceType](#PipelineReferenceType) * + [func PossiblePipelineReferenceTypeValues() []PipelineReferenceType](#PossiblePipelineReferenceTypeValues) * [type PipelineResource](#PipelineResource) * + [func (p PipelineResource) MarshalJSON() ([]byte, error)](#PipelineResource.MarshalJSON) + [func (p *PipelineResource) UnmarshalJSON(data []byte) error](#PipelineResource.UnmarshalJSON) * [type PipelineRun](#PipelineRun) * + [func (p PipelineRun) MarshalJSON() ([]byte, error)](#PipelineRun.MarshalJSON) + [func (p *PipelineRun) UnmarshalJSON(data []byte) error](#PipelineRun.UnmarshalJSON) * [type PipelineRunInvokedBy](#PipelineRunInvokedBy) * + [func (p PipelineRunInvokedBy) MarshalJSON() ([]byte, error)](#PipelineRunInvokedBy.MarshalJSON) + [func (p *PipelineRunInvokedBy) UnmarshalJSON(data []byte) error](#PipelineRunInvokedBy.UnmarshalJSON) * [type PipelineRunsClient](#PipelineRunsClient) * + [func NewPipelineRunsClient(subscriptionID string, credential azcore.TokenCredential, ...) (*PipelineRunsClient, error)](#NewPipelineRunsClient) * + [func (client *PipelineRunsClient) Cancel(ctx context.Context, resourceGroupName string, factoryName string, ...) (PipelineRunsClientCancelResponse, error)](#PipelineRunsClient.Cancel) + [func (client *PipelineRunsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (PipelineRunsClientGetResponse, error)](#PipelineRunsClient.Get) + [func (client *PipelineRunsClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, ...) (PipelineRunsClientQueryByFactoryResponse, error)](#PipelineRunsClient.QueryByFactory) * [type PipelineRunsClientCancelOptions](#PipelineRunsClientCancelOptions) * [type PipelineRunsClientCancelResponse](#PipelineRunsClientCancelResponse) * [type PipelineRunsClientGetOptions](#PipelineRunsClientGetOptions) * [type PipelineRunsClientGetResponse](#PipelineRunsClientGetResponse) * [type PipelineRunsClientQueryByFactoryOptions](#PipelineRunsClientQueryByFactoryOptions) * [type PipelineRunsClientQueryByFactoryResponse](#PipelineRunsClientQueryByFactoryResponse) * [type PipelineRunsQueryResponse](#PipelineRunsQueryResponse) * + [func (p PipelineRunsQueryResponse) MarshalJSON() ([]byte, error)](#PipelineRunsQueryResponse.MarshalJSON) + [func (p *PipelineRunsQueryResponse) UnmarshalJSON(data []byte) error](#PipelineRunsQueryResponse.UnmarshalJSON) * [type PipelinesClient](#PipelinesClient) * + [func NewPipelinesClient(subscriptionID string, credential azcore.TokenCredential, ...) (*PipelinesClient, error)](#NewPipelinesClient) * + [func (client *PipelinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (PipelinesClientCreateOrUpdateResponse, error)](#PipelinesClient.CreateOrUpdate) + [func (client *PipelinesClient) CreateRun(ctx context.Context, resourceGroupName string, factoryName string, ...) (PipelinesClientCreateRunResponse, error)](#PipelinesClient.CreateRun) + [func (client *PipelinesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (PipelinesClientDeleteResponse, error)](#PipelinesClient.Delete) + [func (client *PipelinesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (PipelinesClientGetResponse, error)](#PipelinesClient.Get) + [func (client *PipelinesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[PipelinesClientListByFactoryResponse]](#PipelinesClient.NewListByFactoryPager) * [type PipelinesClientCreateOrUpdateOptions](#PipelinesClientCreateOrUpdateOptions) * [type PipelinesClientCreateOrUpdateResponse](#PipelinesClientCreateOrUpdateResponse) * [type PipelinesClientCreateRunOptions](#PipelinesClientCreateRunOptions) * [type PipelinesClientCreateRunResponse](#PipelinesClientCreateRunResponse) * [type PipelinesClientDeleteOptions](#PipelinesClientDeleteOptions) * [type PipelinesClientDeleteResponse](#PipelinesClientDeleteResponse) * [type PipelinesClientGetOptions](#PipelinesClientGetOptions) * [type PipelinesClientGetResponse](#PipelinesClientGetResponse) * [type PipelinesClientListByFactoryOptions](#PipelinesClientListByFactoryOptions) * [type PipelinesClientListByFactoryResponse](#PipelinesClientListByFactoryResponse) * [type PolybaseSettings](#PolybaseSettings) * + [func (p PolybaseSettings) MarshalJSON() ([]byte, error)](#PolybaseSettings.MarshalJSON) + [func (p *PolybaseSettings) UnmarshalJSON(data []byte) error](#PolybaseSettings.UnmarshalJSON) * [type PolybaseSettingsRejectType](#PolybaseSettingsRejectType) * + [func PossiblePolybaseSettingsRejectTypeValues() []PolybaseSettingsRejectType](#PossiblePolybaseSettingsRejectTypeValues) * [type PostgreSQLLinkedService](#PostgreSQLLinkedService) * + [func (p *PostgreSQLLinkedService) GetLinkedService() *LinkedService](#PostgreSQLLinkedService.GetLinkedService) + [func (p PostgreSQLLinkedService) MarshalJSON() ([]byte, error)](#PostgreSQLLinkedService.MarshalJSON) + [func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error](#PostgreSQLLinkedService.UnmarshalJSON) * [type PostgreSQLLinkedServiceTypeProperties](#PostgreSQLLinkedServiceTypeProperties) * + [func (p PostgreSQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#PostgreSQLLinkedServiceTypeProperties.MarshalJSON) + [func (p *PostgreSQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#PostgreSQLLinkedServiceTypeProperties.UnmarshalJSON) * [type PostgreSQLSource](#PostgreSQLSource) * + [func (p *PostgreSQLSource) GetCopySource() *CopySource](#PostgreSQLSource.GetCopySource) + [func (p *PostgreSQLSource) GetTabularSource() *TabularSource](#PostgreSQLSource.GetTabularSource) + [func (p PostgreSQLSource) MarshalJSON() ([]byte, error)](#PostgreSQLSource.MarshalJSON) + [func (p *PostgreSQLSource) UnmarshalJSON(data []byte) error](#PostgreSQLSource.UnmarshalJSON) * [type PostgreSQLTableDataset](#PostgreSQLTableDataset) * + [func (p *PostgreSQLTableDataset) GetDataset() *Dataset](#PostgreSQLTableDataset.GetDataset) + [func (p PostgreSQLTableDataset) MarshalJSON() ([]byte, error)](#PostgreSQLTableDataset.MarshalJSON) + [func (p *PostgreSQLTableDataset) UnmarshalJSON(data []byte) error](#PostgreSQLTableDataset.UnmarshalJSON) * [type PostgreSQLTableDatasetTypeProperties](#PostgreSQLTableDatasetTypeProperties) * + [func (p PostgreSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#PostgreSQLTableDatasetTypeProperties.MarshalJSON) + [func (p *PostgreSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#PostgreSQLTableDatasetTypeProperties.UnmarshalJSON) * [type PowerQuerySink](#PowerQuerySink) * + [func (p PowerQuerySink) MarshalJSON() ([]byte, error)](#PowerQuerySink.MarshalJSON) + [func (p *PowerQuerySink) UnmarshalJSON(data []byte) error](#PowerQuerySink.UnmarshalJSON) * [type PowerQuerySinkMapping](#PowerQuerySinkMapping) * + [func (p PowerQuerySinkMapping) MarshalJSON() ([]byte, error)](#PowerQuerySinkMapping.MarshalJSON) + [func (p *PowerQuerySinkMapping) UnmarshalJSON(data []byte) error](#PowerQuerySinkMapping.UnmarshalJSON) * [type PowerQuerySource](#PowerQuerySource) * + [func (p PowerQuerySource) MarshalJSON() ([]byte, error)](#PowerQuerySource.MarshalJSON) + [func (p *PowerQuerySource) UnmarshalJSON(data []byte) error](#PowerQuerySource.UnmarshalJSON) * [type PowerQueryTypeProperties](#PowerQueryTypeProperties) * + [func (p PowerQueryTypeProperties) MarshalJSON() ([]byte, error)](#PowerQueryTypeProperties.MarshalJSON) + [func (p *PowerQueryTypeProperties) UnmarshalJSON(data []byte) error](#PowerQueryTypeProperties.UnmarshalJSON) * [type PrestoAuthenticationType](#PrestoAuthenticationType) * + [func PossiblePrestoAuthenticationTypeValues() []PrestoAuthenticationType](#PossiblePrestoAuthenticationTypeValues) * [type PrestoDatasetTypeProperties](#PrestoDatasetTypeProperties) * + [func (p PrestoDatasetTypeProperties) MarshalJSON() ([]byte, error)](#PrestoDatasetTypeProperties.MarshalJSON) + [func (p *PrestoDatasetTypeProperties) UnmarshalJSON(data []byte) error](#PrestoDatasetTypeProperties.UnmarshalJSON) * [type PrestoLinkedService](#PrestoLinkedService) * + [func (p *PrestoLinkedService) GetLinkedService() *LinkedService](#PrestoLinkedService.GetLinkedService) + [func (p PrestoLinkedService) MarshalJSON() ([]byte, error)](#PrestoLinkedService.MarshalJSON) + [func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error](#PrestoLinkedService.UnmarshalJSON) * [type PrestoLinkedServiceTypeProperties](#PrestoLinkedServiceTypeProperties) * + [func (p PrestoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#PrestoLinkedServiceTypeProperties.MarshalJSON) + [func (p *PrestoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#PrestoLinkedServiceTypeProperties.UnmarshalJSON) * [type PrestoObjectDataset](#PrestoObjectDataset) * + [func (p *PrestoObjectDataset) GetDataset() *Dataset](#PrestoObjectDataset.GetDataset) + [func (p PrestoObjectDataset) MarshalJSON() ([]byte, error)](#PrestoObjectDataset.MarshalJSON) + [func (p *PrestoObjectDataset) UnmarshalJSON(data []byte) error](#PrestoObjectDataset.UnmarshalJSON) * [type PrestoSource](#PrestoSource) * + [func (p *PrestoSource) GetCopySource() *CopySource](#PrestoSource.GetCopySource) + [func (p *PrestoSource) GetTabularSource() *TabularSource](#PrestoSource.GetTabularSource) + [func (p PrestoSource) MarshalJSON() ([]byte, error)](#PrestoSource.MarshalJSON) + [func (p *PrestoSource) UnmarshalJSON(data []byte) error](#PrestoSource.UnmarshalJSON) * [type PrivateEndPointConnectionsClient](#PrivateEndPointConnectionsClient) * + [func NewPrivateEndPointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, ...) (*PrivateEndPointConnectionsClient, error)](#NewPrivateEndPointConnectionsClient) * + [func (client *PrivateEndPointConnectionsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[PrivateEndPointConnectionsClientListByFactoryResponse]](#PrivateEndPointConnectionsClient.NewListByFactoryPager) * [type PrivateEndPointConnectionsClientListByFactoryOptions](#PrivateEndPointConnectionsClientListByFactoryOptions) * [type PrivateEndPointConnectionsClientListByFactoryResponse](#PrivateEndPointConnectionsClientListByFactoryResponse) * [type PrivateEndpoint](#PrivateEndpoint) * + [func (p PrivateEndpoint) MarshalJSON() ([]byte, error)](#PrivateEndpoint.MarshalJSON) + [func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error](#PrivateEndpoint.UnmarshalJSON) * [type PrivateEndpointConnectionClient](#PrivateEndpointConnectionClient) * + [func NewPrivateEndpointConnectionClient(subscriptionID string, credential azcore.TokenCredential, ...) (*PrivateEndpointConnectionClient, error)](#NewPrivateEndpointConnectionClient) * + [func (client *PrivateEndpointConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (PrivateEndpointConnectionClientCreateOrUpdateResponse, error)](#PrivateEndpointConnectionClient.CreateOrUpdate) + [func (client *PrivateEndpointConnectionClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (PrivateEndpointConnectionClientDeleteResponse, error)](#PrivateEndpointConnectionClient.Delete) + [func (client *PrivateEndpointConnectionClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (PrivateEndpointConnectionClientGetResponse, error)](#PrivateEndpointConnectionClient.Get) * [type PrivateEndpointConnectionClientCreateOrUpdateOptions](#PrivateEndpointConnectionClientCreateOrUpdateOptions) * [type PrivateEndpointConnectionClientCreateOrUpdateResponse](#PrivateEndpointConnectionClientCreateOrUpdateResponse) * [type PrivateEndpointConnectionClientDeleteOptions](#PrivateEndpointConnectionClientDeleteOptions) * [type PrivateEndpointConnectionClientDeleteResponse](#PrivateEndpointConnectionClientDeleteResponse) * [type PrivateEndpointConnectionClientGetOptions](#PrivateEndpointConnectionClientGetOptions) * [type PrivateEndpointConnectionClientGetResponse](#PrivateEndpointConnectionClientGetResponse) * [type PrivateEndpointConnectionListResponse](#PrivateEndpointConnectionListResponse) * + [func (p PrivateEndpointConnectionListResponse) MarshalJSON() ([]byte, error)](#PrivateEndpointConnectionListResponse.MarshalJSON) + [func (p *PrivateEndpointConnectionListResponse) UnmarshalJSON(data []byte) error](#PrivateEndpointConnectionListResponse.UnmarshalJSON) * [type PrivateEndpointConnectionResource](#PrivateEndpointConnectionResource) * + [func (p PrivateEndpointConnectionResource) MarshalJSON() ([]byte, error)](#PrivateEndpointConnectionResource.MarshalJSON) + [func (p *PrivateEndpointConnectionResource) UnmarshalJSON(data []byte) error](#PrivateEndpointConnectionResource.UnmarshalJSON) * [type PrivateLinkConnectionApprovalRequest](#PrivateLinkConnectionApprovalRequest) * + [func (p PrivateLinkConnectionApprovalRequest) MarshalJSON() ([]byte, error)](#PrivateLinkConnectionApprovalRequest.MarshalJSON) + [func (p *PrivateLinkConnectionApprovalRequest) UnmarshalJSON(data []byte) error](#PrivateLinkConnectionApprovalRequest.UnmarshalJSON) * [type PrivateLinkConnectionApprovalRequestResource](#PrivateLinkConnectionApprovalRequestResource) * + [func (p PrivateLinkConnectionApprovalRequestResource) MarshalJSON() ([]byte, error)](#PrivateLinkConnectionApprovalRequestResource.MarshalJSON) + [func (p *PrivateLinkConnectionApprovalRequestResource) UnmarshalJSON(data []byte) error](#PrivateLinkConnectionApprovalRequestResource.UnmarshalJSON) * [type PrivateLinkConnectionState](#PrivateLinkConnectionState) * + [func (p PrivateLinkConnectionState) MarshalJSON() ([]byte, error)](#PrivateLinkConnectionState.MarshalJSON) + [func (p *PrivateLinkConnectionState) UnmarshalJSON(data []byte) error](#PrivateLinkConnectionState.UnmarshalJSON) * [type PrivateLinkResource](#PrivateLinkResource) * + [func (p PrivateLinkResource) MarshalJSON() ([]byte, error)](#PrivateLinkResource.MarshalJSON) + [func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error](#PrivateLinkResource.UnmarshalJSON) * [type PrivateLinkResourceProperties](#PrivateLinkResourceProperties) * + [func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)](#PrivateLinkResourceProperties.MarshalJSON) + [func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error](#PrivateLinkResourceProperties.UnmarshalJSON) * [type PrivateLinkResourcesClient](#PrivateLinkResourcesClient) * + [func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, ...) (*PrivateLinkResourcesClient, error)](#NewPrivateLinkResourcesClient) * + [func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (PrivateLinkResourcesClientGetResponse, error)](#PrivateLinkResourcesClient.Get) * [type PrivateLinkResourcesClientGetOptions](#PrivateLinkResourcesClientGetOptions) * [type PrivateLinkResourcesClientGetResponse](#PrivateLinkResourcesClientGetResponse) * [type PrivateLinkResourcesWrapper](#PrivateLinkResourcesWrapper) * + [func (p PrivateLinkResourcesWrapper) MarshalJSON() ([]byte, error)](#PrivateLinkResourcesWrapper.MarshalJSON) + [func (p *PrivateLinkResourcesWrapper) UnmarshalJSON(data []byte) error](#PrivateLinkResourcesWrapper.UnmarshalJSON) * [type PublicNetworkAccess](#PublicNetworkAccess) * + [func PossiblePublicNetworkAccessValues() []PublicNetworkAccess](#PossiblePublicNetworkAccessValues) * [type PurviewConfiguration](#PurviewConfiguration) * + [func (p PurviewConfiguration) MarshalJSON() ([]byte, error)](#PurviewConfiguration.MarshalJSON) + [func (p *PurviewConfiguration) UnmarshalJSON(data []byte) error](#PurviewConfiguration.UnmarshalJSON) * [type QueryDataFlowDebugSessionsResponse](#QueryDataFlowDebugSessionsResponse) * + [func (q QueryDataFlowDebugSessionsResponse) MarshalJSON() ([]byte, error)](#QueryDataFlowDebugSessionsResponse.MarshalJSON) + [func (q *QueryDataFlowDebugSessionsResponse) UnmarshalJSON(data []byte) error](#QueryDataFlowDebugSessionsResponse.UnmarshalJSON) * [type QuickBooksLinkedService](#QuickBooksLinkedService) * + [func (q *QuickBooksLinkedService) GetLinkedService() *LinkedService](#QuickBooksLinkedService.GetLinkedService) + [func (q QuickBooksLinkedService) MarshalJSON() ([]byte, error)](#QuickBooksLinkedService.MarshalJSON) + [func (q *QuickBooksLinkedService) UnmarshalJSON(data []byte) error](#QuickBooksLinkedService.UnmarshalJSON) * [type QuickBooksLinkedServiceTypeProperties](#QuickBooksLinkedServiceTypeProperties) * + [func (q QuickBooksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#QuickBooksLinkedServiceTypeProperties.MarshalJSON) + [func (q *QuickBooksLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#QuickBooksLinkedServiceTypeProperties.UnmarshalJSON) * [type QuickBooksObjectDataset](#QuickBooksObjectDataset) * + [func (q *QuickBooksObjectDataset) GetDataset() *Dataset](#QuickBooksObjectDataset.GetDataset) + [func (q QuickBooksObjectDataset) MarshalJSON() ([]byte, error)](#QuickBooksObjectDataset.MarshalJSON) + [func (q *QuickBooksObjectDataset) UnmarshalJSON(data []byte) error](#QuickBooksObjectDataset.UnmarshalJSON) * [type QuickBooksSource](#QuickBooksSource) * + [func (q *QuickBooksSource) GetCopySource() *CopySource](#QuickBooksSource.GetCopySource) + [func (q *QuickBooksSource) GetTabularSource() *TabularSource](#QuickBooksSource.GetTabularSource) + [func (q QuickBooksSource) MarshalJSON() ([]byte, error)](#QuickBooksSource.MarshalJSON) + [func (q *QuickBooksSource) UnmarshalJSON(data []byte) error](#QuickBooksSource.UnmarshalJSON) * [type QuickbaseLinkedService](#QuickbaseLinkedService) * + [func (q *QuickbaseLinkedService) GetLinkedService() *LinkedService](#QuickbaseLinkedService.GetLinkedService) + [func (q QuickbaseLinkedService) MarshalJSON() ([]byte, error)](#QuickbaseLinkedService.MarshalJSON) + [func (q *QuickbaseLinkedService) UnmarshalJSON(data []byte) error](#QuickbaseLinkedService.UnmarshalJSON) * [type QuickbaseLinkedServiceTypeProperties](#QuickbaseLinkedServiceTypeProperties) * + [func (q QuickbaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#QuickbaseLinkedServiceTypeProperties.MarshalJSON) + [func (q *QuickbaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#QuickbaseLinkedServiceTypeProperties.UnmarshalJSON) * [type RecurrenceFrequency](#RecurrenceFrequency) * + [func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency](#PossibleRecurrenceFrequencyValues) * [type RecurrenceSchedule](#RecurrenceSchedule) * + [func (r RecurrenceSchedule) MarshalJSON() ([]byte, error)](#RecurrenceSchedule.MarshalJSON) + [func (r *RecurrenceSchedule) UnmarshalJSON(data []byte) error](#RecurrenceSchedule.UnmarshalJSON) * [type RecurrenceScheduleOccurrence](#RecurrenceScheduleOccurrence) * + [func (r RecurrenceScheduleOccurrence) MarshalJSON() ([]byte, error)](#RecurrenceScheduleOccurrence.MarshalJSON) + [func (r *RecurrenceScheduleOccurrence) UnmarshalJSON(data []byte) error](#RecurrenceScheduleOccurrence.UnmarshalJSON) * [type RedirectIncompatibleRowSettings](#RedirectIncompatibleRowSettings) * + [func (r RedirectIncompatibleRowSettings) MarshalJSON() ([]byte, error)](#RedirectIncompatibleRowSettings.MarshalJSON) + [func (r *RedirectIncompatibleRowSettings) UnmarshalJSON(data []byte) error](#RedirectIncompatibleRowSettings.UnmarshalJSON) * [type RedshiftUnloadSettings](#RedshiftUnloadSettings) * + [func (r RedshiftUnloadSettings) MarshalJSON() ([]byte, error)](#RedshiftUnloadSettings.MarshalJSON) + [func (r *RedshiftUnloadSettings) UnmarshalJSON(data []byte) error](#RedshiftUnloadSettings.UnmarshalJSON) * [type RelationalSource](#RelationalSource) * + [func (r *RelationalSource) GetCopySource() *CopySource](#RelationalSource.GetCopySource) + [func (r RelationalSource) MarshalJSON() ([]byte, error)](#RelationalSource.MarshalJSON) + [func (r *RelationalSource) UnmarshalJSON(data []byte) error](#RelationalSource.UnmarshalJSON) * [type RelationalTableDataset](#RelationalTableDataset) * + [func (r *RelationalTableDataset) GetDataset() *Dataset](#RelationalTableDataset.GetDataset) + [func (r RelationalTableDataset) MarshalJSON() ([]byte, error)](#RelationalTableDataset.MarshalJSON) + [func (r *RelationalTableDataset) UnmarshalJSON(data []byte) error](#RelationalTableDataset.UnmarshalJSON) * [type RelationalTableDatasetTypeProperties](#RelationalTableDatasetTypeProperties) * + [func (r RelationalTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#RelationalTableDatasetTypeProperties.MarshalJSON) + [func (r *RelationalTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#RelationalTableDatasetTypeProperties.UnmarshalJSON) * [type RemotePrivateEndpointConnection](#RemotePrivateEndpointConnection) * + [func (r RemotePrivateEndpointConnection) MarshalJSON() ([]byte, error)](#RemotePrivateEndpointConnection.MarshalJSON) + [func (r *RemotePrivateEndpointConnection) UnmarshalJSON(data []byte) error](#RemotePrivateEndpointConnection.UnmarshalJSON) * [type RerunTumblingWindowTrigger](#RerunTumblingWindowTrigger) * + [func (r *RerunTumblingWindowTrigger) GetTrigger() *Trigger](#RerunTumblingWindowTrigger.GetTrigger) + [func (r RerunTumblingWindowTrigger) MarshalJSON() ([]byte, error)](#RerunTumblingWindowTrigger.MarshalJSON) + [func (r *RerunTumblingWindowTrigger) UnmarshalJSON(data []byte) error](#RerunTumblingWindowTrigger.UnmarshalJSON) * [type RerunTumblingWindowTriggerTypeProperties](#RerunTumblingWindowTriggerTypeProperties) * + [func (r RerunTumblingWindowTriggerTypeProperties) MarshalJSON() ([]byte, error)](#RerunTumblingWindowTriggerTypeProperties.MarshalJSON) + [func (r *RerunTumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) error](#RerunTumblingWindowTriggerTypeProperties.UnmarshalJSON) * [type Resource](#Resource) * + [func (r Resource) MarshalJSON() ([]byte, error)](#Resource.MarshalJSON) + [func (r *Resource) UnmarshalJSON(data []byte) error](#Resource.UnmarshalJSON) * [type ResponsysLinkedService](#ResponsysLinkedService) * + [func (r *ResponsysLinkedService) GetLinkedService() *LinkedService](#ResponsysLinkedService.GetLinkedService) + [func (r ResponsysLinkedService) MarshalJSON() ([]byte, error)](#ResponsysLinkedService.MarshalJSON) + [func (r *ResponsysLinkedService) UnmarshalJSON(data []byte) error](#ResponsysLinkedService.UnmarshalJSON) * [type ResponsysLinkedServiceTypeProperties](#ResponsysLinkedServiceTypeProperties) * + [func (r ResponsysLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#ResponsysLinkedServiceTypeProperties.MarshalJSON) + [func (r *ResponsysLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#ResponsysLinkedServiceTypeProperties.UnmarshalJSON) * [type ResponsysObjectDataset](#ResponsysObjectDataset) * + [func (r *ResponsysObjectDataset) GetDataset() *Dataset](#ResponsysObjectDataset.GetDataset) + [func (r ResponsysObjectDataset) MarshalJSON() ([]byte, error)](#ResponsysObjectDataset.MarshalJSON) + [func (r *ResponsysObjectDataset) UnmarshalJSON(data []byte) error](#ResponsysObjectDataset.UnmarshalJSON) * [type ResponsysSource](#ResponsysSource) * + [func (r *ResponsysSource) GetCopySource() *CopySource](#ResponsysSource.GetCopySource) + [func (r *ResponsysSource) GetTabularSource() *TabularSource](#ResponsysSource.GetTabularSource) + [func (r ResponsysSource) MarshalJSON() ([]byte, error)](#ResponsysSource.MarshalJSON) + [func (r *ResponsysSource) UnmarshalJSON(data []byte) error](#ResponsysSource.UnmarshalJSON) * [type RestResourceDataset](#RestResourceDataset) * + [func (r *RestResourceDataset) GetDataset() *Dataset](#RestResourceDataset.GetDataset) + [func (r RestResourceDataset) MarshalJSON() ([]byte, error)](#RestResourceDataset.MarshalJSON) + [func (r *RestResourceDataset) UnmarshalJSON(data []byte) error](#RestResourceDataset.UnmarshalJSON) * [type RestResourceDatasetTypeProperties](#RestResourceDatasetTypeProperties) * + [func (r RestResourceDatasetTypeProperties) MarshalJSON() ([]byte, error)](#RestResourceDatasetTypeProperties.MarshalJSON) + [func (r *RestResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error](#RestResourceDatasetTypeProperties.UnmarshalJSON) * [type RestServiceAuthenticationType](#RestServiceAuthenticationType) * + [func PossibleRestServiceAuthenticationTypeValues() []RestServiceAuthenticationType](#PossibleRestServiceAuthenticationTypeValues) * [type RestServiceLinkedService](#RestServiceLinkedService) * + [func (r *RestServiceLinkedService) GetLinkedService() *LinkedService](#RestServiceLinkedService.GetLinkedService) + [func (r RestServiceLinkedService) MarshalJSON() ([]byte, error)](#RestServiceLinkedService.MarshalJSON) + [func (r *RestServiceLinkedService) UnmarshalJSON(data []byte) error](#RestServiceLinkedService.UnmarshalJSON) * [type RestServiceLinkedServiceTypeProperties](#RestServiceLinkedServiceTypeProperties) * + [func (r RestServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#RestServiceLinkedServiceTypeProperties.MarshalJSON) + [func (r *RestServiceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#RestServiceLinkedServiceTypeProperties.UnmarshalJSON) * [type RestSink](#RestSink) * + [func (r *RestSink) GetCopySink() *CopySink](#RestSink.GetCopySink) + [func (r RestSink) MarshalJSON() ([]byte, error)](#RestSink.MarshalJSON) + [func (r *RestSink) UnmarshalJSON(data []byte) error](#RestSink.UnmarshalJSON) * [type RestSource](#RestSource) * + [func (r *RestSource) GetCopySource() *CopySource](#RestSource.GetCopySource) + [func (r RestSource) MarshalJSON() ([]byte, error)](#RestSource.MarshalJSON) + [func (r *RestSource) UnmarshalJSON(data []byte) error](#RestSource.UnmarshalJSON) * [type RetryPolicy](#RetryPolicy) * + [func (r RetryPolicy) MarshalJSON() ([]byte, error)](#RetryPolicy.MarshalJSON) + [func (r *RetryPolicy) UnmarshalJSON(data []byte) error](#RetryPolicy.UnmarshalJSON) * [type RunFilterParameters](#RunFilterParameters) * + [func (r RunFilterParameters) MarshalJSON() ([]byte, error)](#RunFilterParameters.MarshalJSON) + [func (r *RunFilterParameters) UnmarshalJSON(data []byte) error](#RunFilterParameters.UnmarshalJSON) * [type RunQueryFilter](#RunQueryFilter) * + [func (r RunQueryFilter) MarshalJSON() ([]byte, error)](#RunQueryFilter.MarshalJSON) + [func (r *RunQueryFilter) UnmarshalJSON(data []byte) error](#RunQueryFilter.UnmarshalJSON) * [type RunQueryFilterOperand](#RunQueryFilterOperand) * + [func PossibleRunQueryFilterOperandValues() []RunQueryFilterOperand](#PossibleRunQueryFilterOperandValues) * [type RunQueryFilterOperator](#RunQueryFilterOperator) * + [func PossibleRunQueryFilterOperatorValues() []RunQueryFilterOperator](#PossibleRunQueryFilterOperatorValues) * [type RunQueryOrder](#RunQueryOrder) * + [func PossibleRunQueryOrderValues() []RunQueryOrder](#PossibleRunQueryOrderValues) * [type RunQueryOrderBy](#RunQueryOrderBy) * + [func (r RunQueryOrderBy) MarshalJSON() ([]byte, error)](#RunQueryOrderBy.MarshalJSON) + [func (r *RunQueryOrderBy) UnmarshalJSON(data []byte) error](#RunQueryOrderBy.UnmarshalJSON) * [type RunQueryOrderByField](#RunQueryOrderByField) * + [func PossibleRunQueryOrderByFieldValues() []RunQueryOrderByField](#PossibleRunQueryOrderByFieldValues) * [type SQLAlwaysEncryptedAkvAuthType](#SQLAlwaysEncryptedAkvAuthType) * + [func PossibleSQLAlwaysEncryptedAkvAuthTypeValues() []SQLAlwaysEncryptedAkvAuthType](#PossibleSQLAlwaysEncryptedAkvAuthTypeValues) * [type SQLAlwaysEncryptedProperties](#SQLAlwaysEncryptedProperties) * + [func (s SQLAlwaysEncryptedProperties) MarshalJSON() ([]byte, error)](#SQLAlwaysEncryptedProperties.MarshalJSON) + [func (s *SQLAlwaysEncryptedProperties) UnmarshalJSON(data []byte) error](#SQLAlwaysEncryptedProperties.UnmarshalJSON) * [type SQLDWSink](#SQLDWSink) * + [func (s *SQLDWSink) GetCopySink() *CopySink](#SQLDWSink.GetCopySink) + [func (s SQLDWSink) MarshalJSON() ([]byte, error)](#SQLDWSink.MarshalJSON) + [func (s *SQLDWSink) UnmarshalJSON(data []byte) error](#SQLDWSink.UnmarshalJSON) * [type SQLDWSource](#SQLDWSource) * + [func (s *SQLDWSource) GetCopySource() *CopySource](#SQLDWSource.GetCopySource) + [func (s *SQLDWSource) GetTabularSource() *TabularSource](#SQLDWSource.GetTabularSource) + [func (s SQLDWSource) MarshalJSON() ([]byte, error)](#SQLDWSource.MarshalJSON) + [func (s *SQLDWSource) UnmarshalJSON(data []byte) error](#SQLDWSource.UnmarshalJSON) * [type SQLDWUpsertSettings](#SQLDWUpsertSettings) * + [func (s SQLDWUpsertSettings) MarshalJSON() ([]byte, error)](#SQLDWUpsertSettings.MarshalJSON) + [func (s *SQLDWUpsertSettings) UnmarshalJSON(data []byte) error](#SQLDWUpsertSettings.UnmarshalJSON) * [type SQLDWWriteBehaviorEnum](#SQLDWWriteBehaviorEnum) * + [func PossibleSQLDWWriteBehaviorEnumValues() []SQLDWWriteBehaviorEnum](#PossibleSQLDWWriteBehaviorEnumValues) * [type SQLMISink](#SQLMISink) * + [func (s *SQLMISink) GetCopySink() *CopySink](#SQLMISink.GetCopySink) + [func (s SQLMISink) MarshalJSON() ([]byte, error)](#SQLMISink.MarshalJSON) + [func (s *SQLMISink) UnmarshalJSON(data []byte) error](#SQLMISink.UnmarshalJSON) * [type SQLMISource](#SQLMISource) * + [func (s *SQLMISource) GetCopySource() *CopySource](#SQLMISource.GetCopySource) + [func (s *SQLMISource) GetTabularSource() *TabularSource](#SQLMISource.GetTabularSource) + [func (s SQLMISource) MarshalJSON() ([]byte, error)](#SQLMISource.MarshalJSON) + [func (s *SQLMISource) UnmarshalJSON(data []byte) error](#SQLMISource.UnmarshalJSON) * [type SQLPartitionOption](#SQLPartitionOption) * + [func PossibleSQLPartitionOptionValues() []SQLPartitionOption](#PossibleSQLPartitionOptionValues) * [type SQLPartitionSettings](#SQLPartitionSettings) * + [func (s SQLPartitionSettings) MarshalJSON() ([]byte, error)](#SQLPartitionSettings.MarshalJSON) + [func (s *SQLPartitionSettings) UnmarshalJSON(data []byte) error](#SQLPartitionSettings.UnmarshalJSON) * [type SQLServerLinkedService](#SQLServerLinkedService) * + [func (s *SQLServerLinkedService) GetLinkedService() *LinkedService](#SQLServerLinkedService.GetLinkedService) + [func (s SQLServerLinkedService) MarshalJSON() ([]byte, error)](#SQLServerLinkedService.MarshalJSON) + [func (s *SQLServerLinkedService) UnmarshalJSON(data []byte) error](#SQLServerLinkedService.UnmarshalJSON) * [type SQLServerLinkedServiceTypeProperties](#SQLServerLinkedServiceTypeProperties) * + [func (s SQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SQLServerLinkedServiceTypeProperties.MarshalJSON) + [func (s *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SQLServerLinkedServiceTypeProperties.UnmarshalJSON) * [type SQLServerSink](#SQLServerSink) * + [func (s *SQLServerSink) GetCopySink() *CopySink](#SQLServerSink.GetCopySink) + [func (s SQLServerSink) MarshalJSON() ([]byte, error)](#SQLServerSink.MarshalJSON) + [func (s *SQLServerSink) UnmarshalJSON(data []byte) error](#SQLServerSink.UnmarshalJSON) * [type SQLServerSource](#SQLServerSource) * + [func (s *SQLServerSource) GetCopySource() *CopySource](#SQLServerSource.GetCopySource) + [func (s *SQLServerSource) GetTabularSource() *TabularSource](#SQLServerSource.GetTabularSource) + [func (s SQLServerSource) MarshalJSON() ([]byte, error)](#SQLServerSource.MarshalJSON) + [func (s *SQLServerSource) UnmarshalJSON(data []byte) error](#SQLServerSource.UnmarshalJSON) * [type SQLServerStoredProcedureActivity](#SQLServerStoredProcedureActivity) * + [func (s *SQLServerStoredProcedureActivity) GetActivity() *Activity](#SQLServerStoredProcedureActivity.GetActivity) + [func (s *SQLServerStoredProcedureActivity) GetExecutionActivity() *ExecutionActivity](#SQLServerStoredProcedureActivity.GetExecutionActivity) + [func (s SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error)](#SQLServerStoredProcedureActivity.MarshalJSON) + [func (s *SQLServerStoredProcedureActivity) UnmarshalJSON(data []byte) error](#SQLServerStoredProcedureActivity.UnmarshalJSON) * [type SQLServerStoredProcedureActivityTypeProperties](#SQLServerStoredProcedureActivityTypeProperties) * + [func (s SQLServerStoredProcedureActivityTypeProperties) MarshalJSON() ([]byte, error)](#SQLServerStoredProcedureActivityTypeProperties.MarshalJSON) + [func (s *SQLServerStoredProcedureActivityTypeProperties) UnmarshalJSON(data []byte) error](#SQLServerStoredProcedureActivityTypeProperties.UnmarshalJSON) * [type SQLServerTableDataset](#SQLServerTableDataset) * + [func (s *SQLServerTableDataset) GetDataset() *Dataset](#SQLServerTableDataset.GetDataset) + [func (s SQLServerTableDataset) MarshalJSON() ([]byte, error)](#SQLServerTableDataset.MarshalJSON) + [func (s *SQLServerTableDataset) UnmarshalJSON(data []byte) error](#SQLServerTableDataset.UnmarshalJSON) * [type SQLServerTableDatasetTypeProperties](#SQLServerTableDatasetTypeProperties) * + [func (s SQLServerTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SQLServerTableDatasetTypeProperties.MarshalJSON) + [func (s *SQLServerTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SQLServerTableDatasetTypeProperties.UnmarshalJSON) * [type SQLSink](#SQLSink) * + [func (s *SQLSink) GetCopySink() *CopySink](#SQLSink.GetCopySink) + [func (s SQLSink) MarshalJSON() ([]byte, error)](#SQLSink.MarshalJSON) + [func (s *SQLSink) UnmarshalJSON(data []byte) error](#SQLSink.UnmarshalJSON) * [type SQLSource](#SQLSource) * + [func (s *SQLSource) GetCopySource() *CopySource](#SQLSource.GetCopySource) + [func (s *SQLSource) GetTabularSource() *TabularSource](#SQLSource.GetTabularSource) + [func (s SQLSource) MarshalJSON() ([]byte, error)](#SQLSource.MarshalJSON) + [func (s *SQLSource) UnmarshalJSON(data []byte) error](#SQLSource.UnmarshalJSON) * [type SQLUpsertSettings](#SQLUpsertSettings) * + [func (s SQLUpsertSettings) MarshalJSON() ([]byte, error)](#SQLUpsertSettings.MarshalJSON) + [func (s *SQLUpsertSettings) UnmarshalJSON(data []byte) error](#SQLUpsertSettings.UnmarshalJSON) * [type SQLWriteBehaviorEnum](#SQLWriteBehaviorEnum) * + [func PossibleSQLWriteBehaviorEnumValues() []SQLWriteBehaviorEnum](#PossibleSQLWriteBehaviorEnumValues) * [type SSISAccessCredential](#SSISAccessCredential) * + [func (s SSISAccessCredential) MarshalJSON() ([]byte, error)](#SSISAccessCredential.MarshalJSON) + [func (s *SSISAccessCredential) UnmarshalJSON(data []byte) error](#SSISAccessCredential.UnmarshalJSON) * [type SSISChildPackage](#SSISChildPackage) * + [func (s SSISChildPackage) MarshalJSON() ([]byte, error)](#SSISChildPackage.MarshalJSON) + [func (s *SSISChildPackage) UnmarshalJSON(data []byte) error](#SSISChildPackage.UnmarshalJSON) * [type SSISExecutionCredential](#SSISExecutionCredential) * + [func (s SSISExecutionCredential) MarshalJSON() ([]byte, error)](#SSISExecutionCredential.MarshalJSON) + [func (s *SSISExecutionCredential) UnmarshalJSON(data []byte) error](#SSISExecutionCredential.UnmarshalJSON) * [type SSISExecutionParameter](#SSISExecutionParameter) * + [func (s SSISExecutionParameter) MarshalJSON() ([]byte, error)](#SSISExecutionParameter.MarshalJSON) + [func (s *SSISExecutionParameter) UnmarshalJSON(data []byte) error](#SSISExecutionParameter.UnmarshalJSON) * [type SSISLogLocation](#SSISLogLocation) * + [func (s SSISLogLocation) MarshalJSON() ([]byte, error)](#SSISLogLocation.MarshalJSON) + [func (s *SSISLogLocation) UnmarshalJSON(data []byte) error](#SSISLogLocation.UnmarshalJSON) * [type SSISLogLocationTypeProperties](#SSISLogLocationTypeProperties) * + [func (s SSISLogLocationTypeProperties) MarshalJSON() ([]byte, error)](#SSISLogLocationTypeProperties.MarshalJSON) + [func (s *SSISLogLocationTypeProperties) UnmarshalJSON(data []byte) error](#SSISLogLocationTypeProperties.UnmarshalJSON) * [type SSISPackageLocation](#SSISPackageLocation) * + [func (s SSISPackageLocation) MarshalJSON() ([]byte, error)](#SSISPackageLocation.MarshalJSON) + [func (s *SSISPackageLocation) UnmarshalJSON(data []byte) error](#SSISPackageLocation.UnmarshalJSON) * [type SSISPackageLocationTypeProperties](#SSISPackageLocationTypeProperties) * + [func (s SSISPackageLocationTypeProperties) MarshalJSON() ([]byte, error)](#SSISPackageLocationTypeProperties.MarshalJSON) + [func (s *SSISPackageLocationTypeProperties) UnmarshalJSON(data []byte) error](#SSISPackageLocationTypeProperties.UnmarshalJSON) * [type SSISPropertyOverride](#SSISPropertyOverride) * + [func (s SSISPropertyOverride) MarshalJSON() ([]byte, error)](#SSISPropertyOverride.MarshalJSON) + [func (s *SSISPropertyOverride) UnmarshalJSON(data []byte) error](#SSISPropertyOverride.UnmarshalJSON) * [type SalesforceLinkedService](#SalesforceLinkedService) * + [func (s *SalesforceLinkedService) GetLinkedService() *LinkedService](#SalesforceLinkedService.GetLinkedService) + [func (s SalesforceLinkedService) MarshalJSON() ([]byte, error)](#SalesforceLinkedService.MarshalJSON) + [func (s *SalesforceLinkedService) UnmarshalJSON(data []byte) error](#SalesforceLinkedService.UnmarshalJSON) * [type SalesforceLinkedServiceTypeProperties](#SalesforceLinkedServiceTypeProperties) * + [func (s SalesforceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SalesforceLinkedServiceTypeProperties.MarshalJSON) + [func (s *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SalesforceLinkedServiceTypeProperties.UnmarshalJSON) * [type SalesforceMarketingCloudLinkedService](#SalesforceMarketingCloudLinkedService) * + [func (s *SalesforceMarketingCloudLinkedService) GetLinkedService() *LinkedService](#SalesforceMarketingCloudLinkedService.GetLinkedService) + [func (s SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error)](#SalesforceMarketingCloudLinkedService.MarshalJSON) + [func (s *SalesforceMarketingCloudLinkedService) UnmarshalJSON(data []byte) error](#SalesforceMarketingCloudLinkedService.UnmarshalJSON) * [type SalesforceMarketingCloudLinkedServiceTypeProperties](#SalesforceMarketingCloudLinkedServiceTypeProperties) * + [func (s SalesforceMarketingCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SalesforceMarketingCloudLinkedServiceTypeProperties.MarshalJSON) + [func (s *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SalesforceMarketingCloudLinkedServiceTypeProperties.UnmarshalJSON) * [type SalesforceMarketingCloudObjectDataset](#SalesforceMarketingCloudObjectDataset) * + [func (s *SalesforceMarketingCloudObjectDataset) GetDataset() *Dataset](#SalesforceMarketingCloudObjectDataset.GetDataset) + [func (s SalesforceMarketingCloudObjectDataset) MarshalJSON() ([]byte, error)](#SalesforceMarketingCloudObjectDataset.MarshalJSON) + [func (s *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(data []byte) error](#SalesforceMarketingCloudObjectDataset.UnmarshalJSON) * [type SalesforceMarketingCloudSource](#SalesforceMarketingCloudSource) * + [func (s *SalesforceMarketingCloudSource) GetCopySource() *CopySource](#SalesforceMarketingCloudSource.GetCopySource) + [func (s *SalesforceMarketingCloudSource) GetTabularSource() *TabularSource](#SalesforceMarketingCloudSource.GetTabularSource) + [func (s SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error)](#SalesforceMarketingCloudSource.MarshalJSON) + [func (s *SalesforceMarketingCloudSource) UnmarshalJSON(data []byte) error](#SalesforceMarketingCloudSource.UnmarshalJSON) * [type SalesforceObjectDataset](#SalesforceObjectDataset) * + [func (s *SalesforceObjectDataset) GetDataset() *Dataset](#SalesforceObjectDataset.GetDataset) + [func (s SalesforceObjectDataset) MarshalJSON() ([]byte, error)](#SalesforceObjectDataset.MarshalJSON) + [func (s *SalesforceObjectDataset) UnmarshalJSON(data []byte) error](#SalesforceObjectDataset.UnmarshalJSON) * [type SalesforceObjectDatasetTypeProperties](#SalesforceObjectDatasetTypeProperties) * + [func (s SalesforceObjectDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SalesforceObjectDatasetTypeProperties.MarshalJSON) + [func (s *SalesforceObjectDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SalesforceObjectDatasetTypeProperties.UnmarshalJSON) * [type SalesforceServiceCloudLinkedService](#SalesforceServiceCloudLinkedService) * + [func (s *SalesforceServiceCloudLinkedService) GetLinkedService() *LinkedService](#SalesforceServiceCloudLinkedService.GetLinkedService) + [func (s SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error)](#SalesforceServiceCloudLinkedService.MarshalJSON) + [func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error](#SalesforceServiceCloudLinkedService.UnmarshalJSON) * [type SalesforceServiceCloudLinkedServiceTypeProperties](#SalesforceServiceCloudLinkedServiceTypeProperties) * + [func (s SalesforceServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SalesforceServiceCloudLinkedServiceTypeProperties.MarshalJSON) + [func (s *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SalesforceServiceCloudLinkedServiceTypeProperties.UnmarshalJSON) * [type SalesforceServiceCloudObjectDataset](#SalesforceServiceCloudObjectDataset) * + [func (s *SalesforceServiceCloudObjectDataset) GetDataset() *Dataset](#SalesforceServiceCloudObjectDataset.GetDataset) + [func (s SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error)](#SalesforceServiceCloudObjectDataset.MarshalJSON) + [func (s *SalesforceServiceCloudObjectDataset) UnmarshalJSON(data []byte) error](#SalesforceServiceCloudObjectDataset.UnmarshalJSON) * [type SalesforceServiceCloudObjectDatasetTypeProperties](#SalesforceServiceCloudObjectDatasetTypeProperties) * + [func (s SalesforceServiceCloudObjectDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SalesforceServiceCloudObjectDatasetTypeProperties.MarshalJSON) + [func (s *SalesforceServiceCloudObjectDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SalesforceServiceCloudObjectDatasetTypeProperties.UnmarshalJSON) * [type SalesforceServiceCloudSink](#SalesforceServiceCloudSink) * + [func (s *SalesforceServiceCloudSink) GetCopySink() *CopySink](#SalesforceServiceCloudSink.GetCopySink) + [func (s SalesforceServiceCloudSink) MarshalJSON() ([]byte, error)](#SalesforceServiceCloudSink.MarshalJSON) + [func (s *SalesforceServiceCloudSink) UnmarshalJSON(data []byte) error](#SalesforceServiceCloudSink.UnmarshalJSON) * [type SalesforceServiceCloudSource](#SalesforceServiceCloudSource) * + [func (s *SalesforceServiceCloudSource) GetCopySource() *CopySource](#SalesforceServiceCloudSource.GetCopySource) + [func (s SalesforceServiceCloudSource) MarshalJSON() ([]byte, error)](#SalesforceServiceCloudSource.MarshalJSON) + [func (s *SalesforceServiceCloudSource) UnmarshalJSON(data []byte) error](#SalesforceServiceCloudSource.UnmarshalJSON) * [type SalesforceSink](#SalesforceSink) * + [func (s *SalesforceSink) GetCopySink() *CopySink](#SalesforceSink.GetCopySink) + [func (s SalesforceSink) MarshalJSON() ([]byte, error)](#SalesforceSink.MarshalJSON) + [func (s *SalesforceSink) UnmarshalJSON(data []byte) error](#SalesforceSink.UnmarshalJSON) * [type SalesforceSinkWriteBehavior](#SalesforceSinkWriteBehavior) * + [func PossibleSalesforceSinkWriteBehaviorValues() []SalesforceSinkWriteBehavior](#PossibleSalesforceSinkWriteBehaviorValues) * [type SalesforceSource](#SalesforceSource) * + [func (s *SalesforceSource) GetCopySource() *CopySource](#SalesforceSource.GetCopySource) + [func (s *SalesforceSource) GetTabularSource() *TabularSource](#SalesforceSource.GetTabularSource) + [func (s SalesforceSource) MarshalJSON() ([]byte, error)](#SalesforceSource.MarshalJSON) + [func (s *SalesforceSource) UnmarshalJSON(data []byte) error](#SalesforceSource.UnmarshalJSON) * [type SalesforceSourceReadBehavior](#SalesforceSourceReadBehavior) * + [func PossibleSalesforceSourceReadBehaviorValues() []SalesforceSourceReadBehavior](#PossibleSalesforceSourceReadBehaviorValues) * [type SapBWLinkedService](#SapBWLinkedService) * + [func (s *SapBWLinkedService) GetLinkedService() *LinkedService](#SapBWLinkedService.GetLinkedService) + [func (s SapBWLinkedService) MarshalJSON() ([]byte, error)](#SapBWLinkedService.MarshalJSON) + [func (s *SapBWLinkedService) UnmarshalJSON(data []byte) error](#SapBWLinkedService.UnmarshalJSON) * [type SapBWLinkedServiceTypeProperties](#SapBWLinkedServiceTypeProperties) * + [func (s SapBWLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SapBWLinkedServiceTypeProperties.MarshalJSON) + [func (s *SapBWLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SapBWLinkedServiceTypeProperties.UnmarshalJSON) * [type SapBwCubeDataset](#SapBwCubeDataset) * + [func (s *SapBwCubeDataset) GetDataset() *Dataset](#SapBwCubeDataset.GetDataset) + [func (s SapBwCubeDataset) MarshalJSON() ([]byte, error)](#SapBwCubeDataset.MarshalJSON) + [func (s *SapBwCubeDataset) UnmarshalJSON(data []byte) error](#SapBwCubeDataset.UnmarshalJSON) * [type SapBwSource](#SapBwSource) * + [func (s *SapBwSource) GetCopySource() *CopySource](#SapBwSource.GetCopySource) + [func (s *SapBwSource) GetTabularSource() *TabularSource](#SapBwSource.GetTabularSource) + [func (s SapBwSource) MarshalJSON() ([]byte, error)](#SapBwSource.MarshalJSON) + [func (s *SapBwSource) UnmarshalJSON(data []byte) error](#SapBwSource.UnmarshalJSON) * [type SapCloudForCustomerLinkedService](#SapCloudForCustomerLinkedService) * + [func (s *SapCloudForCustomerLinkedService) GetLinkedService() *LinkedService](#SapCloudForCustomerLinkedService.GetLinkedService) + [func (s SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error)](#SapCloudForCustomerLinkedService.MarshalJSON) + [func (s *SapCloudForCustomerLinkedService) UnmarshalJSON(data []byte) error](#SapCloudForCustomerLinkedService.UnmarshalJSON) * [type SapCloudForCustomerLinkedServiceTypeProperties](#SapCloudForCustomerLinkedServiceTypeProperties) * + [func (s SapCloudForCustomerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SapCloudForCustomerLinkedServiceTypeProperties.MarshalJSON) + [func (s *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SapCloudForCustomerLinkedServiceTypeProperties.UnmarshalJSON) * [type SapCloudForCustomerResourceDataset](#SapCloudForCustomerResourceDataset) * + [func (s *SapCloudForCustomerResourceDataset) GetDataset() *Dataset](#SapCloudForCustomerResourceDataset.GetDataset) + [func (s SapCloudForCustomerResourceDataset) MarshalJSON() ([]byte, error)](#SapCloudForCustomerResourceDataset.MarshalJSON) + [func (s *SapCloudForCustomerResourceDataset) UnmarshalJSON(data []byte) error](#SapCloudForCustomerResourceDataset.UnmarshalJSON) * [type SapCloudForCustomerResourceDatasetTypeProperties](#SapCloudForCustomerResourceDatasetTypeProperties) * + [func (s SapCloudForCustomerResourceDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SapCloudForCustomerResourceDatasetTypeProperties.MarshalJSON) + [func (s *SapCloudForCustomerResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SapCloudForCustomerResourceDatasetTypeProperties.UnmarshalJSON) * [type SapCloudForCustomerSink](#SapCloudForCustomerSink) * + [func (s *SapCloudForCustomerSink) GetCopySink() *CopySink](#SapCloudForCustomerSink.GetCopySink) + [func (s SapCloudForCustomerSink) MarshalJSON() ([]byte, error)](#SapCloudForCustomerSink.MarshalJSON) + [func (s *SapCloudForCustomerSink) UnmarshalJSON(data []byte) error](#SapCloudForCustomerSink.UnmarshalJSON) * [type SapCloudForCustomerSinkWriteBehavior](#SapCloudForCustomerSinkWriteBehavior) * + [func PossibleSapCloudForCustomerSinkWriteBehaviorValues() []SapCloudForCustomerSinkWriteBehavior](#PossibleSapCloudForCustomerSinkWriteBehaviorValues) * [type SapCloudForCustomerSource](#SapCloudForCustomerSource) * + [func (s *SapCloudForCustomerSource) GetCopySource() *CopySource](#SapCloudForCustomerSource.GetCopySource) + [func (s *SapCloudForCustomerSource) GetTabularSource() *TabularSource](#SapCloudForCustomerSource.GetTabularSource) + [func (s SapCloudForCustomerSource) MarshalJSON() ([]byte, error)](#SapCloudForCustomerSource.MarshalJSON) + [func (s *SapCloudForCustomerSource) UnmarshalJSON(data []byte) error](#SapCloudForCustomerSource.UnmarshalJSON) * [type SapEccLinkedService](#SapEccLinkedService) * + [func (s *SapEccLinkedService) GetLinkedService() *LinkedService](#SapEccLinkedService.GetLinkedService) + [func (s SapEccLinkedService) MarshalJSON() ([]byte, error)](#SapEccLinkedService.MarshalJSON) + [func (s *SapEccLinkedService) UnmarshalJSON(data []byte) error](#SapEccLinkedService.UnmarshalJSON) * [type SapEccLinkedServiceTypeProperties](#SapEccLinkedServiceTypeProperties) * + [func (s SapEccLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SapEccLinkedServiceTypeProperties.MarshalJSON) + [func (s *SapEccLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SapEccLinkedServiceTypeProperties.UnmarshalJSON) * [type SapEccResourceDataset](#SapEccResourceDataset) * + [func (s *SapEccResourceDataset) GetDataset() *Dataset](#SapEccResourceDataset.GetDataset) + [func (s SapEccResourceDataset) MarshalJSON() ([]byte, error)](#SapEccResourceDataset.MarshalJSON) + [func (s *SapEccResourceDataset) UnmarshalJSON(data []byte) error](#SapEccResourceDataset.UnmarshalJSON) * [type SapEccResourceDatasetTypeProperties](#SapEccResourceDatasetTypeProperties) * + [func (s SapEccResourceDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SapEccResourceDatasetTypeProperties.MarshalJSON) + [func (s *SapEccResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SapEccResourceDatasetTypeProperties.UnmarshalJSON) * [type SapEccSource](#SapEccSource) * + [func (s *SapEccSource) GetCopySource() *CopySource](#SapEccSource.GetCopySource) + [func (s *SapEccSource) GetTabularSource() *TabularSource](#SapEccSource.GetTabularSource) + [func (s SapEccSource) MarshalJSON() ([]byte, error)](#SapEccSource.MarshalJSON) + [func (s *SapEccSource) UnmarshalJSON(data []byte) error](#SapEccSource.UnmarshalJSON) * [type SapHanaAuthenticationType](#SapHanaAuthenticationType) * + [func PossibleSapHanaAuthenticationTypeValues() []SapHanaAuthenticationType](#PossibleSapHanaAuthenticationTypeValues) * [type SapHanaLinkedService](#SapHanaLinkedService) * + [func (s *SapHanaLinkedService) GetLinkedService() *LinkedService](#SapHanaLinkedService.GetLinkedService) + [func (s SapHanaLinkedService) MarshalJSON() ([]byte, error)](#SapHanaLinkedService.MarshalJSON) + [func (s *SapHanaLinkedService) UnmarshalJSON(data []byte) error](#SapHanaLinkedService.UnmarshalJSON) * [type SapHanaLinkedServiceProperties](#SapHanaLinkedServiceProperties) * + [func (s SapHanaLinkedServiceProperties) MarshalJSON() ([]byte, error)](#SapHanaLinkedServiceProperties.MarshalJSON) + [func (s *SapHanaLinkedServiceProperties) UnmarshalJSON(data []byte) error](#SapHanaLinkedServiceProperties.UnmarshalJSON) * [type SapHanaPartitionOption](#SapHanaPartitionOption) * + [func PossibleSapHanaPartitionOptionValues() []SapHanaPartitionOption](#PossibleSapHanaPartitionOptionValues) * [type SapHanaPartitionSettings](#SapHanaPartitionSettings) * + [func (s SapHanaPartitionSettings) MarshalJSON() ([]byte, error)](#SapHanaPartitionSettings.MarshalJSON) + [func (s *SapHanaPartitionSettings) UnmarshalJSON(data []byte) error](#SapHanaPartitionSettings.UnmarshalJSON) * [type SapHanaSource](#SapHanaSource) * + [func (s *SapHanaSource) GetCopySource() *CopySource](#SapHanaSource.GetCopySource) + [func (s *SapHanaSource) GetTabularSource() *TabularSource](#SapHanaSource.GetTabularSource) + [func (s SapHanaSource) MarshalJSON() ([]byte, error)](#SapHanaSource.MarshalJSON) + [func (s *SapHanaSource) UnmarshalJSON(data []byte) error](#SapHanaSource.UnmarshalJSON) * [type SapHanaTableDataset](#SapHanaTableDataset) * + [func (s *SapHanaTableDataset) GetDataset() *Dataset](#SapHanaTableDataset.GetDataset) + [func (s SapHanaTableDataset) MarshalJSON() ([]byte, error)](#SapHanaTableDataset.MarshalJSON) + [func (s *SapHanaTableDataset) UnmarshalJSON(data []byte) error](#SapHanaTableDataset.UnmarshalJSON) * [type SapHanaTableDatasetTypeProperties](#SapHanaTableDatasetTypeProperties) * + [func (s SapHanaTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SapHanaTableDatasetTypeProperties.MarshalJSON) + [func (s *SapHanaTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SapHanaTableDatasetTypeProperties.UnmarshalJSON) * [type SapOdpLinkedService](#SapOdpLinkedService) * + [func (s *SapOdpLinkedService) GetLinkedService() *LinkedService](#SapOdpLinkedService.GetLinkedService) + [func (s SapOdpLinkedService) MarshalJSON() ([]byte, error)](#SapOdpLinkedService.MarshalJSON) + [func (s *SapOdpLinkedService) UnmarshalJSON(data []byte) error](#SapOdpLinkedService.UnmarshalJSON) * [type SapOdpLinkedServiceTypeProperties](#SapOdpLinkedServiceTypeProperties) * + [func (s SapOdpLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SapOdpLinkedServiceTypeProperties.MarshalJSON) + [func (s *SapOdpLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SapOdpLinkedServiceTypeProperties.UnmarshalJSON) * [type SapOdpResourceDataset](#SapOdpResourceDataset) * + [func (s *SapOdpResourceDataset) GetDataset() *Dataset](#SapOdpResourceDataset.GetDataset) + [func (s SapOdpResourceDataset) MarshalJSON() ([]byte, error)](#SapOdpResourceDataset.MarshalJSON) + [func (s *SapOdpResourceDataset) UnmarshalJSON(data []byte) error](#SapOdpResourceDataset.UnmarshalJSON) * [type SapOdpResourceDatasetTypeProperties](#SapOdpResourceDatasetTypeProperties) * + [func (s SapOdpResourceDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SapOdpResourceDatasetTypeProperties.MarshalJSON) + [func (s *SapOdpResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SapOdpResourceDatasetTypeProperties.UnmarshalJSON) * [type SapOdpSource](#SapOdpSource) * + [func (s *SapOdpSource) GetCopySource() *CopySource](#SapOdpSource.GetCopySource) + [func (s *SapOdpSource) GetTabularSource() *TabularSource](#SapOdpSource.GetTabularSource) + [func (s SapOdpSource) MarshalJSON() ([]byte, error)](#SapOdpSource.MarshalJSON) + [func (s *SapOdpSource) UnmarshalJSON(data []byte) error](#SapOdpSource.UnmarshalJSON) * [type SapOpenHubLinkedService](#SapOpenHubLinkedService) * + [func (s *SapOpenHubLinkedService) GetLinkedService() *LinkedService](#SapOpenHubLinkedService.GetLinkedService) + [func (s SapOpenHubLinkedService) MarshalJSON() ([]byte, error)](#SapOpenHubLinkedService.MarshalJSON) + [func (s *SapOpenHubLinkedService) UnmarshalJSON(data []byte) error](#SapOpenHubLinkedService.UnmarshalJSON) * [type SapOpenHubLinkedServiceTypeProperties](#SapOpenHubLinkedServiceTypeProperties) * + [func (s SapOpenHubLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SapOpenHubLinkedServiceTypeProperties.MarshalJSON) + [func (s *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SapOpenHubLinkedServiceTypeProperties.UnmarshalJSON) * [type SapOpenHubSource](#SapOpenHubSource) * + [func (s *SapOpenHubSource) GetCopySource() *CopySource](#SapOpenHubSource.GetCopySource) + [func (s *SapOpenHubSource) GetTabularSource() *TabularSource](#SapOpenHubSource.GetTabularSource) + [func (s SapOpenHubSource) MarshalJSON() ([]byte, error)](#SapOpenHubSource.MarshalJSON) + [func (s *SapOpenHubSource) UnmarshalJSON(data []byte) error](#SapOpenHubSource.UnmarshalJSON) * [type SapOpenHubTableDataset](#SapOpenHubTableDataset) * + [func (s *SapOpenHubTableDataset) GetDataset() *Dataset](#SapOpenHubTableDataset.GetDataset) + [func (s SapOpenHubTableDataset) MarshalJSON() ([]byte, error)](#SapOpenHubTableDataset.MarshalJSON) + [func (s *SapOpenHubTableDataset) UnmarshalJSON(data []byte) error](#SapOpenHubTableDataset.UnmarshalJSON) * [type SapOpenHubTableDatasetTypeProperties](#SapOpenHubTableDatasetTypeProperties) * + [func (s SapOpenHubTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SapOpenHubTableDatasetTypeProperties.MarshalJSON) + [func (s *SapOpenHubTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SapOpenHubTableDatasetTypeProperties.UnmarshalJSON) * [type SapTableLinkedService](#SapTableLinkedService) * + [func (s *SapTableLinkedService) GetLinkedService() *LinkedService](#SapTableLinkedService.GetLinkedService) + [func (s SapTableLinkedService) MarshalJSON() ([]byte, error)](#SapTableLinkedService.MarshalJSON) + [func (s *SapTableLinkedService) UnmarshalJSON(data []byte) error](#SapTableLinkedService.UnmarshalJSON) * [type SapTableLinkedServiceTypeProperties](#SapTableLinkedServiceTypeProperties) * + [func (s SapTableLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SapTableLinkedServiceTypeProperties.MarshalJSON) + [func (s *SapTableLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SapTableLinkedServiceTypeProperties.UnmarshalJSON) * [type SapTablePartitionOption](#SapTablePartitionOption) * + [func PossibleSapTablePartitionOptionValues() []SapTablePartitionOption](#PossibleSapTablePartitionOptionValues) * [type SapTablePartitionSettings](#SapTablePartitionSettings) * + [func (s SapTablePartitionSettings) MarshalJSON() ([]byte, error)](#SapTablePartitionSettings.MarshalJSON) + [func (s *SapTablePartitionSettings) UnmarshalJSON(data []byte) error](#SapTablePartitionSettings.UnmarshalJSON) * [type SapTableResourceDataset](#SapTableResourceDataset) * + [func (s *SapTableResourceDataset) GetDataset() *Dataset](#SapTableResourceDataset.GetDataset) + [func (s SapTableResourceDataset) MarshalJSON() ([]byte, error)](#SapTableResourceDataset.MarshalJSON) + [func (s *SapTableResourceDataset) UnmarshalJSON(data []byte) error](#SapTableResourceDataset.UnmarshalJSON) * [type SapTableResourceDatasetTypeProperties](#SapTableResourceDatasetTypeProperties) * + [func (s SapTableResourceDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SapTableResourceDatasetTypeProperties.MarshalJSON) + [func (s *SapTableResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SapTableResourceDatasetTypeProperties.UnmarshalJSON) * [type SapTableSource](#SapTableSource) * + [func (s *SapTableSource) GetCopySource() *CopySource](#SapTableSource.GetCopySource) + [func (s *SapTableSource) GetTabularSource() *TabularSource](#SapTableSource.GetTabularSource) + [func (s SapTableSource) MarshalJSON() ([]byte, error)](#SapTableSource.MarshalJSON) + [func (s *SapTableSource) UnmarshalJSON(data []byte) error](#SapTableSource.UnmarshalJSON) * [type ScheduleTrigger](#ScheduleTrigger) * + [func (s *ScheduleTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger](#ScheduleTrigger.GetMultiplePipelineTrigger) + [func (s *ScheduleTrigger) GetTrigger() *Trigger](#ScheduleTrigger.GetTrigger) + [func (s ScheduleTrigger) MarshalJSON() ([]byte, error)](#ScheduleTrigger.MarshalJSON) + [func (s *ScheduleTrigger) UnmarshalJSON(data []byte) error](#ScheduleTrigger.UnmarshalJSON) * [type ScheduleTriggerRecurrence](#ScheduleTriggerRecurrence) * + [func (s ScheduleTriggerRecurrence) MarshalJSON() ([]byte, error)](#ScheduleTriggerRecurrence.MarshalJSON) + [func (s *ScheduleTriggerRecurrence) UnmarshalJSON(data []byte) error](#ScheduleTriggerRecurrence.UnmarshalJSON) * [type ScheduleTriggerTypeProperties](#ScheduleTriggerTypeProperties) * + [func (s ScheduleTriggerTypeProperties) MarshalJSON() ([]byte, error)](#ScheduleTriggerTypeProperties.MarshalJSON) + [func (s *ScheduleTriggerTypeProperties) UnmarshalJSON(data []byte) error](#ScheduleTriggerTypeProperties.UnmarshalJSON) * [type ScriptAction](#ScriptAction) * + [func (s ScriptAction) MarshalJSON() ([]byte, error)](#ScriptAction.MarshalJSON) + [func (s *ScriptAction) UnmarshalJSON(data []byte) error](#ScriptAction.UnmarshalJSON) * [type ScriptActivity](#ScriptActivity) * + [func (s *ScriptActivity) GetActivity() *Activity](#ScriptActivity.GetActivity) + [func (s *ScriptActivity) GetExecutionActivity() *ExecutionActivity](#ScriptActivity.GetExecutionActivity) + [func (s ScriptActivity) MarshalJSON() ([]byte, error)](#ScriptActivity.MarshalJSON) + [func (s *ScriptActivity) UnmarshalJSON(data []byte) error](#ScriptActivity.UnmarshalJSON) * [type ScriptActivityLogDestination](#ScriptActivityLogDestination) * + [func PossibleScriptActivityLogDestinationValues() []ScriptActivityLogDestination](#PossibleScriptActivityLogDestinationValues) * [type ScriptActivityParameter](#ScriptActivityParameter) * + [func (s ScriptActivityParameter) MarshalJSON() ([]byte, error)](#ScriptActivityParameter.MarshalJSON) + [func (s *ScriptActivityParameter) UnmarshalJSON(data []byte) error](#ScriptActivityParameter.UnmarshalJSON) * [type ScriptActivityParameterDirection](#ScriptActivityParameterDirection) * + [func PossibleScriptActivityParameterDirectionValues() []ScriptActivityParameterDirection](#PossibleScriptActivityParameterDirectionValues) * [type ScriptActivityParameterType](#ScriptActivityParameterType) * + [func PossibleScriptActivityParameterTypeValues() []ScriptActivityParameterType](#PossibleScriptActivityParameterTypeValues) * [type ScriptActivityScriptBlock](#ScriptActivityScriptBlock) * + [func (s ScriptActivityScriptBlock) MarshalJSON() ([]byte, error)](#ScriptActivityScriptBlock.MarshalJSON) + [func (s *ScriptActivityScriptBlock) UnmarshalJSON(data []byte) error](#ScriptActivityScriptBlock.UnmarshalJSON) * [type ScriptActivityTypeProperties](#ScriptActivityTypeProperties) * + [func (s ScriptActivityTypeProperties) MarshalJSON() ([]byte, error)](#ScriptActivityTypeProperties.MarshalJSON) + [func (s *ScriptActivityTypeProperties) UnmarshalJSON(data []byte) error](#ScriptActivityTypeProperties.UnmarshalJSON) * [type ScriptActivityTypePropertiesLogSettings](#ScriptActivityTypePropertiesLogSettings) * + [func (s ScriptActivityTypePropertiesLogSettings) MarshalJSON() ([]byte, error)](#ScriptActivityTypePropertiesLogSettings.MarshalJSON) + [func (s *ScriptActivityTypePropertiesLogSettings) UnmarshalJSON(data []byte) error](#ScriptActivityTypePropertiesLogSettings.UnmarshalJSON) * [type ScriptType](#ScriptType) * + [func PossibleScriptTypeValues() []ScriptType](#PossibleScriptTypeValues) * [type SecretBase](#SecretBase) * + [func (s *SecretBase) GetSecretBase() *SecretBase](#SecretBase.GetSecretBase) + [func (s SecretBase) MarshalJSON() ([]byte, error)](#SecretBase.MarshalJSON) + [func (s *SecretBase) UnmarshalJSON(data []byte) error](#SecretBase.UnmarshalJSON) * [type SecretBaseClassification](#SecretBaseClassification) * [type SecureString](#SecureString) * + [func (s *SecureString) GetSecretBase() *SecretBase](#SecureString.GetSecretBase) + [func (s SecureString) MarshalJSON() ([]byte, error)](#SecureString.MarshalJSON) + [func (s *SecureString) UnmarshalJSON(data []byte) error](#SecureString.UnmarshalJSON) * [type SelfDependencyTumblingWindowTriggerReference](#SelfDependencyTumblingWindowTriggerReference) * + [func (s *SelfDependencyTumblingWindowTriggerReference) GetDependencyReference() *DependencyReference](#SelfDependencyTumblingWindowTriggerReference.GetDependencyReference) + [func (s SelfDependencyTumblingWindowTriggerReference) MarshalJSON() ([]byte, error)](#SelfDependencyTumblingWindowTriggerReference.MarshalJSON) + [func (s *SelfDependencyTumblingWindowTriggerReference) UnmarshalJSON(data []byte) error](#SelfDependencyTumblingWindowTriggerReference.UnmarshalJSON) * [type SelfHostedIntegrationRuntime](#SelfHostedIntegrationRuntime) * + [func (s *SelfHostedIntegrationRuntime) GetIntegrationRuntime() *IntegrationRuntime](#SelfHostedIntegrationRuntime.GetIntegrationRuntime) + [func (s SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error)](#SelfHostedIntegrationRuntime.MarshalJSON) + [func (s *SelfHostedIntegrationRuntime) UnmarshalJSON(data []byte) error](#SelfHostedIntegrationRuntime.UnmarshalJSON) * [type SelfHostedIntegrationRuntimeNode](#SelfHostedIntegrationRuntimeNode) * + [func (s SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error)](#SelfHostedIntegrationRuntimeNode.MarshalJSON) + [func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error](#SelfHostedIntegrationRuntimeNode.UnmarshalJSON) * [type SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) * + [func PossibleSelfHostedIntegrationRuntimeNodeStatusValues() []SelfHostedIntegrationRuntimeNodeStatus](#PossibleSelfHostedIntegrationRuntimeNodeStatusValues) * [type SelfHostedIntegrationRuntimeStatus](#SelfHostedIntegrationRuntimeStatus) * + [func (s *SelfHostedIntegrationRuntimeStatus) GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus](#SelfHostedIntegrationRuntimeStatus.GetIntegrationRuntimeStatus) + [func (s SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error)](#SelfHostedIntegrationRuntimeStatus.MarshalJSON) + [func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error](#SelfHostedIntegrationRuntimeStatus.UnmarshalJSON) * [type SelfHostedIntegrationRuntimeStatusTypeProperties](#SelfHostedIntegrationRuntimeStatusTypeProperties) * + [func (s SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error)](#SelfHostedIntegrationRuntimeStatusTypeProperties.MarshalJSON) + [func (s *SelfHostedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byte) error](#SelfHostedIntegrationRuntimeStatusTypeProperties.UnmarshalJSON) * [type SelfHostedIntegrationRuntimeTypeProperties](#SelfHostedIntegrationRuntimeTypeProperties) * + [func (s SelfHostedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error)](#SelfHostedIntegrationRuntimeTypeProperties.MarshalJSON) + [func (s *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) error](#SelfHostedIntegrationRuntimeTypeProperties.UnmarshalJSON) * [type ServiceNowAuthenticationType](#ServiceNowAuthenticationType) * + [func PossibleServiceNowAuthenticationTypeValues() []ServiceNowAuthenticationType](#PossibleServiceNowAuthenticationTypeValues) * [type ServiceNowLinkedService](#ServiceNowLinkedService) * + [func (s *ServiceNowLinkedService) GetLinkedService() *LinkedService](#ServiceNowLinkedService.GetLinkedService) + [func (s ServiceNowLinkedService) MarshalJSON() ([]byte, error)](#ServiceNowLinkedService.MarshalJSON) + [func (s *ServiceNowLinkedService) UnmarshalJSON(data []byte) error](#ServiceNowLinkedService.UnmarshalJSON) * [type ServiceNowLinkedServiceTypeProperties](#ServiceNowLinkedServiceTypeProperties) * + [func (s ServiceNowLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#ServiceNowLinkedServiceTypeProperties.MarshalJSON) + [func (s *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#ServiceNowLinkedServiceTypeProperties.UnmarshalJSON) * [type ServiceNowObjectDataset](#ServiceNowObjectDataset) * + [func (s *ServiceNowObjectDataset) GetDataset() *Dataset](#ServiceNowObjectDataset.GetDataset) + [func (s ServiceNowObjectDataset) MarshalJSON() ([]byte, error)](#ServiceNowObjectDataset.MarshalJSON) + [func (s *ServiceNowObjectDataset) UnmarshalJSON(data []byte) error](#ServiceNowObjectDataset.UnmarshalJSON) * [type ServiceNowSource](#ServiceNowSource) * + [func (s *ServiceNowSource) GetCopySource() *CopySource](#ServiceNowSource.GetCopySource) + [func (s *ServiceNowSource) GetTabularSource() *TabularSource](#ServiceNowSource.GetTabularSource) + [func (s ServiceNowSource) MarshalJSON() ([]byte, error)](#ServiceNowSource.MarshalJSON) + [func (s *ServiceNowSource) UnmarshalJSON(data []byte) error](#ServiceNowSource.UnmarshalJSON) * [type ServicePrincipalCredential](#ServicePrincipalCredential) * + [func (s *ServicePrincipalCredential) GetCredential() *Credential](#ServicePrincipalCredential.GetCredential) + [func (s ServicePrincipalCredential) MarshalJSON() ([]byte, error)](#ServicePrincipalCredential.MarshalJSON) + [func (s *ServicePrincipalCredential) UnmarshalJSON(data []byte) error](#ServicePrincipalCredential.UnmarshalJSON) * [type ServicePrincipalCredentialType](#ServicePrincipalCredentialType) * + [func PossibleServicePrincipalCredentialTypeValues() []ServicePrincipalCredentialType](#PossibleServicePrincipalCredentialTypeValues) * [type ServicePrincipalCredentialTypeProperties](#ServicePrincipalCredentialTypeProperties) * + [func (s ServicePrincipalCredentialTypeProperties) MarshalJSON() ([]byte, error)](#ServicePrincipalCredentialTypeProperties.MarshalJSON) + [func (s *ServicePrincipalCredentialTypeProperties) UnmarshalJSON(data []byte) error](#ServicePrincipalCredentialTypeProperties.UnmarshalJSON) * [type SetVariableActivity](#SetVariableActivity) * + [func (s *SetVariableActivity) GetActivity() *Activity](#SetVariableActivity.GetActivity) + [func (s *SetVariableActivity) GetControlActivity() *ControlActivity](#SetVariableActivity.GetControlActivity) + [func (s SetVariableActivity) MarshalJSON() ([]byte, error)](#SetVariableActivity.MarshalJSON) + [func (s *SetVariableActivity) UnmarshalJSON(data []byte) error](#SetVariableActivity.UnmarshalJSON) * [type SetVariableActivityTypeProperties](#SetVariableActivityTypeProperties) * + [func (s SetVariableActivityTypeProperties) MarshalJSON() ([]byte, error)](#SetVariableActivityTypeProperties.MarshalJSON) + [func (s *SetVariableActivityTypeProperties) UnmarshalJSON(data []byte) error](#SetVariableActivityTypeProperties.UnmarshalJSON) * [type SftpAuthenticationType](#SftpAuthenticationType) * + [func PossibleSftpAuthenticationTypeValues() []SftpAuthenticationType](#PossibleSftpAuthenticationTypeValues) * [type SftpLocation](#SftpLocation) * + [func (s *SftpLocation) GetDatasetLocation() *DatasetLocation](#SftpLocation.GetDatasetLocation) + [func (s SftpLocation) MarshalJSON() ([]byte, error)](#SftpLocation.MarshalJSON) + [func (s *SftpLocation) UnmarshalJSON(data []byte) error](#SftpLocation.UnmarshalJSON) * [type SftpReadSettings](#SftpReadSettings) * + [func (s *SftpReadSettings) GetStoreReadSettings() *StoreReadSettings](#SftpReadSettings.GetStoreReadSettings) + [func (s SftpReadSettings) MarshalJSON() ([]byte, error)](#SftpReadSettings.MarshalJSON) + [func (s *SftpReadSettings) UnmarshalJSON(data []byte) error](#SftpReadSettings.UnmarshalJSON) * [type SftpServerLinkedService](#SftpServerLinkedService) * + [func (s *SftpServerLinkedService) GetLinkedService() *LinkedService](#SftpServerLinkedService.GetLinkedService) + [func (s SftpServerLinkedService) MarshalJSON() ([]byte, error)](#SftpServerLinkedService.MarshalJSON) + [func (s *SftpServerLinkedService) UnmarshalJSON(data []byte) error](#SftpServerLinkedService.UnmarshalJSON) * [type SftpServerLinkedServiceTypeProperties](#SftpServerLinkedServiceTypeProperties) * + [func (s SftpServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SftpServerLinkedServiceTypeProperties.MarshalJSON) + [func (s *SftpServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SftpServerLinkedServiceTypeProperties.UnmarshalJSON) * [type SftpWriteSettings](#SftpWriteSettings) * + [func (s *SftpWriteSettings) GetStoreWriteSettings() *StoreWriteSettings](#SftpWriteSettings.GetStoreWriteSettings) + [func (s SftpWriteSettings) MarshalJSON() ([]byte, error)](#SftpWriteSettings.MarshalJSON) + [func (s *SftpWriteSettings) UnmarshalJSON(data []byte) error](#SftpWriteSettings.UnmarshalJSON) * [type SharePointOnlineListDatasetTypeProperties](#SharePointOnlineListDatasetTypeProperties) * + [func (s SharePointOnlineListDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SharePointOnlineListDatasetTypeProperties.MarshalJSON) + [func (s *SharePointOnlineListDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SharePointOnlineListDatasetTypeProperties.UnmarshalJSON) * [type SharePointOnlineListLinkedService](#SharePointOnlineListLinkedService) * + [func (s *SharePointOnlineListLinkedService) GetLinkedService() *LinkedService](#SharePointOnlineListLinkedService.GetLinkedService) + [func (s SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error)](#SharePointOnlineListLinkedService.MarshalJSON) + [func (s *SharePointOnlineListLinkedService) UnmarshalJSON(data []byte) error](#SharePointOnlineListLinkedService.UnmarshalJSON) * [type SharePointOnlineListLinkedServiceTypeProperties](#SharePointOnlineListLinkedServiceTypeProperties) * + [func (s SharePointOnlineListLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SharePointOnlineListLinkedServiceTypeProperties.MarshalJSON) + [func (s *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SharePointOnlineListLinkedServiceTypeProperties.UnmarshalJSON) * [type SharePointOnlineListResourceDataset](#SharePointOnlineListResourceDataset) * + [func (s *SharePointOnlineListResourceDataset) GetDataset() *Dataset](#SharePointOnlineListResourceDataset.GetDataset) + [func (s SharePointOnlineListResourceDataset) MarshalJSON() ([]byte, error)](#SharePointOnlineListResourceDataset.MarshalJSON) + [func (s *SharePointOnlineListResourceDataset) UnmarshalJSON(data []byte) error](#SharePointOnlineListResourceDataset.UnmarshalJSON) * [type SharePointOnlineListSource](#SharePointOnlineListSource) * + [func (s *SharePointOnlineListSource) GetCopySource() *CopySource](#SharePointOnlineListSource.GetCopySource) + [func (s SharePointOnlineListSource) MarshalJSON() ([]byte, error)](#SharePointOnlineListSource.MarshalJSON) + [func (s *SharePointOnlineListSource) UnmarshalJSON(data []byte) error](#SharePointOnlineListSource.UnmarshalJSON) * [type ShopifyLinkedService](#ShopifyLinkedService) * + [func (s *ShopifyLinkedService) GetLinkedService() *LinkedService](#ShopifyLinkedService.GetLinkedService) + [func (s ShopifyLinkedService) MarshalJSON() ([]byte, error)](#ShopifyLinkedService.MarshalJSON) + [func (s *ShopifyLinkedService) UnmarshalJSON(data []byte) error](#ShopifyLinkedService.UnmarshalJSON) * [type ShopifyLinkedServiceTypeProperties](#ShopifyLinkedServiceTypeProperties) * + [func (s ShopifyLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#ShopifyLinkedServiceTypeProperties.MarshalJSON) + [func (s *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#ShopifyLinkedServiceTypeProperties.UnmarshalJSON) * [type ShopifyObjectDataset](#ShopifyObjectDataset) * + [func (s *ShopifyObjectDataset) GetDataset() *Dataset](#ShopifyObjectDataset.GetDataset) + [func (s ShopifyObjectDataset) MarshalJSON() ([]byte, error)](#ShopifyObjectDataset.MarshalJSON) + [func (s *ShopifyObjectDataset) UnmarshalJSON(data []byte) error](#ShopifyObjectDataset.UnmarshalJSON) * [type ShopifySource](#ShopifySource) * + [func (s *ShopifySource) GetCopySource() *CopySource](#ShopifySource.GetCopySource) + [func (s *ShopifySource) GetTabularSource() *TabularSource](#ShopifySource.GetTabularSource) + [func (s ShopifySource) MarshalJSON() ([]byte, error)](#ShopifySource.MarshalJSON) + [func (s *ShopifySource) UnmarshalJSON(data []byte) error](#ShopifySource.UnmarshalJSON) * [type SkipErrorFile](#SkipErrorFile) * + [func (s SkipErrorFile) MarshalJSON() ([]byte, error)](#SkipErrorFile.MarshalJSON) + [func (s *SkipErrorFile) UnmarshalJSON(data []byte) error](#SkipErrorFile.UnmarshalJSON) * [type SmartsheetLinkedService](#SmartsheetLinkedService) * + [func (s *SmartsheetLinkedService) GetLinkedService() *LinkedService](#SmartsheetLinkedService.GetLinkedService) + [func (s SmartsheetLinkedService) MarshalJSON() ([]byte, error)](#SmartsheetLinkedService.MarshalJSON) + [func (s *SmartsheetLinkedService) UnmarshalJSON(data []byte) error](#SmartsheetLinkedService.UnmarshalJSON) * [type SmartsheetLinkedServiceTypeProperties](#SmartsheetLinkedServiceTypeProperties) * + [func (s SmartsheetLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SmartsheetLinkedServiceTypeProperties.MarshalJSON) + [func (s *SmartsheetLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SmartsheetLinkedServiceTypeProperties.UnmarshalJSON) * [type SnowflakeDataset](#SnowflakeDataset) * + [func (s *SnowflakeDataset) GetDataset() *Dataset](#SnowflakeDataset.GetDataset) + [func (s SnowflakeDataset) MarshalJSON() ([]byte, error)](#SnowflakeDataset.MarshalJSON) + [func (s *SnowflakeDataset) UnmarshalJSON(data []byte) error](#SnowflakeDataset.UnmarshalJSON) * [type SnowflakeDatasetTypeProperties](#SnowflakeDatasetTypeProperties) * + [func (s SnowflakeDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SnowflakeDatasetTypeProperties.MarshalJSON) + [func (s *SnowflakeDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SnowflakeDatasetTypeProperties.UnmarshalJSON) * [type SnowflakeExportCopyCommand](#SnowflakeExportCopyCommand) * + [func (s *SnowflakeExportCopyCommand) GetExportSettings() *ExportSettings](#SnowflakeExportCopyCommand.GetExportSettings) + [func (s SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error)](#SnowflakeExportCopyCommand.MarshalJSON) + [func (s *SnowflakeExportCopyCommand) UnmarshalJSON(data []byte) error](#SnowflakeExportCopyCommand.UnmarshalJSON) * [type SnowflakeImportCopyCommand](#SnowflakeImportCopyCommand) * + [func (s *SnowflakeImportCopyCommand) GetImportSettings() *ImportSettings](#SnowflakeImportCopyCommand.GetImportSettings) + [func (s SnowflakeImportCopyCommand) MarshalJSON() ([]byte, error)](#SnowflakeImportCopyCommand.MarshalJSON) + [func (s *SnowflakeImportCopyCommand) UnmarshalJSON(data []byte) error](#SnowflakeImportCopyCommand.UnmarshalJSON) * [type SnowflakeLinkedService](#SnowflakeLinkedService) * + [func (s *SnowflakeLinkedService) GetLinkedService() *LinkedService](#SnowflakeLinkedService.GetLinkedService) + [func (s SnowflakeLinkedService) MarshalJSON() ([]byte, error)](#SnowflakeLinkedService.MarshalJSON) + [func (s *SnowflakeLinkedService) UnmarshalJSON(data []byte) error](#SnowflakeLinkedService.UnmarshalJSON) * [type SnowflakeLinkedServiceTypeProperties](#SnowflakeLinkedServiceTypeProperties) * + [func (s SnowflakeLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SnowflakeLinkedServiceTypeProperties.MarshalJSON) + [func (s *SnowflakeLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SnowflakeLinkedServiceTypeProperties.UnmarshalJSON) * [type SnowflakeSink](#SnowflakeSink) * + [func (s *SnowflakeSink) GetCopySink() *CopySink](#SnowflakeSink.GetCopySink) + [func (s SnowflakeSink) MarshalJSON() ([]byte, error)](#SnowflakeSink.MarshalJSON) + [func (s *SnowflakeSink) UnmarshalJSON(data []byte) error](#SnowflakeSink.UnmarshalJSON) * [type SnowflakeSource](#SnowflakeSource) * + [func (s *SnowflakeSource) GetCopySource() *CopySource](#SnowflakeSource.GetCopySource) + [func (s SnowflakeSource) MarshalJSON() ([]byte, error)](#SnowflakeSource.MarshalJSON) + [func (s *SnowflakeSource) UnmarshalJSON(data []byte) error](#SnowflakeSource.UnmarshalJSON) * [type SparkAuthenticationType](#SparkAuthenticationType) * + [func PossibleSparkAuthenticationTypeValues() []SparkAuthenticationType](#PossibleSparkAuthenticationTypeValues) * [type SparkDatasetTypeProperties](#SparkDatasetTypeProperties) * + [func (s SparkDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SparkDatasetTypeProperties.MarshalJSON) + [func (s *SparkDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SparkDatasetTypeProperties.UnmarshalJSON) * [type SparkJobReferenceType](#SparkJobReferenceType) * + [func PossibleSparkJobReferenceTypeValues() []SparkJobReferenceType](#PossibleSparkJobReferenceTypeValues) * [type SparkLinkedService](#SparkLinkedService) * + [func (s *SparkLinkedService) GetLinkedService() *LinkedService](#SparkLinkedService.GetLinkedService) + [func (s SparkLinkedService) MarshalJSON() ([]byte, error)](#SparkLinkedService.MarshalJSON) + [func (s *SparkLinkedService) UnmarshalJSON(data []byte) error](#SparkLinkedService.UnmarshalJSON) * [type SparkLinkedServiceTypeProperties](#SparkLinkedServiceTypeProperties) * + [func (s SparkLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SparkLinkedServiceTypeProperties.MarshalJSON) + [func (s *SparkLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SparkLinkedServiceTypeProperties.UnmarshalJSON) * [type SparkObjectDataset](#SparkObjectDataset) * + [func (s *SparkObjectDataset) GetDataset() *Dataset](#SparkObjectDataset.GetDataset) + [func (s SparkObjectDataset) MarshalJSON() ([]byte, error)](#SparkObjectDataset.MarshalJSON) + [func (s *SparkObjectDataset) UnmarshalJSON(data []byte) error](#SparkObjectDataset.UnmarshalJSON) * [type SparkServerType](#SparkServerType) * + [func PossibleSparkServerTypeValues() []SparkServerType](#PossibleSparkServerTypeValues) * [type SparkSource](#SparkSource) * + [func (s *SparkSource) GetCopySource() *CopySource](#SparkSource.GetCopySource) + [func (s *SparkSource) GetTabularSource() *TabularSource](#SparkSource.GetTabularSource) + [func (s SparkSource) MarshalJSON() ([]byte, error)](#SparkSource.MarshalJSON) + [func (s *SparkSource) UnmarshalJSON(data []byte) error](#SparkSource.UnmarshalJSON) * [type SparkThriftTransportProtocol](#SparkThriftTransportProtocol) * + [func PossibleSparkThriftTransportProtocolValues() []SparkThriftTransportProtocol](#PossibleSparkThriftTransportProtocolValues) * [type SquareLinkedService](#SquareLinkedService) * + [func (s *SquareLinkedService) GetLinkedService() *LinkedService](#SquareLinkedService.GetLinkedService) + [func (s SquareLinkedService) MarshalJSON() ([]byte, error)](#SquareLinkedService.MarshalJSON) + [func (s *SquareLinkedService) UnmarshalJSON(data []byte) error](#SquareLinkedService.UnmarshalJSON) * [type SquareLinkedServiceTypeProperties](#SquareLinkedServiceTypeProperties) * + [func (s SquareLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SquareLinkedServiceTypeProperties.MarshalJSON) + [func (s *SquareLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SquareLinkedServiceTypeProperties.UnmarshalJSON) * [type SquareObjectDataset](#SquareObjectDataset) * + [func (s *SquareObjectDataset) GetDataset() *Dataset](#SquareObjectDataset.GetDataset) + [func (s SquareObjectDataset) MarshalJSON() ([]byte, error)](#SquareObjectDataset.MarshalJSON) + [func (s *SquareObjectDataset) UnmarshalJSON(data []byte) error](#SquareObjectDataset.UnmarshalJSON) * [type SquareSource](#SquareSource) * + [func (s *SquareSource) GetCopySource() *CopySource](#SquareSource.GetCopySource) + [func (s *SquareSource) GetTabularSource() *TabularSource](#SquareSource.GetTabularSource) + [func (s SquareSource) MarshalJSON() ([]byte, error)](#SquareSource.MarshalJSON) + [func (s *SquareSource) UnmarshalJSON(data []byte) error](#SquareSource.UnmarshalJSON) * [type SsisEnvironment](#SsisEnvironment) * + [func (s *SsisEnvironment) GetSsisObjectMetadata() *SsisObjectMetadata](#SsisEnvironment.GetSsisObjectMetadata) + [func (s SsisEnvironment) MarshalJSON() ([]byte, error)](#SsisEnvironment.MarshalJSON) + [func (s *SsisEnvironment) UnmarshalJSON(data []byte) error](#SsisEnvironment.UnmarshalJSON) * [type SsisEnvironmentReference](#SsisEnvironmentReference) * + [func (s SsisEnvironmentReference) MarshalJSON() ([]byte, error)](#SsisEnvironmentReference.MarshalJSON) + [func (s *SsisEnvironmentReference) UnmarshalJSON(data []byte) error](#SsisEnvironmentReference.UnmarshalJSON) * [type SsisFolder](#SsisFolder) * + [func (s *SsisFolder) GetSsisObjectMetadata() *SsisObjectMetadata](#SsisFolder.GetSsisObjectMetadata) + [func (s SsisFolder) MarshalJSON() ([]byte, error)](#SsisFolder.MarshalJSON) + [func (s *SsisFolder) UnmarshalJSON(data []byte) error](#SsisFolder.UnmarshalJSON) * [type SsisLogLocationType](#SsisLogLocationType) * + [func PossibleSsisLogLocationTypeValues() []SsisLogLocationType](#PossibleSsisLogLocationTypeValues) * [type SsisObjectMetadata](#SsisObjectMetadata) * + [func (s *SsisObjectMetadata) GetSsisObjectMetadata() *SsisObjectMetadata](#SsisObjectMetadata.GetSsisObjectMetadata) + [func (s SsisObjectMetadata) MarshalJSON() ([]byte, error)](#SsisObjectMetadata.MarshalJSON) + [func (s *SsisObjectMetadata) UnmarshalJSON(data []byte) error](#SsisObjectMetadata.UnmarshalJSON) * [type SsisObjectMetadataClassification](#SsisObjectMetadataClassification) * [type SsisObjectMetadataListResponse](#SsisObjectMetadataListResponse) * + [func (s SsisObjectMetadataListResponse) MarshalJSON() ([]byte, error)](#SsisObjectMetadataListResponse.MarshalJSON) + [func (s *SsisObjectMetadataListResponse) UnmarshalJSON(data []byte) error](#SsisObjectMetadataListResponse.UnmarshalJSON) * [type SsisObjectMetadataStatusResponse](#SsisObjectMetadataStatusResponse) * + [func (s SsisObjectMetadataStatusResponse) MarshalJSON() ([]byte, error)](#SsisObjectMetadataStatusResponse.MarshalJSON) + [func (s *SsisObjectMetadataStatusResponse) UnmarshalJSON(data []byte) error](#SsisObjectMetadataStatusResponse.UnmarshalJSON) * [type SsisObjectMetadataType](#SsisObjectMetadataType) * + [func PossibleSsisObjectMetadataTypeValues() []SsisObjectMetadataType](#PossibleSsisObjectMetadataTypeValues) * [type SsisPackage](#SsisPackage) * + [func (s *SsisPackage) GetSsisObjectMetadata() *SsisObjectMetadata](#SsisPackage.GetSsisObjectMetadata) + [func (s SsisPackage) MarshalJSON() ([]byte, error)](#SsisPackage.MarshalJSON) + [func (s *SsisPackage) UnmarshalJSON(data []byte) error](#SsisPackage.UnmarshalJSON) * [type SsisPackageLocationType](#SsisPackageLocationType) * + [func PossibleSsisPackageLocationTypeValues() []SsisPackageLocationType](#PossibleSsisPackageLocationTypeValues) * [type SsisParameter](#SsisParameter) * + [func (s SsisParameter) MarshalJSON() ([]byte, error)](#SsisParameter.MarshalJSON) + [func (s *SsisParameter) UnmarshalJSON(data []byte) error](#SsisParameter.UnmarshalJSON) * [type SsisProject](#SsisProject) * + [func (s *SsisProject) GetSsisObjectMetadata() *SsisObjectMetadata](#SsisProject.GetSsisObjectMetadata) + [func (s SsisProject) MarshalJSON() ([]byte, error)](#SsisProject.MarshalJSON) + [func (s *SsisProject) UnmarshalJSON(data []byte) error](#SsisProject.UnmarshalJSON) * [type SsisVariable](#SsisVariable) * + [func (s SsisVariable) MarshalJSON() ([]byte, error)](#SsisVariable.MarshalJSON) + [func (s *SsisVariable) UnmarshalJSON(data []byte) error](#SsisVariable.UnmarshalJSON) * [type StagingSettings](#StagingSettings) * + [func (s StagingSettings) MarshalJSON() ([]byte, error)](#StagingSettings.MarshalJSON) + [func (s *StagingSettings) UnmarshalJSON(data []byte) error](#StagingSettings.UnmarshalJSON) * [type StoreReadSettings](#StoreReadSettings) * + [func (s *StoreReadSettings) GetStoreReadSettings() *StoreReadSettings](#StoreReadSettings.GetStoreReadSettings) + [func (s StoreReadSettings) MarshalJSON() ([]byte, error)](#StoreReadSettings.MarshalJSON) + [func (s *StoreReadSettings) UnmarshalJSON(data []byte) error](#StoreReadSettings.UnmarshalJSON) * [type StoreReadSettingsClassification](#StoreReadSettingsClassification) * [type StoreWriteSettings](#StoreWriteSettings) * + [func (s *StoreWriteSettings) GetStoreWriteSettings() *StoreWriteSettings](#StoreWriteSettings.GetStoreWriteSettings) + [func (s StoreWriteSettings) MarshalJSON() ([]byte, error)](#StoreWriteSettings.MarshalJSON) + [func (s *StoreWriteSettings) UnmarshalJSON(data []byte) error](#StoreWriteSettings.UnmarshalJSON) * [type StoreWriteSettingsClassification](#StoreWriteSettingsClassification) * [type StoredProcedureParameter](#StoredProcedureParameter) * + [func (s StoredProcedureParameter) MarshalJSON() ([]byte, error)](#StoredProcedureParameter.MarshalJSON) + [func (s *StoredProcedureParameter) UnmarshalJSON(data []byte) error](#StoredProcedureParameter.UnmarshalJSON) * [type StoredProcedureParameterType](#StoredProcedureParameterType) * + [func PossibleStoredProcedureParameterTypeValues() []StoredProcedureParameterType](#PossibleStoredProcedureParameterTypeValues) * [type SubResource](#SubResource) * + [func (s SubResource) MarshalJSON() ([]byte, error)](#SubResource.MarshalJSON) + [func (s *SubResource) UnmarshalJSON(data []byte) error](#SubResource.UnmarshalJSON) * [type SubResourceDebugResource](#SubResourceDebugResource) * + [func (s SubResourceDebugResource) MarshalJSON() ([]byte, error)](#SubResourceDebugResource.MarshalJSON) + [func (s *SubResourceDebugResource) UnmarshalJSON(data []byte) error](#SubResourceDebugResource.UnmarshalJSON) * [type SwitchActivity](#SwitchActivity) * + [func (s *SwitchActivity) GetActivity() *Activity](#SwitchActivity.GetActivity) + [func (s *SwitchActivity) GetControlActivity() *ControlActivity](#SwitchActivity.GetControlActivity) + [func (s SwitchActivity) MarshalJSON() ([]byte, error)](#SwitchActivity.MarshalJSON) + [func (s *SwitchActivity) UnmarshalJSON(data []byte) error](#SwitchActivity.UnmarshalJSON) * [type SwitchActivityTypeProperties](#SwitchActivityTypeProperties) * + [func (s SwitchActivityTypeProperties) MarshalJSON() ([]byte, error)](#SwitchActivityTypeProperties.MarshalJSON) + [func (s *SwitchActivityTypeProperties) UnmarshalJSON(data []byte) error](#SwitchActivityTypeProperties.UnmarshalJSON) * [type SwitchCase](#SwitchCase) * + [func (s SwitchCase) MarshalJSON() ([]byte, error)](#SwitchCase.MarshalJSON) + [func (s *SwitchCase) UnmarshalJSON(data []byte) error](#SwitchCase.UnmarshalJSON) * [type SybaseAuthenticationType](#SybaseAuthenticationType) * + [func PossibleSybaseAuthenticationTypeValues() []SybaseAuthenticationType](#PossibleSybaseAuthenticationTypeValues) * [type SybaseLinkedService](#SybaseLinkedService) * + [func (s *SybaseLinkedService) GetLinkedService() *LinkedService](#SybaseLinkedService.GetLinkedService) + [func (s SybaseLinkedService) MarshalJSON() ([]byte, error)](#SybaseLinkedService.MarshalJSON) + [func (s *SybaseLinkedService) UnmarshalJSON(data []byte) error](#SybaseLinkedService.UnmarshalJSON) * [type SybaseLinkedServiceTypeProperties](#SybaseLinkedServiceTypeProperties) * + [func (s SybaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#SybaseLinkedServiceTypeProperties.MarshalJSON) + [func (s *SybaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#SybaseLinkedServiceTypeProperties.UnmarshalJSON) * [type SybaseSource](#SybaseSource) * + [func (s *SybaseSource) GetCopySource() *CopySource](#SybaseSource.GetCopySource) + [func (s *SybaseSource) GetTabularSource() *TabularSource](#SybaseSource.GetTabularSource) + [func (s SybaseSource) MarshalJSON() ([]byte, error)](#SybaseSource.MarshalJSON) + [func (s *SybaseSource) UnmarshalJSON(data []byte) error](#SybaseSource.UnmarshalJSON) * [type SybaseTableDataset](#SybaseTableDataset) * + [func (s *SybaseTableDataset) GetDataset() *Dataset](#SybaseTableDataset.GetDataset) + [func (s SybaseTableDataset) MarshalJSON() ([]byte, error)](#SybaseTableDataset.MarshalJSON) + [func (s *SybaseTableDataset) UnmarshalJSON(data []byte) error](#SybaseTableDataset.UnmarshalJSON) * [type SybaseTableDatasetTypeProperties](#SybaseTableDatasetTypeProperties) * + [func (s SybaseTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#SybaseTableDatasetTypeProperties.MarshalJSON) + [func (s *SybaseTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#SybaseTableDatasetTypeProperties.UnmarshalJSON) * [type SynapseNotebookActivity](#SynapseNotebookActivity) * + [func (s *SynapseNotebookActivity) GetActivity() *Activity](#SynapseNotebookActivity.GetActivity) + [func (s *SynapseNotebookActivity) GetExecutionActivity() *ExecutionActivity](#SynapseNotebookActivity.GetExecutionActivity) + [func (s SynapseNotebookActivity) MarshalJSON() ([]byte, error)](#SynapseNotebookActivity.MarshalJSON) + [func (s *SynapseNotebookActivity) UnmarshalJSON(data []byte) error](#SynapseNotebookActivity.UnmarshalJSON) * [type SynapseNotebookActivityTypeProperties](#SynapseNotebookActivityTypeProperties) * + [func (s SynapseNotebookActivityTypeProperties) MarshalJSON() ([]byte, error)](#SynapseNotebookActivityTypeProperties.MarshalJSON) + [func (s *SynapseNotebookActivityTypeProperties) UnmarshalJSON(data []byte) error](#SynapseNotebookActivityTypeProperties.UnmarshalJSON) * [type SynapseNotebookReference](#SynapseNotebookReference) * + [func (s SynapseNotebookReference) MarshalJSON() ([]byte, error)](#SynapseNotebookReference.MarshalJSON) + [func (s *SynapseNotebookReference) UnmarshalJSON(data []byte) error](#SynapseNotebookReference.UnmarshalJSON) * [type SynapseSparkJobActivityTypeProperties](#SynapseSparkJobActivityTypeProperties) * + [func (s SynapseSparkJobActivityTypeProperties) MarshalJSON() ([]byte, error)](#SynapseSparkJobActivityTypeProperties.MarshalJSON) + [func (s *SynapseSparkJobActivityTypeProperties) UnmarshalJSON(data []byte) error](#SynapseSparkJobActivityTypeProperties.UnmarshalJSON) * [type SynapseSparkJobDefinitionActivity](#SynapseSparkJobDefinitionActivity) * + [func (s *SynapseSparkJobDefinitionActivity) GetActivity() *Activity](#SynapseSparkJobDefinitionActivity.GetActivity) + [func (s *SynapseSparkJobDefinitionActivity) GetExecutionActivity() *ExecutionActivity](#SynapseSparkJobDefinitionActivity.GetExecutionActivity) + [func (s SynapseSparkJobDefinitionActivity) MarshalJSON() ([]byte, error)](#SynapseSparkJobDefinitionActivity.MarshalJSON) + [func (s *SynapseSparkJobDefinitionActivity) UnmarshalJSON(data []byte) error](#SynapseSparkJobDefinitionActivity.UnmarshalJSON) * [type SynapseSparkJobReference](#SynapseSparkJobReference) * + [func (s SynapseSparkJobReference) MarshalJSON() ([]byte, error)](#SynapseSparkJobReference.MarshalJSON) + [func (s *SynapseSparkJobReference) UnmarshalJSON(data []byte) error](#SynapseSparkJobReference.UnmarshalJSON) * [type TabularSource](#TabularSource) * + [func (t *TabularSource) GetCopySource() *CopySource](#TabularSource.GetCopySource) + [func (t *TabularSource) GetTabularSource() *TabularSource](#TabularSource.GetTabularSource) + [func (t TabularSource) MarshalJSON() ([]byte, error)](#TabularSource.MarshalJSON) + [func (t *TabularSource) UnmarshalJSON(data []byte) error](#TabularSource.UnmarshalJSON) * [type TabularSourceClassification](#TabularSourceClassification) * [type TabularTranslator](#TabularTranslator) * + [func (t *TabularTranslator) GetCopyTranslator() *CopyTranslator](#TabularTranslator.GetCopyTranslator) + [func (t TabularTranslator) MarshalJSON() ([]byte, error)](#TabularTranslator.MarshalJSON) + [func (t *TabularTranslator) UnmarshalJSON(data []byte) error](#TabularTranslator.UnmarshalJSON) * [type TarGZipReadSettings](#TarGZipReadSettings) * + [func (t *TarGZipReadSettings) GetCompressionReadSettings() *CompressionReadSettings](#TarGZipReadSettings.GetCompressionReadSettings) + [func (t TarGZipReadSettings) MarshalJSON() ([]byte, error)](#TarGZipReadSettings.MarshalJSON) + [func (t *TarGZipReadSettings) UnmarshalJSON(data []byte) error](#TarGZipReadSettings.UnmarshalJSON) * [type TarReadSettings](#TarReadSettings) * + [func (t *TarReadSettings) GetCompressionReadSettings() *CompressionReadSettings](#TarReadSettings.GetCompressionReadSettings) + [func (t TarReadSettings) MarshalJSON() ([]byte, error)](#TarReadSettings.MarshalJSON) + [func (t *TarReadSettings) UnmarshalJSON(data []byte) error](#TarReadSettings.UnmarshalJSON) * [type TeamDeskAuthenticationType](#TeamDeskAuthenticationType) * + [func PossibleTeamDeskAuthenticationTypeValues() []TeamDeskAuthenticationType](#PossibleTeamDeskAuthenticationTypeValues) * [type TeamDeskLinkedService](#TeamDeskLinkedService) * + [func (t *TeamDeskLinkedService) GetLinkedService() *LinkedService](#TeamDeskLinkedService.GetLinkedService) + [func (t TeamDeskLinkedService) MarshalJSON() ([]byte, error)](#TeamDeskLinkedService.MarshalJSON) + [func (t *TeamDeskLinkedService) UnmarshalJSON(data []byte) error](#TeamDeskLinkedService.UnmarshalJSON) * [type TeamDeskLinkedServiceTypeProperties](#TeamDeskLinkedServiceTypeProperties) * + [func (t TeamDeskLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#TeamDeskLinkedServiceTypeProperties.MarshalJSON) + [func (t *TeamDeskLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#TeamDeskLinkedServiceTypeProperties.UnmarshalJSON) * [type TeradataAuthenticationType](#TeradataAuthenticationType) * + [func PossibleTeradataAuthenticationTypeValues() []TeradataAuthenticationType](#PossibleTeradataAuthenticationTypeValues) * [type TeradataLinkedService](#TeradataLinkedService) * + [func (t *TeradataLinkedService) GetLinkedService() *LinkedService](#TeradataLinkedService.GetLinkedService) + [func (t TeradataLinkedService) MarshalJSON() ([]byte, error)](#TeradataLinkedService.MarshalJSON) + [func (t *TeradataLinkedService) UnmarshalJSON(data []byte) error](#TeradataLinkedService.UnmarshalJSON) * [type TeradataLinkedServiceTypeProperties](#TeradataLinkedServiceTypeProperties) * + [func (t TeradataLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#TeradataLinkedServiceTypeProperties.MarshalJSON) + [func (t *TeradataLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#TeradataLinkedServiceTypeProperties.UnmarshalJSON) * [type TeradataPartitionOption](#TeradataPartitionOption) * + [func PossibleTeradataPartitionOptionValues() []TeradataPartitionOption](#PossibleTeradataPartitionOptionValues) * [type TeradataPartitionSettings](#TeradataPartitionSettings) * + [func (t TeradataPartitionSettings) MarshalJSON() ([]byte, error)](#TeradataPartitionSettings.MarshalJSON) + [func (t *TeradataPartitionSettings) UnmarshalJSON(data []byte) error](#TeradataPartitionSettings.UnmarshalJSON) * [type TeradataSource](#TeradataSource) * + [func (t *TeradataSource) GetCopySource() *CopySource](#TeradataSource.GetCopySource) + [func (t *TeradataSource) GetTabularSource() *TabularSource](#TeradataSource.GetTabularSource) + [func (t TeradataSource) MarshalJSON() ([]byte, error)](#TeradataSource.MarshalJSON) + [func (t *TeradataSource) UnmarshalJSON(data []byte) error](#TeradataSource.UnmarshalJSON) * [type TeradataTableDataset](#TeradataTableDataset) * + [func (t *TeradataTableDataset) GetDataset() *Dataset](#TeradataTableDataset.GetDataset) + [func (t TeradataTableDataset) MarshalJSON() ([]byte, error)](#TeradataTableDataset.MarshalJSON) + [func (t *TeradataTableDataset) UnmarshalJSON(data []byte) error](#TeradataTableDataset.UnmarshalJSON) * [type TeradataTableDatasetTypeProperties](#TeradataTableDatasetTypeProperties) * + [func (t TeradataTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#TeradataTableDatasetTypeProperties.MarshalJSON) + [func (t *TeradataTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#TeradataTableDatasetTypeProperties.UnmarshalJSON) * [type TextFormat](#TextFormat) * + [func (t *TextFormat) GetDatasetStorageFormat() *DatasetStorageFormat](#TextFormat.GetDatasetStorageFormat) + [func (t TextFormat) MarshalJSON() ([]byte, error)](#TextFormat.MarshalJSON) + [func (t *TextFormat) UnmarshalJSON(data []byte) error](#TextFormat.UnmarshalJSON) * [type Transformation](#Transformation) * + [func (t Transformation) MarshalJSON() ([]byte, error)](#Transformation.MarshalJSON) + [func (t *Transformation) UnmarshalJSON(data []byte) error](#Transformation.UnmarshalJSON) * [type Trigger](#Trigger) * + [func (t *Trigger) GetTrigger() *Trigger](#Trigger.GetTrigger) + [func (t Trigger) MarshalJSON() ([]byte, error)](#Trigger.MarshalJSON) + [func (t *Trigger) UnmarshalJSON(data []byte) error](#Trigger.UnmarshalJSON) * [type TriggerClassification](#TriggerClassification) * [type TriggerDependencyReference](#TriggerDependencyReference) * + [func (t *TriggerDependencyReference) GetDependencyReference() *DependencyReference](#TriggerDependencyReference.GetDependencyReference) + [func (t *TriggerDependencyReference) GetTriggerDependencyReference() *TriggerDependencyReference](#TriggerDependencyReference.GetTriggerDependencyReference) + [func (t TriggerDependencyReference) MarshalJSON() ([]byte, error)](#TriggerDependencyReference.MarshalJSON) + [func (t *TriggerDependencyReference) UnmarshalJSON(data []byte) error](#TriggerDependencyReference.UnmarshalJSON) * [type TriggerDependencyReferenceClassification](#TriggerDependencyReferenceClassification) * [type TriggerFilterParameters](#TriggerFilterParameters) * + [func (t TriggerFilterParameters) MarshalJSON() ([]byte, error)](#TriggerFilterParameters.MarshalJSON) + [func (t *TriggerFilterParameters) UnmarshalJSON(data []byte) error](#TriggerFilterParameters.UnmarshalJSON) * [type TriggerListResponse](#TriggerListResponse) * + [func (t TriggerListResponse) MarshalJSON() ([]byte, error)](#TriggerListResponse.MarshalJSON) + [func (t *TriggerListResponse) UnmarshalJSON(data []byte) error](#TriggerListResponse.UnmarshalJSON) * [type TriggerPipelineReference](#TriggerPipelineReference) * + [func (t TriggerPipelineReference) MarshalJSON() ([]byte, error)](#TriggerPipelineReference.MarshalJSON) + [func (t *TriggerPipelineReference) UnmarshalJSON(data []byte) error](#TriggerPipelineReference.UnmarshalJSON) * [type TriggerQueryResponse](#TriggerQueryResponse) * + [func (t TriggerQueryResponse) MarshalJSON() ([]byte, error)](#TriggerQueryResponse.MarshalJSON) + [func (t *TriggerQueryResponse) UnmarshalJSON(data []byte) error](#TriggerQueryResponse.UnmarshalJSON) * [type TriggerReference](#TriggerReference) * + [func (t TriggerReference) MarshalJSON() ([]byte, error)](#TriggerReference.MarshalJSON) + [func (t *TriggerReference) UnmarshalJSON(data []byte) error](#TriggerReference.UnmarshalJSON) * [type TriggerReferenceType](#TriggerReferenceType) * + [func PossibleTriggerReferenceTypeValues() []TriggerReferenceType](#PossibleTriggerReferenceTypeValues) * [type TriggerResource](#TriggerResource) * + [func (t TriggerResource) MarshalJSON() ([]byte, error)](#TriggerResource.MarshalJSON) + [func (t *TriggerResource) UnmarshalJSON(data []byte) error](#TriggerResource.UnmarshalJSON) * [type TriggerRun](#TriggerRun) * + [func (t TriggerRun) MarshalJSON() ([]byte, error)](#TriggerRun.MarshalJSON) + [func (t *TriggerRun) UnmarshalJSON(data []byte) error](#TriggerRun.UnmarshalJSON) * [type TriggerRunStatus](#TriggerRunStatus) * + [func PossibleTriggerRunStatusValues() []TriggerRunStatus](#PossibleTriggerRunStatusValues) * [type TriggerRunsClient](#TriggerRunsClient) * + [func NewTriggerRunsClient(subscriptionID string, credential azcore.TokenCredential, ...) (*TriggerRunsClient, error)](#NewTriggerRunsClient) * + [func (client *TriggerRunsClient) Cancel(ctx context.Context, resourceGroupName string, factoryName string, ...) (TriggerRunsClientCancelResponse, error)](#TriggerRunsClient.Cancel) + [func (client *TriggerRunsClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, ...) (TriggerRunsClientQueryByFactoryResponse, error)](#TriggerRunsClient.QueryByFactory) + [func (client *TriggerRunsClient) Rerun(ctx context.Context, resourceGroupName string, factoryName string, ...) (TriggerRunsClientRerunResponse, error)](#TriggerRunsClient.Rerun) * [type TriggerRunsClientCancelOptions](#TriggerRunsClientCancelOptions) * [type TriggerRunsClientCancelResponse](#TriggerRunsClientCancelResponse) * [type TriggerRunsClientQueryByFactoryOptions](#TriggerRunsClientQueryByFactoryOptions) * [type TriggerRunsClientQueryByFactoryResponse](#TriggerRunsClientQueryByFactoryResponse) * [type TriggerRunsClientRerunOptions](#TriggerRunsClientRerunOptions) * [type TriggerRunsClientRerunResponse](#TriggerRunsClientRerunResponse) * [type TriggerRunsQueryResponse](#TriggerRunsQueryResponse) * + [func (t TriggerRunsQueryResponse) MarshalJSON() ([]byte, error)](#TriggerRunsQueryResponse.MarshalJSON) + [func (t *TriggerRunsQueryResponse) UnmarshalJSON(data []byte) error](#TriggerRunsQueryResponse.UnmarshalJSON) * [type TriggerRuntimeState](#TriggerRuntimeState) * + [func PossibleTriggerRuntimeStateValues() []TriggerRuntimeState](#PossibleTriggerRuntimeStateValues) * [type TriggerSubscriptionOperationStatus](#TriggerSubscriptionOperationStatus) * + [func (t TriggerSubscriptionOperationStatus) MarshalJSON() ([]byte, error)](#TriggerSubscriptionOperationStatus.MarshalJSON) + [func (t *TriggerSubscriptionOperationStatus) UnmarshalJSON(data []byte) error](#TriggerSubscriptionOperationStatus.UnmarshalJSON) * [type TriggersClient](#TriggersClient) * + [func NewTriggersClient(subscriptionID string, credential azcore.TokenCredential, ...) (*TriggersClient, error)](#NewTriggersClient) * + [func (client *TriggersClient) BeginStart(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[TriggersClientStartResponse], error)](#TriggersClient.BeginStart) + [func (client *TriggersClient) BeginStop(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[TriggersClientStopResponse], error)](#TriggersClient.BeginStop) + [func (client *TriggersClient) BeginSubscribeToEvents(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[TriggersClientSubscribeToEventsResponse], error)](#TriggersClient.BeginSubscribeToEvents) + [func (client *TriggersClient) BeginUnsubscribeFromEvents(ctx context.Context, resourceGroupName string, factoryName string, ...) (*runtime.Poller[TriggersClientUnsubscribeFromEventsResponse], error)](#TriggersClient.BeginUnsubscribeFromEvents) + [func (client *TriggersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, ...) (TriggersClientCreateOrUpdateResponse, error)](#TriggersClient.CreateOrUpdate) + [func (client *TriggersClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, ...) (TriggersClientDeleteResponse, error)](#TriggersClient.Delete) + [func (client *TriggersClient) Get(ctx context.Context, resourceGroupName string, factoryName string, ...) (TriggersClientGetResponse, error)](#TriggersClient.Get) + [func (client *TriggersClient) GetEventSubscriptionStatus(ctx context.Context, resourceGroupName string, factoryName string, ...) (TriggersClientGetEventSubscriptionStatusResponse, error)](#TriggersClient.GetEventSubscriptionStatus) + [func (client *TriggersClient) NewListByFactoryPager(resourceGroupName string, factoryName string, ...) *runtime.Pager[TriggersClientListByFactoryResponse]](#TriggersClient.NewListByFactoryPager) + [func (client *TriggersClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, ...) (TriggersClientQueryByFactoryResponse, error)](#TriggersClient.QueryByFactory) * [type TriggersClientBeginStartOptions](#TriggersClientBeginStartOptions) * [type TriggersClientBeginStopOptions](#TriggersClientBeginStopOptions) * [type TriggersClientBeginSubscribeToEventsOptions](#TriggersClientBeginSubscribeToEventsOptions) * [type TriggersClientBeginUnsubscribeFromEventsOptions](#TriggersClientBeginUnsubscribeFromEventsOptions) * [type TriggersClientCreateOrUpdateOptions](#TriggersClientCreateOrUpdateOptions) * [type TriggersClientCreateOrUpdateResponse](#TriggersClientCreateOrUpdateResponse) * [type TriggersClientDeleteOptions](#TriggersClientDeleteOptions) * [type TriggersClientDeleteResponse](#TriggersClientDeleteResponse) * [type TriggersClientGetEventSubscriptionStatusOptions](#TriggersClientGetEventSubscriptionStatusOptions) * [type TriggersClientGetEventSubscriptionStatusResponse](#TriggersClientGetEventSubscriptionStatusResponse) * [type TriggersClientGetOptions](#TriggersClientGetOptions) * [type TriggersClientGetResponse](#TriggersClientGetResponse) * [type TriggersClientListByFactoryOptions](#TriggersClientListByFactoryOptions) * [type TriggersClientListByFactoryResponse](#TriggersClientListByFactoryResponse) * [type TriggersClientQueryByFactoryOptions](#TriggersClientQueryByFactoryOptions) * [type TriggersClientQueryByFactoryResponse](#TriggersClientQueryByFactoryResponse) * [type TriggersClientStartResponse](#TriggersClientStartResponse) * [type TriggersClientStopResponse](#TriggersClientStopResponse) * [type TriggersClientSubscribeToEventsResponse](#TriggersClientSubscribeToEventsResponse) * [type TriggersClientUnsubscribeFromEventsResponse](#TriggersClientUnsubscribeFromEventsResponse) * [type TumblingWindowFrequency](#TumblingWindowFrequency) * + [func PossibleTumblingWindowFrequencyValues() []TumblingWindowFrequency](#PossibleTumblingWindowFrequencyValues) * [type TumblingWindowTrigger](#TumblingWindowTrigger) * + [func (t *TumblingWindowTrigger) GetTrigger() *Trigger](#TumblingWindowTrigger.GetTrigger) + [func (t TumblingWindowTrigger) MarshalJSON() ([]byte, error)](#TumblingWindowTrigger.MarshalJSON) + [func (t *TumblingWindowTrigger) UnmarshalJSON(data []byte) error](#TumblingWindowTrigger.UnmarshalJSON) * [type TumblingWindowTriggerDependencyReference](#TumblingWindowTriggerDependencyReference) * + [func (t *TumblingWindowTriggerDependencyReference) GetDependencyReference() *DependencyReference](#TumblingWindowTriggerDependencyReference.GetDependencyReference) + [func (t *TumblingWindowTriggerDependencyReference) GetTriggerDependencyReference() *TriggerDependencyReference](#TumblingWindowTriggerDependencyReference.GetTriggerDependencyReference) + [func (t TumblingWindowTriggerDependencyReference) MarshalJSON() ([]byte, error)](#TumblingWindowTriggerDependencyReference.MarshalJSON) + [func (t *TumblingWindowTriggerDependencyReference) UnmarshalJSON(data []byte) error](#TumblingWindowTriggerDependencyReference.UnmarshalJSON) * [type TumblingWindowTriggerTypeProperties](#TumblingWindowTriggerTypeProperties) * + [func (t TumblingWindowTriggerTypeProperties) MarshalJSON() ([]byte, error)](#TumblingWindowTriggerTypeProperties.MarshalJSON) + [func (t *TumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) error](#TumblingWindowTriggerTypeProperties.UnmarshalJSON) * [type TwilioLinkedService](#TwilioLinkedService) * + [func (t *TwilioLinkedService) GetLinkedService() *LinkedService](#TwilioLinkedService.GetLinkedService) + [func (t TwilioLinkedService) MarshalJSON() ([]byte, error)](#TwilioLinkedService.MarshalJSON) + [func (t *TwilioLinkedService) UnmarshalJSON(data []byte) error](#TwilioLinkedService.UnmarshalJSON) * [type TwilioLinkedServiceTypeProperties](#TwilioLinkedServiceTypeProperties) * + [func (t TwilioLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#TwilioLinkedServiceTypeProperties.MarshalJSON) + [func (t *TwilioLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#TwilioLinkedServiceTypeProperties.UnmarshalJSON) * [type TypeConversionSettings](#TypeConversionSettings) * + [func (t TypeConversionSettings) MarshalJSON() ([]byte, error)](#TypeConversionSettings.MarshalJSON) + [func (t *TypeConversionSettings) UnmarshalJSON(data []byte) error](#TypeConversionSettings.UnmarshalJSON) * [type UntilActivity](#UntilActivity) * + [func (u *UntilActivity) GetActivity() *Activity](#UntilActivity.GetActivity) + [func (u *UntilActivity) GetControlActivity() *ControlActivity](#UntilActivity.GetControlActivity) + [func (u UntilActivity) MarshalJSON() ([]byte, error)](#UntilActivity.MarshalJSON) + [func (u *UntilActivity) UnmarshalJSON(data []byte) error](#UntilActivity.UnmarshalJSON) * [type UntilActivityTypeProperties](#UntilActivityTypeProperties) * + [func (u UntilActivityTypeProperties) MarshalJSON() ([]byte, error)](#UntilActivityTypeProperties.MarshalJSON) + [func (u *UntilActivityTypeProperties) UnmarshalJSON(data []byte) error](#UntilActivityTypeProperties.UnmarshalJSON) * [type UpdateIntegrationRuntimeNodeRequest](#UpdateIntegrationRuntimeNodeRequest) * + [func (u UpdateIntegrationRuntimeNodeRequest) MarshalJSON() ([]byte, error)](#UpdateIntegrationRuntimeNodeRequest.MarshalJSON) + [func (u *UpdateIntegrationRuntimeNodeRequest) UnmarshalJSON(data []byte) error](#UpdateIntegrationRuntimeNodeRequest.UnmarshalJSON) * [type UpdateIntegrationRuntimeRequest](#UpdateIntegrationRuntimeRequest) * + [func (u UpdateIntegrationRuntimeRequest) MarshalJSON() ([]byte, error)](#UpdateIntegrationRuntimeRequest.MarshalJSON) + [func (u *UpdateIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error](#UpdateIntegrationRuntimeRequest.UnmarshalJSON) * [type UserAccessPolicy](#UserAccessPolicy) * + [func (u UserAccessPolicy) MarshalJSON() ([]byte, error)](#UserAccessPolicy.MarshalJSON) + [func (u *UserAccessPolicy) UnmarshalJSON(data []byte) error](#UserAccessPolicy.UnmarshalJSON) * [type UserProperty](#UserProperty) * + [func (u UserProperty) MarshalJSON() ([]byte, error)](#UserProperty.MarshalJSON) + [func (u *UserProperty) UnmarshalJSON(data []byte) error](#UserProperty.UnmarshalJSON) * [type ValidationActivity](#ValidationActivity) * + [func (v *ValidationActivity) GetActivity() *Activity](#ValidationActivity.GetActivity) + [func (v *ValidationActivity) GetControlActivity() *ControlActivity](#ValidationActivity.GetControlActivity) + [func (v ValidationActivity) MarshalJSON() ([]byte, error)](#ValidationActivity.MarshalJSON) + [func (v *ValidationActivity) UnmarshalJSON(data []byte) error](#ValidationActivity.UnmarshalJSON) * [type ValidationActivityTypeProperties](#ValidationActivityTypeProperties) * + [func (v ValidationActivityTypeProperties) MarshalJSON() ([]byte, error)](#ValidationActivityTypeProperties.MarshalJSON) + [func (v *ValidationActivityTypeProperties) UnmarshalJSON(data []byte) error](#ValidationActivityTypeProperties.UnmarshalJSON) * [type VariableSpecification](#VariableSpecification) * + [func (v VariableSpecification) MarshalJSON() ([]byte, error)](#VariableSpecification.MarshalJSON) + [func (v *VariableSpecification) UnmarshalJSON(data []byte) error](#VariableSpecification.UnmarshalJSON) * [type VariableType](#VariableType) * + [func PossibleVariableTypeValues() []VariableType](#PossibleVariableTypeValues) * [type VerticaDatasetTypeProperties](#VerticaDatasetTypeProperties) * + [func (v VerticaDatasetTypeProperties) MarshalJSON() ([]byte, error)](#VerticaDatasetTypeProperties.MarshalJSON) + [func (v *VerticaDatasetTypeProperties) UnmarshalJSON(data []byte) error](#VerticaDatasetTypeProperties.UnmarshalJSON) * [type VerticaLinkedService](#VerticaLinkedService) * + [func (v *VerticaLinkedService) GetLinkedService() *LinkedService](#VerticaLinkedService.GetLinkedService) + [func (v VerticaLinkedService) MarshalJSON() ([]byte, error)](#VerticaLinkedService.MarshalJSON) + [func (v *VerticaLinkedService) UnmarshalJSON(data []byte) error](#VerticaLinkedService.UnmarshalJSON) * [type VerticaLinkedServiceTypeProperties](#VerticaLinkedServiceTypeProperties) * + [func (v VerticaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#VerticaLinkedServiceTypeProperties.MarshalJSON) + [func (v *VerticaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#VerticaLinkedServiceTypeProperties.UnmarshalJSON) * [type VerticaSource](#VerticaSource) * + [func (v *VerticaSource) GetCopySource() *CopySource](#VerticaSource.GetCopySource) + [func (v *VerticaSource) GetTabularSource() *TabularSource](#VerticaSource.GetTabularSource) + [func (v VerticaSource) MarshalJSON() ([]byte, error)](#VerticaSource.MarshalJSON) + [func (v *VerticaSource) UnmarshalJSON(data []byte) error](#VerticaSource.UnmarshalJSON) * [type VerticaTableDataset](#VerticaTableDataset) * + [func (v *VerticaTableDataset) GetDataset() *Dataset](#VerticaTableDataset.GetDataset) + [func (v VerticaTableDataset) MarshalJSON() ([]byte, error)](#VerticaTableDataset.MarshalJSON) + [func (v *VerticaTableDataset) UnmarshalJSON(data []byte) error](#VerticaTableDataset.UnmarshalJSON) * [type WaitActivity](#WaitActivity) * + [func (w *WaitActivity) GetActivity() *Activity](#WaitActivity.GetActivity) + [func (w *WaitActivity) GetControlActivity() *ControlActivity](#WaitActivity.GetControlActivity) + [func (w WaitActivity) MarshalJSON() ([]byte, error)](#WaitActivity.MarshalJSON) + [func (w *WaitActivity) UnmarshalJSON(data []byte) error](#WaitActivity.UnmarshalJSON) * [type WaitActivityTypeProperties](#WaitActivityTypeProperties) * + [func (w WaitActivityTypeProperties) MarshalJSON() ([]byte, error)](#WaitActivityTypeProperties.MarshalJSON) + [func (w *WaitActivityTypeProperties) UnmarshalJSON(data []byte) error](#WaitActivityTypeProperties.UnmarshalJSON) * [type WebActivity](#WebActivity) * + [func (w *WebActivity) GetActivity() *Activity](#WebActivity.GetActivity) + [func (w *WebActivity) GetExecutionActivity() *ExecutionActivity](#WebActivity.GetExecutionActivity) + [func (w WebActivity) MarshalJSON() ([]byte, error)](#WebActivity.MarshalJSON) + [func (w *WebActivity) UnmarshalJSON(data []byte) error](#WebActivity.UnmarshalJSON) * [type WebActivityAuthentication](#WebActivityAuthentication) * + [func (w WebActivityAuthentication) MarshalJSON() ([]byte, error)](#WebActivityAuthentication.MarshalJSON) + [func (w *WebActivityAuthentication) UnmarshalJSON(data []byte) error](#WebActivityAuthentication.UnmarshalJSON) * [type WebActivityMethod](#WebActivityMethod) * + [func PossibleWebActivityMethodValues() []WebActivityMethod](#PossibleWebActivityMethodValues) * [type WebActivityTypeProperties](#WebActivityTypeProperties) * + [func (w WebActivityTypeProperties) MarshalJSON() ([]byte, error)](#WebActivityTypeProperties.MarshalJSON) + [func (w *WebActivityTypeProperties) UnmarshalJSON(data []byte) error](#WebActivityTypeProperties.UnmarshalJSON) * [type WebAnonymousAuthentication](#WebAnonymousAuthentication) * + [func (w *WebAnonymousAuthentication) GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties](#WebAnonymousAuthentication.GetWebLinkedServiceTypeProperties) + [func (w WebAnonymousAuthentication) MarshalJSON() ([]byte, error)](#WebAnonymousAuthentication.MarshalJSON) + [func (w *WebAnonymousAuthentication) UnmarshalJSON(data []byte) error](#WebAnonymousAuthentication.UnmarshalJSON) * [type WebAuthenticationType](#WebAuthenticationType) * + [func PossibleWebAuthenticationTypeValues() []WebAuthenticationType](#PossibleWebAuthenticationTypeValues) * [type WebBasicAuthentication](#WebBasicAuthentication) * + [func (w *WebBasicAuthentication) GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties](#WebBasicAuthentication.GetWebLinkedServiceTypeProperties) + [func (w WebBasicAuthentication) MarshalJSON() ([]byte, error)](#WebBasicAuthentication.MarshalJSON) + [func (w *WebBasicAuthentication) UnmarshalJSON(data []byte) error](#WebBasicAuthentication.UnmarshalJSON) * [type WebClientCertificateAuthentication](#WebClientCertificateAuthentication) * + [func (w *WebClientCertificateAuthentication) GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties](#WebClientCertificateAuthentication.GetWebLinkedServiceTypeProperties) + [func (w WebClientCertificateAuthentication) MarshalJSON() ([]byte, error)](#WebClientCertificateAuthentication.MarshalJSON) + [func (w *WebClientCertificateAuthentication) UnmarshalJSON(data []byte) error](#WebClientCertificateAuthentication.UnmarshalJSON) * [type WebHookActivity](#WebHookActivity) * + [func (w *WebHookActivity) GetActivity() *Activity](#WebHookActivity.GetActivity) + [func (w *WebHookActivity) GetControlActivity() *ControlActivity](#WebHookActivity.GetControlActivity) + [func (w WebHookActivity) MarshalJSON() ([]byte, error)](#WebHookActivity.MarshalJSON) + [func (w *WebHookActivity) UnmarshalJSON(data []byte) error](#WebHookActivity.UnmarshalJSON) * [type WebHookActivityMethod](#WebHookActivityMethod) * + [func PossibleWebHookActivityMethodValues() []WebHookActivityMethod](#PossibleWebHookActivityMethodValues) * [type WebHookActivityTypeProperties](#WebHookActivityTypeProperties) * + [func (w WebHookActivityTypeProperties) MarshalJSON() ([]byte, error)](#WebHookActivityTypeProperties.MarshalJSON) + [func (w *WebHookActivityTypeProperties) UnmarshalJSON(data []byte) error](#WebHookActivityTypeProperties.UnmarshalJSON) * [type WebLinkedService](#WebLinkedService) * + [func (w *WebLinkedService) GetLinkedService() *LinkedService](#WebLinkedService.GetLinkedService) + [func (w WebLinkedService) MarshalJSON() ([]byte, error)](#WebLinkedService.MarshalJSON) + [func (w *WebLinkedService) UnmarshalJSON(data []byte) error](#WebLinkedService.UnmarshalJSON) * [type WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties) * + [func (w *WebLinkedServiceTypeProperties) GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties.GetWebLinkedServiceTypeProperties) + [func (w WebLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#WebLinkedServiceTypeProperties.MarshalJSON) + [func (w *WebLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#WebLinkedServiceTypeProperties.UnmarshalJSON) * [type WebLinkedServiceTypePropertiesClassification](#WebLinkedServiceTypePropertiesClassification) * [type WebSource](#WebSource) * + [func (w *WebSource) GetCopySource() *CopySource](#WebSource.GetCopySource) + [func (w WebSource) MarshalJSON() ([]byte, error)](#WebSource.MarshalJSON) + [func (w *WebSource) UnmarshalJSON(data []byte) error](#WebSource.UnmarshalJSON) * [type WebTableDataset](#WebTableDataset) * + [func (w *WebTableDataset) GetDataset() *Dataset](#WebTableDataset.GetDataset) + [func (w WebTableDataset) MarshalJSON() ([]byte, error)](#WebTableDataset.MarshalJSON) + [func (w *WebTableDataset) UnmarshalJSON(data []byte) error](#WebTableDataset.UnmarshalJSON) * [type WebTableDatasetTypeProperties](#WebTableDatasetTypeProperties) * + [func (w WebTableDatasetTypeProperties) MarshalJSON() ([]byte, error)](#WebTableDatasetTypeProperties.MarshalJSON) + [func (w *WebTableDatasetTypeProperties) UnmarshalJSON(data []byte) error](#WebTableDatasetTypeProperties.UnmarshalJSON) * [type WranglingDataFlow](#WranglingDataFlow) * + [func (w *WranglingDataFlow) GetDataFlow() *DataFlow](#WranglingDataFlow.GetDataFlow) + [func (w WranglingDataFlow) MarshalJSON() ([]byte, error)](#WranglingDataFlow.MarshalJSON) + [func (w *WranglingDataFlow) UnmarshalJSON(data []byte) error](#WranglingDataFlow.UnmarshalJSON) * [type XMLDataset](#XMLDataset) * + [func (x *XMLDataset) GetDataset() *Dataset](#XMLDataset.GetDataset) + [func (x XMLDataset) MarshalJSON() ([]byte, error)](#XMLDataset.MarshalJSON) + [func (x *XMLDataset) UnmarshalJSON(data []byte) error](#XMLDataset.UnmarshalJSON) * [type XMLDatasetTypeProperties](#XMLDatasetTypeProperties) * + [func (x XMLDatasetTypeProperties) MarshalJSON() ([]byte, error)](#XMLDatasetTypeProperties.MarshalJSON) + [func (x *XMLDatasetTypeProperties) UnmarshalJSON(data []byte) error](#XMLDatasetTypeProperties.UnmarshalJSON) * [type XMLReadSettings](#XMLReadSettings) * + [func (x *XMLReadSettings) GetFormatReadSettings() *FormatReadSettings](#XMLReadSettings.GetFormatReadSettings) + [func (x XMLReadSettings) MarshalJSON() ([]byte, error)](#XMLReadSettings.MarshalJSON) + [func (x *XMLReadSettings) UnmarshalJSON(data []byte) error](#XMLReadSettings.UnmarshalJSON) * [type XMLSource](#XMLSource) * + [func (x *XMLSource) GetCopySource() *CopySource](#XMLSource.GetCopySource) + [func (x XMLSource) MarshalJSON() ([]byte, error)](#XMLSource.MarshalJSON) + [func (x *XMLSource) UnmarshalJSON(data []byte) error](#XMLSource.UnmarshalJSON) * [type XeroLinkedService](#XeroLinkedService) * + [func (x *XeroLinkedService) GetLinkedService() *LinkedService](#XeroLinkedService.GetLinkedService) + [func (x XeroLinkedService) MarshalJSON() ([]byte, error)](#XeroLinkedService.MarshalJSON) + [func (x *XeroLinkedService) UnmarshalJSON(data []byte) error](#XeroLinkedService.UnmarshalJSON) * [type XeroLinkedServiceTypeProperties](#XeroLinkedServiceTypeProperties) * + [func (x XeroLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#XeroLinkedServiceTypeProperties.MarshalJSON) + [func (x *XeroLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#XeroLinkedServiceTypeProperties.UnmarshalJSON) * [type XeroObjectDataset](#XeroObjectDataset) * + [func (x *XeroObjectDataset) GetDataset() *Dataset](#XeroObjectDataset.GetDataset) + [func (x XeroObjectDataset) MarshalJSON() ([]byte, error)](#XeroObjectDataset.MarshalJSON) + [func (x *XeroObjectDataset) UnmarshalJSON(data []byte) error](#XeroObjectDataset.UnmarshalJSON) * [type XeroSource](#XeroSource) * + [func (x *XeroSource) GetCopySource() *CopySource](#XeroSource.GetCopySource) + [func (x *XeroSource) GetTabularSource() *TabularSource](#XeroSource.GetTabularSource) + [func (x XeroSource) MarshalJSON() ([]byte, error)](#XeroSource.MarshalJSON) + [func (x *XeroSource) UnmarshalJSON(data []byte) error](#XeroSource.UnmarshalJSON) * [type ZendeskAuthenticationType](#ZendeskAuthenticationType) * + [func PossibleZendeskAuthenticationTypeValues() []ZendeskAuthenticationType](#PossibleZendeskAuthenticationTypeValues) * [type ZendeskLinkedService](#ZendeskLinkedService) * + [func (z *ZendeskLinkedService) GetLinkedService() *LinkedService](#ZendeskLinkedService.GetLinkedService) + [func (z ZendeskLinkedService) MarshalJSON() ([]byte, error)](#ZendeskLinkedService.MarshalJSON) + [func (z *ZendeskLinkedService) UnmarshalJSON(data []byte) error](#ZendeskLinkedService.UnmarshalJSON) * [type ZendeskLinkedServiceTypeProperties](#ZendeskLinkedServiceTypeProperties) * + [func (z ZendeskLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#ZendeskLinkedServiceTypeProperties.MarshalJSON) + [func (z *ZendeskLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#ZendeskLinkedServiceTypeProperties.UnmarshalJSON) * [type ZipDeflateReadSettings](#ZipDeflateReadSettings) * + [func (z *ZipDeflateReadSettings) GetCompressionReadSettings() *CompressionReadSettings](#ZipDeflateReadSettings.GetCompressionReadSettings) + [func (z ZipDeflateReadSettings) MarshalJSON() ([]byte, error)](#ZipDeflateReadSettings.MarshalJSON) + [func (z *ZipDeflateReadSettings) UnmarshalJSON(data []byte) error](#ZipDeflateReadSettings.UnmarshalJSON) * [type ZohoLinkedService](#ZohoLinkedService) * + [func (z *ZohoLinkedService) GetLinkedService() *LinkedService](#ZohoLinkedService.GetLinkedService) + [func (z ZohoLinkedService) MarshalJSON() ([]byte, error)](#ZohoLinkedService.MarshalJSON) + [func (z *ZohoLinkedService) UnmarshalJSON(data []byte) error](#ZohoLinkedService.UnmarshalJSON) * [type ZohoLinkedServiceTypeProperties](#ZohoLinkedServiceTypeProperties) * + [func (z ZohoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error)](#ZohoLinkedServiceTypeProperties.MarshalJSON) + [func (z *ZohoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error](#ZohoLinkedServiceTypeProperties.UnmarshalJSON) * [type ZohoObjectDataset](#ZohoObjectDataset) * + [func (z *ZohoObjectDataset) GetDataset() *Dataset](#ZohoObjectDataset.GetDataset) + [func (z ZohoObjectDataset) MarshalJSON() ([]byte, error)](#ZohoObjectDataset.MarshalJSON) + [func (z *ZohoObjectDataset) UnmarshalJSON(data []byte) error](#ZohoObjectDataset.UnmarshalJSON) * [type ZohoSource](#ZohoSource) * + [func (z *ZohoSource) GetCopySource() *CopySource](#ZohoSource.GetCopySource) + [func (z *ZohoSource) GetTabularSource() *TabularSource](#ZohoSource.GetTabularSource) + [func (z ZohoSource) MarshalJSON() ([]byte, error)](#ZohoSource.MarshalJSON) + [func (z *ZohoSource) UnmarshalJSON(data []byte) error](#ZohoSource.UnmarshalJSON) #### Examples [¶](#pkg-examples) * [ActivityRunsClient.QueryByPipelineRun](#example-ActivityRunsClient.QueryByPipelineRun) * [DataFlowDebugSessionClient.AddDataFlow](#example-DataFlowDebugSessionClient.AddDataFlow) * [DataFlowDebugSessionClient.BeginCreate](#example-DataFlowDebugSessionClient.BeginCreate) * [DataFlowDebugSessionClient.BeginExecuteCommand](#example-DataFlowDebugSessionClient.BeginExecuteCommand) * [DataFlowDebugSessionClient.Delete](#example-DataFlowDebugSessionClient.Delete) * [DataFlowDebugSessionClient.NewQueryByFactoryPager](#example-DataFlowDebugSessionClient.NewQueryByFactoryPager) * [DataFlowsClient.CreateOrUpdate (DataFlowsCreate)](#example-DataFlowsClient.CreateOrUpdate-DataFlowsCreate) * [DataFlowsClient.CreateOrUpdate (DataFlowsUpdate)](#example-DataFlowsClient.CreateOrUpdate-DataFlowsUpdate) * [DataFlowsClient.Delete](#example-DataFlowsClient.Delete) * [DataFlowsClient.Get](#example-DataFlowsClient.Get) * [DataFlowsClient.NewListByFactoryPager](#example-DataFlowsClient.NewListByFactoryPager) * [DatasetsClient.CreateOrUpdate (DatasetsCreate)](#example-DatasetsClient.CreateOrUpdate-DatasetsCreate) * [DatasetsClient.CreateOrUpdate (DatasetsUpdate)](#example-DatasetsClient.CreateOrUpdate-DatasetsUpdate) * [DatasetsClient.Delete](#example-DatasetsClient.Delete) * [DatasetsClient.Get](#example-DatasetsClient.Get) * [DatasetsClient.NewListByFactoryPager](#example-DatasetsClient.NewListByFactoryPager) * [ExposureControlClient.GetFeatureValue](#example-ExposureControlClient.GetFeatureValue) * [ExposureControlClient.GetFeatureValueByFactory](#example-ExposureControlClient.GetFeatureValueByFactory) * [ExposureControlClient.QueryFeatureValuesByFactory](#example-ExposureControlClient.QueryFeatureValuesByFactory) * [FactoriesClient.ConfigureFactoryRepo](#example-FactoriesClient.ConfigureFactoryRepo) * [FactoriesClient.CreateOrUpdate](#example-FactoriesClient.CreateOrUpdate) * [FactoriesClient.Delete](#example-FactoriesClient.Delete) * [FactoriesClient.Get](#example-FactoriesClient.Get) * [FactoriesClient.GetDataPlaneAccess](#example-FactoriesClient.GetDataPlaneAccess) * [FactoriesClient.GetGitHubAccessToken](#example-FactoriesClient.GetGitHubAccessToken) * [FactoriesClient.NewListByResourceGroupPager](#example-FactoriesClient.NewListByResourceGroupPager) * [FactoriesClient.NewListPager](#example-FactoriesClient.NewListPager) * [FactoriesClient.Update](#example-FactoriesClient.Update) * [GlobalParametersClient.CreateOrUpdate (GlobalParametersCreate)](#example-GlobalParametersClient.CreateOrUpdate-GlobalParametersCreate) * [GlobalParametersClient.CreateOrUpdate (GlobalParametersUpdate)](#example-GlobalParametersClient.CreateOrUpdate-GlobalParametersUpdate) * [GlobalParametersClient.Delete](#example-GlobalParametersClient.Delete) * [GlobalParametersClient.Get](#example-GlobalParametersClient.Get) * [GlobalParametersClient.NewListByFactoryPager](#example-GlobalParametersClient.NewListByFactoryPager) * [IntegrationRuntimeNodesClient.Delete](#example-IntegrationRuntimeNodesClient.Delete) * [IntegrationRuntimeNodesClient.Get](#example-IntegrationRuntimeNodesClient.Get) * [IntegrationRuntimeNodesClient.GetIPAddress](#example-IntegrationRuntimeNodesClient.GetIPAddress) * [IntegrationRuntimeNodesClient.Update](#example-IntegrationRuntimeNodesClient.Update) * [IntegrationRuntimeObjectMetadataClient.BeginRefresh](#example-IntegrationRuntimeObjectMetadataClient.BeginRefresh) * [IntegrationRuntimeObjectMetadataClient.Get](#example-IntegrationRuntimeObjectMetadataClient.Get) * [IntegrationRuntimesClient.BeginStart](#example-IntegrationRuntimesClient.BeginStart) * [IntegrationRuntimesClient.BeginStop](#example-IntegrationRuntimesClient.BeginStop) * [IntegrationRuntimesClient.CreateLinkedIntegrationRuntime](#example-IntegrationRuntimesClient.CreateLinkedIntegrationRuntime) * [IntegrationRuntimesClient.CreateOrUpdate](#example-IntegrationRuntimesClient.CreateOrUpdate) * [IntegrationRuntimesClient.Delete](#example-IntegrationRuntimesClient.Delete) * [IntegrationRuntimesClient.Get](#example-IntegrationRuntimesClient.Get) * [IntegrationRuntimesClient.GetConnectionInfo](#example-IntegrationRuntimesClient.GetConnectionInfo) * [IntegrationRuntimesClient.GetMonitoringData](#example-IntegrationRuntimesClient.GetMonitoringData) * [IntegrationRuntimesClient.GetStatus](#example-IntegrationRuntimesClient.GetStatus) * [IntegrationRuntimesClient.ListAuthKeys](#example-IntegrationRuntimesClient.ListAuthKeys) * [IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints](#example-IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints) * [IntegrationRuntimesClient.NewListByFactoryPager](#example-IntegrationRuntimesClient.NewListByFactoryPager) * [IntegrationRuntimesClient.RegenerateAuthKey](#example-IntegrationRuntimesClient.RegenerateAuthKey) * [IntegrationRuntimesClient.RemoveLinks](#example-IntegrationRuntimesClient.RemoveLinks) * [IntegrationRuntimesClient.SyncCredentials](#example-IntegrationRuntimesClient.SyncCredentials) * [IntegrationRuntimesClient.Update](#example-IntegrationRuntimesClient.Update) * [IntegrationRuntimesClient.Upgrade](#example-IntegrationRuntimesClient.Upgrade) * [LinkedServicesClient.CreateOrUpdate (LinkedServicesCreate)](#example-LinkedServicesClient.CreateOrUpdate-LinkedServicesCreate) * [LinkedServicesClient.CreateOrUpdate (LinkedServicesUpdate)](#example-LinkedServicesClient.CreateOrUpdate-LinkedServicesUpdate) * [LinkedServicesClient.Delete](#example-LinkedServicesClient.Delete) * [LinkedServicesClient.Get](#example-LinkedServicesClient.Get) * [LinkedServicesClient.NewListByFactoryPager](#example-LinkedServicesClient.NewListByFactoryPager) * [ManagedPrivateEndpointsClient.CreateOrUpdate](#example-ManagedPrivateEndpointsClient.CreateOrUpdate) * [ManagedPrivateEndpointsClient.Delete](#example-ManagedPrivateEndpointsClient.Delete) * [ManagedPrivateEndpointsClient.Get](#example-ManagedPrivateEndpointsClient.Get) * [ManagedPrivateEndpointsClient.NewListByFactoryPager](#example-ManagedPrivateEndpointsClient.NewListByFactoryPager) * [ManagedVirtualNetworksClient.CreateOrUpdate](#example-ManagedVirtualNetworksClient.CreateOrUpdate) * [ManagedVirtualNetworksClient.Get](#example-ManagedVirtualNetworksClient.Get) * [ManagedVirtualNetworksClient.NewListByFactoryPager](#example-ManagedVirtualNetworksClient.NewListByFactoryPager) * [OperationsClient.NewListPager](#example-OperationsClient.NewListPager) * [PipelineRunsClient.Cancel](#example-PipelineRunsClient.Cancel) * [PipelineRunsClient.Get](#example-PipelineRunsClient.Get) * [PipelineRunsClient.QueryByFactory](#example-PipelineRunsClient.QueryByFactory) * [PipelinesClient.CreateOrUpdate (PipelinesCreate)](#example-PipelinesClient.CreateOrUpdate-PipelinesCreate) * [PipelinesClient.CreateOrUpdate (PipelinesUpdate)](#example-PipelinesClient.CreateOrUpdate-PipelinesUpdate) * [PipelinesClient.CreateRun](#example-PipelinesClient.CreateRun) * [PipelinesClient.Delete](#example-PipelinesClient.Delete) * [PipelinesClient.Get](#example-PipelinesClient.Get) * [PipelinesClient.NewListByFactoryPager](#example-PipelinesClient.NewListByFactoryPager) * [PrivateEndPointConnectionsClient.NewListByFactoryPager](#example-PrivateEndPointConnectionsClient.NewListByFactoryPager) * [PrivateEndpointConnectionClient.CreateOrUpdate](#example-PrivateEndpointConnectionClient.CreateOrUpdate) * [PrivateEndpointConnectionClient.Delete](#example-PrivateEndpointConnectionClient.Delete) * [PrivateEndpointConnectionClient.Get](#example-PrivateEndpointConnectionClient.Get) * [PrivateLinkResourcesClient.Get](#example-PrivateLinkResourcesClient.Get) * [TriggerRunsClient.Cancel](#example-TriggerRunsClient.Cancel) * [TriggerRunsClient.QueryByFactory](#example-TriggerRunsClient.QueryByFactory) * [TriggerRunsClient.Rerun](#example-TriggerRunsClient.Rerun) * [TriggersClient.BeginStart](#example-TriggersClient.BeginStart) * [TriggersClient.BeginStop](#example-TriggersClient.BeginStop) * [TriggersClient.BeginSubscribeToEvents](#example-TriggersClient.BeginSubscribeToEvents) * [TriggersClient.BeginUnsubscribeFromEvents](#example-TriggersClient.BeginUnsubscribeFromEvents) * [TriggersClient.CreateOrUpdate (TriggersCreate)](#example-TriggersClient.CreateOrUpdate-TriggersCreate) * [TriggersClient.CreateOrUpdate (TriggersUpdate)](#example-TriggersClient.CreateOrUpdate-TriggersUpdate) * [TriggersClient.Delete](#example-TriggersClient.Delete) * [TriggersClient.Get](#example-TriggersClient.Get) * [TriggersClient.GetEventSubscriptionStatus](#example-TriggersClient.GetEventSubscriptionStatus) * [TriggersClient.NewListByFactoryPager](#example-TriggersClient.NewListByFactoryPager) * [TriggersClient.QueryByFactory](#example-TriggersClient.QueryByFactory) ### Constants [¶](#pkg-constants) This section is empty. ### Variables [¶](#pkg-variables) This section is empty. ### Functions [¶](#pkg-functions) This section is empty. ### Types [¶](#pkg-types) #### type [AccessPolicyResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15) [¶](#AccessPolicyResponse) ``` type AccessPolicyResponse struct { // Data Plane read only access token. AccessToken *[string](/builtin#string) `json:"accessToken,omitempty"` // Data Plane service base URL. DataPlaneURL *[string](/builtin#string) `json:"dataPlaneUrl,omitempty"` // The user access policy. Policy *[UserAccessPolicy](#UserAccessPolicy) `json:"policy,omitempty"` } ``` AccessPolicyResponse - Get Data Plane read only token response definition. #### func (AccessPolicyResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20) [¶](#AccessPolicyResponse.MarshalJSON) added in v1.3.0 ``` func (a [AccessPolicyResponse](#AccessPolicyResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AccessPolicyResponse. #### func (*AccessPolicyResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29) [¶](#AccessPolicyResponse.UnmarshalJSON) added in v1.3.0 ``` func (a *[AccessPolicyResponse](#AccessPolicyResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AccessPolicyResponse. #### type [Activity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L43) [¶](#Activity) ``` type Activity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` Activity - A pipeline activity. #### func (*Activity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L64) [¶](#Activity.GetActivity) ``` func (a *[Activity](#Activity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type Activity. #### func (Activity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L55) [¶](#Activity.MarshalJSON) added in v0.2.0 ``` func (a [Activity](#Activity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Activity. #### func (*Activity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L71) [¶](#Activity.UnmarshalJSON) ``` func (a *[Activity](#Activity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Activity. #### type [ActivityClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L37) [¶](#ActivityClassification) ``` type ActivityClassification interface { // GetActivity returns the Activity content of the underlying type. GetActivity() *[Activity](#Activity) } ``` ActivityClassification provides polymorphic access to related types. Call the interface's GetActivity() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *Activity, *AppendVariableActivity, *AzureDataExplorerCommandActivity, *AzureFunctionActivity, *AzureMLBatchExecutionActivity, - *AzureMLExecutePipelineActivity, *AzureMLUpdateResourceActivity, *ControlActivity, *CopyActivity, *CustomActivity, *DataLakeAnalyticsUSQLActivity, - *DatabricksNotebookActivity, *DatabricksSparkJarActivity, *DatabricksSparkPythonActivity, *DeleteActivity, *ExecuteDataFlowActivity, - *ExecutePipelineActivity, *ExecuteSSISPackageActivity, *ExecuteWranglingDataflowActivity, *ExecutionActivity, *FailActivity, - *FilterActivity, *ForEachActivity, *GetMetadataActivity, *HDInsightHiveActivity, *HDInsightMapReduceActivity, *HDInsightPigActivity, - *HDInsightSparkActivity, *HDInsightStreamingActivity, *IfConditionActivity, *LookupActivity, *SQLServerStoredProcedureActivity, - *ScriptActivity, *SetVariableActivity, *SwitchActivity, *SynapseNotebookActivity, *SynapseSparkJobDefinitionActivity, - *UntilActivity, *ValidationActivity, *WaitActivity, *WebActivity, *WebHookActivity #### type [ActivityDependency](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L67) [¶](#ActivityDependency) ``` type ActivityDependency struct { // REQUIRED; Activity name. Activity *[string](/builtin#string) `json:"activity,omitempty"` // REQUIRED; Match-Condition for the dependency. DependencyConditions []*[DependencyCondition](#DependencyCondition) `json:"dependencyConditions,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` ActivityDependency - Activity dependency information. #### func (ActivityDependency) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L113) [¶](#ActivityDependency.MarshalJSON) ``` func (a [ActivityDependency](#ActivityDependency)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ActivityDependency. #### func (*ActivityDependency) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L126) [¶](#ActivityDependency.UnmarshalJSON) ``` func (a *[ActivityDependency](#ActivityDependency)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ActivityDependency. #### type [ActivityPolicy](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L79) [¶](#ActivityPolicy) ``` type ActivityPolicy struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. Retry interface{} `json:"retry,omitempty"` // Interval between each retry attempt (in seconds). The default is 30 sec. RetryIntervalInSeconds *[int32](/builtin#int32) `json:"retryIntervalInSeconds,omitempty"` // When set to true, Input from activity is considered as secure and will not be logged to monitoring. SecureInput *[bool](/builtin#bool) `json:"secureInput,omitempty"` // When set to true, Output from activity is considered as secure and will not be logged to monitoring. SecureOutput *[bool](/builtin#bool) `json:"secureOutput,omitempty"` // Specifies the timeout for the activity to run. The default timeout is 7 days. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Timeout interface{} `json:"timeout,omitempty"` } ``` ActivityPolicy - Execution policy for an activity. #### func (ActivityPolicy) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L159) [¶](#ActivityPolicy.MarshalJSON) ``` func (a [ActivityPolicy](#ActivityPolicy)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ActivityPolicy. #### func (*ActivityPolicy) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L175) [¶](#ActivityPolicy.UnmarshalJSON) ``` func (a *[ActivityPolicy](#ActivityPolicy)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ActivityPolicy. #### type [ActivityRun](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L101) [¶](#ActivityRun) ``` type ActivityRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; The name of the activity. ActivityName *[string](/builtin#string) `json:"activityName,omitempty" azure:"ro"` // READ-ONLY; The end time of the activity run in 'ISO 8601' format. ActivityRunEnd *[time](/time).[Time](/time#Time) `json:"activityRunEnd,omitempty" azure:"ro"` // READ-ONLY; The id of the activity run. ActivityRunID *[string](/builtin#string) `json:"activityRunId,omitempty" azure:"ro"` // READ-ONLY; The start time of the activity run in 'ISO 8601' format. ActivityRunStart *[time](/time).[Time](/time#Time) `json:"activityRunStart,omitempty" azure:"ro"` // READ-ONLY; The type of the activity. ActivityType *[string](/builtin#string) `json:"activityType,omitempty" azure:"ro"` // READ-ONLY; The duration of the activity run. DurationInMs *[int32](/builtin#int32) `json:"durationInMs,omitempty" azure:"ro"` // READ-ONLY; The error if any from the activity run. Error interface{} `json:"error,omitempty" azure:"ro"` // READ-ONLY; The input for the activity. Input interface{} `json:"input,omitempty" azure:"ro"` // READ-ONLY; The name of the compute linked service. LinkedServiceName *[string](/builtin#string) `json:"linkedServiceName,omitempty" azure:"ro"` // READ-ONLY; The output for the activity. Output interface{} `json:"output,omitempty" azure:"ro"` // READ-ONLY; The name of the pipeline. PipelineName *[string](/builtin#string) `json:"pipelineName,omitempty" azure:"ro"` // READ-ONLY; The id of the pipeline run. PipelineRunID *[string](/builtin#string) `json:"pipelineRunId,omitempty" azure:"ro"` // READ-ONLY; The status of the activity run. Status *[string](/builtin#string) `json:"status,omitempty" azure:"ro"` } ``` ActivityRun - Information about an activity run in a pipeline. #### func (ActivityRun) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L217) [¶](#ActivityRun.MarshalJSON) ``` func (a [ActivityRun](#ActivityRun)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ActivityRun. #### func (*ActivityRun) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L241) [¶](#ActivityRun.UnmarshalJSON) ``` func (a *[ActivityRun](#ActivityRun)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ActivityRun. #### type [ActivityRunsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go#L28) [¶](#ActivityRunsClient) ``` type ActivityRunsClient struct { // contains filtered or unexported fields } ``` ActivityRunsClient contains the methods for the ActivityRuns group. Don't use this type directly, use NewActivityRunsClient() instead. #### func [NewActivityRunsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go#L38) [¶](#NewActivityRunsClient) ``` func NewActivityRunsClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[ActivityRunsClient](#ActivityRunsClient), [error](/builtin#error)) ``` NewActivityRunsClient creates a new instance of ActivityRunsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*ActivityRunsClient) [QueryByPipelineRun](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go#L67) [¶](#ActivityRunsClient.QueryByPipelineRun) ``` func (client *[ActivityRunsClient](#ActivityRunsClient)) QueryByPipelineRun(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), runID [string](/builtin#string), filterParameters [RunFilterParameters](#RunFilterParameters), options *[ActivityRunsClientQueryByPipelineRunOptions](#ActivityRunsClientQueryByPipelineRunOptions)) ([ActivityRunsClientQueryByPipelineRunResponse](#ActivityRunsClientQueryByPipelineRunResponse), [error](/builtin#error)) ``` QueryByPipelineRun - Query activity runs based on input filter conditions. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. runID - The pipeline run identifier. filterParameters - Parameters to filter the activity runs. options - ActivityRunsClientQueryByPipelineRunOptions contains the optional parameters for the ActivityRunsClient.QueryByPipelineRun method. Example [¶](#example-ActivityRunsClient.QueryByPipelineRun) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json> ``` package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewActivityRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.QueryByPipelineRun(ctx, "exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", armdatafactory.RunFilterParameters{ LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [ActivityRunsClientQueryByPipelineRunOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L147) [¶](#ActivityRunsClientQueryByPipelineRunOptions) added in v0.2.0 ``` type ActivityRunsClientQueryByPipelineRunOptions struct { } ``` ActivityRunsClientQueryByPipelineRunOptions contains the optional parameters for the ActivityRunsClient.QueryByPipelineRun method. #### type [ActivityRunsClientQueryByPipelineRunResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L13) [¶](#ActivityRunsClientQueryByPipelineRunResponse) added in v0.2.0 ``` type ActivityRunsClientQueryByPipelineRunResponse struct { [ActivityRunsQueryResponse](#ActivityRunsQueryResponse) } ``` ActivityRunsClientQueryByPipelineRunResponse contains the response from method ActivityRunsClient.QueryByPipelineRun. #### type [ActivityRunsQueryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L152) [¶](#ActivityRunsQueryResponse) ``` type ActivityRunsQueryResponse struct { // REQUIRED; List of activity runs. Value []*[ActivityRun](#ActivityRun) `json:"value,omitempty"` // The continuation token for getting the next page of results, if any remaining results exist, null otherwise. ContinuationToken *[string](/builtin#string) `json:"continuationToken,omitempty"` } ``` ActivityRunsQueryResponse - A list activity runs. #### func (ActivityRunsQueryResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L307) [¶](#ActivityRunsQueryResponse.MarshalJSON) ``` func (a [ActivityRunsQueryResponse](#ActivityRunsQueryResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ActivityRunsQueryResponse. #### func (*ActivityRunsQueryResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L315) [¶](#ActivityRunsQueryResponse.UnmarshalJSON) added in v1.3.0 ``` func (a *[ActivityRunsQueryResponse](#ActivityRunsQueryResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ActivityRunsQueryResponse. #### type [AddDataFlowToDebugSessionResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L161) [¶](#AddDataFlowToDebugSessionResponse) ``` type AddDataFlowToDebugSessionResponse struct { // The ID of data flow debug job version. JobVersion *[string](/builtin#string) `json:"jobVersion,omitempty"` } ``` AddDataFlowToDebugSessionResponse - Response body structure for starting data flow debug session. #### func (AddDataFlowToDebugSessionResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L338) [¶](#AddDataFlowToDebugSessionResponse.MarshalJSON) added in v1.3.0 ``` func (a [AddDataFlowToDebugSessionResponse](#AddDataFlowToDebugSessionResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AddDataFlowToDebugSessionResponse. #### func (*AddDataFlowToDebugSessionResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L345) [¶](#AddDataFlowToDebugSessionResponse.UnmarshalJSON) added in v1.3.0 ``` func (a *[AddDataFlowToDebugSessionResponse](#AddDataFlowToDebugSessionResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AddDataFlowToDebugSessionResponse. #### type [AdditionalColumns](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L167) [¶](#AdditionalColumns) ``` type AdditionalColumns struct { // Additional column name. Type: string (or Expression with resultType string). Name interface{} `json:"name,omitempty"` // Additional column value. Type: string (or Expression with resultType string). Value interface{} `json:"value,omitempty"` } ``` AdditionalColumns - Specify the column name and value of additional columns. #### func (AdditionalColumns) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L365) [¶](#AdditionalColumns.MarshalJSON) added in v1.3.0 ``` func (a [AdditionalColumns](#AdditionalColumns)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AdditionalColumns. #### func (*AdditionalColumns) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L373) [¶](#AdditionalColumns.UnmarshalJSON) added in v1.3.0 ``` func (a *[AdditionalColumns](#AdditionalColumns)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AdditionalColumns. #### type [AmazonMWSLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L176) [¶](#AmazonMWSLinkedService) ``` type AmazonMWSLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Amazon Marketplace Web Service linked service properties. TypeProperties *[AmazonMWSLinkedServiceTypeProperties](#AmazonMWSLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AmazonMWSLinkedService - Amazon Marketplace Web Service linked service. #### func (*AmazonMWSLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L200) [¶](#AmazonMWSLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AmazonMWSLinkedService](#AmazonMWSLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AmazonMWSLinkedService. #### func (AmazonMWSLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L396) [¶](#AmazonMWSLinkedService.MarshalJSON) ``` func (a [AmazonMWSLinkedService](#AmazonMWSLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonMWSLinkedService. #### func (*AmazonMWSLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L413) [¶](#AmazonMWSLinkedService.UnmarshalJSON) ``` func (a *[AmazonMWSLinkedService](#AmazonMWSLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonMWSLinkedService. #### type [AmazonMWSLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L212) [¶](#AmazonMWSLinkedServiceTypeProperties) ``` type AmazonMWSLinkedServiceTypeProperties struct { // REQUIRED; The access key id used to access data. AccessKeyID interface{} `json:"accessKeyId,omitempty"` // REQUIRED; The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) Endpoint interface{} `json:"endpoint,omitempty"` // REQUIRED; The Amazon Marketplace ID you want to retrieve data from. To retrieve data from multiple Marketplace IDs, separate // them with a comma (,). (i.e. A2EUQ1WTGCTBG2) MarketplaceID interface{} `json:"marketplaceID,omitempty"` // REQUIRED; The Amazon seller ID. SellerID interface{} `json:"sellerID,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Amazon MWS authentication token. MwsAuthToken [SecretBaseClassification](#SecretBaseClassification) `json:"mwsAuthToken,omitempty"` // The secret key used to access data. SecretKey [SecretBaseClassification](#SecretBaseClassification) `json:"secretKey,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` AmazonMWSLinkedServiceTypeProperties - Amazon Marketplace Web Service linked service properties. #### func (AmazonMWSLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L458) [¶](#AmazonMWSLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AmazonMWSLinkedServiceTypeProperties](#AmazonMWSLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonMWSLinkedServiceTypeProperties. #### func (*AmazonMWSLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L474) [¶](#AmazonMWSLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AmazonMWSLinkedServiceTypeProperties](#AmazonMWSLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonMWSLinkedServiceTypeProperties. #### type [AmazonMWSObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L248) [¶](#AmazonMWSObjectDataset) ``` type AmazonMWSObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AmazonMWSObjectDataset - Amazon Marketplace Web Service dataset. #### func (*AmazonMWSObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L282) [¶](#AmazonMWSObjectDataset.GetDataset) added in v0.2.0 ``` func (a *[AmazonMWSObjectDataset](#AmazonMWSObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AmazonMWSObjectDataset. #### func (AmazonMWSObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L521) [¶](#AmazonMWSObjectDataset.MarshalJSON) ``` func (a [AmazonMWSObjectDataset](#AmazonMWSObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonMWSObjectDataset. #### func (*AmazonMWSObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L541) [¶](#AmazonMWSObjectDataset.UnmarshalJSON) ``` func (a *[AmazonMWSObjectDataset](#AmazonMWSObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonMWSObjectDataset. #### type [AmazonMWSSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L297) [¶](#AmazonMWSSource) ``` type AmazonMWSSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AmazonMWSSource - A copy activity Amazon Marketplace Web Service source. #### func (*AmazonMWSSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L328) [¶](#AmazonMWSSource.GetCopySource) added in v0.2.0 ``` func (a *[AmazonMWSSource](#AmazonMWSSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AmazonMWSSource. #### func (*AmazonMWSSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L340) [¶](#AmazonMWSSource.GetTabularSource) added in v0.2.0 ``` func (a *[AmazonMWSSource](#AmazonMWSSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type AmazonMWSSource. #### func (AmazonMWSSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L595) [¶](#AmazonMWSSource.MarshalJSON) ``` func (a [AmazonMWSSource](#AmazonMWSSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonMWSSource. #### func (*AmazonMWSSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L614) [¶](#AmazonMWSSource.UnmarshalJSON) ``` func (a *[AmazonMWSSource](#AmazonMWSSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonMWSSource. #### type [AmazonRdsForLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L354) [¶](#AmazonRdsForLinkedServiceTypeProperties) ``` type AmazonRdsForLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` } ``` AmazonRdsForLinkedServiceTypeProperties - AmazonRdsForOracle database linked service properties. #### func (AmazonRdsForLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L665) [¶](#AmazonRdsForLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AmazonRdsForLinkedServiceTypeProperties](#AmazonRdsForLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForLinkedServiceTypeProperties. #### func (*AmazonRdsForLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L674) [¶](#AmazonRdsForLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AmazonRdsForLinkedServiceTypeProperties](#AmazonRdsForLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForLinkedServiceTypeProperties. #### type [AmazonRdsForOracleLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L367) [¶](#AmazonRdsForOracleLinkedService) ``` type AmazonRdsForOracleLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; AmazonRdsForOracle database linked service properties. TypeProperties *[AmazonRdsForLinkedServiceTypeProperties](#AmazonRdsForLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AmazonRdsForOracleLinkedService - AmazonRdsForOracle database. #### func (*AmazonRdsForOracleLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L391) [¶](#AmazonRdsForOracleLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AmazonRdsForOracleLinkedService](#AmazonRdsForOracleLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AmazonRdsForOracleLinkedService. #### func (AmazonRdsForOracleLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L700) [¶](#AmazonRdsForOracleLinkedService.MarshalJSON) ``` func (a [AmazonRdsForOracleLinkedService](#AmazonRdsForOracleLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleLinkedService. #### func (*AmazonRdsForOracleLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L717) [¶](#AmazonRdsForOracleLinkedService.UnmarshalJSON) ``` func (a *[AmazonRdsForOracleLinkedService](#AmazonRdsForOracleLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForOracleLinkedService. #### type [AmazonRdsForOraclePartitionOption](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L17) [¶](#AmazonRdsForOraclePartitionOption) ``` type AmazonRdsForOraclePartitionOption [string](/builtin#string) ``` ``` const ( AmazonRdsForOraclePartitionOptionDynamicRange [AmazonRdsForOraclePartitionOption](#AmazonRdsForOraclePartitionOption) = "DynamicRange" AmazonRdsForOraclePartitionOptionNone [AmazonRdsForOraclePartitionOption](#AmazonRdsForOraclePartitionOption) = "None" AmazonRdsForOraclePartitionOptionPhysicalPartitionsOfTable [AmazonRdsForOraclePartitionOption](#AmazonRdsForOraclePartitionOption) = "PhysicalPartitionsOfTable" ) ``` #### func [PossibleAmazonRdsForOraclePartitionOptionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L26) [¶](#PossibleAmazonRdsForOraclePartitionOptionValues) ``` func PossibleAmazonRdsForOraclePartitionOptionValues() [][AmazonRdsForOraclePartitionOption](#AmazonRdsForOraclePartitionOption) ``` PossibleAmazonRdsForOraclePartitionOptionValues returns the possible values for the AmazonRdsForOraclePartitionOption const type. #### type [AmazonRdsForOraclePartitionSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L403) [¶](#AmazonRdsForOraclePartitionSettings) ``` type AmazonRdsForOraclePartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` // Names of the physical partitions of AmazonRdsForOracle table. PartitionNames interface{} `json:"partitionNames,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` } ``` AmazonRdsForOraclePartitionSettings - The settings that will be leveraged for AmazonRdsForOracle source partitioning. #### func (AmazonRdsForOraclePartitionSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L762) [¶](#AmazonRdsForOraclePartitionSettings.MarshalJSON) added in v1.3.0 ``` func (a [AmazonRdsForOraclePartitionSettings](#AmazonRdsForOraclePartitionSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOraclePartitionSettings. #### func (*AmazonRdsForOraclePartitionSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L772) [¶](#AmazonRdsForOraclePartitionSettings.UnmarshalJSON) added in v1.3.0 ``` func (a *[AmazonRdsForOraclePartitionSettings](#AmazonRdsForOraclePartitionSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForOraclePartitionSettings. #### type [AmazonRdsForOracleSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L421) [¶](#AmazonRdsForOracleSource) ``` type AmazonRdsForOracleSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // AmazonRdsForOracle reader query. Type: string (or Expression with resultType string). OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` // The partition mechanism that will be used for AmazonRdsForOracle read in parallel. Type: string (or Expression with resultType // string). PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for AmazonRdsForOracle source partitioning. PartitionSettings *[AmazonRdsForOraclePartitionSettings](#AmazonRdsForOraclePartitionSettings) `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AmazonRdsForOracleSource - A copy activity AmazonRdsForOracle source. #### func (*AmazonRdsForOracleSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L459) [¶](#AmazonRdsForOracleSource.GetCopySource) added in v0.2.0 ``` func (a *[AmazonRdsForOracleSource](#AmazonRdsForOracleSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AmazonRdsForOracleSource. #### func (AmazonRdsForOracleSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L801) [¶](#AmazonRdsForOracleSource.MarshalJSON) ``` func (a [AmazonRdsForOracleSource](#AmazonRdsForOracleSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleSource. #### func (*AmazonRdsForOracleSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L822) [¶](#AmazonRdsForOracleSource.UnmarshalJSON) ``` func (a *[AmazonRdsForOracleSource](#AmazonRdsForOracleSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForOracleSource. #### type [AmazonRdsForOracleTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L471) [¶](#AmazonRdsForOracleTableDataset) ``` type AmazonRdsForOracleTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // AmazonRdsForOracle dataset properties. TypeProperties *[AmazonRdsForOracleTableDatasetTypeProperties](#AmazonRdsForOracleTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AmazonRdsForOracleTableDataset - The AmazonRdsForOracle database dataset. #### func (*AmazonRdsForOracleTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L505) [¶](#AmazonRdsForOracleTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AmazonRdsForOracleTableDataset](#AmazonRdsForOracleTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AmazonRdsForOracleTableDataset. #### func (AmazonRdsForOracleTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L879) [¶](#AmazonRdsForOracleTableDataset.MarshalJSON) ``` func (a [AmazonRdsForOracleTableDataset](#AmazonRdsForOracleTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleTableDataset. #### func (*AmazonRdsForOracleTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L899) [¶](#AmazonRdsForOracleTableDataset.UnmarshalJSON) ``` func (a *[AmazonRdsForOracleTableDataset](#AmazonRdsForOracleTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForOracleTableDataset. #### type [AmazonRdsForOracleTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L520) [¶](#AmazonRdsForOracleTableDatasetTypeProperties) ``` type AmazonRdsForOracleTableDatasetTypeProperties struct { // The schema name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } ``` AmazonRdsForOracleTableDatasetTypeProperties - AmazonRdsForOracle dataset properties. #### func (AmazonRdsForOracleTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L953) [¶](#AmazonRdsForOracleTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AmazonRdsForOracleTableDatasetTypeProperties](#AmazonRdsForOracleTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleTableDatasetTypeProperties. #### func (*AmazonRdsForOracleTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L961) [¶](#AmazonRdsForOracleTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AmazonRdsForOracleTableDatasetTypeProperties](#AmazonRdsForOracleTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForOracleTableDatasetTypeProperties. #### type [AmazonRdsForSQLServerLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L529) [¶](#AmazonRdsForSQLServerLinkedService) ``` type AmazonRdsForSQLServerLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Amazon RDS for SQL Server linked service properties. TypeProperties *[AmazonRdsForSQLServerLinkedServiceTypeProperties](#AmazonRdsForSQLServerLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AmazonRdsForSQLServerLinkedService - Amazon RDS for SQL Server linked service. #### func (*AmazonRdsForSQLServerLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L553) [¶](#AmazonRdsForSQLServerLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AmazonRdsForSQLServerLinkedService](#AmazonRdsForSQLServerLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AmazonRdsForSQLServerLinkedService. #### func (AmazonRdsForSQLServerLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L984) [¶](#AmazonRdsForSQLServerLinkedService.MarshalJSON) ``` func (a [AmazonRdsForSQLServerLinkedService](#AmazonRdsForSQLServerLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerLinkedService. #### func (*AmazonRdsForSQLServerLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1001) [¶](#AmazonRdsForSQLServerLinkedService.UnmarshalJSON) ``` func (a *[AmazonRdsForSQLServerLinkedService](#AmazonRdsForSQLServerLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForSQLServerLinkedService. #### type [AmazonRdsForSQLServerLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L565) [¶](#AmazonRdsForSQLServerLinkedServiceTypeProperties) ``` type AmazonRdsForSQLServerLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Sql always encrypted properties. AlwaysEncryptedSettings *[SQLAlwaysEncryptedProperties](#SQLAlwaysEncryptedProperties) `json:"alwaysEncryptedSettings,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The on-premises Windows authentication password. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The on-premises Windows authentication user name. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` AmazonRdsForSQLServerLinkedServiceTypeProperties - Amazon Rds for SQL Server linked service properties. #### func (AmazonRdsForSQLServerLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1046) [¶](#AmazonRdsForSQLServerLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AmazonRdsForSQLServerLinkedServiceTypeProperties](#AmazonRdsForSQLServerLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerLinkedServiceTypeProperties. #### func (*AmazonRdsForSQLServerLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1057) [¶](#AmazonRdsForSQLServerLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AmazonRdsForSQLServerLinkedServiceTypeProperties](#AmazonRdsForSQLServerLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForSQLServerLinkedServiceTypeProperties. #### type [AmazonRdsForSQLServerSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L584) [¶](#AmazonRdsForSQLServerSource) ``` type AmazonRdsForSQLServerSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *[SQLPartitionSettings](#SQLPartitionSettings) `json:"partitionSettings,omitempty"` // Which additional types to produce. ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` } ``` AmazonRdsForSQLServerSource - A copy activity Amazon RDS for SQL Server source. #### func (*AmazonRdsForSQLServerSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L632) [¶](#AmazonRdsForSQLServerSource.GetCopySource) added in v0.2.0 ``` func (a *[AmazonRdsForSQLServerSource](#AmazonRdsForSQLServerSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AmazonRdsForSQLServerSource. #### func (*AmazonRdsForSQLServerSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L644) [¶](#AmazonRdsForSQLServerSource.GetTabularSource) added in v0.2.0 ``` func (a *[AmazonRdsForSQLServerSource](#AmazonRdsForSQLServerSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type AmazonRdsForSQLServerSource. #### func (AmazonRdsForSQLServerSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1089) [¶](#AmazonRdsForSQLServerSource.MarshalJSON) ``` func (a [AmazonRdsForSQLServerSource](#AmazonRdsForSQLServerSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerSource. #### func (*AmazonRdsForSQLServerSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1113) [¶](#AmazonRdsForSQLServerSource.UnmarshalJSON) ``` func (a *[AmazonRdsForSQLServerSource](#AmazonRdsForSQLServerSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForSQLServerSource. #### type [AmazonRdsForSQLServerTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L658) [¶](#AmazonRdsForSQLServerTableDataset) ``` type AmazonRdsForSQLServerTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // The Amazon RDS for SQL Server dataset properties. TypeProperties *[AmazonRdsForSQLServerTableDatasetTypeProperties](#AmazonRdsForSQLServerTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AmazonRdsForSQLServerTableDataset - The Amazon RDS for SQL Server dataset. #### func (*AmazonRdsForSQLServerTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L692) [¶](#AmazonRdsForSQLServerTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AmazonRdsForSQLServerTableDataset](#AmazonRdsForSQLServerTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AmazonRdsForSQLServerTableDataset. #### func (AmazonRdsForSQLServerTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1179) [¶](#AmazonRdsForSQLServerTableDataset.MarshalJSON) ``` func (a [AmazonRdsForSQLServerTableDataset](#AmazonRdsForSQLServerTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerTableDataset. #### func (*AmazonRdsForSQLServerTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1199) [¶](#AmazonRdsForSQLServerTableDataset.UnmarshalJSON) ``` func (a *[AmazonRdsForSQLServerTableDataset](#AmazonRdsForSQLServerTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForSQLServerTableDataset. #### type [AmazonRdsForSQLServerTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L707) [¶](#AmazonRdsForSQLServerTableDatasetTypeProperties) ``` type AmazonRdsForSQLServerTableDatasetTypeProperties struct { // The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the SQL Server dataset. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } ``` AmazonRdsForSQLServerTableDatasetTypeProperties - The Amazon RDS for SQL Server dataset properties. #### func (AmazonRdsForSQLServerTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1253) [¶](#AmazonRdsForSQLServerTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AmazonRdsForSQLServerTableDatasetTypeProperties](#AmazonRdsForSQLServerTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerTableDatasetTypeProperties. #### func (*AmazonRdsForSQLServerTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1261) [¶](#AmazonRdsForSQLServerTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AmazonRdsForSQLServerTableDatasetTypeProperties](#AmazonRdsForSQLServerTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForSQLServerTableDatasetTypeProperties. #### type [AmazonRedshiftLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L716) [¶](#AmazonRedshiftLinkedService) ``` type AmazonRedshiftLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Amazon Redshift linked service properties. TypeProperties *[AmazonRedshiftLinkedServiceTypeProperties](#AmazonRedshiftLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AmazonRedshiftLinkedService - Linked service for Amazon Redshift. #### func (*AmazonRedshiftLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L740) [¶](#AmazonRedshiftLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AmazonRedshiftLinkedService](#AmazonRedshiftLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AmazonRedshiftLinkedService. #### func (AmazonRedshiftLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1284) [¶](#AmazonRedshiftLinkedService.MarshalJSON) ``` func (a [AmazonRedshiftLinkedService](#AmazonRedshiftLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftLinkedService. #### func (*AmazonRedshiftLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1301) [¶](#AmazonRedshiftLinkedService.UnmarshalJSON) ``` func (a *[AmazonRedshiftLinkedService](#AmazonRedshiftLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRedshiftLinkedService. #### type [AmazonRedshiftLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L752) [¶](#AmazonRedshiftLinkedServiceTypeProperties) ``` type AmazonRedshiftLinkedServiceTypeProperties struct { // REQUIRED; The database name of the Amazon Redshift source. Type: string (or Expression with resultType string). Database interface{} `json:"database,omitempty"` // REQUIRED; The name of the Amazon Redshift server. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password of the Amazon Redshift source. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is 5439. Type: // integer (or Expression with resultType integer). Port interface{} `json:"port,omitempty"` // The username of the Amazon Redshift source. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` AmazonRedshiftLinkedServiceTypeProperties - Amazon Redshift linked service properties. #### func (AmazonRedshiftLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1346) [¶](#AmazonRedshiftLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AmazonRedshiftLinkedServiceTypeProperties](#AmazonRedshiftLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftLinkedServiceTypeProperties. #### func (*AmazonRedshiftLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1358) [¶](#AmazonRedshiftLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AmazonRedshiftLinkedServiceTypeProperties](#AmazonRedshiftLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRedshiftLinkedServiceTypeProperties. #### type [AmazonRedshiftSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L775) [¶](#AmazonRedshiftSource) ``` type AmazonRedshiftSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with unload. With this, data // from Amazon Redshift source will be unloaded into S3 first and then copied into // the targeted sink from the interim S3. RedshiftUnloadSettings *[RedshiftUnloadSettings](#RedshiftUnloadSettings) `json:"redshiftUnloadSettings,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AmazonRedshiftSource - A copy activity source for Amazon Redshift Source. #### func (*AmazonRedshiftSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L811) [¶](#AmazonRedshiftSource.GetCopySource) added in v0.2.0 ``` func (a *[AmazonRedshiftSource](#AmazonRedshiftSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AmazonRedshiftSource. #### func (*AmazonRedshiftSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L823) [¶](#AmazonRedshiftSource.GetTabularSource) added in v0.2.0 ``` func (a *[AmazonRedshiftSource](#AmazonRedshiftSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type AmazonRedshiftSource. #### func (AmazonRedshiftSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1393) [¶](#AmazonRedshiftSource.MarshalJSON) ``` func (a [AmazonRedshiftSource](#AmazonRedshiftSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftSource. #### func (*AmazonRedshiftSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1413) [¶](#AmazonRedshiftSource.UnmarshalJSON) ``` func (a *[AmazonRedshiftSource](#AmazonRedshiftSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRedshiftSource. #### type [AmazonRedshiftTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L837) [¶](#AmazonRedshiftTableDataset) ``` type AmazonRedshiftTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Amazon Redshift table dataset properties. TypeProperties *[AmazonRedshiftTableDatasetTypeProperties](#AmazonRedshiftTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AmazonRedshiftTableDataset - The Amazon Redshift table dataset. #### func (*AmazonRedshiftTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L871) [¶](#AmazonRedshiftTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AmazonRedshiftTableDataset](#AmazonRedshiftTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AmazonRedshiftTableDataset. #### func (AmazonRedshiftTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1467) [¶](#AmazonRedshiftTableDataset.MarshalJSON) ``` func (a [AmazonRedshiftTableDataset](#AmazonRedshiftTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftTableDataset. #### func (*AmazonRedshiftTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1487) [¶](#AmazonRedshiftTableDataset.UnmarshalJSON) ``` func (a *[AmazonRedshiftTableDataset](#AmazonRedshiftTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRedshiftTableDataset. #### type [AmazonRedshiftTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L886) [¶](#AmazonRedshiftTableDatasetTypeProperties) ``` type AmazonRedshiftTableDatasetTypeProperties struct { // The Amazon Redshift schema name. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The Amazon Redshift table name. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` AmazonRedshiftTableDatasetTypeProperties - Amazon Redshift table dataset properties. #### func (AmazonRedshiftTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1541) [¶](#AmazonRedshiftTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AmazonRedshiftTableDatasetTypeProperties](#AmazonRedshiftTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftTableDatasetTypeProperties. #### func (*AmazonRedshiftTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1550) [¶](#AmazonRedshiftTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AmazonRedshiftTableDatasetTypeProperties](#AmazonRedshiftTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRedshiftTableDatasetTypeProperties. #### type [AmazonS3CompatibleLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L898) [¶](#AmazonS3CompatibleLinkedService) ``` type AmazonS3CompatibleLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Amazon S3 Compatible linked service properties. TypeProperties *[AmazonS3CompatibleLinkedServiceTypeProperties](#AmazonS3CompatibleLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AmazonS3CompatibleLinkedService - Linked service for Amazon S3 Compatible. #### func (*AmazonS3CompatibleLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L922) [¶](#AmazonS3CompatibleLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AmazonS3CompatibleLinkedService](#AmazonS3CompatibleLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AmazonS3CompatibleLinkedService. #### func (AmazonS3CompatibleLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1576) [¶](#AmazonS3CompatibleLinkedService.MarshalJSON) ``` func (a [AmazonS3CompatibleLinkedService](#AmazonS3CompatibleLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLinkedService. #### func (*AmazonS3CompatibleLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1593) [¶](#AmazonS3CompatibleLinkedService.UnmarshalJSON) ``` func (a *[AmazonS3CompatibleLinkedService](#AmazonS3CompatibleLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3CompatibleLinkedService. #### type [AmazonS3CompatibleLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L934) [¶](#AmazonS3CompatibleLinkedServiceTypeProperties) ``` type AmazonS3CompatibleLinkedServiceTypeProperties struct { // The access key identifier of the Amazon S3 Compatible Identity and Access Management (IAM) user. Type: string (or Expression // with resultType string). AccessKeyID interface{} `json:"accessKeyId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // If true, use S3 path-style access instead of virtual hosted-style access. Default value is false. Type: boolean (or Expression // with resultType boolean). ForcePathStyle interface{} `json:"forcePathStyle,omitempty"` // The secret access key of the Amazon S3 Compatible Identity and Access Management (IAM) user. SecretAccessKey [SecretBaseClassification](#SecretBaseClassification) `json:"secretAccessKey,omitempty"` // This value specifies the endpoint to access with the Amazon S3 Compatible Connector. This is an optional property; change // it only if you want to try a different service endpoint or want to switch // between https and http. Type: string (or Expression with resultType string). ServiceURL interface{} `json:"serviceUrl,omitempty"` } ``` AmazonS3CompatibleLinkedServiceTypeProperties - Amazon S3 Compatible linked service properties. #### func (AmazonS3CompatibleLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1638) [¶](#AmazonS3CompatibleLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AmazonS3CompatibleLinkedServiceTypeProperties](#AmazonS3CompatibleLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLinkedServiceTypeProperties. #### func (*AmazonS3CompatibleLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1649) [¶](#AmazonS3CompatibleLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AmazonS3CompatibleLinkedServiceTypeProperties](#AmazonS3CompatibleLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3CompatibleLinkedServiceTypeProperties. #### type [AmazonS3CompatibleLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L957) [¶](#AmazonS3CompatibleLocation) ``` type AmazonS3CompatibleLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with resultType string) BucketName interface{} `json:"bucketName,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` // Specify the version of Amazon S3 Compatible. Type: string (or Expression with resultType string). Version interface{} `json:"version,omitempty"` } ``` AmazonS3CompatibleLocation - The location of Amazon S3 Compatible dataset. #### func (*AmazonS3CompatibleLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L978) [¶](#AmazonS3CompatibleLocation.GetDatasetLocation) added in v0.2.0 ``` func (a *[AmazonS3CompatibleLocation](#AmazonS3CompatibleLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type AmazonS3CompatibleLocation. #### func (AmazonS3CompatibleLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1681) [¶](#AmazonS3CompatibleLocation.MarshalJSON) ``` func (a [AmazonS3CompatibleLocation](#AmazonS3CompatibleLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLocation. #### func (*AmazonS3CompatibleLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1697) [¶](#AmazonS3CompatibleLocation.UnmarshalJSON) ``` func (a *[AmazonS3CompatibleLocation](#AmazonS3CompatibleLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3CompatibleLocation. #### type [AmazonS3CompatibleReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L988) [¶](#AmazonS3CompatibleReadSettings) ``` type AmazonS3CompatibleReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // The prefix filter for the S3 Compatible object name. Type: string (or Expression with resultType string). Prefix interface{} `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Amazon S3 Compatible wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` AmazonS3CompatibleReadSettings - Amazon S3 Compatible read settings. #### func (*AmazonS3CompatibleReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1036) [¶](#AmazonS3CompatibleReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (a *[AmazonS3CompatibleReadSettings](#AmazonS3CompatibleReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AmazonS3CompatibleReadSettings. #### func (AmazonS3CompatibleReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1739) [¶](#AmazonS3CompatibleReadSettings.MarshalJSON) ``` func (a [AmazonS3CompatibleReadSettings](#AmazonS3CompatibleReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleReadSettings. #### func (*AmazonS3CompatibleReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1763) [¶](#AmazonS3CompatibleReadSettings.UnmarshalJSON) ``` func (a *[AmazonS3CompatibleReadSettings](#AmazonS3CompatibleReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3CompatibleReadSettings. #### type [AmazonS3Dataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1046) [¶](#AmazonS3Dataset) ``` type AmazonS3Dataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Amazon S3 dataset properties. TypeProperties *[AmazonS3DatasetTypeProperties](#AmazonS3DatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` AmazonS3Dataset - A single Amazon Simple Storage Service (S3) object or a set of S3 objects. #### func (*AmazonS3Dataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1080) [¶](#AmazonS3Dataset.GetDataset) added in v0.2.0 ``` func (a *[AmazonS3Dataset](#AmazonS3Dataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AmazonS3Dataset. #### func (AmazonS3Dataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1829) [¶](#AmazonS3Dataset.MarshalJSON) ``` func (a [AmazonS3Dataset](#AmazonS3Dataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3Dataset. #### func (*AmazonS3Dataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1849) [¶](#AmazonS3Dataset.UnmarshalJSON) ``` func (a *[AmazonS3Dataset](#AmazonS3Dataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3Dataset. #### type [AmazonS3DatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1095) [¶](#AmazonS3DatasetTypeProperties) ``` type AmazonS3DatasetTypeProperties struct { // REQUIRED; The name of the Amazon S3 bucket. Type: string (or Expression with resultType string). BucketName interface{} `json:"bucketName,omitempty"` // The data compression method used for the Amazon S3 object. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // The format of files. Format [DatasetStorageFormatClassification](#DatasetStorageFormatClassification) `json:"format,omitempty"` // The key of the Amazon S3 object. Type: string (or Expression with resultType string). Key interface{} `json:"key,omitempty"` // The end of S3 object's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of S3 object's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // The prefix filter for the S3 object name. Type: string (or Expression with resultType string). Prefix interface{} `json:"prefix,omitempty"` // The version for the S3 object. Type: string (or Expression with resultType string). Version interface{} `json:"version,omitempty"` } ``` AmazonS3DatasetTypeProperties - Amazon S3 dataset properties. #### func (AmazonS3DatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1903) [¶](#AmazonS3DatasetTypeProperties.MarshalJSON) ``` func (a [AmazonS3DatasetTypeProperties](#AmazonS3DatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3DatasetTypeProperties. #### func (*AmazonS3DatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1917) [¶](#AmazonS3DatasetTypeProperties.UnmarshalJSON) ``` func (a *[AmazonS3DatasetTypeProperties](#AmazonS3DatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3DatasetTypeProperties. #### type [AmazonS3LinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1122) [¶](#AmazonS3LinkedService) ``` type AmazonS3LinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Amazon S3 linked service properties. TypeProperties *[AmazonS3LinkedServiceTypeProperties](#AmazonS3LinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AmazonS3LinkedService - Linked service for Amazon S3. #### func (*AmazonS3LinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1146) [¶](#AmazonS3LinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AmazonS3LinkedService](#AmazonS3LinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AmazonS3LinkedService. #### func (AmazonS3LinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1958) [¶](#AmazonS3LinkedService.MarshalJSON) ``` func (a [AmazonS3LinkedService](#AmazonS3LinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3LinkedService. #### func (*AmazonS3LinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L1975) [¶](#AmazonS3LinkedService.UnmarshalJSON) ``` func (a *[AmazonS3LinkedService](#AmazonS3LinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3LinkedService. #### type [AmazonS3LinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1158) [¶](#AmazonS3LinkedServiceTypeProperties) ``` type AmazonS3LinkedServiceTypeProperties struct { // The access key identifier of the Amazon S3 Identity and Access Management (IAM) user. Type: string (or Expression with // resultType string). AccessKeyID interface{} `json:"accessKeyId,omitempty"` // The authentication type of S3. Allowed value: AccessKey (default) or TemporarySecurityCredentials. Type: string (or Expression // with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The secret access key of the Amazon S3 Identity and Access Management (IAM) user. SecretAccessKey [SecretBaseClassification](#SecretBaseClassification) `json:"secretAccessKey,omitempty"` // This value specifies the endpoint to access with the S3 Connector. This is an optional property; change it only if you // want to try a different service endpoint or want to switch between https and // http. Type: string (or Expression with resultType string). ServiceURL interface{} `json:"serviceUrl,omitempty"` // The session token for the S3 temporary security credential. SessionToken [SecretBaseClassification](#SecretBaseClassification) `json:"sessionToken,omitempty"` } ``` AmazonS3LinkedServiceTypeProperties - Amazon S3 linked service properties. #### func (AmazonS3LinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2020) [¶](#AmazonS3LinkedServiceTypeProperties.MarshalJSON) ``` func (a [AmazonS3LinkedServiceTypeProperties](#AmazonS3LinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3LinkedServiceTypeProperties. #### func (*AmazonS3LinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2032) [¶](#AmazonS3LinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AmazonS3LinkedServiceTypeProperties](#AmazonS3LinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3LinkedServiceTypeProperties. #### type [AmazonS3Location](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1184) [¶](#AmazonS3Location) ``` type AmazonS3Location struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the bucketName of amazon S3. Type: string (or Expression with resultType string) BucketName interface{} `json:"bucketName,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` // Specify the version of amazon S3. Type: string (or Expression with resultType string). Version interface{} `json:"version,omitempty"` } ``` AmazonS3Location - The location of amazon S3 dataset. #### func (*AmazonS3Location) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1205) [¶](#AmazonS3Location.GetDatasetLocation) added in v0.2.0 ``` func (a *[AmazonS3Location](#AmazonS3Location)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type AmazonS3Location. #### func (AmazonS3Location) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2067) [¶](#AmazonS3Location.MarshalJSON) ``` func (a [AmazonS3Location](#AmazonS3Location)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3Location. #### func (*AmazonS3Location) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2083) [¶](#AmazonS3Location.UnmarshalJSON) ``` func (a *[AmazonS3Location](#AmazonS3Location)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3Location. #### type [AmazonS3ReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1215) [¶](#AmazonS3ReadSettings) ``` type AmazonS3ReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // The prefix filter for the S3 object name. Type: string (or Expression with resultType string). Prefix interface{} `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // AmazonS3 wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` AmazonS3ReadSettings - Amazon S3 read settings. #### func (*AmazonS3ReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1263) [¶](#AmazonS3ReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (a *[AmazonS3ReadSettings](#AmazonS3ReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AmazonS3ReadSettings. #### func (AmazonS3ReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2125) [¶](#AmazonS3ReadSettings.MarshalJSON) ``` func (a [AmazonS3ReadSettings](#AmazonS3ReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AmazonS3ReadSettings. #### func (*AmazonS3ReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2149) [¶](#AmazonS3ReadSettings.UnmarshalJSON) ``` func (a *[AmazonS3ReadSettings](#AmazonS3ReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AmazonS3ReadSettings. #### type [AppFiguresLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1273) [¶](#AppFiguresLinkedService) added in v0.5.0 ``` type AppFiguresLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; AppFigures linked service properties. TypeProperties *[AppFiguresLinkedServiceTypeProperties](#AppFiguresLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AppFiguresLinkedService - Linked service for AppFigures. #### func (*AppFiguresLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1297) [¶](#AppFiguresLinkedService.GetLinkedService) added in v0.5.0 ``` func (a *[AppFiguresLinkedService](#AppFiguresLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AppFiguresLinkedService. #### func (AppFiguresLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2215) [¶](#AppFiguresLinkedService.MarshalJSON) added in v0.5.0 ``` func (a [AppFiguresLinkedService](#AppFiguresLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AppFiguresLinkedService. #### func (*AppFiguresLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2232) [¶](#AppFiguresLinkedService.UnmarshalJSON) added in v0.5.0 ``` func (a *[AppFiguresLinkedService](#AppFiguresLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AppFiguresLinkedService. #### type [AppFiguresLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1309) [¶](#AppFiguresLinkedServiceTypeProperties) added in v0.5.0 ``` type AppFiguresLinkedServiceTypeProperties struct { // REQUIRED; The client key for the AppFigures source. ClientKey [SecretBaseClassification](#SecretBaseClassification) `json:"clientKey,omitempty"` // REQUIRED; The password of the AppFigures source. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // REQUIRED; The username of the Appfigures source. UserName interface{} `json:"userName,omitempty"` } ``` AppFiguresLinkedServiceTypeProperties - AppFigures linked service type properties. #### func (AppFiguresLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2277) [¶](#AppFiguresLinkedServiceTypeProperties.MarshalJSON) added in v0.5.0 ``` func (a [AppFiguresLinkedServiceTypeProperties](#AppFiguresLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AppFiguresLinkedServiceTypeProperties. #### func (*AppFiguresLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2286) [¶](#AppFiguresLinkedServiceTypeProperties.UnmarshalJSON) added in v0.5.0 ``` func (a *[AppFiguresLinkedServiceTypeProperties](#AppFiguresLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AppFiguresLinkedServiceTypeProperties. #### type [AppendVariableActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1321) [¶](#AppendVariableActivity) ``` type AppendVariableActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Append Variable activity properties. TypeProperties *[AppendVariableActivityTypeProperties](#AppendVariableActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` AppendVariableActivity - Append value for a Variable of type Array. #### func (*AppendVariableActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1345) [¶](#AppendVariableActivity.GetActivity) added in v0.2.0 ``` func (a *[AppendVariableActivity](#AppendVariableActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type AppendVariableActivity. #### func (*AppendVariableActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1357) [¶](#AppendVariableActivity.GetControlActivity) added in v0.2.0 ``` func (a *[AppendVariableActivity](#AppendVariableActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type AppendVariableActivity. #### func (AppendVariableActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2312) [¶](#AppendVariableActivity.MarshalJSON) ``` func (a [AppendVariableActivity](#AppendVariableActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AppendVariableActivity. #### func (*AppendVariableActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2329) [¶](#AppendVariableActivity.UnmarshalJSON) ``` func (a *[AppendVariableActivity](#AppendVariableActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AppendVariableActivity. #### type [AppendVariableActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1369) [¶](#AppendVariableActivityTypeProperties) ``` type AppendVariableActivityTypeProperties struct { // Value to be appended. Could be a static value or Expression Value interface{} `json:"value,omitempty"` // Name of the variable whose value needs to be appended to. VariableName *[string](/builtin#string) `json:"variableName,omitempty"` } ``` AppendVariableActivityTypeProperties - AppendVariable activity properties. #### func (AppendVariableActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2374) [¶](#AppendVariableActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AppendVariableActivityTypeProperties](#AppendVariableActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AppendVariableActivityTypeProperties. #### func (*AppendVariableActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2382) [¶](#AppendVariableActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AppendVariableActivityTypeProperties](#AppendVariableActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AppendVariableActivityTypeProperties. #### type [ArmIDWrapper](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1378) [¶](#ArmIDWrapper) ``` type ArmIDWrapper struct { // READ-ONLY ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` } ``` ArmIDWrapper - A wrapper for an ARM resource id #### func (ArmIDWrapper) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2405) [¶](#ArmIDWrapper.MarshalJSON) added in v1.3.0 ``` func (a [ArmIDWrapper](#ArmIDWrapper)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ArmIDWrapper. #### func (*ArmIDWrapper) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2412) [¶](#ArmIDWrapper.UnmarshalJSON) added in v1.3.0 ``` func (a *[ArmIDWrapper](#ArmIDWrapper)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ArmIDWrapper. #### type [AsanaLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1384) [¶](#AsanaLinkedService) added in v0.5.0 ``` type AsanaLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Asana linked service properties. TypeProperties *[AsanaLinkedServiceTypeProperties](#AsanaLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AsanaLinkedService - Linked service for Asana. #### func (*AsanaLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1408) [¶](#AsanaLinkedService.GetLinkedService) added in v0.5.0 ``` func (a *[AsanaLinkedService](#AsanaLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AsanaLinkedService. #### func (AsanaLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2432) [¶](#AsanaLinkedService.MarshalJSON) added in v0.5.0 ``` func (a [AsanaLinkedService](#AsanaLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AsanaLinkedService. #### func (*AsanaLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2449) [¶](#AsanaLinkedService.UnmarshalJSON) added in v0.5.0 ``` func (a *[AsanaLinkedService](#AsanaLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AsanaLinkedService. #### type [AsanaLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1420) [¶](#AsanaLinkedServiceTypeProperties) added in v0.5.0 ``` type AsanaLinkedServiceTypeProperties struct { // REQUIRED; The api token for the Asana source. APIToken [SecretBaseClassification](#SecretBaseClassification) `json:"apiToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` AsanaLinkedServiceTypeProperties - Asana linked service type properties. #### func (AsanaLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2494) [¶](#AsanaLinkedServiceTypeProperties.MarshalJSON) added in v0.5.0 ``` func (a [AsanaLinkedServiceTypeProperties](#AsanaLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AsanaLinkedServiceTypeProperties. #### func (*AsanaLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2502) [¶](#AsanaLinkedServiceTypeProperties.UnmarshalJSON) added in v0.5.0 ``` func (a *[AsanaLinkedServiceTypeProperties](#AsanaLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AsanaLinkedServiceTypeProperties. #### type [AvroCompressionCodec](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L34) [¶](#AvroCompressionCodec) ``` type AvroCompressionCodec [string](/builtin#string) ``` ``` const ( AvroCompressionCodecBzip2 [AvroCompressionCodec](#AvroCompressionCodec) = "bzip2" AvroCompressionCodecDeflate [AvroCompressionCodec](#AvroCompressionCodec) = "deflate" AvroCompressionCodecNone [AvroCompressionCodec](#AvroCompressionCodec) = "none" AvroCompressionCodecSnappy [AvroCompressionCodec](#AvroCompressionCodec) = "snappy" AvroCompressionCodecXz [AvroCompressionCodec](#AvroCompressionCodec) = "xz" ) ``` #### func [PossibleAvroCompressionCodecValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L45) [¶](#PossibleAvroCompressionCodecValues) ``` func PossibleAvroCompressionCodecValues() [][AvroCompressionCodec](#AvroCompressionCodec) ``` PossibleAvroCompressionCodecValues returns the possible values for the AvroCompressionCodec const type. #### type [AvroDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1430) [¶](#AvroDataset) ``` type AvroDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Avro dataset properties. TypeProperties *[AvroDatasetTypeProperties](#AvroDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AvroDataset - Avro dataset. #### func (*AvroDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1464) [¶](#AvroDataset.GetDataset) added in v0.2.0 ``` func (a *[AvroDataset](#AvroDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AvroDataset. #### func (AvroDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2525) [¶](#AvroDataset.MarshalJSON) ``` func (a [AvroDataset](#AvroDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AvroDataset. #### func (*AvroDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2545) [¶](#AvroDataset.UnmarshalJSON) ``` func (a *[AvroDataset](#AvroDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AvroDataset. #### type [AvroDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1479) [¶](#AvroDatasetTypeProperties) ``` type AvroDatasetTypeProperties struct { // REQUIRED; The location of the avro storage. Location [DatasetLocationClassification](#DatasetLocationClassification) `json:"location,omitempty"` // The data avroCompressionCodec. Type: string (or Expression with resultType string). AvroCompressionCodec interface{} `json:"avroCompressionCodec,omitempty"` AvroCompressionLevel *[int32](/builtin#int32) `json:"avroCompressionLevel,omitempty"` } ``` AvroDatasetTypeProperties - Avro dataset properties. #### func (AvroDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2599) [¶](#AvroDatasetTypeProperties.MarshalJSON) ``` func (a [AvroDatasetTypeProperties](#AvroDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AvroDatasetTypeProperties. #### func (*AvroDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2608) [¶](#AvroDatasetTypeProperties.UnmarshalJSON) ``` func (a *[AvroDatasetTypeProperties](#AvroDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AvroDatasetTypeProperties. #### type [AvroFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1489) [¶](#AvroFormat) ``` type AvroFormat struct { // REQUIRED; Type of dataset storage format. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Deserializer. Type: string (or Expression with resultType string). Deserializer interface{} `json:"deserializer,omitempty"` // Serializer. Type: string (or Expression with resultType string). Serializer interface{} `json:"serializer,omitempty"` } ``` AvroFormat - The data stored in Avro format. #### func (*AvroFormat) [GetDatasetStorageFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1504) [¶](#AvroFormat.GetDatasetStorageFormat) added in v0.2.0 ``` func (a *[AvroFormat](#AvroFormat)) GetDatasetStorageFormat() *[DatasetStorageFormat](#DatasetStorageFormat) ``` GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type AvroFormat. #### func (AvroFormat) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2634) [¶](#AvroFormat.MarshalJSON) ``` func (a [AvroFormat](#AvroFormat)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AvroFormat. #### func (*AvroFormat) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2648) [¶](#AvroFormat.UnmarshalJSON) added in v0.2.0 ``` func (a *[AvroFormat](#AvroFormat)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AvroFormat. #### type [AvroSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1514) [¶](#AvroSink) ``` type AvroSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Avro format settings. FormatSettings *[AvroWriteSettings](#AvroWriteSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Avro store settings. StoreSettings [StoreWriteSettingsClassification](#StoreWriteSettingsClassification) `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AvroSink - A copy activity Avro sink. #### func (*AvroSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1547) [¶](#AvroSink.GetCopySink) added in v0.2.0 ``` func (a *[AvroSink](#AvroSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AvroSink. #### func (AvroSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2684) [¶](#AvroSink.MarshalJSON) ``` func (a [AvroSink](#AvroSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AvroSink. #### func (*AvroSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2704) [¶](#AvroSink.UnmarshalJSON) ``` func (a *[AvroSink](#AvroSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AvroSink. #### type [AvroSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1561) [¶](#AvroSource) ``` type AvroSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Avro store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` AvroSource - A copy activity Avro source. #### func (*AvroSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1589) [¶](#AvroSource.GetCopySource) added in v0.2.0 ``` func (a *[AvroSource](#AvroSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AvroSource. #### func (AvroSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2758) [¶](#AvroSource.MarshalJSON) ``` func (a [AvroSource](#AvroSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AvroSource. #### func (*AvroSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2776) [¶](#AvroSource.UnmarshalJSON) ``` func (a *[AvroSource](#AvroSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AvroSource. #### type [AvroWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1601) [¶](#AvroWriteSettings) ``` type AvroWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` // Top level record name in write result, which is required in AVRO spec. RecordName *[string](/builtin#string) `json:"recordName,omitempty"` // Record namespace in the write result. RecordNamespace *[string](/builtin#string) `json:"recordNamespace,omitempty"` } ``` AvroWriteSettings - Avro write settings. #### func (*AvroWriteSettings) [GetFormatWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1624) [¶](#AvroWriteSettings.GetFormatWriteSettings) added in v0.2.0 ``` func (a *[AvroWriteSettings](#AvroWriteSettings)) GetFormatWriteSettings() *[FormatWriteSettings](#FormatWriteSettings) ``` GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type AvroWriteSettings. #### func (AvroWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2824) [¶](#AvroWriteSettings.MarshalJSON) ``` func (a [AvroWriteSettings](#AvroWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AvroWriteSettings. #### func (*AvroWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2840) [¶](#AvroWriteSettings.UnmarshalJSON) ``` func (a *[AvroWriteSettings](#AvroWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AvroWriteSettings. #### type [AzPowerShellSetup](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1632) [¶](#AzPowerShellSetup) ``` type AzPowerShellSetup struct { // REQUIRED; The type of custom setup. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Install Azure PowerShell type properties. TypeProperties *[AzPowerShellSetupTypeProperties](#AzPowerShellSetupTypeProperties) `json:"typeProperties,omitempty"` } ``` AzPowerShellSetup - The express custom setup of installing Azure PowerShell. #### func (*AzPowerShellSetup) [GetCustomSetupBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1641) [¶](#AzPowerShellSetup.GetCustomSetupBase) added in v0.2.0 ``` func (a *[AzPowerShellSetup](#AzPowerShellSetup)) GetCustomSetupBase() *[CustomSetupBase](#CustomSetupBase) ``` GetCustomSetupBase implements the CustomSetupBaseClassification interface for type AzPowerShellSetup. #### func (AzPowerShellSetup) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2882) [¶](#AzPowerShellSetup.MarshalJSON) ``` func (a [AzPowerShellSetup](#AzPowerShellSetup)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzPowerShellSetup. #### func (*AzPowerShellSetup) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2890) [¶](#AzPowerShellSetup.UnmarshalJSON) ``` func (a *[AzPowerShellSetup](#AzPowerShellSetup)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzPowerShellSetup. #### type [AzPowerShellSetupTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1648) [¶](#AzPowerShellSetupTypeProperties) ``` type AzPowerShellSetupTypeProperties struct { // REQUIRED; The required version of Azure PowerShell to install. Version *[string](/builtin#string) `json:"version,omitempty"` } ``` AzPowerShellSetupTypeProperties - Installation of Azure PowerShell type properties. #### func (AzPowerShellSetupTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2913) [¶](#AzPowerShellSetupTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzPowerShellSetupTypeProperties](#AzPowerShellSetupTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzPowerShellSetupTypeProperties. #### func (*AzPowerShellSetupTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2920) [¶](#AzPowerShellSetupTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzPowerShellSetupTypeProperties](#AzPowerShellSetupTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzPowerShellSetupTypeProperties. #### type [AzureBatchLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1654) [¶](#AzureBatchLinkedService) ``` type AzureBatchLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Batch linked service properties. TypeProperties *[AzureBatchLinkedServiceTypeProperties](#AzureBatchLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureBatchLinkedService - Azure Batch linked service. #### func (*AzureBatchLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1678) [¶](#AzureBatchLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureBatchLinkedService](#AzureBatchLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureBatchLinkedService. #### func (AzureBatchLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2940) [¶](#AzureBatchLinkedService.MarshalJSON) ``` func (a [AzureBatchLinkedService](#AzureBatchLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBatchLinkedService. #### func (*AzureBatchLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L2957) [¶](#AzureBatchLinkedService.UnmarshalJSON) ``` func (a *[AzureBatchLinkedService](#AzureBatchLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBatchLinkedService. #### type [AzureBatchLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1690) [¶](#AzureBatchLinkedServiceTypeProperties) ``` type AzureBatchLinkedServiceTypeProperties struct { // REQUIRED; The Azure Batch account name. Type: string (or Expression with resultType string). AccountName interface{} `json:"accountName,omitempty"` // REQUIRED; The Azure Batch URI. Type: string (or Expression with resultType string). BatchURI interface{} `json:"batchUri,omitempty"` // REQUIRED; The Azure Storage linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; The Azure Batch pool name. Type: string (or Expression with resultType string). PoolName interface{} `json:"poolName,omitempty"` // The Azure Batch account access key. AccessKey [SecretBaseClassification](#SecretBaseClassification) `json:"accessKey,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` AzureBatchLinkedServiceTypeProperties - Azure Batch linked service properties. #### func (AzureBatchLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3002) [¶](#AzureBatchLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureBatchLinkedServiceTypeProperties](#AzureBatchLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBatchLinkedServiceTypeProperties. #### func (*AzureBatchLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3015) [¶](#AzureBatchLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureBatchLinkedServiceTypeProperties](#AzureBatchLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBatchLinkedServiceTypeProperties. #### type [AzureBlobDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1715) [¶](#AzureBlobDataset) ``` type AzureBlobDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Azure Blob dataset properties. TypeProperties *[AzureBlobDatasetTypeProperties](#AzureBlobDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzureBlobDataset - The Azure Blob storage. #### func (*AzureBlobDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1749) [¶](#AzureBlobDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureBlobDataset](#AzureBlobDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureBlobDataset. #### func (AzureBlobDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3053) [¶](#AzureBlobDataset.MarshalJSON) ``` func (a [AzureBlobDataset](#AzureBlobDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobDataset. #### func (*AzureBlobDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3073) [¶](#AzureBlobDataset.UnmarshalJSON) ``` func (a *[AzureBlobDataset](#AzureBlobDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobDataset. #### type [AzureBlobDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1764) [¶](#AzureBlobDatasetTypeProperties) ``` type AzureBlobDatasetTypeProperties struct { // The data compression method used for the blob storage. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // The name of the Azure Blob. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // The path of the Azure Blob storage. Type: string (or Expression with resultType string). FolderPath interface{} `json:"folderPath,omitempty"` // The format of the Azure Blob storage. Format [DatasetStorageFormatClassification](#DatasetStorageFormatClassification) `json:"format,omitempty"` // The end of Azure Blob's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of Azure Blob's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // The root of blob path. Type: string (or Expression with resultType string). TableRootLocation interface{} `json:"tableRootLocation,omitempty"` } ``` AzureBlobDatasetTypeProperties - Azure Blob dataset properties. #### func (AzureBlobDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3127) [¶](#AzureBlobDatasetTypeProperties.MarshalJSON) ``` func (a [AzureBlobDatasetTypeProperties](#AzureBlobDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobDatasetTypeProperties. #### func (*AzureBlobDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3140) [¶](#AzureBlobDatasetTypeProperties.UnmarshalJSON) ``` func (a *[AzureBlobDatasetTypeProperties](#AzureBlobDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobDatasetTypeProperties. #### type [AzureBlobFSDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1788) [¶](#AzureBlobFSDataset) ``` type AzureBlobFSDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Azure Data Lake Storage Gen2 dataset properties. TypeProperties *[AzureBlobFSDatasetTypeProperties](#AzureBlobFSDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzureBlobFSDataset - The Azure Data Lake Storage Gen2 storage. #### func (*AzureBlobFSDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1822) [¶](#AzureBlobFSDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureBlobFSDataset](#AzureBlobFSDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureBlobFSDataset. #### func (AzureBlobFSDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3178) [¶](#AzureBlobFSDataset.MarshalJSON) ``` func (a [AzureBlobFSDataset](#AzureBlobFSDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSDataset. #### func (*AzureBlobFSDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3198) [¶](#AzureBlobFSDataset.UnmarshalJSON) ``` func (a *[AzureBlobFSDataset](#AzureBlobFSDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSDataset. #### type [AzureBlobFSDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1837) [¶](#AzureBlobFSDatasetTypeProperties) ``` type AzureBlobFSDatasetTypeProperties struct { // The data compression method used for the blob storage. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with resultType string). FolderPath interface{} `json:"folderPath,omitempty"` // The format of the Azure Data Lake Storage Gen2 storage. Format [DatasetStorageFormatClassification](#DatasetStorageFormatClassification) `json:"format,omitempty"` } ``` AzureBlobFSDatasetTypeProperties - Azure Data Lake Storage Gen2 dataset properties. #### func (AzureBlobFSDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3252) [¶](#AzureBlobFSDatasetTypeProperties.MarshalJSON) ``` func (a [AzureBlobFSDatasetTypeProperties](#AzureBlobFSDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSDatasetTypeProperties. #### func (*AzureBlobFSDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3262) [¶](#AzureBlobFSDatasetTypeProperties.UnmarshalJSON) ``` func (a *[AzureBlobFSDatasetTypeProperties](#AzureBlobFSDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSDatasetTypeProperties. #### type [AzureBlobFSLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1852) [¶](#AzureBlobFSLinkedService) ``` type AzureBlobFSLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Data Lake Storage Gen2 linked service properties. TypeProperties *[AzureBlobFSLinkedServiceTypeProperties](#AzureBlobFSLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureBlobFSLinkedService - Azure Data Lake Storage Gen2 linked service. #### func (*AzureBlobFSLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1876) [¶](#AzureBlobFSLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureBlobFSLinkedService](#AzureBlobFSLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureBlobFSLinkedService. #### func (AzureBlobFSLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3291) [¶](#AzureBlobFSLinkedService.MarshalJSON) ``` func (a [AzureBlobFSLinkedService](#AzureBlobFSLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLinkedService. #### func (*AzureBlobFSLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3308) [¶](#AzureBlobFSLinkedService.UnmarshalJSON) ``` func (a *[AzureBlobFSLinkedService](#AzureBlobFSLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSLinkedService. #### type [AzureBlobFSLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1888) [¶](#AzureBlobFSLinkedServiceTypeProperties) ``` type AzureBlobFSLinkedServiceTypeProperties struct { // REQUIRED; Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). AccountKey interface{} `json:"accountKey,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. ServicePrincipalCredential [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalCredential,omitempty"` // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` // The ID of the application used to authenticate against the Azure Data Lake Storage Gen2 account. Type: string (or Expression // with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` AzureBlobFSLinkedServiceTypeProperties - Azure Data Lake Storage Gen2 linked service properties. #### func (AzureBlobFSLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3353) [¶](#AzureBlobFSLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureBlobFSLinkedServiceTypeProperties](#AzureBlobFSLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLinkedServiceTypeProperties. #### func (*AzureBlobFSLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3369) [¶](#AzureBlobFSLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureBlobFSLinkedServiceTypeProperties](#AzureBlobFSLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSLinkedServiceTypeProperties. #### type [AzureBlobFSLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1930) [¶](#AzureBlobFSLocation) ``` type AzureBlobFSLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the fileSystem of azure blobFS. Type: string (or Expression with resultType string). FileSystem interface{} `json:"fileSystem,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` AzureBlobFSLocation - The location of azure blobFS dataset. #### func (*AzureBlobFSLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1948) [¶](#AzureBlobFSLocation.GetDatasetLocation) added in v0.2.0 ``` func (a *[AzureBlobFSLocation](#AzureBlobFSLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type AzureBlobFSLocation. #### func (AzureBlobFSLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3416) [¶](#AzureBlobFSLocation.MarshalJSON) ``` func (a [AzureBlobFSLocation](#AzureBlobFSLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLocation. #### func (*AzureBlobFSLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3431) [¶](#AzureBlobFSLocation.UnmarshalJSON) ``` func (a *[AzureBlobFSLocation](#AzureBlobFSLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSLocation. #### type [AzureBlobFSReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L1958) [¶](#AzureBlobFSReadSettings) ``` type AzureBlobFSReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Azure blobFS wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // Azure blobFS wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` AzureBlobFSReadSettings - Azure blobFS read settings. #### func (*AzureBlobFSReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2003) [¶](#AzureBlobFSReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (a *[AzureBlobFSReadSettings](#AzureBlobFSReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureBlobFSReadSettings. #### func (AzureBlobFSReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3470) [¶](#AzureBlobFSReadSettings.MarshalJSON) ``` func (a [AzureBlobFSReadSettings](#AzureBlobFSReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSReadSettings. #### func (*AzureBlobFSReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3493) [¶](#AzureBlobFSReadSettings.UnmarshalJSON) ``` func (a *[AzureBlobFSReadSettings](#AzureBlobFSReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSReadSettings. #### type [AzureBlobFSSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2013) [¶](#AzureBlobFSSink) ``` type AzureBlobFSSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). Metadata []*[MetadataItem](#MetadataItem) `json:"metadata,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AzureBlobFSSink - A copy activity Azure Data Lake Storage Gen2 sink. #### func (*AzureBlobFSSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2046) [¶](#AzureBlobFSSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureBlobFSSink](#AzureBlobFSSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureBlobFSSink. #### func (AzureBlobFSSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3556) [¶](#AzureBlobFSSink.MarshalJSON) ``` func (a [AzureBlobFSSink](#AzureBlobFSSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSSink. #### func (*AzureBlobFSSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3576) [¶](#AzureBlobFSSink.UnmarshalJSON) ``` func (a *[AzureBlobFSSink](#AzureBlobFSSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSSink. #### type [AzureBlobFSSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2060) [¶](#AzureBlobFSSource) ``` type AzureBlobFSSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Treat empty as null. Type: boolean (or Expression with resultType boolean). TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` } ``` AzureBlobFSSource - A copy activity Azure BlobFS source. #### func (*AzureBlobFSSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2091) [¶](#AzureBlobFSSource.GetCopySource) added in v0.2.0 ``` func (a *[AzureBlobFSSource](#AzureBlobFSSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzureBlobFSSource. #### func (AzureBlobFSSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3630) [¶](#AzureBlobFSSource.MarshalJSON) ``` func (a [AzureBlobFSSource](#AzureBlobFSSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSSource. #### func (*AzureBlobFSSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3649) [¶](#AzureBlobFSSource.UnmarshalJSON) ``` func (a *[AzureBlobFSSource](#AzureBlobFSSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSSource. #### type [AzureBlobFSWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2103) [¶](#AzureBlobFSWriteSettings) ``` type AzureBlobFSWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` } ``` AzureBlobFSWriteSettings - Azure blobFS write settings. #### func (*AzureBlobFSWriteSettings) [GetStoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2124) [¶](#AzureBlobFSWriteSettings.GetStoreWriteSettings) added in v0.2.0 ``` func (a *[AzureBlobFSWriteSettings](#AzureBlobFSWriteSettings)) GetStoreWriteSettings() *[StoreWriteSettings](#StoreWriteSettings) ``` GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureBlobFSWriteSettings. #### func (AzureBlobFSWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3700) [¶](#AzureBlobFSWriteSettings.MarshalJSON) ``` func (a [AzureBlobFSWriteSettings](#AzureBlobFSWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobFSWriteSettings. #### func (*AzureBlobFSWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3716) [¶](#AzureBlobFSWriteSettings.UnmarshalJSON) ``` func (a *[AzureBlobFSWriteSettings](#AzureBlobFSWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobFSWriteSettings. #### type [AzureBlobStorageLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2135) [¶](#AzureBlobStorageLinkedService) ``` type AzureBlobStorageLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Blob Storage linked service properties. TypeProperties *[AzureBlobStorageLinkedServiceTypeProperties](#AzureBlobStorageLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureBlobStorageLinkedService - The azure blob storage linked service. #### func (*AzureBlobStorageLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2159) [¶](#AzureBlobStorageLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureBlobStorageLinkedService](#AzureBlobStorageLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureBlobStorageLinkedService. #### func (AzureBlobStorageLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3758) [¶](#AzureBlobStorageLinkedService.MarshalJSON) ``` func (a [AzureBlobStorageLinkedService](#AzureBlobStorageLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLinkedService. #### func (*AzureBlobStorageLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3775) [¶](#AzureBlobStorageLinkedService.UnmarshalJSON) ``` func (a *[AzureBlobStorageLinkedService](#AzureBlobStorageLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobStorageLinkedService. #### type [AzureBlobStorageLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2171) [¶](#AzureBlobStorageLinkedServiceTypeProperties) ``` type AzureBlobStorageLinkedServiceTypeProperties struct { // The Azure key vault secret reference of accountKey in connection string. AccountKey *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"accountKey,omitempty"` // Specify the kind of your storage account. Allowed values are: Storage (general purpose v1), StorageV2 (general purpose // v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with // resultType string). AccountKind *[string](/builtin#string) `json:"accountKind,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential *[string](/builtin#string) `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of sasToken in sas uri. SasToken *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"sasToken,omitempty"` // SAS URI of the Azure Blob Storage resource. It is mutually exclusive with connectionString, serviceEndpoint property. Type: // string, SecureString or AzureKeyVaultSecretReference. SasURI interface{} `json:"sasUri,omitempty"` // Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. ServiceEndpoint *[string](/builtin#string) `json:"serviceEndpoint,omitempty"` // The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with // resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure SQL Data Warehouse. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` AzureBlobStorageLinkedServiceTypeProperties - Azure Blob Storage linked service properties. #### func (AzureBlobStorageLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3820) [¶](#AzureBlobStorageLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureBlobStorageLinkedServiceTypeProperties](#AzureBlobStorageLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLinkedServiceTypeProperties. #### func (*AzureBlobStorageLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3838) [¶](#AzureBlobStorageLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureBlobStorageLinkedServiceTypeProperties](#AzureBlobStorageLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobStorageLinkedServiceTypeProperties. #### type [AzureBlobStorageLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2217) [¶](#AzureBlobStorageLocation) ``` type AzureBlobStorageLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the container of azure blob. Type: string (or Expression with resultType string). Container interface{} `json:"container,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` AzureBlobStorageLocation - The location of azure blob dataset. #### func (*AzureBlobStorageLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2235) [¶](#AzureBlobStorageLocation.GetDatasetLocation) added in v0.2.0 ``` func (a *[AzureBlobStorageLocation](#AzureBlobStorageLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type AzureBlobStorageLocation. #### func (AzureBlobStorageLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3891) [¶](#AzureBlobStorageLocation.MarshalJSON) ``` func (a [AzureBlobStorageLocation](#AzureBlobStorageLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLocation. #### func (*AzureBlobStorageLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3906) [¶](#AzureBlobStorageLocation.UnmarshalJSON) ``` func (a *[AzureBlobStorageLocation](#AzureBlobStorageLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobStorageLocation. #### type [AzureBlobStorageReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2245) [¶](#AzureBlobStorageReadSettings) ``` type AzureBlobStorageReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // The prefix filter for the Azure Blob name. Type: string (or Expression with resultType string). Prefix interface{} `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Azure blob wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // Azure blob wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` AzureBlobStorageReadSettings - Azure blob read settings. #### func (*AzureBlobStorageReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2293) [¶](#AzureBlobStorageReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (a *[AzureBlobStorageReadSettings](#AzureBlobStorageReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureBlobStorageReadSettings. #### func (AzureBlobStorageReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3945) [¶](#AzureBlobStorageReadSettings.MarshalJSON) ``` func (a [AzureBlobStorageReadSettings](#AzureBlobStorageReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageReadSettings. #### func (*AzureBlobStorageReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L3969) [¶](#AzureBlobStorageReadSettings.UnmarshalJSON) ``` func (a *[AzureBlobStorageReadSettings](#AzureBlobStorageReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobStorageReadSettings. #### type [AzureBlobStorageWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2303) [¶](#AzureBlobStorageWriteSettings) ``` type AzureBlobStorageWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` } ``` AzureBlobStorageWriteSettings - Azure blob write settings. #### func (*AzureBlobStorageWriteSettings) [GetStoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2324) [¶](#AzureBlobStorageWriteSettings.GetStoreWriteSettings) added in v0.2.0 ``` func (a *[AzureBlobStorageWriteSettings](#AzureBlobStorageWriteSettings)) GetStoreWriteSettings() *[StoreWriteSettings](#StoreWriteSettings) ``` GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureBlobStorageWriteSettings. #### func (AzureBlobStorageWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4035) [¶](#AzureBlobStorageWriteSettings.MarshalJSON) ``` func (a [AzureBlobStorageWriteSettings](#AzureBlobStorageWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageWriteSettings. #### func (*AzureBlobStorageWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4051) [¶](#AzureBlobStorageWriteSettings.UnmarshalJSON) ``` func (a *[AzureBlobStorageWriteSettings](#AzureBlobStorageWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobStorageWriteSettings. #### type [AzureDataExplorerCommandActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2335) [¶](#AzureDataExplorerCommandActivity) ``` type AzureDataExplorerCommandActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Data Explorer command activity properties. TypeProperties *[AzureDataExplorerCommandActivityTypeProperties](#AzureDataExplorerCommandActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` AzureDataExplorerCommandActivity - Azure Data Explorer command activity. #### func (*AzureDataExplorerCommandActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2365) [¶](#AzureDataExplorerCommandActivity.GetActivity) added in v0.2.0 ``` func (a *[AzureDataExplorerCommandActivity](#AzureDataExplorerCommandActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type AzureDataExplorerCommandActivity. #### func (*AzureDataExplorerCommandActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2377) [¶](#AzureDataExplorerCommandActivity.GetExecutionActivity) added in v0.2.0 ``` func (a *[AzureDataExplorerCommandActivity](#AzureDataExplorerCommandActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureDataExplorerCommandActivity. #### func (AzureDataExplorerCommandActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4093) [¶](#AzureDataExplorerCommandActivity.MarshalJSON) ``` func (a [AzureDataExplorerCommandActivity](#AzureDataExplorerCommandActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerCommandActivity. #### func (*AzureDataExplorerCommandActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4112) [¶](#AzureDataExplorerCommandActivity.UnmarshalJSON) ``` func (a *[AzureDataExplorerCommandActivity](#AzureDataExplorerCommandActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerCommandActivity. #### type [AzureDataExplorerCommandActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2391) [¶](#AzureDataExplorerCommandActivityTypeProperties) ``` type AzureDataExplorerCommandActivityTypeProperties struct { // REQUIRED; A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType // string). Command interface{} `json:"command,omitempty"` // Control command timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) CommandTimeout interface{} `json:"commandTimeout,omitempty"` } ``` AzureDataExplorerCommandActivityTypeProperties - Azure Data Explorer command activity properties. #### func (AzureDataExplorerCommandActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4163) [¶](#AzureDataExplorerCommandActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureDataExplorerCommandActivityTypeProperties](#AzureDataExplorerCommandActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerCommandActivityTypeProperties. #### func (*AzureDataExplorerCommandActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4171) [¶](#AzureDataExplorerCommandActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureDataExplorerCommandActivityTypeProperties](#AzureDataExplorerCommandActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerCommandActivityTypeProperties. #### type [AzureDataExplorerDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2401) [¶](#AzureDataExplorerDatasetTypeProperties) ``` type AzureDataExplorerDatasetTypeProperties struct { // The table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } ``` AzureDataExplorerDatasetTypeProperties - Azure Data Explorer (Kusto) dataset properties. #### func (AzureDataExplorerDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4194) [¶](#AzureDataExplorerDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureDataExplorerDatasetTypeProperties](#AzureDataExplorerDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerDatasetTypeProperties. #### func (*AzureDataExplorerDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4201) [¶](#AzureDataExplorerDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureDataExplorerDatasetTypeProperties](#AzureDataExplorerDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerDatasetTypeProperties. #### type [AzureDataExplorerLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2407) [¶](#AzureDataExplorerLinkedService) ``` type AzureDataExplorerLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Data Explorer (Kusto) linked service properties. TypeProperties *[AzureDataExplorerLinkedServiceTypeProperties](#AzureDataExplorerLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureDataExplorerLinkedService - Azure Data Explorer (Kusto) linked service. #### func (*AzureDataExplorerLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2431) [¶](#AzureDataExplorerLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureDataExplorerLinkedService](#AzureDataExplorerLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureDataExplorerLinkedService. #### func (AzureDataExplorerLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4221) [¶](#AzureDataExplorerLinkedService.MarshalJSON) ``` func (a [AzureDataExplorerLinkedService](#AzureDataExplorerLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerLinkedService. #### func (*AzureDataExplorerLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4238) [¶](#AzureDataExplorerLinkedService.UnmarshalJSON) ``` func (a *[AzureDataExplorerLinkedService](#AzureDataExplorerLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerLinkedService. #### type [AzureDataExplorerLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2443) [¶](#AzureDataExplorerLinkedServiceTypeProperties) ``` type AzureDataExplorerLinkedServiceTypeProperties struct { // REQUIRED; Database name for connection. Type: string (or Expression with resultType string). Database interface{} `json:"database,omitempty"` // REQUIRED; The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format <https://..kusto.windows.net.> // Type: string (or Expression with resultType string) Endpoint interface{} `json:"endpoint,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression with resultType // string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Kusto. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` AzureDataExplorerLinkedServiceTypeProperties - Azure Data Explorer (Kusto) linked service properties. #### func (AzureDataExplorerLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4283) [¶](#AzureDataExplorerLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureDataExplorerLinkedServiceTypeProperties](#AzureDataExplorerLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerLinkedServiceTypeProperties. #### func (*AzureDataExplorerLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4295) [¶](#AzureDataExplorerLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureDataExplorerLinkedServiceTypeProperties](#AzureDataExplorerLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerLinkedServiceTypeProperties. #### type [AzureDataExplorerSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2466) [¶](#AzureDataExplorerSink) ``` type AzureDataExplorerSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // If set to true, any aggregation will be skipped. Default is false. Type: boolean. FlushImmediately interface{} `json:"flushImmediately,omitempty"` // An explicit column mapping description provided in a json format. Type: string. IngestionMappingAsJSON interface{} `json:"ingestionMappingAsJson,omitempty"` // A name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. IngestionMappingName interface{} `json:"ingestionMappingName,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AzureDataExplorerSink - A copy activity Azure Data Explorer sink. #### func (*AzureDataExplorerSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2502) [¶](#AzureDataExplorerSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureDataExplorerSink](#AzureDataExplorerSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureDataExplorerSink. #### func (AzureDataExplorerSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4330) [¶](#AzureDataExplorerSink.MarshalJSON) ``` func (a [AzureDataExplorerSink](#AzureDataExplorerSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerSink. #### func (*AzureDataExplorerSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4351) [¶](#AzureDataExplorerSink.UnmarshalJSON) ``` func (a *[AzureDataExplorerSink](#AzureDataExplorerSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerSink. #### type [AzureDataExplorerSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2516) [¶](#AzureDataExplorerSource) ``` type AzureDataExplorerSource struct { // REQUIRED; Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The name of the Boolean option that controls whether truncation is applied to result-sets that go beyond a certain row-count // limit. NoTruncation interface{} `json:"noTruncation,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AzureDataExplorerSource - A copy activity Azure Data Explorer (Kusto) source. #### func (*AzureDataExplorerSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2551) [¶](#AzureDataExplorerSource.GetCopySource) added in v0.2.0 ``` func (a *[AzureDataExplorerSource](#AzureDataExplorerSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzureDataExplorerSource. #### func (AzureDataExplorerSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4408) [¶](#AzureDataExplorerSource.MarshalJSON) ``` func (a [AzureDataExplorerSource](#AzureDataExplorerSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerSource. #### func (*AzureDataExplorerSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4428) [¶](#AzureDataExplorerSource.UnmarshalJSON) ``` func (a *[AzureDataExplorerSource](#AzureDataExplorerSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerSource. #### type [AzureDataExplorerTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2563) [¶](#AzureDataExplorerTableDataset) ``` type AzureDataExplorerTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Data Explorer (Kusto) dataset properties. TypeProperties *[AzureDataExplorerDatasetTypeProperties](#AzureDataExplorerDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` AzureDataExplorerTableDataset - The Azure Data Explorer (Kusto) dataset. #### func (*AzureDataExplorerTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2597) [¶](#AzureDataExplorerTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureDataExplorerTableDataset](#AzureDataExplorerTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureDataExplorerTableDataset. #### func (AzureDataExplorerTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4482) [¶](#AzureDataExplorerTableDataset.MarshalJSON) ``` func (a [AzureDataExplorerTableDataset](#AzureDataExplorerTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerTableDataset. #### func (*AzureDataExplorerTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4502) [¶](#AzureDataExplorerTableDataset.UnmarshalJSON) ``` func (a *[AzureDataExplorerTableDataset](#AzureDataExplorerTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerTableDataset. #### type [AzureDataLakeAnalyticsLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2612) [¶](#AzureDataLakeAnalyticsLinkedService) ``` type AzureDataLakeAnalyticsLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Data Lake Analytics linked service properties. TypeProperties *[AzureDataLakeAnalyticsLinkedServiceTypeProperties](#AzureDataLakeAnalyticsLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureDataLakeAnalyticsLinkedService - Azure Data Lake Analytics linked service. #### func (*AzureDataLakeAnalyticsLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2636) [¶](#AzureDataLakeAnalyticsLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureDataLakeAnalyticsLinkedService](#AzureDataLakeAnalyticsLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureDataLakeAnalyticsLinkedService. #### func (AzureDataLakeAnalyticsLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4556) [¶](#AzureDataLakeAnalyticsLinkedService.MarshalJSON) ``` func (a [AzureDataLakeAnalyticsLinkedService](#AzureDataLakeAnalyticsLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeAnalyticsLinkedService. #### func (*AzureDataLakeAnalyticsLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4573) [¶](#AzureDataLakeAnalyticsLinkedService.UnmarshalJSON) ``` func (a *[AzureDataLakeAnalyticsLinkedService](#AzureDataLakeAnalyticsLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeAnalyticsLinkedService. #### type [AzureDataLakeAnalyticsLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2648) [¶](#AzureDataLakeAnalyticsLinkedServiceTypeProperties) ``` type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { // REQUIRED; The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). AccountName interface{} `json:"accountName,omitempty"` // REQUIRED; The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType // string). Tenant interface{} `json:"tenant,omitempty"` // Azure Data Lake Analytics URI Type: string (or Expression with resultType string). DataLakeAnalyticsURI interface{} `json:"dataLakeAnalyticsUri,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with // resultType string). ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` // The ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or Expression // with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The Key of the application used to authenticate against the Azure Data Lake Analytics account. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with // resultType string). SubscriptionID interface{} `json:"subscriptionId,omitempty"` } ``` AzureDataLakeAnalyticsLinkedServiceTypeProperties - Azure Data Lake Analytics linked service properties. #### func (AzureDataLakeAnalyticsLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4618) [¶](#AzureDataLakeAnalyticsLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureDataLakeAnalyticsLinkedServiceTypeProperties](#AzureDataLakeAnalyticsLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeAnalyticsLinkedServiceTypeProperties. #### func (*AzureDataLakeAnalyticsLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4632) [¶](#AzureDataLakeAnalyticsLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureDataLakeAnalyticsLinkedServiceTypeProperties](#AzureDataLakeAnalyticsLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeAnalyticsLinkedServiceTypeProperties. #### type [AzureDataLakeStoreDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2680) [¶](#AzureDataLakeStoreDataset) ``` type AzureDataLakeStoreDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Azure Data Lake Store dataset properties. TypeProperties *[AzureDataLakeStoreDatasetTypeProperties](#AzureDataLakeStoreDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzureDataLakeStoreDataset - Azure Data Lake Store dataset. #### func (*AzureDataLakeStoreDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2714) [¶](#AzureDataLakeStoreDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureDataLakeStoreDataset](#AzureDataLakeStoreDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureDataLakeStoreDataset. #### func (AzureDataLakeStoreDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4673) [¶](#AzureDataLakeStoreDataset.MarshalJSON) ``` func (a [AzureDataLakeStoreDataset](#AzureDataLakeStoreDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreDataset. #### func (*AzureDataLakeStoreDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4693) [¶](#AzureDataLakeStoreDataset.UnmarshalJSON) ``` func (a *[AzureDataLakeStoreDataset](#AzureDataLakeStoreDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreDataset. #### type [AzureDataLakeStoreDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2729) [¶](#AzureDataLakeStoreDatasetTypeProperties) ``` type AzureDataLakeStoreDatasetTypeProperties struct { // The data compression method used for the item(s) in the Azure Data Lake Store. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). FolderPath interface{} `json:"folderPath,omitempty"` // The format of the Data Lake Store. Format [DatasetStorageFormatClassification](#DatasetStorageFormatClassification) `json:"format,omitempty"` } ``` AzureDataLakeStoreDatasetTypeProperties - Azure Data Lake Store dataset properties. #### func (AzureDataLakeStoreDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4747) [¶](#AzureDataLakeStoreDatasetTypeProperties.MarshalJSON) ``` func (a [AzureDataLakeStoreDatasetTypeProperties](#AzureDataLakeStoreDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreDatasetTypeProperties. #### func (*AzureDataLakeStoreDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4757) [¶](#AzureDataLakeStoreDatasetTypeProperties.UnmarshalJSON) ``` func (a *[AzureDataLakeStoreDatasetTypeProperties](#AzureDataLakeStoreDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreDatasetTypeProperties. #### type [AzureDataLakeStoreLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2744) [¶](#AzureDataLakeStoreLinkedService) ``` type AzureDataLakeStoreLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Data Lake Store linked service properties. TypeProperties *[AzureDataLakeStoreLinkedServiceTypeProperties](#AzureDataLakeStoreLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureDataLakeStoreLinkedService - Azure Data Lake Store linked service. #### func (*AzureDataLakeStoreLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2768) [¶](#AzureDataLakeStoreLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureDataLakeStoreLinkedService](#AzureDataLakeStoreLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureDataLakeStoreLinkedService. #### func (AzureDataLakeStoreLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4786) [¶](#AzureDataLakeStoreLinkedService.MarshalJSON) ``` func (a [AzureDataLakeStoreLinkedService](#AzureDataLakeStoreLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLinkedService. #### func (*AzureDataLakeStoreLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4803) [¶](#AzureDataLakeStoreLinkedService.UnmarshalJSON) ``` func (a *[AzureDataLakeStoreLinkedService](#AzureDataLakeStoreLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreLinkedService. #### type [AzureDataLakeStoreLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2780) [¶](#AzureDataLakeStoreLinkedServiceTypeProperties) ``` type AzureDataLakeStoreLinkedServiceTypeProperties struct { // REQUIRED; Data Lake Store service URI. Type: string (or Expression with resultType string). DataLakeStoreURI interface{} `json:"dataLakeStoreUri,omitempty"` // Data Lake Store account name. Type: string (or Expression with resultType string). AccountName interface{} `json:"accountName,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with // resultType string). ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` // The ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or Expression with // resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The Key of the application used to authenticate against the Azure Data Lake Store account. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType // string). SubscriptionID interface{} `json:"subscriptionId,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` AzureDataLakeStoreLinkedServiceTypeProperties - Azure Data Lake Store linked service properties. #### func (AzureDataLakeStoreLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4848) [¶](#AzureDataLakeStoreLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureDataLakeStoreLinkedServiceTypeProperties](#AzureDataLakeStoreLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLinkedServiceTypeProperties. #### func (*AzureDataLakeStoreLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4864) [¶](#AzureDataLakeStoreLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureDataLakeStoreLinkedServiceTypeProperties](#AzureDataLakeStoreLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreLinkedServiceTypeProperties. #### type [AzureDataLakeStoreLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2819) [¶](#AzureDataLakeStoreLocation) ``` type AzureDataLakeStoreLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` AzureDataLakeStoreLocation - The location of azure data lake store dataset. #### func (*AzureDataLakeStoreLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2834) [¶](#AzureDataLakeStoreLocation.GetDatasetLocation) added in v0.2.0 ``` func (a *[AzureDataLakeStoreLocation](#AzureDataLakeStoreLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type AzureDataLakeStoreLocation. #### func (AzureDataLakeStoreLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4911) [¶](#AzureDataLakeStoreLocation.MarshalJSON) ``` func (a [AzureDataLakeStoreLocation](#AzureDataLakeStoreLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLocation. #### func (*AzureDataLakeStoreLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4925) [¶](#AzureDataLakeStoreLocation.UnmarshalJSON) added in v0.2.0 ``` func (a *[AzureDataLakeStoreLocation](#AzureDataLakeStoreLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreLocation. #### type [AzureDataLakeStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2844) [¶](#AzureDataLakeStoreReadSettings) ``` type AzureDataLakeStoreReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // Lists files after the value (exclusive) based on file/folder names’ lexicographical order. Applies under the folderPath // in data set, and filter files/sub-folders under the folderPath. Type: string (or // Expression with resultType string). ListAfter interface{} `json:"listAfter,omitempty"` // Lists files before the value (inclusive) based on file/folder names’ lexicographical order. Applies under the folderPath // in data set, and filter files/sub-folders under the folderPath. Type: string // (or Expression with resultType string). ListBefore interface{} `json:"listBefore,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // ADLS wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // ADLS wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` AzureDataLakeStoreReadSettings - Azure data lake store read settings. #### func (*AzureDataLakeStoreReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2899) [¶](#AzureDataLakeStoreReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (a *[AzureDataLakeStoreReadSettings](#AzureDataLakeStoreReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureDataLakeStoreReadSettings. #### func (AzureDataLakeStoreReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4961) [¶](#AzureDataLakeStoreReadSettings.MarshalJSON) ``` func (a [AzureDataLakeStoreReadSettings](#AzureDataLakeStoreReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreReadSettings. #### func (*AzureDataLakeStoreReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L4986) [¶](#AzureDataLakeStoreReadSettings.UnmarshalJSON) ``` func (a *[AzureDataLakeStoreReadSettings](#AzureDataLakeStoreReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreReadSettings. #### type [AzureDataLakeStoreSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2909) [¶](#AzureDataLakeStoreSink) ``` type AzureDataLakeStoreSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Single File Parallel. EnableAdlsSingleFileParallel interface{} `json:"enableAdlsSingleFileParallel,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AzureDataLakeStoreSink - A copy activity Azure Data Lake Store sink. #### func (*AzureDataLakeStoreSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2942) [¶](#AzureDataLakeStoreSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureDataLakeStoreSink](#AzureDataLakeStoreSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureDataLakeStoreSink. #### func (AzureDataLakeStoreSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5055) [¶](#AzureDataLakeStoreSink.MarshalJSON) ``` func (a [AzureDataLakeStoreSink](#AzureDataLakeStoreSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreSink. #### func (*AzureDataLakeStoreSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5075) [¶](#AzureDataLakeStoreSink.UnmarshalJSON) ``` func (a *[AzureDataLakeStoreSink](#AzureDataLakeStoreSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreSink. #### type [AzureDataLakeStoreSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2956) [¶](#AzureDataLakeStoreSource) ``` type AzureDataLakeStoreSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AzureDataLakeStoreSource - A copy activity Azure Data Lake source. #### func (*AzureDataLakeStoreSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2981) [¶](#AzureDataLakeStoreSource.GetCopySource) added in v0.2.0 ``` func (a *[AzureDataLakeStoreSource](#AzureDataLakeStoreSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzureDataLakeStoreSource. #### func (AzureDataLakeStoreSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5129) [¶](#AzureDataLakeStoreSource.MarshalJSON) ``` func (a [AzureDataLakeStoreSource](#AzureDataLakeStoreSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreSource. #### func (*AzureDataLakeStoreSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5146) [¶](#AzureDataLakeStoreSource.UnmarshalJSON) ``` func (a *[AzureDataLakeStoreSource](#AzureDataLakeStoreSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreSource. #### type [AzureDataLakeStoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L2993) [¶](#AzureDataLakeStoreWriteSettings) ``` type AzureDataLakeStoreWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". // Default value is NULL. Type: integer (or Expression with resultType // integer). ExpiryDateTime interface{} `json:"expiryDateTime,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` } ``` AzureDataLakeStoreWriteSettings - Azure data lake store write settings. #### func (*AzureDataLakeStoreWriteSettings) [GetStoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3016) [¶](#AzureDataLakeStoreWriteSettings.GetStoreWriteSettings) added in v0.2.0 ``` func (a *[AzureDataLakeStoreWriteSettings](#AzureDataLakeStoreWriteSettings)) GetStoreWriteSettings() *[StoreWriteSettings](#StoreWriteSettings) ``` GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureDataLakeStoreWriteSettings. #### func (AzureDataLakeStoreWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5191) [¶](#AzureDataLakeStoreWriteSettings.MarshalJSON) ``` func (a [AzureDataLakeStoreWriteSettings](#AzureDataLakeStoreWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreWriteSettings. #### func (*AzureDataLakeStoreWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5207) [¶](#AzureDataLakeStoreWriteSettings.UnmarshalJSON) ``` func (a *[AzureDataLakeStoreWriteSettings](#AzureDataLakeStoreWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreWriteSettings. #### type [AzureDatabricksDeltaLakeDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3027) [¶](#AzureDatabricksDeltaLakeDataset) ``` type AzureDatabricksDeltaLakeDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[AzureDatabricksDeltaLakeDatasetTypeProperties](#AzureDatabricksDeltaLakeDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzureDatabricksDeltaLakeDataset - Azure Databricks Delta Lake dataset. #### func (*AzureDatabricksDeltaLakeDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3061) [¶](#AzureDatabricksDeltaLakeDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureDatabricksDeltaLakeDataset](#AzureDatabricksDeltaLakeDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureDatabricksDeltaLakeDataset. #### func (AzureDatabricksDeltaLakeDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5249) [¶](#AzureDatabricksDeltaLakeDataset.MarshalJSON) ``` func (a [AzureDatabricksDeltaLakeDataset](#AzureDatabricksDeltaLakeDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeDataset. #### func (*AzureDatabricksDeltaLakeDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5269) [¶](#AzureDatabricksDeltaLakeDataset.UnmarshalJSON) ``` func (a *[AzureDatabricksDeltaLakeDataset](#AzureDatabricksDeltaLakeDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDeltaLakeDataset. #### type [AzureDatabricksDeltaLakeDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3076) [¶](#AzureDatabricksDeltaLakeDatasetTypeProperties) ``` type AzureDatabricksDeltaLakeDatasetTypeProperties struct { // The database name of delta table. Type: string (or Expression with resultType string). Database interface{} `json:"database,omitempty"` // The name of delta table. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } ``` AzureDatabricksDeltaLakeDatasetTypeProperties - Azure Databricks Delta Lake Dataset Properties #### func (AzureDatabricksDeltaLakeDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5323) [¶](#AzureDatabricksDeltaLakeDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureDatabricksDeltaLakeDatasetTypeProperties](#AzureDatabricksDeltaLakeDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeDatasetTypeProperties. #### func (*AzureDatabricksDeltaLakeDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5331) [¶](#AzureDatabricksDeltaLakeDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureDatabricksDeltaLakeDatasetTypeProperties](#AzureDatabricksDeltaLakeDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDeltaLakeDatasetTypeProperties. #### type [AzureDatabricksDeltaLakeExportCommand](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3085) [¶](#AzureDatabricksDeltaLakeExportCommand) ``` type AzureDatabricksDeltaLakeExportCommand struct { // REQUIRED; The export setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). DateFormat interface{} `json:"dateFormat,omitempty"` // Specify the timestamp format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType // string). TimestampFormat interface{} `json:"timestampFormat,omitempty"` } ``` AzureDatabricksDeltaLakeExportCommand - Azure Databricks Delta Lake export command settings. #### func (*AzureDatabricksDeltaLakeExportCommand) [GetExportSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3101) [¶](#AzureDatabricksDeltaLakeExportCommand.GetExportSettings) added in v0.2.0 ``` func (a *[AzureDatabricksDeltaLakeExportCommand](#AzureDatabricksDeltaLakeExportCommand)) GetExportSettings() *[ExportSettings](#ExportSettings) ``` GetExportSettings implements the ExportSettingsClassification interface for type AzureDatabricksDeltaLakeExportCommand. #### func (AzureDatabricksDeltaLakeExportCommand) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5354) [¶](#AzureDatabricksDeltaLakeExportCommand.MarshalJSON) ``` func (a [AzureDatabricksDeltaLakeExportCommand](#AzureDatabricksDeltaLakeExportCommand)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeExportCommand. #### func (*AzureDatabricksDeltaLakeExportCommand) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5368) [¶](#AzureDatabricksDeltaLakeExportCommand.UnmarshalJSON) ``` func (a *[AzureDatabricksDeltaLakeExportCommand](#AzureDatabricksDeltaLakeExportCommand)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDeltaLakeExportCommand. #### type [AzureDatabricksDeltaLakeImportCommand](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3109) [¶](#AzureDatabricksDeltaLakeImportCommand) ``` type AzureDatabricksDeltaLakeImportCommand struct { // REQUIRED; The import setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). DateFormat interface{} `json:"dateFormat,omitempty"` // Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). TimestampFormat interface{} `json:"timestampFormat,omitempty"` } ``` AzureDatabricksDeltaLakeImportCommand - Azure Databricks Delta Lake import command settings. #### func (*AzureDatabricksDeltaLakeImportCommand) [GetImportSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3124) [¶](#AzureDatabricksDeltaLakeImportCommand.GetImportSettings) added in v0.2.0 ``` func (a *[AzureDatabricksDeltaLakeImportCommand](#AzureDatabricksDeltaLakeImportCommand)) GetImportSettings() *[ImportSettings](#ImportSettings) ``` GetImportSettings implements the ImportSettingsClassification interface for type AzureDatabricksDeltaLakeImportCommand. #### func (AzureDatabricksDeltaLakeImportCommand) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5404) [¶](#AzureDatabricksDeltaLakeImportCommand.MarshalJSON) ``` func (a [AzureDatabricksDeltaLakeImportCommand](#AzureDatabricksDeltaLakeImportCommand)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeImportCommand. #### func (*AzureDatabricksDeltaLakeImportCommand) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5418) [¶](#AzureDatabricksDeltaLakeImportCommand.UnmarshalJSON) ``` func (a *[AzureDatabricksDeltaLakeImportCommand](#AzureDatabricksDeltaLakeImportCommand)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDeltaLakeImportCommand. #### type [AzureDatabricksDeltaLakeLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3132) [¶](#AzureDatabricksDeltaLakeLinkedService) ``` type AzureDatabricksDeltaLakeLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Databricks Delta Lake linked service properties. TypeProperties *[AzureDatabricksDetltaLakeLinkedServiceTypeProperties](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureDatabricksDeltaLakeLinkedService - Azure Databricks Delta Lake linked service. #### func (*AzureDatabricksDeltaLakeLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3156) [¶](#AzureDatabricksDeltaLakeLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureDatabricksDeltaLakeLinkedService](#AzureDatabricksDeltaLakeLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureDatabricksDeltaLakeLinkedService. #### func (AzureDatabricksDeltaLakeLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5454) [¶](#AzureDatabricksDeltaLakeLinkedService.MarshalJSON) ``` func (a [AzureDatabricksDeltaLakeLinkedService](#AzureDatabricksDeltaLakeLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeLinkedService. #### func (*AzureDatabricksDeltaLakeLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5471) [¶](#AzureDatabricksDeltaLakeLinkedService.UnmarshalJSON) ``` func (a *[AzureDatabricksDeltaLakeLinkedService](#AzureDatabricksDeltaLakeLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDeltaLakeLinkedService. #### type [AzureDatabricksDeltaLakeSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3168) [¶](#AzureDatabricksDeltaLakeSink) ``` type AzureDatabricksDeltaLakeSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Azure Databricks Delta Lake import settings. ImportSettings *[AzureDatabricksDeltaLakeImportCommand](#AzureDatabricksDeltaLakeImportCommand) `json:"importSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AzureDatabricksDeltaLakeSink - A copy activity Azure Databricks Delta Lake sink. #### func (*AzureDatabricksDeltaLakeSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3201) [¶](#AzureDatabricksDeltaLakeSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureDatabricksDeltaLakeSink](#AzureDatabricksDeltaLakeSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureDatabricksDeltaLakeSink. #### func (AzureDatabricksDeltaLakeSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5516) [¶](#AzureDatabricksDeltaLakeSink.MarshalJSON) ``` func (a [AzureDatabricksDeltaLakeSink](#AzureDatabricksDeltaLakeSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeSink. #### func (*AzureDatabricksDeltaLakeSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5536) [¶](#AzureDatabricksDeltaLakeSink.UnmarshalJSON) ``` func (a *[AzureDatabricksDeltaLakeSink](#AzureDatabricksDeltaLakeSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDeltaLakeSink. #### type [AzureDatabricksDeltaLakeSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3215) [¶](#AzureDatabricksDeltaLakeSource) ``` type AzureDatabricksDeltaLakeSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Azure Databricks Delta Lake export settings. ExportSettings *[AzureDatabricksDeltaLakeExportCommand](#AzureDatabricksDeltaLakeExportCommand) `json:"exportSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AzureDatabricksDeltaLakeSource - A copy activity Azure Databricks Delta Lake source. #### func (*AzureDatabricksDeltaLakeSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3242) [¶](#AzureDatabricksDeltaLakeSource.GetCopySource) added in v0.2.0 ``` func (a *[AzureDatabricksDeltaLakeSource](#AzureDatabricksDeltaLakeSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzureDatabricksDeltaLakeSource. #### func (AzureDatabricksDeltaLakeSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5590) [¶](#AzureDatabricksDeltaLakeSource.MarshalJSON) ``` func (a [AzureDatabricksDeltaLakeSource](#AzureDatabricksDeltaLakeSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeSource. #### func (*AzureDatabricksDeltaLakeSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5608) [¶](#AzureDatabricksDeltaLakeSource.UnmarshalJSON) ``` func (a *[AzureDatabricksDeltaLakeSource](#AzureDatabricksDeltaLakeSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDeltaLakeSource. #### type [AzureDatabricksDetltaLakeLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3254) [¶](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties) ``` type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { // REQUIRED; .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType // string). Domain interface{} `json:"domain,omitempty"` // Access token for databricks REST API. Refer to <https://docs.azuredatabricks.net/api/latest/authentication.html>. Type: string, // SecureString or AzureKeyVaultSecretReference. AccessToken [SecretBaseClassification](#SecretBaseClassification) `json:"accessToken,omitempty"` // The id of an existing interactive cluster that will be used for all runs of this job. Type: string (or Expression with // resultType string). ClusterID interface{} `json:"clusterId,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` } ``` AzureDatabricksDetltaLakeLinkedServiceTypeProperties - Azure Databricks Delta Lake linked service properties. #### func (AzureDatabricksDetltaLakeLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5656) [¶](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureDatabricksDetltaLakeLinkedServiceTypeProperties](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDetltaLakeLinkedServiceTypeProperties. #### func (*AzureDatabricksDetltaLakeLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5668) [¶](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureDatabricksDetltaLakeLinkedServiceTypeProperties](#AzureDatabricksDetltaLakeLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDetltaLakeLinkedServiceTypeProperties. #### type [AzureDatabricksLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3279) [¶](#AzureDatabricksLinkedService) ``` type AzureDatabricksLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Databricks linked service properties. TypeProperties *[AzureDatabricksLinkedServiceTypeProperties](#AzureDatabricksLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureDatabricksLinkedService - Azure Databricks linked service. #### func (*AzureDatabricksLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3303) [¶](#AzureDatabricksLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureDatabricksLinkedService](#AzureDatabricksLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureDatabricksLinkedService. #### func (AzureDatabricksLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5703) [¶](#AzureDatabricksLinkedService.MarshalJSON) ``` func (a [AzureDatabricksLinkedService](#AzureDatabricksLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksLinkedService. #### func (*AzureDatabricksLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5720) [¶](#AzureDatabricksLinkedService.UnmarshalJSON) ``` func (a *[AzureDatabricksLinkedService](#AzureDatabricksLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksLinkedService. #### type [AzureDatabricksLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3315) [¶](#AzureDatabricksLinkedServiceTypeProperties) ``` type AzureDatabricksLinkedServiceTypeProperties struct { // REQUIRED; .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType // string). Domain interface{} `json:"domain,omitempty"` // Access token for databricks REST API. Refer to <https://docs.azuredatabricks.net/api/latest/authentication.html>. Type: string // (or Expression with resultType string). AccessToken [SecretBaseClassification](#SecretBaseClassification) `json:"accessToken,omitempty"` // Required to specify MSI, if using Workspace resource id for databricks REST API. Type: string (or Expression with resultType // string). Authentication interface{} `json:"authentication,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The id of an existing interactive cluster that will be used for all runs of this activity. Type: string (or Expression // with resultType string). ExistingClusterID interface{} `json:"existingClusterId,omitempty"` // The id of an existing instance pool that will be used for all runs of this activity. Type: string (or Expression with resultType // string). InstancePoolID interface{} `json:"instancePoolId,omitempty"` // Additional tags for cluster resources. This property is ignored in instance pool configurations. NewClusterCustomTags map[[string](/builtin#string)]interface{} `json:"newClusterCustomTags,omitempty"` // The driver node type for the new job cluster. This property is ignored in instance pool configurations. Type: string (or // Expression with resultType string). NewClusterDriverNodeType interface{} `json:"newClusterDriverNodeType,omitempty"` // Enable the elastic disk on the new cluster. This property is now ignored, and takes the default elastic disk behavior in // Databricks (elastic disks are always enabled). Type: boolean (or Expression // with resultType boolean). NewClusterEnableElasticDisk interface{} `json:"newClusterEnableElasticDisk,omitempty"` // User-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of // strings). NewClusterInitScripts interface{} `json:"newClusterInitScripts,omitempty"` // Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression with resultType string). NewClusterLogDestination interface{} `json:"newClusterLogDestination,omitempty"` // The node type of the new job cluster. This property is required if newClusterVersion is specified and instancePoolId is // not specified. If instancePoolId is specified, this property is ignored. Type: // string (or Expression with resultType string). NewClusterNodeType interface{} `json:"newClusterNodeType,omitempty"` // If not using an existing interactive cluster, this specifies the number of worker nodes to use for the new job cluster // or instance pool. For new job clusters, this a string-formatted Int32, like '1' // means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, this is a string-formatted // Int32, and can only specify a fixed number of worker nodes, such as '2'. // Required if newClusterVersion is specified. Type: string (or Expression with resultType string). NewClusterNumOfWorker interface{} `json:"newClusterNumOfWorker,omitempty"` // A set of optional, user-specified Spark configuration key-value pairs. NewClusterSparkConf map[[string](/builtin#string)]interface{} `json:"newClusterSparkConf,omitempty"` // A set of optional, user-specified Spark environment variables key-value pairs. NewClusterSparkEnvVars map[[string](/builtin#string)]interface{} `json:"newClusterSparkEnvVars,omitempty"` // If not using an existing interactive cluster, this specifies the Spark version of a new job cluster or instance pool nodes // created for each run of this activity. Required if instancePoolId is // specified. Type: string (or Expression with resultType string). NewClusterVersion interface{} `json:"newClusterVersion,omitempty"` // The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression // with resultType string). PolicyID interface{} `json:"policyId,omitempty"` // Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` } ``` AzureDatabricksLinkedServiceTypeProperties - Azure Databricks linked service properties. #### func (AzureDatabricksLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5765) [¶](#AzureDatabricksLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureDatabricksLinkedServiceTypeProperties](#AzureDatabricksLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureDatabricksLinkedServiceTypeProperties. #### func (*AzureDatabricksLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5790) [¶](#AzureDatabricksLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureDatabricksLinkedServiceTypeProperties](#AzureDatabricksLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksLinkedServiceTypeProperties. #### type [AzureFileStorageLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3394) [¶](#AzureFileStorageLinkedService) ``` type AzureFileStorageLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure File Storage linked service properties. TypeProperties *[AzureFileStorageLinkedServiceTypeProperties](#AzureFileStorageLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureFileStorageLinkedService - Azure File Storage linked service. #### func (*AzureFileStorageLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3418) [¶](#AzureFileStorageLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureFileStorageLinkedService](#AzureFileStorageLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureFileStorageLinkedService. #### func (AzureFileStorageLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5864) [¶](#AzureFileStorageLinkedService.MarshalJSON) ``` func (a [AzureFileStorageLinkedService](#AzureFileStorageLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLinkedService. #### func (*AzureFileStorageLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5881) [¶](#AzureFileStorageLinkedService.UnmarshalJSON) ``` func (a *[AzureFileStorageLinkedService](#AzureFileStorageLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileStorageLinkedService. #### type [AzureFileStorageLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3430) [¶](#AzureFileStorageLinkedServiceTypeProperties) ``` type AzureFileStorageLinkedServiceTypeProperties struct { // The Azure key vault secret reference of accountKey in connection string. AccountKey *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"accountKey,omitempty"` // The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The azure file share name. It is required when auth with accountKey/sasToken. Type: string (or Expression with resultType // string). FileShare interface{} `json:"fileShare,omitempty"` // Host name of the server. Type: string (or Expression with resultType string). Host interface{} `json:"host,omitempty"` // Password to logon the server. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The Azure key vault secret reference of sasToken in sas uri. SasToken *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"sasToken,omitempty"` // SAS URI of the Azure File resource. It is mutually exclusive with connectionString property. Type: string, SecureString // or AzureKeyVaultSecretReference. SasURI interface{} `json:"sasUri,omitempty"` // The azure file share snapshot version. Type: string (or Expression with resultType string). Snapshot interface{} `json:"snapshot,omitempty"` // User ID to logon the server. Type: string (or Expression with resultType string). UserID interface{} `json:"userId,omitempty"` } ``` AzureFileStorageLinkedServiceTypeProperties - Azure File Storage linked service properties. #### func (AzureFileStorageLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5926) [¶](#AzureFileStorageLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureFileStorageLinkedServiceTypeProperties](#AzureFileStorageLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLinkedServiceTypeProperties. #### func (*AzureFileStorageLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5942) [¶](#AzureFileStorageLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureFileStorageLinkedServiceTypeProperties](#AzureFileStorageLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileStorageLinkedServiceTypeProperties. #### type [AzureFileStorageLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3466) [¶](#AzureFileStorageLocation) ``` type AzureFileStorageLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` AzureFileStorageLocation - The location of file server dataset. #### func (*AzureFileStorageLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3481) [¶](#AzureFileStorageLocation.GetDatasetLocation) added in v0.2.0 ``` func (a *[AzureFileStorageLocation](#AzureFileStorageLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type AzureFileStorageLocation. #### func (AzureFileStorageLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L5989) [¶](#AzureFileStorageLocation.MarshalJSON) ``` func (a [AzureFileStorageLocation](#AzureFileStorageLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLocation. #### func (*AzureFileStorageLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6003) [¶](#AzureFileStorageLocation.UnmarshalJSON) added in v0.2.0 ``` func (a *[AzureFileStorageLocation](#AzureFileStorageLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileStorageLocation. #### type [AzureFileStorageReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3491) [¶](#AzureFileStorageReadSettings) ``` type AzureFileStorageReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // The prefix filter for the Azure File name starting from root path. Type: string (or Expression with resultType string). Prefix interface{} `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Azure File Storage wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // Azure File Storage wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` AzureFileStorageReadSettings - Azure File Storage read settings. #### func (*AzureFileStorageReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3539) [¶](#AzureFileStorageReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (a *[AzureFileStorageReadSettings](#AzureFileStorageReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureFileStorageReadSettings. #### func (AzureFileStorageReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6039) [¶](#AzureFileStorageReadSettings.MarshalJSON) ``` func (a [AzureFileStorageReadSettings](#AzureFileStorageReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFileStorageReadSettings. #### func (*AzureFileStorageReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6063) [¶](#AzureFileStorageReadSettings.UnmarshalJSON) ``` func (a *[AzureFileStorageReadSettings](#AzureFileStorageReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileStorageReadSettings. #### type [AzureFileStorageWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3549) [¶](#AzureFileStorageWriteSettings) ``` type AzureFileStorageWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` } ``` AzureFileStorageWriteSettings - Azure File Storage write settings. #### func (*AzureFileStorageWriteSettings) [GetStoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3567) [¶](#AzureFileStorageWriteSettings.GetStoreWriteSettings) added in v0.2.0 ``` func (a *[AzureFileStorageWriteSettings](#AzureFileStorageWriteSettings)) GetStoreWriteSettings() *[StoreWriteSettings](#StoreWriteSettings) ``` GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureFileStorageWriteSettings. #### func (AzureFileStorageWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6129) [¶](#AzureFileStorageWriteSettings.MarshalJSON) ``` func (a [AzureFileStorageWriteSettings](#AzureFileStorageWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFileStorageWriteSettings. #### func (*AzureFileStorageWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6144) [¶](#AzureFileStorageWriteSettings.UnmarshalJSON) added in v0.2.0 ``` func (a *[AzureFileStorageWriteSettings](#AzureFileStorageWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileStorageWriteSettings. #### type [AzureFunctionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3578) [¶](#AzureFunctionActivity) ``` type AzureFunctionActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Function activity properties. TypeProperties *[AzureFunctionActivityTypeProperties](#AzureFunctionActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` AzureFunctionActivity - Azure Function activity. #### func (*AzureFunctionActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3608) [¶](#AzureFunctionActivity.GetActivity) added in v0.2.0 ``` func (a *[AzureFunctionActivity](#AzureFunctionActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type AzureFunctionActivity. #### func (*AzureFunctionActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3620) [¶](#AzureFunctionActivity.GetExecutionActivity) added in v0.2.0 ``` func (a *[AzureFunctionActivity](#AzureFunctionActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureFunctionActivity. #### func (AzureFunctionActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6183) [¶](#AzureFunctionActivity.MarshalJSON) ``` func (a [AzureFunctionActivity](#AzureFunctionActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFunctionActivity. #### func (*AzureFunctionActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6202) [¶](#AzureFunctionActivity.UnmarshalJSON) ``` func (a *[AzureFunctionActivity](#AzureFunctionActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionActivity. #### type [AzureFunctionActivityMethod](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L56) [¶](#AzureFunctionActivityMethod) ``` type AzureFunctionActivityMethod [string](/builtin#string) ``` AzureFunctionActivityMethod - The list of HTTP methods supported by a AzureFunctionActivity. ``` const ( AzureFunctionActivityMethodDELETE [AzureFunctionActivityMethod](#AzureFunctionActivityMethod) = "DELETE" AzureFunctionActivityMethodGET [AzureFunctionActivityMethod](#AzureFunctionActivityMethod) = "GET" AzureFunctionActivityMethodHEAD [AzureFunctionActivityMethod](#AzureFunctionActivityMethod) = "HEAD" AzureFunctionActivityMethodOPTIONS [AzureFunctionActivityMethod](#AzureFunctionActivityMethod) = "OPTIONS" AzureFunctionActivityMethodPOST [AzureFunctionActivityMethod](#AzureFunctionActivityMethod) = "POST" AzureFunctionActivityMethodPUT [AzureFunctionActivityMethod](#AzureFunctionActivityMethod) = "PUT" AzureFunctionActivityMethodTRACE [AzureFunctionActivityMethod](#AzureFunctionActivityMethod) = "TRACE" ) ``` #### func [PossibleAzureFunctionActivityMethodValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L69) [¶](#PossibleAzureFunctionActivityMethodValues) ``` func PossibleAzureFunctionActivityMethodValues() [][AzureFunctionActivityMethod](#AzureFunctionActivityMethod) ``` PossibleAzureFunctionActivityMethodValues returns the possible values for the AzureFunctionActivityMethod const type. #### type [AzureFunctionActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3634) [¶](#AzureFunctionActivityTypeProperties) ``` type AzureFunctionActivityTypeProperties struct { // REQUIRED; Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType // string) FunctionName interface{} `json:"functionName,omitempty"` // REQUIRED; Rest API method for target endpoint. Method *[AzureFunctionActivityMethod](#AzureFunctionActivityMethod) `json:"method,omitempty"` // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). Body interface{} `json:"body,omitempty"` // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). Headers interface{} `json:"headers,omitempty"` } ``` AzureFunctionActivityTypeProperties - Azure Function activity type properties. #### func (AzureFunctionActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6253) [¶](#AzureFunctionActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureFunctionActivityTypeProperties](#AzureFunctionActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFunctionActivityTypeProperties. #### func (*AzureFunctionActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6263) [¶](#AzureFunctionActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureFunctionActivityTypeProperties](#AzureFunctionActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionActivityTypeProperties. #### type [AzureFunctionLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3653) [¶](#AzureFunctionLinkedService) ``` type AzureFunctionLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Function linked service properties. TypeProperties *[AzureFunctionLinkedServiceTypeProperties](#AzureFunctionLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureFunctionLinkedService - Azure Function linked service. #### func (*AzureFunctionLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3677) [¶](#AzureFunctionLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureFunctionLinkedService](#AzureFunctionLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureFunctionLinkedService. #### func (AzureFunctionLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6292) [¶](#AzureFunctionLinkedService.MarshalJSON) ``` func (a [AzureFunctionLinkedService](#AzureFunctionLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFunctionLinkedService. #### func (*AzureFunctionLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6309) [¶](#AzureFunctionLinkedService.UnmarshalJSON) ``` func (a *[AzureFunctionLinkedService](#AzureFunctionLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionLinkedService. #### type [AzureFunctionLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3689) [¶](#AzureFunctionLinkedServiceTypeProperties) ``` type AzureFunctionLinkedServiceTypeProperties struct { // REQUIRED; The endpoint of the Azure Function App. URL will be in the format <https://.azurewebsites.net.> FunctionAppURL interface{} `json:"functionAppUrl,omitempty"` // Type of authentication (Required to specify MSI) used to connect to AzureFunction. Type: string (or Expression with resultType // string). Authentication interface{} `json:"authentication,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Function or Host key for Azure Function App. FunctionKey [SecretBaseClassification](#SecretBaseClassification) `json:"functionKey,omitempty"` // Allowed token audiences for azure function. ResourceID interface{} `json:"resourceId,omitempty"` } ``` AzureFunctionLinkedServiceTypeProperties - Azure Function linked service properties. #### func (AzureFunctionLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6354) [¶](#AzureFunctionLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureFunctionLinkedServiceTypeProperties](#AzureFunctionLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureFunctionLinkedServiceTypeProperties. #### func (*AzureFunctionLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6366) [¶](#AzureFunctionLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureFunctionLinkedServiceTypeProperties](#AzureFunctionLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionLinkedServiceTypeProperties. #### type [AzureKeyVaultLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3712) [¶](#AzureKeyVaultLinkedService) ``` type AzureKeyVaultLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Key Vault linked service properties. TypeProperties *[AzureKeyVaultLinkedServiceTypeProperties](#AzureKeyVaultLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureKeyVaultLinkedService - Azure Key Vault linked service. #### func (*AzureKeyVaultLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3736) [¶](#AzureKeyVaultLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureKeyVaultLinkedService](#AzureKeyVaultLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureKeyVaultLinkedService. #### func (AzureKeyVaultLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6401) [¶](#AzureKeyVaultLinkedService.MarshalJSON) ``` func (a [AzureKeyVaultLinkedService](#AzureKeyVaultLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultLinkedService. #### func (*AzureKeyVaultLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6418) [¶](#AzureKeyVaultLinkedService.UnmarshalJSON) ``` func (a *[AzureKeyVaultLinkedService](#AzureKeyVaultLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureKeyVaultLinkedService. #### type [AzureKeyVaultLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3748) [¶](#AzureKeyVaultLinkedServiceTypeProperties) ``` type AzureKeyVaultLinkedServiceTypeProperties struct { // REQUIRED; The base URL of the Azure Key Vault. e.g. <https://myakv.vault.azure.net> Type: string (or Expression with resultType // string). BaseURL interface{} `json:"baseUrl,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` } ``` AzureKeyVaultLinkedServiceTypeProperties - Azure Key Vault linked service properties. #### func (AzureKeyVaultLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6463) [¶](#AzureKeyVaultLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureKeyVaultLinkedServiceTypeProperties](#AzureKeyVaultLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultLinkedServiceTypeProperties. #### func (*AzureKeyVaultLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6471) [¶](#AzureKeyVaultLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureKeyVaultLinkedServiceTypeProperties](#AzureKeyVaultLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureKeyVaultLinkedServiceTypeProperties. #### type [AzureKeyVaultSecretReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3758) [¶](#AzureKeyVaultSecretReference) ``` type AzureKeyVaultSecretReference struct { // REQUIRED; The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). SecretName interface{} `json:"secretName,omitempty"` // REQUIRED; The Azure Key Vault linked service reference. Store *[LinkedServiceReference](#LinkedServiceReference) `json:"store,omitempty"` // REQUIRED; Type of the secret. Type *[string](/builtin#string) `json:"type,omitempty"` // The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression // with resultType string). SecretVersion interface{} `json:"secretVersion,omitempty"` } ``` AzureKeyVaultSecretReference - Azure Key Vault secret reference. #### func (*AzureKeyVaultSecretReference) [GetSecretBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3774) [¶](#AzureKeyVaultSecretReference.GetSecretBase) added in v0.2.0 ``` func (a *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference)) GetSecretBase() *[SecretBase](#SecretBase) ``` GetSecretBase implements the SecretBaseClassification interface for type AzureKeyVaultSecretReference. #### func (AzureKeyVaultSecretReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6494) [¶](#AzureKeyVaultSecretReference.MarshalJSON) ``` func (a [AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultSecretReference. #### func (*AzureKeyVaultSecretReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6504) [¶](#AzureKeyVaultSecretReference.UnmarshalJSON) ``` func (a *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureKeyVaultSecretReference. #### type [AzureMLBatchExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3781) [¶](#AzureMLBatchExecutionActivity) ``` type AzureMLBatchExecutionActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure ML Batch Execution activity properties. TypeProperties *[AzureMLBatchExecutionActivityTypeProperties](#AzureMLBatchExecutionActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` AzureMLBatchExecutionActivity - Azure ML Batch Execution activity. #### func (*AzureMLBatchExecutionActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3811) [¶](#AzureMLBatchExecutionActivity.GetActivity) added in v0.2.0 ``` func (a *[AzureMLBatchExecutionActivity](#AzureMLBatchExecutionActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type AzureMLBatchExecutionActivity. #### func (*AzureMLBatchExecutionActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3823) [¶](#AzureMLBatchExecutionActivity.GetExecutionActivity) added in v0.2.0 ``` func (a *[AzureMLBatchExecutionActivity](#AzureMLBatchExecutionActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureMLBatchExecutionActivity. #### func (AzureMLBatchExecutionActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6533) [¶](#AzureMLBatchExecutionActivity.MarshalJSON) ``` func (a [AzureMLBatchExecutionActivity](#AzureMLBatchExecutionActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLBatchExecutionActivity. #### func (*AzureMLBatchExecutionActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6552) [¶](#AzureMLBatchExecutionActivity.UnmarshalJSON) ``` func (a *[AzureMLBatchExecutionActivity](#AzureMLBatchExecutionActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLBatchExecutionActivity. #### type [AzureMLBatchExecutionActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3837) [¶](#AzureMLBatchExecutionActivityTypeProperties) ``` type AzureMLBatchExecutionActivityTypeProperties struct { // Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match the names of web service // parameters defined in the published Azure ML web service. Values will be passed // in the GlobalParameters property of the Azure ML batch execution request. GlobalParameters map[[string](/builtin#string)]interface{} `json:"globalParameters,omitempty"` // Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects specifying // the input Blob locations.. This information will be passed in the // WebServiceInputs property of the Azure ML batch execution request. WebServiceInputs map[[string](/builtin#string)]*[AzureMLWebServiceFile](#AzureMLWebServiceFile) `json:"webServiceInputs,omitempty"` // Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs to AzureMLWebServiceFile objects specifying // the output Blob locations. This information will be passed in the // WebServiceOutputs property of the Azure ML batch execution request. WebServiceOutputs map[[string](/builtin#string)]*[AzureMLWebServiceFile](#AzureMLWebServiceFile) `json:"webServiceOutputs,omitempty"` } ``` AzureMLBatchExecutionActivityTypeProperties - Azure ML Batch Execution activity properties. #### func (AzureMLBatchExecutionActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6603) [¶](#AzureMLBatchExecutionActivityTypeProperties.MarshalJSON) ``` func (a [AzureMLBatchExecutionActivityTypeProperties](#AzureMLBatchExecutionActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLBatchExecutionActivityTypeProperties. #### func (*AzureMLBatchExecutionActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6612) [¶](#AzureMLBatchExecutionActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureMLBatchExecutionActivityTypeProperties](#AzureMLBatchExecutionActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLBatchExecutionActivityTypeProperties. #### type [AzureMLExecutePipelineActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3855) [¶](#AzureMLExecutePipelineActivity) ``` type AzureMLExecutePipelineActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure ML Execute Pipeline activity properties. TypeProperties *[AzureMLExecutePipelineActivityTypeProperties](#AzureMLExecutePipelineActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` AzureMLExecutePipelineActivity - Azure ML Execute Pipeline activity. #### func (*AzureMLExecutePipelineActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3885) [¶](#AzureMLExecutePipelineActivity.GetActivity) added in v0.2.0 ``` func (a *[AzureMLExecutePipelineActivity](#AzureMLExecutePipelineActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type AzureMLExecutePipelineActivity. #### func (*AzureMLExecutePipelineActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3897) [¶](#AzureMLExecutePipelineActivity.GetExecutionActivity) added in v0.2.0 ``` func (a *[AzureMLExecutePipelineActivity](#AzureMLExecutePipelineActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureMLExecutePipelineActivity. #### func (AzureMLExecutePipelineActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6638) [¶](#AzureMLExecutePipelineActivity.MarshalJSON) ``` func (a [AzureMLExecutePipelineActivity](#AzureMLExecutePipelineActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLExecutePipelineActivity. #### func (*AzureMLExecutePipelineActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6657) [¶](#AzureMLExecutePipelineActivity.UnmarshalJSON) ``` func (a *[AzureMLExecutePipelineActivity](#AzureMLExecutePipelineActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLExecutePipelineActivity. #### type [AzureMLExecutePipelineActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3911) [¶](#AzureMLExecutePipelineActivityTypeProperties) ``` type AzureMLExecutePipelineActivityTypeProperties struct { // Whether to continue execution of other steps in the PipelineRun if a step fails. This information will be passed in the // continueOnStepFailure property of the published pipeline execution request. // Type: boolean (or Expression with resultType boolean). ContinueOnStepFailure interface{} `json:"continueOnStepFailure,omitempty"` // Dictionary used for changing data path assignments without retraining. Values will be passed in the dataPathAssignments // property of the published pipeline execution request. Type: object with key // value pairs (or Expression with resultType object). DataPathAssignments interface{} `json:"dataPathAssignments,omitempty"` // Run history experiment name of the pipeline run. This information will be passed in the ExperimentName property of the // published pipeline execution request. Type: string (or Expression with resultType // string). ExperimentName interface{} `json:"experimentName,omitempty"` // The parent Azure ML Service pipeline run id. This information will be passed in the ParentRunId property of the published // pipeline execution request. Type: string (or Expression with resultType // string). MlParentRunID interface{} `json:"mlParentRunId,omitempty"` // ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). MlPipelineEndpointID interface{} `json:"mlPipelineEndpointId,omitempty"` // ID of the published Azure ML pipeline. Type: string (or Expression with resultType string). MlPipelineID interface{} `json:"mlPipelineId,omitempty"` // Key,Value pairs to be passed to the published Azure ML pipeline endpoint. Keys must match the names of pipeline parameters // defined in the published pipeline. Values will be passed in the // ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression // with resultType object). MlPipelineParameters interface{} `json:"mlPipelineParameters,omitempty"` // Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). Version interface{} `json:"version,omitempty"` } ``` AzureMLExecutePipelineActivityTypeProperties - Azure ML Execute Pipeline activity properties. #### func (AzureMLExecutePipelineActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6708) [¶](#AzureMLExecutePipelineActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureMLExecutePipelineActivityTypeProperties](#AzureMLExecutePipelineActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLExecutePipelineActivityTypeProperties. #### func (*AzureMLExecutePipelineActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6722) [¶](#AzureMLExecutePipelineActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureMLExecutePipelineActivityTypeProperties](#AzureMLExecutePipelineActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLExecutePipelineActivityTypeProperties. #### type [AzureMLLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3949) [¶](#AzureMLLinkedService) ``` type AzureMLLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure ML Studio Web Service linked service properties. TypeProperties *[AzureMLLinkedServiceTypeProperties](#AzureMLLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureMLLinkedService - Azure ML Studio Web Service linked service. #### func (*AzureMLLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3973) [¶](#AzureMLLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureMLLinkedService](#AzureMLLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureMLLinkedService. #### func (AzureMLLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6763) [¶](#AzureMLLinkedService.MarshalJSON) ``` func (a [AzureMLLinkedService](#AzureMLLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLLinkedService. #### func (*AzureMLLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6780) [¶](#AzureMLLinkedService.UnmarshalJSON) ``` func (a *[AzureMLLinkedService](#AzureMLLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLLinkedService. #### type [AzureMLLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L3985) [¶](#AzureMLLinkedServiceTypeProperties) ``` type AzureMLLinkedServiceTypeProperties struct { // REQUIRED; The API key for accessing the Azure ML model endpoint. APIKey [SecretBaseClassification](#SecretBaseClassification) `json:"apiKey,omitempty"` // REQUIRED; The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType // string). MlEndpoint interface{} `json:"mlEndpoint,omitempty"` // Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType // string). Authentication interface{} `json:"authentication,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio // web service. Type: string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio // web service. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` // The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). UpdateResourceEndpoint interface{} `json:"updateResourceEndpoint,omitempty"` } ``` AzureMLLinkedServiceTypeProperties - Azure ML Studio Web Service linked service properties. #### func (AzureMLLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6825) [¶](#AzureMLLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureMLLinkedServiceTypeProperties](#AzureMLLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLLinkedServiceTypeProperties. #### func (*AzureMLLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6839) [¶](#AzureMLLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureMLLinkedServiceTypeProperties](#AzureMLLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLLinkedServiceTypeProperties. #### type [AzureMLServiceLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4017) [¶](#AzureMLServiceLinkedService) ``` type AzureMLServiceLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure ML Service linked service properties. TypeProperties *[AzureMLServiceLinkedServiceTypeProperties](#AzureMLServiceLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureMLServiceLinkedService - Azure ML Service linked service. #### func (*AzureMLServiceLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4041) [¶](#AzureMLServiceLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureMLServiceLinkedService](#AzureMLServiceLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureMLServiceLinkedService. #### func (AzureMLServiceLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6880) [¶](#AzureMLServiceLinkedService.MarshalJSON) ``` func (a [AzureMLServiceLinkedService](#AzureMLServiceLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLServiceLinkedService. #### func (*AzureMLServiceLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6897) [¶](#AzureMLServiceLinkedService.UnmarshalJSON) ``` func (a *[AzureMLServiceLinkedService](#AzureMLServiceLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLServiceLinkedService. #### type [AzureMLServiceLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4053) [¶](#AzureMLServiceLinkedServiceTypeProperties) ``` type AzureMLServiceLinkedServiceTypeProperties struct { // REQUIRED; Azure ML Service workspace name. Type: string (or Expression with resultType string). MlWorkspaceName interface{} `json:"mlWorkspaceName,omitempty"` // REQUIRED; Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` // REQUIRED; Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). SubscriptionID interface{} `json:"subscriptionId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. Type: // string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` AzureMLServiceLinkedServiceTypeProperties - Azure ML Service linked service properties. #### func (AzureMLServiceLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6942) [¶](#AzureMLServiceLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureMLServiceLinkedServiceTypeProperties](#AzureMLServiceLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLServiceLinkedServiceTypeProperties. #### func (*AzureMLServiceLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6955) [¶](#AzureMLServiceLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureMLServiceLinkedServiceTypeProperties](#AzureMLServiceLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLServiceLinkedServiceTypeProperties. #### type [AzureMLUpdateResourceActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4079) [¶](#AzureMLUpdateResourceActivity) ``` type AzureMLUpdateResourceActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure ML Update Resource management activity properties. TypeProperties *[AzureMLUpdateResourceActivityTypeProperties](#AzureMLUpdateResourceActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` AzureMLUpdateResourceActivity - Azure ML Update Resource management activity. #### func (*AzureMLUpdateResourceActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4109) [¶](#AzureMLUpdateResourceActivity.GetActivity) added in v0.2.0 ``` func (a *[AzureMLUpdateResourceActivity](#AzureMLUpdateResourceActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type AzureMLUpdateResourceActivity. #### func (*AzureMLUpdateResourceActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4121) [¶](#AzureMLUpdateResourceActivity.GetExecutionActivity) added in v0.2.0 ``` func (a *[AzureMLUpdateResourceActivity](#AzureMLUpdateResourceActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureMLUpdateResourceActivity. #### func (AzureMLUpdateResourceActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L6993) [¶](#AzureMLUpdateResourceActivity.MarshalJSON) ``` func (a [AzureMLUpdateResourceActivity](#AzureMLUpdateResourceActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLUpdateResourceActivity. #### func (*AzureMLUpdateResourceActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7012) [¶](#AzureMLUpdateResourceActivity.UnmarshalJSON) ``` func (a *[AzureMLUpdateResourceActivity](#AzureMLUpdateResourceActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLUpdateResourceActivity. #### type [AzureMLUpdateResourceActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4135) [¶](#AzureMLUpdateResourceActivityTypeProperties) ``` type AzureMLUpdateResourceActivityTypeProperties struct { // REQUIRED; The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by // the update operation. Type: string (or Expression with resultType string). TrainedModelFilePath interface{} `json:"trainedModelFilePath,omitempty"` // REQUIRED; Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. TrainedModelLinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"trainedModelLinkedServiceName,omitempty"` // REQUIRED; Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with // resultType string). TrainedModelName interface{} `json:"trainedModelName,omitempty"` } ``` AzureMLUpdateResourceActivityTypeProperties - Azure ML Update Resource activity properties. #### func (AzureMLUpdateResourceActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7063) [¶](#AzureMLUpdateResourceActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureMLUpdateResourceActivityTypeProperties](#AzureMLUpdateResourceActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLUpdateResourceActivityTypeProperties. #### func (*AzureMLUpdateResourceActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7072) [¶](#AzureMLUpdateResourceActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureMLUpdateResourceActivityTypeProperties](#AzureMLUpdateResourceActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLUpdateResourceActivityTypeProperties. #### type [AzureMLWebServiceFile](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4149) [¶](#AzureMLWebServiceFile) ``` type AzureMLWebServiceFile struct { // REQUIRED; The relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: // string (or Expression with resultType string). FilePath interface{} `json:"filePath,omitempty"` // REQUIRED; Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` } ``` AzureMLWebServiceFile - Azure ML WebService Input/Output file #### func (AzureMLWebServiceFile) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7098) [¶](#AzureMLWebServiceFile.MarshalJSON) added in v1.3.0 ``` func (a [AzureMLWebServiceFile](#AzureMLWebServiceFile)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMLWebServiceFile. #### func (*AzureMLWebServiceFile) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7106) [¶](#AzureMLWebServiceFile.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureMLWebServiceFile](#AzureMLWebServiceFile)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLWebServiceFile. #### type [AzureMariaDBLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4159) [¶](#AzureMariaDBLinkedService) ``` type AzureMariaDBLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Database for MariaDB linked service properties. TypeProperties *[AzureMariaDBLinkedServiceTypeProperties](#AzureMariaDBLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureMariaDBLinkedService - Azure Database for MariaDB linked service. #### func (*AzureMariaDBLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4183) [¶](#AzureMariaDBLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureMariaDBLinkedService](#AzureMariaDBLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureMariaDBLinkedService. #### func (AzureMariaDBLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7129) [¶](#AzureMariaDBLinkedService.MarshalJSON) ``` func (a [AzureMariaDBLinkedService](#AzureMariaDBLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMariaDBLinkedService. #### func (*AzureMariaDBLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7146) [¶](#AzureMariaDBLinkedService.UnmarshalJSON) ``` func (a *[AzureMariaDBLinkedService](#AzureMariaDBLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMariaDBLinkedService. #### type [AzureMariaDBLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4195) [¶](#AzureMariaDBLinkedServiceTypeProperties) ``` type AzureMariaDBLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"pwd,omitempty"` } ``` AzureMariaDBLinkedServiceTypeProperties - Azure Database for MariaDB linked service properties. #### func (AzureMariaDBLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7191) [¶](#AzureMariaDBLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureMariaDBLinkedServiceTypeProperties](#AzureMariaDBLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMariaDBLinkedServiceTypeProperties. #### func (*AzureMariaDBLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7200) [¶](#AzureMariaDBLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureMariaDBLinkedServiceTypeProperties](#AzureMariaDBLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMariaDBLinkedServiceTypeProperties. #### type [AzureMariaDBSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4208) [¶](#AzureMariaDBSource) ``` type AzureMariaDBSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AzureMariaDBSource - A copy activity Azure MariaDB source. #### func (*AzureMariaDBSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4239) [¶](#AzureMariaDBSource.GetCopySource) added in v0.2.0 ``` func (a *[AzureMariaDBSource](#AzureMariaDBSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzureMariaDBSource. #### func (*AzureMariaDBSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4251) [¶](#AzureMariaDBSource.GetTabularSource) added in v0.2.0 ``` func (a *[AzureMariaDBSource](#AzureMariaDBSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type AzureMariaDBSource. #### func (AzureMariaDBSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7226) [¶](#AzureMariaDBSource.MarshalJSON) ``` func (a [AzureMariaDBSource](#AzureMariaDBSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMariaDBSource. #### func (*AzureMariaDBSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7245) [¶](#AzureMariaDBSource.UnmarshalJSON) ``` func (a *[AzureMariaDBSource](#AzureMariaDBSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMariaDBSource. #### type [AzureMariaDBTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4265) [¶](#AzureMariaDBTableDataset) ``` type AzureMariaDBTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzureMariaDBTableDataset - Azure Database for MariaDB dataset. #### func (*AzureMariaDBTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4299) [¶](#AzureMariaDBTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureMariaDBTableDataset](#AzureMariaDBTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureMariaDBTableDataset. #### func (AzureMariaDBTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7296) [¶](#AzureMariaDBTableDataset.MarshalJSON) ``` func (a [AzureMariaDBTableDataset](#AzureMariaDBTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMariaDBTableDataset. #### func (*AzureMariaDBTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7316) [¶](#AzureMariaDBTableDataset.UnmarshalJSON) ``` func (a *[AzureMariaDBTableDataset](#AzureMariaDBTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMariaDBTableDataset. #### type [AzureMySQLLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4314) [¶](#AzureMySQLLinkedService) ``` type AzureMySQLLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure MySQL database linked service properties. TypeProperties *[AzureMySQLLinkedServiceTypeProperties](#AzureMySQLLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureMySQLLinkedService - Azure MySQL database linked service. #### func (*AzureMySQLLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4338) [¶](#AzureMySQLLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureMySQLLinkedService](#AzureMySQLLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureMySQLLinkedService. #### func (AzureMySQLLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7370) [¶](#AzureMySQLLinkedService.MarshalJSON) ``` func (a [AzureMySQLLinkedService](#AzureMySQLLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMySQLLinkedService. #### func (*AzureMySQLLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7387) [¶](#AzureMySQLLinkedService.UnmarshalJSON) ``` func (a *[AzureMySQLLinkedService](#AzureMySQLLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMySQLLinkedService. #### type [AzureMySQLLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4350) [¶](#AzureMySQLLinkedServiceTypeProperties) ``` type AzureMySQLLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` } ``` AzureMySQLLinkedServiceTypeProperties - Azure MySQL database linked service properties. #### func (AzureMySQLLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7432) [¶](#AzureMySQLLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureMySQLLinkedServiceTypeProperties](#AzureMySQLLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMySQLLinkedServiceTypeProperties. #### func (*AzureMySQLLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7441) [¶](#AzureMySQLLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureMySQLLinkedServiceTypeProperties](#AzureMySQLLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMySQLLinkedServiceTypeProperties. #### type [AzureMySQLSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4363) [¶](#AzureMySQLSink) ``` type AzureMySQLSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AzureMySQLSink - A copy activity Azure MySql sink. #### func (*AzureMySQLSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4393) [¶](#AzureMySQLSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureMySQLSink](#AzureMySQLSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureMySQLSink. #### func (AzureMySQLSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7467) [¶](#AzureMySQLSink.MarshalJSON) ``` func (a [AzureMySQLSink](#AzureMySQLSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMySQLSink. #### func (*AzureMySQLSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7486) [¶](#AzureMySQLSink.UnmarshalJSON) ``` func (a *[AzureMySQLSink](#AzureMySQLSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMySQLSink. #### type [AzureMySQLSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4407) [¶](#AzureMySQLSource) ``` type AzureMySQLSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AzureMySQLSource - A copy activity Azure MySQL source. #### func (*AzureMySQLSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4438) [¶](#AzureMySQLSource.GetCopySource) added in v0.2.0 ``` func (a *[AzureMySQLSource](#AzureMySQLSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzureMySQLSource. #### func (*AzureMySQLSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4450) [¶](#AzureMySQLSource.GetTabularSource) added in v0.2.0 ``` func (a *[AzureMySQLSource](#AzureMySQLSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type AzureMySQLSource. #### func (AzureMySQLSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7537) [¶](#AzureMySQLSource.MarshalJSON) ``` func (a [AzureMySQLSource](#AzureMySQLSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMySQLSource. #### func (*AzureMySQLSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7556) [¶](#AzureMySQLSource.UnmarshalJSON) ``` func (a *[AzureMySQLSource](#AzureMySQLSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMySQLSource. #### type [AzureMySQLTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4464) [¶](#AzureMySQLTableDataset) ``` type AzureMySQLTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure MySQL database dataset properties. TypeProperties *[AzureMySQLTableDatasetTypeProperties](#AzureMySQLTableDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` AzureMySQLTableDataset - The Azure MySQL database dataset. #### func (*AzureMySQLTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4498) [¶](#AzureMySQLTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureMySQLTableDataset](#AzureMySQLTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureMySQLTableDataset. #### func (AzureMySQLTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7607) [¶](#AzureMySQLTableDataset.MarshalJSON) ``` func (a [AzureMySQLTableDataset](#AzureMySQLTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMySQLTableDataset. #### func (*AzureMySQLTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7627) [¶](#AzureMySQLTableDataset.UnmarshalJSON) ``` func (a *[AzureMySQLTableDataset](#AzureMySQLTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMySQLTableDataset. #### type [AzureMySQLTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4513) [¶](#AzureMySQLTableDatasetTypeProperties) ``` type AzureMySQLTableDatasetTypeProperties struct { // The name of Azure MySQL database table. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // The Azure MySQL database table name. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` AzureMySQLTableDatasetTypeProperties - Azure MySQL database dataset properties. #### func (AzureMySQLTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7681) [¶](#AzureMySQLTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureMySQLTableDatasetTypeProperties](#AzureMySQLTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureMySQLTableDatasetTypeProperties. #### func (*AzureMySQLTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7689) [¶](#AzureMySQLTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureMySQLTableDatasetTypeProperties](#AzureMySQLTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureMySQLTableDatasetTypeProperties. #### type [AzurePostgreSQLLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4522) [¶](#AzurePostgreSQLLinkedService) ``` type AzurePostgreSQLLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure PostgreSQL linked service properties. TypeProperties *[AzurePostgreSQLLinkedServiceTypeProperties](#AzurePostgreSQLLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzurePostgreSQLLinkedService - Azure PostgreSQL linked service. #### func (*AzurePostgreSQLLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4546) [¶](#AzurePostgreSQLLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzurePostgreSQLLinkedService](#AzurePostgreSQLLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzurePostgreSQLLinkedService. #### func (AzurePostgreSQLLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7712) [¶](#AzurePostgreSQLLinkedService.MarshalJSON) ``` func (a [AzurePostgreSQLLinkedService](#AzurePostgreSQLLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLLinkedService. #### func (*AzurePostgreSQLLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7729) [¶](#AzurePostgreSQLLinkedService.UnmarshalJSON) ``` func (a *[AzurePostgreSQLLinkedService](#AzurePostgreSQLLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzurePostgreSQLLinkedService. #### type [AzurePostgreSQLLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4558) [¶](#AzurePostgreSQLLinkedServiceTypeProperties) ``` type AzurePostgreSQLLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` } ``` AzurePostgreSQLLinkedServiceTypeProperties - Azure PostgreSQL linked service properties. #### func (AzurePostgreSQLLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7774) [¶](#AzurePostgreSQLLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzurePostgreSQLLinkedServiceTypeProperties](#AzurePostgreSQLLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLLinkedServiceTypeProperties. #### func (*AzurePostgreSQLLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7783) [¶](#AzurePostgreSQLLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzurePostgreSQLLinkedServiceTypeProperties](#AzurePostgreSQLLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzurePostgreSQLLinkedServiceTypeProperties. #### type [AzurePostgreSQLSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4571) [¶](#AzurePostgreSQLSink) ``` type AzurePostgreSQLSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AzurePostgreSQLSink - A copy activity Azure PostgreSQL sink. #### func (*AzurePostgreSQLSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4601) [¶](#AzurePostgreSQLSink.GetCopySink) added in v0.2.0 ``` func (a *[AzurePostgreSQLSink](#AzurePostgreSQLSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzurePostgreSQLSink. #### func (AzurePostgreSQLSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7809) [¶](#AzurePostgreSQLSink.MarshalJSON) ``` func (a [AzurePostgreSQLSink](#AzurePostgreSQLSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLSink. #### func (*AzurePostgreSQLSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7828) [¶](#AzurePostgreSQLSink.UnmarshalJSON) ``` func (a *[AzurePostgreSQLSink](#AzurePostgreSQLSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzurePostgreSQLSink. #### type [AzurePostgreSQLSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4615) [¶](#AzurePostgreSQLSource) ``` type AzurePostgreSQLSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AzurePostgreSQLSource - A copy activity Azure PostgreSQL source. #### func (*AzurePostgreSQLSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4646) [¶](#AzurePostgreSQLSource.GetCopySource) added in v0.2.0 ``` func (a *[AzurePostgreSQLSource](#AzurePostgreSQLSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzurePostgreSQLSource. #### func (*AzurePostgreSQLSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4658) [¶](#AzurePostgreSQLSource.GetTabularSource) added in v0.2.0 ``` func (a *[AzurePostgreSQLSource](#AzurePostgreSQLSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type AzurePostgreSQLSource. #### func (AzurePostgreSQLSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7879) [¶](#AzurePostgreSQLSource.MarshalJSON) ``` func (a [AzurePostgreSQLSource](#AzurePostgreSQLSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLSource. #### func (*AzurePostgreSQLSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7898) [¶](#AzurePostgreSQLSource.UnmarshalJSON) ``` func (a *[AzurePostgreSQLSource](#AzurePostgreSQLSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzurePostgreSQLSource. #### type [AzurePostgreSQLTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4672) [¶](#AzurePostgreSQLTableDataset) ``` type AzurePostgreSQLTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[AzurePostgreSQLTableDatasetTypeProperties](#AzurePostgreSQLTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzurePostgreSQLTableDataset - Azure PostgreSQL dataset. #### func (*AzurePostgreSQLTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4706) [¶](#AzurePostgreSQLTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AzurePostgreSQLTableDataset](#AzurePostgreSQLTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzurePostgreSQLTableDataset. #### func (AzurePostgreSQLTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7949) [¶](#AzurePostgreSQLTableDataset.MarshalJSON) ``` func (a [AzurePostgreSQLTableDataset](#AzurePostgreSQLTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLTableDataset. #### func (*AzurePostgreSQLTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L7969) [¶](#AzurePostgreSQLTableDataset.UnmarshalJSON) ``` func (a *[AzurePostgreSQLTableDataset](#AzurePostgreSQLTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzurePostgreSQLTableDataset. #### type [AzurePostgreSQLTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4721) [¶](#AzurePostgreSQLTableDatasetTypeProperties) ``` type AzurePostgreSQLTableDatasetTypeProperties struct { // The schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // The table name of the Azure PostgreSQL database which includes both schema and table. Type: string (or Expression with // resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` AzurePostgreSQLTableDatasetTypeProperties - Azure PostgreSQL dataset properties. #### func (AzurePostgreSQLTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8023) [¶](#AzurePostgreSQLTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzurePostgreSQLTableDatasetTypeProperties](#AzurePostgreSQLTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLTableDatasetTypeProperties. #### func (*AzurePostgreSQLTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8032) [¶](#AzurePostgreSQLTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzurePostgreSQLTableDatasetTypeProperties](#AzurePostgreSQLTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzurePostgreSQLTableDatasetTypeProperties. #### type [AzureQueueSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4734) [¶](#AzureQueueSink) ``` type AzureQueueSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AzureQueueSink - A copy activity Azure Queue sink. #### func (*AzureQueueSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4761) [¶](#AzureQueueSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureQueueSink](#AzureQueueSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureQueueSink. #### func (AzureQueueSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8058) [¶](#AzureQueueSink.MarshalJSON) ``` func (a [AzureQueueSink](#AzureQueueSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureQueueSink. #### func (*AzureQueueSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8076) [¶](#AzureQueueSink.UnmarshalJSON) added in v0.2.0 ``` func (a *[AzureQueueSink](#AzureQueueSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureQueueSink. #### type [AzureSQLDWLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4775) [¶](#AzureSQLDWLinkedService) ``` type AzureSQLDWLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure SQL Data Warehouse linked service properties. TypeProperties *[AzureSQLDWLinkedServiceTypeProperties](#AzureSQLDWLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureSQLDWLinkedService - Azure SQL Data Warehouse linked service. #### func (*AzureSQLDWLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4799) [¶](#AzureSQLDWLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureSQLDWLinkedService](#AzureSQLDWLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLDWLinkedService. #### func (AzureSQLDWLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8124) [¶](#AzureSQLDWLinkedService.MarshalJSON) ``` func (a [AzureSQLDWLinkedService](#AzureSQLDWLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLDWLinkedService. #### func (*AzureSQLDWLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8141) [¶](#AzureSQLDWLinkedService.UnmarshalJSON) ``` func (a *[AzureSQLDWLinkedService](#AzureSQLDWLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDWLinkedService. #### type [AzureSQLDWLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4811) [¶](#AzureSQLDWLinkedServiceTypeProperties) ``` type AzureSQLDWLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString // or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` // The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with // resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure SQL Data Warehouse. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` AzureSQLDWLinkedServiceTypeProperties - Azure SQL Data Warehouse linked service properties. #### func (AzureSQLDWLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8186) [¶](#AzureSQLDWLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureSQLDWLinkedServiceTypeProperties](#AzureSQLDWLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLDWLinkedServiceTypeProperties. #### func (*AzureSQLDWLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8200) [¶](#AzureSQLDWLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureSQLDWLinkedServiceTypeProperties](#AzureSQLDWLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDWLinkedServiceTypeProperties. #### type [AzureSQLDWTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4843) [¶](#AzureSQLDWTableDataset) ``` type AzureSQLDWTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Azure SQL Data Warehouse dataset properties. TypeProperties *[AzureSQLDWTableDatasetTypeProperties](#AzureSQLDWTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzureSQLDWTableDataset - The Azure SQL Data Warehouse dataset. #### func (*AzureSQLDWTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4877) [¶](#AzureSQLDWTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureSQLDWTableDataset](#AzureSQLDWTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureSQLDWTableDataset. #### func (AzureSQLDWTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8241) [¶](#AzureSQLDWTableDataset.MarshalJSON) ``` func (a [AzureSQLDWTableDataset](#AzureSQLDWTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLDWTableDataset. #### func (*AzureSQLDWTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8261) [¶](#AzureSQLDWTableDataset.UnmarshalJSON) ``` func (a *[AzureSQLDWTableDataset](#AzureSQLDWTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDWTableDataset. #### type [AzureSQLDWTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4892) [¶](#AzureSQLDWTableDatasetTypeProperties) ``` type AzureSQLDWTableDatasetTypeProperties struct { // The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` AzureSQLDWTableDatasetTypeProperties - Azure SQL Data Warehouse dataset properties. #### func (AzureSQLDWTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8315) [¶](#AzureSQLDWTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureSQLDWTableDatasetTypeProperties](#AzureSQLDWTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLDWTableDatasetTypeProperties. #### func (*AzureSQLDWTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8324) [¶](#AzureSQLDWTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureSQLDWTableDatasetTypeProperties](#AzureSQLDWTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDWTableDatasetTypeProperties. #### type [AzureSQLDatabaseLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4904) [¶](#AzureSQLDatabaseLinkedService) ``` type AzureSQLDatabaseLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure SQL Database linked service properties. TypeProperties *[AzureSQLDatabaseLinkedServiceTypeProperties](#AzureSQLDatabaseLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureSQLDatabaseLinkedService - Microsoft Azure SQL Database linked service. #### func (*AzureSQLDatabaseLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4928) [¶](#AzureSQLDatabaseLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureSQLDatabaseLinkedService](#AzureSQLDatabaseLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLDatabaseLinkedService. #### func (AzureSQLDatabaseLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8350) [¶](#AzureSQLDatabaseLinkedService.MarshalJSON) ``` func (a [AzureSQLDatabaseLinkedService](#AzureSQLDatabaseLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseLinkedService. #### func (*AzureSQLDatabaseLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8367) [¶](#AzureSQLDatabaseLinkedService.UnmarshalJSON) ``` func (a *[AzureSQLDatabaseLinkedService](#AzureSQLDatabaseLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDatabaseLinkedService. #### type [AzureSQLDatabaseLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4940) [¶](#AzureSQLDatabaseLinkedServiceTypeProperties) ``` type AzureSQLDatabaseLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Sql always encrypted properties. AlwaysEncryptedSettings *[SQLAlwaysEncryptedProperties](#SQLAlwaysEncryptedProperties) `json:"alwaysEncryptedSettings,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` // The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType // string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure SQL Database. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` AzureSQLDatabaseLinkedServiceTypeProperties - Azure SQL Database linked service properties. #### func (AzureSQLDatabaseLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8412) [¶](#AzureSQLDatabaseLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureSQLDatabaseLinkedServiceTypeProperties](#AzureSQLDatabaseLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseLinkedServiceTypeProperties. #### func (*AzureSQLDatabaseLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8427) [¶](#AzureSQLDatabaseLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureSQLDatabaseLinkedServiceTypeProperties](#AzureSQLDatabaseLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDatabaseLinkedServiceTypeProperties. #### type [AzureSQLMILinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4974) [¶](#AzureSQLMILinkedService) ``` type AzureSQLMILinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure SQL Managed Instance linked service properties. TypeProperties *[AzureSQLMILinkedServiceTypeProperties](#AzureSQLMILinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureSQLMILinkedService - Azure SQL Managed Instance linked service. #### func (*AzureSQLMILinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L4998) [¶](#AzureSQLMILinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureSQLMILinkedService](#AzureSQLMILinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLMILinkedService. #### func (AzureSQLMILinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8471) [¶](#AzureSQLMILinkedService.MarshalJSON) ``` func (a [AzureSQLMILinkedService](#AzureSQLMILinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLMILinkedService. #### func (*AzureSQLMILinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8488) [¶](#AzureSQLMILinkedService.UnmarshalJSON) ``` func (a *[AzureSQLMILinkedService](#AzureSQLMILinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLMILinkedService. #### type [AzureSQLMILinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5010) [¶](#AzureSQLMILinkedServiceTypeProperties) ``` type AzureSQLMILinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Sql always encrypted properties. AlwaysEncryptedSettings *[SQLAlwaysEncryptedProperties](#SQLAlwaysEncryptedProperties) `json:"alwaysEncryptedSettings,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` // The ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or Expression with // resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure SQL Managed Instance. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` AzureSQLMILinkedServiceTypeProperties - Azure SQL Managed Instance linked service properties. #### func (AzureSQLMILinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8533) [¶](#AzureSQLMILinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureSQLMILinkedServiceTypeProperties](#AzureSQLMILinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLMILinkedServiceTypeProperties. #### func (*AzureSQLMILinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8548) [¶](#AzureSQLMILinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureSQLMILinkedServiceTypeProperties](#AzureSQLMILinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLMILinkedServiceTypeProperties. #### type [AzureSQLMITableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5044) [¶](#AzureSQLMITableDataset) ``` type AzureSQLMITableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Azure SQL Managed Instance dataset properties. TypeProperties *[AzureSQLMITableDatasetTypeProperties](#AzureSQLMITableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzureSQLMITableDataset - The Azure SQL Managed Instance dataset. #### func (*AzureSQLMITableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5078) [¶](#AzureSQLMITableDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureSQLMITableDataset](#AzureSQLMITableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureSQLMITableDataset. #### func (AzureSQLMITableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8592) [¶](#AzureSQLMITableDataset.MarshalJSON) ``` func (a [AzureSQLMITableDataset](#AzureSQLMITableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLMITableDataset. #### func (*AzureSQLMITableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8612) [¶](#AzureSQLMITableDataset.UnmarshalJSON) ``` func (a *[AzureSQLMITableDataset](#AzureSQLMITableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLMITableDataset. #### type [AzureSQLMITableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5093) [¶](#AzureSQLMITableDatasetTypeProperties) ``` type AzureSQLMITableDatasetTypeProperties struct { // The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` AzureSQLMITableDatasetTypeProperties - Azure SQL Managed Instance dataset properties. #### func (AzureSQLMITableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8666) [¶](#AzureSQLMITableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureSQLMITableDatasetTypeProperties](#AzureSQLMITableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLMITableDatasetTypeProperties. #### func (*AzureSQLMITableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8675) [¶](#AzureSQLMITableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureSQLMITableDatasetTypeProperties](#AzureSQLMITableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLMITableDatasetTypeProperties. #### type [AzureSQLSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5105) [¶](#AzureSQLSink) ``` type AzureSQLSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // SQL writer stored procedure name. Type: string (or Expression with resultType string). SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` // SQL writer table type. Type: string (or Expression with resultType string). SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). TableOption interface{} `json:"tableOption,omitempty"` // SQL upsert settings. UpsertSettings *[SQLUpsertSettings](#SQLUpsertSettings) `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` AzureSQLSink - A copy activity Azure SQL sink. #### func (*AzureSQLSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5160) [¶](#AzureSQLSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureSQLSink](#AzureSQLSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureSQLSink. #### func (AzureSQLSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8701) [¶](#AzureSQLSink.MarshalJSON) ``` func (a [AzureSQLSink](#AzureSQLSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLSink. #### func (*AzureSQLSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8728) [¶](#AzureSQLSink.UnmarshalJSON) ``` func (a *[AzureSQLSink](#AzureSQLSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLSink. #### type [AzureSQLSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5174) [¶](#AzureSQLSource) ``` type AzureSQLSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *[SQLPartitionSettings](#SQLPartitionSettings) `json:"partitionSettings,omitempty"` // Which additional types to produce. ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` } ``` AzureSQLSource - A copy activity Azure SQL source. #### func (*AzureSQLSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5222) [¶](#AzureSQLSource.GetCopySource) added in v0.2.0 ``` func (a *[AzureSQLSource](#AzureSQLSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzureSQLSource. #### func (*AzureSQLSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5234) [¶](#AzureSQLSource.GetTabularSource) added in v0.2.0 ``` func (a *[AzureSQLSource](#AzureSQLSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type AzureSQLSource. #### func (AzureSQLSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8803) [¶](#AzureSQLSource.MarshalJSON) ``` func (a [AzureSQLSource](#AzureSQLSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLSource. #### func (*AzureSQLSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8827) [¶](#AzureSQLSource.UnmarshalJSON) ``` func (a *[AzureSQLSource](#AzureSQLSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLSource. #### type [AzureSQLTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5248) [¶](#AzureSQLTableDataset) ``` type AzureSQLTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Azure SQL dataset properties. TypeProperties *[AzureSQLTableDatasetTypeProperties](#AzureSQLTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` AzureSQLTableDataset - The Azure SQL Server database dataset. #### func (*AzureSQLTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5282) [¶](#AzureSQLTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureSQLTableDataset](#AzureSQLTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureSQLTableDataset. #### func (AzureSQLTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8893) [¶](#AzureSQLTableDataset.MarshalJSON) ``` func (a [AzureSQLTableDataset](#AzureSQLTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLTableDataset. #### func (*AzureSQLTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8913) [¶](#AzureSQLTableDataset.UnmarshalJSON) ``` func (a *[AzureSQLTableDataset](#AzureSQLTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLTableDataset. #### type [AzureSQLTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5297) [¶](#AzureSQLTableDatasetTypeProperties) ``` type AzureSQLTableDatasetTypeProperties struct { // The schema name of the Azure SQL database. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Azure SQL database. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` AzureSQLTableDatasetTypeProperties - Azure SQL dataset properties. #### func (AzureSQLTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8967) [¶](#AzureSQLTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureSQLTableDatasetTypeProperties](#AzureSQLTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSQLTableDatasetTypeProperties. #### func (*AzureSQLTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L8976) [¶](#AzureSQLTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureSQLTableDatasetTypeProperties](#AzureSQLTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLTableDatasetTypeProperties. #### type [AzureSearchIndexDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5309) [¶](#AzureSearchIndexDataset) ``` type AzureSearchIndexDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to this dataset type. TypeProperties *[AzureSearchIndexDatasetTypeProperties](#AzureSearchIndexDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` AzureSearchIndexDataset - The Azure Search Index. #### func (*AzureSearchIndexDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5343) [¶](#AzureSearchIndexDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureSearchIndexDataset](#AzureSearchIndexDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureSearchIndexDataset. #### func (AzureSearchIndexDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9002) [¶](#AzureSearchIndexDataset.MarshalJSON) ``` func (a [AzureSearchIndexDataset](#AzureSearchIndexDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexDataset. #### func (*AzureSearchIndexDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9022) [¶](#AzureSearchIndexDataset.UnmarshalJSON) ``` func (a *[AzureSearchIndexDataset](#AzureSearchIndexDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchIndexDataset. #### type [AzureSearchIndexDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5358) [¶](#AzureSearchIndexDatasetTypeProperties) ``` type AzureSearchIndexDatasetTypeProperties struct { // REQUIRED; The name of the Azure Search Index. Type: string (or Expression with resultType string). IndexName interface{} `json:"indexName,omitempty"` } ``` AzureSearchIndexDatasetTypeProperties - Properties specific to this dataset type. #### func (AzureSearchIndexDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9076) [¶](#AzureSearchIndexDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureSearchIndexDatasetTypeProperties](#AzureSearchIndexDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexDatasetTypeProperties. #### func (*AzureSearchIndexDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9083) [¶](#AzureSearchIndexDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureSearchIndexDatasetTypeProperties](#AzureSearchIndexDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchIndexDatasetTypeProperties. #### type [AzureSearchIndexSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5364) [¶](#AzureSearchIndexSink) ``` type AzureSearchIndexSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Specify the write behavior when upserting documents into Azure Search Index. WriteBehavior *[AzureSearchIndexWriteBehaviorType](#AzureSearchIndexWriteBehaviorType) `json:"writeBehavior,omitempty"` } ``` AzureSearchIndexSink - A copy activity Azure Search Index sink. #### func (*AzureSearchIndexSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5394) [¶](#AzureSearchIndexSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureSearchIndexSink](#AzureSearchIndexSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureSearchIndexSink. #### func (AzureSearchIndexSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9103) [¶](#AzureSearchIndexSink.MarshalJSON) ``` func (a [AzureSearchIndexSink](#AzureSearchIndexSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexSink. #### func (*AzureSearchIndexSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9122) [¶](#AzureSearchIndexSink.UnmarshalJSON) ``` func (a *[AzureSearchIndexSink](#AzureSearchIndexSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchIndexSink. #### type [AzureSearchIndexWriteBehaviorType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L82) [¶](#AzureSearchIndexWriteBehaviorType) ``` type AzureSearchIndexWriteBehaviorType [string](/builtin#string) ``` AzureSearchIndexWriteBehaviorType - Specify the write behavior when upserting documents into Azure Search Index. ``` const ( AzureSearchIndexWriteBehaviorTypeMerge [AzureSearchIndexWriteBehaviorType](#AzureSearchIndexWriteBehaviorType) = "Merge" AzureSearchIndexWriteBehaviorTypeUpload [AzureSearchIndexWriteBehaviorType](#AzureSearchIndexWriteBehaviorType) = "Upload" ) ``` #### func [PossibleAzureSearchIndexWriteBehaviorTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L90) [¶](#PossibleAzureSearchIndexWriteBehaviorTypeValues) ``` func PossibleAzureSearchIndexWriteBehaviorTypeValues() [][AzureSearchIndexWriteBehaviorType](#AzureSearchIndexWriteBehaviorType) ``` PossibleAzureSearchIndexWriteBehaviorTypeValues returns the possible values for the AzureSearchIndexWriteBehaviorType const type. #### type [AzureSearchLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5408) [¶](#AzureSearchLinkedService) ``` type AzureSearchLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Windows Azure Search Service linked service properties. TypeProperties *[AzureSearchLinkedServiceTypeProperties](#AzureSearchLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureSearchLinkedService - Linked service for Windows Azure Search Service. #### func (*AzureSearchLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5432) [¶](#AzureSearchLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureSearchLinkedService](#AzureSearchLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureSearchLinkedService. #### func (AzureSearchLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9173) [¶](#AzureSearchLinkedService.MarshalJSON) ``` func (a [AzureSearchLinkedService](#AzureSearchLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSearchLinkedService. #### func (*AzureSearchLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9190) [¶](#AzureSearchLinkedService.UnmarshalJSON) ``` func (a *[AzureSearchLinkedService](#AzureSearchLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchLinkedService. #### type [AzureSearchLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5444) [¶](#AzureSearchLinkedServiceTypeProperties) ``` type AzureSearchLinkedServiceTypeProperties struct { // REQUIRED; URL for Azure Search service. Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Admin Key for Azure Search service Key [SecretBaseClassification](#SecretBaseClassification) `json:"key,omitempty"` } ``` AzureSearchLinkedServiceTypeProperties - Windows Azure Search Service linked service properties. #### func (AzureSearchLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9235) [¶](#AzureSearchLinkedServiceTypeProperties.MarshalJSON) ``` func (a [AzureSearchLinkedServiceTypeProperties](#AzureSearchLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSearchLinkedServiceTypeProperties. #### func (*AzureSearchLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9244) [¶](#AzureSearchLinkedServiceTypeProperties.UnmarshalJSON) ``` func (a *[AzureSearchLinkedServiceTypeProperties](#AzureSearchLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchLinkedServiceTypeProperties. #### type [AzureStorageLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5457) [¶](#AzureStorageLinkedService) ``` type AzureStorageLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Storage linked service properties. TypeProperties *[AzureStorageLinkedServiceTypeProperties](#AzureStorageLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureStorageLinkedService - The storage account linked service. #### func (*AzureStorageLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5481) [¶](#AzureStorageLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureStorageLinkedService](#AzureStorageLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureStorageLinkedService. #### func (AzureStorageLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9270) [¶](#AzureStorageLinkedService.MarshalJSON) ``` func (a [AzureStorageLinkedService](#AzureStorageLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureStorageLinkedService. #### func (*AzureStorageLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9287) [¶](#AzureStorageLinkedService.UnmarshalJSON) ``` func (a *[AzureStorageLinkedService](#AzureStorageLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureStorageLinkedService. #### type [AzureStorageLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5493) [¶](#AzureStorageLinkedServiceTypeProperties) ``` type AzureStorageLinkedServiceTypeProperties struct { // The Azure key vault secret reference of accountKey in connection string. AccountKey *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"accountKey,omitempty"` // The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential *[string](/builtin#string) `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of sasToken in sas uri. SasToken *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"sasToken,omitempty"` // SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString // or AzureKeyVaultSecretReference. SasURI interface{} `json:"sasUri,omitempty"` } ``` AzureStorageLinkedServiceTypeProperties - Azure Storage linked service properties. #### func (AzureStorageLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9332) [¶](#AzureStorageLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureStorageLinkedServiceTypeProperties](#AzureStorageLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureStorageLinkedServiceTypeProperties. #### func (*AzureStorageLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9343) [¶](#AzureStorageLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureStorageLinkedServiceTypeProperties](#AzureStorageLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureStorageLinkedServiceTypeProperties. #### type [AzureSynapseArtifactsLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5513) [¶](#AzureSynapseArtifactsLinkedService) added in v1.3.0 ``` type AzureSynapseArtifactsLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Synapse Analytics (Artifacts) linked service properties. TypeProperties *[AzureSynapseArtifactsLinkedServiceTypeProperties](#AzureSynapseArtifactsLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureSynapseArtifactsLinkedService - Azure Synapse Analytics (Artifacts) linked service. #### func (*AzureSynapseArtifactsLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5537) [¶](#AzureSynapseArtifactsLinkedService.GetLinkedService) added in v1.3.0 ``` func (a *[AzureSynapseArtifactsLinkedService](#AzureSynapseArtifactsLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureSynapseArtifactsLinkedService. #### func (AzureSynapseArtifactsLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9375) [¶](#AzureSynapseArtifactsLinkedService.MarshalJSON) added in v1.3.0 ``` func (a [AzureSynapseArtifactsLinkedService](#AzureSynapseArtifactsLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSynapseArtifactsLinkedService. #### func (*AzureSynapseArtifactsLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9392) [¶](#AzureSynapseArtifactsLinkedService.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureSynapseArtifactsLinkedService](#AzureSynapseArtifactsLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSynapseArtifactsLinkedService. #### type [AzureSynapseArtifactsLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5549) [¶](#AzureSynapseArtifactsLinkedServiceTypeProperties) added in v1.3.0 ``` type AzureSynapseArtifactsLinkedServiceTypeProperties struct { // REQUIRED; <https://.dev.azuresynapse.net>, Azure Synapse Analytics workspace URL. Type: string (or Expression with resultType // string). Endpoint interface{} `json:"endpoint,omitempty"` // Required to specify MSI, if using system assigned managed identity as authentication method. Type: string (or Expression // with resultType string). Authentication interface{} `json:"authentication,omitempty"` } ``` AzureSynapseArtifactsLinkedServiceTypeProperties - Azure Synapse Analytics (Artifacts) linked service properties. #### func (AzureSynapseArtifactsLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9437) [¶](#AzureSynapseArtifactsLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureSynapseArtifactsLinkedServiceTypeProperties](#AzureSynapseArtifactsLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureSynapseArtifactsLinkedServiceTypeProperties. #### func (*AzureSynapseArtifactsLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9445) [¶](#AzureSynapseArtifactsLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureSynapseArtifactsLinkedServiceTypeProperties](#AzureSynapseArtifactsLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureSynapseArtifactsLinkedServiceTypeProperties. #### type [AzureTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5560) [¶](#AzureTableDataset) ``` type AzureTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Table dataset properties. TypeProperties *[AzureTableDatasetTypeProperties](#AzureTableDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` AzureTableDataset - The Azure Table storage dataset. #### func (*AzureTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5594) [¶](#AzureTableDataset.GetDataset) added in v0.2.0 ``` func (a *[AzureTableDataset](#AzureTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type AzureTableDataset. #### func (AzureTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9468) [¶](#AzureTableDataset.MarshalJSON) ``` func (a [AzureTableDataset](#AzureTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureTableDataset. #### func (*AzureTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9488) [¶](#AzureTableDataset.UnmarshalJSON) ``` func (a *[AzureTableDataset](#AzureTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableDataset. #### type [AzureTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5609) [¶](#AzureTableDatasetTypeProperties) ``` type AzureTableDatasetTypeProperties struct { // REQUIRED; The table name of the Azure Table storage. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` AzureTableDatasetTypeProperties - Azure Table dataset properties. #### func (AzureTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9542) [¶](#AzureTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (a [AzureTableDatasetTypeProperties](#AzureTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureTableDatasetTypeProperties. #### func (*AzureTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9549) [¶](#AzureTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (a *[AzureTableDatasetTypeProperties](#AzureTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableDatasetTypeProperties. #### type [AzureTableSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5615) [¶](#AzureTableSink) ``` type AzureTableSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Azure Table default partition key value. Type: string (or Expression with resultType string). AzureTableDefaultPartitionKeyValue interface{} `json:"azureTableDefaultPartitionKeyValue,omitempty"` // Azure Table insert type. Type: string (or Expression with resultType string). AzureTableInsertType interface{} `json:"azureTableInsertType,omitempty"` // Azure Table partition key name. Type: string (or Expression with resultType string). AzureTablePartitionKeyName interface{} `json:"azureTablePartitionKeyName,omitempty"` // Azure Table row key name. Type: string (or Expression with resultType string). AzureTableRowKeyName interface{} `json:"azureTableRowKeyName,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` AzureTableSink - A copy activity Azure Table sink. #### func (*AzureTableSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5654) [¶](#AzureTableSink.GetCopySink) added in v0.2.0 ``` func (a *[AzureTableSink](#AzureTableSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type AzureTableSink. #### func (AzureTableSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9569) [¶](#AzureTableSink.MarshalJSON) ``` func (a [AzureTableSink](#AzureTableSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureTableSink. #### func (*AzureTableSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9591) [¶](#AzureTableSink.UnmarshalJSON) ``` func (a *[AzureTableSink](#AzureTableSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableSink. #### type [AzureTableSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5668) [¶](#AzureTableSource) ``` type AzureTableSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Azure Table source ignore table not found. Type: boolean (or Expression with resultType boolean). AzureTableSourceIgnoreTableNotFound interface{} `json:"azureTableSourceIgnoreTableNotFound,omitempty"` // Azure Table source query. Type: string (or Expression with resultType string). AzureTableSourceQuery interface{} `json:"azureTableSourceQuery,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` AzureTableSource - A copy activity Azure Table source. #### func (*AzureTableSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5702) [¶](#AzureTableSource.GetCopySource) added in v0.2.0 ``` func (a *[AzureTableSource](#AzureTableSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type AzureTableSource. #### func (*AzureTableSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5714) [¶](#AzureTableSource.GetTabularSource) added in v0.2.0 ``` func (a *[AzureTableSource](#AzureTableSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type AzureTableSource. #### func (AzureTableSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9651) [¶](#AzureTableSource.MarshalJSON) ``` func (a [AzureTableSource](#AzureTableSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureTableSource. #### func (*AzureTableSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9671) [¶](#AzureTableSource.UnmarshalJSON) ``` func (a *[AzureTableSource](#AzureTableSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableSource. #### type [AzureTableStorageLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5728) [¶](#AzureTableStorageLinkedService) ``` type AzureTableStorageLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Azure Table Storage linked service properties. TypeProperties *[AzureStorageLinkedServiceTypeProperties](#AzureStorageLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` AzureTableStorageLinkedService - The azure table storage linked service. #### func (*AzureTableStorageLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5752) [¶](#AzureTableStorageLinkedService.GetLinkedService) added in v0.2.0 ``` func (a *[AzureTableStorageLinkedService](#AzureTableStorageLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type AzureTableStorageLinkedService. #### func (AzureTableStorageLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9725) [¶](#AzureTableStorageLinkedService.MarshalJSON) ``` func (a [AzureTableStorageLinkedService](#AzureTableStorageLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type AzureTableStorageLinkedService. #### func (*AzureTableStorageLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9742) [¶](#AzureTableStorageLinkedService.UnmarshalJSON) ``` func (a *[AzureTableStorageLinkedService](#AzureTableStorageLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableStorageLinkedService. #### type [BigDataPoolParametrizationReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5764) [¶](#BigDataPoolParametrizationReference) added in v1.3.0 ``` type BigDataPoolParametrizationReference struct { // REQUIRED; Reference big data pool name. Type: string (or Expression with resultType string). ReferenceName interface{} `json:"referenceName,omitempty"` // REQUIRED; Big data pool reference type. Type *[BigDataPoolReferenceType](#BigDataPoolReferenceType) `json:"type,omitempty"` } ``` BigDataPoolParametrizationReference - Big data pool reference type. #### func (BigDataPoolParametrizationReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9787) [¶](#BigDataPoolParametrizationReference.MarshalJSON) added in v1.3.0 ``` func (b [BigDataPoolParametrizationReference](#BigDataPoolParametrizationReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BigDataPoolParametrizationReference. #### func (*BigDataPoolParametrizationReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9795) [¶](#BigDataPoolParametrizationReference.UnmarshalJSON) added in v1.3.0 ``` func (b *[BigDataPoolParametrizationReference](#BigDataPoolParametrizationReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BigDataPoolParametrizationReference. #### type [BigDataPoolReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L98) [¶](#BigDataPoolReferenceType) added in v1.3.0 ``` type BigDataPoolReferenceType [string](/builtin#string) ``` BigDataPoolReferenceType - Big data pool reference type. ``` const ( BigDataPoolReferenceTypeBigDataPoolReference [BigDataPoolReferenceType](#BigDataPoolReferenceType) = "BigDataPoolReference" ) ``` #### func [PossibleBigDataPoolReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L105) [¶](#PossibleBigDataPoolReferenceTypeValues) added in v1.3.0 ``` func PossibleBigDataPoolReferenceTypeValues() [][BigDataPoolReferenceType](#BigDataPoolReferenceType) ``` PossibleBigDataPoolReferenceTypeValues returns the possible values for the BigDataPoolReferenceType const type. #### type [BinaryDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5773) [¶](#BinaryDataset) ``` type BinaryDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Binary dataset properties. TypeProperties *[BinaryDatasetTypeProperties](#BinaryDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` BinaryDataset - Binary dataset. #### func (*BinaryDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5807) [¶](#BinaryDataset.GetDataset) added in v0.2.0 ``` func (b *[BinaryDataset](#BinaryDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type BinaryDataset. #### func (BinaryDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9818) [¶](#BinaryDataset.MarshalJSON) ``` func (b [BinaryDataset](#BinaryDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BinaryDataset. #### func (*BinaryDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9838) [¶](#BinaryDataset.UnmarshalJSON) ``` func (b *[BinaryDataset](#BinaryDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BinaryDataset. #### type [BinaryDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5822) [¶](#BinaryDatasetTypeProperties) ``` type BinaryDatasetTypeProperties struct { // REQUIRED; The location of the Binary storage. Location [DatasetLocationClassification](#DatasetLocationClassification) `json:"location,omitempty"` // The data compression method used for the binary dataset. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` } ``` BinaryDatasetTypeProperties - Binary dataset properties. #### func (BinaryDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9892) [¶](#BinaryDatasetTypeProperties.MarshalJSON) ``` func (b [BinaryDatasetTypeProperties](#BinaryDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BinaryDatasetTypeProperties. #### func (*BinaryDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9900) [¶](#BinaryDatasetTypeProperties.UnmarshalJSON) ``` func (b *[BinaryDatasetTypeProperties](#BinaryDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BinaryDatasetTypeProperties. #### type [BinaryReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5831) [¶](#BinaryReadSettings) ``` type BinaryReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Compression settings. CompressionProperties [CompressionReadSettingsClassification](#CompressionReadSettingsClassification) `json:"compressionProperties,omitempty"` } ``` BinaryReadSettings - Binary read settings. #### func (*BinaryReadSettings) [GetFormatReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5843) [¶](#BinaryReadSettings.GetFormatReadSettings) added in v0.2.0 ``` func (b *[BinaryReadSettings](#BinaryReadSettings)) GetFormatReadSettings() *[FormatReadSettings](#FormatReadSettings) ``` GetFormatReadSettings implements the FormatReadSettingsClassification interface for type BinaryReadSettings. #### func (BinaryReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9923) [¶](#BinaryReadSettings.MarshalJSON) ``` func (b [BinaryReadSettings](#BinaryReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BinaryReadSettings. #### func (*BinaryReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9936) [¶](#BinaryReadSettings.UnmarshalJSON) ``` func (b *[BinaryReadSettings](#BinaryReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BinaryReadSettings. #### type [BinarySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5851) [¶](#BinarySink) ``` type BinarySink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Binary store settings. StoreSettings [StoreWriteSettingsClassification](#StoreWriteSettingsClassification) `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` BinarySink - A copy activity Binary sink. #### func (*BinarySink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5881) [¶](#BinarySink.GetCopySink) added in v0.2.0 ``` func (b *[BinarySink](#BinarySink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type BinarySink. #### func (BinarySink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9969) [¶](#BinarySink.MarshalJSON) ``` func (b [BinarySink](#BinarySink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BinarySink. #### func (*BinarySink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L9988) [¶](#BinarySink.UnmarshalJSON) ``` func (b *[BinarySink](#BinarySink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BinarySink. #### type [BinarySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5895) [¶](#BinarySource) ``` type BinarySource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Binary format settings. FormatSettings *[BinaryReadSettings](#BinaryReadSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Binary store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` BinarySource - A copy activity Binary source. #### func (*BinarySource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5922) [¶](#BinarySource.GetCopySource) added in v0.2.0 ``` func (b *[BinarySource](#BinarySource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type BinarySource. #### func (BinarySource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10039) [¶](#BinarySource.MarshalJSON) ``` func (b [BinarySource](#BinarySource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BinarySource. #### func (*BinarySource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10057) [¶](#BinarySource.UnmarshalJSON) ``` func (b *[BinarySource](#BinarySource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BinarySource. #### type [BlobEventTypes](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L111) [¶](#BlobEventTypes) ``` type BlobEventTypes [string](/builtin#string) ``` ``` const ( BlobEventTypesMicrosoftStorageBlobCreated [BlobEventTypes](#BlobEventTypes) = "Microsoft.Storage.BlobCreated" BlobEventTypesMicrosoftStorageBlobDeleted [BlobEventTypes](#BlobEventTypes) = "Microsoft.Storage.BlobDeleted" ) ``` #### func [PossibleBlobEventTypesValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L119) [¶](#PossibleBlobEventTypesValues) ``` func PossibleBlobEventTypesValues() [][BlobEventTypes](#BlobEventTypes) ``` PossibleBlobEventTypesValues returns the possible values for the BlobEventTypes const type. #### type [BlobEventsTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5934) [¶](#BlobEventsTrigger) ``` type BlobEventsTrigger struct { // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Blob Events Trigger properties. TypeProperties *[BlobEventsTriggerTypeProperties](#BlobEventsTriggerTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // Pipelines that need to be started. Pipelines []*[TriggerPipelineReference](#TriggerPipelineReference) `json:"pipelines,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` BlobEventsTrigger - Trigger that runs every time a Blob event occurs. #### func (*BlobEventsTrigger) [GetMultiplePipelineTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5958) [¶](#BlobEventsTrigger.GetMultiplePipelineTrigger) added in v0.2.0 ``` func (b *[BlobEventsTrigger](#BlobEventsTrigger)) GetMultiplePipelineTrigger() *[MultiplePipelineTrigger](#MultiplePipelineTrigger) ``` GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type BlobEventsTrigger. #### func (*BlobEventsTrigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5970) [¶](#BlobEventsTrigger.GetTrigger) added in v0.2.0 ``` func (b *[BlobEventsTrigger](#BlobEventsTrigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type BlobEventsTrigger. #### func (BlobEventsTrigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10105) [¶](#BlobEventsTrigger.MarshalJSON) ``` func (b [BlobEventsTrigger](#BlobEventsTrigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BlobEventsTrigger. #### func (*BlobEventsTrigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10122) [¶](#BlobEventsTrigger.UnmarshalJSON) ``` func (b *[BlobEventsTrigger](#BlobEventsTrigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BlobEventsTrigger. #### type [BlobEventsTriggerTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L5981) [¶](#BlobEventsTriggerTypeProperties) ``` type BlobEventsTriggerTypeProperties struct { // REQUIRED; The type of events that cause this trigger to fire. Events []*[BlobEventTypes](#BlobEventTypes) `json:"events,omitempty"` // REQUIRED; The ARM resource ID of the Storage Account. Scope *[string](/builtin#string) `json:"scope,omitempty"` // The blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/' will only // fire the trigger for blobs in the december folder under the records container. // At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. BlobPathBeginsWith *[string](/builtin#string) `json:"blobPathBeginsWith,omitempty"` // The blob path must end with the pattern provided for trigger to fire. For example, 'december/boxes.csv' will only fire // the trigger for blobs named boxes in a december folder. At least one of these // must be provided: blobPathBeginsWith, blobPathEndsWith. BlobPathEndsWith *[string](/builtin#string) `json:"blobPathEndsWith,omitempty"` // If set to true, blobs with zero bytes will be ignored. IgnoreEmptyBlobs *[bool](/builtin#bool) `json:"ignoreEmptyBlobs,omitempty"` } ``` BlobEventsTriggerTypeProperties - Blob Events Trigger properties. #### func (BlobEventsTriggerTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10167) [¶](#BlobEventsTriggerTypeProperties.MarshalJSON) ``` func (b [BlobEventsTriggerTypeProperties](#BlobEventsTriggerTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BlobEventsTriggerTypeProperties. #### func (*BlobEventsTriggerTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10178) [¶](#BlobEventsTriggerTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (b *[BlobEventsTriggerTypeProperties](#BlobEventsTriggerTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BlobEventsTriggerTypeProperties. #### type [BlobSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6003) [¶](#BlobSink) ``` type BlobSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Blob writer add header. Type: boolean (or Expression with resultType boolean). BlobWriterAddHeader interface{} `json:"blobWriterAddHeader,omitempty"` // Blob writer date time format. Type: string (or Expression with resultType string). BlobWriterDateTimeFormat interface{} `json:"blobWriterDateTimeFormat,omitempty"` // Blob writer overwrite files. Type: boolean (or Expression with resultType boolean). BlobWriterOverwriteFiles interface{} `json:"blobWriterOverwriteFiles,omitempty"` // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). Metadata []*[MetadataItem](#MetadataItem) `json:"metadata,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` BlobSink - A copy activity Azure Blob sink. #### func (*BlobSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6045) [¶](#BlobSink.GetCopySink) added in v0.2.0 ``` func (b *[BlobSink](#BlobSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type BlobSink. #### func (BlobSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10210) [¶](#BlobSink.MarshalJSON) ``` func (b [BlobSink](#BlobSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BlobSink. #### func (*BlobSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10233) [¶](#BlobSink.UnmarshalJSON) ``` func (b *[BlobSink](#BlobSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BlobSink. #### type [BlobSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6059) [¶](#BlobSource) ``` type BlobSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Treat empty as null. Type: boolean (or Expression with resultType boolean). TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` } ``` BlobSource - A copy activity Azure Blob source. #### func (*BlobSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6090) [¶](#BlobSource.GetCopySource) added in v0.2.0 ``` func (b *[BlobSource](#BlobSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type BlobSource. #### func (BlobSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10296) [¶](#BlobSource.MarshalJSON) ``` func (b [BlobSource](#BlobSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BlobSource. #### func (*BlobSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10315) [¶](#BlobSource.UnmarshalJSON) ``` func (b *[BlobSource](#BlobSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BlobSource. #### type [BlobTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6102) [¶](#BlobTrigger) ``` type BlobTrigger struct { // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Blob Trigger properties. TypeProperties *[BlobTriggerTypeProperties](#BlobTriggerTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // Pipelines that need to be started. Pipelines []*[TriggerPipelineReference](#TriggerPipelineReference) `json:"pipelines,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` BlobTrigger - Trigger that runs every time the selected Blob container changes. #### func (*BlobTrigger) [GetMultiplePipelineTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6126) [¶](#BlobTrigger.GetMultiplePipelineTrigger) added in v0.2.0 ``` func (b *[BlobTrigger](#BlobTrigger)) GetMultiplePipelineTrigger() *[MultiplePipelineTrigger](#MultiplePipelineTrigger) ``` GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type BlobTrigger. #### func (*BlobTrigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6138) [¶](#BlobTrigger.GetTrigger) added in v0.2.0 ``` func (b *[BlobTrigger](#BlobTrigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type BlobTrigger. #### func (BlobTrigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10366) [¶](#BlobTrigger.MarshalJSON) ``` func (b [BlobTrigger](#BlobTrigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BlobTrigger. #### func (*BlobTrigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10383) [¶](#BlobTrigger.UnmarshalJSON) ``` func (b *[BlobTrigger](#BlobTrigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BlobTrigger. #### type [BlobTriggerTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6149) [¶](#BlobTriggerTypeProperties) ``` type BlobTriggerTypeProperties struct { // REQUIRED; The path of the container/folder that will trigger the pipeline. FolderPath *[string](/builtin#string) `json:"folderPath,omitempty"` // REQUIRED; The Azure Storage linked service reference. LinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedService,omitempty"` // REQUIRED; The max number of parallel files to handle when it is triggered. MaxConcurrency *[int32](/builtin#int32) `json:"maxConcurrency,omitempty"` } ``` BlobTriggerTypeProperties - Blob Trigger properties. #### func (BlobTriggerTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10428) [¶](#BlobTriggerTypeProperties.MarshalJSON) added in v1.3.0 ``` func (b [BlobTriggerTypeProperties](#BlobTriggerTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type BlobTriggerTypeProperties. #### func (*BlobTriggerTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10437) [¶](#BlobTriggerTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (b *[BlobTriggerTypeProperties](#BlobTriggerTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type BlobTriggerTypeProperties. #### type [CMKIdentityDefinition](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6161) [¶](#CMKIdentityDefinition) ``` type CMKIdentityDefinition struct { // The resource id of the user assigned identity to authenticate to customer's key vault. UserAssignedIdentity *[string](/builtin#string) `json:"userAssignedIdentity,omitempty"` } ``` CMKIdentityDefinition - Managed Identity used for CMK. #### func (CMKIdentityDefinition) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10463) [¶](#CMKIdentityDefinition.MarshalJSON) added in v1.3.0 ``` func (c [CMKIdentityDefinition](#CMKIdentityDefinition)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CMKIdentityDefinition. #### func (*CMKIdentityDefinition) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10470) [¶](#CMKIdentityDefinition.UnmarshalJSON) added in v1.3.0 ``` func (c *[CMKIdentityDefinition](#CMKIdentityDefinition)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CMKIdentityDefinition. #### type [CassandraLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6167) [¶](#CassandraLinkedService) ``` type CassandraLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Cassandra linked service properties. TypeProperties *[CassandraLinkedServiceTypeProperties](#CassandraLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` CassandraLinkedService - Linked service for Cassandra data source. #### func (*CassandraLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6191) [¶](#CassandraLinkedService.GetLinkedService) added in v0.2.0 ``` func (c *[CassandraLinkedService](#CassandraLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type CassandraLinkedService. #### func (CassandraLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10490) [¶](#CassandraLinkedService.MarshalJSON) ``` func (c [CassandraLinkedService](#CassandraLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CassandraLinkedService. #### func (*CassandraLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10507) [¶](#CassandraLinkedService.UnmarshalJSON) ``` func (c *[CassandraLinkedService](#CassandraLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CassandraLinkedService. #### type [CassandraLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6203) [¶](#CassandraLinkedServiceTypeProperties) ``` type CassandraLinkedServiceTypeProperties struct { // REQUIRED; Host name for connection. Type: string (or Expression with resultType string). Host interface{} `json:"host,omitempty"` // AuthenticationType to be used for connection. Type: string (or Expression with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The port for the connection. Type: integer (or Expression with resultType integer). Port interface{} `json:"port,omitempty"` // Username for authentication. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` CassandraLinkedServiceTypeProperties - Cassandra linked service properties. #### func (CassandraLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10552) [¶](#CassandraLinkedServiceTypeProperties.MarshalJSON) ``` func (c [CassandraLinkedServiceTypeProperties](#CassandraLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CassandraLinkedServiceTypeProperties. #### func (*CassandraLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10564) [¶](#CassandraLinkedServiceTypeProperties.UnmarshalJSON) ``` func (c *[CassandraLinkedServiceTypeProperties](#CassandraLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CassandraLinkedServiceTypeProperties. #### type [CassandraSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6225) [¶](#CassandraSource) ``` type CassandraSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The consistency level specifies how many Cassandra servers must respond to a read request before returning data to the // client application. Cassandra checks the specified number of Cassandra servers // for data to satisfy the read request. Must be one of cassandraSourceReadConsistencyLevels. The default value is 'ONE'. // It is case-insensitive. ConsistencyLevel *[CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) `json:"consistencyLevel,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) command. Type: string (or Expression // with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` CassandraSource - A copy activity source for a Cassandra database. #### func (*CassandraSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6263) [¶](#CassandraSource.GetCopySource) added in v0.2.0 ``` func (c *[CassandraSource](#CassandraSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type CassandraSource. #### func (*CassandraSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6275) [¶](#CassandraSource.GetTabularSource) added in v0.2.0 ``` func (c *[CassandraSource](#CassandraSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type CassandraSource. #### func (CassandraSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10599) [¶](#CassandraSource.MarshalJSON) ``` func (c [CassandraSource](#CassandraSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CassandraSource. #### func (*CassandraSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10619) [¶](#CassandraSource.UnmarshalJSON) ``` func (c *[CassandraSource](#CassandraSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CassandraSource. #### type [CassandraSourceReadConsistencyLevels](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L130) [¶](#CassandraSourceReadConsistencyLevels) ``` type CassandraSourceReadConsistencyLevels [string](/builtin#string) ``` CassandraSourceReadConsistencyLevels - The consistency level specifies how many Cassandra servers must respond to a read request before returning data to the client application. Cassandra checks the specified number of Cassandra servers for data to satisfy the read request. Must be one of cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is case-insensitive. ``` const ( CassandraSourceReadConsistencyLevelsALL [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "ALL" CassandraSourceReadConsistencyLevelsEACHQUORUM [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "EACH_QUORUM" CassandraSourceReadConsistencyLevelsLOCALONE [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "LOCAL_ONE" CassandraSourceReadConsistencyLevelsLOCALQUORUM [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "LOCAL_QUORUM" CassandraSourceReadConsistencyLevelsLOCALSERIAL [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "LOCAL_SERIAL" CassandraSourceReadConsistencyLevelsONE [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "ONE" CassandraSourceReadConsistencyLevelsQUORUM [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "QUORUM" CassandraSourceReadConsistencyLevelsSERIAL [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "SERIAL" CassandraSourceReadConsistencyLevelsTHREE [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "THREE" CassandraSourceReadConsistencyLevelsTWO [CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) = "TWO" ) ``` #### func [PossibleCassandraSourceReadConsistencyLevelsValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L146) [¶](#PossibleCassandraSourceReadConsistencyLevelsValues) ``` func PossibleCassandraSourceReadConsistencyLevelsValues() [][CassandraSourceReadConsistencyLevels](#CassandraSourceReadConsistencyLevels) ``` PossibleCassandraSourceReadConsistencyLevelsValues returns the possible values for the CassandraSourceReadConsistencyLevels const type. #### type [CassandraTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6289) [¶](#CassandraTableDataset) ``` type CassandraTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Cassandra dataset properties. TypeProperties *[CassandraTableDatasetTypeProperties](#CassandraTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` CassandraTableDataset - The Cassandra database dataset. #### func (*CassandraTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6323) [¶](#CassandraTableDataset.GetDataset) added in v0.2.0 ``` func (c *[CassandraTableDataset](#CassandraTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type CassandraTableDataset. #### func (CassandraTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10673) [¶](#CassandraTableDataset.MarshalJSON) ``` func (c [CassandraTableDataset](#CassandraTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CassandraTableDataset. #### func (*CassandraTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10693) [¶](#CassandraTableDataset.UnmarshalJSON) ``` func (c *[CassandraTableDataset](#CassandraTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CassandraTableDataset. #### type [CassandraTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6338) [¶](#CassandraTableDatasetTypeProperties) ``` type CassandraTableDatasetTypeProperties struct { // The keyspace of the Cassandra database. Type: string (or Expression with resultType string). Keyspace interface{} `json:"keyspace,omitempty"` // The table name of the Cassandra database. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` CassandraTableDatasetTypeProperties - Cassandra dataset properties. #### func (CassandraTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10747) [¶](#CassandraTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (c [CassandraTableDatasetTypeProperties](#CassandraTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CassandraTableDatasetTypeProperties. #### func (*CassandraTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10755) [¶](#CassandraTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[CassandraTableDatasetTypeProperties](#CassandraTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CassandraTableDatasetTypeProperties. #### type [ChainingTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6350) [¶](#ChainingTrigger) ``` type ChainingTrigger struct { // REQUIRED; Pipeline for which runs are created when all upstream pipelines complete successfully. Pipeline *[TriggerPipelineReference](#TriggerPipelineReference) `json:"pipeline,omitempty"` // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Chaining Trigger properties. TypeProperties *[ChainingTriggerTypeProperties](#ChainingTriggerTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` ChainingTrigger - Trigger that allows the referenced pipeline to depend on other pipeline runs based on runDimension Name/Value pairs. Upstream pipelines should declare the same runDimension Name and their runs should have the values for those runDimensions. The referenced pipeline run would be triggered if the values for the runDimension match for all upstream pipeline runs. #### func (*ChainingTrigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6374) [¶](#ChainingTrigger.GetTrigger) added in v0.2.0 ``` func (c *[ChainingTrigger](#ChainingTrigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type ChainingTrigger. #### func (ChainingTrigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10778) [¶](#ChainingTrigger.MarshalJSON) ``` func (c [ChainingTrigger](#ChainingTrigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ChainingTrigger. #### func (*ChainingTrigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10795) [¶](#ChainingTrigger.UnmarshalJSON) ``` func (c *[ChainingTrigger](#ChainingTrigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ChainingTrigger. #### type [ChainingTriggerTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6385) [¶](#ChainingTriggerTypeProperties) ``` type ChainingTriggerTypeProperties struct { // REQUIRED; Upstream Pipelines. DependsOn []*[PipelineReference](#PipelineReference) `json:"dependsOn,omitempty"` // REQUIRED; Run Dimension property that needs to be emitted by upstream pipelines. RunDimension *[string](/builtin#string) `json:"runDimension,omitempty"` } ``` ChainingTriggerTypeProperties - Chaining Trigger properties. #### func (ChainingTriggerTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10840) [¶](#ChainingTriggerTypeProperties.MarshalJSON) ``` func (c [ChainingTriggerTypeProperties](#ChainingTriggerTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ChainingTriggerTypeProperties. #### func (*ChainingTriggerTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10848) [¶](#ChainingTriggerTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[ChainingTriggerTypeProperties](#ChainingTriggerTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ChainingTriggerTypeProperties. #### type [CloudError](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6394) [¶](#CloudError) ``` type CloudError struct { // REQUIRED; Error data Error *[CloudErrorBody](#CloudErrorBody) `json:"error,omitempty"` } ``` CloudError - The object that defines the structure of an Azure Data Factory error response. #### func (CloudError) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10871) [¶](#CloudError.MarshalJSON) added in v1.3.0 ``` func (c [CloudError](#CloudError)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CloudError. #### func (*CloudError) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10878) [¶](#CloudError.UnmarshalJSON) added in v1.3.0 ``` func (c *[CloudError](#CloudError)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CloudError. #### type [CloudErrorBody](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6400) [¶](#CloudErrorBody) ``` type CloudErrorBody struct { // REQUIRED; Error code. Code *[string](/builtin#string) `json:"code,omitempty"` // REQUIRED; Error message. Message *[string](/builtin#string) `json:"message,omitempty"` // Array with additional error details. Details []*[CloudError](#CloudError) `json:"details,omitempty"` // Property name/path in request associated with error. Target *[string](/builtin#string) `json:"target,omitempty"` } ``` CloudErrorBody - The object that defines the structure of an Azure Data Factory error. #### func (CloudErrorBody) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10898) [¶](#CloudErrorBody.MarshalJSON) ``` func (c [CloudErrorBody](#CloudErrorBody)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CloudErrorBody. #### func (*CloudErrorBody) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10908) [¶](#CloudErrorBody.UnmarshalJSON) added in v1.3.0 ``` func (c *[CloudErrorBody](#CloudErrorBody)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CloudErrorBody. #### type [CmdkeySetup](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6415) [¶](#CmdkeySetup) ``` type CmdkeySetup struct { // REQUIRED; The type of custom setup. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Cmdkey command custom setup type properties. TypeProperties *[CmdkeySetupTypeProperties](#CmdkeySetupTypeProperties) `json:"typeProperties,omitempty"` } ``` CmdkeySetup - The custom setup of running cmdkey commands. #### func (*CmdkeySetup) [GetCustomSetupBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6424) [¶](#CmdkeySetup.GetCustomSetupBase) added in v0.2.0 ``` func (c *[CmdkeySetup](#CmdkeySetup)) GetCustomSetupBase() *[CustomSetupBase](#CustomSetupBase) ``` GetCustomSetupBase implements the CustomSetupBaseClassification interface for type CmdkeySetup. #### func (CmdkeySetup) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10937) [¶](#CmdkeySetup.MarshalJSON) ``` func (c [CmdkeySetup](#CmdkeySetup)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CmdkeySetup. #### func (*CmdkeySetup) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10945) [¶](#CmdkeySetup.UnmarshalJSON) ``` func (c *[CmdkeySetup](#CmdkeySetup)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CmdkeySetup. #### type [CmdkeySetupTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6431) [¶](#CmdkeySetupTypeProperties) ``` type CmdkeySetupTypeProperties struct { // REQUIRED; The password of data source access. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // REQUIRED; The server name of data source access. TargetName interface{} `json:"targetName,omitempty"` // REQUIRED; The user name of data source access. UserName interface{} `json:"userName,omitempty"` } ``` CmdkeySetupTypeProperties - Cmdkey command custom setup type properties. #### func (CmdkeySetupTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10968) [¶](#CmdkeySetupTypeProperties.MarshalJSON) ``` func (c [CmdkeySetupTypeProperties](#CmdkeySetupTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CmdkeySetupTypeProperties. #### func (*CmdkeySetupTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L10977) [¶](#CmdkeySetupTypeProperties.UnmarshalJSON) ``` func (c *[CmdkeySetupTypeProperties](#CmdkeySetupTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CmdkeySetupTypeProperties. #### type [CommonDataServiceForAppsEntityDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6443) [¶](#CommonDataServiceForAppsEntityDataset) ``` type CommonDataServiceForAppsEntityDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Common Data Service for Apps entity dataset properties. TypeProperties *[CommonDataServiceForAppsEntityDatasetTypeProperties](#CommonDataServiceForAppsEntityDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` CommonDataServiceForAppsEntityDataset - The Common Data Service for Apps entity dataset. #### func (*CommonDataServiceForAppsEntityDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6477) [¶](#CommonDataServiceForAppsEntityDataset.GetDataset) added in v0.2.0 ``` func (c *[CommonDataServiceForAppsEntityDataset](#CommonDataServiceForAppsEntityDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type CommonDataServiceForAppsEntityDataset. #### func (CommonDataServiceForAppsEntityDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11003) [¶](#CommonDataServiceForAppsEntityDataset.MarshalJSON) ``` func (c [CommonDataServiceForAppsEntityDataset](#CommonDataServiceForAppsEntityDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsEntityDataset. #### func (*CommonDataServiceForAppsEntityDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11023) [¶](#CommonDataServiceForAppsEntityDataset.UnmarshalJSON) ``` func (c *[CommonDataServiceForAppsEntityDataset](#CommonDataServiceForAppsEntityDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CommonDataServiceForAppsEntityDataset. #### type [CommonDataServiceForAppsEntityDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6492) [¶](#CommonDataServiceForAppsEntityDatasetTypeProperties) ``` type CommonDataServiceForAppsEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). EntityName interface{} `json:"entityName,omitempty"` } ``` CommonDataServiceForAppsEntityDatasetTypeProperties - Common Data Service for Apps entity dataset properties. #### func (CommonDataServiceForAppsEntityDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11077) [¶](#CommonDataServiceForAppsEntityDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (c [CommonDataServiceForAppsEntityDatasetTypeProperties](#CommonDataServiceForAppsEntityDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsEntityDatasetTypeProperties. #### func (*CommonDataServiceForAppsEntityDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11084) [¶](#CommonDataServiceForAppsEntityDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[CommonDataServiceForAppsEntityDatasetTypeProperties](#CommonDataServiceForAppsEntityDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CommonDataServiceForAppsEntityDatasetTypeProperties. #### type [CommonDataServiceForAppsLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6498) [¶](#CommonDataServiceForAppsLinkedService) ``` type CommonDataServiceForAppsLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Common Data Service for Apps linked service properties. TypeProperties *[CommonDataServiceForAppsLinkedServiceTypeProperties](#CommonDataServiceForAppsLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` CommonDataServiceForAppsLinkedService - Common Data Service for Apps linked service. #### func (*CommonDataServiceForAppsLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6522) [¶](#CommonDataServiceForAppsLinkedService.GetLinkedService) added in v0.2.0 ``` func (c *[CommonDataServiceForAppsLinkedService](#CommonDataServiceForAppsLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type CommonDataServiceForAppsLinkedService. #### func (CommonDataServiceForAppsLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11104) [¶](#CommonDataServiceForAppsLinkedService.MarshalJSON) ``` func (c [CommonDataServiceForAppsLinkedService](#CommonDataServiceForAppsLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsLinkedService. #### func (*CommonDataServiceForAppsLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11121) [¶](#CommonDataServiceForAppsLinkedService.UnmarshalJSON) ``` func (c *[CommonDataServiceForAppsLinkedService](#CommonDataServiceForAppsLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CommonDataServiceForAppsLinkedService. #### type [CommonDataServiceForAppsLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6534) [¶](#CommonDataServiceForAppsLinkedServiceTypeProperties) ``` type CommonDataServiceForAppsLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' // for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server // authentication in online scenario. Type: string (or Expression with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // REQUIRED; The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online // and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: // string (or Expression with resultType string). DeploymentType interface{} `json:"deploymentType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed // for online. Type: string (or Expression with resultType string). HostName interface{} `json:"hostName,omitempty"` // The organization name of the Common Data Service for Apps instance. The property is required for on-prem and required for // online when there are more than one Common Data Service for Apps instances // associated with the user. Type: string (or Expression with resultType string). OrganizationName interface{} `json:"organizationName,omitempty"` // Password to access the Common Data Service for Apps instance. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The port of on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. // Default is 443. Type: integer (or Expression with resultType integer), // minimum: 0. Port interface{} `json:"port,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. ServicePrincipalCredential [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalCredential,omitempty"` // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The URL to the Microsoft Common Data Service for Apps server. The property is required for on-line and not allowed for // on-prem. Type: string (or Expression with resultType string). ServiceURI interface{} `json:"serviceUri,omitempty"` // User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` CommonDataServiceForAppsLinkedServiceTypeProperties - Common Data Service for Apps linked service properties. #### func (CommonDataServiceForAppsLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11166) [¶](#CommonDataServiceForAppsLinkedServiceTypeProperties.MarshalJSON) ``` func (c [CommonDataServiceForAppsLinkedServiceTypeProperties](#CommonDataServiceForAppsLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsLinkedServiceTypeProperties. #### func (*CommonDataServiceForAppsLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11184) [¶](#CommonDataServiceForAppsLinkedServiceTypeProperties.UnmarshalJSON) ``` func (c *[CommonDataServiceForAppsLinkedServiceTypeProperties](#CommonDataServiceForAppsLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CommonDataServiceForAppsLinkedServiceTypeProperties. #### type [CommonDataServiceForAppsSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6590) [¶](#CommonDataServiceForAppsSink) ``` type CommonDataServiceForAppsSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; The write behavior for the operation. WriteBehavior *[DynamicsSinkWriteBehavior](#DynamicsSinkWriteBehavior) `json:"writeBehavior,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default // is false. Type: boolean (or Expression with resultType boolean). IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` CommonDataServiceForAppsSink - A copy activity Common Data Service for Apps sink. #### func (*CommonDataServiceForAppsSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6628) [¶](#CommonDataServiceForAppsSink.GetCopySink) added in v0.2.0 ``` func (c *[CommonDataServiceForAppsSink](#CommonDataServiceForAppsSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type CommonDataServiceForAppsSink. #### func (CommonDataServiceForAppsSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11237) [¶](#CommonDataServiceForAppsSink.MarshalJSON) ``` func (c [CommonDataServiceForAppsSink](#CommonDataServiceForAppsSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsSink. #### func (*CommonDataServiceForAppsSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11258) [¶](#CommonDataServiceForAppsSink.UnmarshalJSON) ``` func (c *[CommonDataServiceForAppsSink](#CommonDataServiceForAppsSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CommonDataServiceForAppsSink. #### type [CommonDataServiceForAppsSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6642) [¶](#CommonDataServiceForAppsSource) ``` type CommonDataServiceForAppsSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // FetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps (online & on-premises). // Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` CommonDataServiceForAppsSource - A copy activity Common Data Service for Apps source. #### func (*CommonDataServiceForAppsSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6671) [¶](#CommonDataServiceForAppsSource.GetCopySource) added in v0.2.0 ``` func (c *[CommonDataServiceForAppsSource](#CommonDataServiceForAppsSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type CommonDataServiceForAppsSource. #### func (CommonDataServiceForAppsSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11315) [¶](#CommonDataServiceForAppsSource.MarshalJSON) ``` func (c [CommonDataServiceForAppsSource](#CommonDataServiceForAppsSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsSource. #### func (*CommonDataServiceForAppsSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11333) [¶](#CommonDataServiceForAppsSource.UnmarshalJSON) ``` func (c *[CommonDataServiceForAppsSource](#CommonDataServiceForAppsSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CommonDataServiceForAppsSource. #### type [ComponentSetup](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6683) [¶](#ComponentSetup) ``` type ComponentSetup struct { // REQUIRED; The type of custom setup. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Install 3rd party component type properties. TypeProperties *[LicensedComponentSetupTypeProperties](#LicensedComponentSetupTypeProperties) `json:"typeProperties,omitempty"` } ``` ComponentSetup - The custom setup of installing 3rd party components. #### func (*ComponentSetup) [GetCustomSetupBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6692) [¶](#ComponentSetup.GetCustomSetupBase) added in v0.2.0 ``` func (c *[ComponentSetup](#ComponentSetup)) GetCustomSetupBase() *[CustomSetupBase](#CustomSetupBase) ``` GetCustomSetupBase implements the CustomSetupBaseClassification interface for type ComponentSetup. #### func (ComponentSetup) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11381) [¶](#ComponentSetup.MarshalJSON) ``` func (c [ComponentSetup](#ComponentSetup)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ComponentSetup. #### func (*ComponentSetup) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11389) [¶](#ComponentSetup.UnmarshalJSON) ``` func (c *[ComponentSetup](#ComponentSetup)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ComponentSetup. #### type [CompressionCodec](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L162) [¶](#CompressionCodec) ``` type CompressionCodec [string](/builtin#string) ``` CompressionCodec - All available compressionCodec values. ``` const ( CompressionCodecBzip2 [CompressionCodec](#CompressionCodec) = "bzip2" CompressionCodecDeflate [CompressionCodec](#CompressionCodec) = "deflate" CompressionCodecGzip [CompressionCodec](#CompressionCodec) = "gzip" CompressionCodecLz4 [CompressionCodec](#CompressionCodec) = "lz4" CompressionCodecLzo [CompressionCodec](#CompressionCodec) = "lzo" CompressionCodecNone [CompressionCodec](#CompressionCodec) = "none" CompressionCodecSnappy [CompressionCodec](#CompressionCodec) = "snappy" CompressionCodecTar [CompressionCodec](#CompressionCodec) = "tar" CompressionCodecTarGZip [CompressionCodec](#CompressionCodec) = "tarGZip" CompressionCodecZipDeflate [CompressionCodec](#CompressionCodec) = "zipDeflate" ) ``` #### func [PossibleCompressionCodecValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L178) [¶](#PossibleCompressionCodecValues) ``` func PossibleCompressionCodecValues() [][CompressionCodec](#CompressionCodec) ``` PossibleCompressionCodecValues returns the possible values for the CompressionCodec const type. #### type [CompressionReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6708) [¶](#CompressionReadSettings) ``` type CompressionReadSettings struct { // REQUIRED; The Compression setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` CompressionReadSettings - Compression read settings. #### func (*CompressionReadSettings) [GetCompressionReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6717) [¶](#CompressionReadSettings.GetCompressionReadSettings) ``` func (c *[CompressionReadSettings](#CompressionReadSettings)) GetCompressionReadSettings() *[CompressionReadSettings](#CompressionReadSettings) ``` GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type CompressionReadSettings. #### func (CompressionReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11412) [¶](#CompressionReadSettings.MarshalJSON) added in v0.2.0 ``` func (c [CompressionReadSettings](#CompressionReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CompressionReadSettings. #### func (*CompressionReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11424) [¶](#CompressionReadSettings.UnmarshalJSON) ``` func (c *[CompressionReadSettings](#CompressionReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CompressionReadSettings. #### type [CompressionReadSettingsClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6702) [¶](#CompressionReadSettingsClassification) ``` type CompressionReadSettingsClassification interface { // GetCompressionReadSettings returns the CompressionReadSettings content of the underlying type. GetCompressionReadSettings() *[CompressionReadSettings](#CompressionReadSettings) } ``` CompressionReadSettingsClassification provides polymorphic access to related types. Call the interface's GetCompressionReadSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *CompressionReadSettings, *TarGZipReadSettings, *TarReadSettings, *ZipDeflateReadSettings #### type [ConcurLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6720) [¶](#ConcurLinkedService) ``` type ConcurLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Concur Service linked service properties. TypeProperties *[ConcurLinkedServiceTypeProperties](#ConcurLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` ConcurLinkedService - Concur Service linked service. #### func (*ConcurLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6744) [¶](#ConcurLinkedService.GetLinkedService) added in v0.2.0 ``` func (c *[ConcurLinkedService](#ConcurLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type ConcurLinkedService. #### func (ConcurLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11454) [¶](#ConcurLinkedService.MarshalJSON) ``` func (c [ConcurLinkedService](#ConcurLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ConcurLinkedService. #### func (*ConcurLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11471) [¶](#ConcurLinkedService.UnmarshalJSON) ``` func (c *[ConcurLinkedService](#ConcurLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ConcurLinkedService. #### type [ConcurLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6756) [¶](#ConcurLinkedServiceTypeProperties) ``` type ConcurLinkedServiceTypeProperties struct { // REQUIRED; Application client_id supplied by Concur App Management. ClientID interface{} `json:"clientId,omitempty"` // REQUIRED; The user name that you use to access Concur Service. Username interface{} `json:"username,omitempty"` // Properties used to connect to Concur. It is mutually exclusive with any other properties in the linked service. Type: object. ConnectionProperties interface{} `json:"connectionProperties,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password corresponding to the user name that you provided in the username field. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` ConcurLinkedServiceTypeProperties - Concur Service linked service properties. #### func (ConcurLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11516) [¶](#ConcurLinkedServiceTypeProperties.MarshalJSON) ``` func (c [ConcurLinkedServiceTypeProperties](#ConcurLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ConcurLinkedServiceTypeProperties. #### func (*ConcurLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11530) [¶](#ConcurLinkedServiceTypeProperties.UnmarshalJSON) ``` func (c *[ConcurLinkedServiceTypeProperties](#ConcurLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ConcurLinkedServiceTypeProperties. #### type [ConcurObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6785) [¶](#ConcurObjectDataset) ``` type ConcurObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ConcurObjectDataset - Concur Service dataset. #### func (*ConcurObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6819) [¶](#ConcurObjectDataset.GetDataset) added in v0.2.0 ``` func (c *[ConcurObjectDataset](#ConcurObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ConcurObjectDataset. #### func (ConcurObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11571) [¶](#ConcurObjectDataset.MarshalJSON) ``` func (c [ConcurObjectDataset](#ConcurObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ConcurObjectDataset. #### func (*ConcurObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11591) [¶](#ConcurObjectDataset.UnmarshalJSON) ``` func (c *[ConcurObjectDataset](#ConcurObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ConcurObjectDataset. #### type [ConcurSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6834) [¶](#ConcurSource) ``` type ConcurSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` ConcurSource - A copy activity Concur Service source. #### func (*ConcurSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6865) [¶](#ConcurSource.GetCopySource) added in v0.2.0 ``` func (c *[ConcurSource](#ConcurSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ConcurSource. #### func (*ConcurSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6877) [¶](#ConcurSource.GetTabularSource) added in v0.2.0 ``` func (c *[ConcurSource](#ConcurSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type ConcurSource. #### func (ConcurSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11645) [¶](#ConcurSource.MarshalJSON) ``` func (c [ConcurSource](#ConcurSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ConcurSource. #### func (*ConcurSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11664) [¶](#ConcurSource.UnmarshalJSON) ``` func (c *[ConcurSource](#ConcurSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ConcurSource. #### type [ConnectionStateProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6891) [¶](#ConnectionStateProperties) ``` type ConnectionStateProperties struct { // READ-ONLY; The actions required on the managed private endpoint ActionsRequired *[string](/builtin#string) `json:"actionsRequired,omitempty" azure:"ro"` // READ-ONLY; The managed private endpoint description Description *[string](/builtin#string) `json:"description,omitempty" azure:"ro"` // READ-ONLY; The approval status Status *[string](/builtin#string) `json:"status,omitempty" azure:"ro"` } ``` ConnectionStateProperties - The connection state of a managed private endpoint #### func (ConnectionStateProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11715) [¶](#ConnectionStateProperties.MarshalJSON) added in v1.3.0 ``` func (c [ConnectionStateProperties](#ConnectionStateProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ConnectionStateProperties. #### func (*ConnectionStateProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11724) [¶](#ConnectionStateProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[ConnectionStateProperties](#ConnectionStateProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionStateProperties. #### type [ControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6914) [¶](#ControlActivity) ``` type ControlActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ControlActivity - Base class for all control activities like IfCondition, ForEach , Until. #### func (*ControlActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6935) [¶](#ControlActivity.GetActivity) added in v0.2.0 ``` func (c *[ControlActivity](#ControlActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ControlActivity. #### func (*ControlActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6947) [¶](#ControlActivity.GetControlActivity) ``` func (c *[ControlActivity](#ControlActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type ControlActivity. #### func (ControlActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11750) [¶](#ControlActivity.MarshalJSON) ``` func (c [ControlActivity](#ControlActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ControlActivity. #### func (*ControlActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11766) [¶](#ControlActivity.UnmarshalJSON) added in v0.2.0 ``` func (c *[ControlActivity](#ControlActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ControlActivity. #### type [ControlActivityClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6907) [¶](#ControlActivityClassification) ``` type ControlActivityClassification interface { [ActivityClassification](#ActivityClassification) // GetControlActivity returns the ControlActivity content of the underlying type. GetControlActivity() *[ControlActivity](#ControlActivity) } ``` ControlActivityClassification provides polymorphic access to related types. Call the interface's GetControlActivity() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AppendVariableActivity, *ControlActivity, *ExecutePipelineActivity, *FailActivity, *FilterActivity, *ForEachActivity, - *IfConditionActivity, *SetVariableActivity, *SwitchActivity, *UntilActivity, *ValidationActivity, *WaitActivity, *WebHookActivity #### type [CopyActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6950) [¶](#CopyActivity) ``` type CopyActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Copy activity properties. TypeProperties *[CopyActivityTypeProperties](#CopyActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // List of inputs for the activity. Inputs []*[DatasetReference](#DatasetReference) `json:"inputs,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // List of outputs for the activity. Outputs []*[DatasetReference](#DatasetReference) `json:"outputs,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` CopyActivity - Copy activity. #### func (*CopyActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6986) [¶](#CopyActivity.GetActivity) added in v0.2.0 ``` func (c *[CopyActivity](#CopyActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type CopyActivity. #### func (*CopyActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L6998) [¶](#CopyActivity.GetExecutionActivity) added in v0.2.0 ``` func (c *[CopyActivity](#CopyActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type CopyActivity. #### func (CopyActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11808) [¶](#CopyActivity.MarshalJSON) ``` func (c [CopyActivity](#CopyActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CopyActivity. #### func (*CopyActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11829) [¶](#CopyActivity.UnmarshalJSON) ``` func (c *[CopyActivity](#CopyActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CopyActivity. #### type [CopyActivityLogSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7012) [¶](#CopyActivityLogSettings) ``` type CopyActivityLogSettings struct { // Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` // Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). LogLevel interface{} `json:"logLevel,omitempty"` } ``` CopyActivityLogSettings - Settings for copy activity log. #### func (CopyActivityLogSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11886) [¶](#CopyActivityLogSettings.MarshalJSON) added in v1.3.0 ``` func (c [CopyActivityLogSettings](#CopyActivityLogSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CopyActivityLogSettings. #### func (*CopyActivityLogSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11894) [¶](#CopyActivityLogSettings.UnmarshalJSON) added in v1.3.0 ``` func (c *[CopyActivityLogSettings](#CopyActivityLogSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CopyActivityLogSettings. #### type [CopyActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7021) [¶](#CopyActivityTypeProperties) ``` type CopyActivityTypeProperties struct { // REQUIRED; Copy activity sink. Sink [CopySinkClassification](#CopySinkClassification) `json:"sink,omitempty"` // REQUIRED; Copy activity source. Source [CopySourceClassification](#CopySourceClassification) `json:"source,omitempty"` // Maximum number of data integration units that can be used to perform this data movement. Type: integer (or Expression with // resultType integer), minimum: 0. DataIntegrationUnits interface{} `json:"dataIntegrationUnits,omitempty"` // Whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean). EnableSkipIncompatibleRow interface{} `json:"enableSkipIncompatibleRow,omitempty"` // Specifies whether to copy data via an interim staging. Default value is false. Type: boolean (or Expression with resultType // boolean). EnableStaging interface{} `json:"enableStaging,omitempty"` // Log settings customer needs provide when enabling log. LogSettings *[LogSettings](#LogSettings) `json:"logSettings,omitempty"` // (Deprecated. Please use LogSettings) Log storage settings customer need to provide when enabling session log. LogStorageSettings *[LogStorageSettings](#LogStorageSettings) `json:"logStorageSettings,omitempty"` // Maximum number of concurrent sessions opened on the source or sink to avoid overloading the data store. Type: integer (or // Expression with resultType integer), minimum: 0. ParallelCopies interface{} `json:"parallelCopies,omitempty"` // Preserve rules. Preserve []interface{} `json:"preserve,omitempty"` // Preserve Rules. PreserveRules []interface{} `json:"preserveRules,omitempty"` // Redirect incompatible row settings when EnableSkipIncompatibleRow is true. RedirectIncompatibleRowSettings *[RedirectIncompatibleRowSettings](#RedirectIncompatibleRowSettings) `json:"redirectIncompatibleRowSettings,omitempty"` // Specify the fault tolerance for data consistency. SkipErrorFile *[SkipErrorFile](#SkipErrorFile) `json:"skipErrorFile,omitempty"` // Specifies interim staging settings when EnableStaging is true. StagingSettings *[StagingSettings](#StagingSettings) `json:"stagingSettings,omitempty"` // Copy activity translator. If not specified, tabular translator is used. Translator interface{} `json:"translator,omitempty"` // Whether to enable Data Consistency validation. Type: boolean (or Expression with resultType boolean). ValidateDataConsistency interface{} `json:"validateDataConsistency,omitempty"` } ``` CopyActivityTypeProperties - Copy activity properties. #### func (CopyActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11917) [¶](#CopyActivityTypeProperties.MarshalJSON) ``` func (c [CopyActivityTypeProperties](#CopyActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CopyActivityTypeProperties. #### func (*CopyActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L11938) [¶](#CopyActivityTypeProperties.UnmarshalJSON) ``` func (c *[CopyActivityTypeProperties](#CopyActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CopyActivityTypeProperties. #### type [CopyBehaviorType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L194) [¶](#CopyBehaviorType) ``` type CopyBehaviorType [string](/builtin#string) ``` CopyBehaviorType - All available types of copy behavior. ``` const ( CopyBehaviorTypeFlattenHierarchy [CopyBehaviorType](#CopyBehaviorType) = "FlattenHierarchy" CopyBehaviorTypeMergeFiles [CopyBehaviorType](#CopyBehaviorType) = "MergeFiles" CopyBehaviorTypePreserveHierarchy [CopyBehaviorType](#CopyBehaviorType) = "PreserveHierarchy" ) ``` #### func [PossibleCopyBehaviorTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L203) [¶](#PossibleCopyBehaviorTypeValues) ``` func PossibleCopyBehaviorTypeValues() [][CopyBehaviorType](#CopyBehaviorType) ``` PossibleCopyBehaviorTypeValues returns the possible values for the CopyBehaviorType const type. #### type [CopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7086) [¶](#CopySink) ``` type CopySink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` CopySink - A copy activity sink. #### func (*CopySink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7113) [¶](#CopySink.GetCopySink) ``` func (c *[CopySink](#CopySink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type CopySink. #### func (CopySink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12000) [¶](#CopySink.MarshalJSON) added in v0.2.0 ``` func (c [CopySink](#CopySink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CopySink. #### func (*CopySink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12018) [¶](#CopySink.UnmarshalJSON) ``` func (c *[CopySink](#CopySink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CopySink. #### type [CopySinkClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7080) [¶](#CopySinkClassification) ``` type CopySinkClassification interface { // GetCopySink returns the CopySink content of the underlying type. GetCopySink() *[CopySink](#CopySink) } ``` CopySinkClassification provides polymorphic access to related types. Call the interface's GetCopySink() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AvroSink, *AzureBlobFSSink, *AzureDataExplorerSink, *AzureDataLakeStoreSink, *AzureDatabricksDeltaLakeSink, *AzureMySQLSink, - *AzurePostgreSQLSink, *AzureQueueSink, *AzureSQLSink, *AzureSearchIndexSink, *AzureTableSink, *BinarySink, *BlobSink, - *CommonDataServiceForAppsSink, *CopySink, *CosmosDbMongoDbAPISink, *CosmosDbSQLAPISink, *DelimitedTextSink, *DocumentDbCollectionSink, - *DynamicsCrmSink, *DynamicsSink, *FileSystemSink, *InformixSink, *JSONSink, *MicrosoftAccessSink, *MongoDbAtlasSink, - *MongoDbV2Sink, *OdbcSink, *OracleSink, *OrcSink, *ParquetSink, *RestSink, *SQLDWSink, *SQLMISink, *SQLServerSink, *SQLSink, - *SalesforceServiceCloudSink, *SalesforceSink, *SapCloudForCustomerSink, *SnowflakeSink #### type [CopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7138) [¶](#CopySource) ``` type CopySource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` CopySource - A copy activity source. #### func (*CopySource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7159) [¶](#CopySource.GetCopySource) ``` func (c *[CopySource](#CopySource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type CopySource. #### func (CopySource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12066) [¶](#CopySource.MarshalJSON) added in v0.2.0 ``` func (c [CopySource](#CopySource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CopySource. #### func (*CopySource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12082) [¶](#CopySource.UnmarshalJSON) ``` func (c *[CopySource](#CopySource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CopySource. #### type [CopySourceClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7132) [¶](#CopySourceClassification) ``` type CopySourceClassification interface { // GetCopySource returns the CopySource content of the underlying type. GetCopySource() *[CopySource](#CopySource) } ``` CopySourceClassification provides polymorphic access to related types. Call the interface's GetCopySource() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AmazonMWSSource, *AmazonRdsForOracleSource, *AmazonRdsForSQLServerSource, *AmazonRedshiftSource, *AvroSource, *AzureBlobFSSource, - *AzureDataExplorerSource, *AzureDataLakeStoreSource, *AzureDatabricksDeltaLakeSource, *AzureMariaDBSource, *AzureMySQLSource, - *AzurePostgreSQLSource, *AzureSQLSource, *AzureTableSource, *BinarySource, *BlobSource, *CassandraSource, *CommonDataServiceForAppsSource, - *ConcurSource, *CopySource, *CosmosDbMongoDbAPISource, *CosmosDbSQLAPISource, *CouchbaseSource, *Db2Source, *DelimitedTextSource, - *DocumentDbCollectionSource, *DrillSource, *DynamicsAXSource, *DynamicsCrmSource, *DynamicsSource, *EloquaSource, *ExcelSource, - *FileSystemSource, *GoogleAdWordsSource, *GoogleBigQuerySource, *GreenplumSource, *HBaseSource, *HTTPSource, *HdfsSource, - *HiveSource, *HubspotSource, *ImpalaSource, *InformixSource, *JSONSource, *JiraSource, *MagentoSource, *MariaDBSource, - *MarketoSource, *MicrosoftAccessSource, *MongoDbAtlasSource, *MongoDbSource, *MongoDbV2Source, *MySQLSource, *NetezzaSource, - *ODataSource, *OdbcSource, *Office365Source, *OracleServiceCloudSource, *OracleSource, *OrcSource, *ParquetSource, *PaypalSource, - *PhoenixSource, *PostgreSQLSource, *PrestoSource, *QuickBooksSource, *RelationalSource, *ResponsysSource, *RestSource, - *SQLDWSource, *SQLMISource, *SQLServerSource, *SQLSource, *SalesforceMarketingCloudSource, *SalesforceServiceCloudSource, - *SalesforceSource, *SapBwSource, *SapCloudForCustomerSource, *SapEccSource, *SapHanaSource, *SapOdpSource, *SapOpenHubSource, - *SapTableSource, *ServiceNowSource, *SharePointOnlineListSource, *ShopifySource, *SnowflakeSource, *SparkSource, *SquareSource, - *SybaseSource, *TabularSource, *TeradataSource, *VerticaSource, *WebSource, *XMLSource, *XeroSource, *ZohoSource #### type [CopyTranslator](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7171) [¶](#CopyTranslator) ``` type CopyTranslator struct { // REQUIRED; Copy translator type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` CopyTranslator - A copy activity translator. #### func (*CopyTranslator) [GetCopyTranslator](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7180) [¶](#CopyTranslator.GetCopyTranslator) ``` func (c *[CopyTranslator](#CopyTranslator)) GetCopyTranslator() *[CopyTranslator](#CopyTranslator) ``` GetCopyTranslator implements the CopyTranslatorClassification interface for type CopyTranslator. #### func (CopyTranslator) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12124) [¶](#CopyTranslator.MarshalJSON) added in v0.2.0 ``` func (c [CopyTranslator](#CopyTranslator)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CopyTranslator. #### func (*CopyTranslator) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12136) [¶](#CopyTranslator.UnmarshalJSON) ``` func (c *[CopyTranslator](#CopyTranslator)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CopyTranslator. #### type [CopyTranslatorClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7165) [¶](#CopyTranslatorClassification) ``` type CopyTranslatorClassification interface { // GetCopyTranslator returns the CopyTranslator content of the underlying type. GetCopyTranslator() *[CopyTranslator](#CopyTranslator) } ``` CopyTranslatorClassification provides polymorphic access to related types. Call the interface's GetCopyTranslator() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *CopyTranslator, *TabularTranslator #### type [CosmosDbConnectionMode](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L213) [¶](#CosmosDbConnectionMode) ``` type CosmosDbConnectionMode [string](/builtin#string) ``` CosmosDbConnectionMode - The connection mode used to access CosmosDB account. Type: string (or Expression with resultType string). ``` const ( CosmosDbConnectionModeDirect [CosmosDbConnectionMode](#CosmosDbConnectionMode) = "Direct" CosmosDbConnectionModeGateway [CosmosDbConnectionMode](#CosmosDbConnectionMode) = "Gateway" ) ``` #### func [PossibleCosmosDbConnectionModeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L221) [¶](#PossibleCosmosDbConnectionModeValues) ``` func PossibleCosmosDbConnectionModeValues() [][CosmosDbConnectionMode](#CosmosDbConnectionMode) ``` PossibleCosmosDbConnectionModeValues returns the possible values for the CosmosDbConnectionMode const type. #### type [CosmosDbLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7183) [¶](#CosmosDbLinkedService) ``` type CosmosDbLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; CosmosDB linked service properties. TypeProperties *[CosmosDbLinkedServiceTypeProperties](#CosmosDbLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` CosmosDbLinkedService - Microsoft Azure Cosmos Database (CosmosDB) linked service. #### func (*CosmosDbLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7207) [¶](#CosmosDbLinkedService.GetLinkedService) added in v0.2.0 ``` func (c *[CosmosDbLinkedService](#CosmosDbLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type CosmosDbLinkedService. #### func (CosmosDbLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12166) [¶](#CosmosDbLinkedService.MarshalJSON) ``` func (c [CosmosDbLinkedService](#CosmosDbLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbLinkedService. #### func (*CosmosDbLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12183) [¶](#CosmosDbLinkedService.UnmarshalJSON) ``` func (c *[CosmosDbLinkedService](#CosmosDbLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbLinkedService. #### type [CosmosDbLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7219) [¶](#CosmosDbLinkedServiceTypeProperties) ``` type CosmosDbLinkedServiceTypeProperties struct { // The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string) AccountEndpoint interface{} `json:"accountEndpoint,omitempty"` // The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference. AccountKey [SecretBaseClassification](#SecretBaseClassification) `json:"accountKey,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The connection mode used to access CosmosDB account. Type: string (or Expression with resultType string). ConnectionMode *[CosmosDbConnectionMode](#CosmosDbConnectionMode) `json:"connectionMode,omitempty"` // The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The name of the database. Type: string (or Expression with resultType string) Database interface{} `json:"database,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. ServicePrincipalCredential [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalCredential,omitempty"` // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). ServicePrincipalCredentialType *[CosmosDbServicePrincipalCredentialType](#CosmosDbServicePrincipalCredentialType) `json:"servicePrincipalCredentialType,omitempty"` // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` } ``` CosmosDbLinkedServiceTypeProperties - CosmosDB linked service properties. #### func (CosmosDbLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12228) [¶](#CosmosDbLinkedServiceTypeProperties.MarshalJSON) ``` func (c [CosmosDbLinkedServiceTypeProperties](#CosmosDbLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbLinkedServiceTypeProperties. #### func (*CosmosDbLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12246) [¶](#CosmosDbLinkedServiceTypeProperties.UnmarshalJSON) ``` func (c *[CosmosDbLinkedServiceTypeProperties](#CosmosDbLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbLinkedServiceTypeProperties. #### type [CosmosDbMongoDbAPICollectionDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7267) [¶](#CosmosDbMongoDbAPICollectionDataset) ``` type CosmosDbMongoDbAPICollectionDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; CosmosDB (MongoDB API) database dataset properties. TypeProperties *[CosmosDbMongoDbAPICollectionDatasetTypeProperties](#CosmosDbMongoDbAPICollectionDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` CosmosDbMongoDbAPICollectionDataset - The CosmosDB (MongoDB API) database dataset. #### func (*CosmosDbMongoDbAPICollectionDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7301) [¶](#CosmosDbMongoDbAPICollectionDataset.GetDataset) added in v0.2.0 ``` func (c *[CosmosDbMongoDbAPICollectionDataset](#CosmosDbMongoDbAPICollectionDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type CosmosDbMongoDbAPICollectionDataset. #### func (CosmosDbMongoDbAPICollectionDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12299) [¶](#CosmosDbMongoDbAPICollectionDataset.MarshalJSON) ``` func (c [CosmosDbMongoDbAPICollectionDataset](#CosmosDbMongoDbAPICollectionDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPICollectionDataset. #### func (*CosmosDbMongoDbAPICollectionDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12319) [¶](#CosmosDbMongoDbAPICollectionDataset.UnmarshalJSON) ``` func (c *[CosmosDbMongoDbAPICollectionDataset](#CosmosDbMongoDbAPICollectionDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbMongoDbAPICollectionDataset. #### type [CosmosDbMongoDbAPICollectionDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7316) [¶](#CosmosDbMongoDbAPICollectionDatasetTypeProperties) ``` type CosmosDbMongoDbAPICollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the CosmosDB (MongoDB API) database. Type: string (or Expression with resultType string). Collection interface{} `json:"collection,omitempty"` } ``` CosmosDbMongoDbAPICollectionDatasetTypeProperties - CosmosDB (MongoDB API) database dataset properties. #### func (CosmosDbMongoDbAPICollectionDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12373) [¶](#CosmosDbMongoDbAPICollectionDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (c [CosmosDbMongoDbAPICollectionDatasetTypeProperties](#CosmosDbMongoDbAPICollectionDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPICollectionDatasetTypeProperties. #### func (*CosmosDbMongoDbAPICollectionDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12380) [¶](#CosmosDbMongoDbAPICollectionDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[CosmosDbMongoDbAPICollectionDatasetTypeProperties](#CosmosDbMongoDbAPICollectionDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbMongoDbAPICollectionDatasetTypeProperties. #### type [CosmosDbMongoDbAPILinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7322) [¶](#CosmosDbMongoDbAPILinkedService) ``` type CosmosDbMongoDbAPILinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; CosmosDB (MongoDB API) linked service properties. TypeProperties *[CosmosDbMongoDbAPILinkedServiceTypeProperties](#CosmosDbMongoDbAPILinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` CosmosDbMongoDbAPILinkedService - Linked service for CosmosDB (MongoDB API) data source. #### func (*CosmosDbMongoDbAPILinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7346) [¶](#CosmosDbMongoDbAPILinkedService.GetLinkedService) added in v0.2.0 ``` func (c *[CosmosDbMongoDbAPILinkedService](#CosmosDbMongoDbAPILinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type CosmosDbMongoDbAPILinkedService. #### func (CosmosDbMongoDbAPILinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12400) [¶](#CosmosDbMongoDbAPILinkedService.MarshalJSON) ``` func (c [CosmosDbMongoDbAPILinkedService](#CosmosDbMongoDbAPILinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPILinkedService. #### func (*CosmosDbMongoDbAPILinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12417) [¶](#CosmosDbMongoDbAPILinkedService.UnmarshalJSON) ``` func (c *[CosmosDbMongoDbAPILinkedService](#CosmosDbMongoDbAPILinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbMongoDbAPILinkedService. #### type [CosmosDbMongoDbAPILinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7358) [¶](#CosmosDbMongoDbAPILinkedServiceTypeProperties) ``` type CosmosDbMongoDbAPILinkedServiceTypeProperties struct { // REQUIRED; The CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: // string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // REQUIRED; The name of the CosmosDB (MongoDB API) database that you want to access. Type: string (or Expression with resultType // string). Database interface{} `json:"database,omitempty"` // Whether the CosmosDB (MongoDB API) server version is higher than 3.2. The default value is false. Type: boolean (or Expression // with resultType boolean). IsServerVersionAbove32 interface{} `json:"isServerVersionAbove32,omitempty"` } ``` CosmosDbMongoDbAPILinkedServiceTypeProperties - CosmosDB (MongoDB API) linked service properties. #### func (CosmosDbMongoDbAPILinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12462) [¶](#CosmosDbMongoDbAPILinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (c [CosmosDbMongoDbAPILinkedServiceTypeProperties](#CosmosDbMongoDbAPILinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPILinkedServiceTypeProperties. #### func (*CosmosDbMongoDbAPILinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12471) [¶](#CosmosDbMongoDbAPILinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[CosmosDbMongoDbAPILinkedServiceTypeProperties](#CosmosDbMongoDbAPILinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbMongoDbAPILinkedServiceTypeProperties. #### type [CosmosDbMongoDbAPISink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7373) [¶](#CosmosDbMongoDbAPISink) ``` type CosmosDbMongoDbAPISink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` CosmosDbMongoDbAPISink - A copy activity sink for a CosmosDB (MongoDB API) database. #### func (*CosmosDbMongoDbAPISink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7405) [¶](#CosmosDbMongoDbAPISink.GetCopySink) added in v0.2.0 ``` func (c *[CosmosDbMongoDbAPISink](#CosmosDbMongoDbAPISink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type CosmosDbMongoDbAPISink. #### func (CosmosDbMongoDbAPISink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12497) [¶](#CosmosDbMongoDbAPISink.MarshalJSON) ``` func (c [CosmosDbMongoDbAPISink](#CosmosDbMongoDbAPISink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPISink. #### func (*CosmosDbMongoDbAPISink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12516) [¶](#CosmosDbMongoDbAPISink.UnmarshalJSON) ``` func (c *[CosmosDbMongoDbAPISink](#CosmosDbMongoDbAPISink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbMongoDbAPISink. #### type [CosmosDbMongoDbAPISource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7419) [¶](#CosmosDbMongoDbAPISource) ``` type CosmosDbMongoDbAPISource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying // the batch size will not affect the user or the application. This property's // main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). BatchSize interface{} `json:"batchSize,omitempty"` // Cursor methods for Mongodb query. CursorMethods *[MongoDbCursorMethodsProperties](#MongoDbCursorMethodsProperties) `json:"cursorMethods,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). Filter interface{} `json:"filter,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` CosmosDbMongoDbAPISource - A copy activity source for a CosmosDB (MongoDB API) database. #### func (*CosmosDbMongoDbAPISource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7459) [¶](#CosmosDbMongoDbAPISource.GetCopySource) added in v0.2.0 ``` func (c *[CosmosDbMongoDbAPISource](#CosmosDbMongoDbAPISource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type CosmosDbMongoDbAPISource. #### func (CosmosDbMongoDbAPISource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12567) [¶](#CosmosDbMongoDbAPISource.MarshalJSON) ``` func (c [CosmosDbMongoDbAPISource](#CosmosDbMongoDbAPISource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPISource. #### func (*CosmosDbMongoDbAPISource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12588) [¶](#CosmosDbMongoDbAPISource.UnmarshalJSON) ``` func (c *[CosmosDbMongoDbAPISource](#CosmosDbMongoDbAPISource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbMongoDbAPISource. #### type [CosmosDbSQLAPICollectionDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7471) [¶](#CosmosDbSQLAPICollectionDataset) ``` type CosmosDbSQLAPICollectionDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; CosmosDB (SQL API) Collection dataset properties. TypeProperties *[CosmosDbSQLAPICollectionDatasetTypeProperties](#CosmosDbSQLAPICollectionDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` CosmosDbSQLAPICollectionDataset - Microsoft Azure CosmosDB (SQL API) Collection dataset. #### func (*CosmosDbSQLAPICollectionDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7505) [¶](#CosmosDbSQLAPICollectionDataset.GetDataset) added in v0.2.0 ``` func (c *[CosmosDbSQLAPICollectionDataset](#CosmosDbSQLAPICollectionDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type CosmosDbSQLAPICollectionDataset. #### func (CosmosDbSQLAPICollectionDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12645) [¶](#CosmosDbSQLAPICollectionDataset.MarshalJSON) ``` func (c [CosmosDbSQLAPICollectionDataset](#CosmosDbSQLAPICollectionDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPICollectionDataset. #### func (*CosmosDbSQLAPICollectionDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12665) [¶](#CosmosDbSQLAPICollectionDataset.UnmarshalJSON) ``` func (c *[CosmosDbSQLAPICollectionDataset](#CosmosDbSQLAPICollectionDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbSQLAPICollectionDataset. #### type [CosmosDbSQLAPICollectionDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7520) [¶](#CosmosDbSQLAPICollectionDatasetTypeProperties) ``` type CosmosDbSQLAPICollectionDatasetTypeProperties struct { // REQUIRED; CosmosDB (SQL API) collection name. Type: string (or Expression with resultType string). CollectionName interface{} `json:"collectionName,omitempty"` } ``` CosmosDbSQLAPICollectionDatasetTypeProperties - CosmosDB (SQL API) Collection dataset properties. #### func (CosmosDbSQLAPICollectionDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12719) [¶](#CosmosDbSQLAPICollectionDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (c [CosmosDbSQLAPICollectionDatasetTypeProperties](#CosmosDbSQLAPICollectionDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPICollectionDatasetTypeProperties. #### func (*CosmosDbSQLAPICollectionDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12726) [¶](#CosmosDbSQLAPICollectionDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[CosmosDbSQLAPICollectionDatasetTypeProperties](#CosmosDbSQLAPICollectionDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbSQLAPICollectionDatasetTypeProperties. #### type [CosmosDbSQLAPISink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7526) [¶](#CosmosDbSQLAPISink) ``` type CosmosDbSQLAPISink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType string). Allowed values: insert // and upsert. WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` CosmosDbSQLAPISink - A copy activity Azure CosmosDB (SQL API) Collection sink. #### func (*CosmosDbSQLAPISink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7557) [¶](#CosmosDbSQLAPISink.GetCopySink) added in v0.2.0 ``` func (c *[CosmosDbSQLAPISink](#CosmosDbSQLAPISink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type CosmosDbSQLAPISink. #### func (CosmosDbSQLAPISink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12746) [¶](#CosmosDbSQLAPISink.MarshalJSON) ``` func (c [CosmosDbSQLAPISink](#CosmosDbSQLAPISink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPISink. #### func (*CosmosDbSQLAPISink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12765) [¶](#CosmosDbSQLAPISink.UnmarshalJSON) ``` func (c *[CosmosDbSQLAPISink](#CosmosDbSQLAPISink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbSQLAPISink. #### type [CosmosDbSQLAPISource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7571) [¶](#CosmosDbSQLAPISource) ``` type CosmosDbSQLAPISource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Whether detect primitive values as datetime values. Type: boolean (or Expression with resultType boolean). DetectDatetime interface{} `json:"detectDatetime,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Page size of the result. Type: integer (or Expression with resultType integer). PageSize interface{} `json:"pageSize,omitempty"` // Preferred regions. Type: array of strings (or Expression with resultType array of strings). PreferredRegions interface{} `json:"preferredRegions,omitempty"` // SQL API query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` CosmosDbSQLAPISource - A copy activity Azure CosmosDB (SQL API) Collection source. #### func (*CosmosDbSQLAPISource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7608) [¶](#CosmosDbSQLAPISource.GetCopySource) added in v0.2.0 ``` func (c *[CosmosDbSQLAPISource](#CosmosDbSQLAPISource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type CosmosDbSQLAPISource. #### func (CosmosDbSQLAPISource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12816) [¶](#CosmosDbSQLAPISource.MarshalJSON) ``` func (c [CosmosDbSQLAPISource](#CosmosDbSQLAPISource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPISource. #### func (*CosmosDbSQLAPISource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12837) [¶](#CosmosDbSQLAPISource.UnmarshalJSON) ``` func (c *[CosmosDbSQLAPISource](#CosmosDbSQLAPISource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbSQLAPISource. #### type [CosmosDbServicePrincipalCredentialType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L231) [¶](#CosmosDbServicePrincipalCredentialType) ``` type CosmosDbServicePrincipalCredentialType [string](/builtin#string) ``` CosmosDbServicePrincipalCredentialType - The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string). ``` const ( CosmosDbServicePrincipalCredentialTypeServicePrincipalCert [CosmosDbServicePrincipalCredentialType](#CosmosDbServicePrincipalCredentialType) = "ServicePrincipalCert" CosmosDbServicePrincipalCredentialTypeServicePrincipalKey [CosmosDbServicePrincipalCredentialType](#CosmosDbServicePrincipalCredentialType) = "ServicePrincipalKey" ) ``` #### func [PossibleCosmosDbServicePrincipalCredentialTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L239) [¶](#PossibleCosmosDbServicePrincipalCredentialTypeValues) ``` func PossibleCosmosDbServicePrincipalCredentialTypeValues() [][CosmosDbServicePrincipalCredentialType](#CosmosDbServicePrincipalCredentialType) ``` PossibleCosmosDbServicePrincipalCredentialTypeValues returns the possible values for the CosmosDbServicePrincipalCredentialType const type. #### type [CouchbaseLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7620) [¶](#CouchbaseLinkedService) ``` type CouchbaseLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Couchbase server linked service properties. TypeProperties *[CouchbaseLinkedServiceTypeProperties](#CouchbaseLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` CouchbaseLinkedService - Couchbase server linked service. #### func (*CouchbaseLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7644) [¶](#CouchbaseLinkedService.GetLinkedService) added in v0.2.0 ``` func (c *[CouchbaseLinkedService](#CouchbaseLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type CouchbaseLinkedService. #### func (CouchbaseLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12894) [¶](#CouchbaseLinkedService.MarshalJSON) ``` func (c [CouchbaseLinkedService](#CouchbaseLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CouchbaseLinkedService. #### func (*CouchbaseLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12911) [¶](#CouchbaseLinkedService.UnmarshalJSON) ``` func (c *[CouchbaseLinkedService](#CouchbaseLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CouchbaseLinkedService. #### type [CouchbaseLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7656) [¶](#CouchbaseLinkedServiceTypeProperties) ``` type CouchbaseLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The Azure key vault secret reference of credString in connection string. CredString *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"credString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` CouchbaseLinkedServiceTypeProperties - Couchbase server linked service properties. #### func (CouchbaseLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12956) [¶](#CouchbaseLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (c [CouchbaseLinkedServiceTypeProperties](#CouchbaseLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CouchbaseLinkedServiceTypeProperties. #### func (*CouchbaseLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12965) [¶](#CouchbaseLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[CouchbaseLinkedServiceTypeProperties](#CouchbaseLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CouchbaseLinkedServiceTypeProperties. #### type [CouchbaseSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7669) [¶](#CouchbaseSource) ``` type CouchbaseSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` CouchbaseSource - A copy activity Couchbase server source. #### func (*CouchbaseSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7700) [¶](#CouchbaseSource.GetCopySource) added in v0.2.0 ``` func (c *[CouchbaseSource](#CouchbaseSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type CouchbaseSource. #### func (*CouchbaseSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7712) [¶](#CouchbaseSource.GetTabularSource) added in v0.2.0 ``` func (c *[CouchbaseSource](#CouchbaseSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type CouchbaseSource. #### func (CouchbaseSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L12991) [¶](#CouchbaseSource.MarshalJSON) ``` func (c [CouchbaseSource](#CouchbaseSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CouchbaseSource. #### func (*CouchbaseSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13010) [¶](#CouchbaseSource.UnmarshalJSON) ``` func (c *[CouchbaseSource](#CouchbaseSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CouchbaseSource. #### type [CouchbaseTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7726) [¶](#CouchbaseTableDataset) ``` type CouchbaseTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` CouchbaseTableDataset - Couchbase server dataset. #### func (*CouchbaseTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7760) [¶](#CouchbaseTableDataset.GetDataset) added in v0.2.0 ``` func (c *[CouchbaseTableDataset](#CouchbaseTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type CouchbaseTableDataset. #### func (CouchbaseTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13061) [¶](#CouchbaseTableDataset.MarshalJSON) ``` func (c [CouchbaseTableDataset](#CouchbaseTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CouchbaseTableDataset. #### func (*CouchbaseTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13081) [¶](#CouchbaseTableDataset.UnmarshalJSON) ``` func (c *[CouchbaseTableDataset](#CouchbaseTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CouchbaseTableDataset. #### type [CreateDataFlowDebugSessionRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7775) [¶](#CreateDataFlowDebugSessionRequest) ``` type CreateDataFlowDebugSessionRequest struct { // Compute type of the cluster. The value will be overwritten by the same setting in integration runtime if provided. ComputeType *[string](/builtin#string) `json:"computeType,omitempty"` // Core count of the cluster. The value will be overwritten by the same setting in integration runtime if provided. CoreCount *[int32](/builtin#int32) `json:"coreCount,omitempty"` // Set to use integration runtime setting for data flow debug session. IntegrationRuntime *[IntegrationRuntimeDebugResource](#IntegrationRuntimeDebugResource) `json:"integrationRuntime,omitempty"` // Time to live setting of the cluster in minutes. TimeToLive *[int32](/builtin#int32) `json:"timeToLive,omitempty"` } ``` CreateDataFlowDebugSessionRequest - Request body structure for creating data flow debug session. #### func (CreateDataFlowDebugSessionRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13135) [¶](#CreateDataFlowDebugSessionRequest.MarshalJSON) added in v1.3.0 ``` func (c [CreateDataFlowDebugSessionRequest](#CreateDataFlowDebugSessionRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CreateDataFlowDebugSessionRequest. #### func (*CreateDataFlowDebugSessionRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13145) [¶](#CreateDataFlowDebugSessionRequest.UnmarshalJSON) added in v1.3.0 ``` func (c *[CreateDataFlowDebugSessionRequest](#CreateDataFlowDebugSessionRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CreateDataFlowDebugSessionRequest. #### type [CreateDataFlowDebugSessionResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7790) [¶](#CreateDataFlowDebugSessionResponse) ``` type CreateDataFlowDebugSessionResponse struct { // The ID of data flow debug session. SessionID *[string](/builtin#string) `json:"sessionId,omitempty"` // The state of the debug session. Status *[string](/builtin#string) `json:"status,omitempty"` } ``` CreateDataFlowDebugSessionResponse - Response body structure for creating data flow debug session. #### func (CreateDataFlowDebugSessionResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13174) [¶](#CreateDataFlowDebugSessionResponse.MarshalJSON) added in v1.3.0 ``` func (c [CreateDataFlowDebugSessionResponse](#CreateDataFlowDebugSessionResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CreateDataFlowDebugSessionResponse. #### func (*CreateDataFlowDebugSessionResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13182) [¶](#CreateDataFlowDebugSessionResponse.UnmarshalJSON) added in v1.3.0 ``` func (c *[CreateDataFlowDebugSessionResponse](#CreateDataFlowDebugSessionResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CreateDataFlowDebugSessionResponse. #### type [CreateLinkedIntegrationRuntimeRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7799) [¶](#CreateLinkedIntegrationRuntimeRequest) ``` type CreateLinkedIntegrationRuntimeRequest struct { // The location of the data factory that the linked integration runtime belongs to. DataFactoryLocation *[string](/builtin#string) `json:"dataFactoryLocation,omitempty"` // The name of the data factory that the linked integration runtime belongs to. DataFactoryName *[string](/builtin#string) `json:"dataFactoryName,omitempty"` // The name of the linked integration runtime. Name *[string](/builtin#string) `json:"name,omitempty"` // The ID of the subscription that the linked integration runtime belongs to. SubscriptionID *[string](/builtin#string) `json:"subscriptionId,omitempty"` } ``` CreateLinkedIntegrationRuntimeRequest - The linked integration runtime information. #### func (CreateLinkedIntegrationRuntimeRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13205) [¶](#CreateLinkedIntegrationRuntimeRequest.MarshalJSON) added in v1.3.0 ``` func (c [CreateLinkedIntegrationRuntimeRequest](#CreateLinkedIntegrationRuntimeRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CreateLinkedIntegrationRuntimeRequest. #### func (*CreateLinkedIntegrationRuntimeRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13215) [¶](#CreateLinkedIntegrationRuntimeRequest.UnmarshalJSON) added in v1.3.0 ``` func (c *[CreateLinkedIntegrationRuntimeRequest](#CreateLinkedIntegrationRuntimeRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CreateLinkedIntegrationRuntimeRequest. #### type [CreateRunResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7814) [¶](#CreateRunResponse) ``` type CreateRunResponse struct { // REQUIRED; Identifier of a run. RunID *[string](/builtin#string) `json:"runId,omitempty"` } ``` CreateRunResponse - Response body with a run identifier. #### func (CreateRunResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13244) [¶](#CreateRunResponse.MarshalJSON) added in v1.3.0 ``` func (c [CreateRunResponse](#CreateRunResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CreateRunResponse. #### func (*CreateRunResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13251) [¶](#CreateRunResponse.UnmarshalJSON) added in v1.3.0 ``` func (c *[CreateRunResponse](#CreateRunResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CreateRunResponse. #### type [Credential](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7830) [¶](#Credential) ``` type Credential struct { // REQUIRED; Type of credential. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Credential. Annotations []interface{} `json:"annotations,omitempty"` // Credential description. Description *[string](/builtin#string) `json:"description,omitempty"` } ``` Credential - The Azure Data Factory nested object which contains the information and credential which can be used to connect with related store or compute resource. #### func (*Credential) [GetCredential](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7845) [¶](#Credential.GetCredential) ``` func (c *[Credential](#Credential)) GetCredential() *[Credential](#Credential) ``` GetCredential implements the CredentialClassification interface for type Credential. #### func (Credential) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13271) [¶](#Credential.MarshalJSON) added in v0.2.0 ``` func (c [Credential](#Credential)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Credential. #### func (*Credential) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13285) [¶](#Credential.UnmarshalJSON) ``` func (c *[Credential](#Credential)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Credential. #### type [CredentialClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7823) [¶](#CredentialClassification) ``` type CredentialClassification interface { // GetCredential returns the Credential content of the underlying type. GetCredential() *[Credential](#Credential) } ``` CredentialClassification provides polymorphic access to related types. Call the interface's GetCredential() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *Credential, *ManagedIdentityCredential, *ServicePrincipalCredential #### type [CredentialReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7848) [¶](#CredentialReference) ``` type CredentialReference struct { // REQUIRED; Reference credential name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Credential reference type. Type *[CredentialReferenceType](#CredentialReferenceType) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` CredentialReference - Credential reference type. #### func (CredentialReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13321) [¶](#CredentialReference.MarshalJSON) ``` func (c [CredentialReference](#CredentialReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CredentialReference. #### func (*CredentialReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13334) [¶](#CredentialReference.UnmarshalJSON) ``` func (c *[CredentialReference](#CredentialReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CredentialReference. #### type [CredentialReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L247) [¶](#CredentialReferenceType) ``` type CredentialReferenceType [string](/builtin#string) ``` CredentialReferenceType - Credential reference type. ``` const ( CredentialReferenceTypeCredentialReference [CredentialReferenceType](#CredentialReferenceType) = "CredentialReference" ) ``` #### func [PossibleCredentialReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L254) [¶](#PossibleCredentialReferenceTypeValues) ``` func PossibleCredentialReferenceTypeValues() [][CredentialReferenceType](#CredentialReferenceType) ``` PossibleCredentialReferenceTypeValues returns the possible values for the CredentialReferenceType const type. #### type [CredentialResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7860) [¶](#CredentialResource) ``` type CredentialResource struct { // REQUIRED; Properties of credentials. Properties [CredentialClassification](#CredentialClassification) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` CredentialResource - Credential resource type. #### func (CredentialResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13367) [¶](#CredentialResource.MarshalJSON) ``` func (c [CredentialResource](#CredentialResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CredentialResource. #### func (*CredentialResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13378) [¶](#CredentialResource.UnmarshalJSON) ``` func (c *[CredentialResource](#CredentialResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CredentialResource. #### type [CustomActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7878) [¶](#CustomActivity) ``` type CustomActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Custom activity properties. TypeProperties *[CustomActivityTypeProperties](#CustomActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` CustomActivity - Custom activity type. #### func (*CustomActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7908) [¶](#CustomActivity.GetActivity) added in v0.2.0 ``` func (c *[CustomActivity](#CustomActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type CustomActivity. #### func (*CustomActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7920) [¶](#CustomActivity.GetExecutionActivity) added in v0.2.0 ``` func (c *[CustomActivity](#CustomActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type CustomActivity. #### func (CustomActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13410) [¶](#CustomActivity.MarshalJSON) ``` func (c [CustomActivity](#CustomActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CustomActivity. #### func (*CustomActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13429) [¶](#CustomActivity.UnmarshalJSON) ``` func (c *[CustomActivity](#CustomActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CustomActivity. #### type [CustomActivityReferenceObject](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7934) [¶](#CustomActivityReferenceObject) ``` type CustomActivityReferenceObject struct { // Dataset references. Datasets []*[DatasetReference](#DatasetReference) `json:"datasets,omitempty"` // Linked service references. LinkedServices []*[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServices,omitempty"` } ``` CustomActivityReferenceObject - Reference objects for custom activity #### func (CustomActivityReferenceObject) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13480) [¶](#CustomActivityReferenceObject.MarshalJSON) ``` func (c [CustomActivityReferenceObject](#CustomActivityReferenceObject)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CustomActivityReferenceObject. #### func (*CustomActivityReferenceObject) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13488) [¶](#CustomActivityReferenceObject.UnmarshalJSON) added in v1.3.0 ``` func (c *[CustomActivityReferenceObject](#CustomActivityReferenceObject)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CustomActivityReferenceObject. #### type [CustomActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7943) [¶](#CustomActivityTypeProperties) ``` type CustomActivityTypeProperties struct { // REQUIRED; Command for custom activity Type: string (or Expression with resultType string). Command interface{} `json:"command,omitempty"` // Elevation level and scope for the user, default is nonadmin task. Type: string (or Expression with resultType double). AutoUserSpecification interface{} `json:"autoUserSpecification,omitempty"` // User defined property bag. There is no restriction on the keys or values that can be used. The user specified custom activity // has the full responsibility to consume and interpret the content defined. ExtendedProperties map[[string](/builtin#string)]interface{} `json:"extendedProperties,omitempty"` // Folder path for resource files Type: string (or Expression with resultType string). FolderPath interface{} `json:"folderPath,omitempty"` // Reference objects ReferenceObjects *[CustomActivityReferenceObject](#CustomActivityReferenceObject) `json:"referenceObjects,omitempty"` // Resource linked service reference. ResourceLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"resourceLinkedService,omitempty"` // The retention time for the files submitted for custom activity. Type: double (or Expression with resultType double). RetentionTimeInDays interface{} `json:"retentionTimeInDays,omitempty"` } ``` CustomActivityTypeProperties - Custom activity properties. #### func (CustomActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13511) [¶](#CustomActivityTypeProperties.MarshalJSON) ``` func (c [CustomActivityTypeProperties](#CustomActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CustomActivityTypeProperties. #### func (*CustomActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13524) [¶](#CustomActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[CustomActivityTypeProperties](#CustomActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CustomActivityTypeProperties. #### type [CustomDataSourceLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7968) [¶](#CustomDataSourceLinkedService) ``` type CustomDataSourceLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Custom linked service properties. TypeProperties interface{} `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` CustomDataSourceLinkedService - Custom linked service. #### func (*CustomDataSourceLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L7992) [¶](#CustomDataSourceLinkedService.GetLinkedService) added in v0.2.0 ``` func (c *[CustomDataSourceLinkedService](#CustomDataSourceLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type CustomDataSourceLinkedService. #### func (CustomDataSourceLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13562) [¶](#CustomDataSourceLinkedService.MarshalJSON) ``` func (c [CustomDataSourceLinkedService](#CustomDataSourceLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CustomDataSourceLinkedService. #### func (*CustomDataSourceLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13579) [¶](#CustomDataSourceLinkedService.UnmarshalJSON) ``` func (c *[CustomDataSourceLinkedService](#CustomDataSourceLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CustomDataSourceLinkedService. #### type [CustomDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8004) [¶](#CustomDataset) ``` type CustomDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Custom dataset properties. TypeProperties interface{} `json:"typeProperties,omitempty"` } ``` CustomDataset - The custom dataset. #### func (*CustomDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8038) [¶](#CustomDataset.GetDataset) added in v0.2.0 ``` func (c *[CustomDataset](#CustomDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type CustomDataset. #### func (CustomDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13624) [¶](#CustomDataset.MarshalJSON) ``` func (c [CustomDataset](#CustomDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CustomDataset. #### func (*CustomDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13644) [¶](#CustomDataset.UnmarshalJSON) ``` func (c *[CustomDataset](#CustomDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CustomDataset. #### type [CustomEventsTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8053) [¶](#CustomEventsTrigger) ``` type CustomEventsTrigger struct { // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Custom Events Trigger properties. TypeProperties *[CustomEventsTriggerTypeProperties](#CustomEventsTriggerTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // Pipelines that need to be started. Pipelines []*[TriggerPipelineReference](#TriggerPipelineReference) `json:"pipelines,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` CustomEventsTrigger - Trigger that runs every time a custom event is received. #### func (*CustomEventsTrigger) [GetMultiplePipelineTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8077) [¶](#CustomEventsTrigger.GetMultiplePipelineTrigger) added in v0.2.0 ``` func (c *[CustomEventsTrigger](#CustomEventsTrigger)) GetMultiplePipelineTrigger() *[MultiplePipelineTrigger](#MultiplePipelineTrigger) ``` GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type CustomEventsTrigger. #### func (*CustomEventsTrigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8089) [¶](#CustomEventsTrigger.GetTrigger) added in v0.2.0 ``` func (c *[CustomEventsTrigger](#CustomEventsTrigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type CustomEventsTrigger. #### func (CustomEventsTrigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13698) [¶](#CustomEventsTrigger.MarshalJSON) ``` func (c [CustomEventsTrigger](#CustomEventsTrigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CustomEventsTrigger. #### func (*CustomEventsTrigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13715) [¶](#CustomEventsTrigger.UnmarshalJSON) ``` func (c *[CustomEventsTrigger](#CustomEventsTrigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CustomEventsTrigger. #### type [CustomEventsTriggerTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8100) [¶](#CustomEventsTriggerTypeProperties) ``` type CustomEventsTriggerTypeProperties struct { // REQUIRED; The list of event types that cause this trigger to fire. Events []interface{} `json:"events,omitempty"` // REQUIRED; The ARM resource ID of the Azure Event Grid Topic. Scope *[string](/builtin#string) `json:"scope,omitempty"` // The event subject must begin with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, // subjectEndsWith. SubjectBeginsWith *[string](/builtin#string) `json:"subjectBeginsWith,omitempty"` // The event subject must end with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, // subjectEndsWith. SubjectEndsWith *[string](/builtin#string) `json:"subjectEndsWith,omitempty"` } ``` CustomEventsTriggerTypeProperties - Custom Events Trigger properties. #### func (CustomEventsTriggerTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13760) [¶](#CustomEventsTriggerTypeProperties.MarshalJSON) ``` func (c [CustomEventsTriggerTypeProperties](#CustomEventsTriggerTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CustomEventsTriggerTypeProperties. #### func (*CustomEventsTriggerTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13770) [¶](#CustomEventsTriggerTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (c *[CustomEventsTriggerTypeProperties](#CustomEventsTriggerTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CustomEventsTriggerTypeProperties. #### type [CustomSetupBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8126) [¶](#CustomSetupBase) ``` type CustomSetupBase struct { // REQUIRED; The type of custom setup. Type *[string](/builtin#string) `json:"type,omitempty"` } ``` CustomSetupBase - The base definition of the custom setup. #### func (*CustomSetupBase) [GetCustomSetupBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8132) [¶](#CustomSetupBase.GetCustomSetupBase) ``` func (c *[CustomSetupBase](#CustomSetupBase)) GetCustomSetupBase() *[CustomSetupBase](#CustomSetupBase) ``` GetCustomSetupBase implements the CustomSetupBaseClassification interface for type CustomSetupBase. #### func (CustomSetupBase) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13799) [¶](#CustomSetupBase.MarshalJSON) added in v1.3.0 ``` func (c [CustomSetupBase](#CustomSetupBase)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type CustomSetupBase. #### func (*CustomSetupBase) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13806) [¶](#CustomSetupBase.UnmarshalJSON) ``` func (c *[CustomSetupBase](#CustomSetupBase)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type CustomSetupBase. #### type [CustomSetupBaseClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8120) [¶](#CustomSetupBaseClassification) ``` type CustomSetupBaseClassification interface { // GetCustomSetupBase returns the CustomSetupBase content of the underlying type. GetCustomSetupBase() *[CustomSetupBase](#CustomSetupBase) } ``` CustomSetupBaseClassification provides polymorphic access to related types. Call the interface's GetCustomSetupBase() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzPowerShellSetup, *CmdkeySetup, *ComponentSetup, *CustomSetupBase, *EnvironmentVariableSetup #### type [DWCopyCommandDefaultValue](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8135) [¶](#DWCopyCommandDefaultValue) ``` type DWCopyCommandDefaultValue struct { // Column name. Type: object (or Expression with resultType string). ColumnName interface{} `json:"columnName,omitempty"` // The default value of the column. Type: object (or Expression with resultType string). DefaultValue interface{} `json:"defaultValue,omitempty"` } ``` DWCopyCommandDefaultValue - Default value. #### func (DWCopyCommandDefaultValue) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13826) [¶](#DWCopyCommandDefaultValue.MarshalJSON) added in v1.3.0 ``` func (d [DWCopyCommandDefaultValue](#DWCopyCommandDefaultValue)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DWCopyCommandDefaultValue. #### func (*DWCopyCommandDefaultValue) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13834) [¶](#DWCopyCommandDefaultValue.UnmarshalJSON) added in v1.3.0 ``` func (d *[DWCopyCommandDefaultValue](#DWCopyCommandDefaultValue)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DWCopyCommandDefaultValue. #### type [DWCopyCommandSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8144) [¶](#DWCopyCommandSettings) ``` type DWCopyCommandSettings struct { // Additional options directly passed to SQL DW in Copy Command. Type: key value pairs (value should be string type) (or Expression // with resultType object). Example: "additionalOptions": { "MAXERRORS": // "1000", "DATEFORMAT": "'ymd'" } AdditionalOptions map[[string](/builtin#string)]*[string](/builtin#string) `json:"additionalOptions,omitempty"` // Specifies the default values for each target column in SQL DW. The default values in the property overwrite the DEFAULT // constraint set in the DB, and identity column cannot have a default value. Type: // array of objects (or Expression with resultType array of objects). DefaultValues []*[DWCopyCommandDefaultValue](#DWCopyCommandDefaultValue) `json:"defaultValues,omitempty"` } ``` DWCopyCommandSettings - DW Copy Command settings. #### func (DWCopyCommandSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13857) [¶](#DWCopyCommandSettings.MarshalJSON) ``` func (d [DWCopyCommandSettings](#DWCopyCommandSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DWCopyCommandSettings. #### func (*DWCopyCommandSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13865) [¶](#DWCopyCommandSettings.UnmarshalJSON) added in v1.3.0 ``` func (d *[DWCopyCommandSettings](#DWCopyCommandSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DWCopyCommandSettings. #### type [DataFlow](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8166) [¶](#DataFlow) ``` type DataFlow struct { // REQUIRED; Type of data flow. Type *[string](/builtin#string) `json:"type,omitempty"` // List of tags that can be used for describing the data flow. Annotations []interface{} `json:"annotations,omitempty"` // The description of the data flow. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this data flow is in. If not specified, Data flow will appear at the root level. Folder *[DataFlowFolder](#DataFlowFolder) `json:"folder,omitempty"` } ``` DataFlow - Azure Data Factory nested object which contains a flow with data movements and transformations. #### func (*DataFlow) [GetDataFlow](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8181) [¶](#DataFlow.GetDataFlow) ``` func (d *[DataFlow](#DataFlow)) GetDataFlow() *[DataFlow](#DataFlow) ``` GetDataFlow implements the DataFlowClassification interface for type DataFlow. #### func (DataFlow) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13888) [¶](#DataFlow.MarshalJSON) added in v0.2.0 ``` func (d [DataFlow](#DataFlow)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlow. #### func (*DataFlow) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13898) [¶](#DataFlow.UnmarshalJSON) ``` func (d *[DataFlow](#DataFlow)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlow. #### type [DataFlowClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8160) [¶](#DataFlowClassification) ``` type DataFlowClassification interface { // GetDataFlow returns the DataFlow content of the underlying type. GetDataFlow() *[DataFlow](#DataFlow) } ``` DataFlowClassification provides polymorphic access to related types. Call the interface's GetDataFlow() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DataFlow, *Flowlet, *MappingDataFlow, *WranglingDataFlow #### type [DataFlowComputeType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L261) [¶](#DataFlowComputeType) ``` type DataFlowComputeType [string](/builtin#string) ``` DataFlowComputeType - Compute type of the cluster which will execute data flow job. ``` const ( DataFlowComputeTypeComputeOptimized [DataFlowComputeType](#DataFlowComputeType) = "ComputeOptimized" DataFlowComputeTypeGeneral [DataFlowComputeType](#DataFlowComputeType) = "General" DataFlowComputeTypeMemoryOptimized [DataFlowComputeType](#DataFlowComputeType) = "MemoryOptimized" ) ``` #### func [PossibleDataFlowComputeTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L270) [¶](#PossibleDataFlowComputeTypeValues) ``` func PossibleDataFlowComputeTypeValues() [][DataFlowComputeType](#DataFlowComputeType) ``` PossibleDataFlowComputeTypeValues returns the possible values for the DataFlowComputeType const type. #### type [DataFlowDebugCommandPayload](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8184) [¶](#DataFlowDebugCommandPayload) ``` type DataFlowDebugCommandPayload struct { // REQUIRED; The stream name which is used for preview. StreamName *[string](/builtin#string) `json:"streamName,omitempty"` // Array of column names. Columns []*[string](/builtin#string) `json:"columns,omitempty"` // The expression which is used for preview. Expression *[string](/builtin#string) `json:"expression,omitempty"` // Row limits for preview response. RowLimits *[int32](/builtin#int32) `json:"rowLimits,omitempty"` } ``` DataFlowDebugCommandPayload - Structure of command payload. #### func (DataFlowDebugCommandPayload) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13927) [¶](#DataFlowDebugCommandPayload.MarshalJSON) ``` func (d [DataFlowDebugCommandPayload](#DataFlowDebugCommandPayload)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandPayload. #### func (*DataFlowDebugCommandPayload) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13937) [¶](#DataFlowDebugCommandPayload.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowDebugCommandPayload](#DataFlowDebugCommandPayload)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugCommandPayload. #### type [DataFlowDebugCommandRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8199) [¶](#DataFlowDebugCommandRequest) ``` type DataFlowDebugCommandRequest struct { // The command type. Command *[DataFlowDebugCommandType](#DataFlowDebugCommandType) `json:"command,omitempty"` // The command payload object. CommandPayload *[DataFlowDebugCommandPayload](#DataFlowDebugCommandPayload) `json:"commandPayload,omitempty"` // The ID of data flow debug session. SessionID *[string](/builtin#string) `json:"sessionId,omitempty"` } ``` DataFlowDebugCommandRequest - Request body structure for data flow debug command. #### func (DataFlowDebugCommandRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13966) [¶](#DataFlowDebugCommandRequest.MarshalJSON) added in v1.3.0 ``` func (d [DataFlowDebugCommandRequest](#DataFlowDebugCommandRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandRequest. #### func (*DataFlowDebugCommandRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L13975) [¶](#DataFlowDebugCommandRequest.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowDebugCommandRequest](#DataFlowDebugCommandRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugCommandRequest. #### type [DataFlowDebugCommandResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8211) [¶](#DataFlowDebugCommandResponse) ``` type DataFlowDebugCommandResponse struct { // The result data of data preview, statistics or expression preview. Data *[string](/builtin#string) `json:"data,omitempty"` // The run status of data preview, statistics or expression preview. Status *[string](/builtin#string) `json:"status,omitempty"` } ``` DataFlowDebugCommandResponse - Response body structure of data flow result for data preview, statistics or expression preview. #### func (DataFlowDebugCommandResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14001) [¶](#DataFlowDebugCommandResponse.MarshalJSON) added in v1.3.0 ``` func (d [DataFlowDebugCommandResponse](#DataFlowDebugCommandResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandResponse. #### func (*DataFlowDebugCommandResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14009) [¶](#DataFlowDebugCommandResponse.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowDebugCommandResponse](#DataFlowDebugCommandResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugCommandResponse. #### type [DataFlowDebugCommandType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L279) [¶](#DataFlowDebugCommandType) ``` type DataFlowDebugCommandType [string](/builtin#string) ``` DataFlowDebugCommandType - The command type. ``` const ( DataFlowDebugCommandTypeExecuteExpressionQuery [DataFlowDebugCommandType](#DataFlowDebugCommandType) = "executeExpressionQuery" DataFlowDebugCommandTypeExecutePreviewQuery [DataFlowDebugCommandType](#DataFlowDebugCommandType) = "executePreviewQuery" DataFlowDebugCommandTypeExecuteStatisticsQuery [DataFlowDebugCommandType](#DataFlowDebugCommandType) = "executeStatisticsQuery" ) ``` #### func [PossibleDataFlowDebugCommandTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L288) [¶](#PossibleDataFlowDebugCommandTypeValues) ``` func PossibleDataFlowDebugCommandTypeValues() [][DataFlowDebugCommandType](#DataFlowDebugCommandType) ``` PossibleDataFlowDebugCommandTypeValues returns the possible values for the DataFlowDebugCommandType const type. #### type [DataFlowDebugPackage](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8220) [¶](#DataFlowDebugPackage) ``` type DataFlowDebugPackage struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Data flow instance. DataFlow *[DataFlowDebugResource](#DataFlowDebugResource) `json:"dataFlow,omitempty"` // List of Data flows DataFlows []*[DataFlowDebugResource](#DataFlowDebugResource) `json:"dataFlows,omitempty"` // List of datasets. Datasets []*[DatasetDebugResource](#DatasetDebugResource) `json:"datasets,omitempty"` // Data flow debug settings. DebugSettings *[DataFlowDebugPackageDebugSettings](#DataFlowDebugPackageDebugSettings) `json:"debugSettings,omitempty"` // List of linked services. LinkedServices []*[LinkedServiceDebugResource](#LinkedServiceDebugResource) `json:"linkedServices,omitempty"` // The ID of data flow debug session. SessionID *[string](/builtin#string) `json:"sessionId,omitempty"` // Staging info for debug session. Staging *[DataFlowStagingInfo](#DataFlowStagingInfo) `json:"staging,omitempty"` } ``` DataFlowDebugPackage - Request body structure for starting data flow debug session. #### func (DataFlowDebugPackage) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14032) [¶](#DataFlowDebugPackage.MarshalJSON) ``` func (d [DataFlowDebugPackage](#DataFlowDebugPackage)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowDebugPackage. #### func (*DataFlowDebugPackage) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14050) [¶](#DataFlowDebugPackage.UnmarshalJSON) ``` func (d *[DataFlowDebugPackage](#DataFlowDebugPackage)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugPackage. #### type [DataFlowDebugPackageDebugSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8247) [¶](#DataFlowDebugPackageDebugSettings) ``` type DataFlowDebugPackageDebugSettings struct { // Parameters for dataset. DatasetParameters interface{} `json:"datasetParameters,omitempty"` // Data flow parameters. Parameters map[[string](/builtin#string)]interface{} `json:"parameters,omitempty"` // Source setting for data flow debug. SourceSettings []*[DataFlowSourceSetting](#DataFlowSourceSetting) `json:"sourceSettings,omitempty"` } ``` DataFlowDebugPackageDebugSettings - Data flow debug settings. #### func (DataFlowDebugPackageDebugSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14098) [¶](#DataFlowDebugPackageDebugSettings.MarshalJSON) ``` func (d [DataFlowDebugPackageDebugSettings](#DataFlowDebugPackageDebugSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowDebugPackageDebugSettings. #### func (*DataFlowDebugPackageDebugSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14107) [¶](#DataFlowDebugPackageDebugSettings.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowDebugPackageDebugSettings](#DataFlowDebugPackageDebugSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugPackageDebugSettings. #### type [DataFlowDebugResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8259) [¶](#DataFlowDebugResource) ``` type DataFlowDebugResource struct { // REQUIRED; Data flow properties. Properties [DataFlowClassification](#DataFlowClassification) `json:"properties,omitempty"` // The resource name. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` DataFlowDebugResource - Data flow debug resource. #### func (DataFlowDebugResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14133) [¶](#DataFlowDebugResource.MarshalJSON) ``` func (d [DataFlowDebugResource](#DataFlowDebugResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowDebugResource. #### func (*DataFlowDebugResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14141) [¶](#DataFlowDebugResource.UnmarshalJSON) ``` func (d *[DataFlowDebugResource](#DataFlowDebugResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugResource. #### type [DataFlowDebugSessionClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go#L28) [¶](#DataFlowDebugSessionClient) ``` type DataFlowDebugSessionClient struct { // contains filtered or unexported fields } ``` DataFlowDebugSessionClient contains the methods for the DataFlowDebugSession group. Don't use this type directly, use NewDataFlowDebugSessionClient() instead. #### func [NewDataFlowDebugSessionClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go#L38) [¶](#NewDataFlowDebugSessionClient) ``` func NewDataFlowDebugSessionClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[DataFlowDebugSessionClient](#DataFlowDebugSessionClient), [error](/builtin#error)) ``` NewDataFlowDebugSessionClient creates a new instance of DataFlowDebugSessionClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*DataFlowDebugSessionClient) [AddDataFlow](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go#L66) [¶](#DataFlowDebugSessionClient.AddDataFlow) ``` func (client *[DataFlowDebugSessionClient](#DataFlowDebugSessionClient)) AddDataFlow(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), request [DataFlowDebugPackage](#DataFlowDebugPackage), options *[DataFlowDebugSessionClientAddDataFlowOptions](#DataFlowDebugSessionClientAddDataFlowOptions)) ([DataFlowDebugSessionClientAddDataFlowResponse](#DataFlowDebugSessionClientAddDataFlowResponse), [error](/builtin#error)) ``` AddDataFlow - Add a data flow into debug session. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. request - Data flow debug session definition with debug content. options - DataFlowDebugSessionClientAddDataFlowOptions contains the optional parameters for the DataFlowDebugSessionClient.AddDataFlow method. Example [¶](#example-DataFlowDebugSessionClient.AddDataFlow) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.AddDataFlow(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.DataFlowDebugPackage{ DataFlow: &armdatafactory.DataFlowDebugResource{ Name: to.Ptr("dataflow1"), Properties: &armdatafactory.MappingDataFlow{ Type: to.Ptr("MappingDataFlow"), TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ Script: to.Ptr("\n\nsource(output(\n Column_1 as string\n ),\n allowSchemaDrift: true,\n validateSchema: false) ~> source1"), Sinks: []*armdatafactory.DataFlowSink{}, Sources: []*armdatafactory.DataFlowSource{ { Name: to.Ptr("source1"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("DelimitedText2"), }, }}, Transformations: []*armdatafactory.Transformation{}, }, }, }, Datasets: []*armdatafactory.DatasetDebugResource{ { Name: to.Ptr("dataset1"), Properties: &armdatafactory.DelimitedTextDataset{ Type: to.Ptr("DelimitedText"), Schema: []interface{}{ map[string]interface{}{ "type": "String", }, }, Annotations: []interface{}{}, LinkedServiceName: &armdatafactory.LinkedServiceReference{ Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), ReferenceName: to.Ptr("linkedService5"), }, TypeProperties: &armdatafactory.DelimitedTextDatasetTypeProperties{ ColumnDelimiter: ",", EscapeChar: "\\", FirstRowAsHeader: true, Location: &armdatafactory.AzureBlobStorageLocation{ Type: to.Ptr("AzureBlobStorageLocation"), FileName: "Ansiencoding.csv", Container: "dataflow-sample-data", }, QuoteChar: "\"", }, }, }}, DebugSettings: &armdatafactory.DataFlowDebugPackageDebugSettings{ DatasetParameters: map[string]interface{}{ "Movies": map[string]interface{}{ "path": "abc", }, "Output": map[string]interface{}{ "time": "def", }, }, Parameters: map[string]interface{}{ "sourcePath": "Toy", }, SourceSettings: []*armdatafactory.DataFlowSourceSetting{ { RowLimit: to.Ptr[int32](1000), SourceName: to.Ptr("source1"), }, { RowLimit: to.Ptr[int32](222), SourceName: to.Ptr("source2"), }}, }, LinkedServices: []*armdatafactory.LinkedServiceDebugResource{ { Name: to.Ptr("linkedService1"), Properties: &armdatafactory.AzureBlobStorageLinkedService{ Type: to.Ptr("AzureBlobStorage"), Annotations: []interface{}{}, TypeProperties: &armdatafactory.AzureBlobStorageLinkedServiceTypeProperties{ ConnectionString: "DefaultEndpointsProtocol=https;AccountName=<storageName>;EndpointSuffix=core.windows.net;", EncryptedCredential: to.Ptr("<credential>"), }, }, }}, SessionID: to.Ptr("f06ed247-9d07-49b2-b05e-2cb4a2fc871e"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*DataFlowDebugSessionClient) [BeginCreate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go#L124) [¶](#DataFlowDebugSessionClient.BeginCreate) ``` func (client *[DataFlowDebugSessionClient](#DataFlowDebugSessionClient)) BeginCreate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), request [CreateDataFlowDebugSessionRequest](#CreateDataFlowDebugSessionRequest), options *[DataFlowDebugSessionClientBeginCreateOptions](#DataFlowDebugSessionClientBeginCreateOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[DataFlowDebugSessionClientCreateResponse](#DataFlowDebugSessionClientCreateResponse)], [error](/builtin#error)) ``` BeginCreate - Creates a data flow debug session. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. request - Data flow debug session definition options - DataFlowDebugSessionClientBeginCreateOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginCreate method. Example [¶](#example-DataFlowDebugSessionClient.BeginCreate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.CreateDataFlowDebugSessionRequest{ IntegrationRuntime: &armdatafactory.IntegrationRuntimeDebugResource{ Name: to.Ptr("ir1"), Properties: &armdatafactory.ManagedIntegrationRuntime{ Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeManaged), TypeProperties: &armdatafactory.ManagedIntegrationRuntimeTypeProperties{ ComputeProperties: &armdatafactory.IntegrationRuntimeComputeProperties{ DataFlowProperties: &armdatafactory.IntegrationRuntimeDataFlowProperties{ ComputeType: to.Ptr(armdatafactory.DataFlowComputeTypeGeneral), CoreCount: to.Ptr[int32](48), TimeToLive: to.Ptr[int32](10), }, Location: to.Ptr("AutoResolve"), }, }, }, }, TimeToLive: to.Ptr[int32](60), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*DataFlowDebugSessionClient) [BeginExecuteCommand](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go#L237) [¶](#DataFlowDebugSessionClient.BeginExecuteCommand) ``` func (client *[DataFlowDebugSessionClient](#DataFlowDebugSessionClient)) BeginExecuteCommand(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), request [DataFlowDebugCommandRequest](#DataFlowDebugCommandRequest), options *[DataFlowDebugSessionClientBeginExecuteCommandOptions](#DataFlowDebugSessionClientBeginExecuteCommandOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[DataFlowDebugSessionClientExecuteCommandResponse](#DataFlowDebugSessionClientExecuteCommandResponse)], [error](/builtin#error)) ``` BeginExecuteCommand - Execute a data flow debug command. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. request - Data flow debug command definition. options - DataFlowDebugSessionClientBeginExecuteCommandOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginExecuteCommand method. Example [¶](#example-DataFlowDebugSessionClient.BeginExecuteCommand) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginExecuteCommand(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.DataFlowDebugCommandRequest{ Command: to.Ptr(armdatafactory.DataFlowDebugCommandTypeExecutePreviewQuery), CommandPayload: &armdatafactory.DataFlowDebugCommandPayload{ RowLimits: to.Ptr[int32](100), StreamName: to.Ptr("source1"), }, SessionID: to.Ptr("f06ed247-9d07-49b2-b05e-2cb4a2fc871e"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*DataFlowDebugSessionClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go#L188) [¶](#DataFlowDebugSessionClient.Delete) ``` func (client *[DataFlowDebugSessionClient](#DataFlowDebugSessionClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), request [DeleteDataFlowDebugSessionRequest](#DeleteDataFlowDebugSessionRequest), options *[DataFlowDebugSessionClientDeleteOptions](#DataFlowDebugSessionClientDeleteOptions)) ([DataFlowDebugSessionClientDeleteResponse](#DataFlowDebugSessionClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a data flow debug session. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. request - Data flow debug session definition for deletion options - DataFlowDebugSessionClientDeleteOptions contains the optional parameters for the DataFlowDebugSessionClient.Delete method. Example [¶](#example-DataFlowDebugSessionClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.DeleteDataFlowDebugSessionRequest{ SessionID: to.Ptr("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*DataFlowDebugSessionClient) [NewQueryByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go#L300) [¶](#DataFlowDebugSessionClient.NewQueryByFactoryPager) added in v0.5.0 ``` func (client *[DataFlowDebugSessionClient](#DataFlowDebugSessionClient)) NewQueryByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[DataFlowDebugSessionClientQueryByFactoryOptions](#DataFlowDebugSessionClientQueryByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[DataFlowDebugSessionClientQueryByFactoryResponse](#DataFlowDebugSessionClientQueryByFactoryResponse)] ``` NewQueryByFactoryPager - Query all active data flow debug sessions. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.QueryByFactory method. Example [¶](#example-DataFlowDebugSessionClient.NewQueryByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewQueryByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [DataFlowDebugSessionClientAddDataFlowOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8269) [¶](#DataFlowDebugSessionClientAddDataFlowOptions) added in v0.2.0 ``` type DataFlowDebugSessionClientAddDataFlowOptions struct { } ``` DataFlowDebugSessionClientAddDataFlowOptions contains the optional parameters for the DataFlowDebugSessionClient.AddDataFlow method. #### type [DataFlowDebugSessionClientAddDataFlowResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L18) [¶](#DataFlowDebugSessionClientAddDataFlowResponse) added in v0.2.0 ``` type DataFlowDebugSessionClientAddDataFlowResponse struct { [AddDataFlowToDebugSessionResponse](#AddDataFlowToDebugSessionResponse) } ``` DataFlowDebugSessionClientAddDataFlowResponse contains the response from method DataFlowDebugSessionClient.AddDataFlow. #### type [DataFlowDebugSessionClientBeginCreateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8275) [¶](#DataFlowDebugSessionClientBeginCreateOptions) added in v0.2.0 ``` type DataFlowDebugSessionClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` DataFlowDebugSessionClientBeginCreateOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginCreate method. #### type [DataFlowDebugSessionClientBeginExecuteCommandOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8282) [¶](#DataFlowDebugSessionClientBeginExecuteCommandOptions) added in v0.2.0 ``` type DataFlowDebugSessionClientBeginExecuteCommandOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` DataFlowDebugSessionClientBeginExecuteCommandOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginExecuteCommand method. #### type [DataFlowDebugSessionClientCreateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L23) [¶](#DataFlowDebugSessionClientCreateResponse) added in v0.2.0 ``` type DataFlowDebugSessionClientCreateResponse struct { [CreateDataFlowDebugSessionResponse](#CreateDataFlowDebugSessionResponse) } ``` DataFlowDebugSessionClientCreateResponse contains the response from method DataFlowDebugSessionClient.Create. #### type [DataFlowDebugSessionClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8288) [¶](#DataFlowDebugSessionClientDeleteOptions) added in v0.2.0 ``` type DataFlowDebugSessionClientDeleteOptions struct { } ``` DataFlowDebugSessionClientDeleteOptions contains the optional parameters for the DataFlowDebugSessionClient.Delete method. #### type [DataFlowDebugSessionClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L28) [¶](#DataFlowDebugSessionClientDeleteResponse) added in v0.2.0 ``` type DataFlowDebugSessionClientDeleteResponse struct { } ``` DataFlowDebugSessionClientDeleteResponse contains the response from method DataFlowDebugSessionClient.Delete. #### type [DataFlowDebugSessionClientExecuteCommandResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L33) [¶](#DataFlowDebugSessionClientExecuteCommandResponse) added in v0.2.0 ``` type DataFlowDebugSessionClientExecuteCommandResponse struct { [DataFlowDebugCommandResponse](#DataFlowDebugCommandResponse) } ``` DataFlowDebugSessionClientExecuteCommandResponse contains the response from method DataFlowDebugSessionClient.ExecuteCommand. #### type [DataFlowDebugSessionClientQueryByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8294) [¶](#DataFlowDebugSessionClientQueryByFactoryOptions) added in v0.2.0 ``` type DataFlowDebugSessionClientQueryByFactoryOptions struct { } ``` DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.QueryByFactory method. #### type [DataFlowDebugSessionClientQueryByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L38) [¶](#DataFlowDebugSessionClientQueryByFactoryResponse) added in v0.2.0 ``` type DataFlowDebugSessionClientQueryByFactoryResponse struct { [QueryDataFlowDebugSessionsResponse](#QueryDataFlowDebugSessionsResponse) } ``` DataFlowDebugSessionClientQueryByFactoryResponse contains the response from method DataFlowDebugSessionClient.QueryByFactory. #### type [DataFlowDebugSessionInfo](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8299) [¶](#DataFlowDebugSessionInfo) ``` type DataFlowDebugSessionInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Compute type of the cluster. ComputeType *[string](/builtin#string) `json:"computeType,omitempty"` // Core count of the cluster. CoreCount *[int32](/builtin#int32) `json:"coreCount,omitempty"` // The name of the data flow. DataFlowName *[string](/builtin#string) `json:"dataFlowName,omitempty"` // Attached integration runtime name of data flow debug session. IntegrationRuntimeName *[string](/builtin#string) `json:"integrationRuntimeName,omitempty"` // Last activity time of data flow debug session. LastActivityTime *[string](/builtin#string) `json:"lastActivityTime,omitempty"` // Node count of the cluster. (deprecated property) NodeCount *[int32](/builtin#int32) `json:"nodeCount,omitempty"` // The ID of data flow debug session. SessionID *[string](/builtin#string) `json:"sessionId,omitempty"` // Start time of data flow debug session. StartTime *[string](/builtin#string) `json:"startTime,omitempty"` // Compute type of the cluster. TimeToLiveInMinutes *[int32](/builtin#int32) `json:"timeToLiveInMinutes,omitempty"` } ``` DataFlowDebugSessionInfo - Data flow debug session info. #### func (DataFlowDebugSessionInfo) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14164) [¶](#DataFlowDebugSessionInfo.MarshalJSON) ``` func (d [DataFlowDebugSessionInfo](#DataFlowDebugSessionInfo)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowDebugSessionInfo. #### func (*DataFlowDebugSessionInfo) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14184) [¶](#DataFlowDebugSessionInfo.UnmarshalJSON) ``` func (d *[DataFlowDebugSessionInfo](#DataFlowDebugSessionInfo)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugSessionInfo. #### type [DataFlowFolder](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8332) [¶](#DataFlowFolder) ``` type DataFlowFolder struct { // The name of the folder that this data flow is in. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` DataFlowFolder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. #### func (DataFlowFolder) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14238) [¶](#DataFlowFolder.MarshalJSON) added in v1.3.0 ``` func (d [DataFlowFolder](#DataFlowFolder)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowFolder. #### func (*DataFlowFolder) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14245) [¶](#DataFlowFolder.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowFolder](#DataFlowFolder)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowFolder. #### type [DataFlowListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8338) [¶](#DataFlowListResponse) ``` type DataFlowListResponse struct { // REQUIRED; List of data flows. Value []*[DataFlowResource](#DataFlowResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` DataFlowListResponse - A list of data flow resources. #### func (DataFlowListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14265) [¶](#DataFlowListResponse.MarshalJSON) ``` func (d [DataFlowListResponse](#DataFlowListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowListResponse. #### func (*DataFlowListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14273) [¶](#DataFlowListResponse.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowListResponse](#DataFlowListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowListResponse. #### type [DataFlowReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8347) [¶](#DataFlowReference) ``` type DataFlowReference struct { // REQUIRED; Reference data flow name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Data flow reference type. Type *[DataFlowReferenceType](#DataFlowReferenceType) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Reference data flow parameters from dataset. DatasetParameters interface{} `json:"datasetParameters,omitempty"` // Data flow parameters Parameters map[[string](/builtin#string)]interface{} `json:"parameters,omitempty"` } ``` DataFlowReference - Data flow reference type. #### func (DataFlowReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14296) [¶](#DataFlowReference.MarshalJSON) ``` func (d [DataFlowReference](#DataFlowReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowReference. #### func (*DataFlowReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14311) [¶](#DataFlowReference.UnmarshalJSON) ``` func (d *[DataFlowReference](#DataFlowReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowReference. #### type [DataFlowReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L297) [¶](#DataFlowReferenceType) ``` type DataFlowReferenceType [string](/builtin#string) ``` DataFlowReferenceType - Data flow reference type. ``` const ( DataFlowReferenceTypeDataFlowReference [DataFlowReferenceType](#DataFlowReferenceType) = "DataFlowReference" ) ``` #### func [PossibleDataFlowReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L304) [¶](#PossibleDataFlowReferenceTypeValues) ``` func PossibleDataFlowReferenceTypeValues() [][DataFlowReferenceType](#DataFlowReferenceType) ``` PossibleDataFlowReferenceTypeValues returns the possible values for the DataFlowReferenceType const type. #### type [DataFlowResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8365) [¶](#DataFlowResource) ``` type DataFlowResource struct { // REQUIRED; Data flow properties. Properties [DataFlowClassification](#DataFlowClassification) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` DataFlowResource - Data flow resource type. #### func (DataFlowResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14350) [¶](#DataFlowResource.MarshalJSON) ``` func (d [DataFlowResource](#DataFlowResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowResource. #### func (*DataFlowResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14361) [¶](#DataFlowResource.UnmarshalJSON) ``` func (d *[DataFlowResource](#DataFlowResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowResource. #### type [DataFlowSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8383) [¶](#DataFlowSink) ``` type DataFlowSink struct { // REQUIRED; Transformation name. Name *[string](/builtin#string) `json:"name,omitempty"` // Dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // Transformation description. Description *[string](/builtin#string) `json:"description,omitempty"` // Flowlet Reference Flowlet *[DataFlowReference](#DataFlowReference) `json:"flowlet,omitempty"` // Linked service reference. LinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedService,omitempty"` // Rejected data linked service reference. RejectedDataLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"rejectedDataLinkedService,omitempty"` // Schema linked service reference. SchemaLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"schemaLinkedService,omitempty"` } ``` DataFlowSink - Transformation for data flow sink. #### func (DataFlowSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14393) [¶](#DataFlowSink.MarshalJSON) added in v1.3.0 ``` func (d [DataFlowSink](#DataFlowSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowSink. #### func (*DataFlowSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14406) [¶](#DataFlowSink.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowSink](#DataFlowSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowSink. #### type [DataFlowSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8407) [¶](#DataFlowSource) ``` type DataFlowSource struct { // REQUIRED; Transformation name. Name *[string](/builtin#string) `json:"name,omitempty"` // Dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // Transformation description. Description *[string](/builtin#string) `json:"description,omitempty"` // Flowlet Reference Flowlet *[DataFlowReference](#DataFlowReference) `json:"flowlet,omitempty"` // Linked service reference. LinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedService,omitempty"` // Schema linked service reference. SchemaLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"schemaLinkedService,omitempty"` } ``` DataFlowSource - Transformation for data flow source. #### func (DataFlowSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14444) [¶](#DataFlowSource.MarshalJSON) added in v1.3.0 ``` func (d [DataFlowSource](#DataFlowSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowSource. #### func (*DataFlowSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14456) [¶](#DataFlowSource.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowSource](#DataFlowSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowSource. #### type [DataFlowSourceSetting](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8428) [¶](#DataFlowSourceSetting) ``` type DataFlowSourceSetting struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Defines the row limit of data flow source in debug. RowLimit *[int32](/builtin#int32) `json:"rowLimit,omitempty"` // The data flow source name. SourceName *[string](/builtin#string) `json:"sourceName,omitempty"` } ``` DataFlowSourceSetting - Definition of data flow source setting for debug. #### func (DataFlowSourceSetting) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14491) [¶](#DataFlowSourceSetting.MarshalJSON) ``` func (d [DataFlowSourceSetting](#DataFlowSourceSetting)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowSourceSetting. #### func (*DataFlowSourceSetting) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14504) [¶](#DataFlowSourceSetting.UnmarshalJSON) ``` func (d *[DataFlowSourceSetting](#DataFlowSourceSetting)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowSourceSetting. #### type [DataFlowStagingInfo](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8440) [¶](#DataFlowStagingInfo) ``` type DataFlowStagingInfo struct { // Folder path for staging blob. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` // Staging linked service reference. LinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedService,omitempty"` } ``` DataFlowStagingInfo - Staging info for execute data flow activity. #### func (DataFlowStagingInfo) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14537) [¶](#DataFlowStagingInfo.MarshalJSON) added in v1.3.0 ``` func (d [DataFlowStagingInfo](#DataFlowStagingInfo)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataFlowStagingInfo. #### func (*DataFlowStagingInfo) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14545) [¶](#DataFlowStagingInfo.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataFlowStagingInfo](#DataFlowStagingInfo)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowStagingInfo. #### type [DataFlowsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go#L28) [¶](#DataFlowsClient) ``` type DataFlowsClient struct { // contains filtered or unexported fields } ``` DataFlowsClient contains the methods for the DataFlows group. Don't use this type directly, use NewDataFlowsClient() instead. #### func [NewDataFlowsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go#L38) [¶](#NewDataFlowsClient) ``` func NewDataFlowsClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[DataFlowsClient](#DataFlowsClient), [error](/builtin#error)) ``` NewDataFlowsClient creates a new instance of DataFlowsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*DataFlowsClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go#L67) [¶](#DataFlowsClient.CreateOrUpdate) ``` func (client *[DataFlowsClient](#DataFlowsClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), dataFlowName [string](/builtin#string), dataFlow [DataFlowResource](#DataFlowResource), options *[DataFlowsClientCreateOrUpdateOptions](#DataFlowsClientCreateOrUpdateOptions)) ([DataFlowsClientCreateOrUpdateResponse](#DataFlowsClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a data flow. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. dataFlowName - The data flow name. dataFlow - Data flow resource definition. options - DataFlowsClientCreateOrUpdateOptions contains the optional parameters for the DataFlowsClient.CreateOrUpdate method. Example (DataFlowsCreate) [¶](#example-DataFlowsClient.CreateOrUpdate-DataFlowsCreate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", armdatafactory.DataFlowResource{ Properties: &armdatafactory.MappingDataFlow{ Type: to.Ptr("MappingDataFlow"), Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ Script: to.Ptr("source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"), Sinks: []*armdatafactory.DataFlowSink{ { Name: to.Ptr("USDSink"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("USDOutput"), }, }, { Name: to.Ptr("CADSink"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("CADOutput"), }, }}, Sources: []*armdatafactory.DataFlowSource{ { Name: to.Ptr("USDCurrency"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("CurrencyDatasetUSD"), }, }, { Name: to.Ptr("CADSource"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("CurrencyDatasetCAD"), }, }}, }, }, }, &armdatafactory.DataFlowsClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run Example (DataFlowsUpdate) [¶](#example-DataFlowsClient.CreateOrUpdate-DataFlowsUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", armdatafactory.DataFlowResource{ Properties: &armdatafactory.MappingDataFlow{ Type: to.Ptr("MappingDataFlow"), Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ Script: to.Ptr("source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"), Sinks: []*armdatafactory.DataFlowSink{ { Name: to.Ptr("USDSink"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("USDOutput"), }, }, { Name: to.Ptr("CADSink"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("CADOutput"), }, }}, Sources: []*armdatafactory.DataFlowSource{ { Name: to.Ptr("USDCurrency"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("CurrencyDatasetUSD"), }, }, { Name: to.Ptr("CADSource"), Dataset: &armdatafactory.DatasetReference{ Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), ReferenceName: to.Ptr("CurrencyDatasetCAD"), }, }}, }, }, }, &armdatafactory.DataFlowsClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*DataFlowsClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go#L131) [¶](#DataFlowsClient.Delete) ``` func (client *[DataFlowsClient](#DataFlowsClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), dataFlowName [string](/builtin#string), options *[DataFlowsClientDeleteOptions](#DataFlowsClientDeleteOptions)) ([DataFlowsClientDeleteResponse](#DataFlowsClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a data flow. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. dataFlowName - The data flow name. options - DataFlowsClientDeleteOptions contains the optional parameters for the DataFlowsClient.Delete method. Example [¶](#example-DataFlowsClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*DataFlowsClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go#L183) [¶](#DataFlowsClient.Get) ``` func (client *[DataFlowsClient](#DataFlowsClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), dataFlowName [string](/builtin#string), options *[DataFlowsClientGetOptions](#DataFlowsClientGetOptions)) ([DataFlowsClientGetResponse](#DataFlowsClientGetResponse), [error](/builtin#error)) ``` Get - Gets a data flow. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. dataFlowName - The data flow name. options - DataFlowsClientGetOptions contains the optional parameters for the DataFlowsClient.Get method. Example [¶](#example-DataFlowsClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", &armdatafactory.DataFlowsClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*DataFlowsClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go#L246) [¶](#DataFlowsClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[DataFlowsClient](#DataFlowsClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[DataFlowsClientListByFactoryOptions](#DataFlowsClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[DataFlowsClientListByFactoryResponse](#DataFlowsClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists data flows. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.ListByFactory method. Example [¶](#example-DataFlowsClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [DataFlowsClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8449) [¶](#DataFlowsClientCreateOrUpdateOptions) added in v0.2.0 ``` type DataFlowsClientCreateOrUpdateOptions struct { // ETag of the data flow entity. Should only be specified for update, for which it should match existing entity or can be // * for unconditional update. IfMatch *[string](/builtin#string) } ``` DataFlowsClientCreateOrUpdateOptions contains the optional parameters for the DataFlowsClient.CreateOrUpdate method. #### type [DataFlowsClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L43) [¶](#DataFlowsClientCreateOrUpdateResponse) added in v0.2.0 ``` type DataFlowsClientCreateOrUpdateResponse struct { [DataFlowResource](#DataFlowResource) } ``` DataFlowsClientCreateOrUpdateResponse contains the response from method DataFlowsClient.CreateOrUpdate. #### type [DataFlowsClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8456) [¶](#DataFlowsClientDeleteOptions) added in v0.2.0 ``` type DataFlowsClientDeleteOptions struct { } ``` DataFlowsClientDeleteOptions contains the optional parameters for the DataFlowsClient.Delete method. #### type [DataFlowsClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L48) [¶](#DataFlowsClientDeleteResponse) added in v0.2.0 ``` type DataFlowsClientDeleteResponse struct { } ``` DataFlowsClientDeleteResponse contains the response from method DataFlowsClient.Delete. #### type [DataFlowsClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8461) [¶](#DataFlowsClientGetOptions) added in v0.2.0 ``` type DataFlowsClientGetOptions struct { // ETag of the data flow entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was // provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` DataFlowsClientGetOptions contains the optional parameters for the DataFlowsClient.Get method. #### type [DataFlowsClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L53) [¶](#DataFlowsClientGetResponse) added in v0.2.0 ``` type DataFlowsClientGetResponse struct { [DataFlowResource](#DataFlowResource) } ``` DataFlowsClientGetResponse contains the response from method DataFlowsClient.Get. #### type [DataFlowsClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8468) [¶](#DataFlowsClientListByFactoryOptions) added in v0.2.0 ``` type DataFlowsClientListByFactoryOptions struct { } ``` DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.ListByFactory method. #### type [DataFlowsClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L58) [¶](#DataFlowsClientListByFactoryResponse) added in v0.2.0 ``` type DataFlowsClientListByFactoryResponse struct { [DataFlowListResponse](#DataFlowListResponse) } ``` DataFlowsClientListByFactoryResponse contains the response from method DataFlowsClient.ListByFactory. #### type [DataLakeAnalyticsUSQLActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8473) [¶](#DataLakeAnalyticsUSQLActivity) ``` type DataLakeAnalyticsUSQLActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Data Lake Analytics U-SQL activity properties. TypeProperties *[DataLakeAnalyticsUSQLActivityTypeProperties](#DataLakeAnalyticsUSQLActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` DataLakeAnalyticsUSQLActivity - Data Lake Analytics U-SQL activity. #### func (*DataLakeAnalyticsUSQLActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8503) [¶](#DataLakeAnalyticsUSQLActivity.GetActivity) added in v0.2.0 ``` func (d *[DataLakeAnalyticsUSQLActivity](#DataLakeAnalyticsUSQLActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type DataLakeAnalyticsUSQLActivity. #### func (*DataLakeAnalyticsUSQLActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8515) [¶](#DataLakeAnalyticsUSQLActivity.GetExecutionActivity) added in v0.2.0 ``` func (d *[DataLakeAnalyticsUSQLActivity](#DataLakeAnalyticsUSQLActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type DataLakeAnalyticsUSQLActivity. #### func (DataLakeAnalyticsUSQLActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14568) [¶](#DataLakeAnalyticsUSQLActivity.MarshalJSON) ``` func (d [DataLakeAnalyticsUSQLActivity](#DataLakeAnalyticsUSQLActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataLakeAnalyticsUSQLActivity. #### func (*DataLakeAnalyticsUSQLActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14587) [¶](#DataLakeAnalyticsUSQLActivity.UnmarshalJSON) ``` func (d *[DataLakeAnalyticsUSQLActivity](#DataLakeAnalyticsUSQLActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataLakeAnalyticsUSQLActivity. #### type [DataLakeAnalyticsUSQLActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8529) [¶](#DataLakeAnalyticsUSQLActivityTypeProperties) ``` type DataLakeAnalyticsUSQLActivityTypeProperties struct { // REQUIRED; Script linked service reference. ScriptLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"scriptLinkedService,omitempty"` // REQUIRED; Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string). ScriptPath interface{} `json:"scriptPath,omitempty"` // Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with // resultType string). CompilationMode interface{} `json:"compilationMode,omitempty"` // The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType // integer), minimum: 1. DegreeOfParallelism interface{} `json:"degreeOfParallelism,omitempty"` // Parameters for U-SQL job request. Parameters map[[string](/builtin#string)]interface{} `json:"parameters,omitempty"` // Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the // priority. Default value is 1000. Type: integer (or Expression with resultType // integer), minimum: 1. Priority interface{} `json:"priority,omitempty"` // Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). RuntimeVersion interface{} `json:"runtimeVersion,omitempty"` } ``` DataLakeAnalyticsUSQLActivityTypeProperties - DataLakeAnalyticsU-SQL activity properties. #### func (DataLakeAnalyticsUSQLActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14638) [¶](#DataLakeAnalyticsUSQLActivityTypeProperties.MarshalJSON) ``` func (d [DataLakeAnalyticsUSQLActivityTypeProperties](#DataLakeAnalyticsUSQLActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataLakeAnalyticsUSQLActivityTypeProperties. #### func (*DataLakeAnalyticsUSQLActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14651) [¶](#DataLakeAnalyticsUSQLActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DataLakeAnalyticsUSQLActivityTypeProperties](#DataLakeAnalyticsUSQLActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataLakeAnalyticsUSQLActivityTypeProperties. #### type [DatabricksNotebookActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8557) [¶](#DatabricksNotebookActivity) ``` type DatabricksNotebookActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Databricks Notebook activity properties. TypeProperties *[DatabricksNotebookActivityTypeProperties](#DatabricksNotebookActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` DatabricksNotebookActivity - DatabricksNotebook activity. #### func (*DatabricksNotebookActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8587) [¶](#DatabricksNotebookActivity.GetActivity) added in v0.2.0 ``` func (d *[DatabricksNotebookActivity](#DatabricksNotebookActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type DatabricksNotebookActivity. #### func (*DatabricksNotebookActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8599) [¶](#DatabricksNotebookActivity.GetExecutionActivity) added in v0.2.0 ``` func (d *[DatabricksNotebookActivity](#DatabricksNotebookActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type DatabricksNotebookActivity. #### func (DatabricksNotebookActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14689) [¶](#DatabricksNotebookActivity.MarshalJSON) ``` func (d [DatabricksNotebookActivity](#DatabricksNotebookActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatabricksNotebookActivity. #### func (*DatabricksNotebookActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14708) [¶](#DatabricksNotebookActivity.UnmarshalJSON) ``` func (d *[DatabricksNotebookActivity](#DatabricksNotebookActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksNotebookActivity. #### type [DatabricksNotebookActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8613) [¶](#DatabricksNotebookActivityTypeProperties) ``` type DatabricksNotebookActivityTypeProperties struct { // REQUIRED; The absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: // string (or Expression with resultType string). NotebookPath interface{} `json:"notebookPath,omitempty"` // Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default // value from the notebook will be used. BaseParameters map[[string](/builtin#string)]interface{} `json:"baseParameters,omitempty"` // A list of libraries to be installed on the cluster that will execute the job. Libraries []map[[string](/builtin#string)]interface{} `json:"libraries,omitempty"` } ``` DatabricksNotebookActivityTypeProperties - Databricks Notebook activity properties. #### func (DatabricksNotebookActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14759) [¶](#DatabricksNotebookActivityTypeProperties.MarshalJSON) ``` func (d [DatabricksNotebookActivityTypeProperties](#DatabricksNotebookActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatabricksNotebookActivityTypeProperties. #### func (*DatabricksNotebookActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14768) [¶](#DatabricksNotebookActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DatabricksNotebookActivityTypeProperties](#DatabricksNotebookActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksNotebookActivityTypeProperties. #### type [DatabricksSparkJarActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8627) [¶](#DatabricksSparkJarActivity) ``` type DatabricksSparkJarActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Databricks SparkJar activity properties. TypeProperties *[DatabricksSparkJarActivityTypeProperties](#DatabricksSparkJarActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` DatabricksSparkJarActivity - DatabricksSparkJar activity. #### func (*DatabricksSparkJarActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8657) [¶](#DatabricksSparkJarActivity.GetActivity) added in v0.2.0 ``` func (d *[DatabricksSparkJarActivity](#DatabricksSparkJarActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type DatabricksSparkJarActivity. #### func (*DatabricksSparkJarActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8669) [¶](#DatabricksSparkJarActivity.GetExecutionActivity) added in v0.2.0 ``` func (d *[DatabricksSparkJarActivity](#DatabricksSparkJarActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type DatabricksSparkJarActivity. #### func (DatabricksSparkJarActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14794) [¶](#DatabricksSparkJarActivity.MarshalJSON) ``` func (d [DatabricksSparkJarActivity](#DatabricksSparkJarActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatabricksSparkJarActivity. #### func (*DatabricksSparkJarActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14813) [¶](#DatabricksSparkJarActivity.UnmarshalJSON) ``` func (d *[DatabricksSparkJarActivity](#DatabricksSparkJarActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksSparkJarActivity. #### type [DatabricksSparkJarActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8683) [¶](#DatabricksSparkJarActivityTypeProperties) ``` type DatabricksSparkJarActivityTypeProperties struct { // REQUIRED; The full name of the class containing the main method to be executed. This class must be contained in a JAR provided // as a library. Type: string (or Expression with resultType string). MainClassName interface{} `json:"mainClassName,omitempty"` // A list of libraries to be installed on the cluster that will execute the job. Libraries []map[[string](/builtin#string)]interface{} `json:"libraries,omitempty"` // Parameters that will be passed to the main method. Parameters []interface{} `json:"parameters,omitempty"` } ``` DatabricksSparkJarActivityTypeProperties - Databricks SparkJar activity properties. #### func (DatabricksSparkJarActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14864) [¶](#DatabricksSparkJarActivityTypeProperties.MarshalJSON) ``` func (d [DatabricksSparkJarActivityTypeProperties](#DatabricksSparkJarActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatabricksSparkJarActivityTypeProperties. #### func (*DatabricksSparkJarActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14873) [¶](#DatabricksSparkJarActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DatabricksSparkJarActivityTypeProperties](#DatabricksSparkJarActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksSparkJarActivityTypeProperties. #### type [DatabricksSparkPythonActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8696) [¶](#DatabricksSparkPythonActivity) ``` type DatabricksSparkPythonActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Databricks SparkPython activity properties. TypeProperties *[DatabricksSparkPythonActivityTypeProperties](#DatabricksSparkPythonActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` DatabricksSparkPythonActivity - DatabricksSparkPython activity. #### func (*DatabricksSparkPythonActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8726) [¶](#DatabricksSparkPythonActivity.GetActivity) added in v0.2.0 ``` func (d *[DatabricksSparkPythonActivity](#DatabricksSparkPythonActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type DatabricksSparkPythonActivity. #### func (*DatabricksSparkPythonActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8738) [¶](#DatabricksSparkPythonActivity.GetExecutionActivity) added in v0.2.0 ``` func (d *[DatabricksSparkPythonActivity](#DatabricksSparkPythonActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type DatabricksSparkPythonActivity. #### func (DatabricksSparkPythonActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14899) [¶](#DatabricksSparkPythonActivity.MarshalJSON) ``` func (d [DatabricksSparkPythonActivity](#DatabricksSparkPythonActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatabricksSparkPythonActivity. #### func (*DatabricksSparkPythonActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14918) [¶](#DatabricksSparkPythonActivity.UnmarshalJSON) ``` func (d *[DatabricksSparkPythonActivity](#DatabricksSparkPythonActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksSparkPythonActivity. #### type [DatabricksSparkPythonActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8752) [¶](#DatabricksSparkPythonActivityTypeProperties) ``` type DatabricksSparkPythonActivityTypeProperties struct { // REQUIRED; The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType // string). PythonFile interface{} `json:"pythonFile,omitempty"` // A list of libraries to be installed on the cluster that will execute the job. Libraries []map[[string](/builtin#string)]interface{} `json:"libraries,omitempty"` // Command line parameters that will be passed to the Python file. Parameters []interface{} `json:"parameters,omitempty"` } ``` DatabricksSparkPythonActivityTypeProperties - Databricks SparkPython activity properties. #### func (DatabricksSparkPythonActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14969) [¶](#DatabricksSparkPythonActivityTypeProperties.MarshalJSON) ``` func (d [DatabricksSparkPythonActivityTypeProperties](#DatabricksSparkPythonActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatabricksSparkPythonActivityTypeProperties. #### func (*DatabricksSparkPythonActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L14978) [¶](#DatabricksSparkPythonActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DatabricksSparkPythonActivityTypeProperties](#DatabricksSparkPythonActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksSparkPythonActivityTypeProperties. #### type [Dataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8793) [¶](#Dataset) ``` type Dataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` Dataset - The Azure Data Factory nested object which identifies data within different data stores, such as tables, files, folders, and documents. #### func (*Dataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8824) [¶](#Dataset.GetDataset) ``` func (d *[Dataset](#Dataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type Dataset. #### func (Dataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15004) [¶](#Dataset.MarshalJSON) added in v0.2.0 ``` func (d [Dataset](#Dataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Dataset. #### func (*Dataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15023) [¶](#Dataset.UnmarshalJSON) ``` func (d *[Dataset](#Dataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Dataset. #### type [DatasetClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8786) [¶](#DatasetClassification) ``` type DatasetClassification interface { // GetDataset returns the Dataset content of the underlying type. GetDataset() *[Dataset](#Dataset) } ``` DatasetClassification provides polymorphic access to related types. Call the interface's GetDataset() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AmazonMWSObjectDataset, *AmazonRdsForOracleTableDataset, *AmazonRdsForSQLServerTableDataset, *AmazonRedshiftTableDataset, - *AmazonS3Dataset, *AvroDataset, *AzureBlobDataset, *AzureBlobFSDataset, *AzureDataExplorerTableDataset, *AzureDataLakeStoreDataset, - *AzureDatabricksDeltaLakeDataset, *AzureMariaDBTableDataset, *AzureMySQLTableDataset, *AzurePostgreSQLTableDataset, *AzureSQLDWTableDataset, - *AzureSQLMITableDataset, *AzureSQLTableDataset, *AzureSearchIndexDataset, *AzureTableDataset, *BinaryDataset, *CassandraTableDataset, - *CommonDataServiceForAppsEntityDataset, *ConcurObjectDataset, *CosmosDbMongoDbAPICollectionDataset, *CosmosDbSQLAPICollectionDataset, - *CouchbaseTableDataset, *CustomDataset, *Dataset, *Db2TableDataset, *DelimitedTextDataset, *DocumentDbCollectionDataset, - *DrillTableDataset, *DynamicsAXResourceDataset, *DynamicsCrmEntityDataset, *DynamicsEntityDataset, *EloquaObjectDataset, - *ExcelDataset, *FileShareDataset, *GoogleAdWordsObjectDataset, *GoogleBigQueryObjectDataset, *GreenplumTableDataset, - *HBaseObjectDataset, *HTTPDataset, *HiveObjectDataset, *HubspotObjectDataset, *ImpalaObjectDataset, *InformixTableDataset, - *JSONDataset, *JiraObjectDataset, *MagentoObjectDataset, *MariaDBTableDataset, *MarketoObjectDataset, *MicrosoftAccessTableDataset, - *MongoDbAtlasCollectionDataset, *MongoDbCollectionDataset, *MongoDbV2CollectionDataset, *MySQLTableDataset, *NetezzaTableDataset, - *ODataResourceDataset, *OdbcTableDataset, *Office365Dataset, *OracleServiceCloudObjectDataset, *OracleTableDataset, *OrcDataset, - *ParquetDataset, *PaypalObjectDataset, *PhoenixObjectDataset, *PostgreSQLTableDataset, *PrestoObjectDataset, *QuickBooksObjectDataset, - *RelationalTableDataset, *ResponsysObjectDataset, *RestResourceDataset, *SQLServerTableDataset, *SalesforceMarketingCloudObjectDataset, - *SalesforceObjectDataset, *SalesforceServiceCloudObjectDataset, *SapBwCubeDataset, *SapCloudForCustomerResourceDataset, - *SapEccResourceDataset, *SapHanaTableDataset, *SapOdpResourceDataset, *SapOpenHubTableDataset, *SapTableResourceDataset, - *ServiceNowObjectDataset, *SharePointOnlineListResourceDataset, *ShopifyObjectDataset, *SnowflakeDataset, *SparkObjectDataset, - *SquareObjectDataset, *SybaseTableDataset, *TeradataTableDataset, *VerticaTableDataset, *WebTableDataset, *XMLDataset, - *XeroObjectDataset, *ZohoObjectDataset #### type [DatasetCompression](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8827) [¶](#DatasetCompression) ``` type DatasetCompression struct { // REQUIRED; Type of dataset compression. Type: string (or Expression with resultType string). Type interface{} `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The dataset compression level. Type: string (or Expression with resultType string). Level interface{} `json:"level,omitempty"` } ``` DatasetCompression - The compression method used on a dataset. #### func (DatasetCompression) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15074) [¶](#DatasetCompression.MarshalJSON) ``` func (d [DatasetCompression](#DatasetCompression)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetCompression. #### func (*DatasetCompression) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15087) [¶](#DatasetCompression.UnmarshalJSON) ``` func (d *[DatasetCompression](#DatasetCompression)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetCompression. #### type [DatasetCompressionLevel](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L311) [¶](#DatasetCompressionLevel) ``` type DatasetCompressionLevel [string](/builtin#string) ``` DatasetCompressionLevel - All available compression levels. ``` const ( DatasetCompressionLevelFastest [DatasetCompressionLevel](#DatasetCompressionLevel) = "Fastest" DatasetCompressionLevelOptimal [DatasetCompressionLevel](#DatasetCompressionLevel) = "Optimal" ) ``` #### func [PossibleDatasetCompressionLevelValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L319) [¶](#PossibleDatasetCompressionLevelValues) ``` func PossibleDatasetCompressionLevelValues() [][DatasetCompressionLevel](#DatasetCompressionLevel) ``` PossibleDatasetCompressionLevelValues returns the possible values for the DatasetCompressionLevel const type. #### type [DatasetDataElement](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8839) [¶](#DatasetDataElement) ``` type DatasetDataElement struct { // Name of the column. Type: string (or Expression with resultType string). Name interface{} `json:"name,omitempty"` // Type of the column. Type: string (or Expression with resultType string). Type interface{} `json:"type,omitempty"` } ``` DatasetDataElement - Columns that define the structure of the dataset. #### func (DatasetDataElement) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15120) [¶](#DatasetDataElement.MarshalJSON) added in v1.3.0 ``` func (d [DatasetDataElement](#DatasetDataElement)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetDataElement. #### func (*DatasetDataElement) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15128) [¶](#DatasetDataElement.UnmarshalJSON) added in v1.3.0 ``` func (d *[DatasetDataElement](#DatasetDataElement)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetDataElement. #### type [DatasetDebugResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8848) [¶](#DatasetDebugResource) ``` type DatasetDebugResource struct { // REQUIRED; Dataset properties. Properties [DatasetClassification](#DatasetClassification) `json:"properties,omitempty"` // The resource name. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` DatasetDebugResource - Dataset debug resource. #### func (DatasetDebugResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15151) [¶](#DatasetDebugResource.MarshalJSON) ``` func (d [DatasetDebugResource](#DatasetDebugResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetDebugResource. #### func (*DatasetDebugResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15159) [¶](#DatasetDebugResource.UnmarshalJSON) ``` func (d *[DatasetDebugResource](#DatasetDebugResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetDebugResource. #### type [DatasetFolder](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8857) [¶](#DatasetFolder) ``` type DatasetFolder struct { // The name of the folder that this Dataset is in. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` DatasetFolder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. #### func (DatasetFolder) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15182) [¶](#DatasetFolder.MarshalJSON) added in v1.3.0 ``` func (d [DatasetFolder](#DatasetFolder)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetFolder. #### func (*DatasetFolder) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15189) [¶](#DatasetFolder.UnmarshalJSON) added in v1.3.0 ``` func (d *[DatasetFolder](#DatasetFolder)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetFolder. #### type [DatasetListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8863) [¶](#DatasetListResponse) ``` type DatasetListResponse struct { // REQUIRED; List of datasets. Value []*[DatasetResource](#DatasetResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` DatasetListResponse - A list of dataset resources. #### func (DatasetListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15209) [¶](#DatasetListResponse.MarshalJSON) ``` func (d [DatasetListResponse](#DatasetListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetListResponse. #### func (*DatasetListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15217) [¶](#DatasetListResponse.UnmarshalJSON) added in v1.3.0 ``` func (d *[DatasetListResponse](#DatasetListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetListResponse. #### type [DatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8883) [¶](#DatasetLocation) ``` type DatasetLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` DatasetLocation - Dataset location. #### func (*DatasetLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8898) [¶](#DatasetLocation.GetDatasetLocation) ``` func (d *[DatasetLocation](#DatasetLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type DatasetLocation. #### func (DatasetLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15240) [¶](#DatasetLocation.MarshalJSON) added in v0.2.0 ``` func (d [DatasetLocation](#DatasetLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetLocation. #### func (*DatasetLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15254) [¶](#DatasetLocation.UnmarshalJSON) ``` func (d *[DatasetLocation](#DatasetLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetLocation. #### type [DatasetLocationClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8877) [¶](#DatasetLocationClassification) ``` type DatasetLocationClassification interface { // GetDatasetLocation returns the DatasetLocation content of the underlying type. GetDatasetLocation() *[DatasetLocation](#DatasetLocation) } ``` DatasetLocationClassification provides polymorphic access to related types. Call the interface's GetDatasetLocation() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AmazonS3CompatibleLocation, *AmazonS3Location, *AzureBlobFSLocation, *AzureBlobStorageLocation, *AzureDataLakeStoreLocation, - *AzureFileStorageLocation, *DatasetLocation, *FileServerLocation, *FtpServerLocation, *GoogleCloudStorageLocation, *HTTPServerLocation, - *HdfsLocation, *OracleCloudStorageLocation, *SftpLocation #### type [DatasetReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8901) [¶](#DatasetReference) ``` type DatasetReference struct { // REQUIRED; Reference dataset name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Dataset reference type. Type *[DatasetReferenceType](#DatasetReferenceType) `json:"type,omitempty"` // Arguments for dataset. Parameters map[[string](/builtin#string)]interface{} `json:"parameters,omitempty"` } ``` DatasetReference - Dataset reference type. #### func (DatasetReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15290) [¶](#DatasetReference.MarshalJSON) ``` func (d [DatasetReference](#DatasetReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetReference. #### func (*DatasetReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15299) [¶](#DatasetReference.UnmarshalJSON) added in v1.3.0 ``` func (d *[DatasetReference](#DatasetReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetReference. #### type [DatasetReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L327) [¶](#DatasetReferenceType) ``` type DatasetReferenceType [string](/builtin#string) ``` DatasetReferenceType - Dataset reference type. ``` const ( DatasetReferenceTypeDatasetReference [DatasetReferenceType](#DatasetReferenceType) = "DatasetReference" ) ``` #### func [PossibleDatasetReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L334) [¶](#PossibleDatasetReferenceTypeValues) ``` func PossibleDatasetReferenceTypeValues() [][DatasetReferenceType](#DatasetReferenceType) ``` PossibleDatasetReferenceTypeValues returns the possible values for the DatasetReferenceType const type. #### type [DatasetResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8913) [¶](#DatasetResource) ``` type DatasetResource struct { // REQUIRED; Dataset properties. Properties [DatasetClassification](#DatasetClassification) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` DatasetResource - Dataset resource type. #### func (DatasetResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15325) [¶](#DatasetResource.MarshalJSON) ``` func (d [DatasetResource](#DatasetResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetResource. #### func (*DatasetResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15336) [¶](#DatasetResource.UnmarshalJSON) ``` func (d *[DatasetResource](#DatasetResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetResource. #### type [DatasetSchemaDataElement](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8931) [¶](#DatasetSchemaDataElement) ``` type DatasetSchemaDataElement struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Name of the schema column. Type: string (or Expression with resultType string). Name interface{} `json:"name,omitempty"` // Type of the schema column. Type: string (or Expression with resultType string). Type interface{} `json:"type,omitempty"` } ``` DatasetSchemaDataElement - Columns that define the physical type schema of the dataset. #### func (DatasetSchemaDataElement) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15368) [¶](#DatasetSchemaDataElement.MarshalJSON) ``` func (d [DatasetSchemaDataElement](#DatasetSchemaDataElement)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetSchemaDataElement. #### func (*DatasetSchemaDataElement) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15381) [¶](#DatasetSchemaDataElement.UnmarshalJSON) ``` func (d *[DatasetSchemaDataElement](#DatasetSchemaDataElement)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetSchemaDataElement. #### type [DatasetStorageFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8952) [¶](#DatasetStorageFormat) ``` type DatasetStorageFormat struct { // REQUIRED; Type of dataset storage format. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Deserializer. Type: string (or Expression with resultType string). Deserializer interface{} `json:"deserializer,omitempty"` // Serializer. Type: string (or Expression with resultType string). Serializer interface{} `json:"serializer,omitempty"` } ``` DatasetStorageFormat - The format definition of a storage. #### func (*DatasetStorageFormat) [GetDatasetStorageFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8967) [¶](#DatasetStorageFormat.GetDatasetStorageFormat) ``` func (d *[DatasetStorageFormat](#DatasetStorageFormat)) GetDatasetStorageFormat() *[DatasetStorageFormat](#DatasetStorageFormat) ``` GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type DatasetStorageFormat. #### func (DatasetStorageFormat) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15414) [¶](#DatasetStorageFormat.MarshalJSON) added in v0.2.0 ``` func (d [DatasetStorageFormat](#DatasetStorageFormat)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DatasetStorageFormat. #### func (*DatasetStorageFormat) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15428) [¶](#DatasetStorageFormat.UnmarshalJSON) ``` func (d *[DatasetStorageFormat](#DatasetStorageFormat)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DatasetStorageFormat. #### type [DatasetStorageFormatClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8946) [¶](#DatasetStorageFormatClassification) ``` type DatasetStorageFormatClassification interface { // GetDatasetStorageFormat returns the DatasetStorageFormat content of the underlying type. GetDatasetStorageFormat() *[DatasetStorageFormat](#DatasetStorageFormat) } ``` DatasetStorageFormatClassification provides polymorphic access to related types. Call the interface's GetDatasetStorageFormat() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AvroFormat, *DatasetStorageFormat, *JSONFormat, *OrcFormat, *ParquetFormat, *TextFormat #### type [DatasetsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go#L28) [¶](#DatasetsClient) ``` type DatasetsClient struct { // contains filtered or unexported fields } ``` DatasetsClient contains the methods for the Datasets group. Don't use this type directly, use NewDatasetsClient() instead. #### func [NewDatasetsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go#L38) [¶](#NewDatasetsClient) ``` func NewDatasetsClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[DatasetsClient](#DatasetsClient), [error](/builtin#error)) ``` NewDatasetsClient creates a new instance of DatasetsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*DatasetsClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go#L66) [¶](#DatasetsClient.CreateOrUpdate) ``` func (client *[DatasetsClient](#DatasetsClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), datasetName [string](/builtin#string), dataset [DatasetResource](#DatasetResource), options *[DatasetsClientCreateOrUpdateOptions](#DatasetsClientCreateOrUpdateOptions)) ([DatasetsClientCreateOrUpdateResponse](#DatasetsClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a dataset. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. datasetName - The dataset name. dataset - Dataset resource definition. options - DatasetsClientCreateOrUpdateOptions contains the optional parameters for the DatasetsClient.CreateOrUpdate method. Example (DatasetsCreate) [¶](#example-DatasetsClient.CreateOrUpdate-DatasetsCreate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataset", armdatafactory.DatasetResource{ Properties: &armdatafactory.AzureBlobDataset{ Type: to.Ptr("AzureBlob"), LinkedServiceName: &armdatafactory.LinkedServiceReference{ Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), ReferenceName: to.Ptr("exampleLinkedService"), }, Parameters: map[string]*armdatafactory.ParameterSpecification{ "MyFileName": { Type: to.Ptr(armdatafactory.ParameterTypeString), }, "MyFolderPath": { Type: to.Ptr(armdatafactory.ParameterTypeString), }, }, TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ Format: &armdatafactory.TextFormat{ Type: to.Ptr("TextFormat"), }, FileName: map[string]interface{}{ "type": "Expression", "value": "@dataset().MyFileName", }, FolderPath: map[string]interface{}{ "type": "Expression", "value": "@dataset().MyFolderPath", }, }, }, }, &armdatafactory.DatasetsClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run Example (DatasetsUpdate) [¶](#example-DatasetsClient.CreateOrUpdate-DatasetsUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataset", armdatafactory.DatasetResource{ Properties: &armdatafactory.AzureBlobDataset{ Type: to.Ptr("AzureBlob"), Description: to.Ptr("Example description"), LinkedServiceName: &armdatafactory.LinkedServiceReference{ Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), ReferenceName: to.Ptr("exampleLinkedService"), }, Parameters: map[string]*armdatafactory.ParameterSpecification{ "MyFileName": { Type: to.Ptr(armdatafactory.ParameterTypeString), }, "MyFolderPath": { Type: to.Ptr(armdatafactory.ParameterTypeString), }, }, TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ Format: &armdatafactory.TextFormat{ Type: to.Ptr("TextFormat"), }, FileName: map[string]interface{}{ "type": "Expression", "value": "@dataset().MyFileName", }, FolderPath: map[string]interface{}{ "type": "Expression", "value": "@dataset().MyFolderPath", }, }, }, }, &armdatafactory.DatasetsClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*DatasetsClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go#L130) [¶](#DatasetsClient.Delete) ``` func (client *[DatasetsClient](#DatasetsClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), datasetName [string](/builtin#string), options *[DatasetsClientDeleteOptions](#DatasetsClientDeleteOptions)) ([DatasetsClientDeleteResponse](#DatasetsClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a dataset. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. datasetName - The dataset name. options - DatasetsClientDeleteOptions contains the optional parameters for the DatasetsClient.Delete method. Example [¶](#example-DatasetsClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataset", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*DatasetsClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go#L182) [¶](#DatasetsClient.Get) ``` func (client *[DatasetsClient](#DatasetsClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), datasetName [string](/builtin#string), options *[DatasetsClientGetOptions](#DatasetsClientGetOptions)) ([DatasetsClientGetResponse](#DatasetsClientGetResponse), [error](/builtin#error)) ``` Get - Gets a dataset. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. datasetName - The dataset name. options - DatasetsClientGetOptions contains the optional parameters for the DatasetsClient.Get method. Example [¶](#example-DatasetsClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataset", &armdatafactory.DatasetsClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*DatasetsClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go#L245) [¶](#DatasetsClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[DatasetsClient](#DatasetsClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[DatasetsClientListByFactoryOptions](#DatasetsClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[DatasetsClientListByFactoryResponse](#DatasetsClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists datasets. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.ListByFactory method. Example [¶](#example-DatasetsClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [DatasetsClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8970) [¶](#DatasetsClientCreateOrUpdateOptions) added in v0.2.0 ``` type DatasetsClientCreateOrUpdateOptions struct { // ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * // for unconditional update. IfMatch *[string](/builtin#string) } ``` DatasetsClientCreateOrUpdateOptions contains the optional parameters for the DatasetsClient.CreateOrUpdate method. #### type [DatasetsClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L63) [¶](#DatasetsClientCreateOrUpdateResponse) added in v0.2.0 ``` type DatasetsClientCreateOrUpdateResponse struct { [DatasetResource](#DatasetResource) } ``` DatasetsClientCreateOrUpdateResponse contains the response from method DatasetsClient.CreateOrUpdate. #### type [DatasetsClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8977) [¶](#DatasetsClientDeleteOptions) added in v0.2.0 ``` type DatasetsClientDeleteOptions struct { } ``` DatasetsClientDeleteOptions contains the optional parameters for the DatasetsClient.Delete method. #### type [DatasetsClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L68) [¶](#DatasetsClientDeleteResponse) added in v0.2.0 ``` type DatasetsClientDeleteResponse struct { } ``` DatasetsClientDeleteResponse contains the response from method DatasetsClient.Delete. #### type [DatasetsClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8982) [¶](#DatasetsClientGetOptions) added in v0.2.0 ``` type DatasetsClientGetOptions struct { // ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was // provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` DatasetsClientGetOptions contains the optional parameters for the DatasetsClient.Get method. #### type [DatasetsClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L73) [¶](#DatasetsClientGetResponse) added in v0.2.0 ``` type DatasetsClientGetResponse struct { [DatasetResource](#DatasetResource) } ``` DatasetsClientGetResponse contains the response from method DatasetsClient.Get. #### type [DatasetsClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8989) [¶](#DatasetsClientListByFactoryOptions) added in v0.2.0 ``` type DatasetsClientListByFactoryOptions struct { } ``` DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.ListByFactory method. #### type [DatasetsClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L78) [¶](#DatasetsClientListByFactoryResponse) added in v0.2.0 ``` type DatasetsClientListByFactoryResponse struct { [DatasetListResponse](#DatasetListResponse) } ``` DatasetsClientListByFactoryResponse contains the response from method DatasetsClient.ListByFactory. #### type [DataworldLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L8994) [¶](#DataworldLinkedService) added in v0.5.0 ``` type DataworldLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Dataworld linked service properties. TypeProperties *[DataworldLinkedServiceTypeProperties](#DataworldLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` DataworldLinkedService - Linked service for Dataworld. #### func (*DataworldLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9018) [¶](#DataworldLinkedService.GetLinkedService) added in v0.5.0 ``` func (d *[DataworldLinkedService](#DataworldLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type DataworldLinkedService. #### func (DataworldLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15464) [¶](#DataworldLinkedService.MarshalJSON) added in v0.5.0 ``` func (d [DataworldLinkedService](#DataworldLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataworldLinkedService. #### func (*DataworldLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15481) [¶](#DataworldLinkedService.UnmarshalJSON) added in v0.5.0 ``` func (d *[DataworldLinkedService](#DataworldLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataworldLinkedService. #### type [DataworldLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9030) [¶](#DataworldLinkedServiceTypeProperties) added in v0.5.0 ``` type DataworldLinkedServiceTypeProperties struct { // REQUIRED; The api token for the Dataworld source. APIToken [SecretBaseClassification](#SecretBaseClassification) `json:"apiToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` DataworldLinkedServiceTypeProperties - Dataworld linked service type properties. #### func (DataworldLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15526) [¶](#DataworldLinkedServiceTypeProperties.MarshalJSON) added in v0.5.0 ``` func (d [DataworldLinkedServiceTypeProperties](#DataworldLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DataworldLinkedServiceTypeProperties. #### func (*DataworldLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15534) [¶](#DataworldLinkedServiceTypeProperties.UnmarshalJSON) added in v0.5.0 ``` func (d *[DataworldLinkedServiceTypeProperties](#DataworldLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DataworldLinkedServiceTypeProperties. #### type [DayOfWeek](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L341) [¶](#DayOfWeek) ``` type DayOfWeek [string](/builtin#string) ``` DayOfWeek - The days of the week. ``` const ( DayOfWeekSunday [DayOfWeek](#DayOfWeek) = "Sunday" DayOfWeekMonday [DayOfWeek](#DayOfWeek) = "Monday" DayOfWeekTuesday [DayOfWeek](#DayOfWeek) = "Tuesday" DayOfWeekWednesday [DayOfWeek](#DayOfWeek) = "Wednesday" DayOfWeekThursday [DayOfWeek](#DayOfWeek) = "Thursday" DayOfWeekFriday [DayOfWeek](#DayOfWeek) = "Friday" DayOfWeekSaturday [DayOfWeek](#DayOfWeek) = "Saturday" ) ``` #### func [PossibleDayOfWeekValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L354) [¶](#PossibleDayOfWeekValues) ``` func PossibleDayOfWeekValues() [][DayOfWeek](#DayOfWeek) ``` PossibleDayOfWeekValues returns the possible values for the DayOfWeek const type. #### type [DaysOfWeek](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L366) [¶](#DaysOfWeek) ``` type DaysOfWeek [string](/builtin#string) ``` ``` const ( DaysOfWeekSunday [DaysOfWeek](#DaysOfWeek) = "Sunday" DaysOfWeekMonday [DaysOfWeek](#DaysOfWeek) = "Monday" DaysOfWeekTuesday [DaysOfWeek](#DaysOfWeek) = "Tuesday" DaysOfWeekWednesday [DaysOfWeek](#DaysOfWeek) = "Wednesday" DaysOfWeekThursday [DaysOfWeek](#DaysOfWeek) = "Thursday" DaysOfWeekFriday [DaysOfWeek](#DaysOfWeek) = "Friday" DaysOfWeekSaturday [DaysOfWeek](#DaysOfWeek) = "Saturday" ) ``` #### func [PossibleDaysOfWeekValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L379) [¶](#PossibleDaysOfWeekValues) ``` func PossibleDaysOfWeekValues() [][DaysOfWeek](#DaysOfWeek) ``` PossibleDaysOfWeekValues returns the possible values for the DaysOfWeek const type. #### type [Db2AuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L392) [¶](#Db2AuthenticationType) ``` type Db2AuthenticationType [string](/builtin#string) ``` Db2AuthenticationType - AuthenticationType to be used for connection. It is mutually exclusive with connectionString property. ``` const ( Db2AuthenticationTypeBasic [Db2AuthenticationType](#Db2AuthenticationType) = "Basic" ) ``` #### func [PossibleDb2AuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L399) [¶](#PossibleDb2AuthenticationTypeValues) ``` func PossibleDb2AuthenticationTypeValues() [][Db2AuthenticationType](#Db2AuthenticationType) ``` PossibleDb2AuthenticationTypeValues returns the possible values for the Db2AuthenticationType const type. #### type [Db2LinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9040) [¶](#Db2LinkedService) ``` type Db2LinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; DB2 linked service properties. TypeProperties *[Db2LinkedServiceTypeProperties](#Db2LinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` Db2LinkedService - Linked service for DB2 data source. #### func (*Db2LinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9064) [¶](#Db2LinkedService.GetLinkedService) added in v0.2.0 ``` func (d *[Db2LinkedService](#Db2LinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type Db2LinkedService. #### func (Db2LinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15557) [¶](#Db2LinkedService.MarshalJSON) ``` func (d [Db2LinkedService](#Db2LinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Db2LinkedService. #### func (*Db2LinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15574) [¶](#Db2LinkedService.UnmarshalJSON) ``` func (d *[Db2LinkedService](#Db2LinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Db2LinkedService. #### type [Db2LinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9076) [¶](#Db2LinkedServiceTypeProperties) ``` type Db2LinkedServiceTypeProperties struct { // AuthenticationType to be used for connection. It is mutually exclusive with connectionString property. AuthenticationType *[Db2AuthenticationType](#Db2AuthenticationType) `json:"authenticationType,omitempty"` // Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or // Expression with resultType string). CertificateCommonName interface{} `json:"certificateCommonName,omitempty"` // The connection string. It is mutually exclusive with server, database, authenticationType, userName, packageCollection // and certificateCommonName property. Type: string, SecureString or // AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with // resultType string). Database interface{} `json:"database,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // It is mutually exclusive with connectionString property. Type: string (or // Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: // string (or Expression with resultType string). PackageCollection interface{} `json:"packageCollection,omitempty"` // Password for authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType // string). Server interface{} `json:"server,omitempty"` // Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with // resultType string). Username interface{} `json:"username,omitempty"` } ``` Db2LinkedServiceTypeProperties - DB2 linked service properties. #### func (Db2LinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15619) [¶](#Db2LinkedServiceTypeProperties.MarshalJSON) ``` func (d [Db2LinkedServiceTypeProperties](#Db2LinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Db2LinkedServiceTypeProperties. #### func (*Db2LinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15634) [¶](#Db2LinkedServiceTypeProperties.UnmarshalJSON) ``` func (d *[Db2LinkedServiceTypeProperties](#Db2LinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Db2LinkedServiceTypeProperties. #### type [Db2Source](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9115) [¶](#Db2Source) ``` type Db2Source struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` Db2Source - A copy activity source for Db2 databases. #### func (*Db2Source) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9146) [¶](#Db2Source.GetCopySource) added in v0.2.0 ``` func (d *[Db2Source](#Db2Source)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type Db2Source. #### func (*Db2Source) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9158) [¶](#Db2Source.GetTabularSource) added in v0.2.0 ``` func (d *[Db2Source](#Db2Source)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type Db2Source. #### func (Db2Source) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15678) [¶](#Db2Source.MarshalJSON) ``` func (d [Db2Source](#Db2Source)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Db2Source. #### func (*Db2Source) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15697) [¶](#Db2Source.UnmarshalJSON) ``` func (d *[Db2Source](#Db2Source)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Db2Source. #### type [Db2TableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9172) [¶](#Db2TableDataset) ``` type Db2TableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Db2 table dataset properties. TypeProperties *[Db2TableDatasetTypeProperties](#Db2TableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` Db2TableDataset - The Db2 table dataset. #### func (*Db2TableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9206) [¶](#Db2TableDataset.GetDataset) added in v0.2.0 ``` func (d *[Db2TableDataset](#Db2TableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type Db2TableDataset. #### func (Db2TableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15748) [¶](#Db2TableDataset.MarshalJSON) ``` func (d [Db2TableDataset](#Db2TableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Db2TableDataset. #### func (*Db2TableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15768) [¶](#Db2TableDataset.UnmarshalJSON) ``` func (d *[Db2TableDataset](#Db2TableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Db2TableDataset. #### type [Db2TableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9221) [¶](#Db2TableDatasetTypeProperties) ``` type Db2TableDatasetTypeProperties struct { // The Db2 schema name. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The Db2 table name. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` Db2TableDatasetTypeProperties - Db2 table dataset properties. #### func (Db2TableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15822) [¶](#Db2TableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (d [Db2TableDatasetTypeProperties](#Db2TableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Db2TableDatasetTypeProperties. #### func (*Db2TableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15831) [¶](#Db2TableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[Db2TableDatasetTypeProperties](#Db2TableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Db2TableDatasetTypeProperties. #### type [DeleteActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9233) [¶](#DeleteActivity) ``` type DeleteActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Delete activity properties. TypeProperties *[DeleteActivityTypeProperties](#DeleteActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` DeleteActivity - Delete activity. #### func (*DeleteActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9263) [¶](#DeleteActivity.GetActivity) added in v0.2.0 ``` func (d *[DeleteActivity](#DeleteActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type DeleteActivity. #### func (*DeleteActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9275) [¶](#DeleteActivity.GetExecutionActivity) added in v0.2.0 ``` func (d *[DeleteActivity](#DeleteActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type DeleteActivity. #### func (DeleteActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15857) [¶](#DeleteActivity.MarshalJSON) ``` func (d [DeleteActivity](#DeleteActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DeleteActivity. #### func (*DeleteActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15876) [¶](#DeleteActivity.UnmarshalJSON) ``` func (d *[DeleteActivity](#DeleteActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DeleteActivity. #### type [DeleteActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9289) [¶](#DeleteActivityTypeProperties) ``` type DeleteActivityTypeProperties struct { // REQUIRED; Delete activity dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // Whether to record detailed logs of delete-activity execution. Default value is false. Type: boolean (or Expression with // resultType boolean). EnableLogging interface{} `json:"enableLogging,omitempty"` // Log storage settings customer need to provide when enableLogging is true. LogStorageSettings *[LogStorageSettings](#LogStorageSettings) `json:"logStorageSettings,omitempty"` // The max concurrent connections to connect data source at the same time. MaxConcurrentConnections *[int32](/builtin#int32) `json:"maxConcurrentConnections,omitempty"` // If true, files or sub-folders under current folder path will be deleted recursively. Default is false. Type: boolean (or // Expression with resultType boolean). Recursive interface{} `json:"recursive,omitempty"` // Delete activity store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` DeleteActivityTypeProperties - Delete activity properties. #### func (DeleteActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15927) [¶](#DeleteActivityTypeProperties.MarshalJSON) ``` func (d [DeleteActivityTypeProperties](#DeleteActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DeleteActivityTypeProperties. #### func (*DeleteActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15939) [¶](#DeleteActivityTypeProperties.UnmarshalJSON) ``` func (d *[DeleteActivityTypeProperties](#DeleteActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DeleteActivityTypeProperties. #### type [DeleteDataFlowDebugSessionRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9312) [¶](#DeleteDataFlowDebugSessionRequest) ``` type DeleteDataFlowDebugSessionRequest struct { // The ID of data flow debug session. SessionID *[string](/builtin#string) `json:"sessionId,omitempty"` } ``` DeleteDataFlowDebugSessionRequest - Request body structure for deleting data flow debug session. #### func (DeleteDataFlowDebugSessionRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15974) [¶](#DeleteDataFlowDebugSessionRequest.MarshalJSON) added in v1.3.0 ``` func (d [DeleteDataFlowDebugSessionRequest](#DeleteDataFlowDebugSessionRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DeleteDataFlowDebugSessionRequest. #### func (*DeleteDataFlowDebugSessionRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L15981) [¶](#DeleteDataFlowDebugSessionRequest.UnmarshalJSON) added in v1.3.0 ``` func (d *[DeleteDataFlowDebugSessionRequest](#DeleteDataFlowDebugSessionRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DeleteDataFlowDebugSessionRequest. #### type [DelimitedTextDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9318) [¶](#DelimitedTextDataset) ``` type DelimitedTextDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Delimited text dataset properties. TypeProperties *[DelimitedTextDatasetTypeProperties](#DelimitedTextDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` DelimitedTextDataset - Delimited text dataset. #### func (*DelimitedTextDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9352) [¶](#DelimitedTextDataset.GetDataset) added in v0.2.0 ``` func (d *[DelimitedTextDataset](#DelimitedTextDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type DelimitedTextDataset. #### func (DelimitedTextDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16001) [¶](#DelimitedTextDataset.MarshalJSON) ``` func (d [DelimitedTextDataset](#DelimitedTextDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DelimitedTextDataset. #### func (*DelimitedTextDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16021) [¶](#DelimitedTextDataset.UnmarshalJSON) ``` func (d *[DelimitedTextDataset](#DelimitedTextDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DelimitedTextDataset. #### type [DelimitedTextDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9367) [¶](#DelimitedTextDatasetTypeProperties) ``` type DelimitedTextDatasetTypeProperties struct { // REQUIRED; The location of the delimited text storage. Location [DatasetLocationClassification](#DatasetLocationClassification) `json:"location,omitempty"` // The column delimiter. Type: string (or Expression with resultType string). ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` // The data compressionCodec. Type: string (or Expression with resultType string). CompressionCodec interface{} `json:"compressionCodec,omitempty"` // The data compression method used for DelimitedText. CompressionLevel interface{} `json:"compressionLevel,omitempty"` // The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. // Refer to the name column of the table in the following link to set // supported values: <https://msdn.microsoft.com/library/system.text.encoding.aspx>. Type: string (or Expression with resultType // string). EncodingName interface{} `json:"encodingName,omitempty"` // The escape character. Type: string (or Expression with resultType string). EscapeChar interface{} `json:"escapeChar,omitempty"` // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` // The null value string. Type: string (or Expression with resultType string). NullValue interface{} `json:"nullValue,omitempty"` // The quote character. Type: string (or Expression with resultType string). QuoteChar interface{} `json:"quoteChar,omitempty"` // The row delimiter. Type: string (or Expression with resultType string). RowDelimiter interface{} `json:"rowDelimiter,omitempty"` } ``` DelimitedTextDatasetTypeProperties - DelimitedText dataset properties. #### func (DelimitedTextDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16075) [¶](#DelimitedTextDatasetTypeProperties.MarshalJSON) ``` func (d [DelimitedTextDatasetTypeProperties](#DelimitedTextDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DelimitedTextDatasetTypeProperties. #### func (*DelimitedTextDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16091) [¶](#DelimitedTextDatasetTypeProperties.UnmarshalJSON) ``` func (d *[DelimitedTextDatasetTypeProperties](#DelimitedTextDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DelimitedTextDatasetTypeProperties. #### type [DelimitedTextReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9405) [¶](#DelimitedTextReadSettings) ``` type DelimitedTextReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Compression settings. CompressionProperties [CompressionReadSettingsClassification](#CompressionReadSettingsClassification) `json:"compressionProperties,omitempty"` // Indicates the number of non-empty rows to skip when reading data from input files. Type: integer (or Expression with resultType // integer). SkipLineCount interface{} `json:"skipLineCount,omitempty"` } ``` DelimitedTextReadSettings - Delimited text read settings. #### func (*DelimitedTextReadSettings) [GetFormatReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9421) [¶](#DelimitedTextReadSettings.GetFormatReadSettings) added in v0.2.0 ``` func (d *[DelimitedTextReadSettings](#DelimitedTextReadSettings)) GetFormatReadSettings() *[FormatReadSettings](#FormatReadSettings) ``` GetFormatReadSettings implements the FormatReadSettingsClassification interface for type DelimitedTextReadSettings. #### func (DelimitedTextReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16138) [¶](#DelimitedTextReadSettings.MarshalJSON) ``` func (d [DelimitedTextReadSettings](#DelimitedTextReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DelimitedTextReadSettings. #### func (*DelimitedTextReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16152) [¶](#DelimitedTextReadSettings.UnmarshalJSON) ``` func (d *[DelimitedTextReadSettings](#DelimitedTextReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DelimitedTextReadSettings. #### type [DelimitedTextSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9429) [¶](#DelimitedTextSink) ``` type DelimitedTextSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // DelimitedText format settings. FormatSettings *[DelimitedTextWriteSettings](#DelimitedTextWriteSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // DelimitedText store settings. StoreSettings [StoreWriteSettingsClassification](#StoreWriteSettingsClassification) `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` DelimitedTextSink - A copy activity DelimitedText sink. #### func (*DelimitedTextSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9462) [¶](#DelimitedTextSink.GetCopySink) added in v0.2.0 ``` func (d *[DelimitedTextSink](#DelimitedTextSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type DelimitedTextSink. #### func (DelimitedTextSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16188) [¶](#DelimitedTextSink.MarshalJSON) ``` func (d [DelimitedTextSink](#DelimitedTextSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DelimitedTextSink. #### func (*DelimitedTextSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16208) [¶](#DelimitedTextSink.UnmarshalJSON) ``` func (d *[DelimitedTextSink](#DelimitedTextSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DelimitedTextSink. #### type [DelimitedTextSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9476) [¶](#DelimitedTextSource) ``` type DelimitedTextSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // DelimitedText format settings. FormatSettings *[DelimitedTextReadSettings](#DelimitedTextReadSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // DelimitedText store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` DelimitedTextSource - A copy activity DelimitedText source. #### func (*DelimitedTextSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9507) [¶](#DelimitedTextSource.GetCopySource) added in v0.2.0 ``` func (d *[DelimitedTextSource](#DelimitedTextSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type DelimitedTextSource. #### func (DelimitedTextSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16262) [¶](#DelimitedTextSource.MarshalJSON) ``` func (d [DelimitedTextSource](#DelimitedTextSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DelimitedTextSource. #### func (*DelimitedTextSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16281) [¶](#DelimitedTextSource.UnmarshalJSON) ``` func (d *[DelimitedTextSource](#DelimitedTextSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DelimitedTextSource. #### type [DelimitedTextWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9519) [¶](#DelimitedTextWriteSettings) ``` type DelimitedTextWriteSettings struct { // REQUIRED; The file extension used to create the files. Type: string (or Expression with resultType string). FileExtension interface{} `json:"fileExtension,omitempty"` // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` // Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). QuoteAllText interface{} `json:"quoteAllText,omitempty"` } ``` DelimitedTextWriteSettings - Delimited text write settings. #### func (*DelimitedTextWriteSettings) [GetFormatWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9542) [¶](#DelimitedTextWriteSettings.GetFormatWriteSettings) added in v0.2.0 ``` func (d *[DelimitedTextWriteSettings](#DelimitedTextWriteSettings)) GetFormatWriteSettings() *[FormatWriteSettings](#FormatWriteSettings) ``` GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type DelimitedTextWriteSettings. #### func (DelimitedTextWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16332) [¶](#DelimitedTextWriteSettings.MarshalJSON) ``` func (d [DelimitedTextWriteSettings](#DelimitedTextWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DelimitedTextWriteSettings. #### func (*DelimitedTextWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16348) [¶](#DelimitedTextWriteSettings.UnmarshalJSON) ``` func (d *[DelimitedTextWriteSettings](#DelimitedTextWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DelimitedTextWriteSettings. #### type [DependencyCondition](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L405) [¶](#DependencyCondition) ``` type DependencyCondition [string](/builtin#string) ``` ``` const ( DependencyConditionCompleted [DependencyCondition](#DependencyCondition) = "Completed" DependencyConditionFailed [DependencyCondition](#DependencyCondition) = "Failed" DependencyConditionSkipped [DependencyCondition](#DependencyCondition) = "Skipped" DependencyConditionSucceeded [DependencyCondition](#DependencyCondition) = "Succeeded" ) ``` #### func [PossibleDependencyConditionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L415) [¶](#PossibleDependencyConditionValues) ``` func PossibleDependencyConditionValues() [][DependencyCondition](#DependencyCondition) ``` PossibleDependencyConditionValues returns the possible values for the DependencyCondition const type. #### type [DependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9559) [¶](#DependencyReference) ``` type DependencyReference struct { // REQUIRED; The type of dependency reference. Type *[string](/builtin#string) `json:"type,omitempty"` } ``` DependencyReference - Referenced dependency. #### func (*DependencyReference) [GetDependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9565) [¶](#DependencyReference.GetDependencyReference) ``` func (d *[DependencyReference](#DependencyReference)) GetDependencyReference() *[DependencyReference](#DependencyReference) ``` GetDependencyReference implements the DependencyReferenceClassification interface for type DependencyReference. #### func (DependencyReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16390) [¶](#DependencyReference.MarshalJSON) added in v1.3.0 ``` func (d [DependencyReference](#DependencyReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DependencyReference. #### func (*DependencyReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16397) [¶](#DependencyReference.UnmarshalJSON) ``` func (d *[DependencyReference](#DependencyReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DependencyReference. #### type [DependencyReferenceClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9553) [¶](#DependencyReferenceClassification) ``` type DependencyReferenceClassification interface { // GetDependencyReference returns the DependencyReference content of the underlying type. GetDependencyReference() *[DependencyReference](#DependencyReference) } ``` DependencyReferenceClassification provides polymorphic access to related types. Call the interface's GetDependencyReference() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DependencyReference, *SelfDependencyTumblingWindowTriggerReference, *TriggerDependencyReference, *TumblingWindowTriggerDependencyReference #### type [DistcpSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9568) [¶](#DistcpSettings) ``` type DistcpSettings struct { // REQUIRED; Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). ResourceManagerEndpoint interface{} `json:"resourceManagerEndpoint,omitempty"` // REQUIRED; Specifies an existing folder path which will be used to store temp Distcp command script. The script file is // generated by ADF and will be removed after Copy job finished. Type: string (or Expression // with resultType string). TempScriptPath interface{} `json:"tempScriptPath,omitempty"` // Specifies the Distcp options. Type: string (or Expression with resultType string). DistcpOptions interface{} `json:"distcpOptions,omitempty"` } ``` DistcpSettings - Distcp settings. #### func (DistcpSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16417) [¶](#DistcpSettings.MarshalJSON) added in v1.3.0 ``` func (d [DistcpSettings](#DistcpSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DistcpSettings. #### func (*DistcpSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16426) [¶](#DistcpSettings.UnmarshalJSON) added in v1.3.0 ``` func (d *[DistcpSettings](#DistcpSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DistcpSettings. #### type [DocumentDbCollectionDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9582) [¶](#DocumentDbCollectionDataset) ``` type DocumentDbCollectionDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; DocumentDB Collection dataset properties. TypeProperties *[DocumentDbCollectionDatasetTypeProperties](#DocumentDbCollectionDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` DocumentDbCollectionDataset - Microsoft Azure Document Database Collection dataset. #### func (*DocumentDbCollectionDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9616) [¶](#DocumentDbCollectionDataset.GetDataset) added in v0.2.0 ``` func (d *[DocumentDbCollectionDataset](#DocumentDbCollectionDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type DocumentDbCollectionDataset. #### func (DocumentDbCollectionDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16452) [¶](#DocumentDbCollectionDataset.MarshalJSON) ``` func (d [DocumentDbCollectionDataset](#DocumentDbCollectionDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionDataset. #### func (*DocumentDbCollectionDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16472) [¶](#DocumentDbCollectionDataset.UnmarshalJSON) ``` func (d *[DocumentDbCollectionDataset](#DocumentDbCollectionDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DocumentDbCollectionDataset. #### type [DocumentDbCollectionDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9631) [¶](#DocumentDbCollectionDatasetTypeProperties) ``` type DocumentDbCollectionDatasetTypeProperties struct { // REQUIRED; Document Database collection name. Type: string (or Expression with resultType string). CollectionName interface{} `json:"collectionName,omitempty"` } ``` DocumentDbCollectionDatasetTypeProperties - DocumentDB Collection dataset properties. #### func (DocumentDbCollectionDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16526) [¶](#DocumentDbCollectionDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (d [DocumentDbCollectionDatasetTypeProperties](#DocumentDbCollectionDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionDatasetTypeProperties. #### func (*DocumentDbCollectionDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16533) [¶](#DocumentDbCollectionDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DocumentDbCollectionDatasetTypeProperties](#DocumentDbCollectionDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DocumentDbCollectionDatasetTypeProperties. #### type [DocumentDbCollectionSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9637) [¶](#DocumentDbCollectionSink) ``` type DocumentDbCollectionSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). NestingSeparator interface{} `json:"nestingSeparator,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType string). Allowed values: insert // and upsert. WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` DocumentDbCollectionSink - A copy activity Document Database Collection sink. #### func (*DocumentDbCollectionSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9671) [¶](#DocumentDbCollectionSink.GetCopySink) added in v0.2.0 ``` func (d *[DocumentDbCollectionSink](#DocumentDbCollectionSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type DocumentDbCollectionSink. #### func (DocumentDbCollectionSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16553) [¶](#DocumentDbCollectionSink.MarshalJSON) ``` func (d [DocumentDbCollectionSink](#DocumentDbCollectionSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionSink. #### func (*DocumentDbCollectionSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16573) [¶](#DocumentDbCollectionSink.UnmarshalJSON) ``` func (d *[DocumentDbCollectionSink](#DocumentDbCollectionSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DocumentDbCollectionSink. #### type [DocumentDbCollectionSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9685) [¶](#DocumentDbCollectionSource) ``` type DocumentDbCollectionSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Nested properties separator. Type: string (or Expression with resultType string). NestingSeparator interface{} `json:"nestingSeparator,omitempty"` // Documents query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` DocumentDbCollectionSource - A copy activity Document Database Collection source. #### func (*DocumentDbCollectionSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9719) [¶](#DocumentDbCollectionSource.GetCopySource) added in v0.2.0 ``` func (d *[DocumentDbCollectionSource](#DocumentDbCollectionSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type DocumentDbCollectionSource. #### func (DocumentDbCollectionSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16627) [¶](#DocumentDbCollectionSource.MarshalJSON) ``` func (d [DocumentDbCollectionSource](#DocumentDbCollectionSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionSource. #### func (*DocumentDbCollectionSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16647) [¶](#DocumentDbCollectionSource.UnmarshalJSON) ``` func (d *[DocumentDbCollectionSource](#DocumentDbCollectionSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DocumentDbCollectionSource. #### type [DrillDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9731) [¶](#DrillDatasetTypeProperties) ``` type DrillDatasetTypeProperties struct { // The schema name of the Drill. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Drill. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` DrillDatasetTypeProperties - Drill Dataset Properties #### func (DrillDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16701) [¶](#DrillDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (d [DrillDatasetTypeProperties](#DrillDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DrillDatasetTypeProperties. #### func (*DrillDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16710) [¶](#DrillDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DrillDatasetTypeProperties](#DrillDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DrillDatasetTypeProperties. #### type [DrillLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9743) [¶](#DrillLinkedService) ``` type DrillLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Drill server linked service properties. TypeProperties *[DrillLinkedServiceTypeProperties](#DrillLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` DrillLinkedService - Drill server linked service. #### func (*DrillLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9767) [¶](#DrillLinkedService.GetLinkedService) added in v0.2.0 ``` func (d *[DrillLinkedService](#DrillLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type DrillLinkedService. #### func (DrillLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16736) [¶](#DrillLinkedService.MarshalJSON) ``` func (d [DrillLinkedService](#DrillLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DrillLinkedService. #### func (*DrillLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16753) [¶](#DrillLinkedService.UnmarshalJSON) ``` func (d *[DrillLinkedService](#DrillLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DrillLinkedService. #### type [DrillLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9779) [¶](#DrillLinkedServiceTypeProperties) ``` type DrillLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"pwd,omitempty"` } ``` DrillLinkedServiceTypeProperties - Drill server linked service properties. #### func (DrillLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16798) [¶](#DrillLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (d [DrillLinkedServiceTypeProperties](#DrillLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DrillLinkedServiceTypeProperties. #### func (*DrillLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16807) [¶](#DrillLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DrillLinkedServiceTypeProperties](#DrillLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DrillLinkedServiceTypeProperties. #### type [DrillSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9792) [¶](#DrillSource) ``` type DrillSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` DrillSource - A copy activity Drill server source. #### func (*DrillSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9823) [¶](#DrillSource.GetCopySource) added in v0.2.0 ``` func (d *[DrillSource](#DrillSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type DrillSource. #### func (*DrillSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9835) [¶](#DrillSource.GetTabularSource) added in v0.2.0 ``` func (d *[DrillSource](#DrillSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type DrillSource. #### func (DrillSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16833) [¶](#DrillSource.MarshalJSON) ``` func (d [DrillSource](#DrillSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DrillSource. #### func (*DrillSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16852) [¶](#DrillSource.UnmarshalJSON) ``` func (d *[DrillSource](#DrillSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DrillSource. #### type [DrillTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9849) [¶](#DrillTableDataset) ``` type DrillTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[DrillDatasetTypeProperties](#DrillDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` DrillTableDataset - Drill server dataset. #### func (*DrillTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9883) [¶](#DrillTableDataset.GetDataset) added in v0.2.0 ``` func (d *[DrillTableDataset](#DrillTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type DrillTableDataset. #### func (DrillTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16903) [¶](#DrillTableDataset.MarshalJSON) ``` func (d [DrillTableDataset](#DrillTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DrillTableDataset. #### func (*DrillTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16923) [¶](#DrillTableDataset.UnmarshalJSON) ``` func (d *[DrillTableDataset](#DrillTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DrillTableDataset. #### type [DynamicsAXLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9898) [¶](#DynamicsAXLinkedService) ``` type DynamicsAXLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Dynamics AX linked service properties. TypeProperties *[DynamicsAXLinkedServiceTypeProperties](#DynamicsAXLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` DynamicsAXLinkedService - Dynamics AX linked service. #### func (*DynamicsAXLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9922) [¶](#DynamicsAXLinkedService.GetLinkedService) added in v0.2.0 ``` func (d *[DynamicsAXLinkedService](#DynamicsAXLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type DynamicsAXLinkedService. #### func (DynamicsAXLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16977) [¶](#DynamicsAXLinkedService.MarshalJSON) ``` func (d [DynamicsAXLinkedService](#DynamicsAXLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsAXLinkedService. #### func (*DynamicsAXLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L16994) [¶](#DynamicsAXLinkedService.UnmarshalJSON) ``` func (d *[DynamicsAXLinkedService](#DynamicsAXLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsAXLinkedService. #### type [DynamicsAXLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9934) [¶](#DynamicsAXLinkedServiceTypeProperties) ``` type DynamicsAXLinkedServiceTypeProperties struct { // REQUIRED; Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). AADResourceID interface{} `json:"aadResourceId,omitempty"` // REQUIRED; Specify the application's client ID. Type: string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // REQUIRED; Specify the application's key. Mark this field as a SecureString to store it securely in Data Factory, or reference // a secret stored in Azure Key Vault. Type: string (or Expression with resultType // string). ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // REQUIRED; Specify the tenant information (domain name or tenant ID) under which your application resides. Retrieve it by // hovering the mouse in the top-right corner of the Azure portal. Type: string (or // Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` // REQUIRED; The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. URL interface{} `json:"url,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` DynamicsAXLinkedServiceTypeProperties - Dynamics AX linked service properties. #### func (DynamicsAXLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17039) [¶](#DynamicsAXLinkedServiceTypeProperties.MarshalJSON) ``` func (d [DynamicsAXLinkedServiceTypeProperties](#DynamicsAXLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsAXLinkedServiceTypeProperties. #### func (*DynamicsAXLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17051) [¶](#DynamicsAXLinkedServiceTypeProperties.UnmarshalJSON) ``` func (d *[DynamicsAXLinkedServiceTypeProperties](#DynamicsAXLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsAXLinkedServiceTypeProperties. #### type [DynamicsAXResourceDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9960) [¶](#DynamicsAXResourceDataset) ``` type DynamicsAXResourceDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Dynamics AX OData resource dataset properties. TypeProperties *[DynamicsAXResourceDatasetTypeProperties](#DynamicsAXResourceDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` DynamicsAXResourceDataset - The path of the Dynamics AX OData entity. #### func (*DynamicsAXResourceDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L9994) [¶](#DynamicsAXResourceDataset.GetDataset) added in v0.2.0 ``` func (d *[DynamicsAXResourceDataset](#DynamicsAXResourceDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type DynamicsAXResourceDataset. #### func (DynamicsAXResourceDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17086) [¶](#DynamicsAXResourceDataset.MarshalJSON) ``` func (d [DynamicsAXResourceDataset](#DynamicsAXResourceDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsAXResourceDataset. #### func (*DynamicsAXResourceDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17106) [¶](#DynamicsAXResourceDataset.UnmarshalJSON) ``` func (d *[DynamicsAXResourceDataset](#DynamicsAXResourceDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsAXResourceDataset. #### type [DynamicsAXResourceDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10009) [¶](#DynamicsAXResourceDatasetTypeProperties) ``` type DynamicsAXResourceDatasetTypeProperties struct { // REQUIRED; The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` DynamicsAXResourceDatasetTypeProperties - Dynamics AX OData resource dataset properties. #### func (DynamicsAXResourceDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17160) [¶](#DynamicsAXResourceDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (d [DynamicsAXResourceDatasetTypeProperties](#DynamicsAXResourceDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsAXResourceDatasetTypeProperties. #### func (*DynamicsAXResourceDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17167) [¶](#DynamicsAXResourceDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DynamicsAXResourceDatasetTypeProperties](#DynamicsAXResourceDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsAXResourceDatasetTypeProperties. #### type [DynamicsAXSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10015) [¶](#DynamicsAXSource) ``` type DynamicsAXSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` DynamicsAXSource - A copy activity Dynamics AX source. #### func (*DynamicsAXSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10051) [¶](#DynamicsAXSource.GetCopySource) added in v0.2.0 ``` func (d *[DynamicsAXSource](#DynamicsAXSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type DynamicsAXSource. #### func (*DynamicsAXSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10063) [¶](#DynamicsAXSource.GetTabularSource) added in v0.2.0 ``` func (d *[DynamicsAXSource](#DynamicsAXSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type DynamicsAXSource. #### func (DynamicsAXSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17187) [¶](#DynamicsAXSource.MarshalJSON) ``` func (d [DynamicsAXSource](#DynamicsAXSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsAXSource. #### func (*DynamicsAXSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17207) [¶](#DynamicsAXSource.UnmarshalJSON) ``` func (d *[DynamicsAXSource](#DynamicsAXSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsAXSource. #### type [DynamicsAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L425) [¶](#DynamicsAuthenticationType) ``` type DynamicsAuthenticationType [string](/builtin#string) ``` DynamicsAuthenticationType - All available dynamicsAuthenticationType values. ``` const ( DynamicsAuthenticationTypeAADServicePrincipal [DynamicsAuthenticationType](#DynamicsAuthenticationType) = "AADServicePrincipal" DynamicsAuthenticationTypeIfd [DynamicsAuthenticationType](#DynamicsAuthenticationType) = "Ifd" DynamicsAuthenticationTypeOffice365 [DynamicsAuthenticationType](#DynamicsAuthenticationType) = "Office365" ) ``` #### func [PossibleDynamicsAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L434) [¶](#PossibleDynamicsAuthenticationTypeValues) ``` func PossibleDynamicsAuthenticationTypeValues() [][DynamicsAuthenticationType](#DynamicsAuthenticationType) ``` PossibleDynamicsAuthenticationTypeValues returns the possible values for the DynamicsAuthenticationType const type. #### type [DynamicsCrmEntityDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10077) [¶](#DynamicsCrmEntityDataset) ``` type DynamicsCrmEntityDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Dynamics CRM entity dataset properties. TypeProperties *[DynamicsCrmEntityDatasetTypeProperties](#DynamicsCrmEntityDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` DynamicsCrmEntityDataset - The Dynamics CRM entity dataset. #### func (*DynamicsCrmEntityDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10111) [¶](#DynamicsCrmEntityDataset.GetDataset) added in v0.2.0 ``` func (d *[DynamicsCrmEntityDataset](#DynamicsCrmEntityDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type DynamicsCrmEntityDataset. #### func (DynamicsCrmEntityDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17261) [¶](#DynamicsCrmEntityDataset.MarshalJSON) ``` func (d [DynamicsCrmEntityDataset](#DynamicsCrmEntityDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsCrmEntityDataset. #### func (*DynamicsCrmEntityDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17281) [¶](#DynamicsCrmEntityDataset.UnmarshalJSON) ``` func (d *[DynamicsCrmEntityDataset](#DynamicsCrmEntityDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsCrmEntityDataset. #### type [DynamicsCrmEntityDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10126) [¶](#DynamicsCrmEntityDatasetTypeProperties) ``` type DynamicsCrmEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). EntityName interface{} `json:"entityName,omitempty"` } ``` DynamicsCrmEntityDatasetTypeProperties - Dynamics CRM entity dataset properties. #### func (DynamicsCrmEntityDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17335) [¶](#DynamicsCrmEntityDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (d [DynamicsCrmEntityDatasetTypeProperties](#DynamicsCrmEntityDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsCrmEntityDatasetTypeProperties. #### func (*DynamicsCrmEntityDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17342) [¶](#DynamicsCrmEntityDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DynamicsCrmEntityDatasetTypeProperties](#DynamicsCrmEntityDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsCrmEntityDatasetTypeProperties. #### type [DynamicsCrmLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10132) [¶](#DynamicsCrmLinkedService) ``` type DynamicsCrmLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Dynamics CRM linked service properties. TypeProperties *[DynamicsCrmLinkedServiceTypeProperties](#DynamicsCrmLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` DynamicsCrmLinkedService - Dynamics CRM linked service. #### func (*DynamicsCrmLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10156) [¶](#DynamicsCrmLinkedService.GetLinkedService) added in v0.2.0 ``` func (d *[DynamicsCrmLinkedService](#DynamicsCrmLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type DynamicsCrmLinkedService. #### func (DynamicsCrmLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17362) [¶](#DynamicsCrmLinkedService.MarshalJSON) ``` func (d [DynamicsCrmLinkedService](#DynamicsCrmLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsCrmLinkedService. #### func (*DynamicsCrmLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17379) [¶](#DynamicsCrmLinkedService.UnmarshalJSON) ``` func (d *[DynamicsCrmLinkedService](#DynamicsCrmLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsCrmLinkedService. #### type [DynamicsCrmLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10168) [¶](#DynamicsCrmLinkedServiceTypeProperties) ``` type DynamicsCrmLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises // with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online // scenario. Type: string (or Expression with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // REQUIRED; The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for // Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string). DeploymentType interface{} `json:"deploymentType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The host name of the on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. // Type: string (or Expression with resultType string). HostName interface{} `json:"hostName,omitempty"` // The organization name of the Dynamics CRM instance. The property is required for on-prem and required for online when there // are more than one Dynamics CRM instances associated with the user. Type: // string (or Expression with resultType string). OrganizationName interface{} `json:"organizationName,omitempty"` // Password to access the Dynamics CRM instance. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The port of on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Default is // 443. Type: integer (or Expression with resultType integer), minimum: 0. Port interface{} `json:"port,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. ServicePrincipalCredential [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalCredential,omitempty"` // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The URL to the Microsoft Dynamics CRM server. The property is required for on-line and not allowed for on-prem. Type: string // (or Expression with resultType string). ServiceURI interface{} `json:"serviceUri,omitempty"` // User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` DynamicsCrmLinkedServiceTypeProperties - Dynamics CRM linked service properties. #### func (DynamicsCrmLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17424) [¶](#DynamicsCrmLinkedServiceTypeProperties.MarshalJSON) ``` func (d [DynamicsCrmLinkedServiceTypeProperties](#DynamicsCrmLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsCrmLinkedServiceTypeProperties. #### func (*DynamicsCrmLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17442) [¶](#DynamicsCrmLinkedServiceTypeProperties.UnmarshalJSON) ``` func (d *[DynamicsCrmLinkedServiceTypeProperties](#DynamicsCrmLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsCrmLinkedServiceTypeProperties. #### type [DynamicsCrmSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10222) [¶](#DynamicsCrmSink) ``` type DynamicsCrmSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; The write behavior for the operation. WriteBehavior *[DynamicsSinkWriteBehavior](#DynamicsSinkWriteBehavior) `json:"writeBehavior,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default // is false. Type: boolean (or Expression with resultType boolean). IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` DynamicsCrmSink - A copy activity Dynamics CRM sink. #### func (*DynamicsCrmSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10260) [¶](#DynamicsCrmSink.GetCopySink) added in v0.2.0 ``` func (d *[DynamicsCrmSink](#DynamicsCrmSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type DynamicsCrmSink. #### func (DynamicsCrmSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17495) [¶](#DynamicsCrmSink.MarshalJSON) ``` func (d [DynamicsCrmSink](#DynamicsCrmSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsCrmSink. #### func (*DynamicsCrmSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17516) [¶](#DynamicsCrmSink.UnmarshalJSON) ``` func (d *[DynamicsCrmSink](#DynamicsCrmSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsCrmSink. #### type [DynamicsCrmSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10274) [¶](#DynamicsCrmSource) ``` type DynamicsCrmSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or // Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` DynamicsCrmSource - A copy activity Dynamics CRM source. #### func (*DynamicsCrmSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10303) [¶](#DynamicsCrmSource.GetCopySource) added in v0.2.0 ``` func (d *[DynamicsCrmSource](#DynamicsCrmSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type DynamicsCrmSource. #### func (DynamicsCrmSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17573) [¶](#DynamicsCrmSource.MarshalJSON) ``` func (d [DynamicsCrmSource](#DynamicsCrmSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsCrmSource. #### func (*DynamicsCrmSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17591) [¶](#DynamicsCrmSource.UnmarshalJSON) ``` func (d *[DynamicsCrmSource](#DynamicsCrmSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsCrmSource. #### type [DynamicsDeploymentType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L443) [¶](#DynamicsDeploymentType) ``` type DynamicsDeploymentType [string](/builtin#string) ``` DynamicsDeploymentType - All available dynamicsDeploymentType values. ``` const ( DynamicsDeploymentTypeOnPremisesWithIfd [DynamicsDeploymentType](#DynamicsDeploymentType) = "OnPremisesWithIfd" DynamicsDeploymentTypeOnline [DynamicsDeploymentType](#DynamicsDeploymentType) = "Online" ) ``` #### func [PossibleDynamicsDeploymentTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L451) [¶](#PossibleDynamicsDeploymentTypeValues) ``` func PossibleDynamicsDeploymentTypeValues() [][DynamicsDeploymentType](#DynamicsDeploymentType) ``` PossibleDynamicsDeploymentTypeValues returns the possible values for the DynamicsDeploymentType const type. #### type [DynamicsEntityDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10315) [¶](#DynamicsEntityDataset) ``` type DynamicsEntityDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Dynamics entity dataset properties. TypeProperties *[DynamicsEntityDatasetTypeProperties](#DynamicsEntityDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` DynamicsEntityDataset - The Dynamics entity dataset. #### func (*DynamicsEntityDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10349) [¶](#DynamicsEntityDataset.GetDataset) added in v0.2.0 ``` func (d *[DynamicsEntityDataset](#DynamicsEntityDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type DynamicsEntityDataset. #### func (DynamicsEntityDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17639) [¶](#DynamicsEntityDataset.MarshalJSON) ``` func (d [DynamicsEntityDataset](#DynamicsEntityDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsEntityDataset. #### func (*DynamicsEntityDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17659) [¶](#DynamicsEntityDataset.UnmarshalJSON) ``` func (d *[DynamicsEntityDataset](#DynamicsEntityDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsEntityDataset. #### type [DynamicsEntityDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10364) [¶](#DynamicsEntityDatasetTypeProperties) ``` type DynamicsEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). EntityName interface{} `json:"entityName,omitempty"` } ``` DynamicsEntityDatasetTypeProperties - Dynamics entity dataset properties. #### func (DynamicsEntityDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17713) [¶](#DynamicsEntityDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (d [DynamicsEntityDatasetTypeProperties](#DynamicsEntityDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsEntityDatasetTypeProperties. #### func (*DynamicsEntityDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17720) [¶](#DynamicsEntityDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (d *[DynamicsEntityDatasetTypeProperties](#DynamicsEntityDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsEntityDatasetTypeProperties. #### type [DynamicsLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10370) [¶](#DynamicsLinkedService) ``` type DynamicsLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Dynamics linked service properties. TypeProperties *[DynamicsLinkedServiceTypeProperties](#DynamicsLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` DynamicsLinkedService - Dynamics linked service. #### func (*DynamicsLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10394) [¶](#DynamicsLinkedService.GetLinkedService) added in v0.2.0 ``` func (d *[DynamicsLinkedService](#DynamicsLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type DynamicsLinkedService. #### func (DynamicsLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17740) [¶](#DynamicsLinkedService.MarshalJSON) ``` func (d [DynamicsLinkedService](#DynamicsLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsLinkedService. #### func (*DynamicsLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17757) [¶](#DynamicsLinkedService.UnmarshalJSON) ``` func (d *[DynamicsLinkedService](#DynamicsLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsLinkedService. #### type [DynamicsLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10406) [¶](#DynamicsLinkedServiceTypeProperties) ``` type DynamicsLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises // with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online // scenario. Type: string (or Expression with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // REQUIRED; The deployment type of the Dynamics instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics // on-premises with Ifd. Type: string (or Expression with resultType string). DeploymentType interface{} `json:"deploymentType,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The host name of the on-premises Dynamics server. The property is required for on-prem and not allowed for online. Type: // string (or Expression with resultType string). HostName interface{} `json:"hostName,omitempty"` // The organization name of the Dynamics instance. The property is required for on-prem and required for online when there // are more than one Dynamics instances associated with the user. Type: string (or // Expression with resultType string). OrganizationName interface{} `json:"organizationName,omitempty"` // Password to access the Dynamics instance. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The port of on-premises Dynamics server. The property is required for on-prem and not allowed for online. Default is 443. // Type: integer (or Expression with resultType integer), minimum: 0. Port interface{} `json:"port,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. ServicePrincipalCredential [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalCredential,omitempty"` // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The URL to the Microsoft Dynamics server. The property is required for on-line and not allowed for on-prem. Type: string // (or Expression with resultType string). ServiceURI interface{} `json:"serviceUri,omitempty"` // User name to access the Dynamics instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` DynamicsLinkedServiceTypeProperties - Dynamics linked service properties. #### func (DynamicsLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17802) [¶](#DynamicsLinkedServiceTypeProperties.MarshalJSON) ``` func (d [DynamicsLinkedServiceTypeProperties](#DynamicsLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsLinkedServiceTypeProperties. #### func (*DynamicsLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17821) [¶](#DynamicsLinkedServiceTypeProperties.UnmarshalJSON) ``` func (d *[DynamicsLinkedServiceTypeProperties](#DynamicsLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsLinkedServiceTypeProperties. #### type [DynamicsSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10463) [¶](#DynamicsSink) ``` type DynamicsSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; The write behavior for the operation. WriteBehavior *[DynamicsSinkWriteBehavior](#DynamicsSinkWriteBehavior) `json:"writeBehavior,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The flag indicating whether ignore null values from input dataset (except key fields) during write operation. Default is // false. Type: boolean (or Expression with resultType boolean). IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` DynamicsSink - A copy activity Dynamics sink. #### func (*DynamicsSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10501) [¶](#DynamicsSink.GetCopySink) added in v0.2.0 ``` func (d *[DynamicsSink](#DynamicsSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type DynamicsSink. #### func (DynamicsSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17877) [¶](#DynamicsSink.MarshalJSON) ``` func (d [DynamicsSink](#DynamicsSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsSink. #### func (*DynamicsSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17898) [¶](#DynamicsSink.UnmarshalJSON) ``` func (d *[DynamicsSink](#DynamicsSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsSink. #### type [DynamicsSinkWriteBehavior](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L459) [¶](#DynamicsSinkWriteBehavior) ``` type DynamicsSinkWriteBehavior [string](/builtin#string) ``` DynamicsSinkWriteBehavior - Defines values for DynamicsSinkWriteBehavior. ``` const ( DynamicsSinkWriteBehaviorUpsert [DynamicsSinkWriteBehavior](#DynamicsSinkWriteBehavior) = "Upsert" ) ``` #### func [PossibleDynamicsSinkWriteBehaviorValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L466) [¶](#PossibleDynamicsSinkWriteBehaviorValues) ``` func PossibleDynamicsSinkWriteBehaviorValues() [][DynamicsSinkWriteBehavior](#DynamicsSinkWriteBehavior) ``` PossibleDynamicsSinkWriteBehaviorValues returns the possible values for the DynamicsSinkWriteBehavior const type. #### type [DynamicsSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10515) [¶](#DynamicsSource) ``` type DynamicsSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & on-premises). Type: string (or Expression // with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` DynamicsSource - A copy activity Dynamics source. #### func (*DynamicsSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10544) [¶](#DynamicsSource.GetCopySource) added in v0.2.0 ``` func (d *[DynamicsSource](#DynamicsSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type DynamicsSource. #### func (DynamicsSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17955) [¶](#DynamicsSource.MarshalJSON) ``` func (d [DynamicsSource](#DynamicsSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type DynamicsSource. #### func (*DynamicsSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L17973) [¶](#DynamicsSource.UnmarshalJSON) ``` func (d *[DynamicsSource](#DynamicsSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsSource. #### type [EloquaLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10556) [¶](#EloquaLinkedService) ``` type EloquaLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Eloqua server linked service properties. TypeProperties *[EloquaLinkedServiceTypeProperties](#EloquaLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` EloquaLinkedService - Eloqua server linked service. #### func (*EloquaLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10580) [¶](#EloquaLinkedService.GetLinkedService) added in v0.2.0 ``` func (e *[EloquaLinkedService](#EloquaLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type EloquaLinkedService. #### func (EloquaLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18021) [¶](#EloquaLinkedService.MarshalJSON) ``` func (e [EloquaLinkedService](#EloquaLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type EloquaLinkedService. #### func (*EloquaLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18038) [¶](#EloquaLinkedService.UnmarshalJSON) ``` func (e *[EloquaLinkedService](#EloquaLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type EloquaLinkedService. #### type [EloquaLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10592) [¶](#EloquaLinkedServiceTypeProperties) ``` type EloquaLinkedServiceTypeProperties struct { // REQUIRED; The endpoint of the Eloqua server. (i.e. eloqua.example.com) Endpoint interface{} `json:"endpoint,omitempty"` // REQUIRED; The site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice) Username interface{} `json:"username,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password corresponding to the user name. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` EloquaLinkedServiceTypeProperties - Eloqua server linked service properties. #### func (EloquaLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18083) [¶](#EloquaLinkedServiceTypeProperties.MarshalJSON) ``` func (e [EloquaLinkedServiceTypeProperties](#EloquaLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type EloquaLinkedServiceTypeProperties. #### func (*EloquaLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18096) [¶](#EloquaLinkedServiceTypeProperties.UnmarshalJSON) ``` func (e *[EloquaLinkedServiceTypeProperties](#EloquaLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type EloquaLinkedServiceTypeProperties. #### type [EloquaObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10618) [¶](#EloquaObjectDataset) ``` type EloquaObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` EloquaObjectDataset - Eloqua server dataset. #### func (*EloquaObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10652) [¶](#EloquaObjectDataset.GetDataset) added in v0.2.0 ``` func (e *[EloquaObjectDataset](#EloquaObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type EloquaObjectDataset. #### func (EloquaObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18134) [¶](#EloquaObjectDataset.MarshalJSON) ``` func (e [EloquaObjectDataset](#EloquaObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type EloquaObjectDataset. #### func (*EloquaObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18154) [¶](#EloquaObjectDataset.UnmarshalJSON) ``` func (e *[EloquaObjectDataset](#EloquaObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type EloquaObjectDataset. #### type [EloquaSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10667) [¶](#EloquaSource) ``` type EloquaSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` EloquaSource - A copy activity Eloqua server source. #### func (*EloquaSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10698) [¶](#EloquaSource.GetCopySource) added in v0.2.0 ``` func (e *[EloquaSource](#EloquaSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type EloquaSource. #### func (*EloquaSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10710) [¶](#EloquaSource.GetTabularSource) added in v0.2.0 ``` func (e *[EloquaSource](#EloquaSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type EloquaSource. #### func (EloquaSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18208) [¶](#EloquaSource.MarshalJSON) ``` func (e [EloquaSource](#EloquaSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type EloquaSource. #### func (*EloquaSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18227) [¶](#EloquaSource.UnmarshalJSON) ``` func (e *[EloquaSource](#EloquaSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type EloquaSource. #### type [EncryptionConfiguration](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10724) [¶](#EncryptionConfiguration) ``` type EncryptionConfiguration struct { // REQUIRED; The name of the key in Azure Key Vault to use as Customer Managed Key. KeyName *[string](/builtin#string) `json:"keyName,omitempty"` // REQUIRED; The url of the Azure Key Vault used for CMK. VaultBaseURL *[string](/builtin#string) `json:"vaultBaseUrl,omitempty"` // User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be // used. Identity *[CMKIdentityDefinition](#CMKIdentityDefinition) `json:"identity,omitempty"` // The version of the key used for CMK. If not provided, latest version will be used. KeyVersion *[string](/builtin#string) `json:"keyVersion,omitempty"` } ``` EncryptionConfiguration - Definition of CMK for the factory. #### func (EncryptionConfiguration) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18278) [¶](#EncryptionConfiguration.MarshalJSON) added in v1.3.0 ``` func (e [EncryptionConfiguration](#EncryptionConfiguration)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type EncryptionConfiguration. #### func (*EncryptionConfiguration) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18288) [¶](#EncryptionConfiguration.UnmarshalJSON) added in v1.3.0 ``` func (e *[EncryptionConfiguration](#EncryptionConfiguration)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionConfiguration. #### type [EntityReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10740) [¶](#EntityReference) ``` type EntityReference struct { // The name of this referenced entity. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // The type of this referenced entity. Type *[IntegrationRuntimeEntityReferenceType](#IntegrationRuntimeEntityReferenceType) `json:"type,omitempty"` } ``` EntityReference - The entity reference. #### func (EntityReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18317) [¶](#EntityReference.MarshalJSON) added in v1.3.0 ``` func (e [EntityReference](#EntityReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type EntityReference. #### func (*EntityReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18325) [¶](#EntityReference.UnmarshalJSON) added in v1.3.0 ``` func (e *[EntityReference](#EntityReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type EntityReference. #### type [EnvironmentVariableSetup](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10749) [¶](#EnvironmentVariableSetup) ``` type EnvironmentVariableSetup struct { // REQUIRED; The type of custom setup. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Add environment variable type properties. TypeProperties *[EnvironmentVariableSetupTypeProperties](#EnvironmentVariableSetupTypeProperties) `json:"typeProperties,omitempty"` } ``` EnvironmentVariableSetup - The custom setup of setting environment variable. #### func (*EnvironmentVariableSetup) [GetCustomSetupBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10758) [¶](#EnvironmentVariableSetup.GetCustomSetupBase) added in v0.2.0 ``` func (e *[EnvironmentVariableSetup](#EnvironmentVariableSetup)) GetCustomSetupBase() *[CustomSetupBase](#CustomSetupBase) ``` GetCustomSetupBase implements the CustomSetupBaseClassification interface for type EnvironmentVariableSetup. #### func (EnvironmentVariableSetup) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18348) [¶](#EnvironmentVariableSetup.MarshalJSON) ``` func (e [EnvironmentVariableSetup](#EnvironmentVariableSetup)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetup. #### func (*EnvironmentVariableSetup) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18356) [¶](#EnvironmentVariableSetup.UnmarshalJSON) ``` func (e *[EnvironmentVariableSetup](#EnvironmentVariableSetup)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVariableSetup. #### type [EnvironmentVariableSetupTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10765) [¶](#EnvironmentVariableSetupTypeProperties) ``` type EnvironmentVariableSetupTypeProperties struct { // REQUIRED; The name of the environment variable. VariableName *[string](/builtin#string) `json:"variableName,omitempty"` // REQUIRED; The value of the environment variable. VariableValue *[string](/builtin#string) `json:"variableValue,omitempty"` } ``` EnvironmentVariableSetupTypeProperties - Environment variable custom setup type properties. #### func (EnvironmentVariableSetupTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18379) [¶](#EnvironmentVariableSetupTypeProperties.MarshalJSON) added in v1.3.0 ``` func (e [EnvironmentVariableSetupTypeProperties](#EnvironmentVariableSetupTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetupTypeProperties. #### func (*EnvironmentVariableSetupTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18387) [¶](#EnvironmentVariableSetupTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (e *[EnvironmentVariableSetupTypeProperties](#EnvironmentVariableSetupTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVariableSetupTypeProperties. #### type [EventSubscriptionStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L473) [¶](#EventSubscriptionStatus) ``` type EventSubscriptionStatus [string](/builtin#string) ``` EventSubscriptionStatus - Event Subscription Status. ``` const ( EventSubscriptionStatusDeprovisioning [EventSubscriptionStatus](#EventSubscriptionStatus) = "Deprovisioning" EventSubscriptionStatusDisabled [EventSubscriptionStatus](#EventSubscriptionStatus) = "Disabled" EventSubscriptionStatusEnabled [EventSubscriptionStatus](#EventSubscriptionStatus) = "Enabled" EventSubscriptionStatusProvisioning [EventSubscriptionStatus](#EventSubscriptionStatus) = "Provisioning" EventSubscriptionStatusUnknown [EventSubscriptionStatus](#EventSubscriptionStatus) = "Unknown" ) ``` #### func [PossibleEventSubscriptionStatusValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L484) [¶](#PossibleEventSubscriptionStatusValues) ``` func PossibleEventSubscriptionStatusValues() [][EventSubscriptionStatus](#EventSubscriptionStatus) ``` PossibleEventSubscriptionStatusValues returns the possible values for the EventSubscriptionStatus const type. #### type [ExcelDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10774) [¶](#ExcelDataset) ``` type ExcelDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Excel dataset properties. TypeProperties *[ExcelDatasetTypeProperties](#ExcelDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ExcelDataset - Excel dataset. #### func (*ExcelDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10808) [¶](#ExcelDataset.GetDataset) added in v0.2.0 ``` func (e *[ExcelDataset](#ExcelDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ExcelDataset. #### func (ExcelDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18410) [¶](#ExcelDataset.MarshalJSON) ``` func (e [ExcelDataset](#ExcelDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExcelDataset. #### func (*ExcelDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18430) [¶](#ExcelDataset.UnmarshalJSON) ``` func (e *[ExcelDataset](#ExcelDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExcelDataset. #### type [ExcelDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10823) [¶](#ExcelDatasetTypeProperties) ``` type ExcelDatasetTypeProperties struct { // REQUIRED; The location of the excel storage. Location [DatasetLocationClassification](#DatasetLocationClassification) `json:"location,omitempty"` // The data compression method used for the json dataset. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` // The null value string. Type: string (or Expression with resultType string). NullValue interface{} `json:"nullValue,omitempty"` // The partial data of one sheet. Type: string (or Expression with resultType string). Range interface{} `json:"range,omitempty"` // The sheet index of excel file and default value is 0. Type: integer (or Expression with resultType integer) SheetIndex interface{} `json:"sheetIndex,omitempty"` // The sheet name of excel file. Type: string (or Expression with resultType string). SheetName interface{} `json:"sheetName,omitempty"` } ``` ExcelDatasetTypeProperties - Excel dataset properties. #### func (ExcelDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18484) [¶](#ExcelDatasetTypeProperties.MarshalJSON) ``` func (e [ExcelDatasetTypeProperties](#ExcelDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExcelDatasetTypeProperties. #### func (*ExcelDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18497) [¶](#ExcelDatasetTypeProperties.UnmarshalJSON) ``` func (e *[ExcelDatasetTypeProperties](#ExcelDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExcelDatasetTypeProperties. #### type [ExcelSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10849) [¶](#ExcelSource) ``` type ExcelSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Excel store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` ExcelSource - A copy activity excel source. #### func (*ExcelSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10877) [¶](#ExcelSource.GetCopySource) added in v0.2.0 ``` func (e *[ExcelSource](#ExcelSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ExcelSource. #### func (ExcelSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18535) [¶](#ExcelSource.MarshalJSON) ``` func (e [ExcelSource](#ExcelSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExcelSource. #### func (*ExcelSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18553) [¶](#ExcelSource.UnmarshalJSON) ``` func (e *[ExcelSource](#ExcelSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExcelSource. #### type [ExecuteDataFlowActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10889) [¶](#ExecuteDataFlowActivity) ``` type ExecuteDataFlowActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Execute data flow activity properties. TypeProperties *[ExecuteDataFlowActivityTypeProperties](#ExecuteDataFlowActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ExecuteDataFlowActivity - Execute data flow activity. #### func (*ExecuteDataFlowActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10919) [¶](#ExecuteDataFlowActivity.GetActivity) added in v0.2.0 ``` func (e *[ExecuteDataFlowActivity](#ExecuteDataFlowActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ExecuteDataFlowActivity. #### func (*ExecuteDataFlowActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10931) [¶](#ExecuteDataFlowActivity.GetExecutionActivity) added in v0.2.0 ``` func (e *[ExecuteDataFlowActivity](#ExecuteDataFlowActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type ExecuteDataFlowActivity. #### func (ExecuteDataFlowActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18601) [¶](#ExecuteDataFlowActivity.MarshalJSON) ``` func (e [ExecuteDataFlowActivity](#ExecuteDataFlowActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivity. #### func (*ExecuteDataFlowActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18620) [¶](#ExecuteDataFlowActivity.UnmarshalJSON) ``` func (e *[ExecuteDataFlowActivity](#ExecuteDataFlowActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteDataFlowActivity. #### type [ExecuteDataFlowActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10945) [¶](#ExecuteDataFlowActivityTypeProperties) ``` type ExecuteDataFlowActivityTypeProperties struct { // REQUIRED; Data flow reference. DataFlow *[DataFlowReference](#DataFlowReference) `json:"dataFlow,omitempty"` // Compute properties for data flow activity. Compute *[ExecuteDataFlowActivityTypePropertiesCompute](#ExecuteDataFlowActivityTypePropertiesCompute) `json:"compute,omitempty"` // Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or // Expression with resultType boolean) ContinueOnError interface{} `json:"continueOnError,omitempty"` // The integration runtime reference. IntegrationRuntime *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"integrationRuntime,omitempty"` // Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. // Type: boolean (or Expression with resultType boolean) RunConcurrently interface{} `json:"runConcurrently,omitempty"` // Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` // Staging info for execute data flow activity. Staging *[DataFlowStagingInfo](#DataFlowStagingInfo) `json:"staging,omitempty"` // Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string // (or Expression with resultType string) TraceLevel interface{} `json:"traceLevel,omitempty"` } ``` ExecuteDataFlowActivityTypeProperties - Execute data flow activity properties. #### func (ExecuteDataFlowActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18671) [¶](#ExecuteDataFlowActivityTypeProperties.MarshalJSON) ``` func (e [ExecuteDataFlowActivityTypeProperties](#ExecuteDataFlowActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivityTypeProperties. #### func (*ExecuteDataFlowActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18685) [¶](#ExecuteDataFlowActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExecuteDataFlowActivityTypeProperties](#ExecuteDataFlowActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteDataFlowActivityTypeProperties. #### type [ExecuteDataFlowActivityTypePropertiesCompute](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10975) [¶](#ExecuteDataFlowActivityTypePropertiesCompute) ``` type ExecuteDataFlowActivityTypePropertiesCompute struct { // Compute type of the cluster which will execute data flow job. Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. // Type: string (or Expression with resultType string) ComputeType interface{} `json:"computeType,omitempty"` // Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. Type: // integer (or Expression with resultType integer) CoreCount interface{} `json:"coreCount,omitempty"` } ``` ExecuteDataFlowActivityTypePropertiesCompute - Compute properties for data flow activity. #### func (ExecuteDataFlowActivityTypePropertiesCompute) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18726) [¶](#ExecuteDataFlowActivityTypePropertiesCompute.MarshalJSON) added in v1.3.0 ``` func (e [ExecuteDataFlowActivityTypePropertiesCompute](#ExecuteDataFlowActivityTypePropertiesCompute)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivityTypePropertiesCompute. #### func (*ExecuteDataFlowActivityTypePropertiesCompute) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18734) [¶](#ExecuteDataFlowActivityTypePropertiesCompute.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExecuteDataFlowActivityTypePropertiesCompute](#ExecuteDataFlowActivityTypePropertiesCompute)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteDataFlowActivityTypePropertiesCompute. #### type [ExecutePipelineActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L10986) [¶](#ExecutePipelineActivity) ``` type ExecutePipelineActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Execute pipeline activity properties. TypeProperties *[ExecutePipelineActivityTypeProperties](#ExecutePipelineActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Execute pipeline activity policy. Policy *[ExecutePipelineActivityPolicy](#ExecutePipelineActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ExecutePipelineActivity - Execute pipeline activity. #### func (*ExecutePipelineActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11013) [¶](#ExecutePipelineActivity.GetActivity) added in v0.2.0 ``` func (e *[ExecutePipelineActivity](#ExecutePipelineActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ExecutePipelineActivity. #### func (*ExecutePipelineActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11025) [¶](#ExecutePipelineActivity.GetControlActivity) added in v0.2.0 ``` func (e *[ExecutePipelineActivity](#ExecutePipelineActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type ExecutePipelineActivity. #### func (ExecutePipelineActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18757) [¶](#ExecutePipelineActivity.MarshalJSON) ``` func (e [ExecutePipelineActivity](#ExecutePipelineActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivity. #### func (*ExecutePipelineActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18775) [¶](#ExecutePipelineActivity.UnmarshalJSON) ``` func (e *[ExecutePipelineActivity](#ExecutePipelineActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecutePipelineActivity. #### type [ExecutePipelineActivityPolicy](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11037) [¶](#ExecutePipelineActivityPolicy) added in v0.4.0 ``` type ExecutePipelineActivityPolicy struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // When set to true, Input from activity is considered as secure and will not be logged to monitoring. SecureInput *[bool](/builtin#bool) `json:"secureInput,omitempty"` } ``` ExecutePipelineActivityPolicy - Execution policy for an execute pipeline activity. #### func (ExecutePipelineActivityPolicy) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18823) [¶](#ExecutePipelineActivityPolicy.MarshalJSON) added in v0.4.0 ``` func (e [ExecutePipelineActivityPolicy](#ExecutePipelineActivityPolicy)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivityPolicy. #### func (*ExecutePipelineActivityPolicy) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18835) [¶](#ExecutePipelineActivityPolicy.UnmarshalJSON) added in v0.4.0 ``` func (e *[ExecutePipelineActivityPolicy](#ExecutePipelineActivityPolicy)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecutePipelineActivityPolicy. #### type [ExecutePipelineActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11046) [¶](#ExecutePipelineActivityTypeProperties) ``` type ExecutePipelineActivityTypeProperties struct { // REQUIRED; Pipeline reference. Pipeline *[PipelineReference](#PipelineReference) `json:"pipeline,omitempty"` // Pipeline parameters. Parameters map[[string](/builtin#string)]interface{} `json:"parameters,omitempty"` // Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. WaitOnCompletion *[bool](/builtin#bool) `json:"waitOnCompletion,omitempty"` } ``` ExecutePipelineActivityTypeProperties - Execute pipeline activity properties. #### func (ExecutePipelineActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18865) [¶](#ExecutePipelineActivityTypeProperties.MarshalJSON) ``` func (e [ExecutePipelineActivityTypeProperties](#ExecutePipelineActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivityTypeProperties. #### func (*ExecutePipelineActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18874) [¶](#ExecutePipelineActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExecutePipelineActivityTypeProperties](#ExecutePipelineActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecutePipelineActivityTypeProperties. #### type [ExecutePowerQueryActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11058) [¶](#ExecutePowerQueryActivityTypeProperties) ``` type ExecutePowerQueryActivityTypeProperties struct { // REQUIRED; Data flow reference. DataFlow *[DataFlowReference](#DataFlowReference) `json:"dataFlow,omitempty"` // Compute properties for data flow activity. Compute *[ExecuteDataFlowActivityTypePropertiesCompute](#ExecuteDataFlowActivityTypePropertiesCompute) `json:"compute,omitempty"` // Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or // Expression with resultType boolean) ContinueOnError interface{} `json:"continueOnError,omitempty"` // The integration runtime reference. IntegrationRuntime *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"integrationRuntime,omitempty"` // List of mapping for Power Query mashup query to sink dataset(s). Queries []*[PowerQuerySinkMapping](#PowerQuerySinkMapping) `json:"queries,omitempty"` // Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. // Type: boolean (or Expression with resultType boolean) RunConcurrently interface{} `json:"runConcurrently,omitempty"` // (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName. Sinks map[[string](/builtin#string)]*[PowerQuerySink](#PowerQuerySink) `json:"sinks,omitempty"` // Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` // Staging info for execute data flow activity. Staging *[DataFlowStagingInfo](#DataFlowStagingInfo) `json:"staging,omitempty"` // Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string // (or Expression with resultType string) TraceLevel interface{} `json:"traceLevel,omitempty"` } ``` ExecutePowerQueryActivityTypeProperties - Execute power query data flow activity properties. #### func (ExecutePowerQueryActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18900) [¶](#ExecutePowerQueryActivityTypeProperties.MarshalJSON) ``` func (e [ExecutePowerQueryActivityTypeProperties](#ExecutePowerQueryActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecutePowerQueryActivityTypeProperties. #### func (*ExecutePowerQueryActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18916) [¶](#ExecutePowerQueryActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExecutePowerQueryActivityTypeProperties](#ExecutePowerQueryActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecutePowerQueryActivityTypeProperties. #### type [ExecuteSSISPackageActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11094) [¶](#ExecuteSSISPackageActivity) ``` type ExecuteSSISPackageActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Execute SSIS package activity properties. TypeProperties *[ExecuteSSISPackageActivityTypeProperties](#ExecuteSSISPackageActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ExecuteSSISPackageActivity - Execute SSIS package activity. #### func (*ExecuteSSISPackageActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11124) [¶](#ExecuteSSISPackageActivity.GetActivity) added in v0.2.0 ``` func (e *[ExecuteSSISPackageActivity](#ExecuteSSISPackageActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ExecuteSSISPackageActivity. #### func (*ExecuteSSISPackageActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11136) [¶](#ExecuteSSISPackageActivity.GetExecutionActivity) added in v0.2.0 ``` func (e *[ExecuteSSISPackageActivity](#ExecuteSSISPackageActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type ExecuteSSISPackageActivity. #### func (ExecuteSSISPackageActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18963) [¶](#ExecuteSSISPackageActivity.MarshalJSON) ``` func (e [ExecuteSSISPackageActivity](#ExecuteSSISPackageActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecuteSSISPackageActivity. #### func (*ExecuteSSISPackageActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L18982) [¶](#ExecuteSSISPackageActivity.UnmarshalJSON) ``` func (e *[ExecuteSSISPackageActivity](#ExecuteSSISPackageActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteSSISPackageActivity. #### type [ExecuteSSISPackageActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11150) [¶](#ExecuteSSISPackageActivityTypeProperties) ``` type ExecuteSSISPackageActivityTypeProperties struct { // REQUIRED; The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // REQUIRED; SSIS package location. PackageLocation *[SSISPackageLocation](#SSISPackageLocation) `json:"packageLocation,omitempty"` // The environment path to execute the SSIS package. Type: string (or Expression with resultType string). EnvironmentPath interface{} `json:"environmentPath,omitempty"` // The package execution credential. ExecutionCredential *[SSISExecutionCredential](#SSISExecutionCredential) `json:"executionCredential,omitempty"` // SSIS package execution log location. LogLocation *[SSISLogLocation](#SSISLogLocation) `json:"logLocation,omitempty"` // The logging level of SSIS package execution. Type: string (or Expression with resultType string). LoggingLevel interface{} `json:"loggingLevel,omitempty"` // The package level connection managers to execute the SSIS package. PackageConnectionManagers map[[string](/builtin#string)]map[[string](/builtin#string)]*[SSISExecutionParameter](#SSISExecutionParameter) `json:"packageConnectionManagers,omitempty"` // The package level parameters to execute the SSIS package. PackageParameters map[[string](/builtin#string)]*[SSISExecutionParameter](#SSISExecutionParameter) `json:"packageParameters,omitempty"` // The project level connection managers to execute the SSIS package. ProjectConnectionManagers map[[string](/builtin#string)]map[[string](/builtin#string)]*[SSISExecutionParameter](#SSISExecutionParameter) `json:"projectConnectionManagers,omitempty"` // The project level parameters to execute the SSIS package. ProjectParameters map[[string](/builtin#string)]*[SSISExecutionParameter](#SSISExecutionParameter) `json:"projectParameters,omitempty"` // The property overrides to execute the SSIS package. PropertyOverrides map[[string](/builtin#string)]*[SSISPropertyOverride](#SSISPropertyOverride) `json:"propertyOverrides,omitempty"` // Specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType // string). Runtime interface{} `json:"runtime,omitempty"` } ``` ExecuteSSISPackageActivityTypeProperties - Execute SSIS package activity properties. #### func (ExecuteSSISPackageActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19033) [¶](#ExecuteSSISPackageActivityTypeProperties.MarshalJSON) ``` func (e [ExecuteSSISPackageActivityTypeProperties](#ExecuteSSISPackageActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecuteSSISPackageActivityTypeProperties. #### func (*ExecuteSSISPackageActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19051) [¶](#ExecuteSSISPackageActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExecuteSSISPackageActivityTypeProperties](#ExecuteSSISPackageActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteSSISPackageActivityTypeProperties. #### type [ExecuteWranglingDataflowActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11190) [¶](#ExecuteWranglingDataflowActivity) ``` type ExecuteWranglingDataflowActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Execute power query activity properties. TypeProperties *[ExecutePowerQueryActivityTypeProperties](#ExecutePowerQueryActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ExecuteWranglingDataflowActivity - Execute power query activity. #### func (*ExecuteWranglingDataflowActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11217) [¶](#ExecuteWranglingDataflowActivity.GetActivity) added in v0.2.0 ``` func (e *[ExecuteWranglingDataflowActivity](#ExecuteWranglingDataflowActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ExecuteWranglingDataflowActivity. #### func (ExecuteWranglingDataflowActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19104) [¶](#ExecuteWranglingDataflowActivity.MarshalJSON) ``` func (e [ExecuteWranglingDataflowActivity](#ExecuteWranglingDataflowActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecuteWranglingDataflowActivity. #### func (*ExecuteWranglingDataflowActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19122) [¶](#ExecuteWranglingDataflowActivity.UnmarshalJSON) ``` func (e *[ExecuteWranglingDataflowActivity](#ExecuteWranglingDataflowActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteWranglingDataflowActivity. #### type [ExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11244) [¶](#ExecutionActivity) ``` type ExecutionActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ExecutionActivity - Base class for all execution activities. #### func (*ExecutionActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11271) [¶](#ExecutionActivity.GetActivity) added in v0.2.0 ``` func (e *[ExecutionActivity](#ExecutionActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ExecutionActivity. #### func (*ExecutionActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11283) [¶](#ExecutionActivity.GetExecutionActivity) ``` func (e *[ExecutionActivity](#ExecutionActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type ExecutionActivity. #### func (ExecutionActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19170) [¶](#ExecutionActivity.MarshalJSON) ``` func (e [ExecutionActivity](#ExecutionActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExecutionActivity. #### func (*ExecutionActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19188) [¶](#ExecutionActivity.UnmarshalJSON) ``` func (e *[ExecutionActivity](#ExecutionActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExecutionActivity. #### type [ExecutionActivityClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11237) [¶](#ExecutionActivityClassification) ``` type ExecutionActivityClassification interface { [ActivityClassification](#ActivityClassification) // GetExecutionActivity returns the ExecutionActivity content of the underlying type. GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) } ``` ExecutionActivityClassification provides polymorphic access to related types. Call the interface's GetExecutionActivity() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureDataExplorerCommandActivity, *AzureFunctionActivity, *AzureMLBatchExecutionActivity, *AzureMLExecutePipelineActivity, - *AzureMLUpdateResourceActivity, *CopyActivity, *CustomActivity, *DataLakeAnalyticsUSQLActivity, *DatabricksNotebookActivity, - *DatabricksSparkJarActivity, *DatabricksSparkPythonActivity, *DeleteActivity, *ExecuteDataFlowActivity, *ExecuteSSISPackageActivity, - *ExecutionActivity, *GetMetadataActivity, *HDInsightHiveActivity, *HDInsightMapReduceActivity, *HDInsightPigActivity, - *HDInsightSparkActivity, *HDInsightStreamingActivity, *LookupActivity, *SQLServerStoredProcedureActivity, *ScriptActivity, - *SynapseNotebookActivity, *SynapseSparkJobDefinitionActivity, *WebActivity #### type [ExportSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11295) [¶](#ExportSettings) ``` type ExportSettings struct { // REQUIRED; The export setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` ExportSettings - Export command settings. #### func (*ExportSettings) [GetExportSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11304) [¶](#ExportSettings.GetExportSettings) ``` func (e *[ExportSettings](#ExportSettings)) GetExportSettings() *[ExportSettings](#ExportSettings) ``` GetExportSettings implements the ExportSettingsClassification interface for type ExportSettings. #### func (ExportSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19236) [¶](#ExportSettings.MarshalJSON) added in v0.2.0 ``` func (e [ExportSettings](#ExportSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExportSettings. #### func (*ExportSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19248) [¶](#ExportSettings.UnmarshalJSON) ``` func (e *[ExportSettings](#ExportSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExportSettings. #### type [ExportSettingsClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11289) [¶](#ExportSettingsClassification) ``` type ExportSettingsClassification interface { // GetExportSettings returns the ExportSettings content of the underlying type. GetExportSettings() *[ExportSettings](#ExportSettings) } ``` ExportSettingsClassification provides polymorphic access to related types. Call the interface's GetExportSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureDatabricksDeltaLakeExportCommand, *ExportSettings, *SnowflakeExportCopyCommand #### type [ExposureControlBatchRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11307) [¶](#ExposureControlBatchRequest) ``` type ExposureControlBatchRequest struct { // REQUIRED; List of exposure control features. ExposureControlRequests []*[ExposureControlRequest](#ExposureControlRequest) `json:"exposureControlRequests,omitempty"` } ``` ExposureControlBatchRequest - A list of exposure control features. #### func (ExposureControlBatchRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19278) [¶](#ExposureControlBatchRequest.MarshalJSON) ``` func (e [ExposureControlBatchRequest](#ExposureControlBatchRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExposureControlBatchRequest. #### func (*ExposureControlBatchRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19285) [¶](#ExposureControlBatchRequest.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExposureControlBatchRequest](#ExposureControlBatchRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExposureControlBatchRequest. #### type [ExposureControlBatchResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11313) [¶](#ExposureControlBatchResponse) ``` type ExposureControlBatchResponse struct { // REQUIRED; List of exposure control feature values. ExposureControlResponses []*[ExposureControlResponse](#ExposureControlResponse) `json:"exposureControlResponses,omitempty"` } ``` ExposureControlBatchResponse - A list of exposure control feature values. #### func (ExposureControlBatchResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19305) [¶](#ExposureControlBatchResponse.MarshalJSON) ``` func (e [ExposureControlBatchResponse](#ExposureControlBatchResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExposureControlBatchResponse. #### func (*ExposureControlBatchResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19312) [¶](#ExposureControlBatchResponse.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExposureControlBatchResponse](#ExposureControlBatchResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExposureControlBatchResponse. #### type [ExposureControlClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go#L28) [¶](#ExposureControlClient) ``` type ExposureControlClient struct { // contains filtered or unexported fields } ``` ExposureControlClient contains the methods for the ExposureControl group. Don't use this type directly, use NewExposureControlClient() instead. #### func [NewExposureControlClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go#L38) [¶](#NewExposureControlClient) ``` func NewExposureControlClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[ExposureControlClient](#ExposureControlClient), [error](/builtin#error)) ``` NewExposureControlClient creates a new instance of ExposureControlClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*ExposureControlClient) [GetFeatureValue](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go#L65) [¶](#ExposureControlClient.GetFeatureValue) ``` func (client *[ExposureControlClient](#ExposureControlClient)) GetFeatureValue(ctx [context](/context).[Context](/context#Context), locationID [string](/builtin#string), exposureControlRequest [ExposureControlRequest](#ExposureControlRequest), options *[ExposureControlClientGetFeatureValueOptions](#ExposureControlClientGetFeatureValueOptions)) ([ExposureControlClientGetFeatureValueResponse](#ExposureControlClientGetFeatureValueResponse), [error](/builtin#error)) ``` GetFeatureValue - Get exposure control feature for specific location. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 locationID - The location identifier. exposureControlRequest - The exposure control request. options - ExposureControlClientGetFeatureValueOptions contains the optional parameters for the ExposureControlClient.GetFeatureValue method. Example [¶](#example-ExposureControlClient.GetFeatureValue) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewExposureControlClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetFeatureValue(ctx, "WestEurope", armdatafactory.ExposureControlRequest{ FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), FeatureType: to.Ptr("Feature"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*ExposureControlClient) [GetFeatureValueByFactory](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go#L119) [¶](#ExposureControlClient.GetFeatureValueByFactory) ``` func (client *[ExposureControlClient](#ExposureControlClient)) GetFeatureValueByFactory(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), exposureControlRequest [ExposureControlRequest](#ExposureControlRequest), options *[ExposureControlClientGetFeatureValueByFactoryOptions](#ExposureControlClientGetFeatureValueByFactoryOptions)) ([ExposureControlClientGetFeatureValueByFactoryResponse](#ExposureControlClientGetFeatureValueByFactoryResponse), [error](/builtin#error)) ``` GetFeatureValueByFactory - Get exposure control feature for specific factory. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. exposureControlRequest - The exposure control request. options - ExposureControlClientGetFeatureValueByFactoryOptions contains the optional parameters for the ExposureControlClient.GetFeatureValueByFactory method. Example [¶](#example-ExposureControlClient.GetFeatureValueByFactory) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewExposureControlClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetFeatureValueByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.ExposureControlRequest{ FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), FeatureType: to.Ptr("Feature"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*ExposureControlClient) [QueryFeatureValuesByFactory](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go#L177) [¶](#ExposureControlClient.QueryFeatureValuesByFactory) ``` func (client *[ExposureControlClient](#ExposureControlClient)) QueryFeatureValuesByFactory(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), exposureControlBatchRequest [ExposureControlBatchRequest](#ExposureControlBatchRequest), options *[ExposureControlClientQueryFeatureValuesByFactoryOptions](#ExposureControlClientQueryFeatureValuesByFactoryOptions)) ([ExposureControlClientQueryFeatureValuesByFactoryResponse](#ExposureControlClientQueryFeatureValuesByFactoryResponse), [error](/builtin#error)) ``` QueryFeatureValuesByFactory - Get list of exposure control features for specific factory. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. exposureControlBatchRequest - The exposure control request for list of features. options - ExposureControlClientQueryFeatureValuesByFactoryOptions contains the optional parameters for the ExposureControlClient.QueryFeatureValuesByFactory method. Example [¶](#example-ExposureControlClient.QueryFeatureValuesByFactory) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewExposureControlClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.QueryFeatureValuesByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.ExposureControlBatchRequest{ ExposureControlRequests: []*armdatafactory.ExposureControlRequest{ { FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), FeatureType: to.Ptr("Feature"), }, { FeatureName: to.Ptr("ADFSampleFeature"), FeatureType: to.Ptr("Feature"), }}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [ExposureControlClientGetFeatureValueByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11320) [¶](#ExposureControlClientGetFeatureValueByFactoryOptions) added in v0.2.0 ``` type ExposureControlClientGetFeatureValueByFactoryOptions struct { } ``` ExposureControlClientGetFeatureValueByFactoryOptions contains the optional parameters for the ExposureControlClient.GetFeatureValueByFactory method. #### type [ExposureControlClientGetFeatureValueByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L83) [¶](#ExposureControlClientGetFeatureValueByFactoryResponse) added in v0.2.0 ``` type ExposureControlClientGetFeatureValueByFactoryResponse struct { [ExposureControlResponse](#ExposureControlResponse) } ``` ExposureControlClientGetFeatureValueByFactoryResponse contains the response from method ExposureControlClient.GetFeatureValueByFactory. #### type [ExposureControlClientGetFeatureValueOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11326) [¶](#ExposureControlClientGetFeatureValueOptions) added in v0.2.0 ``` type ExposureControlClientGetFeatureValueOptions struct { } ``` ExposureControlClientGetFeatureValueOptions contains the optional parameters for the ExposureControlClient.GetFeatureValue method. #### type [ExposureControlClientGetFeatureValueResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L88) [¶](#ExposureControlClientGetFeatureValueResponse) added in v0.2.0 ``` type ExposureControlClientGetFeatureValueResponse struct { [ExposureControlResponse](#ExposureControlResponse) } ``` ExposureControlClientGetFeatureValueResponse contains the response from method ExposureControlClient.GetFeatureValue. #### type [ExposureControlClientQueryFeatureValuesByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11332) [¶](#ExposureControlClientQueryFeatureValuesByFactoryOptions) added in v0.2.0 ``` type ExposureControlClientQueryFeatureValuesByFactoryOptions struct { } ``` ExposureControlClientQueryFeatureValuesByFactoryOptions contains the optional parameters for the ExposureControlClient.QueryFeatureValuesByFactory method. #### type [ExposureControlClientQueryFeatureValuesByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L93) [¶](#ExposureControlClientQueryFeatureValuesByFactoryResponse) added in v0.2.0 ``` type ExposureControlClientQueryFeatureValuesByFactoryResponse struct { [ExposureControlBatchResponse](#ExposureControlBatchResponse) } ``` ExposureControlClientQueryFeatureValuesByFactoryResponse contains the response from method ExposureControlClient.QueryFeatureValuesByFactory. #### type [ExposureControlRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11337) [¶](#ExposureControlRequest) ``` type ExposureControlRequest struct { // The feature name. FeatureName *[string](/builtin#string) `json:"featureName,omitempty"` // The feature type. FeatureType *[string](/builtin#string) `json:"featureType,omitempty"` } ``` ExposureControlRequest - The exposure control request. #### func (ExposureControlRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19332) [¶](#ExposureControlRequest.MarshalJSON) added in v1.3.0 ``` func (e [ExposureControlRequest](#ExposureControlRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExposureControlRequest. #### func (*ExposureControlRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19340) [¶](#ExposureControlRequest.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExposureControlRequest](#ExposureControlRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExposureControlRequest. #### type [ExposureControlResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11346) [¶](#ExposureControlResponse) ``` type ExposureControlResponse struct { // READ-ONLY; The feature name. FeatureName *[string](/builtin#string) `json:"featureName,omitempty" azure:"ro"` // READ-ONLY; The feature value. Value *[string](/builtin#string) `json:"value,omitempty" azure:"ro"` } ``` ExposureControlResponse - The exposure control response. #### func (ExposureControlResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19363) [¶](#ExposureControlResponse.MarshalJSON) added in v1.3.0 ``` func (e [ExposureControlResponse](#ExposureControlResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ExposureControlResponse. #### func (*ExposureControlResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19371) [¶](#ExposureControlResponse.UnmarshalJSON) added in v1.3.0 ``` func (e *[ExposureControlResponse](#ExposureControlResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ExposureControlResponse. #### type [Expression](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11355) [¶](#Expression) ``` type Expression struct { // REQUIRED; Expression type. Type *[ExpressionType](#ExpressionType) `json:"type,omitempty"` // REQUIRED; Expression value. Value *[string](/builtin#string) `json:"value,omitempty"` } ``` Expression - Azure Data Factory expression definition. #### func (Expression) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19394) [¶](#Expression.MarshalJSON) added in v1.3.0 ``` func (e [Expression](#Expression)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Expression. #### func (*Expression) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19402) [¶](#Expression.UnmarshalJSON) added in v1.3.0 ``` func (e *[Expression](#Expression)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Expression. #### type [ExpressionType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L495) [¶](#ExpressionType) ``` type ExpressionType [string](/builtin#string) ``` ExpressionType - Expression type. ``` const ( ExpressionTypeExpression [ExpressionType](#ExpressionType) = "Expression" ) ``` #### func [PossibleExpressionTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L502) [¶](#PossibleExpressionTypeValues) ``` func PossibleExpressionTypeValues() [][ExpressionType](#ExpressionType) ``` PossibleExpressionTypeValues returns the possible values for the ExpressionType const type. #### type [FactoriesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L28) [¶](#FactoriesClient) ``` type FactoriesClient struct { // contains filtered or unexported fields } ``` FactoriesClient contains the methods for the Factories group. Don't use this type directly, use NewFactoriesClient() instead. #### func [NewFactoriesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L38) [¶](#NewFactoriesClient) ``` func NewFactoriesClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[FactoriesClient](#FactoriesClient), [error](/builtin#error)) ``` NewFactoriesClient creates a new instance of FactoriesClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*FactoriesClient) [ConfigureFactoryRepo](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L65) [¶](#FactoriesClient.ConfigureFactoryRepo) ``` func (client *[FactoriesClient](#FactoriesClient)) ConfigureFactoryRepo(ctx [context](/context).[Context](/context#Context), locationID [string](/builtin#string), factoryRepoUpdate [FactoryRepoUpdate](#FactoryRepoUpdate), options *[FactoriesClientConfigureFactoryRepoOptions](#FactoriesClientConfigureFactoryRepoOptions)) ([FactoriesClientConfigureFactoryRepoResponse](#FactoriesClientConfigureFactoryRepoResponse), [error](/builtin#error)) ``` ConfigureFactoryRepo - Updates a factory's repo information. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 locationID - The location identifier. factoryRepoUpdate - Update factory repo request definition. options - FactoriesClientConfigureFactoryRepoOptions contains the optional parameters for the FactoriesClient.ConfigureFactoryRepo method. Example [¶](#example-FactoriesClient.ConfigureFactoryRepo) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ConfigureFactoryRepo(ctx, "East US", armdatafactory.FactoryRepoUpdate{ FactoryResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ Type: to.Ptr("FactoryVSTSConfiguration"), AccountName: to.Ptr("ADF"), CollaborationBranch: to.Ptr("master"), LastCommitID: to.Ptr(""), RepositoryName: to.Ptr("repo"), RootFolder: to.Ptr("/"), ProjectName: to.Ptr("project"), TenantID: to.Ptr(""), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*FactoriesClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L119) [¶](#FactoriesClient.CreateOrUpdate) ``` func (client *[FactoriesClient](#FactoriesClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), factory [Factory](#Factory), options *[FactoriesClientCreateOrUpdateOptions](#FactoriesClientCreateOrUpdateOptions)) ([FactoriesClientCreateOrUpdateResponse](#FactoriesClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a factory. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. factory - Factory resource definition. options - FactoriesClientCreateOrUpdateOptions contains the optional parameters for the FactoriesClient.CreateOrUpdate method. Example [¶](#example-FactoriesClient.CreateOrUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.Factory{ Location: to.Ptr("East US"), }, &armdatafactory.FactoriesClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*FactoriesClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L178) [¶](#FactoriesClient.Delete) ``` func (client *[FactoriesClient](#FactoriesClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[FactoriesClientDeleteOptions](#FactoriesClientDeleteOptions)) ([FactoriesClientDeleteResponse](#FactoriesClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a factory. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - FactoriesClientDeleteOptions contains the optional parameters for the FactoriesClient.Delete method. Example [¶](#example-FactoriesClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*FactoriesClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L225) [¶](#FactoriesClient.Get) ``` func (client *[FactoriesClient](#FactoriesClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[FactoriesClientGetOptions](#FactoriesClientGetOptions)) ([FactoriesClientGetResponse](#FactoriesClientGetResponse), [error](/builtin#error)) ``` Get - Gets a factory. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - FactoriesClientGetOptions contains the optional parameters for the FactoriesClient.Get method. Example [¶](#example-FactoriesClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", &armdatafactory.FactoriesClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*FactoriesClient) [GetDataPlaneAccess](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L286) [¶](#FactoriesClient.GetDataPlaneAccess) ``` func (client *[FactoriesClient](#FactoriesClient)) GetDataPlaneAccess(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), policy [UserAccessPolicy](#UserAccessPolicy), options *[FactoriesClientGetDataPlaneAccessOptions](#FactoriesClientGetDataPlaneAccessOptions)) ([FactoriesClientGetDataPlaneAccessResponse](#FactoriesClientGetDataPlaneAccessResponse), [error](/builtin#error)) ``` GetDataPlaneAccess - Get Data Plane access. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. policy - Data Plane user access policy definition. options - FactoriesClientGetDataPlaneAccessOptions contains the optional parameters for the FactoriesClient.GetDataPlaneAccess method. Example [¶](#example-FactoriesClient.GetDataPlaneAccess) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetDataPlaneAccess(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.UserAccessPolicy{ AccessResourcePath: to.Ptr(""), ExpireTime: to.Ptr("2018-11-10T09:46:20.2659347Z"), Permissions: to.Ptr("r"), ProfileName: to.Ptr("DefaultProfile"), StartTime: to.Ptr("2018-11-10T02:46:20.2659347Z"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*FactoriesClient) [GetGitHubAccessToken](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L344) [¶](#FactoriesClient.GetGitHubAccessToken) ``` func (client *[FactoriesClient](#FactoriesClient)) GetGitHubAccessToken(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), gitHubAccessTokenRequest [GitHubAccessTokenRequest](#GitHubAccessTokenRequest), options *[FactoriesClientGetGitHubAccessTokenOptions](#FactoriesClientGetGitHubAccessTokenOptions)) ([FactoriesClientGetGitHubAccessTokenResponse](#FactoriesClientGetGitHubAccessTokenResponse), [error](/builtin#error)) ``` GetGitHubAccessToken - Get GitHub Access Token. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. gitHubAccessTokenRequest - Get GitHub access token request definition. options - FactoriesClientGetGitHubAccessTokenOptions contains the optional parameters for the FactoriesClient.GetGitHubAccessToken method. Example [¶](#example-FactoriesClient.GetGitHubAccessToken) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetGitHubAccessToken(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.GitHubAccessTokenRequest{ GitHubAccessCode: to.Ptr("some"), GitHubAccessTokenBaseURL: to.Ptr("some"), GitHubClientID: to.Ptr("some"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*FactoriesClient) [NewListByResourceGroupPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L459) [¶](#FactoriesClient.NewListByResourceGroupPager) added in v0.5.0 ``` func (client *[FactoriesClient](#FactoriesClient)) NewListByResourceGroupPager(resourceGroupName [string](/builtin#string), options *[FactoriesClientListByResourceGroupOptions](#FactoriesClientListByResourceGroupOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[FactoriesClientListByResourceGroupResponse](#FactoriesClientListByResourceGroupResponse)] ``` NewListByResourceGroupPager - Lists factories. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. options - FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.ListByResourceGroup method. Example [¶](#example-FactoriesClient.NewListByResourceGroupPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("exampleResourceGroup", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### func (*FactoriesClient) [NewListPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L398) [¶](#FactoriesClient.NewListPager) added in v0.5.0 ``` func (client *[FactoriesClient](#FactoriesClient)) NewListPager(options *[FactoriesClientListOptions](#FactoriesClientListOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[FactoriesClientListResponse](#FactoriesClientListResponse)] ``` NewListPager - Lists factories under the specified subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 options - FactoriesClientListOptions contains the optional parameters for the FactoriesClient.List method. Example [¶](#example-FactoriesClient.NewListPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### func (*FactoriesClient) [Update](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go#L525) [¶](#FactoriesClient.Update) ``` func (client *[FactoriesClient](#FactoriesClient)) Update(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), factoryUpdateParameters [FactoryUpdateParameters](#FactoryUpdateParameters), options *[FactoriesClientUpdateOptions](#FactoriesClientUpdateOptions)) ([FactoriesClientUpdateResponse](#FactoriesClientUpdateResponse), [error](/builtin#error)) ``` Update - Updates a factory. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. factoryUpdateParameters - The parameters for updating a factory. options - FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. Example [¶](#example-FactoriesClient.Update) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.FactoryUpdateParameters{ Tags: map[string]*string{ "exampleTag": to.Ptr("exampleValue"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [FactoriesClientConfigureFactoryRepoOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11365) [¶](#FactoriesClientConfigureFactoryRepoOptions) added in v0.2.0 ``` type FactoriesClientConfigureFactoryRepoOptions struct { } ``` FactoriesClientConfigureFactoryRepoOptions contains the optional parameters for the FactoriesClient.ConfigureFactoryRepo method. #### type [FactoriesClientConfigureFactoryRepoResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L98) [¶](#FactoriesClientConfigureFactoryRepoResponse) added in v0.2.0 ``` type FactoriesClientConfigureFactoryRepoResponse struct { [Factory](#Factory) } ``` FactoriesClientConfigureFactoryRepoResponse contains the response from method FactoriesClient.ConfigureFactoryRepo. #### type [FactoriesClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11370) [¶](#FactoriesClientCreateOrUpdateOptions) added in v0.2.0 ``` type FactoriesClientCreateOrUpdateOptions struct { // ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * // for unconditional update. IfMatch *[string](/builtin#string) } ``` FactoriesClientCreateOrUpdateOptions contains the optional parameters for the FactoriesClient.CreateOrUpdate method. #### type [FactoriesClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L103) [¶](#FactoriesClientCreateOrUpdateResponse) added in v0.2.0 ``` type FactoriesClientCreateOrUpdateResponse struct { [Factory](#Factory) } ``` FactoriesClientCreateOrUpdateResponse contains the response from method FactoriesClient.CreateOrUpdate. #### type [FactoriesClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11377) [¶](#FactoriesClientDeleteOptions) added in v0.2.0 ``` type FactoriesClientDeleteOptions struct { } ``` FactoriesClientDeleteOptions contains the optional parameters for the FactoriesClient.Delete method. #### type [FactoriesClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L108) [¶](#FactoriesClientDeleteResponse) added in v0.2.0 ``` type FactoriesClientDeleteResponse struct { } ``` FactoriesClientDeleteResponse contains the response from method FactoriesClient.Delete. #### type [FactoriesClientGetDataPlaneAccessOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11382) [¶](#FactoriesClientGetDataPlaneAccessOptions) added in v0.2.0 ``` type FactoriesClientGetDataPlaneAccessOptions struct { } ``` FactoriesClientGetDataPlaneAccessOptions contains the optional parameters for the FactoriesClient.GetDataPlaneAccess method. #### type [FactoriesClientGetDataPlaneAccessResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L113) [¶](#FactoriesClientGetDataPlaneAccessResponse) added in v0.2.0 ``` type FactoriesClientGetDataPlaneAccessResponse struct { [AccessPolicyResponse](#AccessPolicyResponse) } ``` FactoriesClientGetDataPlaneAccessResponse contains the response from method FactoriesClient.GetDataPlaneAccess. #### type [FactoriesClientGetGitHubAccessTokenOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11388) [¶](#FactoriesClientGetGitHubAccessTokenOptions) added in v0.2.0 ``` type FactoriesClientGetGitHubAccessTokenOptions struct { } ``` FactoriesClientGetGitHubAccessTokenOptions contains the optional parameters for the FactoriesClient.GetGitHubAccessToken method. #### type [FactoriesClientGetGitHubAccessTokenResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L118) [¶](#FactoriesClientGetGitHubAccessTokenResponse) added in v0.2.0 ``` type FactoriesClientGetGitHubAccessTokenResponse struct { [GitHubAccessTokenResponse](#GitHubAccessTokenResponse) } ``` FactoriesClientGetGitHubAccessTokenResponse contains the response from method FactoriesClient.GetGitHubAccessToken. #### type [FactoriesClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11393) [¶](#FactoriesClientGetOptions) added in v0.2.0 ``` type FactoriesClientGetOptions struct { // ETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was // provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` FactoriesClientGetOptions contains the optional parameters for the FactoriesClient.Get method. #### type [FactoriesClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L123) [¶](#FactoriesClientGetResponse) added in v0.2.0 ``` type FactoriesClientGetResponse struct { [Factory](#Factory) } ``` FactoriesClientGetResponse contains the response from method FactoriesClient.Get. #### type [FactoriesClientListByResourceGroupOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11401) [¶](#FactoriesClientListByResourceGroupOptions) added in v0.2.0 ``` type FactoriesClientListByResourceGroupOptions struct { } ``` FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.ListByResourceGroup method. #### type [FactoriesClientListByResourceGroupResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L128) [¶](#FactoriesClientListByResourceGroupResponse) added in v0.2.0 ``` type FactoriesClientListByResourceGroupResponse struct { [FactoryListResponse](#FactoryListResponse) } ``` FactoriesClientListByResourceGroupResponse contains the response from method FactoriesClient.ListByResourceGroup. #### type [FactoriesClientListOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11406) [¶](#FactoriesClientListOptions) added in v0.2.0 ``` type FactoriesClientListOptions struct { } ``` FactoriesClientListOptions contains the optional parameters for the FactoriesClient.List method. #### type [FactoriesClientListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L133) [¶](#FactoriesClientListResponse) added in v0.2.0 ``` type FactoriesClientListResponse struct { [FactoryListResponse](#FactoryListResponse) } ``` FactoriesClientListResponse contains the response from method FactoriesClient.List. #### type [FactoriesClientUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11411) [¶](#FactoriesClientUpdateOptions) added in v0.2.0 ``` type FactoriesClientUpdateOptions struct { } ``` FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. #### type [FactoriesClientUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L138) [¶](#FactoriesClientUpdateResponse) added in v0.2.0 ``` type FactoriesClientUpdateResponse struct { [Factory](#Factory) } ``` FactoriesClientUpdateResponse contains the response from method FactoriesClient.Update. #### type [Factory](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11416) [¶](#Factory) ``` type Factory struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Managed service identity of the factory. Identity *[FactoryIdentity](#FactoryIdentity) `json:"identity,omitempty"` // The resource location. Location *[string](/builtin#string) `json:"location,omitempty"` // Properties of the factory. Properties *[FactoryProperties](#FactoryProperties) `json:"properties,omitempty"` // The resource tags. Tags map[[string](/builtin#string)]*[string](/builtin#string) `json:"tags,omitempty"` // READ-ONLY; Etag identifies change in the resource. ETag *[string](/builtin#string) `json:"eTag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` Factory resource type. #### func (Factory) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19425) [¶](#Factory.MarshalJSON) ``` func (f [Factory](#Factory)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Factory. #### func (*Factory) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19444) [¶](#Factory.UnmarshalJSON) ``` func (f *[Factory](#Factory)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Factory. #### type [FactoryGitHubConfiguration](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11446) [¶](#FactoryGitHubConfiguration) ``` type FactoryGitHubConfiguration struct { // REQUIRED; Account name. AccountName *[string](/builtin#string) `json:"accountName,omitempty"` // REQUIRED; Collaboration branch. CollaborationBranch *[string](/builtin#string) `json:"collaborationBranch,omitempty"` // REQUIRED; Repository name. RepositoryName *[string](/builtin#string) `json:"repositoryName,omitempty"` // REQUIRED; Root folder. RootFolder *[string](/builtin#string) `json:"rootFolder,omitempty"` // REQUIRED; Type of repo configuration. Type *[string](/builtin#string) `json:"type,omitempty"` // GitHub bring your own app client id. ClientID *[string](/builtin#string) `json:"clientId,omitempty"` // GitHub bring your own app client secret information. ClientSecret *[GitHubClientSecret](#GitHubClientSecret) `json:"clientSecret,omitempty"` // GitHub Enterprise host name. For example: <https://github.mydomain.com> HostName *[string](/builtin#string) `json:"hostName,omitempty"` // Last commit id. LastCommitID *[string](/builtin#string) `json:"lastCommitId,omitempty"` } ``` FactoryGitHubConfiguration - Factory's GitHub repo information. #### func (*FactoryGitHubConfiguration) [GetFactoryRepoConfiguration](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11476) [¶](#FactoryGitHubConfiguration.GetFactoryRepoConfiguration) added in v0.2.0 ``` func (f *[FactoryGitHubConfiguration](#FactoryGitHubConfiguration)) GetFactoryRepoConfiguration() *[FactoryRepoConfiguration](#FactoryRepoConfiguration) ``` GetFactoryRepoConfiguration implements the FactoryRepoConfigurationClassification interface for type FactoryGitHubConfiguration. #### func (FactoryGitHubConfiguration) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19495) [¶](#FactoryGitHubConfiguration.MarshalJSON) ``` func (f [FactoryGitHubConfiguration](#FactoryGitHubConfiguration)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryGitHubConfiguration. #### func (*FactoryGitHubConfiguration) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19510) [¶](#FactoryGitHubConfiguration.UnmarshalJSON) ``` func (f *[FactoryGitHubConfiguration](#FactoryGitHubConfiguration)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryGitHubConfiguration. #### type [FactoryIdentity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11488) [¶](#FactoryIdentity) ``` type FactoryIdentity struct { // REQUIRED; The identity type. Type *[FactoryIdentityType](#FactoryIdentityType) `json:"type,omitempty"` // List of user assigned identities for the factory. UserAssignedIdentities map[[string](/builtin#string)]interface{} `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The principal id of the identity. PrincipalID *[string](/builtin#string) `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The client tenant id of the identity. TenantID *[string](/builtin#string) `json:"tenantId,omitempty" azure:"ro"` } ``` FactoryIdentity - Identity properties of the factory resource. #### func (FactoryIdentity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19554) [¶](#FactoryIdentity.MarshalJSON) ``` func (f [FactoryIdentity](#FactoryIdentity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryIdentity. #### func (*FactoryIdentity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19564) [¶](#FactoryIdentity.UnmarshalJSON) added in v1.3.0 ``` func (f *[FactoryIdentity](#FactoryIdentity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryIdentity. #### type [FactoryIdentityType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L509) [¶](#FactoryIdentityType) ``` type FactoryIdentityType [string](/builtin#string) ``` FactoryIdentityType - The identity type. ``` const ( FactoryIdentityTypeSystemAssigned [FactoryIdentityType](#FactoryIdentityType) = "SystemAssigned" FactoryIdentityTypeSystemAssignedUserAssigned [FactoryIdentityType](#FactoryIdentityType) = "SystemAssigned,UserAssigned" FactoryIdentityTypeUserAssigned [FactoryIdentityType](#FactoryIdentityType) = "UserAssigned" ) ``` #### func [PossibleFactoryIdentityTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L518) [¶](#PossibleFactoryIdentityTypeValues) ``` func PossibleFactoryIdentityTypeValues() [][FactoryIdentityType](#FactoryIdentityType) ``` PossibleFactoryIdentityTypeValues returns the possible values for the FactoryIdentityType const type. #### type [FactoryListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11503) [¶](#FactoryListResponse) ``` type FactoryListResponse struct { // REQUIRED; List of factories. Value []*[Factory](#Factory) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` FactoryListResponse - A list of factory resources. #### func (FactoryListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19593) [¶](#FactoryListResponse.MarshalJSON) ``` func (f [FactoryListResponse](#FactoryListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryListResponse. #### func (*FactoryListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19601) [¶](#FactoryListResponse.UnmarshalJSON) added in v1.3.0 ``` func (f *[FactoryListResponse](#FactoryListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryListResponse. #### type [FactoryProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11512) [¶](#FactoryProperties) ``` type FactoryProperties struct { // Properties to enable Customer Managed Key for the factory. Encryption *[EncryptionConfiguration](#EncryptionConfiguration) `json:"encryption,omitempty"` // List of parameters for factory. GlobalParameters map[[string](/builtin#string)]*[GlobalParameterSpecification](#GlobalParameterSpecification) `json:"globalParameters,omitempty"` // Whether or not public network access is allowed for the data factory. PublicNetworkAccess *[PublicNetworkAccess](#PublicNetworkAccess) `json:"publicNetworkAccess,omitempty"` // Purview information of the factory. PurviewConfiguration *[PurviewConfiguration](#PurviewConfiguration) `json:"purviewConfiguration,omitempty"` // Git repo information of the factory. RepoConfiguration [FactoryRepoConfigurationClassification](#FactoryRepoConfigurationClassification) `json:"repoConfiguration,omitempty"` // READ-ONLY; Time the factory was created in ISO8601 format. CreateTime *[time](/time).[Time](/time#Time) `json:"createTime,omitempty" azure:"ro"` // READ-ONLY; Factory provisioning state, example Succeeded. ProvisioningState *[string](/builtin#string) `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Version of the factory. Version *[string](/builtin#string) `json:"version,omitempty" azure:"ro"` } ``` FactoryProperties - Factory resource properties. #### func (FactoryProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19624) [¶](#FactoryProperties.MarshalJSON) ``` func (f [FactoryProperties](#FactoryProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryProperties. #### func (*FactoryProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19638) [¶](#FactoryProperties.UnmarshalJSON) ``` func (f *[FactoryProperties](#FactoryProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryProperties. #### type [FactoryRepoConfiguration](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11548) [¶](#FactoryRepoConfiguration) ``` type FactoryRepoConfiguration struct { // REQUIRED; Account name. AccountName *[string](/builtin#string) `json:"accountName,omitempty"` // REQUIRED; Collaboration branch. CollaborationBranch *[string](/builtin#string) `json:"collaborationBranch,omitempty"` // REQUIRED; Repository name. RepositoryName *[string](/builtin#string) `json:"repositoryName,omitempty"` // REQUIRED; Root folder. RootFolder *[string](/builtin#string) `json:"rootFolder,omitempty"` // REQUIRED; Type of repo configuration. Type *[string](/builtin#string) `json:"type,omitempty"` // Last commit id. LastCommitID *[string](/builtin#string) `json:"lastCommitId,omitempty"` } ``` FactoryRepoConfiguration - Factory's git repo information. #### func (*FactoryRepoConfiguration) [GetFactoryRepoConfiguration](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11569) [¶](#FactoryRepoConfiguration.GetFactoryRepoConfiguration) ``` func (f *[FactoryRepoConfiguration](#FactoryRepoConfiguration)) GetFactoryRepoConfiguration() *[FactoryRepoConfiguration](#FactoryRepoConfiguration) ``` GetFactoryRepoConfiguration implements the FactoryRepoConfigurationClassification interface for type FactoryRepoConfiguration. #### func (FactoryRepoConfiguration) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19679) [¶](#FactoryRepoConfiguration.MarshalJSON) added in v1.3.0 ``` func (f [FactoryRepoConfiguration](#FactoryRepoConfiguration)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryRepoConfiguration. #### func (*FactoryRepoConfiguration) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19691) [¶](#FactoryRepoConfiguration.UnmarshalJSON) ``` func (f *[FactoryRepoConfiguration](#FactoryRepoConfiguration)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryRepoConfiguration. #### type [FactoryRepoConfigurationClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11542) [¶](#FactoryRepoConfigurationClassification) ``` type FactoryRepoConfigurationClassification interface { // GetFactoryRepoConfiguration returns the FactoryRepoConfiguration content of the underlying type. GetFactoryRepoConfiguration() *[FactoryRepoConfiguration](#FactoryRepoConfiguration) } ``` FactoryRepoConfigurationClassification provides polymorphic access to related types. Call the interface's GetFactoryRepoConfiguration() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *FactoryGitHubConfiguration, *FactoryRepoConfiguration, *FactoryVSTSConfiguration #### type [FactoryRepoUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11572) [¶](#FactoryRepoUpdate) ``` type FactoryRepoUpdate struct { // The factory resource id. FactoryResourceID *[string](/builtin#string) `json:"factoryResourceId,omitempty"` // Git repo information of the factory. RepoConfiguration [FactoryRepoConfigurationClassification](#FactoryRepoConfigurationClassification) `json:"repoConfiguration,omitempty"` } ``` FactoryRepoUpdate - Factory's git repo information. #### func (FactoryRepoUpdate) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19726) [¶](#FactoryRepoUpdate.MarshalJSON) ``` func (f [FactoryRepoUpdate](#FactoryRepoUpdate)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryRepoUpdate. #### func (*FactoryRepoUpdate) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19734) [¶](#FactoryRepoUpdate.UnmarshalJSON) ``` func (f *[FactoryRepoUpdate](#FactoryRepoUpdate)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryRepoUpdate. #### type [FactoryUpdateParameters](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11581) [¶](#FactoryUpdateParameters) ``` type FactoryUpdateParameters struct { // Managed service identity of the factory. Identity *[FactoryIdentity](#FactoryIdentity) `json:"identity,omitempty"` // Properties of update the factory. Properties *[FactoryUpdateProperties](#FactoryUpdateProperties) `json:"properties,omitempty"` // The resource tags. Tags map[[string](/builtin#string)]*[string](/builtin#string) `json:"tags,omitempty"` } ``` FactoryUpdateParameters - Parameters for updating a factory resource. #### func (FactoryUpdateParameters) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19757) [¶](#FactoryUpdateParameters.MarshalJSON) ``` func (f [FactoryUpdateParameters](#FactoryUpdateParameters)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryUpdateParameters. #### func (*FactoryUpdateParameters) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19766) [¶](#FactoryUpdateParameters.UnmarshalJSON) added in v1.3.0 ``` func (f *[FactoryUpdateParameters](#FactoryUpdateParameters)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryUpdateParameters. #### type [FactoryUpdateProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11593) [¶](#FactoryUpdateProperties) added in v0.3.0 ``` type FactoryUpdateProperties struct { // Whether or not public network access is allowed for the data factory. PublicNetworkAccess *[PublicNetworkAccess](#PublicNetworkAccess) `json:"publicNetworkAccess,omitempty"` } ``` FactoryUpdateProperties - Factory update resource properties. #### func (FactoryUpdateProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19792) [¶](#FactoryUpdateProperties.MarshalJSON) added in v1.3.0 ``` func (f [FactoryUpdateProperties](#FactoryUpdateProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryUpdateProperties. #### func (*FactoryUpdateProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19799) [¶](#FactoryUpdateProperties.UnmarshalJSON) added in v1.3.0 ``` func (f *[FactoryUpdateProperties](#FactoryUpdateProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryUpdateProperties. #### type [FactoryVSTSConfiguration](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11599) [¶](#FactoryVSTSConfiguration) ``` type FactoryVSTSConfiguration struct { // REQUIRED; Account name. AccountName *[string](/builtin#string) `json:"accountName,omitempty"` // REQUIRED; Collaboration branch. CollaborationBranch *[string](/builtin#string) `json:"collaborationBranch,omitempty"` // REQUIRED; VSTS project name. ProjectName *[string](/builtin#string) `json:"projectName,omitempty"` // REQUIRED; Repository name. RepositoryName *[string](/builtin#string) `json:"repositoryName,omitempty"` // REQUIRED; Root folder. RootFolder *[string](/builtin#string) `json:"rootFolder,omitempty"` // REQUIRED; Type of repo configuration. Type *[string](/builtin#string) `json:"type,omitempty"` // Last commit id. LastCommitID *[string](/builtin#string) `json:"lastCommitId,omitempty"` // VSTS tenant id. TenantID *[string](/builtin#string) `json:"tenantId,omitempty"` } ``` FactoryVSTSConfiguration - Factory's VSTS repo information. #### func (*FactoryVSTSConfiguration) [GetFactoryRepoConfiguration](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11626) [¶](#FactoryVSTSConfiguration.GetFactoryRepoConfiguration) added in v0.2.0 ``` func (f *[FactoryVSTSConfiguration](#FactoryVSTSConfiguration)) GetFactoryRepoConfiguration() *[FactoryRepoConfiguration](#FactoryRepoConfiguration) ``` GetFactoryRepoConfiguration implements the FactoryRepoConfigurationClassification interface for type FactoryVSTSConfiguration. #### func (FactoryVSTSConfiguration) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19819) [¶](#FactoryVSTSConfiguration.MarshalJSON) ``` func (f [FactoryVSTSConfiguration](#FactoryVSTSConfiguration)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FactoryVSTSConfiguration. #### func (*FactoryVSTSConfiguration) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19833) [¶](#FactoryVSTSConfiguration.UnmarshalJSON) ``` func (f *[FactoryVSTSConfiguration](#FactoryVSTSConfiguration)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FactoryVSTSConfiguration. #### type [FailActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11641) [¶](#FailActivity) added in v0.2.0 ``` type FailActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Fail activity properties. TypeProperties *[FailActivityTypeProperties](#FailActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` FailActivity - This activity will fail within its own scope and output a custom error message and error code. The error message and code can provided either as a string literal or as an expression that can be evaluated to a string at runtime. The activity scope can be the whole pipeline or a control activity (e.g. foreach, switch, until), if the fail activity is contained in it. #### func (*FailActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11665) [¶](#FailActivity.GetActivity) added in v0.2.0 ``` func (f *[FailActivity](#FailActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type FailActivity. #### func (*FailActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11677) [¶](#FailActivity.GetControlActivity) added in v0.2.0 ``` func (f *[FailActivity](#FailActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type FailActivity. #### func (FailActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19874) [¶](#FailActivity.MarshalJSON) added in v0.2.0 ``` func (f [FailActivity](#FailActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FailActivity. #### func (*FailActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19891) [¶](#FailActivity.UnmarshalJSON) added in v0.2.0 ``` func (f *[FailActivity](#FailActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FailActivity. #### type [FailActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11689) [¶](#FailActivityTypeProperties) added in v0.2.0 ``` type FailActivityTypeProperties struct { // REQUIRED; The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated // to a non empty/blank string at runtime. Type: string (or Expression with resultType // string). ErrorCode interface{} `json:"errorCode,omitempty"` // REQUIRED; The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank // string at runtime. Type: string (or Expression with resultType string). Message interface{} `json:"message,omitempty"` } ``` FailActivityTypeProperties - Fail activity properties. #### func (FailActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19936) [¶](#FailActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (f [FailActivityTypeProperties](#FailActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FailActivityTypeProperties. #### func (*FailActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19944) [¶](#FailActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (f *[FailActivityTypeProperties](#FailActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FailActivityTypeProperties. #### type [FileServerLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11701) [¶](#FileServerLinkedService) ``` type FileServerLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; File system linked service properties. TypeProperties *[FileServerLinkedServiceTypeProperties](#FileServerLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` FileServerLinkedService - File system linked service. #### func (*FileServerLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11725) [¶](#FileServerLinkedService.GetLinkedService) added in v0.2.0 ``` func (f *[FileServerLinkedService](#FileServerLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type FileServerLinkedService. #### func (FileServerLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19967) [¶](#FileServerLinkedService.MarshalJSON) ``` func (f [FileServerLinkedService](#FileServerLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileServerLinkedService. #### func (*FileServerLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L19984) [¶](#FileServerLinkedService.UnmarshalJSON) ``` func (f *[FileServerLinkedService](#FileServerLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileServerLinkedService. #### type [FileServerLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11737) [¶](#FileServerLinkedServiceTypeProperties) ``` type FileServerLinkedServiceTypeProperties struct { // REQUIRED; Host name of the server. Type: string (or Expression with resultType string). Host interface{} `json:"host,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password to logon the server. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // User ID to logon the server. Type: string (or Expression with resultType string). UserID interface{} `json:"userId,omitempty"` } ``` FileServerLinkedServiceTypeProperties - File system linked service properties. #### func (FileServerLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20029) [¶](#FileServerLinkedServiceTypeProperties.MarshalJSON) ``` func (f [FileServerLinkedServiceTypeProperties](#FileServerLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileServerLinkedServiceTypeProperties. #### func (*FileServerLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20039) [¶](#FileServerLinkedServiceTypeProperties.UnmarshalJSON) ``` func (f *[FileServerLinkedServiceTypeProperties](#FileServerLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileServerLinkedServiceTypeProperties. #### type [FileServerLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11753) [¶](#FileServerLocation) ``` type FileServerLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` FileServerLocation - The location of file server dataset. #### func (*FileServerLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11768) [¶](#FileServerLocation.GetDatasetLocation) added in v0.2.0 ``` func (f *[FileServerLocation](#FileServerLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type FileServerLocation. #### func (FileServerLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20068) [¶](#FileServerLocation.MarshalJSON) ``` func (f [FileServerLocation](#FileServerLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileServerLocation. #### func (*FileServerLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20082) [¶](#FileServerLocation.UnmarshalJSON) added in v0.2.0 ``` func (f *[FileServerLocation](#FileServerLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileServerLocation. #### type [FileServerReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11778) [¶](#FileServerReadSettings) ``` type FileServerReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression // with resultType string). FileFilter interface{} `json:"fileFilter,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // FileServer wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // FileServer wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` FileServerReadSettings - File server read settings. #### func (*FileServerReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11827) [¶](#FileServerReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (f *[FileServerReadSettings](#FileServerReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type FileServerReadSettings. #### func (FileServerReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20118) [¶](#FileServerReadSettings.MarshalJSON) ``` func (f [FileServerReadSettings](#FileServerReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileServerReadSettings. #### func (*FileServerReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20142) [¶](#FileServerReadSettings.UnmarshalJSON) ``` func (f *[FileServerReadSettings](#FileServerReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileServerReadSettings. #### type [FileServerWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11837) [¶](#FileServerWriteSettings) ``` type FileServerWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` } ``` FileServerWriteSettings - File server write settings. #### func (*FileServerWriteSettings) [GetStoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11855) [¶](#FileServerWriteSettings.GetStoreWriteSettings) added in v0.2.0 ``` func (f *[FileServerWriteSettings](#FileServerWriteSettings)) GetStoreWriteSettings() *[StoreWriteSettings](#StoreWriteSettings) ``` GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type FileServerWriteSettings. #### func (FileServerWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20208) [¶](#FileServerWriteSettings.MarshalJSON) ``` func (f [FileServerWriteSettings](#FileServerWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileServerWriteSettings. #### func (*FileServerWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20223) [¶](#FileServerWriteSettings.UnmarshalJSON) added in v0.2.0 ``` func (f *[FileServerWriteSettings](#FileServerWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileServerWriteSettings. #### type [FileShareDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11866) [¶](#FileShareDataset) ``` type FileShareDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // On-premises file system dataset properties. TypeProperties *[FileShareDatasetTypeProperties](#FileShareDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` FileShareDataset - An on-premises file system dataset. #### func (*FileShareDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11900) [¶](#FileShareDataset.GetDataset) added in v0.2.0 ``` func (f *[FileShareDataset](#FileShareDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type FileShareDataset. #### func (FileShareDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20262) [¶](#FileShareDataset.MarshalJSON) ``` func (f [FileShareDataset](#FileShareDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileShareDataset. #### func (*FileShareDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20282) [¶](#FileShareDataset.UnmarshalJSON) ``` func (f *[FileShareDataset](#FileShareDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileShareDataset. #### type [FileShareDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11915) [¶](#FileShareDatasetTypeProperties) ``` type FileShareDatasetTypeProperties struct { // The data compression method used for the file system. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression // with resultType string). FileFilter interface{} `json:"fileFilter,omitempty"` // The name of the on-premises file system. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // The path of the on-premises file system. Type: string (or Expression with resultType string). FolderPath interface{} `json:"folderPath,omitempty"` // The format of the files. Format [DatasetStorageFormatClassification](#DatasetStorageFormatClassification) `json:"format,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` } ``` FileShareDatasetTypeProperties - On-premises file system dataset properties. #### func (FileShareDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20336) [¶](#FileShareDatasetTypeProperties.MarshalJSON) ``` func (f [FileShareDatasetTypeProperties](#FileShareDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileShareDatasetTypeProperties. #### func (*FileShareDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20349) [¶](#FileShareDatasetTypeProperties.UnmarshalJSON) ``` func (f *[FileShareDatasetTypeProperties](#FileShareDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileShareDatasetTypeProperties. #### type [FileSystemSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11940) [¶](#FileSystemSink) ``` type FileSystemSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` FileSystemSink - A copy activity file system sink. #### func (*FileSystemSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11970) [¶](#FileSystemSink.GetCopySink) added in v0.2.0 ``` func (f *[FileSystemSink](#FileSystemSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type FileSystemSink. #### func (FileSystemSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20387) [¶](#FileSystemSink.MarshalJSON) ``` func (f [FileSystemSink](#FileSystemSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileSystemSink. #### func (*FileSystemSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20406) [¶](#FileSystemSink.UnmarshalJSON) ``` func (f *[FileSystemSink](#FileSystemSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemSink. #### type [FileSystemSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L11984) [¶](#FileSystemSource) ``` type FileSystemSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` FileSystemSource - A copy activity file system source. #### func (*FileSystemSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12013) [¶](#FileSystemSource.GetCopySource) added in v0.2.0 ``` func (f *[FileSystemSource](#FileSystemSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type FileSystemSource. #### func (FileSystemSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20457) [¶](#FileSystemSource.MarshalJSON) ``` func (f [FileSystemSource](#FileSystemSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FileSystemSource. #### func (*FileSystemSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20475) [¶](#FileSystemSource.UnmarshalJSON) ``` func (f *[FileSystemSource](#FileSystemSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemSource. #### type [FilterActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12025) [¶](#FilterActivity) ``` type FilterActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Filter activity properties. TypeProperties *[FilterActivityTypeProperties](#FilterActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` FilterActivity - Filter and return results from input array based on the conditions. #### func (*FilterActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12049) [¶](#FilterActivity.GetActivity) added in v0.2.0 ``` func (f *[FilterActivity](#FilterActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type FilterActivity. #### func (*FilterActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12061) [¶](#FilterActivity.GetControlActivity) added in v0.2.0 ``` func (f *[FilterActivity](#FilterActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type FilterActivity. #### func (FilterActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20523) [¶](#FilterActivity.MarshalJSON) ``` func (f [FilterActivity](#FilterActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FilterActivity. #### func (*FilterActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20540) [¶](#FilterActivity.UnmarshalJSON) ``` func (f *[FilterActivity](#FilterActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FilterActivity. #### type [FilterActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12073) [¶](#FilterActivityTypeProperties) ``` type FilterActivityTypeProperties struct { // REQUIRED; Condition to be used for filtering the input. Condition *[Expression](#Expression) `json:"condition,omitempty"` // REQUIRED; Input array on which filter should be applied. Items *[Expression](#Expression) `json:"items,omitempty"` } ``` FilterActivityTypeProperties - Filter activity properties. #### func (FilterActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20585) [¶](#FilterActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (f [FilterActivityTypeProperties](#FilterActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FilterActivityTypeProperties. #### func (*FilterActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20593) [¶](#FilterActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (f *[FilterActivityTypeProperties](#FilterActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FilterActivityTypeProperties. #### type [Flowlet](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12082) [¶](#Flowlet) ``` type Flowlet struct { // REQUIRED; Type of data flow. Type *[string](/builtin#string) `json:"type,omitempty"` // List of tags that can be used for describing the data flow. Annotations []interface{} `json:"annotations,omitempty"` // The description of the data flow. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this data flow is in. If not specified, Data flow will appear at the root level. Folder *[DataFlowFolder](#DataFlowFolder) `json:"folder,omitempty"` // Flowlet type properties. TypeProperties *[FlowletTypeProperties](#FlowletTypeProperties) `json:"typeProperties,omitempty"` } ``` Flowlet - Data flow flowlet #### func (*Flowlet) [GetDataFlow](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12100) [¶](#Flowlet.GetDataFlow) added in v0.2.0 ``` func (f *[Flowlet](#Flowlet)) GetDataFlow() *[DataFlow](#DataFlow) ``` GetDataFlow implements the DataFlowClassification interface for type Flowlet. #### func (Flowlet) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20616) [¶](#Flowlet.MarshalJSON) ``` func (f [Flowlet](#Flowlet)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Flowlet. #### func (*Flowlet) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20627) [¶](#Flowlet.UnmarshalJSON) ``` func (f *[Flowlet](#Flowlet)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Flowlet. #### type [FlowletTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12110) [¶](#FlowletTypeProperties) ``` type FlowletTypeProperties struct { // Flowlet script. Script *[string](/builtin#string) `json:"script,omitempty"` // Flowlet script lines. ScriptLines []*[string](/builtin#string) `json:"scriptLines,omitempty"` // List of sinks in Flowlet. Sinks []*[DataFlowSink](#DataFlowSink) `json:"sinks,omitempty"` // List of sources in Flowlet. Sources []*[DataFlowSource](#DataFlowSource) `json:"sources,omitempty"` // List of transformations in Flowlet. Transformations []*[Transformation](#Transformation) `json:"transformations,omitempty"` } ``` FlowletTypeProperties - Flowlet type properties. #### func (FlowletTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20659) [¶](#FlowletTypeProperties.MarshalJSON) ``` func (f [FlowletTypeProperties](#FlowletTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FlowletTypeProperties. #### func (*FlowletTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20670) [¶](#FlowletTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (f *[FlowletTypeProperties](#FlowletTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FlowletTypeProperties. #### type [ForEachActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12128) [¶](#ForEachActivity) ``` type ForEachActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; ForEach activity properties. TypeProperties *[ForEachActivityTypeProperties](#ForEachActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ForEachActivity - This activity is used for iterating over a collection and execute given activities. #### func (*ForEachActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12152) [¶](#ForEachActivity.GetActivity) added in v0.2.0 ``` func (f *[ForEachActivity](#ForEachActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ForEachActivity. #### func (*ForEachActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12164) [¶](#ForEachActivity.GetControlActivity) added in v0.2.0 ``` func (f *[ForEachActivity](#ForEachActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type ForEachActivity. #### func (ForEachActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20702) [¶](#ForEachActivity.MarshalJSON) ``` func (f [ForEachActivity](#ForEachActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ForEachActivity. #### func (*ForEachActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20719) [¶](#ForEachActivity.UnmarshalJSON) ``` func (f *[ForEachActivity](#ForEachActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ForEachActivity. #### type [ForEachActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12176) [¶](#ForEachActivityTypeProperties) ``` type ForEachActivityTypeProperties struct { // REQUIRED; List of activities to execute . Activities [][ActivityClassification](#ActivityClassification) `json:"activities,omitempty"` // REQUIRED; Collection to iterate. Items *[Expression](#Expression) `json:"items,omitempty"` // Batch count to be used for controlling the number of parallel execution (when isSequential is set to false). BatchCount *[int32](/builtin#int32) `json:"batchCount,omitempty"` // Should the loop be executed in sequence or in parallel (max 50) IsSequential *[bool](/builtin#bool) `json:"isSequential,omitempty"` } ``` ForEachActivityTypeProperties - ForEach activity properties. #### func (ForEachActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20764) [¶](#ForEachActivityTypeProperties.MarshalJSON) ``` func (f [ForEachActivityTypeProperties](#ForEachActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ForEachActivityTypeProperties. #### func (*ForEachActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20774) [¶](#ForEachActivityTypeProperties.UnmarshalJSON) ``` func (f *[ForEachActivityTypeProperties](#ForEachActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ForEachActivityTypeProperties. #### type [FormatReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12200) [¶](#FormatReadSettings) ``` type FormatReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` FormatReadSettings - Format read settings. #### func (*FormatReadSettings) [GetFormatReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12209) [¶](#FormatReadSettings.GetFormatReadSettings) ``` func (f *[FormatReadSettings](#FormatReadSettings)) GetFormatReadSettings() *[FormatReadSettings](#FormatReadSettings) ``` GetFormatReadSettings implements the FormatReadSettingsClassification interface for type FormatReadSettings. #### func (FormatReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20803) [¶](#FormatReadSettings.MarshalJSON) added in v0.2.0 ``` func (f [FormatReadSettings](#FormatReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FormatReadSettings. #### func (*FormatReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20815) [¶](#FormatReadSettings.UnmarshalJSON) ``` func (f *[FormatReadSettings](#FormatReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FormatReadSettings. #### type [FormatReadSettingsClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12194) [¶](#FormatReadSettingsClassification) ``` type FormatReadSettingsClassification interface { // GetFormatReadSettings returns the FormatReadSettings content of the underlying type. GetFormatReadSettings() *[FormatReadSettings](#FormatReadSettings) } ``` FormatReadSettingsClassification provides polymorphic access to related types. Call the interface's GetFormatReadSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *BinaryReadSettings, *DelimitedTextReadSettings, *FormatReadSettings, *JSONReadSettings, *XMLReadSettings #### type [FormatWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12221) [¶](#FormatWriteSettings) ``` type FormatWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` FormatWriteSettings - Format write settings. #### func (*FormatWriteSettings) [GetFormatWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12230) [¶](#FormatWriteSettings.GetFormatWriteSettings) ``` func (f *[FormatWriteSettings](#FormatWriteSettings)) GetFormatWriteSettings() *[FormatWriteSettings](#FormatWriteSettings) ``` GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type FormatWriteSettings. #### func (FormatWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20845) [¶](#FormatWriteSettings.MarshalJSON) added in v0.2.0 ``` func (f [FormatWriteSettings](#FormatWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FormatWriteSettings. #### func (*FormatWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20857) [¶](#FormatWriteSettings.UnmarshalJSON) ``` func (f *[FormatWriteSettings](#FormatWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FormatWriteSettings. #### type [FormatWriteSettingsClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12215) [¶](#FormatWriteSettingsClassification) ``` type FormatWriteSettingsClassification interface { // GetFormatWriteSettings returns the FormatWriteSettings content of the underlying type. GetFormatWriteSettings() *[FormatWriteSettings](#FormatWriteSettings) } ``` FormatWriteSettingsClassification provides polymorphic access to related types. Call the interface's GetFormatWriteSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AvroWriteSettings, *DelimitedTextWriteSettings, *FormatWriteSettings, *JSONWriteSettings, *OrcWriteSettings, *ParquetWriteSettings #### type [FtpAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L527) [¶](#FtpAuthenticationType) ``` type FtpAuthenticationType [string](/builtin#string) ``` FtpAuthenticationType - The authentication type to be used to connect to the FTP server. ``` const ( FtpAuthenticationTypeAnonymous [FtpAuthenticationType](#FtpAuthenticationType) = "Anonymous" FtpAuthenticationTypeBasic [FtpAuthenticationType](#FtpAuthenticationType) = "Basic" ) ``` #### func [PossibleFtpAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L535) [¶](#PossibleFtpAuthenticationTypeValues) ``` func PossibleFtpAuthenticationTypeValues() [][FtpAuthenticationType](#FtpAuthenticationType) ``` PossibleFtpAuthenticationTypeValues returns the possible values for the FtpAuthenticationType const type. #### type [FtpReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12233) [¶](#FtpReadSettings) ``` type FtpReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). DisableChunking interface{} `json:"disableChunking,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Specify whether to use binary transfer mode for FTP stores. UseBinaryTransfer *[bool](/builtin#bool) `json:"useBinaryTransfer,omitempty"` // Ftp wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // Ftp wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` FtpReadSettings - Ftp read settings. #### func (*FtpReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12278) [¶](#FtpReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (f *[FtpReadSettings](#FtpReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type FtpReadSettings. #### func (FtpReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20887) [¶](#FtpReadSettings.MarshalJSON) ``` func (f [FtpReadSettings](#FtpReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FtpReadSettings. #### func (*FtpReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20910) [¶](#FtpReadSettings.UnmarshalJSON) ``` func (f *[FtpReadSettings](#FtpReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FtpReadSettings. #### type [FtpServerLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12288) [¶](#FtpServerLinkedService) ``` type FtpServerLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to this linked service type. TypeProperties *[FtpServerLinkedServiceTypeProperties](#FtpServerLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` FtpServerLinkedService - A FTP server Linked Service. #### func (*FtpServerLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12312) [¶](#FtpServerLinkedService.GetLinkedService) added in v0.2.0 ``` func (f *[FtpServerLinkedService](#FtpServerLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type FtpServerLinkedService. #### func (FtpServerLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20973) [¶](#FtpServerLinkedService.MarshalJSON) ``` func (f [FtpServerLinkedService](#FtpServerLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FtpServerLinkedService. #### func (*FtpServerLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L20990) [¶](#FtpServerLinkedService.UnmarshalJSON) ``` func (f *[FtpServerLinkedService](#FtpServerLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FtpServerLinkedService. #### type [FtpServerLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12324) [¶](#FtpServerLinkedServiceTypeProperties) ``` type FtpServerLinkedServiceTypeProperties struct { // REQUIRED; Host name of the FTP server. Type: string (or Expression with resultType string). Host interface{} `json:"host,omitempty"` // The authentication type to be used to connect to the FTP server. AuthenticationType *[FtpAuthenticationType](#FtpAuthenticationType) `json:"authenticationType,omitempty"` // If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType // boolean). EnableSSL interface{} `json:"enableSsl,omitempty"` // If true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default value is true. Type: boolean // (or Expression with resultType boolean). EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password to logon the FTP server. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port number that the FTP server uses to listen for client connections. Default value is 21. Type: integer (or Expression // with resultType integer), minimum: 0. Port interface{} `json:"port,omitempty"` // Username to logon the FTP server. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` FtpServerLinkedServiceTypeProperties - Properties specific to this linked service type. #### func (FtpServerLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21035) [¶](#FtpServerLinkedServiceTypeProperties.MarshalJSON) ``` func (f [FtpServerLinkedServiceTypeProperties](#FtpServerLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FtpServerLinkedServiceTypeProperties. #### func (*FtpServerLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21049) [¶](#FtpServerLinkedServiceTypeProperties.UnmarshalJSON) ``` func (f *[FtpServerLinkedServiceTypeProperties](#FtpServerLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FtpServerLinkedServiceTypeProperties. #### type [FtpServerLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12355) [¶](#FtpServerLocation) ``` type FtpServerLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` FtpServerLocation - The location of ftp server dataset. #### func (*FtpServerLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12370) [¶](#FtpServerLocation.GetDatasetLocation) added in v0.2.0 ``` func (f *[FtpServerLocation](#FtpServerLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type FtpServerLocation. #### func (FtpServerLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21090) [¶](#FtpServerLocation.MarshalJSON) ``` func (f [FtpServerLocation](#FtpServerLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type FtpServerLocation. #### func (*FtpServerLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21104) [¶](#FtpServerLocation.UnmarshalJSON) added in v0.2.0 ``` func (f *[FtpServerLocation](#FtpServerLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type FtpServerLocation. #### type [GenericDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12380) [¶](#GenericDatasetTypeProperties) ``` type GenericDatasetTypeProperties struct { // The table name. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` GenericDatasetTypeProperties - Properties specific to this dataset type. #### func (GenericDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21140) [¶](#GenericDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (g [GenericDatasetTypeProperties](#GenericDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GenericDatasetTypeProperties. #### func (*GenericDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21147) [¶](#GenericDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (g *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GenericDatasetTypeProperties. #### type [GetDataFactoryOperationStatusResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12386) [¶](#GetDataFactoryOperationStatusResponse) ``` type GetDataFactoryOperationStatusResponse struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Status of the operation. Status *[string](/builtin#string) `json:"status,omitempty"` } ``` GetDataFactoryOperationStatusResponse - Response body structure for get data factory operation status. #### func (GetDataFactoryOperationStatusResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21167) [¶](#GetDataFactoryOperationStatusResponse.MarshalJSON) ``` func (g [GetDataFactoryOperationStatusResponse](#GetDataFactoryOperationStatusResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GetDataFactoryOperationStatusResponse. #### func (*GetDataFactoryOperationStatusResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21179) [¶](#GetDataFactoryOperationStatusResponse.UnmarshalJSON) ``` func (g *[GetDataFactoryOperationStatusResponse](#GetDataFactoryOperationStatusResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GetDataFactoryOperationStatusResponse. #### type [GetMetadataActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12395) [¶](#GetMetadataActivity) ``` type GetMetadataActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; GetMetadata activity properties. TypeProperties *[GetMetadataActivityTypeProperties](#GetMetadataActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` GetMetadataActivity - Activity to get metadata of dataset #### func (*GetMetadataActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12425) [¶](#GetMetadataActivity.GetActivity) added in v0.2.0 ``` func (g *[GetMetadataActivity](#GetMetadataActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type GetMetadataActivity. #### func (*GetMetadataActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12437) [¶](#GetMetadataActivity.GetExecutionActivity) added in v0.2.0 ``` func (g *[GetMetadataActivity](#GetMetadataActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type GetMetadataActivity. #### func (GetMetadataActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21209) [¶](#GetMetadataActivity.MarshalJSON) ``` func (g [GetMetadataActivity](#GetMetadataActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GetMetadataActivity. #### func (*GetMetadataActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21228) [¶](#GetMetadataActivity.UnmarshalJSON) ``` func (g *[GetMetadataActivity](#GetMetadataActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GetMetadataActivity. #### type [GetMetadataActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12451) [¶](#GetMetadataActivityTypeProperties) ``` type GetMetadataActivityTypeProperties struct { // REQUIRED; GetMetadata activity dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // Fields of metadata to get from dataset. FieldList []interface{} `json:"fieldList,omitempty"` // GetMetadata activity format settings. FormatSettings [FormatReadSettingsClassification](#FormatReadSettingsClassification) `json:"formatSettings,omitempty"` // GetMetadata activity store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` GetMetadataActivityTypeProperties - GetMetadata activity properties. #### func (GetMetadataActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21279) [¶](#GetMetadataActivityTypeProperties.MarshalJSON) ``` func (g [GetMetadataActivityTypeProperties](#GetMetadataActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GetMetadataActivityTypeProperties. #### func (*GetMetadataActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21289) [¶](#GetMetadataActivityTypeProperties.UnmarshalJSON) ``` func (g *[GetMetadataActivityTypeProperties](#GetMetadataActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GetMetadataActivityTypeProperties. #### type [GetSsisObjectMetadataRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12466) [¶](#GetSsisObjectMetadataRequest) ``` type GetSsisObjectMetadataRequest struct { // Metadata path. MetadataPath *[string](/builtin#string) `json:"metadataPath,omitempty"` } ``` GetSsisObjectMetadataRequest - The request payload of get SSIS object metadata. #### func (GetSsisObjectMetadataRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21318) [¶](#GetSsisObjectMetadataRequest.MarshalJSON) added in v1.3.0 ``` func (g [GetSsisObjectMetadataRequest](#GetSsisObjectMetadataRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GetSsisObjectMetadataRequest. #### func (*GetSsisObjectMetadataRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21325) [¶](#GetSsisObjectMetadataRequest.UnmarshalJSON) added in v1.3.0 ``` func (g *[GetSsisObjectMetadataRequest](#GetSsisObjectMetadataRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GetSsisObjectMetadataRequest. #### type [GitHubAccessTokenRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12472) [¶](#GitHubAccessTokenRequest) ``` type GitHubAccessTokenRequest struct { // REQUIRED; GitHub access code. GitHubAccessCode *[string](/builtin#string) `json:"gitHubAccessCode,omitempty"` // REQUIRED; GitHub access token base URL. GitHubAccessTokenBaseURL *[string](/builtin#string) `json:"gitHubAccessTokenBaseUrl,omitempty"` // GitHub application client ID. GitHubClientID *[string](/builtin#string) `json:"gitHubClientId,omitempty"` // GitHub bring your own app client secret information. GitHubClientSecret *[GitHubClientSecret](#GitHubClientSecret) `json:"gitHubClientSecret,omitempty"` } ``` GitHubAccessTokenRequest - Get GitHub access token request definition. #### func (GitHubAccessTokenRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21345) [¶](#GitHubAccessTokenRequest.MarshalJSON) added in v1.3.0 ``` func (g [GitHubAccessTokenRequest](#GitHubAccessTokenRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GitHubAccessTokenRequest. #### func (*GitHubAccessTokenRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21355) [¶](#GitHubAccessTokenRequest.UnmarshalJSON) added in v1.3.0 ``` func (g *[GitHubAccessTokenRequest](#GitHubAccessTokenRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GitHubAccessTokenRequest. #### type [GitHubAccessTokenResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12487) [¶](#GitHubAccessTokenResponse) ``` type GitHubAccessTokenResponse struct { // GitHub access token. GitHubAccessToken *[string](/builtin#string) `json:"gitHubAccessToken,omitempty"` } ``` GitHubAccessTokenResponse - Get GitHub access token response definition. #### func (GitHubAccessTokenResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21384) [¶](#GitHubAccessTokenResponse.MarshalJSON) added in v1.3.0 ``` func (g [GitHubAccessTokenResponse](#GitHubAccessTokenResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GitHubAccessTokenResponse. #### func (*GitHubAccessTokenResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21391) [¶](#GitHubAccessTokenResponse.UnmarshalJSON) added in v1.3.0 ``` func (g *[GitHubAccessTokenResponse](#GitHubAccessTokenResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GitHubAccessTokenResponse. #### type [GitHubClientSecret](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12493) [¶](#GitHubClientSecret) ``` type GitHubClientSecret struct { // Bring your own app client secret AKV URL. ByoaSecretAkvURL *[string](/builtin#string) `json:"byoaSecretAkvUrl,omitempty"` // Bring your own app client secret name in AKV. ByoaSecretName *[string](/builtin#string) `json:"byoaSecretName,omitempty"` } ``` GitHubClientSecret - Client secret information for factory's bring your own app repository configuration. #### func (GitHubClientSecret) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21411) [¶](#GitHubClientSecret.MarshalJSON) added in v1.3.0 ``` func (g [GitHubClientSecret](#GitHubClientSecret)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GitHubClientSecret. #### func (*GitHubClientSecret) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21419) [¶](#GitHubClientSecret.UnmarshalJSON) added in v1.3.0 ``` func (g *[GitHubClientSecret](#GitHubClientSecret)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GitHubClientSecret. #### type [GlobalParameterListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12502) [¶](#GlobalParameterListResponse) added in v1.1.0 ``` type GlobalParameterListResponse struct { // REQUIRED; List of global parameters. Value []*[GlobalParameterResource](#GlobalParameterResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` GlobalParameterListResponse - A list of Global parameters. #### func (GlobalParameterListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21442) [¶](#GlobalParameterListResponse.MarshalJSON) added in v1.3.0 ``` func (g [GlobalParameterListResponse](#GlobalParameterListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GlobalParameterListResponse. #### func (*GlobalParameterListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21450) [¶](#GlobalParameterListResponse.UnmarshalJSON) added in v1.3.0 ``` func (g *[GlobalParameterListResponse](#GlobalParameterListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GlobalParameterListResponse. #### type [GlobalParameterResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12511) [¶](#GlobalParameterResource) added in v1.1.0 ``` type GlobalParameterResource struct { // REQUIRED; Properties of the global parameter. Properties map[[string](/builtin#string)]*[GlobalParameterSpecification](#GlobalParameterSpecification) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` GlobalParameterResource - Global parameters resource type. #### func (GlobalParameterResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21473) [¶](#GlobalParameterResource.MarshalJSON) added in v1.1.0 ``` func (g [GlobalParameterResource](#GlobalParameterResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GlobalParameterResource. #### func (*GlobalParameterResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21484) [¶](#GlobalParameterResource.UnmarshalJSON) added in v1.3.0 ``` func (g *[GlobalParameterResource](#GlobalParameterResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GlobalParameterResource. #### type [GlobalParameterSpecification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12529) [¶](#GlobalParameterSpecification) ``` type GlobalParameterSpecification struct { // REQUIRED; Global Parameter type. Type *[GlobalParameterType](#GlobalParameterType) `json:"type,omitempty"` // REQUIRED; Value of parameter. Value interface{} `json:"value,omitempty"` } ``` GlobalParameterSpecification - Definition of a single parameter for an entity. #### func (GlobalParameterSpecification) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21516) [¶](#GlobalParameterSpecification.MarshalJSON) added in v1.3.0 ``` func (g [GlobalParameterSpecification](#GlobalParameterSpecification)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GlobalParameterSpecification. #### func (*GlobalParameterSpecification) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21524) [¶](#GlobalParameterSpecification.UnmarshalJSON) added in v1.3.0 ``` func (g *[GlobalParameterSpecification](#GlobalParameterSpecification)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GlobalParameterSpecification. #### type [GlobalParameterType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L543) [¶](#GlobalParameterType) ``` type GlobalParameterType [string](/builtin#string) ``` GlobalParameterType - Global Parameter type. ``` const ( GlobalParameterTypeArray [GlobalParameterType](#GlobalParameterType) = "Array" GlobalParameterTypeBool [GlobalParameterType](#GlobalParameterType) = "Bool" GlobalParameterTypeFloat [GlobalParameterType](#GlobalParameterType) = "Float" GlobalParameterTypeInt [GlobalParameterType](#GlobalParameterType) = "Int" GlobalParameterTypeObject [GlobalParameterType](#GlobalParameterType) = "Object" GlobalParameterTypeString [GlobalParameterType](#GlobalParameterType) = "String" ) ``` #### func [PossibleGlobalParameterTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L555) [¶](#PossibleGlobalParameterTypeValues) ``` func PossibleGlobalParameterTypeValues() [][GlobalParameterType](#GlobalParameterType) ``` PossibleGlobalParameterTypeValues returns the possible values for the GlobalParameterType const type. #### type [GlobalParametersClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go#L28) [¶](#GlobalParametersClient) added in v1.1.0 ``` type GlobalParametersClient struct { // contains filtered or unexported fields } ``` GlobalParametersClient contains the methods for the GlobalParameters group. Don't use this type directly, use NewGlobalParametersClient() instead. #### func [NewGlobalParametersClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go#L38) [¶](#NewGlobalParametersClient) added in v1.1.0 ``` func NewGlobalParametersClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[GlobalParametersClient](#GlobalParametersClient), [error](/builtin#error)) ``` NewGlobalParametersClient creates a new instance of GlobalParametersClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*GlobalParametersClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go#L67) [¶](#GlobalParametersClient.CreateOrUpdate) added in v1.1.0 ``` func (client *[GlobalParametersClient](#GlobalParametersClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), globalParameterName [string](/builtin#string), defaultParam [GlobalParameterResource](#GlobalParameterResource), options *[GlobalParametersClientCreateOrUpdateOptions](#GlobalParametersClientCreateOrUpdateOptions)) ([GlobalParametersClientCreateOrUpdateResponse](#GlobalParametersClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a Global parameter If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. globalParameterName - The global parameter name. defaultParam - Global parameter resource definition. options - GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate method. Example (GlobalParametersCreate) [¶](#example-GlobalParametersClient.CreateOrUpdate-GlobalParametersCreate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "default", armdatafactory.GlobalParameterResource{ Properties: map[string]*armdatafactory.GlobalParameterSpecification{ "waitTime": { Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), Value: float64(5), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run Example (GlobalParametersUpdate) [¶](#example-GlobalParametersClient.CreateOrUpdate-GlobalParametersUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "default", armdatafactory.GlobalParameterResource{ Properties: map[string]*armdatafactory.GlobalParameterSpecification{ "waitTime": { Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), Value: float64(5), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*GlobalParametersClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go#L128) [¶](#GlobalParametersClient.Delete) added in v1.1.0 ``` func (client *[GlobalParametersClient](#GlobalParametersClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), globalParameterName [string](/builtin#string), options *[GlobalParametersClientDeleteOptions](#GlobalParametersClientDeleteOptions)) ([GlobalParametersClientDeleteResponse](#GlobalParametersClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a Global parameter If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. globalParameterName - The global parameter name. options - GlobalParametersClientDeleteOptions contains the optional parameters for the GlobalParametersClient.Delete method. Example [¶](#example-GlobalParametersClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*GlobalParametersClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go#L180) [¶](#GlobalParametersClient.Get) added in v1.1.0 ``` func (client *[GlobalParametersClient](#GlobalParametersClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), globalParameterName [string](/builtin#string), options *[GlobalParametersClientGetOptions](#GlobalParametersClientGetOptions)) ([GlobalParametersClientGetResponse](#GlobalParametersClientGetResponse), [error](/builtin#error)) ``` Get - Gets a Global parameter If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. globalParameterName - The global parameter name. options - GlobalParametersClientGetOptions contains the optional parameters for the GlobalParametersClient.Get method. Example [¶](#example-GlobalParametersClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*GlobalParametersClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go#L241) [¶](#GlobalParametersClient.NewListByFactoryPager) added in v1.1.0 ``` func (client *[GlobalParametersClient](#GlobalParametersClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[GlobalParametersClientListByFactoryOptions](#GlobalParametersClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[GlobalParametersClientListByFactoryResponse](#GlobalParametersClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists Global parameters If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.ListByFactory method. Example [¶](#example-GlobalParametersClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [GlobalParametersClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12539) [¶](#GlobalParametersClientCreateOrUpdateOptions) added in v1.1.0 ``` type GlobalParametersClientCreateOrUpdateOptions struct { } ``` GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate method. #### type [GlobalParametersClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L143) [¶](#GlobalParametersClientCreateOrUpdateResponse) added in v1.1.0 ``` type GlobalParametersClientCreateOrUpdateResponse struct { [GlobalParameterResource](#GlobalParameterResource) } ``` GlobalParametersClientCreateOrUpdateResponse contains the response from method GlobalParametersClient.CreateOrUpdate. #### type [GlobalParametersClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12544) [¶](#GlobalParametersClientDeleteOptions) added in v1.1.0 ``` type GlobalParametersClientDeleteOptions struct { } ``` GlobalParametersClientDeleteOptions contains the optional parameters for the GlobalParametersClient.Delete method. #### type [GlobalParametersClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L148) [¶](#GlobalParametersClientDeleteResponse) added in v1.1.0 ``` type GlobalParametersClientDeleteResponse struct { } ``` GlobalParametersClientDeleteResponse contains the response from method GlobalParametersClient.Delete. #### type [GlobalParametersClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12549) [¶](#GlobalParametersClientGetOptions) added in v1.1.0 ``` type GlobalParametersClientGetOptions struct { } ``` GlobalParametersClientGetOptions contains the optional parameters for the GlobalParametersClient.Get method. #### type [GlobalParametersClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L153) [¶](#GlobalParametersClientGetResponse) added in v1.1.0 ``` type GlobalParametersClientGetResponse struct { [GlobalParameterResource](#GlobalParameterResource) } ``` GlobalParametersClientGetResponse contains the response from method GlobalParametersClient.Get. #### type [GlobalParametersClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12555) [¶](#GlobalParametersClientListByFactoryOptions) added in v1.1.0 ``` type GlobalParametersClientListByFactoryOptions struct { } ``` GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.ListByFactory method. #### type [GlobalParametersClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L158) [¶](#GlobalParametersClientListByFactoryResponse) added in v1.1.0 ``` type GlobalParametersClientListByFactoryResponse struct { [GlobalParameterListResponse](#GlobalParameterListResponse) } ``` GlobalParametersClientListByFactoryResponse contains the response from method GlobalParametersClient.ListByFactory. #### type [GoogleAdWordsAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L568) [¶](#GoogleAdWordsAuthenticationType) ``` type GoogleAdWordsAuthenticationType [string](/builtin#string) ``` GoogleAdWordsAuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. ``` const ( GoogleAdWordsAuthenticationTypeServiceAuthentication [GoogleAdWordsAuthenticationType](#GoogleAdWordsAuthenticationType) = "ServiceAuthentication" GoogleAdWordsAuthenticationTypeUserAuthentication [GoogleAdWordsAuthenticationType](#GoogleAdWordsAuthenticationType) = "UserAuthentication" ) ``` #### func [PossibleGoogleAdWordsAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L576) [¶](#PossibleGoogleAdWordsAuthenticationTypeValues) ``` func PossibleGoogleAdWordsAuthenticationTypeValues() [][GoogleAdWordsAuthenticationType](#GoogleAdWordsAuthenticationType) ``` PossibleGoogleAdWordsAuthenticationTypeValues returns the possible values for the GoogleAdWordsAuthenticationType const type. #### type [GoogleAdWordsLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12560) [¶](#GoogleAdWordsLinkedService) ``` type GoogleAdWordsLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Google AdWords service linked service properties. TypeProperties *[GoogleAdWordsLinkedServiceTypeProperties](#GoogleAdWordsLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` GoogleAdWordsLinkedService - Google AdWords service linked service. #### func (*GoogleAdWordsLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12584) [¶](#GoogleAdWordsLinkedService.GetLinkedService) added in v0.2.0 ``` func (g *[GoogleAdWordsLinkedService](#GoogleAdWordsLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type GoogleAdWordsLinkedService. #### func (GoogleAdWordsLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21547) [¶](#GoogleAdWordsLinkedService.MarshalJSON) ``` func (g [GoogleAdWordsLinkedService](#GoogleAdWordsLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsLinkedService. #### func (*GoogleAdWordsLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21564) [¶](#GoogleAdWordsLinkedService.UnmarshalJSON) ``` func (g *[GoogleAdWordsLinkedService](#GoogleAdWordsLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleAdWordsLinkedService. #### type [GoogleAdWordsLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12596) [¶](#GoogleAdWordsLinkedServiceTypeProperties) ``` type GoogleAdWordsLinkedServiceTypeProperties struct { // The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. AuthenticationType *[GoogleAdWordsAuthenticationType](#GoogleAdWordsAuthenticationType) `json:"authenticationType,omitempty"` // The Client customer ID of the AdWords account that you want to fetch report data for. ClientCustomerID interface{} `json:"clientCustomerID,omitempty"` // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType // string). ClientID interface{} `json:"clientId,omitempty"` // The client secret of the google application used to acquire the refresh token. ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // Properties used to connect to GoogleAds. It is mutually exclusive with any other properties in the linked service. Type: // object. ConnectionProperties interface{} `json:"connectionProperties,omitempty"` // The developer token associated with the manager account that you use to grant access to the AdWords API. DeveloperToken [SecretBaseClassification](#SecretBaseClassification) `json:"developerToken,omitempty"` // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. Email interface{} `json:"email,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The full path to the .p12 key file that is used to authenticate the service account email address and can only be used // on self-hosted IR. KeyFilePath interface{} `json:"keyFilePath,omitempty"` // The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. RefreshToken [SecretBaseClassification](#SecretBaseClassification) `json:"refreshToken,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` } ``` GoogleAdWordsLinkedServiceTypeProperties - Google AdWords service linked service properties. #### func (GoogleAdWordsLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21609) [¶](#GoogleAdWordsLinkedServiceTypeProperties.MarshalJSON) ``` func (g [GoogleAdWordsLinkedServiceTypeProperties](#GoogleAdWordsLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsLinkedServiceTypeProperties. #### func (*GoogleAdWordsLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21627) [¶](#GoogleAdWordsLinkedServiceTypeProperties.UnmarshalJSON) ``` func (g *[GoogleAdWordsLinkedServiceTypeProperties](#GoogleAdWordsLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleAdWordsLinkedServiceTypeProperties. #### type [GoogleAdWordsObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12642) [¶](#GoogleAdWordsObjectDataset) ``` type GoogleAdWordsObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` GoogleAdWordsObjectDataset - Google AdWords service dataset. #### func (*GoogleAdWordsObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12676) [¶](#GoogleAdWordsObjectDataset.GetDataset) added in v0.2.0 ``` func (g *[GoogleAdWordsObjectDataset](#GoogleAdWordsObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type GoogleAdWordsObjectDataset. #### func (GoogleAdWordsObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21680) [¶](#GoogleAdWordsObjectDataset.MarshalJSON) ``` func (g [GoogleAdWordsObjectDataset](#GoogleAdWordsObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsObjectDataset. #### func (*GoogleAdWordsObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21700) [¶](#GoogleAdWordsObjectDataset.UnmarshalJSON) ``` func (g *[GoogleAdWordsObjectDataset](#GoogleAdWordsObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleAdWordsObjectDataset. #### type [GoogleAdWordsSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12691) [¶](#GoogleAdWordsSource) ``` type GoogleAdWordsSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` GoogleAdWordsSource - A copy activity Google AdWords service source. #### func (*GoogleAdWordsSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12722) [¶](#GoogleAdWordsSource.GetCopySource) added in v0.2.0 ``` func (g *[GoogleAdWordsSource](#GoogleAdWordsSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type GoogleAdWordsSource. #### func (*GoogleAdWordsSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12734) [¶](#GoogleAdWordsSource.GetTabularSource) added in v0.2.0 ``` func (g *[GoogleAdWordsSource](#GoogleAdWordsSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type GoogleAdWordsSource. #### func (GoogleAdWordsSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21754) [¶](#GoogleAdWordsSource.MarshalJSON) ``` func (g [GoogleAdWordsSource](#GoogleAdWordsSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsSource. #### func (*GoogleAdWordsSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21773) [¶](#GoogleAdWordsSource.UnmarshalJSON) ``` func (g *[GoogleAdWordsSource](#GoogleAdWordsSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleAdWordsSource. #### type [GoogleBigQueryAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L585) [¶](#GoogleBigQueryAuthenticationType) ``` type GoogleBigQueryAuthenticationType [string](/builtin#string) ``` GoogleBigQueryAuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. ``` const ( GoogleBigQueryAuthenticationTypeServiceAuthentication [GoogleBigQueryAuthenticationType](#GoogleBigQueryAuthenticationType) = "ServiceAuthentication" GoogleBigQueryAuthenticationTypeUserAuthentication [GoogleBigQueryAuthenticationType](#GoogleBigQueryAuthenticationType) = "UserAuthentication" ) ``` #### func [PossibleGoogleBigQueryAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L593) [¶](#PossibleGoogleBigQueryAuthenticationTypeValues) ``` func PossibleGoogleBigQueryAuthenticationTypeValues() [][GoogleBigQueryAuthenticationType](#GoogleBigQueryAuthenticationType) ``` PossibleGoogleBigQueryAuthenticationTypeValues returns the possible values for the GoogleBigQueryAuthenticationType const type. #### type [GoogleBigQueryDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12748) [¶](#GoogleBigQueryDatasetTypeProperties) ``` type GoogleBigQueryDatasetTypeProperties struct { // The database name of the Google BigQuery. Type: string (or Expression with resultType string). Dataset interface{} `json:"dataset,omitempty"` // The table name of the Google BigQuery. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using database + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` GoogleBigQueryDatasetTypeProperties - Google BigQuery Dataset Properties #### func (GoogleBigQueryDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21824) [¶](#GoogleBigQueryDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (g [GoogleBigQueryDatasetTypeProperties](#GoogleBigQueryDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryDatasetTypeProperties. #### func (*GoogleBigQueryDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21833) [¶](#GoogleBigQueryDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (g *[GoogleBigQueryDatasetTypeProperties](#GoogleBigQueryDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryDatasetTypeProperties. #### type [GoogleBigQueryLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12760) [¶](#GoogleBigQueryLinkedService) ``` type GoogleBigQueryLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Google BigQuery service linked service properties. TypeProperties *[GoogleBigQueryLinkedServiceTypeProperties](#GoogleBigQueryLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` GoogleBigQueryLinkedService - Google BigQuery service linked service. #### func (*GoogleBigQueryLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12784) [¶](#GoogleBigQueryLinkedService.GetLinkedService) added in v0.2.0 ``` func (g *[GoogleBigQueryLinkedService](#GoogleBigQueryLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type GoogleBigQueryLinkedService. #### func (GoogleBigQueryLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21859) [¶](#GoogleBigQueryLinkedService.MarshalJSON) ``` func (g [GoogleBigQueryLinkedService](#GoogleBigQueryLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryLinkedService. #### func (*GoogleBigQueryLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21876) [¶](#GoogleBigQueryLinkedService.UnmarshalJSON) ``` func (g *[GoogleBigQueryLinkedService](#GoogleBigQueryLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryLinkedService. #### type [GoogleBigQueryLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12796) [¶](#GoogleBigQueryLinkedServiceTypeProperties) ``` type GoogleBigQueryLinkedServiceTypeProperties struct { // REQUIRED; The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted // IR. AuthenticationType *[GoogleBigQueryAuthenticationType](#GoogleBigQueryAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The default BigQuery project to query against. Project interface{} `json:"project,omitempty"` // A comma-separated list of public BigQuery projects to access. AdditionalProjects interface{} `json:"additionalProjects,omitempty"` // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType // string). ClientID interface{} `json:"clientId,omitempty"` // The client secret of the google application used to acquire the refresh token. ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. Email interface{} `json:"email,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The full path to the .p12 key file that is used to authenticate the service account email address and can only be used // on self-hosted IR. KeyFilePath interface{} `json:"keyFilePath,omitempty"` // The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. RefreshToken [SecretBaseClassification](#SecretBaseClassification) `json:"refreshToken,omitempty"` // Whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine // BigQuery data with data from Google Drive. The default value is false. RequestGoogleDriveScope interface{} `json:"requestGoogleDriveScope,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` } ``` GoogleBigQueryLinkedServiceTypeProperties - Google BigQuery service linked service properties. #### func (GoogleBigQueryLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21921) [¶](#GoogleBigQueryLinkedServiceTypeProperties.MarshalJSON) ``` func (g [GoogleBigQueryLinkedServiceTypeProperties](#GoogleBigQueryLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryLinkedServiceTypeProperties. #### func (*GoogleBigQueryLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21939) [¶](#GoogleBigQueryLinkedServiceTypeProperties.UnmarshalJSON) ``` func (g *[GoogleBigQueryLinkedServiceTypeProperties](#GoogleBigQueryLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryLinkedServiceTypeProperties. #### type [GoogleBigQueryObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12843) [¶](#GoogleBigQueryObjectDataset) ``` type GoogleBigQueryObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GoogleBigQueryDatasetTypeProperties](#GoogleBigQueryDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` GoogleBigQueryObjectDataset - Google BigQuery service dataset. #### func (*GoogleBigQueryObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12877) [¶](#GoogleBigQueryObjectDataset.GetDataset) added in v0.2.0 ``` func (g *[GoogleBigQueryObjectDataset](#GoogleBigQueryObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type GoogleBigQueryObjectDataset. #### func (GoogleBigQueryObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L21992) [¶](#GoogleBigQueryObjectDataset.MarshalJSON) ``` func (g [GoogleBigQueryObjectDataset](#GoogleBigQueryObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryObjectDataset. #### func (*GoogleBigQueryObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22012) [¶](#GoogleBigQueryObjectDataset.UnmarshalJSON) ``` func (g *[GoogleBigQueryObjectDataset](#GoogleBigQueryObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryObjectDataset. #### type [GoogleBigQuerySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12892) [¶](#GoogleBigQuerySource) ``` type GoogleBigQuerySource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` GoogleBigQuerySource - A copy activity Google BigQuery service source. #### func (*GoogleBigQuerySource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12923) [¶](#GoogleBigQuerySource.GetCopySource) added in v0.2.0 ``` func (g *[GoogleBigQuerySource](#GoogleBigQuerySource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type GoogleBigQuerySource. #### func (*GoogleBigQuerySource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12935) [¶](#GoogleBigQuerySource.GetTabularSource) added in v0.2.0 ``` func (g *[GoogleBigQuerySource](#GoogleBigQuerySource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type GoogleBigQuerySource. #### func (GoogleBigQuerySource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22066) [¶](#GoogleBigQuerySource.MarshalJSON) ``` func (g [GoogleBigQuerySource](#GoogleBigQuerySource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleBigQuerySource. #### func (*GoogleBigQuerySource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22085) [¶](#GoogleBigQuerySource.UnmarshalJSON) ``` func (g *[GoogleBigQuerySource](#GoogleBigQuerySource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQuerySource. #### type [GoogleCloudStorageLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12949) [¶](#GoogleCloudStorageLinkedService) ``` type GoogleCloudStorageLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Google Cloud Storage linked service properties. TypeProperties *[GoogleCloudStorageLinkedServiceTypeProperties](#GoogleCloudStorageLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` GoogleCloudStorageLinkedService - Linked service for Google Cloud Storage. #### func (*GoogleCloudStorageLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12973) [¶](#GoogleCloudStorageLinkedService.GetLinkedService) added in v0.2.0 ``` func (g *[GoogleCloudStorageLinkedService](#GoogleCloudStorageLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type GoogleCloudStorageLinkedService. #### func (GoogleCloudStorageLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22136) [¶](#GoogleCloudStorageLinkedService.MarshalJSON) ``` func (g [GoogleCloudStorageLinkedService](#GoogleCloudStorageLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLinkedService. #### func (*GoogleCloudStorageLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22153) [¶](#GoogleCloudStorageLinkedService.UnmarshalJSON) ``` func (g *[GoogleCloudStorageLinkedService](#GoogleCloudStorageLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageLinkedService. #### type [GoogleCloudStorageLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L12985) [¶](#GoogleCloudStorageLinkedServiceTypeProperties) ``` type GoogleCloudStorageLinkedServiceTypeProperties struct { // The access key identifier of the Google Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression // with resultType string). AccessKeyID interface{} `json:"accessKeyId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. SecretAccessKey [SecretBaseClassification](#SecretBaseClassification) `json:"secretAccessKey,omitempty"` // This value specifies the endpoint to access with the Google Cloud Storage Connector. This is an optional property; change // it only if you want to try a different service endpoint or want to switch // between https and http. Type: string (or Expression with resultType string). ServiceURL interface{} `json:"serviceUrl,omitempty"` } ``` GoogleCloudStorageLinkedServiceTypeProperties - Google Cloud Storage linked service properties. #### func (GoogleCloudStorageLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22198) [¶](#GoogleCloudStorageLinkedServiceTypeProperties.MarshalJSON) ``` func (g [GoogleCloudStorageLinkedServiceTypeProperties](#GoogleCloudStorageLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLinkedServiceTypeProperties. #### func (*GoogleCloudStorageLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22208) [¶](#GoogleCloudStorageLinkedServiceTypeProperties.UnmarshalJSON) ``` func (g *[GoogleCloudStorageLinkedServiceTypeProperties](#GoogleCloudStorageLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageLinkedServiceTypeProperties. #### type [GoogleCloudStorageLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13004) [¶](#GoogleCloudStorageLocation) ``` type GoogleCloudStorageLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string) BucketName interface{} `json:"bucketName,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` // Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string). Version interface{} `json:"version,omitempty"` } ``` GoogleCloudStorageLocation - The location of Google Cloud Storage dataset. #### func (*GoogleCloudStorageLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13025) [¶](#GoogleCloudStorageLocation.GetDatasetLocation) added in v0.2.0 ``` func (g *[GoogleCloudStorageLocation](#GoogleCloudStorageLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type GoogleCloudStorageLocation. #### func (GoogleCloudStorageLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22237) [¶](#GoogleCloudStorageLocation.MarshalJSON) ``` func (g [GoogleCloudStorageLocation](#GoogleCloudStorageLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLocation. #### func (*GoogleCloudStorageLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22253) [¶](#GoogleCloudStorageLocation.UnmarshalJSON) ``` func (g *[GoogleCloudStorageLocation](#GoogleCloudStorageLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageLocation. #### type [GoogleCloudStorageReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13035) [¶](#GoogleCloudStorageReadSettings) ``` type GoogleCloudStorageReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string). Prefix interface{} `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` GoogleCloudStorageReadSettings - Google Cloud Storage read settings. #### func (*GoogleCloudStorageReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13083) [¶](#GoogleCloudStorageReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (g *[GoogleCloudStorageReadSettings](#GoogleCloudStorageReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type GoogleCloudStorageReadSettings. #### func (GoogleCloudStorageReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22295) [¶](#GoogleCloudStorageReadSettings.MarshalJSON) ``` func (g [GoogleCloudStorageReadSettings](#GoogleCloudStorageReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageReadSettings. #### func (*GoogleCloudStorageReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22319) [¶](#GoogleCloudStorageReadSettings.UnmarshalJSON) ``` func (g *[GoogleCloudStorageReadSettings](#GoogleCloudStorageReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageReadSettings. #### type [GoogleSheetsLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13093) [¶](#GoogleSheetsLinkedService) added in v1.3.0 ``` type GoogleSheetsLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; GoogleSheets linked service properties. TypeProperties *[GoogleSheetsLinkedServiceTypeProperties](#GoogleSheetsLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` GoogleSheetsLinkedService - Linked service for GoogleSheets. #### func (*GoogleSheetsLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13117) [¶](#GoogleSheetsLinkedService.GetLinkedService) added in v1.3.0 ``` func (g *[GoogleSheetsLinkedService](#GoogleSheetsLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type GoogleSheetsLinkedService. #### func (GoogleSheetsLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22385) [¶](#GoogleSheetsLinkedService.MarshalJSON) added in v1.3.0 ``` func (g [GoogleSheetsLinkedService](#GoogleSheetsLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleSheetsLinkedService. #### func (*GoogleSheetsLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22402) [¶](#GoogleSheetsLinkedService.UnmarshalJSON) added in v1.3.0 ``` func (g *[GoogleSheetsLinkedService](#GoogleSheetsLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleSheetsLinkedService. #### type [GoogleSheetsLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13129) [¶](#GoogleSheetsLinkedServiceTypeProperties) added in v1.3.0 ``` type GoogleSheetsLinkedServiceTypeProperties struct { // REQUIRED; The api token for the GoogleSheets source. APIToken [SecretBaseClassification](#SecretBaseClassification) `json:"apiToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` GoogleSheetsLinkedServiceTypeProperties - GoogleSheets linked service type properties. #### func (GoogleSheetsLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22447) [¶](#GoogleSheetsLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (g [GoogleSheetsLinkedServiceTypeProperties](#GoogleSheetsLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GoogleSheetsLinkedServiceTypeProperties. #### func (*GoogleSheetsLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22455) [¶](#GoogleSheetsLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (g *[GoogleSheetsLinkedServiceTypeProperties](#GoogleSheetsLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GoogleSheetsLinkedServiceTypeProperties. #### type [GreenplumDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13139) [¶](#GreenplumDatasetTypeProperties) ``` type GreenplumDatasetTypeProperties struct { // The schema name of Greenplum. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of Greenplum. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` GreenplumDatasetTypeProperties - Greenplum Dataset Properties #### func (GreenplumDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22478) [¶](#GreenplumDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (g [GreenplumDatasetTypeProperties](#GreenplumDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GreenplumDatasetTypeProperties. #### func (*GreenplumDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22487) [¶](#GreenplumDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (g *[GreenplumDatasetTypeProperties](#GreenplumDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GreenplumDatasetTypeProperties. #### type [GreenplumLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13151) [¶](#GreenplumLinkedService) ``` type GreenplumLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Greenplum Database linked service properties. TypeProperties *[GreenplumLinkedServiceTypeProperties](#GreenplumLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` GreenplumLinkedService - Greenplum Database linked service. #### func (*GreenplumLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13175) [¶](#GreenplumLinkedService.GetLinkedService) added in v0.2.0 ``` func (g *[GreenplumLinkedService](#GreenplumLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type GreenplumLinkedService. #### func (GreenplumLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22513) [¶](#GreenplumLinkedService.MarshalJSON) ``` func (g [GreenplumLinkedService](#GreenplumLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GreenplumLinkedService. #### func (*GreenplumLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22530) [¶](#GreenplumLinkedService.UnmarshalJSON) ``` func (g *[GreenplumLinkedService](#GreenplumLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GreenplumLinkedService. #### type [GreenplumLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13187) [¶](#GreenplumLinkedServiceTypeProperties) ``` type GreenplumLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"pwd,omitempty"` } ``` GreenplumLinkedServiceTypeProperties - Greenplum Database linked service properties. #### func (GreenplumLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22575) [¶](#GreenplumLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (g [GreenplumLinkedServiceTypeProperties](#GreenplumLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GreenplumLinkedServiceTypeProperties. #### func (*GreenplumLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22584) [¶](#GreenplumLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (g *[GreenplumLinkedServiceTypeProperties](#GreenplumLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GreenplumLinkedServiceTypeProperties. #### type [GreenplumSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13200) [¶](#GreenplumSource) ``` type GreenplumSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` GreenplumSource - A copy activity Greenplum Database source. #### func (*GreenplumSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13231) [¶](#GreenplumSource.GetCopySource) added in v0.2.0 ``` func (g *[GreenplumSource](#GreenplumSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type GreenplumSource. #### func (*GreenplumSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13243) [¶](#GreenplumSource.GetTabularSource) added in v0.2.0 ``` func (g *[GreenplumSource](#GreenplumSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type GreenplumSource. #### func (GreenplumSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22610) [¶](#GreenplumSource.MarshalJSON) ``` func (g [GreenplumSource](#GreenplumSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GreenplumSource. #### func (*GreenplumSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22629) [¶](#GreenplumSource.UnmarshalJSON) ``` func (g *[GreenplumSource](#GreenplumSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GreenplumSource. #### type [GreenplumTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13257) [¶](#GreenplumTableDataset) ``` type GreenplumTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GreenplumDatasetTypeProperties](#GreenplumDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` GreenplumTableDataset - Greenplum Database dataset. #### func (*GreenplumTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13291) [¶](#GreenplumTableDataset.GetDataset) added in v0.2.0 ``` func (g *[GreenplumTableDataset](#GreenplumTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type GreenplumTableDataset. #### func (GreenplumTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22680) [¶](#GreenplumTableDataset.MarshalJSON) ``` func (g [GreenplumTableDataset](#GreenplumTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type GreenplumTableDataset. #### func (*GreenplumTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22700) [¶](#GreenplumTableDataset.UnmarshalJSON) ``` func (g *[GreenplumTableDataset](#GreenplumTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type GreenplumTableDataset. #### type [HBaseAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L601) [¶](#HBaseAuthenticationType) ``` type HBaseAuthenticationType [string](/builtin#string) ``` HBaseAuthenticationType - The authentication mechanism to use to connect to the HBase server. ``` const ( HBaseAuthenticationTypeAnonymous [HBaseAuthenticationType](#HBaseAuthenticationType) = "Anonymous" HBaseAuthenticationTypeBasic [HBaseAuthenticationType](#HBaseAuthenticationType) = "Basic" ) ``` #### func [PossibleHBaseAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L609) [¶](#PossibleHBaseAuthenticationTypeValues) ``` func PossibleHBaseAuthenticationTypeValues() [][HBaseAuthenticationType](#HBaseAuthenticationType) ``` PossibleHBaseAuthenticationTypeValues returns the possible values for the HBaseAuthenticationType const type. #### type [HBaseLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13306) [¶](#HBaseLinkedService) ``` type HBaseLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HBase server linked service properties. TypeProperties *[HBaseLinkedServiceTypeProperties](#HBaseLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` HBaseLinkedService - HBase server linked service. #### func (*HBaseLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13330) [¶](#HBaseLinkedService.GetLinkedService) added in v0.2.0 ``` func (h *[HBaseLinkedService](#HBaseLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type HBaseLinkedService. #### func (HBaseLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22754) [¶](#HBaseLinkedService.MarshalJSON) ``` func (h [HBaseLinkedService](#HBaseLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HBaseLinkedService. #### func (*HBaseLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22771) [¶](#HBaseLinkedService.UnmarshalJSON) ``` func (h *[HBaseLinkedService](#HBaseLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HBaseLinkedService. #### type [HBaseLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13342) [¶](#HBaseLinkedServiceTypeProperties) ``` type HBaseLinkedServiceTypeProperties struct { // REQUIRED; The authentication mechanism to use to connect to the HBase server. AuthenticationType *[HBaseAuthenticationType](#HBaseAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The IP address or host name of the HBase server. (i.e. 192.168.222.160) Host interface{} `json:"host,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. EnableSSL interface{} `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) HTTPPath interface{} `json:"httpPath,omitempty"` // The password corresponding to the user name. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port that the HBase instance uses to listen for client connections. The default value is 9090. Port interface{} `json:"port,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` // The user name used to connect to the HBase instance. Username interface{} `json:"username,omitempty"` } ``` HBaseLinkedServiceTypeProperties - HBase server linked service properties. #### func (HBaseLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22816) [¶](#HBaseLinkedServiceTypeProperties.MarshalJSON) ``` func (h [HBaseLinkedServiceTypeProperties](#HBaseLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HBaseLinkedServiceTypeProperties. #### func (*HBaseLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22833) [¶](#HBaseLinkedServiceTypeProperties.UnmarshalJSON) ``` func (h *[HBaseLinkedServiceTypeProperties](#HBaseLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HBaseLinkedServiceTypeProperties. #### type [HBaseObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13382) [¶](#HBaseObjectDataset) ``` type HBaseObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` HBaseObjectDataset - HBase server dataset. #### func (*HBaseObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13416) [¶](#HBaseObjectDataset.GetDataset) added in v0.2.0 ``` func (h *[HBaseObjectDataset](#HBaseObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type HBaseObjectDataset. #### func (HBaseObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22883) [¶](#HBaseObjectDataset.MarshalJSON) ``` func (h [HBaseObjectDataset](#HBaseObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HBaseObjectDataset. #### func (*HBaseObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22903) [¶](#HBaseObjectDataset.UnmarshalJSON) ``` func (h *[HBaseObjectDataset](#HBaseObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HBaseObjectDataset. #### type [HBaseSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13431) [¶](#HBaseSource) ``` type HBaseSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` HBaseSource - A copy activity HBase server source. #### func (*HBaseSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13462) [¶](#HBaseSource.GetCopySource) added in v0.2.0 ``` func (h *[HBaseSource](#HBaseSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type HBaseSource. #### func (*HBaseSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13474) [¶](#HBaseSource.GetTabularSource) added in v0.2.0 ``` func (h *[HBaseSource](#HBaseSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type HBaseSource. #### func (HBaseSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22957) [¶](#HBaseSource.MarshalJSON) ``` func (h [HBaseSource](#HBaseSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HBaseSource. #### func (*HBaseSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L22976) [¶](#HBaseSource.UnmarshalJSON) ``` func (h *[HBaseSource](#HBaseSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HBaseSource. #### type [HDInsightActivityDebugInfoOption](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L617) [¶](#HDInsightActivityDebugInfoOption) ``` type HDInsightActivityDebugInfoOption [string](/builtin#string) ``` HDInsightActivityDebugInfoOption - The HDInsightActivityDebugInfoOption settings to use. ``` const ( HDInsightActivityDebugInfoOptionAlways [HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) = "Always" HDInsightActivityDebugInfoOptionFailure [HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) = "Failure" HDInsightActivityDebugInfoOptionNone [HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) = "None" ) ``` #### func [PossibleHDInsightActivityDebugInfoOptionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L626) [¶](#PossibleHDInsightActivityDebugInfoOptionValues) ``` func PossibleHDInsightActivityDebugInfoOptionValues() [][HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) ``` PossibleHDInsightActivityDebugInfoOptionValues returns the possible values for the HDInsightActivityDebugInfoOption const type. #### type [HDInsightHiveActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13488) [¶](#HDInsightHiveActivity) ``` type HDInsightHiveActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HDInsight Hive activity properties. TypeProperties *[HDInsightHiveActivityTypeProperties](#HDInsightHiveActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` HDInsightHiveActivity - HDInsight Hive activity type. #### func (*HDInsightHiveActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13518) [¶](#HDInsightHiveActivity.GetActivity) added in v0.2.0 ``` func (h *[HDInsightHiveActivity](#HDInsightHiveActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type HDInsightHiveActivity. #### func (*HDInsightHiveActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13530) [¶](#HDInsightHiveActivity.GetExecutionActivity) added in v0.2.0 ``` func (h *[HDInsightHiveActivity](#HDInsightHiveActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightHiveActivity. #### func (HDInsightHiveActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23027) [¶](#HDInsightHiveActivity.MarshalJSON) ``` func (h [HDInsightHiveActivity](#HDInsightHiveActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightHiveActivity. #### func (*HDInsightHiveActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23046) [¶](#HDInsightHiveActivity.UnmarshalJSON) ``` func (h *[HDInsightHiveActivity](#HDInsightHiveActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightHiveActivity. #### type [HDInsightHiveActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13544) [¶](#HDInsightHiveActivityTypeProperties) ``` type HDInsightHiveActivityTypeProperties struct { // User specified arguments to HDInsightActivity. Arguments []interface{} `json:"arguments,omitempty"` // Allows user to specify defines for Hive job request. Defines map[[string](/builtin#string)]interface{} `json:"defines,omitempty"` // Debug info option. GetDebugInfo *[HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) `json:"getDebugInfo,omitempty"` // Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package) QueryTimeout *[int32](/builtin#int32) `json:"queryTimeout,omitempty"` // Script linked service reference. ScriptLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"scriptLinkedService,omitempty"` // Script path. Type: string (or Expression with resultType string). ScriptPath interface{} `json:"scriptPath,omitempty"` // Storage linked service references. StorageLinkedServices []*[LinkedServiceReference](#LinkedServiceReference) `json:"storageLinkedServices,omitempty"` // User specified arguments under hivevar namespace. Variables []interface{} `json:"variables,omitempty"` } ``` HDInsightHiveActivityTypeProperties - HDInsight Hive activity properties. #### func (HDInsightHiveActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23097) [¶](#HDInsightHiveActivityTypeProperties.MarshalJSON) ``` func (h [HDInsightHiveActivityTypeProperties](#HDInsightHiveActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightHiveActivityTypeProperties. #### func (*HDInsightHiveActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23111) [¶](#HDInsightHiveActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (h *[HDInsightHiveActivityTypeProperties](#HDInsightHiveActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightHiveActivityTypeProperties. #### type [HDInsightLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13571) [¶](#HDInsightLinkedService) ``` type HDInsightLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HDInsight linked service properties. TypeProperties *[HDInsightLinkedServiceTypeProperties](#HDInsightLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` HDInsightLinkedService - HDInsight linked service. #### func (*HDInsightLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13595) [¶](#HDInsightLinkedService.GetLinkedService) added in v0.2.0 ``` func (h *[HDInsightLinkedService](#HDInsightLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type HDInsightLinkedService. #### func (HDInsightLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23152) [¶](#HDInsightLinkedService.MarshalJSON) ``` func (h [HDInsightLinkedService](#HDInsightLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightLinkedService. #### func (*HDInsightLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23169) [¶](#HDInsightLinkedService.UnmarshalJSON) ``` func (h *[HDInsightLinkedService](#HDInsightLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightLinkedService. #### type [HDInsightLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13607) [¶](#HDInsightLinkedServiceTypeProperties) ``` type HDInsightLinkedServiceTypeProperties struct { // REQUIRED; HDInsight cluster URI. Type: string (or Expression with resultType string). ClusterURI interface{} `json:"clusterUri,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType // string). FileSystem interface{} `json:"fileSystem,omitempty"` // A reference to the Azure SQL linked service that points to the HCatalog database. HcatalogLinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"hcatalogLinkedServiceName,omitempty"` // Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. IsEspEnabled interface{} `json:"isEspEnabled,omitempty"` // The Azure Storage linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // HDInsight cluster password. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // HDInsight cluster user name. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` HDInsightLinkedServiceTypeProperties - HDInsight linked service properties. #### func (HDInsightLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23214) [¶](#HDInsightLinkedServiceTypeProperties.MarshalJSON) ``` func (h [HDInsightLinkedServiceTypeProperties](#HDInsightLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightLinkedServiceTypeProperties. #### func (*HDInsightLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23228) [¶](#HDInsightLinkedServiceTypeProperties.UnmarshalJSON) ``` func (h *[HDInsightLinkedServiceTypeProperties](#HDInsightLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightLinkedServiceTypeProperties. #### type [HDInsightMapReduceActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13636) [¶](#HDInsightMapReduceActivity) ``` type HDInsightMapReduceActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HDInsight MapReduce activity properties. TypeProperties *[HDInsightMapReduceActivityTypeProperties](#HDInsightMapReduceActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` HDInsightMapReduceActivity - HDInsight MapReduce activity type. #### func (*HDInsightMapReduceActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13666) [¶](#HDInsightMapReduceActivity.GetActivity) added in v0.2.0 ``` func (h *[HDInsightMapReduceActivity](#HDInsightMapReduceActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type HDInsightMapReduceActivity. #### func (*HDInsightMapReduceActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13678) [¶](#HDInsightMapReduceActivity.GetExecutionActivity) added in v0.2.0 ``` func (h *[HDInsightMapReduceActivity](#HDInsightMapReduceActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightMapReduceActivity. #### func (HDInsightMapReduceActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23269) [¶](#HDInsightMapReduceActivity.MarshalJSON) ``` func (h [HDInsightMapReduceActivity](#HDInsightMapReduceActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightMapReduceActivity. #### func (*HDInsightMapReduceActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23288) [¶](#HDInsightMapReduceActivity.UnmarshalJSON) ``` func (h *[HDInsightMapReduceActivity](#HDInsightMapReduceActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightMapReduceActivity. #### type [HDInsightMapReduceActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13692) [¶](#HDInsightMapReduceActivityTypeProperties) ``` type HDInsightMapReduceActivityTypeProperties struct { // REQUIRED; Class name. Type: string (or Expression with resultType string). ClassName interface{} `json:"className,omitempty"` // REQUIRED; Jar path. Type: string (or Expression with resultType string). JarFilePath interface{} `json:"jarFilePath,omitempty"` // User specified arguments to HDInsightActivity. Arguments []interface{} `json:"arguments,omitempty"` // Allows user to specify defines for the MapReduce job request. Defines map[[string](/builtin#string)]interface{} `json:"defines,omitempty"` // Debug info option. GetDebugInfo *[HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) `json:"getDebugInfo,omitempty"` // Jar libs. JarLibs []interface{} `json:"jarLibs,omitempty"` // Jar linked service reference. JarLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"jarLinkedService,omitempty"` // Storage linked service references. StorageLinkedServices []*[LinkedServiceReference](#LinkedServiceReference) `json:"storageLinkedServices,omitempty"` } ``` HDInsightMapReduceActivityTypeProperties - HDInsight MapReduce activity properties. #### func (HDInsightMapReduceActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23339) [¶](#HDInsightMapReduceActivityTypeProperties.MarshalJSON) ``` func (h [HDInsightMapReduceActivityTypeProperties](#HDInsightMapReduceActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightMapReduceActivityTypeProperties. #### func (*HDInsightMapReduceActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23353) [¶](#HDInsightMapReduceActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (h *[HDInsightMapReduceActivityTypeProperties](#HDInsightMapReduceActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightMapReduceActivityTypeProperties. #### type [HDInsightOnDemandLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13719) [¶](#HDInsightOnDemandLinkedService) ``` type HDInsightOnDemandLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HDInsight ondemand linked service properties. TypeProperties *[HDInsightOnDemandLinkedServiceTypeProperties](#HDInsightOnDemandLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` HDInsightOnDemandLinkedService - HDInsight ondemand linked service. #### func (*HDInsightOnDemandLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13743) [¶](#HDInsightOnDemandLinkedService.GetLinkedService) added in v0.2.0 ``` func (h *[HDInsightOnDemandLinkedService](#HDInsightOnDemandLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type HDInsightOnDemandLinkedService. #### func (HDInsightOnDemandLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23394) [¶](#HDInsightOnDemandLinkedService.MarshalJSON) ``` func (h [HDInsightOnDemandLinkedService](#HDInsightOnDemandLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightOnDemandLinkedService. #### func (*HDInsightOnDemandLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23411) [¶](#HDInsightOnDemandLinkedService.UnmarshalJSON) ``` func (h *[HDInsightOnDemandLinkedService](#HDInsightOnDemandLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightOnDemandLinkedService. #### type [HDInsightOnDemandLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13755) [¶](#HDInsightOnDemandLinkedServiceTypeProperties) ``` type HDInsightOnDemandLinkedServiceTypeProperties struct { // REQUIRED; The resource group where the cluster belongs. Type: string (or Expression with resultType string). ClusterResourceGroup interface{} `json:"clusterResourceGroup,omitempty"` // REQUIRED; Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or Expression with resultType // string). ClusterSize interface{} `json:"clusterSize,omitempty"` // REQUIRED; The customer’s subscription to host the cluster. Type: string (or Expression with resultType string). HostSubscriptionID interface{} `json:"hostSubscriptionId,omitempty"` // REQUIRED; Azure Storage linked service to be used by the on-demand cluster for storing and processing data. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; The Tenant id/name to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` // REQUIRED; The allowed idle time for the on-demand HDInsight cluster. Specifies how long the on-demand HDInsight cluster // stays alive after completion of an activity run if there are no other active jobs in the // cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). TimeToLive interface{} `json:"timeToLive,omitempty"` // REQUIRED; Version of the HDInsight cluster. Type: string (or Expression with resultType string). Version interface{} `json:"version,omitempty"` // Specifies additional storage accounts for the HDInsight linked service so that the Data Factory service can register them // on your behalf. AdditionalLinkedServiceNames []*[LinkedServiceReference](#LinkedServiceReference) `json:"additionalLinkedServiceNames,omitempty"` // The prefix of cluster name, postfix will be distinct with timestamp. Type: string (or Expression with resultType string). ClusterNamePrefix interface{} `json:"clusterNamePrefix,omitempty"` // The password to access the cluster. ClusterPassword [SecretBaseClassification](#SecretBaseClassification) `json:"clusterPassword,omitempty"` // The password to SSH remotely connect cluster’s node (for Linux). ClusterSSHPassword [SecretBaseClassification](#SecretBaseClassification) `json:"clusterSshPassword,omitempty"` // The username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression with resultType string). ClusterSSHUserName interface{} `json:"clusterSshUserName,omitempty"` // The cluster type. Type: string (or Expression with resultType string). ClusterType interface{} `json:"clusterType,omitempty"` // The username to access the cluster. Type: string (or Expression with resultType string). ClusterUserName interface{} `json:"clusterUserName,omitempty"` // Specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to be created. CoreConfiguration interface{} `json:"coreConfiguration,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // Specifies the size of the data node for the HDInsight cluster. DataNodeSize interface{} `json:"dataNodeSize,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. HBaseConfiguration interface{} `json:"hBaseConfiguration,omitempty"` // The name of Azure SQL linked service that point to the HCatalog database. The on-demand HDInsight cluster is created by // using the Azure SQL database as the metastore. HcatalogLinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"hcatalogLinkedServiceName,omitempty"` // Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster. HdfsConfiguration interface{} `json:"hdfsConfiguration,omitempty"` // Specifies the size of the head node for the HDInsight cluster. HeadNodeSize interface{} `json:"headNodeSize,omitempty"` // Specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster. HiveConfiguration interface{} `json:"hiveConfiguration,omitempty"` // Specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster. MapReduceConfiguration interface{} `json:"mapReduceConfiguration,omitempty"` // Specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster. OozieConfiguration interface{} `json:"oozieConfiguration,omitempty"` // Custom script actions to run on HDI ondemand cluster once it's up. Please refer to // <https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions>. ScriptActions []*[ScriptAction](#ScriptAction) `json:"scriptActions,omitempty"` // The service principal id for the hostSubscriptionId. Type: string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key for the service principal id. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The version of spark if the cluster type is 'spark'. Type: string (or Expression with resultType string). SparkVersion interface{} `json:"sparkVersion,omitempty"` // Specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster. StormConfiguration interface{} `json:"stormConfiguration,omitempty"` // The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, then this property is required. Type: // string (or Expression with resultType string). SubnetName interface{} `json:"subnetName,omitempty"` // The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with // resultType string). VirtualNetworkID interface{} `json:"virtualNetworkId,omitempty"` // Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster. YarnConfiguration interface{} `json:"yarnConfiguration,omitempty"` // Specifies the size of the Zoo Keeper node for the HDInsight cluster. ZookeeperNodeSize interface{} `json:"zookeeperNodeSize,omitempty"` } ``` HDInsightOnDemandLinkedServiceTypeProperties - HDInsight ondemand linked service properties. #### func (HDInsightOnDemandLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23456) [¶](#HDInsightOnDemandLinkedServiceTypeProperties.MarshalJSON) ``` func (h [HDInsightOnDemandLinkedServiceTypeProperties](#HDInsightOnDemandLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightOnDemandLinkedServiceTypeProperties. #### func (*HDInsightOnDemandLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23496) [¶](#HDInsightOnDemandLinkedServiceTypeProperties.UnmarshalJSON) ``` func (h *[HDInsightOnDemandLinkedServiceTypeProperties](#HDInsightOnDemandLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightOnDemandLinkedServiceTypeProperties. #### type [HDInsightPigActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13869) [¶](#HDInsightPigActivity) ``` type HDInsightPigActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HDInsight Pig activity properties. TypeProperties *[HDInsightPigActivityTypeProperties](#HDInsightPigActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` HDInsightPigActivity - HDInsight Pig activity type. #### func (*HDInsightPigActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13899) [¶](#HDInsightPigActivity.GetActivity) added in v0.2.0 ``` func (h *[HDInsightPigActivity](#HDInsightPigActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type HDInsightPigActivity. #### func (*HDInsightPigActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13911) [¶](#HDInsightPigActivity.GetExecutionActivity) added in v0.2.0 ``` func (h *[HDInsightPigActivity](#HDInsightPigActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightPigActivity. #### func (HDInsightPigActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23615) [¶](#HDInsightPigActivity.MarshalJSON) ``` func (h [HDInsightPigActivity](#HDInsightPigActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightPigActivity. #### func (*HDInsightPigActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23634) [¶](#HDInsightPigActivity.UnmarshalJSON) ``` func (h *[HDInsightPigActivity](#HDInsightPigActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightPigActivity. #### type [HDInsightPigActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13925) [¶](#HDInsightPigActivityTypeProperties) ``` type HDInsightPigActivityTypeProperties struct { // User specified arguments to HDInsightActivity. Type: array (or Expression with resultType array). Arguments interface{} `json:"arguments,omitempty"` // Allows user to specify defines for Pig job request. Defines map[[string](/builtin#string)]interface{} `json:"defines,omitempty"` // Debug info option. GetDebugInfo *[HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) `json:"getDebugInfo,omitempty"` // Script linked service reference. ScriptLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"scriptLinkedService,omitempty"` // Script path. Type: string (or Expression with resultType string). ScriptPath interface{} `json:"scriptPath,omitempty"` // Storage linked service references. StorageLinkedServices []*[LinkedServiceReference](#LinkedServiceReference) `json:"storageLinkedServices,omitempty"` } ``` HDInsightPigActivityTypeProperties - HDInsight Pig activity properties. #### func (HDInsightPigActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23685) [¶](#HDInsightPigActivityTypeProperties.MarshalJSON) ``` func (h [HDInsightPigActivityTypeProperties](#HDInsightPigActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightPigActivityTypeProperties. #### func (*HDInsightPigActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23697) [¶](#HDInsightPigActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (h *[HDInsightPigActivityTypeProperties](#HDInsightPigActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightPigActivityTypeProperties. #### type [HDInsightSparkActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13946) [¶](#HDInsightSparkActivity) ``` type HDInsightSparkActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HDInsight spark activity properties. TypeProperties *[HDInsightSparkActivityTypeProperties](#HDInsightSparkActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` HDInsightSparkActivity - HDInsight Spark activity. #### func (*HDInsightSparkActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13976) [¶](#HDInsightSparkActivity.GetActivity) added in v0.2.0 ``` func (h *[HDInsightSparkActivity](#HDInsightSparkActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type HDInsightSparkActivity. #### func (*HDInsightSparkActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L13988) [¶](#HDInsightSparkActivity.GetExecutionActivity) added in v0.2.0 ``` func (h *[HDInsightSparkActivity](#HDInsightSparkActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightSparkActivity. #### func (HDInsightSparkActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23732) [¶](#HDInsightSparkActivity.MarshalJSON) ``` func (h [HDInsightSparkActivity](#HDInsightSparkActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightSparkActivity. #### func (*HDInsightSparkActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23751) [¶](#HDInsightSparkActivity.UnmarshalJSON) ``` func (h *[HDInsightSparkActivity](#HDInsightSparkActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightSparkActivity. #### type [HDInsightSparkActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14002) [¶](#HDInsightSparkActivityTypeProperties) ``` type HDInsightSparkActivityTypeProperties struct { // REQUIRED; The relative path to the root folder of the code/package to be executed. Type: string (or Expression with resultType // string). EntryFilePath interface{} `json:"entryFilePath,omitempty"` // REQUIRED; The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression with resultType // string). RootPath interface{} `json:"rootPath,omitempty"` // The user-specified arguments to HDInsightSparkActivity. Arguments []interface{} `json:"arguments,omitempty"` // The application's Java/Spark main class. ClassName *[string](/builtin#string) `json:"className,omitempty"` // Debug info option. GetDebugInfo *[HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) `json:"getDebugInfo,omitempty"` // The user to impersonate that will execute the job. Type: string (or Expression with resultType string). ProxyUser interface{} `json:"proxyUser,omitempty"` // Spark configuration property. SparkConfig map[[string](/builtin#string)]interface{} `json:"sparkConfig,omitempty"` // The storage linked service for uploading the entry file and dependencies, and for receiving logs. SparkJobLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"sparkJobLinkedService,omitempty"` } ``` HDInsightSparkActivityTypeProperties - HDInsight spark activity properties. #### func (HDInsightSparkActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23802) [¶](#HDInsightSparkActivityTypeProperties.MarshalJSON) ``` func (h [HDInsightSparkActivityTypeProperties](#HDInsightSparkActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightSparkActivityTypeProperties. #### func (*HDInsightSparkActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23816) [¶](#HDInsightSparkActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (h *[HDInsightSparkActivityTypeProperties](#HDInsightSparkActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightSparkActivityTypeProperties. #### type [HDInsightStreamingActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14031) [¶](#HDInsightStreamingActivity) ``` type HDInsightStreamingActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HDInsight streaming activity properties. TypeProperties *[HDInsightStreamingActivityTypeProperties](#HDInsightStreamingActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` HDInsightStreamingActivity - HDInsight streaming activity type. #### func (*HDInsightStreamingActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14061) [¶](#HDInsightStreamingActivity.GetActivity) added in v0.2.0 ``` func (h *[HDInsightStreamingActivity](#HDInsightStreamingActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type HDInsightStreamingActivity. #### func (*HDInsightStreamingActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14073) [¶](#HDInsightStreamingActivity.GetExecutionActivity) added in v0.2.0 ``` func (h *[HDInsightStreamingActivity](#HDInsightStreamingActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightStreamingActivity. #### func (HDInsightStreamingActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23857) [¶](#HDInsightStreamingActivity.MarshalJSON) ``` func (h [HDInsightStreamingActivity](#HDInsightStreamingActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightStreamingActivity. #### func (*HDInsightStreamingActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23876) [¶](#HDInsightStreamingActivity.UnmarshalJSON) ``` func (h *[HDInsightStreamingActivity](#HDInsightStreamingActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightStreamingActivity. #### type [HDInsightStreamingActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14087) [¶](#HDInsightStreamingActivityTypeProperties) ``` type HDInsightStreamingActivityTypeProperties struct { // REQUIRED; Paths to streaming job files. Can be directories. FilePaths []interface{} `json:"filePaths,omitempty"` // REQUIRED; Input blob path. Type: string (or Expression with resultType string). Input interface{} `json:"input,omitempty"` // REQUIRED; Mapper executable name. Type: string (or Expression with resultType string). Mapper interface{} `json:"mapper,omitempty"` // REQUIRED; Output blob path. Type: string (or Expression with resultType string). Output interface{} `json:"output,omitempty"` // REQUIRED; Reducer executable name. Type: string (or Expression with resultType string). Reducer interface{} `json:"reducer,omitempty"` // User specified arguments to HDInsightActivity. Arguments []interface{} `json:"arguments,omitempty"` // Combiner executable name. Type: string (or Expression with resultType string). Combiner interface{} `json:"combiner,omitempty"` // Command line environment values. CommandEnvironment []interface{} `json:"commandEnvironment,omitempty"` // Allows user to specify defines for streaming job request. Defines map[[string](/builtin#string)]interface{} `json:"defines,omitempty"` // Linked service reference where the files are located. FileLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"fileLinkedService,omitempty"` // Debug info option. GetDebugInfo *[HDInsightActivityDebugInfoOption](#HDInsightActivityDebugInfoOption) `json:"getDebugInfo,omitempty"` // Storage linked service references. StorageLinkedServices []*[LinkedServiceReference](#LinkedServiceReference) `json:"storageLinkedServices,omitempty"` } ``` HDInsightStreamingActivityTypeProperties - HDInsight streaming activity properties. #### func (HDInsightStreamingActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23927) [¶](#HDInsightStreamingActivityTypeProperties.MarshalJSON) ``` func (h [HDInsightStreamingActivityTypeProperties](#HDInsightStreamingActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HDInsightStreamingActivityTypeProperties. #### func (*HDInsightStreamingActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23945) [¶](#HDInsightStreamingActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (h *[HDInsightStreamingActivityTypeProperties](#HDInsightStreamingActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightStreamingActivityTypeProperties. #### type [HTTPAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L635) [¶](#HTTPAuthenticationType) ``` type HTTPAuthenticationType [string](/builtin#string) ``` HTTPAuthenticationType - The authentication type to be used to connect to the HTTP server. ``` const ( HTTPAuthenticationTypeAnonymous [HTTPAuthenticationType](#HTTPAuthenticationType) = "Anonymous" HTTPAuthenticationTypeBasic [HTTPAuthenticationType](#HTTPAuthenticationType) = "Basic" HTTPAuthenticationTypeClientCertificate [HTTPAuthenticationType](#HTTPAuthenticationType) = "ClientCertificate" HTTPAuthenticationTypeDigest [HTTPAuthenticationType](#HTTPAuthenticationType) = "Digest" HTTPAuthenticationTypeWindows [HTTPAuthenticationType](#HTTPAuthenticationType) = "Windows" ) ``` #### func [PossibleHTTPAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L646) [¶](#PossibleHTTPAuthenticationTypeValues) ``` func PossibleHTTPAuthenticationTypeValues() [][HTTPAuthenticationType](#HTTPAuthenticationType) ``` PossibleHTTPAuthenticationTypeValues returns the possible values for the HTTPAuthenticationType const type. #### type [HTTPDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14126) [¶](#HTTPDataset) ``` type HTTPDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[HTTPDatasetTypeProperties](#HTTPDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` HTTPDataset - A file in an HTTP web server. #### func (*HTTPDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14160) [¶](#HTTPDataset.GetDataset) added in v0.2.0 ``` func (h *[HTTPDataset](#HTTPDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type HTTPDataset. #### func (HTTPDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L23998) [¶](#HTTPDataset.MarshalJSON) ``` func (h [HTTPDataset](#HTTPDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HTTPDataset. #### func (*HTTPDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24018) [¶](#HTTPDataset.UnmarshalJSON) ``` func (h *[HTTPDataset](#HTTPDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HTTPDataset. #### type [HTTPDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14175) [¶](#HTTPDatasetTypeProperties) ``` type HTTPDatasetTypeProperties struct { // The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 … request-header-name-n:request-header-value-n // Type: string (or Expression with resultType string). AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` // The data compression method used on files. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // The format of files. Format [DatasetStorageFormatClassification](#DatasetStorageFormatClassification) `json:"format,omitempty"` // The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType // string). RelativeURL interface{} `json:"relativeUrl,omitempty"` // The body for the HTTP request. Type: string (or Expression with resultType string). RequestBody interface{} `json:"requestBody,omitempty"` // The HTTP method for the HTTP request. Type: string (or Expression with resultType string). RequestMethod interface{} `json:"requestMethod,omitempty"` } ``` HTTPDatasetTypeProperties - Properties specific to this dataset type. #### func (HTTPDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24072) [¶](#HTTPDatasetTypeProperties.MarshalJSON) ``` func (h [HTTPDatasetTypeProperties](#HTTPDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HTTPDatasetTypeProperties. #### func (*HTTPDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24084) [¶](#HTTPDatasetTypeProperties.UnmarshalJSON) ``` func (h *[HTTPDatasetTypeProperties](#HTTPDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HTTPDatasetTypeProperties. #### type [HTTPLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14198) [¶](#HTTPLinkedService) ``` type HTTPLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to this linked service type. TypeProperties *[HTTPLinkedServiceTypeProperties](#HTTPLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` HTTPLinkedService - Linked service for an HTTP source. #### func (*HTTPLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14222) [¶](#HTTPLinkedService.GetLinkedService) added in v0.2.0 ``` func (h *[HTTPLinkedService](#HTTPLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type HTTPLinkedService. #### func (HTTPLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24119) [¶](#HTTPLinkedService.MarshalJSON) ``` func (h [HTTPLinkedService](#HTTPLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HTTPLinkedService. #### func (*HTTPLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24136) [¶](#HTTPLinkedService.UnmarshalJSON) ``` func (h *[HTTPLinkedService](#HTTPLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HTTPLinkedService. #### type [HTTPLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14234) [¶](#HTTPLinkedServiceTypeProperties) ``` type HTTPLinkedServiceTypeProperties struct { // REQUIRED; The base URL of the HTTP endpoint, e.g. <https://www.microsoft.com.> Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType // object). AuthHeaders interface{} `json:"authHeaders,omitempty"` // The authentication type to be used to connect to the HTTP server. AuthenticationType *[HTTPAuthenticationType](#HTTPAuthenticationType) `json:"authenticationType,omitempty"` // Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with // ClientCertificate authentication, either CertThumbprint or // EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). CertThumbprint interface{} `json:"certThumbprint,omitempty"` // Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, // either CertThumbprint or EmbeddedCertData/Password should be // specified. Type: string (or Expression with resultType string). EmbeddedCertData interface{} `json:"embeddedCertData,omitempty"` // If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType // boolean). EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` HTTPLinkedServiceTypeProperties - Properties specific to this linked service type. #### func (HTTPLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24181) [¶](#HTTPLinkedServiceTypeProperties.MarshalJSON) ``` func (h [HTTPLinkedServiceTypeProperties](#HTTPLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HTTPLinkedServiceTypeProperties. #### func (*HTTPLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24196) [¶](#HTTPLinkedServiceTypeProperties.UnmarshalJSON) ``` func (h *[HTTPLinkedServiceTypeProperties](#HTTPLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HTTPLinkedServiceTypeProperties. #### type [HTTPReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14272) [¶](#HTTPReadSettings) ``` type HTTPReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). RequestBody interface{} `json:"requestBody,omitempty"` // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). RequestMethod interface{} `json:"requestMethod,omitempty"` // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. RequestTimeout interface{} `json:"requestTimeout,omitempty"` } ``` HTTPReadSettings - Sftp read settings. #### func (*HTTPReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14305) [¶](#HTTPReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (h *[HTTPReadSettings](#HTTPReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type HTTPReadSettings. #### func (HTTPReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24240) [¶](#HTTPReadSettings.MarshalJSON) ``` func (h [HTTPReadSettings](#HTTPReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HTTPReadSettings. #### func (*HTTPReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24260) [¶](#HTTPReadSettings.UnmarshalJSON) ``` func (h *[HTTPReadSettings](#HTTPReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HTTPReadSettings. #### type [HTTPServerLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14315) [¶](#HTTPServerLocation) ``` type HTTPServerLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` // Specify the relativeUrl of http server. Type: string (or Expression with resultType string) RelativeURL interface{} `json:"relativeUrl,omitempty"` } ``` HTTPServerLocation - The location of http server. #### func (*HTTPServerLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14333) [¶](#HTTPServerLocation.GetDatasetLocation) added in v0.2.0 ``` func (h *[HTTPServerLocation](#HTTPServerLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type HTTPServerLocation. #### func (HTTPServerLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24314) [¶](#HTTPServerLocation.MarshalJSON) ``` func (h [HTTPServerLocation](#HTTPServerLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HTTPServerLocation. #### func (*HTTPServerLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24329) [¶](#HTTPServerLocation.UnmarshalJSON) ``` func (h *[HTTPServerLocation](#HTTPServerLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HTTPServerLocation. #### type [HTTPSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14343) [¶](#HTTPSource) ``` type HTTPSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. // Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` HTTPSource - A copy activity source for an HTTP file. #### func (*HTTPSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14369) [¶](#HTTPSource.GetCopySource) added in v0.2.0 ``` func (h *[HTTPSource](#HTTPSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type HTTPSource. #### func (HTTPSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24368) [¶](#HTTPSource.MarshalJSON) ``` func (h [HTTPSource](#HTTPSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HTTPSource. #### func (*HTTPSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24385) [¶](#HTTPSource.UnmarshalJSON) ``` func (h *[HTTPSource](#HTTPSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HTTPSource. #### type [HdfsLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14381) [¶](#HdfsLinkedService) ``` type HdfsLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; HDFS linked service properties. TypeProperties *[HdfsLinkedServiceTypeProperties](#HdfsLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` HdfsLinkedService - Hadoop Distributed File System (HDFS) linked service. #### func (*HdfsLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14405) [¶](#HdfsLinkedService.GetLinkedService) added in v0.2.0 ``` func (h *[HdfsLinkedService](#HdfsLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type HdfsLinkedService. #### func (HdfsLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24430) [¶](#HdfsLinkedService.MarshalJSON) ``` func (h [HdfsLinkedService](#HdfsLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HdfsLinkedService. #### func (*HdfsLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24447) [¶](#HdfsLinkedService.UnmarshalJSON) ``` func (h *[HdfsLinkedService](#HdfsLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HdfsLinkedService. #### type [HdfsLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14417) [¶](#HdfsLinkedServiceTypeProperties) ``` type HdfsLinkedServiceTypeProperties struct { // REQUIRED; The URL of the HDFS service endpoint, e.g. <http://myhostname:50070/webhdfs/v1> . Type: string (or Expression with // resultType string). URL interface{} `json:"url,omitempty"` // Type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression // with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for Windows authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // User name for Windows authentication. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` HdfsLinkedServiceTypeProperties - HDFS linked service properties. #### func (HdfsLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24492) [¶](#HdfsLinkedServiceTypeProperties.MarshalJSON) ``` func (h [HdfsLinkedServiceTypeProperties](#HdfsLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HdfsLinkedServiceTypeProperties. #### func (*HdfsLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24503) [¶](#HdfsLinkedServiceTypeProperties.UnmarshalJSON) ``` func (h *[HdfsLinkedServiceTypeProperties](#HdfsLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HdfsLinkedServiceTypeProperties. #### type [HdfsLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14438) [¶](#HdfsLocation) ``` type HdfsLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` HdfsLocation - The location of HDFS. #### func (*HdfsLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14453) [¶](#HdfsLocation.GetDatasetLocation) added in v0.2.0 ``` func (h *[HdfsLocation](#HdfsLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type HdfsLocation. #### func (HdfsLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24535) [¶](#HdfsLocation.MarshalJSON) ``` func (h [HdfsLocation](#HdfsLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HdfsLocation. #### func (*HdfsLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24549) [¶](#HdfsLocation.UnmarshalJSON) added in v0.2.0 ``` func (h *[HdfsLocation](#HdfsLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HdfsLocation. #### type [HdfsReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14463) [¶](#HdfsReadSettings) ``` type HdfsReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Specifies Distcp-related settings. DistcpSettings *[DistcpSettings](#DistcpSettings) `json:"distcpSettings,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // HDFS wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // HDFS wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` HdfsReadSettings - HDFS read settings. #### func (*HdfsReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14511) [¶](#HdfsReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (h *[HdfsReadSettings](#HdfsReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type HdfsReadSettings. #### func (HdfsReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24585) [¶](#HdfsReadSettings.MarshalJSON) ``` func (h [HdfsReadSettings](#HdfsReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HdfsReadSettings. #### func (*HdfsReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24609) [¶](#HdfsReadSettings.UnmarshalJSON) ``` func (h *[HdfsReadSettings](#HdfsReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HdfsReadSettings. #### type [HdfsSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14521) [¶](#HdfsSource) ``` type HdfsSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Specifies Distcp-related settings. DistcpSettings *[DistcpSettings](#DistcpSettings) `json:"distcpSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` HdfsSource - A copy activity HDFS source. #### func (*HdfsSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14549) [¶](#HdfsSource.GetCopySource) added in v0.2.0 ``` func (h *[HdfsSource](#HdfsSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type HdfsSource. #### func (HdfsSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24675) [¶](#HdfsSource.MarshalJSON) ``` func (h [HdfsSource](#HdfsSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HdfsSource. #### func (*HdfsSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24693) [¶](#HdfsSource.UnmarshalJSON) ``` func (h *[HdfsSource](#HdfsSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HdfsSource. #### type [HdiNodeTypes](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L657) [¶](#HdiNodeTypes) ``` type HdiNodeTypes [string](/builtin#string) ``` HdiNodeTypes - All available HdiNodeTypes values. ``` const ( HdiNodeTypesHeadnode [HdiNodeTypes](#HdiNodeTypes) = "Headnode" HdiNodeTypesWorkernode [HdiNodeTypes](#HdiNodeTypes) = "Workernode" HdiNodeTypesZookeeper [HdiNodeTypes](#HdiNodeTypes) = "Zookeeper" ) ``` #### func [PossibleHdiNodeTypesValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L666) [¶](#PossibleHdiNodeTypesValues) ``` func PossibleHdiNodeTypesValues() [][HdiNodeTypes](#HdiNodeTypes) ``` PossibleHdiNodeTypesValues returns the possible values for the HdiNodeTypes const type. #### type [HiveAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L675) [¶](#HiveAuthenticationType) ``` type HiveAuthenticationType [string](/builtin#string) ``` HiveAuthenticationType - The authentication method used to access the Hive server. ``` const ( HiveAuthenticationTypeAnonymous [HiveAuthenticationType](#HiveAuthenticationType) = "Anonymous" HiveAuthenticationTypeUsername [HiveAuthenticationType](#HiveAuthenticationType) = "Username" HiveAuthenticationTypeUsernameAndPassword [HiveAuthenticationType](#HiveAuthenticationType) = "UsernameAndPassword" HiveAuthenticationTypeWindowsAzureHDInsightService [HiveAuthenticationType](#HiveAuthenticationType) = "WindowsAzureHDInsightService" ) ``` #### func [PossibleHiveAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L685) [¶](#PossibleHiveAuthenticationTypeValues) ``` func PossibleHiveAuthenticationTypeValues() [][HiveAuthenticationType](#HiveAuthenticationType) ``` PossibleHiveAuthenticationTypeValues returns the possible values for the HiveAuthenticationType const type. #### type [HiveDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14561) [¶](#HiveDatasetTypeProperties) ``` type HiveDatasetTypeProperties struct { // The schema name of the Hive. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Hive. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` HiveDatasetTypeProperties - Hive Properties #### func (HiveDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24741) [¶](#HiveDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (h [HiveDatasetTypeProperties](#HiveDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HiveDatasetTypeProperties. #### func (*HiveDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24750) [¶](#HiveDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (h *[HiveDatasetTypeProperties](#HiveDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HiveDatasetTypeProperties. #### type [HiveLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14573) [¶](#HiveLinkedService) ``` type HiveLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Hive Server linked service properties. TypeProperties *[HiveLinkedServiceTypeProperties](#HiveLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` HiveLinkedService - Hive Server linked service. #### func (*HiveLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14597) [¶](#HiveLinkedService.GetLinkedService) added in v0.2.0 ``` func (h *[HiveLinkedService](#HiveLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type HiveLinkedService. #### func (HiveLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24776) [¶](#HiveLinkedService.MarshalJSON) ``` func (h [HiveLinkedService](#HiveLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HiveLinkedService. #### func (*HiveLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24793) [¶](#HiveLinkedService.UnmarshalJSON) ``` func (h *[HiveLinkedService](#HiveLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HiveLinkedService. #### type [HiveLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14609) [¶](#HiveLinkedServiceTypeProperties) ``` type HiveLinkedServiceTypeProperties struct { // REQUIRED; The authentication method used to access the Hive server. AuthenticationType *[HiveAuthenticationType](#HiveAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode // is enable). Host interface{} `json:"host,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. EnableSSL interface{} `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The partial URL corresponding to the Hive server. HTTPPath interface{} `json:"httpPath,omitempty"` // The password corresponding to the user name that you provided in the Username field Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port that the Hive server uses to listen for client connections. Port interface{} `json:"port,omitempty"` // The type of Hive server. ServerType *[HiveServerType](#HiveServerType) `json:"serverType,omitempty"` // true to indicate using the ZooKeeper service, false not. ServiceDiscoveryMode interface{} `json:"serviceDiscoveryMode,omitempty"` // The transport protocol to use in the Thrift layer. ThriftTransportProtocol *[HiveThriftTransportProtocol](#HiveThriftTransportProtocol) `json:"thriftTransportProtocol,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` // Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. UseNativeQuery interface{} `json:"useNativeQuery,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` // The user name that you use to access Hive Server. Username interface{} `json:"username,omitempty"` // The namespace on ZooKeeper under which Hive Server 2 nodes are added. ZooKeeperNameSpace interface{} `json:"zooKeeperNameSpace,omitempty"` } ``` HiveLinkedServiceTypeProperties - Hive Server linked service properties. #### func (HiveLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24838) [¶](#HiveLinkedServiceTypeProperties.MarshalJSON) ``` func (h [HiveLinkedServiceTypeProperties](#HiveLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HiveLinkedServiceTypeProperties. #### func (*HiveLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24861) [¶](#HiveLinkedServiceTypeProperties.UnmarshalJSON) ``` func (h *[HiveLinkedServiceTypeProperties](#HiveLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HiveLinkedServiceTypeProperties. #### type [HiveObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14669) [¶](#HiveObjectDataset) ``` type HiveObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[HiveDatasetTypeProperties](#HiveDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` HiveObjectDataset - Hive Server dataset. #### func (*HiveObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14703) [¶](#HiveObjectDataset.GetDataset) added in v0.2.0 ``` func (h *[HiveObjectDataset](#HiveObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type HiveObjectDataset. #### func (HiveObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24929) [¶](#HiveObjectDataset.MarshalJSON) ``` func (h [HiveObjectDataset](#HiveObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HiveObjectDataset. #### func (*HiveObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L24949) [¶](#HiveObjectDataset.UnmarshalJSON) ``` func (h *[HiveObjectDataset](#HiveObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HiveObjectDataset. #### type [HiveServerType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L695) [¶](#HiveServerType) ``` type HiveServerType [string](/builtin#string) ``` HiveServerType - The type of Hive server. ``` const ( HiveServerTypeHiveServer1 [HiveServerType](#HiveServerType) = "HiveServer1" HiveServerTypeHiveServer2 [HiveServerType](#HiveServerType) = "HiveServer2" HiveServerTypeHiveThriftServer [HiveServerType](#HiveServerType) = "HiveThriftServer" ) ``` #### func [PossibleHiveServerTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L704) [¶](#PossibleHiveServerTypeValues) ``` func PossibleHiveServerTypeValues() [][HiveServerType](#HiveServerType) ``` PossibleHiveServerTypeValues returns the possible values for the HiveServerType const type. #### type [HiveSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14718) [¶](#HiveSource) ``` type HiveSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` HiveSource - A copy activity Hive Server source. #### func (*HiveSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14749) [¶](#HiveSource.GetCopySource) added in v0.2.0 ``` func (h *[HiveSource](#HiveSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type HiveSource. #### func (*HiveSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14761) [¶](#HiveSource.GetTabularSource) added in v0.2.0 ``` func (h *[HiveSource](#HiveSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type HiveSource. #### func (HiveSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25003) [¶](#HiveSource.MarshalJSON) ``` func (h [HiveSource](#HiveSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HiveSource. #### func (*HiveSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25022) [¶](#HiveSource.UnmarshalJSON) ``` func (h *[HiveSource](#HiveSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HiveSource. #### type [HiveThriftTransportProtocol](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L713) [¶](#HiveThriftTransportProtocol) ``` type HiveThriftTransportProtocol [string](/builtin#string) ``` HiveThriftTransportProtocol - The transport protocol to use in the Thrift layer. ``` const ( HiveThriftTransportProtocolBinary [HiveThriftTransportProtocol](#HiveThriftTransportProtocol) = "Binary" HiveThriftTransportProtocolHTTP [HiveThriftTransportProtocol](#HiveThriftTransportProtocol) = "HTTP " HiveThriftTransportProtocolSASL [HiveThriftTransportProtocol](#HiveThriftTransportProtocol) = "SASL" ) ``` #### func [PossibleHiveThriftTransportProtocolValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L722) [¶](#PossibleHiveThriftTransportProtocolValues) ``` func PossibleHiveThriftTransportProtocolValues() [][HiveThriftTransportProtocol](#HiveThriftTransportProtocol) ``` PossibleHiveThriftTransportProtocolValues returns the possible values for the HiveThriftTransportProtocol const type. #### type [HubspotLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14775) [¶](#HubspotLinkedService) ``` type HubspotLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Hubspot Service linked service properties. TypeProperties *[HubspotLinkedServiceTypeProperties](#HubspotLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` HubspotLinkedService - Hubspot Service linked service. #### func (*HubspotLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14799) [¶](#HubspotLinkedService.GetLinkedService) added in v0.2.0 ``` func (h *[HubspotLinkedService](#HubspotLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type HubspotLinkedService. #### func (HubspotLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25073) [¶](#HubspotLinkedService.MarshalJSON) ``` func (h [HubspotLinkedService](#HubspotLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HubspotLinkedService. #### func (*HubspotLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25090) [¶](#HubspotLinkedService.UnmarshalJSON) ``` func (h *[HubspotLinkedService](#HubspotLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HubspotLinkedService. #### type [HubspotLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14811) [¶](#HubspotLinkedServiceTypeProperties) ``` type HubspotLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with your Hubspot application. ClientID interface{} `json:"clientId,omitempty"` // The access token obtained when initially authenticating your OAuth integration. AccessToken [SecretBaseClassification](#SecretBaseClassification) `json:"accessToken,omitempty"` // The client secret associated with your Hubspot application. ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The refresh token obtained when initially authenticating your OAuth integration. RefreshToken [SecretBaseClassification](#SecretBaseClassification) `json:"refreshToken,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` HubspotLinkedServiceTypeProperties - Hubspot Service linked service properties. #### func (HubspotLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25135) [¶](#HubspotLinkedServiceTypeProperties.MarshalJSON) ``` func (h [HubspotLinkedServiceTypeProperties](#HubspotLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HubspotLinkedServiceTypeProperties. #### func (*HubspotLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25149) [¶](#HubspotLinkedServiceTypeProperties.UnmarshalJSON) ``` func (h *[HubspotLinkedServiceTypeProperties](#HubspotLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HubspotLinkedServiceTypeProperties. #### type [HubspotObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14840) [¶](#HubspotObjectDataset) ``` type HubspotObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` HubspotObjectDataset - Hubspot Service dataset. #### func (*HubspotObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14874) [¶](#HubspotObjectDataset.GetDataset) added in v0.2.0 ``` func (h *[HubspotObjectDataset](#HubspotObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type HubspotObjectDataset. #### func (HubspotObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25190) [¶](#HubspotObjectDataset.MarshalJSON) ``` func (h [HubspotObjectDataset](#HubspotObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HubspotObjectDataset. #### func (*HubspotObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25210) [¶](#HubspotObjectDataset.UnmarshalJSON) ``` func (h *[HubspotObjectDataset](#HubspotObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HubspotObjectDataset. #### type [HubspotSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14889) [¶](#HubspotSource) ``` type HubspotSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` HubspotSource - A copy activity Hubspot Service source. #### func (*HubspotSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14920) [¶](#HubspotSource.GetCopySource) added in v0.2.0 ``` func (h *[HubspotSource](#HubspotSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type HubspotSource. #### func (*HubspotSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14932) [¶](#HubspotSource.GetTabularSource) added in v0.2.0 ``` func (h *[HubspotSource](#HubspotSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type HubspotSource. #### func (HubspotSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25264) [¶](#HubspotSource.MarshalJSON) ``` func (h [HubspotSource](#HubspotSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type HubspotSource. #### func (*HubspotSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25283) [¶](#HubspotSource.UnmarshalJSON) ``` func (h *[HubspotSource](#HubspotSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type HubspotSource. #### type [IfConditionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14947) [¶](#IfConditionActivity) ``` type IfConditionActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; IfCondition activity properties. TypeProperties *[IfConditionActivityTypeProperties](#IfConditionActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` IfConditionActivity - This activity evaluates a boolean expression and executes either the activities under the ifTrueActivities property or the ifFalseActivities property depending on the result of the expression. #### func (*IfConditionActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14971) [¶](#IfConditionActivity.GetActivity) added in v0.2.0 ``` func (i *[IfConditionActivity](#IfConditionActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type IfConditionActivity. #### func (*IfConditionActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14983) [¶](#IfConditionActivity.GetControlActivity) added in v0.2.0 ``` func (i *[IfConditionActivity](#IfConditionActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type IfConditionActivity. #### func (IfConditionActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25334) [¶](#IfConditionActivity.MarshalJSON) ``` func (i [IfConditionActivity](#IfConditionActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IfConditionActivity. #### func (*IfConditionActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25351) [¶](#IfConditionActivity.UnmarshalJSON) ``` func (i *[IfConditionActivity](#IfConditionActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IfConditionActivity. #### type [IfConditionActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L14995) [¶](#IfConditionActivityTypeProperties) ``` type IfConditionActivityTypeProperties struct { // REQUIRED; An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities // or ifFalseActivities) that will be executed. Expression *[Expression](#Expression) `json:"expression,omitempty"` // List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the // activity will exit without any action. IfFalseActivities [][ActivityClassification](#ActivityClassification) `json:"ifFalseActivities,omitempty"` // List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the // activity will exit without any action. IfTrueActivities [][ActivityClassification](#ActivityClassification) `json:"ifTrueActivities,omitempty"` } ``` IfConditionActivityTypeProperties - IfCondition activity properties. #### func (IfConditionActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25396) [¶](#IfConditionActivityTypeProperties.MarshalJSON) ``` func (i [IfConditionActivityTypeProperties](#IfConditionActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IfConditionActivityTypeProperties. #### func (*IfConditionActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25405) [¶](#IfConditionActivityTypeProperties.UnmarshalJSON) ``` func (i *[IfConditionActivityTypeProperties](#IfConditionActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IfConditionActivityTypeProperties. #### type [ImpalaAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L731) [¶](#ImpalaAuthenticationType) ``` type ImpalaAuthenticationType [string](/builtin#string) ``` ImpalaAuthenticationType - The authentication type to use. ``` const ( ImpalaAuthenticationTypeAnonymous [ImpalaAuthenticationType](#ImpalaAuthenticationType) = "Anonymous" ImpalaAuthenticationTypeSASLUsername [ImpalaAuthenticationType](#ImpalaAuthenticationType) = "SASLUsername" ImpalaAuthenticationTypeUsernameAndPassword [ImpalaAuthenticationType](#ImpalaAuthenticationType) = "UsernameAndPassword" ) ``` #### func [PossibleImpalaAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L740) [¶](#PossibleImpalaAuthenticationTypeValues) ``` func PossibleImpalaAuthenticationTypeValues() [][ImpalaAuthenticationType](#ImpalaAuthenticationType) ``` PossibleImpalaAuthenticationTypeValues returns the possible values for the ImpalaAuthenticationType const type. #### type [ImpalaDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15010) [¶](#ImpalaDatasetTypeProperties) ``` type ImpalaDatasetTypeProperties struct { // The schema name of the Impala. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Impala. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` ImpalaDatasetTypeProperties - Impala Dataset Properties #### func (ImpalaDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25431) [¶](#ImpalaDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (i [ImpalaDatasetTypeProperties](#ImpalaDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ImpalaDatasetTypeProperties. #### func (*ImpalaDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25440) [¶](#ImpalaDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (i *[ImpalaDatasetTypeProperties](#ImpalaDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ImpalaDatasetTypeProperties. #### type [ImpalaLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15022) [¶](#ImpalaLinkedService) ``` type ImpalaLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Impala server linked service properties. TypeProperties *[ImpalaLinkedServiceTypeProperties](#ImpalaLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` ImpalaLinkedService - Impala server linked service. #### func (*ImpalaLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15046) [¶](#ImpalaLinkedService.GetLinkedService) added in v0.2.0 ``` func (i *[ImpalaLinkedService](#ImpalaLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type ImpalaLinkedService. #### func (ImpalaLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25466) [¶](#ImpalaLinkedService.MarshalJSON) ``` func (i [ImpalaLinkedService](#ImpalaLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ImpalaLinkedService. #### func (*ImpalaLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25483) [¶](#ImpalaLinkedService.UnmarshalJSON) ``` func (i *[ImpalaLinkedService](#ImpalaLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ImpalaLinkedService. #### type [ImpalaLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15058) [¶](#ImpalaLinkedServiceTypeProperties) ``` type ImpalaLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to use. AuthenticationType *[ImpalaAuthenticationType](#ImpalaAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The IP address or host name of the Impala server. (i.e. 192.168.222.160) Host interface{} `json:"host,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. EnableSSL interface{} `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password corresponding to the user name when using UsernameAndPassword. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port that the Impala server uses to listen for client connections. The default value is 21050. Port interface{} `json:"port,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` // The user name used to access the Impala server. The default value is anonymous when using SASLUsername. Username interface{} `json:"username,omitempty"` } ``` ImpalaLinkedServiceTypeProperties - Impala server linked service properties. #### func (ImpalaLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25528) [¶](#ImpalaLinkedServiceTypeProperties.MarshalJSON) ``` func (i [ImpalaLinkedServiceTypeProperties](#ImpalaLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ImpalaLinkedServiceTypeProperties. #### func (*ImpalaLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25545) [¶](#ImpalaLinkedServiceTypeProperties.UnmarshalJSON) ``` func (i *[ImpalaLinkedServiceTypeProperties](#ImpalaLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ImpalaLinkedServiceTypeProperties. #### type [ImpalaObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15099) [¶](#ImpalaObjectDataset) ``` type ImpalaObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[ImpalaDatasetTypeProperties](#ImpalaDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ImpalaObjectDataset - Impala server dataset. #### func (*ImpalaObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15133) [¶](#ImpalaObjectDataset.GetDataset) added in v0.2.0 ``` func (i *[ImpalaObjectDataset](#ImpalaObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ImpalaObjectDataset. #### func (ImpalaObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25595) [¶](#ImpalaObjectDataset.MarshalJSON) ``` func (i [ImpalaObjectDataset](#ImpalaObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ImpalaObjectDataset. #### func (*ImpalaObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25615) [¶](#ImpalaObjectDataset.UnmarshalJSON) ``` func (i *[ImpalaObjectDataset](#ImpalaObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ImpalaObjectDataset. #### type [ImpalaSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15148) [¶](#ImpalaSource) ``` type ImpalaSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` ImpalaSource - A copy activity Impala server source. #### func (*ImpalaSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15179) [¶](#ImpalaSource.GetCopySource) added in v0.2.0 ``` func (i *[ImpalaSource](#ImpalaSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ImpalaSource. #### func (*ImpalaSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15191) [¶](#ImpalaSource.GetTabularSource) added in v0.2.0 ``` func (i *[ImpalaSource](#ImpalaSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type ImpalaSource. #### func (ImpalaSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25669) [¶](#ImpalaSource.MarshalJSON) ``` func (i [ImpalaSource](#ImpalaSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ImpalaSource. #### func (*ImpalaSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25688) [¶](#ImpalaSource.UnmarshalJSON) ``` func (i *[ImpalaSource](#ImpalaSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ImpalaSource. #### type [ImportSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15214) [¶](#ImportSettings) ``` type ImportSettings struct { // REQUIRED; The import setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` ImportSettings - Import command settings. #### func (*ImportSettings) [GetImportSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15223) [¶](#ImportSettings.GetImportSettings) ``` func (i *[ImportSettings](#ImportSettings)) GetImportSettings() *[ImportSettings](#ImportSettings) ``` GetImportSettings implements the ImportSettingsClassification interface for type ImportSettings. #### func (ImportSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25739) [¶](#ImportSettings.MarshalJSON) added in v0.2.0 ``` func (i [ImportSettings](#ImportSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ImportSettings. #### func (*ImportSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25751) [¶](#ImportSettings.UnmarshalJSON) ``` func (i *[ImportSettings](#ImportSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ImportSettings. #### type [ImportSettingsClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15208) [¶](#ImportSettingsClassification) ``` type ImportSettingsClassification interface { // GetImportSettings returns the ImportSettings content of the underlying type. GetImportSettings() *[ImportSettings](#ImportSettings) } ``` ImportSettingsClassification provides polymorphic access to related types. Call the interface's GetImportSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureDatabricksDeltaLakeImportCommand, *ImportSettings, *SnowflakeImportCopyCommand #### type [InformixLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15226) [¶](#InformixLinkedService) ``` type InformixLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Informix linked service properties. TypeProperties *[InformixLinkedServiceTypeProperties](#InformixLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` InformixLinkedService - Informix linked service. #### func (*InformixLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15250) [¶](#InformixLinkedService.GetLinkedService) added in v0.2.0 ``` func (i *[InformixLinkedService](#InformixLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type InformixLinkedService. #### func (InformixLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25781) [¶](#InformixLinkedService.MarshalJSON) ``` func (i [InformixLinkedService](#InformixLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type InformixLinkedService. #### func (*InformixLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25798) [¶](#InformixLinkedService.UnmarshalJSON) ``` func (i *[InformixLinkedService](#InformixLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type InformixLinkedService. #### type [InformixLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15262) [¶](#InformixLinkedServiceTypeProperties) ``` type InformixLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: // string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: // string (or Expression with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // The access credential portion of the connection string specified in driver-specific property-value format. Credential [SecretBaseClassification](#SecretBaseClassification) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for Basic authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // User name for Basic authentication. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` InformixLinkedServiceTypeProperties - Informix linked service properties. #### func (InformixLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25843) [¶](#InformixLinkedServiceTypeProperties.MarshalJSON) ``` func (i [InformixLinkedServiceTypeProperties](#InformixLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type InformixLinkedServiceTypeProperties. #### func (*InformixLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25855) [¶](#InformixLinkedServiceTypeProperties.UnmarshalJSON) ``` func (i *[InformixLinkedServiceTypeProperties](#InformixLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type InformixLinkedServiceTypeProperties. #### type [InformixSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15286) [¶](#InformixSink) ``` type InformixSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` InformixSink - A copy activity Informix sink. #### func (*InformixSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15316) [¶](#InformixSink.GetCopySink) added in v0.2.0 ``` func (i *[InformixSink](#InformixSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type InformixSink. #### func (InformixSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25890) [¶](#InformixSink.MarshalJSON) ``` func (i [InformixSink](#InformixSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type InformixSink. #### func (*InformixSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25909) [¶](#InformixSink.UnmarshalJSON) ``` func (i *[InformixSink](#InformixSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type InformixSink. #### type [InformixSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15330) [¶](#InformixSource) ``` type InformixSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` InformixSource - A copy activity source for Informix. #### func (*InformixSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15361) [¶](#InformixSource.GetCopySource) added in v0.2.0 ``` func (i *[InformixSource](#InformixSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type InformixSource. #### func (*InformixSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15373) [¶](#InformixSource.GetTabularSource) added in v0.2.0 ``` func (i *[InformixSource](#InformixSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type InformixSource. #### func (InformixSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25960) [¶](#InformixSource.MarshalJSON) ``` func (i [InformixSource](#InformixSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type InformixSource. #### func (*InformixSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L25979) [¶](#InformixSource.UnmarshalJSON) ``` func (i *[InformixSource](#InformixSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type InformixSource. #### type [InformixTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15387) [¶](#InformixTableDataset) ``` type InformixTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Informix table dataset properties. TypeProperties *[InformixTableDatasetTypeProperties](#InformixTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` InformixTableDataset - The Informix table dataset. #### func (*InformixTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15421) [¶](#InformixTableDataset.GetDataset) added in v0.2.0 ``` func (i *[InformixTableDataset](#InformixTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type InformixTableDataset. #### func (InformixTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26030) [¶](#InformixTableDataset.MarshalJSON) ``` func (i [InformixTableDataset](#InformixTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type InformixTableDataset. #### func (*InformixTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26050) [¶](#InformixTableDataset.UnmarshalJSON) ``` func (i *[InformixTableDataset](#InformixTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type InformixTableDataset. #### type [InformixTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15436) [¶](#InformixTableDatasetTypeProperties) ``` type InformixTableDatasetTypeProperties struct { // The Informix table name. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` InformixTableDatasetTypeProperties - Informix table dataset properties. #### func (InformixTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26104) [¶](#InformixTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (i [InformixTableDatasetTypeProperties](#InformixTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type InformixTableDatasetTypeProperties. #### func (*InformixTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26111) [¶](#InformixTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (i *[InformixTableDatasetTypeProperties](#InformixTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type InformixTableDatasetTypeProperties. #### type [IntegrationRuntime](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15451) [¶](#IntegrationRuntime) ``` type IntegrationRuntime struct { // REQUIRED; Type of integration runtime. Type *[IntegrationRuntimeType](#IntegrationRuntimeType) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Integration runtime description. Description *[string](/builtin#string) `json:"description,omitempty"` } ``` IntegrationRuntime - Azure Data Factory nested object which serves as a compute resource for activities. #### func (*IntegrationRuntime) [GetIntegrationRuntime](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15463) [¶](#IntegrationRuntime.GetIntegrationRuntime) ``` func (i *[IntegrationRuntime](#IntegrationRuntime)) GetIntegrationRuntime() *[IntegrationRuntime](#IntegrationRuntime) ``` GetIntegrationRuntime implements the IntegrationRuntimeClassification interface for type IntegrationRuntime. #### func (IntegrationRuntime) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26131) [¶](#IntegrationRuntime.MarshalJSON) added in v0.2.0 ``` func (i [IntegrationRuntime](#IntegrationRuntime)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntime. #### func (*IntegrationRuntime) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26144) [¶](#IntegrationRuntime.UnmarshalJSON) ``` func (i *[IntegrationRuntime](#IntegrationRuntime)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntime. #### type [IntegrationRuntimeAuthKeyName](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L749) [¶](#IntegrationRuntimeAuthKeyName) ``` type IntegrationRuntimeAuthKeyName [string](/builtin#string) ``` IntegrationRuntimeAuthKeyName - The name of the authentication key to regenerate. ``` const ( IntegrationRuntimeAuthKeyNameAuthKey1 [IntegrationRuntimeAuthKeyName](#IntegrationRuntimeAuthKeyName) = "authKey1" IntegrationRuntimeAuthKeyNameAuthKey2 [IntegrationRuntimeAuthKeyName](#IntegrationRuntimeAuthKeyName) = "authKey2" ) ``` #### func [PossibleIntegrationRuntimeAuthKeyNameValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L757) [¶](#PossibleIntegrationRuntimeAuthKeyNameValues) ``` func PossibleIntegrationRuntimeAuthKeyNameValues() [][IntegrationRuntimeAuthKeyName](#IntegrationRuntimeAuthKeyName) ``` PossibleIntegrationRuntimeAuthKeyNameValues returns the possible values for the IntegrationRuntimeAuthKeyName const type. #### type [IntegrationRuntimeAuthKeys](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15466) [¶](#IntegrationRuntimeAuthKeys) ``` type IntegrationRuntimeAuthKeys struct { // The primary integration runtime authentication key. AuthKey1 *[string](/builtin#string) `json:"authKey1,omitempty"` // The secondary integration runtime authentication key. AuthKey2 *[string](/builtin#string) `json:"authKey2,omitempty"` } ``` IntegrationRuntimeAuthKeys - The integration runtime authentication keys. #### func (IntegrationRuntimeAuthKeys) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26177) [¶](#IntegrationRuntimeAuthKeys.MarshalJSON) added in v1.3.0 ``` func (i [IntegrationRuntimeAuthKeys](#IntegrationRuntimeAuthKeys)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeAuthKeys. #### func (*IntegrationRuntimeAuthKeys) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26185) [¶](#IntegrationRuntimeAuthKeys.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeAuthKeys](#IntegrationRuntimeAuthKeys)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeAuthKeys. #### type [IntegrationRuntimeAutoUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L765) [¶](#IntegrationRuntimeAutoUpdate) ``` type IntegrationRuntimeAutoUpdate [string](/builtin#string) ``` IntegrationRuntimeAutoUpdate - The state of integration runtime auto update. ``` const ( IntegrationRuntimeAutoUpdateOff [IntegrationRuntimeAutoUpdate](#IntegrationRuntimeAutoUpdate) = "Off" IntegrationRuntimeAutoUpdateOn [IntegrationRuntimeAutoUpdate](#IntegrationRuntimeAutoUpdate) = "On" ) ``` #### func [PossibleIntegrationRuntimeAutoUpdateValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L773) [¶](#PossibleIntegrationRuntimeAutoUpdateValues) ``` func PossibleIntegrationRuntimeAutoUpdateValues() [][IntegrationRuntimeAutoUpdate](#IntegrationRuntimeAutoUpdate) ``` PossibleIntegrationRuntimeAutoUpdateValues returns the possible values for the IntegrationRuntimeAutoUpdate const type. #### type [IntegrationRuntimeClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15445) [¶](#IntegrationRuntimeClassification) ``` type IntegrationRuntimeClassification interface { // GetIntegrationRuntime returns the IntegrationRuntime content of the underlying type. GetIntegrationRuntime() *[IntegrationRuntime](#IntegrationRuntime) } ``` IntegrationRuntimeClassification provides polymorphic access to related types. Call the interface's GetIntegrationRuntime() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *IntegrationRuntime, *ManagedIntegrationRuntime, *SelfHostedIntegrationRuntime #### type [IntegrationRuntimeComputeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15475) [¶](#IntegrationRuntimeComputeProperties) ``` type IntegrationRuntimeComputeProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Data flow properties for managed integration runtime. DataFlowProperties *[IntegrationRuntimeDataFlowProperties](#IntegrationRuntimeDataFlowProperties) `json:"dataFlowProperties,omitempty"` // The location for managed integration runtime. The supported regions could be found on <https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities> Location *[string](/builtin#string) `json:"location,omitempty"` // Maximum parallel executions count per node for managed integration runtime. MaxParallelExecutionsPerNode *[int32](/builtin#int32) `json:"maxParallelExecutionsPerNode,omitempty"` // The node size requirement to managed integration runtime. NodeSize *[string](/builtin#string) `json:"nodeSize,omitempty"` // The required number of nodes for managed integration runtime. NumberOfNodes *[int32](/builtin#int32) `json:"numberOfNodes,omitempty"` // VNet properties for managed integration runtime. VNetProperties *[IntegrationRuntimeVNetProperties](#IntegrationRuntimeVNetProperties) `json:"vNetProperties,omitempty"` } ``` IntegrationRuntimeComputeProperties - The compute resource properties for managed integration runtime. #### func (IntegrationRuntimeComputeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26208) [¶](#IntegrationRuntimeComputeProperties.MarshalJSON) ``` func (i [IntegrationRuntimeComputeProperties](#IntegrationRuntimeComputeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeComputeProperties. #### func (*IntegrationRuntimeComputeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26225) [¶](#IntegrationRuntimeComputeProperties.UnmarshalJSON) ``` func (i *[IntegrationRuntimeComputeProperties](#IntegrationRuntimeComputeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeComputeProperties. #### type [IntegrationRuntimeConnectionInfo](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15499) [¶](#IntegrationRuntimeConnectionInfo) ``` type IntegrationRuntimeConnectionInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; The on-premises integration runtime host URL. HostServiceURI *[string](/builtin#string) `json:"hostServiceUri,omitempty" azure:"ro"` // READ-ONLY; The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. IdentityCertThumbprint *[string](/builtin#string) `json:"identityCertThumbprint,omitempty" azure:"ro"` // READ-ONLY; Whether the identity certificate is expired. IsIdentityCertExprired *[bool](/builtin#bool) `json:"isIdentityCertExprired,omitempty" azure:"ro"` // READ-ONLY; The public key for encrypting a credential when transferring the credential to the integration runtime. PublicKey *[string](/builtin#string) `json:"publicKey,omitempty" azure:"ro"` // READ-ONLY; The token generated in service. Callers use this token to authenticate to integration runtime. ServiceToken *[string](/builtin#string) `json:"serviceToken,omitempty" azure:"ro"` // READ-ONLY; The integration runtime version. Version *[string](/builtin#string) `json:"version,omitempty" azure:"ro"` } ``` IntegrationRuntimeConnectionInfo - Connection information for encrypting the on-premises data source credentials. #### func (IntegrationRuntimeConnectionInfo) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26270) [¶](#IntegrationRuntimeConnectionInfo.MarshalJSON) ``` func (i [IntegrationRuntimeConnectionInfo](#IntegrationRuntimeConnectionInfo)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeConnectionInfo. #### func (*IntegrationRuntimeConnectionInfo) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26287) [¶](#IntegrationRuntimeConnectionInfo.UnmarshalJSON) ``` func (i *[IntegrationRuntimeConnectionInfo](#IntegrationRuntimeConnectionInfo)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeConnectionInfo. #### type [IntegrationRuntimeCustomSetupScriptProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15523) [¶](#IntegrationRuntimeCustomSetupScriptProperties) ``` type IntegrationRuntimeCustomSetupScriptProperties struct { // The URI of the Azure blob container that contains the custom setup script. BlobContainerURI *[string](/builtin#string) `json:"blobContainerUri,omitempty"` // The SAS token of the Azure blob container. SasToken *[SecureString](#SecureString) `json:"sasToken,omitempty"` } ``` IntegrationRuntimeCustomSetupScriptProperties - Custom setup script properties for a managed dedicated integration runtime. #### func (IntegrationRuntimeCustomSetupScriptProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26332) [¶](#IntegrationRuntimeCustomSetupScriptProperties.MarshalJSON) added in v1.3.0 ``` func (i [IntegrationRuntimeCustomSetupScriptProperties](#IntegrationRuntimeCustomSetupScriptProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeCustomSetupScriptProperties. #### func (*IntegrationRuntimeCustomSetupScriptProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26340) [¶](#IntegrationRuntimeCustomSetupScriptProperties.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeCustomSetupScriptProperties](#IntegrationRuntimeCustomSetupScriptProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeCustomSetupScriptProperties. #### type [IntegrationRuntimeCustomerVirtualNetwork](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15533) [¶](#IntegrationRuntimeCustomerVirtualNetwork) ``` type IntegrationRuntimeCustomerVirtualNetwork struct { // The ID of subnet to which Azure-SSIS integration runtime will join. SubnetID *[string](/builtin#string) `json:"subnetId,omitempty"` } ``` IntegrationRuntimeCustomerVirtualNetwork - The definition and properties of virtual network to which Azure-SSIS integration runtime will join. #### func (IntegrationRuntimeCustomerVirtualNetwork) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26363) [¶](#IntegrationRuntimeCustomerVirtualNetwork.MarshalJSON) added in v1.3.0 ``` func (i [IntegrationRuntimeCustomerVirtualNetwork](#IntegrationRuntimeCustomerVirtualNetwork)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeCustomerVirtualNetwork. #### func (*IntegrationRuntimeCustomerVirtualNetwork) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26370) [¶](#IntegrationRuntimeCustomerVirtualNetwork.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeCustomerVirtualNetwork](#IntegrationRuntimeCustomerVirtualNetwork)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeCustomerVirtualNetwork. #### type [IntegrationRuntimeDataFlowProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15539) [¶](#IntegrationRuntimeDataFlowProperties) ``` type IntegrationRuntimeDataFlowProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if // this is set as false. Default is true. Cleanup *[bool](/builtin#bool) `json:"cleanup,omitempty"` // Compute type of the cluster which will execute data flow job. ComputeType *[DataFlowComputeType](#DataFlowComputeType) `json:"computeType,omitempty"` // Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. CoreCount *[int32](/builtin#int32) `json:"coreCount,omitempty"` // Time to live (in minutes) setting of the cluster which will execute data flow job. TimeToLive *[int32](/builtin#int32) `json:"timeToLive,omitempty"` } ``` IntegrationRuntimeDataFlowProperties - Data flow properties for managed integration runtime. #### func (IntegrationRuntimeDataFlowProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26390) [¶](#IntegrationRuntimeDataFlowProperties.MarshalJSON) ``` func (i [IntegrationRuntimeDataFlowProperties](#IntegrationRuntimeDataFlowProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataFlowProperties. #### func (*IntegrationRuntimeDataFlowProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26405) [¶](#IntegrationRuntimeDataFlowProperties.UnmarshalJSON) ``` func (i *[IntegrationRuntimeDataFlowProperties](#IntegrationRuntimeDataFlowProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDataFlowProperties. #### type [IntegrationRuntimeDataProxyProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15558) [¶](#IntegrationRuntimeDataProxyProperties) ``` type IntegrationRuntimeDataProxyProperties struct { // The self-hosted integration runtime reference. ConnectVia *[EntityReference](#EntityReference) `json:"connectVia,omitempty"` // The path to contain the staged data in the Blob storage. Path *[string](/builtin#string) `json:"path,omitempty"` // The staging linked service reference. StagingLinkedService *[EntityReference](#EntityReference) `json:"stagingLinkedService,omitempty"` } ``` IntegrationRuntimeDataProxyProperties - Data proxy properties for a managed dedicated integration runtime. #### func (IntegrationRuntimeDataProxyProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26444) [¶](#IntegrationRuntimeDataProxyProperties.MarshalJSON) added in v1.3.0 ``` func (i [IntegrationRuntimeDataProxyProperties](#IntegrationRuntimeDataProxyProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataProxyProperties. #### func (*IntegrationRuntimeDataProxyProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26453) [¶](#IntegrationRuntimeDataProxyProperties.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeDataProxyProperties](#IntegrationRuntimeDataProxyProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDataProxyProperties. #### type [IntegrationRuntimeDebugResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15570) [¶](#IntegrationRuntimeDebugResource) ``` type IntegrationRuntimeDebugResource struct { // REQUIRED; Integration runtime properties. Properties [IntegrationRuntimeClassification](#IntegrationRuntimeClassification) `json:"properties,omitempty"` // The resource name. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` IntegrationRuntimeDebugResource - Integration runtime debug resource. #### func (IntegrationRuntimeDebugResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26479) [¶](#IntegrationRuntimeDebugResource.MarshalJSON) ``` func (i [IntegrationRuntimeDebugResource](#IntegrationRuntimeDebugResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDebugResource. #### func (*IntegrationRuntimeDebugResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26487) [¶](#IntegrationRuntimeDebugResource.UnmarshalJSON) ``` func (i *[IntegrationRuntimeDebugResource](#IntegrationRuntimeDebugResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDebugResource. #### type [IntegrationRuntimeEdition](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L781) [¶](#IntegrationRuntimeEdition) ``` type IntegrationRuntimeEdition [string](/builtin#string) ``` IntegrationRuntimeEdition - The edition for the SSIS Integration Runtime ``` const ( IntegrationRuntimeEditionEnterprise [IntegrationRuntimeEdition](#IntegrationRuntimeEdition) = "Enterprise" IntegrationRuntimeEditionStandard [IntegrationRuntimeEdition](#IntegrationRuntimeEdition) = "Standard" ) ``` #### func [PossibleIntegrationRuntimeEditionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L789) [¶](#PossibleIntegrationRuntimeEditionValues) ``` func PossibleIntegrationRuntimeEditionValues() [][IntegrationRuntimeEdition](#IntegrationRuntimeEdition) ``` PossibleIntegrationRuntimeEditionValues returns the possible values for the IntegrationRuntimeEdition const type. #### type [IntegrationRuntimeEntityReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L797) [¶](#IntegrationRuntimeEntityReferenceType) ``` type IntegrationRuntimeEntityReferenceType [string](/builtin#string) ``` IntegrationRuntimeEntityReferenceType - The type of this referenced entity. ``` const ( IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference [IntegrationRuntimeEntityReferenceType](#IntegrationRuntimeEntityReferenceType) = "IntegrationRuntimeReference" IntegrationRuntimeEntityReferenceTypeLinkedServiceReference [IntegrationRuntimeEntityReferenceType](#IntegrationRuntimeEntityReferenceType) = "LinkedServiceReference" ) ``` #### func [PossibleIntegrationRuntimeEntityReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L805) [¶](#PossibleIntegrationRuntimeEntityReferenceTypeValues) ``` func PossibleIntegrationRuntimeEntityReferenceTypeValues() [][IntegrationRuntimeEntityReferenceType](#IntegrationRuntimeEntityReferenceType) ``` PossibleIntegrationRuntimeEntityReferenceTypeValues returns the possible values for the IntegrationRuntimeEntityReferenceType const type. #### type [IntegrationRuntimeInternalChannelEncryptionMode](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L814) [¶](#IntegrationRuntimeInternalChannelEncryptionMode) ``` type IntegrationRuntimeInternalChannelEncryptionMode [string](/builtin#string) ``` IntegrationRuntimeInternalChannelEncryptionMode - It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration runtime nodes exist). ``` const ( IntegrationRuntimeInternalChannelEncryptionModeNotEncrypted [IntegrationRuntimeInternalChannelEncryptionMode](#IntegrationRuntimeInternalChannelEncryptionMode) = "NotEncrypted" IntegrationRuntimeInternalChannelEncryptionModeNotSet [IntegrationRuntimeInternalChannelEncryptionMode](#IntegrationRuntimeInternalChannelEncryptionMode) = "NotSet" IntegrationRuntimeInternalChannelEncryptionModeSSLEncrypted [IntegrationRuntimeInternalChannelEncryptionMode](#IntegrationRuntimeInternalChannelEncryptionMode) = "SslEncrypted" ) ``` #### func [PossibleIntegrationRuntimeInternalChannelEncryptionModeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L823) [¶](#PossibleIntegrationRuntimeInternalChannelEncryptionModeValues) ``` func PossibleIntegrationRuntimeInternalChannelEncryptionModeValues() [][IntegrationRuntimeInternalChannelEncryptionMode](#IntegrationRuntimeInternalChannelEncryptionMode) ``` PossibleIntegrationRuntimeInternalChannelEncryptionModeValues returns the possible values for the IntegrationRuntimeInternalChannelEncryptionMode const type. #### type [IntegrationRuntimeLicenseType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L832) [¶](#IntegrationRuntimeLicenseType) ``` type IntegrationRuntimeLicenseType [string](/builtin#string) ``` IntegrationRuntimeLicenseType - License type for bringing your own license scenario. ``` const ( IntegrationRuntimeLicenseTypeBasePrice [IntegrationRuntimeLicenseType](#IntegrationRuntimeLicenseType) = "BasePrice" IntegrationRuntimeLicenseTypeLicenseIncluded [IntegrationRuntimeLicenseType](#IntegrationRuntimeLicenseType) = "LicenseIncluded" ) ``` #### func [PossibleIntegrationRuntimeLicenseTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L840) [¶](#PossibleIntegrationRuntimeLicenseTypeValues) ``` func PossibleIntegrationRuntimeLicenseTypeValues() [][IntegrationRuntimeLicenseType](#IntegrationRuntimeLicenseType) ``` PossibleIntegrationRuntimeLicenseTypeValues returns the possible values for the IntegrationRuntimeLicenseType const type. #### type [IntegrationRuntimeListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15579) [¶](#IntegrationRuntimeListResponse) ``` type IntegrationRuntimeListResponse struct { // REQUIRED; List of integration runtimes. Value []*[IntegrationRuntimeResource](#IntegrationRuntimeResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` IntegrationRuntimeListResponse - A list of integration runtime resources. #### func (IntegrationRuntimeListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26510) [¶](#IntegrationRuntimeListResponse.MarshalJSON) ``` func (i [IntegrationRuntimeListResponse](#IntegrationRuntimeListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeListResponse. #### func (*IntegrationRuntimeListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26518) [¶](#IntegrationRuntimeListResponse.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeListResponse](#IntegrationRuntimeListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeListResponse. #### type [IntegrationRuntimeMonitoringData](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15588) [¶](#IntegrationRuntimeMonitoringData) ``` type IntegrationRuntimeMonitoringData struct { // Integration runtime name. Name *[string](/builtin#string) `json:"name,omitempty"` // Integration runtime node monitoring data. Nodes []*[IntegrationRuntimeNodeMonitoringData](#IntegrationRuntimeNodeMonitoringData) `json:"nodes,omitempty"` } ``` IntegrationRuntimeMonitoringData - Get monitoring data response. #### func (IntegrationRuntimeMonitoringData) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26541) [¶](#IntegrationRuntimeMonitoringData.MarshalJSON) ``` func (i [IntegrationRuntimeMonitoringData](#IntegrationRuntimeMonitoringData)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeMonitoringData. #### func (*IntegrationRuntimeMonitoringData) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26549) [¶](#IntegrationRuntimeMonitoringData.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeMonitoringData](#IntegrationRuntimeMonitoringData)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeMonitoringData. #### type [IntegrationRuntimeNodeIPAddress](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15597) [¶](#IntegrationRuntimeNodeIPAddress) ``` type IntegrationRuntimeNodeIPAddress struct { // READ-ONLY; The IP address of self-hosted integration runtime node. IPAddress *[string](/builtin#string) `json:"ipAddress,omitempty" azure:"ro"` } ``` IntegrationRuntimeNodeIPAddress - The IP address of self-hosted integration runtime node. #### func (IntegrationRuntimeNodeIPAddress) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26572) [¶](#IntegrationRuntimeNodeIPAddress.MarshalJSON) added in v1.3.0 ``` func (i [IntegrationRuntimeNodeIPAddress](#IntegrationRuntimeNodeIPAddress)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeNodeIPAddress. #### func (*IntegrationRuntimeNodeIPAddress) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26579) [¶](#IntegrationRuntimeNodeIPAddress.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeNodeIPAddress](#IntegrationRuntimeNodeIPAddress)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeNodeIPAddress. #### type [IntegrationRuntimeNodeMonitoringData](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15603) [¶](#IntegrationRuntimeNodeMonitoringData) ``` type IntegrationRuntimeNodeMonitoringData struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; Available memory (MB) on the integration runtime node. AvailableMemoryInMB *[int32](/builtin#int32) `json:"availableMemoryInMB,omitempty" azure:"ro"` // READ-ONLY; CPU percentage on the integration runtime node. CPUUtilization *[int32](/builtin#int32) `json:"cpuUtilization,omitempty" azure:"ro"` // READ-ONLY; Maximum concurrent jobs on the integration runtime node. ConcurrentJobsLimit *[int32](/builtin#int32) `json:"concurrentJobsLimit,omitempty" azure:"ro"` // READ-ONLY; The number of jobs currently running on the integration runtime node. ConcurrentJobsRunning *[int32](/builtin#int32) `json:"concurrentJobsRunning,omitempty" azure:"ro"` // READ-ONLY; The maximum concurrent jobs in this integration runtime. MaxConcurrentJobs *[int32](/builtin#int32) `json:"maxConcurrentJobs,omitempty" azure:"ro"` // READ-ONLY; Name of the integration runtime node. NodeName *[string](/builtin#string) `json:"nodeName,omitempty" azure:"ro"` // READ-ONLY; Received bytes on the integration runtime node. ReceivedBytes *[float32](/builtin#float32) `json:"receivedBytes,omitempty" azure:"ro"` // READ-ONLY; Sent bytes on the integration runtime node. SentBytes *[float32](/builtin#float32) `json:"sentBytes,omitempty" azure:"ro"` } ``` IntegrationRuntimeNodeMonitoringData - Monitoring data for integration runtime node. #### func (IntegrationRuntimeNodeMonitoringData) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26599) [¶](#IntegrationRuntimeNodeMonitoringData.MarshalJSON) ``` func (i [IntegrationRuntimeNodeMonitoringData](#IntegrationRuntimeNodeMonitoringData)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeNodeMonitoringData. #### func (*IntegrationRuntimeNodeMonitoringData) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26618) [¶](#IntegrationRuntimeNodeMonitoringData.UnmarshalJSON) ``` func (i *[IntegrationRuntimeNodeMonitoringData](#IntegrationRuntimeNodeMonitoringData)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeNodeMonitoringData. #### type [IntegrationRuntimeNodesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go#L28) [¶](#IntegrationRuntimeNodesClient) ``` type IntegrationRuntimeNodesClient struct { // contains filtered or unexported fields } ``` IntegrationRuntimeNodesClient contains the methods for the IntegrationRuntimeNodes group. Don't use this type directly, use NewIntegrationRuntimeNodesClient() instead. #### func [NewIntegrationRuntimeNodesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go#L38) [¶](#NewIntegrationRuntimeNodesClient) ``` func NewIntegrationRuntimeNodesClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[IntegrationRuntimeNodesClient](#IntegrationRuntimeNodesClient), [error](/builtin#error)) ``` NewIntegrationRuntimeNodesClient creates a new instance of IntegrationRuntimeNodesClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*IntegrationRuntimeNodesClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go#L67) [¶](#IntegrationRuntimeNodesClient.Delete) ``` func (client *[IntegrationRuntimeNodesClient](#IntegrationRuntimeNodesClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), nodeName [string](/builtin#string), options *[IntegrationRuntimeNodesClientDeleteOptions](#IntegrationRuntimeNodesClientDeleteOptions)) ([IntegrationRuntimeNodesClientDeleteResponse](#IntegrationRuntimeNodesClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a self-hosted integration runtime node. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. nodeName - The integration runtime node name. options - IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete method. Example [¶](#example-IntegrationRuntimeNodesClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimeNodesClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go#L125) [¶](#IntegrationRuntimeNodesClient.Get) ``` func (client *[IntegrationRuntimeNodesClient](#IntegrationRuntimeNodesClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), nodeName [string](/builtin#string), options *[IntegrationRuntimeNodesClientGetOptions](#IntegrationRuntimeNodesClientGetOptions)) ([IntegrationRuntimeNodesClientGetResponse](#IntegrationRuntimeNodesClientGetResponse), [error](/builtin#error)) ``` Get - Gets a self-hosted integration runtime node. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. nodeName - The integration runtime node name. options - IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get method. Example [¶](#example-IntegrationRuntimeNodesClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimeNodesClient) [GetIPAddress](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go#L192) [¶](#IntegrationRuntimeNodesClient.GetIPAddress) ``` func (client *[IntegrationRuntimeNodesClient](#IntegrationRuntimeNodesClient)) GetIPAddress(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), nodeName [string](/builtin#string), options *[IntegrationRuntimeNodesClientGetIPAddressOptions](#IntegrationRuntimeNodesClientGetIPAddressOptions)) ([IntegrationRuntimeNodesClientGetIPAddressResponse](#IntegrationRuntimeNodesClientGetIPAddressResponse), [error](/builtin#error)) ``` GetIPAddress - Get the IP address of self-hosted integration runtime node. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. nodeName - The integration runtime node name. options - IntegrationRuntimeNodesClientGetIPAddressOptions contains the optional parameters for the IntegrationRuntimeNodesClient.GetIPAddress method. Example [¶](#example-IntegrationRuntimeNodesClient.GetIPAddress) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetIPAddress(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimeNodesClient) [Update](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go#L260) [¶](#IntegrationRuntimeNodesClient.Update) ``` func (client *[IntegrationRuntimeNodesClient](#IntegrationRuntimeNodesClient)) Update(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), nodeName [string](/builtin#string), updateIntegrationRuntimeNodeRequest [UpdateIntegrationRuntimeNodeRequest](#UpdateIntegrationRuntimeNodeRequest), options *[IntegrationRuntimeNodesClientUpdateOptions](#IntegrationRuntimeNodesClientUpdateOptions)) ([IntegrationRuntimeNodesClientUpdateResponse](#IntegrationRuntimeNodesClientUpdateResponse), [error](/builtin#error)) ``` Update - Updates a self-hosted integration runtime node. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. nodeName - The integration runtime node name. updateIntegrationRuntimeNodeRequest - The parameters for updating an integration runtime node. options - IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update method. Example [¶](#example-IntegrationRuntimeNodesClient.Update) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", armdatafactory.UpdateIntegrationRuntimeNodeRequest{ ConcurrentJobsLimit: to.Ptr[int32](2), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [IntegrationRuntimeNodesClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15634) [¶](#IntegrationRuntimeNodesClientDeleteOptions) added in v0.2.0 ``` type IntegrationRuntimeNodesClientDeleteOptions struct { } ``` IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete method. #### type [IntegrationRuntimeNodesClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L163) [¶](#IntegrationRuntimeNodesClientDeleteResponse) added in v0.2.0 ``` type IntegrationRuntimeNodesClientDeleteResponse struct { } ``` IntegrationRuntimeNodesClientDeleteResponse contains the response from method IntegrationRuntimeNodesClient.Delete. #### type [IntegrationRuntimeNodesClientGetIPAddressOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15640) [¶](#IntegrationRuntimeNodesClientGetIPAddressOptions) added in v0.2.0 ``` type IntegrationRuntimeNodesClientGetIPAddressOptions struct { } ``` IntegrationRuntimeNodesClientGetIPAddressOptions contains the optional parameters for the IntegrationRuntimeNodesClient.GetIPAddress method. #### type [IntegrationRuntimeNodesClientGetIPAddressResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L168) [¶](#IntegrationRuntimeNodesClientGetIPAddressResponse) added in v0.2.0 ``` type IntegrationRuntimeNodesClientGetIPAddressResponse struct { [IntegrationRuntimeNodeIPAddress](#IntegrationRuntimeNodeIPAddress) } ``` IntegrationRuntimeNodesClientGetIPAddressResponse contains the response from method IntegrationRuntimeNodesClient.GetIPAddress. #### type [IntegrationRuntimeNodesClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15645) [¶](#IntegrationRuntimeNodesClientGetOptions) added in v0.2.0 ``` type IntegrationRuntimeNodesClientGetOptions struct { } ``` IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get method. #### type [IntegrationRuntimeNodesClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L173) [¶](#IntegrationRuntimeNodesClientGetResponse) added in v0.2.0 ``` type IntegrationRuntimeNodesClientGetResponse struct { [SelfHostedIntegrationRuntimeNode](#SelfHostedIntegrationRuntimeNode) } ``` IntegrationRuntimeNodesClientGetResponse contains the response from method IntegrationRuntimeNodesClient.Get. #### type [IntegrationRuntimeNodesClientUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15651) [¶](#IntegrationRuntimeNodesClientUpdateOptions) added in v0.2.0 ``` type IntegrationRuntimeNodesClientUpdateOptions struct { } ``` IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update method. #### type [IntegrationRuntimeNodesClientUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L178) [¶](#IntegrationRuntimeNodesClientUpdateResponse) added in v0.2.0 ``` type IntegrationRuntimeNodesClientUpdateResponse struct { [SelfHostedIntegrationRuntimeNode](#SelfHostedIntegrationRuntimeNode) } ``` IntegrationRuntimeNodesClientUpdateResponse contains the response from method IntegrationRuntimeNodesClient.Update. #### type [IntegrationRuntimeObjectMetadataClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go#L28) [¶](#IntegrationRuntimeObjectMetadataClient) ``` type IntegrationRuntimeObjectMetadataClient struct { // contains filtered or unexported fields } ``` IntegrationRuntimeObjectMetadataClient contains the methods for the IntegrationRuntimeObjectMetadata group. Don't use this type directly, use NewIntegrationRuntimeObjectMetadataClient() instead. #### func [NewIntegrationRuntimeObjectMetadataClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go#L38) [¶](#NewIntegrationRuntimeObjectMetadataClient) ``` func NewIntegrationRuntimeObjectMetadataClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[IntegrationRuntimeObjectMetadataClient](#IntegrationRuntimeObjectMetadataClient), [error](/builtin#error)) ``` NewIntegrationRuntimeObjectMetadataClient creates a new instance of IntegrationRuntimeObjectMetadataClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*IntegrationRuntimeObjectMetadataClient) [BeginRefresh](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go#L131) [¶](#IntegrationRuntimeObjectMetadataClient.BeginRefresh) ``` func (client *[IntegrationRuntimeObjectMetadataClient](#IntegrationRuntimeObjectMetadataClient)) BeginRefresh(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimeObjectMetadataClientBeginRefreshOptions](#IntegrationRuntimeObjectMetadataClientBeginRefreshOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[IntegrationRuntimeObjectMetadataClientRefreshResponse](#IntegrationRuntimeObjectMetadataClientRefreshResponse)], [error](/builtin#error)) ``` BeginRefresh - Refresh a SSIS integration runtime object metadata. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh method. Example [¶](#example-IntegrationRuntimeObjectMetadataClient.BeginRefresh) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimeObjectMetadataClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginRefresh(ctx, "exampleResourceGroup", "exampleFactoryName", "testactivityv2", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimeObjectMetadataClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go#L66) [¶](#IntegrationRuntimeObjectMetadataClient.Get) ``` func (client *[IntegrationRuntimeObjectMetadataClient](#IntegrationRuntimeObjectMetadataClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimeObjectMetadataClientGetOptions](#IntegrationRuntimeObjectMetadataClientGetOptions)) ([IntegrationRuntimeObjectMetadataClientGetResponse](#IntegrationRuntimeObjectMetadataClientGetResponse), [error](/builtin#error)) ``` Get - Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimeObjectMetadataClientGetOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.Get method. Example [¶](#example-IntegrationRuntimeObjectMetadataClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimeObjectMetadataClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "testactivityv2", &armdatafactory.IntegrationRuntimeObjectMetadataClientGetOptions{GetMetadataRequest: &armdatafactory.GetSsisObjectMetadataRequest{ MetadataPath: to.Ptr("ssisFolders"), }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [IntegrationRuntimeObjectMetadataClientBeginRefreshOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15657) [¶](#IntegrationRuntimeObjectMetadataClientBeginRefreshOptions) added in v0.2.0 ``` type IntegrationRuntimeObjectMetadataClientBeginRefreshOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh method. #### type [IntegrationRuntimeObjectMetadataClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15664) [¶](#IntegrationRuntimeObjectMetadataClientGetOptions) added in v0.2.0 ``` type IntegrationRuntimeObjectMetadataClientGetOptions struct { // The parameters for getting a SSIS object metadata. GetMetadataRequest *[GetSsisObjectMetadataRequest](#GetSsisObjectMetadataRequest) } ``` IntegrationRuntimeObjectMetadataClientGetOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.Get method. #### type [IntegrationRuntimeObjectMetadataClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L183) [¶](#IntegrationRuntimeObjectMetadataClientGetResponse) added in v0.2.0 ``` type IntegrationRuntimeObjectMetadataClientGetResponse struct { [SsisObjectMetadataListResponse](#SsisObjectMetadataListResponse) } ``` IntegrationRuntimeObjectMetadataClientGetResponse contains the response from method IntegrationRuntimeObjectMetadataClient.Get. #### type [IntegrationRuntimeObjectMetadataClientRefreshResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L188) [¶](#IntegrationRuntimeObjectMetadataClientRefreshResponse) added in v0.2.0 ``` type IntegrationRuntimeObjectMetadataClientRefreshResponse struct { [SsisObjectMetadataStatusResponse](#SsisObjectMetadataStatusResponse) } ``` IntegrationRuntimeObjectMetadataClientRefreshResponse contains the response from method IntegrationRuntimeObjectMetadataClient.Refresh. #### type [IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15671) [¶](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) ``` type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint struct { // The category of outbound network dependency. Category *[string](/builtin#string) `json:"category,omitempty"` // The endpoints for outbound network dependency. Endpoints []*[IntegrationRuntimeOutboundNetworkDependenciesEndpoint](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint) `json:"endpoints,omitempty"` } ``` IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint - Azure-SSIS integration runtime outbound network dependency endpoints for one category. #### func (IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26669) [¶](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.MarshalJSON) ``` func (i [IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint. #### func (*IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26677) [¶](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint. #### type [IntegrationRuntimeOutboundNetworkDependenciesEndpoint](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15681) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint) ``` type IntegrationRuntimeOutboundNetworkDependenciesEndpoint struct { // The domain name of endpoint. DomainName *[string](/builtin#string) `json:"domainName,omitempty"` // The details of endpoint. EndpointDetails []*[IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) `json:"endpointDetails,omitempty"` } ``` IntegrationRuntimeOutboundNetworkDependenciesEndpoint - The endpoint for Azure-SSIS integration runtime outbound network dependency. #### func (IntegrationRuntimeOutboundNetworkDependenciesEndpoint) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26700) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint.MarshalJSON) ``` func (i [IntegrationRuntimeOutboundNetworkDependenciesEndpoint](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpoint. #### func (*IntegrationRuntimeOutboundNetworkDependenciesEndpoint) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26708) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeOutboundNetworkDependenciesEndpoint](#IntegrationRuntimeOutboundNetworkDependenciesEndpoint)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpoint. #### type [IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15691) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) ``` type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails struct { // The port of endpoint. Port *[int32](/builtin#int32) `json:"port,omitempty"` } ``` IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails - The details of Azure-SSIS integration runtime outbound network dependency endpoint. #### func (IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26731) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.MarshalJSON) added in v1.3.0 ``` func (i [IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails. #### func (*IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26738) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails](#IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails. #### type [IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15698) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) ``` type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse struct { // The list of outbound network dependency endpoints. Value []*[IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint](#IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) `json:"value,omitempty"` } ``` IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse - Azure-SSIS integration runtime outbound network dependency endpoints. #### func (IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26758) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.MarshalJSON) ``` func (i [IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. #### func (*IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26765) [¶](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. #### type [IntegrationRuntimeReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15704) [¶](#IntegrationRuntimeReference) ``` type IntegrationRuntimeReference struct { // REQUIRED; Reference integration runtime name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Type of integration runtime. Type *[IntegrationRuntimeReferenceType](#IntegrationRuntimeReferenceType) `json:"type,omitempty"` // Arguments for integration runtime. Parameters map[[string](/builtin#string)]interface{} `json:"parameters,omitempty"` } ``` IntegrationRuntimeReference - Integration runtime reference type. #### func (IntegrationRuntimeReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26785) [¶](#IntegrationRuntimeReference.MarshalJSON) ``` func (i [IntegrationRuntimeReference](#IntegrationRuntimeReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeReference. #### func (*IntegrationRuntimeReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26794) [¶](#IntegrationRuntimeReference.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeReference](#IntegrationRuntimeReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeReference. #### type [IntegrationRuntimeReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L848) [¶](#IntegrationRuntimeReferenceType) ``` type IntegrationRuntimeReferenceType [string](/builtin#string) ``` IntegrationRuntimeReferenceType - Type of integration runtime. ``` const ( IntegrationRuntimeReferenceTypeIntegrationRuntimeReference [IntegrationRuntimeReferenceType](#IntegrationRuntimeReferenceType) = "IntegrationRuntimeReference" ) ``` #### func [PossibleIntegrationRuntimeReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L855) [¶](#PossibleIntegrationRuntimeReferenceTypeValues) ``` func PossibleIntegrationRuntimeReferenceTypeValues() [][IntegrationRuntimeReferenceType](#IntegrationRuntimeReferenceType) ``` PossibleIntegrationRuntimeReferenceTypeValues returns the possible values for the IntegrationRuntimeReferenceType const type. #### type [IntegrationRuntimeRegenerateKeyParameters](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15716) [¶](#IntegrationRuntimeRegenerateKeyParameters) ``` type IntegrationRuntimeRegenerateKeyParameters struct { // The name of the authentication key to regenerate. KeyName *[IntegrationRuntimeAuthKeyName](#IntegrationRuntimeAuthKeyName) `json:"keyName,omitempty"` } ``` IntegrationRuntimeRegenerateKeyParameters - Parameters to regenerate the authentication key. #### func (IntegrationRuntimeRegenerateKeyParameters) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26820) [¶](#IntegrationRuntimeRegenerateKeyParameters.MarshalJSON) added in v1.3.0 ``` func (i [IntegrationRuntimeRegenerateKeyParameters](#IntegrationRuntimeRegenerateKeyParameters)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeRegenerateKeyParameters. #### func (*IntegrationRuntimeRegenerateKeyParameters) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26827) [¶](#IntegrationRuntimeRegenerateKeyParameters.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeRegenerateKeyParameters](#IntegrationRuntimeRegenerateKeyParameters)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeRegenerateKeyParameters. #### type [IntegrationRuntimeResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15722) [¶](#IntegrationRuntimeResource) ``` type IntegrationRuntimeResource struct { // REQUIRED; Integration runtime properties. Properties [IntegrationRuntimeClassification](#IntegrationRuntimeClassification) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` IntegrationRuntimeResource - Integration runtime resource type. #### func (IntegrationRuntimeResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26847) [¶](#IntegrationRuntimeResource.MarshalJSON) ``` func (i [IntegrationRuntimeResource](#IntegrationRuntimeResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeResource. #### func (*IntegrationRuntimeResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26858) [¶](#IntegrationRuntimeResource.UnmarshalJSON) ``` func (i *[IntegrationRuntimeResource](#IntegrationRuntimeResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeResource. #### type [IntegrationRuntimeSsisCatalogInfo](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15740) [¶](#IntegrationRuntimeSsisCatalogInfo) ``` type IntegrationRuntimeSsisCatalogInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The password of the administrator user account of the catalog database. CatalogAdminPassword *[SecureString](#SecureString) `json:"catalogAdminPassword,omitempty"` // The administrator user name of catalog database. CatalogAdminUserName *[string](/builtin#string) `json:"catalogAdminUserName,omitempty"` // The pricing tier for the catalog database. The valid values could be found in <https://azure.microsoft.com/en-us/pricing/details/sql-database/> CatalogPricingTier *[IntegrationRuntimeSsisCatalogPricingTier](#IntegrationRuntimeSsisCatalogPricingTier) `json:"catalogPricingTier,omitempty"` // The catalog database server URL. CatalogServerEndpoint *[string](/builtin#string) `json:"catalogServerEndpoint,omitempty"` // The dual standby pair name of Azure-SSIS Integration Runtimes to support SSISDB failover. DualStandbyPairName *[string](/builtin#string) `json:"dualStandbyPairName,omitempty"` } ``` IntegrationRuntimeSsisCatalogInfo - Catalog information for managed dedicated integration runtime. #### func (IntegrationRuntimeSsisCatalogInfo) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26890) [¶](#IntegrationRuntimeSsisCatalogInfo.MarshalJSON) ``` func (i [IntegrationRuntimeSsisCatalogInfo](#IntegrationRuntimeSsisCatalogInfo)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisCatalogInfo. #### func (*IntegrationRuntimeSsisCatalogInfo) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26906) [¶](#IntegrationRuntimeSsisCatalogInfo.UnmarshalJSON) ``` func (i *[IntegrationRuntimeSsisCatalogInfo](#IntegrationRuntimeSsisCatalogInfo)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeSsisCatalogInfo. #### type [IntegrationRuntimeSsisCatalogPricingTier](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L863) [¶](#IntegrationRuntimeSsisCatalogPricingTier) ``` type IntegrationRuntimeSsisCatalogPricingTier [string](/builtin#string) ``` IntegrationRuntimeSsisCatalogPricingTier - The pricing tier for the catalog database. The valid values could be found in <https://azure.microsoft.com/en-us/pricing/details/sql-database/> ``` const ( IntegrationRuntimeSsisCatalogPricingTierBasic [IntegrationRuntimeSsisCatalogPricingTier](#IntegrationRuntimeSsisCatalogPricingTier) = "Basic" IntegrationRuntimeSsisCatalogPricingTierPremium [IntegrationRuntimeSsisCatalogPricingTier](#IntegrationRuntimeSsisCatalogPricingTier) = "Premium" IntegrationRuntimeSsisCatalogPricingTierPremiumRS [IntegrationRuntimeSsisCatalogPricingTier](#IntegrationRuntimeSsisCatalogPricingTier) = "PremiumRS" IntegrationRuntimeSsisCatalogPricingTierStandard [IntegrationRuntimeSsisCatalogPricingTier](#IntegrationRuntimeSsisCatalogPricingTier) = "Standard" ) ``` #### func [PossibleIntegrationRuntimeSsisCatalogPricingTierValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L873) [¶](#PossibleIntegrationRuntimeSsisCatalogPricingTierValues) ``` func PossibleIntegrationRuntimeSsisCatalogPricingTierValues() [][IntegrationRuntimeSsisCatalogPricingTier](#IntegrationRuntimeSsisCatalogPricingTier) ``` PossibleIntegrationRuntimeSsisCatalogPricingTierValues returns the possible values for the IntegrationRuntimeSsisCatalogPricingTier const type. #### type [IntegrationRuntimeSsisProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15761) [¶](#IntegrationRuntimeSsisProperties) ``` type IntegrationRuntimeSsisProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Catalog information for managed dedicated integration runtime. CatalogInfo *[IntegrationRuntimeSsisCatalogInfo](#IntegrationRuntimeSsisCatalogInfo) `json:"catalogInfo,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // Custom setup script properties for a managed dedicated integration runtime. CustomSetupScriptProperties *[IntegrationRuntimeCustomSetupScriptProperties](#IntegrationRuntimeCustomSetupScriptProperties) `json:"customSetupScriptProperties,omitempty"` // Data proxy properties for a managed dedicated integration runtime. DataProxyProperties *[IntegrationRuntimeDataProxyProperties](#IntegrationRuntimeDataProxyProperties) `json:"dataProxyProperties,omitempty"` // The edition for the SSIS Integration Runtime Edition *[IntegrationRuntimeEdition](#IntegrationRuntimeEdition) `json:"edition,omitempty"` // Custom setup without script properties for a SSIS integration runtime. ExpressCustomSetupProperties [][CustomSetupBaseClassification](#CustomSetupBaseClassification) `json:"expressCustomSetupProperties,omitempty"` // License type for bringing your own license scenario. LicenseType *[IntegrationRuntimeLicenseType](#IntegrationRuntimeLicenseType) `json:"licenseType,omitempty"` // Package stores for the SSIS Integration Runtime. PackageStores []*[PackageStore](#PackageStore) `json:"packageStores,omitempty"` } ``` IntegrationRuntimeSsisProperties - SSIS properties for managed integration runtime. #### func (IntegrationRuntimeSsisProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26948) [¶](#IntegrationRuntimeSsisProperties.MarshalJSON) ``` func (i [IntegrationRuntimeSsisProperties](#IntegrationRuntimeSsisProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisProperties. #### func (*IntegrationRuntimeSsisProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L26967) [¶](#IntegrationRuntimeSsisProperties.UnmarshalJSON) ``` func (i *[IntegrationRuntimeSsisProperties](#IntegrationRuntimeSsisProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeSsisProperties. #### type [IntegrationRuntimeState](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L883) [¶](#IntegrationRuntimeState) ``` type IntegrationRuntimeState [string](/builtin#string) ``` IntegrationRuntimeState - The state of integration runtime. ``` const ( IntegrationRuntimeStateAccessDenied [IntegrationRuntimeState](#IntegrationRuntimeState) = "AccessDenied" IntegrationRuntimeStateInitial [IntegrationRuntimeState](#IntegrationRuntimeState) = "Initial" IntegrationRuntimeStateLimited [IntegrationRuntimeState](#IntegrationRuntimeState) = "Limited" IntegrationRuntimeStateNeedRegistration [IntegrationRuntimeState](#IntegrationRuntimeState) = "NeedRegistration" IntegrationRuntimeStateOffline [IntegrationRuntimeState](#IntegrationRuntimeState) = "Offline" IntegrationRuntimeStateOnline [IntegrationRuntimeState](#IntegrationRuntimeState) = "Online" IntegrationRuntimeStateStarted [IntegrationRuntimeState](#IntegrationRuntimeState) = "Started" IntegrationRuntimeStateStarting [IntegrationRuntimeState](#IntegrationRuntimeState) = "Starting" IntegrationRuntimeStateStopped [IntegrationRuntimeState](#IntegrationRuntimeState) = "Stopped" IntegrationRuntimeStateStopping [IntegrationRuntimeState](#IntegrationRuntimeState) = "Stopping" ) ``` #### func [PossibleIntegrationRuntimeStateValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L899) [¶](#PossibleIntegrationRuntimeStateValues) ``` func PossibleIntegrationRuntimeStateValues() [][IntegrationRuntimeState](#IntegrationRuntimeState) ``` PossibleIntegrationRuntimeStateValues returns the possible values for the IntegrationRuntimeState const type. #### type [IntegrationRuntimeStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15800) [¶](#IntegrationRuntimeStatus) ``` type IntegrationRuntimeStatus struct { // REQUIRED; Type of integration runtime. Type *[IntegrationRuntimeType](#IntegrationRuntimeType) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *[string](/builtin#string) `json:"dataFactoryName,omitempty" azure:"ro"` // READ-ONLY; The state of integration runtime. State *[IntegrationRuntimeState](#IntegrationRuntimeState) `json:"state,omitempty" azure:"ro"` } ``` IntegrationRuntimeStatus - Integration runtime status. #### func (*IntegrationRuntimeStatus) [GetIntegrationRuntimeStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15815) [¶](#IntegrationRuntimeStatus.GetIntegrationRuntimeStatus) ``` func (i *[IntegrationRuntimeStatus](#IntegrationRuntimeStatus)) GetIntegrationRuntimeStatus() *[IntegrationRuntimeStatus](#IntegrationRuntimeStatus) ``` GetIntegrationRuntimeStatus implements the IntegrationRuntimeStatusClassification interface for type IntegrationRuntimeStatus. #### func (IntegrationRuntimeStatus) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27018) [¶](#IntegrationRuntimeStatus.MarshalJSON) added in v0.2.0 ``` func (i [IntegrationRuntimeStatus](#IntegrationRuntimeStatus)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatus. #### func (*IntegrationRuntimeStatus) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27032) [¶](#IntegrationRuntimeStatus.UnmarshalJSON) ``` func (i *[IntegrationRuntimeStatus](#IntegrationRuntimeStatus)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatus. #### type [IntegrationRuntimeStatusClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15794) [¶](#IntegrationRuntimeStatusClassification) ``` type IntegrationRuntimeStatusClassification interface { // GetIntegrationRuntimeStatus returns the IntegrationRuntimeStatus content of the underlying type. GetIntegrationRuntimeStatus() *[IntegrationRuntimeStatus](#IntegrationRuntimeStatus) } ``` IntegrationRuntimeStatusClassification provides polymorphic access to related types. Call the interface's GetIntegrationRuntimeStatus() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *IntegrationRuntimeStatus, *ManagedIntegrationRuntimeStatus, *SelfHostedIntegrationRuntimeStatus #### type [IntegrationRuntimeStatusListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15818) [¶](#IntegrationRuntimeStatusListResponse) ``` type IntegrationRuntimeStatusListResponse struct { // REQUIRED; List of integration runtime status. Value []*[IntegrationRuntimeStatusResponse](#IntegrationRuntimeStatusResponse) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` IntegrationRuntimeStatusListResponse - A list of integration runtime status. #### func (IntegrationRuntimeStatusListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27068) [¶](#IntegrationRuntimeStatusListResponse.MarshalJSON) ``` func (i [IntegrationRuntimeStatusListResponse](#IntegrationRuntimeStatusListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatusListResponse. #### func (*IntegrationRuntimeStatusListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27076) [¶](#IntegrationRuntimeStatusListResponse.UnmarshalJSON) added in v1.3.0 ``` func (i *[IntegrationRuntimeStatusListResponse](#IntegrationRuntimeStatusListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatusListResponse. #### type [IntegrationRuntimeStatusResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15827) [¶](#IntegrationRuntimeStatusResponse) ``` type IntegrationRuntimeStatusResponse struct { // REQUIRED; Integration runtime properties. Properties [IntegrationRuntimeStatusClassification](#IntegrationRuntimeStatusClassification) `json:"properties,omitempty"` // READ-ONLY; The integration runtime name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` } ``` IntegrationRuntimeStatusResponse - Integration runtime status response. #### func (IntegrationRuntimeStatusResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27099) [¶](#IntegrationRuntimeStatusResponse.MarshalJSON) ``` func (i [IntegrationRuntimeStatusResponse](#IntegrationRuntimeStatusResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatusResponse. #### func (*IntegrationRuntimeStatusResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27107) [¶](#IntegrationRuntimeStatusResponse.UnmarshalJSON) ``` func (i *[IntegrationRuntimeStatusResponse](#IntegrationRuntimeStatusResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatusResponse. #### type [IntegrationRuntimeType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L915) [¶](#IntegrationRuntimeType) ``` type IntegrationRuntimeType [string](/builtin#string) ``` IntegrationRuntimeType - The type of integration runtime. ``` const ( IntegrationRuntimeTypeManaged [IntegrationRuntimeType](#IntegrationRuntimeType) = "Managed" IntegrationRuntimeTypeSelfHosted [IntegrationRuntimeType](#IntegrationRuntimeType) = "SelfHosted" ) ``` #### func [PossibleIntegrationRuntimeTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L923) [¶](#PossibleIntegrationRuntimeTypeValues) ``` func PossibleIntegrationRuntimeTypeValues() [][IntegrationRuntimeType](#IntegrationRuntimeType) ``` PossibleIntegrationRuntimeTypeValues returns the possible values for the IntegrationRuntimeType const type. #### type [IntegrationRuntimeUpdateResult](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L931) [¶](#IntegrationRuntimeUpdateResult) ``` type IntegrationRuntimeUpdateResult [string](/builtin#string) ``` IntegrationRuntimeUpdateResult - The result of the last integration runtime node update. ``` const ( IntegrationRuntimeUpdateResultFail [IntegrationRuntimeUpdateResult](#IntegrationRuntimeUpdateResult) = "Fail" IntegrationRuntimeUpdateResultNone [IntegrationRuntimeUpdateResult](#IntegrationRuntimeUpdateResult) = "None" IntegrationRuntimeUpdateResultSucceed [IntegrationRuntimeUpdateResult](#IntegrationRuntimeUpdateResult) = "Succeed" ) ``` #### func [PossibleIntegrationRuntimeUpdateResultValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L940) [¶](#PossibleIntegrationRuntimeUpdateResultValues) ``` func PossibleIntegrationRuntimeUpdateResultValues() [][IntegrationRuntimeUpdateResult](#IntegrationRuntimeUpdateResult) ``` PossibleIntegrationRuntimeUpdateResultValues returns the possible values for the IntegrationRuntimeUpdateResult const type. #### type [IntegrationRuntimeVNetProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15836) [¶](#IntegrationRuntimeVNetProperties) ``` type IntegrationRuntimeVNetProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Resource IDs of the public IP addresses that this integration runtime will use. PublicIPs []*[string](/builtin#string) `json:"publicIPs,omitempty"` // The name of the subnet this integration runtime will join. Subnet *[string](/builtin#string) `json:"subnet,omitempty"` // The ID of subnet, to which this Azure-SSIS integration runtime will be joined. SubnetID *[string](/builtin#string) `json:"subnetId,omitempty"` // The ID of the VNet that this integration runtime will join. VNetID *[string](/builtin#string) `json:"vNetId,omitempty"` } ``` IntegrationRuntimeVNetProperties - VNet properties for managed integration runtime. #### func (IntegrationRuntimeVNetProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27130) [¶](#IntegrationRuntimeVNetProperties.MarshalJSON) ``` func (i [IntegrationRuntimeVNetProperties](#IntegrationRuntimeVNetProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeVNetProperties. #### func (*IntegrationRuntimeVNetProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27145) [¶](#IntegrationRuntimeVNetProperties.UnmarshalJSON) ``` func (i *[IntegrationRuntimeVNetProperties](#IntegrationRuntimeVNetProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeVNetProperties. #### type [IntegrationRuntimesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L28) [¶](#IntegrationRuntimesClient) ``` type IntegrationRuntimesClient struct { // contains filtered or unexported fields } ``` IntegrationRuntimesClient contains the methods for the IntegrationRuntimes group. Don't use this type directly, use NewIntegrationRuntimesClient() instead. #### func [NewIntegrationRuntimesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L38) [¶](#NewIntegrationRuntimesClient) ``` func NewIntegrationRuntimesClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[IntegrationRuntimesClient](#IntegrationRuntimesClient), [error](/builtin#error)) ``` NewIntegrationRuntimesClient creates a new instance of IntegrationRuntimesClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*IntegrationRuntimesClient) [BeginStart](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L812) [¶](#IntegrationRuntimesClient.BeginStart) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) BeginStart(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientBeginStartOptions](#IntegrationRuntimesClientBeginStartOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[IntegrationRuntimesClientStartResponse](#IntegrationRuntimesClientStartResponse)], [error](/builtin#error)) ``` BeginStart - Starts a ManagedReserved type integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart method. Example [¶](#example-IntegrationRuntimesClient.BeginStart) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStart(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [BeginStop](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L880) [¶](#IntegrationRuntimesClient.BeginStop) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) BeginStop(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientBeginStopOptions](#IntegrationRuntimesClientBeginStopOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[IntegrationRuntimesClientStopResponse](#IntegrationRuntimesClientStopResponse)], [error](/builtin#error)) ``` BeginStop - Stops a ManagedReserved type integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop method. Example [¶](#example-IntegrationRuntimesClient.BeginStop) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStop(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [CreateLinkedIntegrationRuntime](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L67) [¶](#IntegrationRuntimesClient.CreateLinkedIntegrationRuntime) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) CreateLinkedIntegrationRuntime(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), createLinkedIntegrationRuntimeRequest [CreateLinkedIntegrationRuntimeRequest](#CreateLinkedIntegrationRuntimeRequest), options *[IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions](#IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions)) ([IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse](#IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse), [error](/builtin#error)) ``` CreateLinkedIntegrationRuntime - Create a linked integration runtime entry in a shared integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. createLinkedIntegrationRuntimeRequest - The linked integration runtime properties. options - IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions contains the optional parameters for the IntegrationRuntimesClient.CreateLinkedIntegrationRuntime method. Example [¶](#example-IntegrationRuntimesClient.CreateLinkedIntegrationRuntime) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateLinkedIntegrationRuntime(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.CreateLinkedIntegrationRuntimeRequest{ Name: to.Ptr("bfa92911-9fb6-4fbe-8f23-beae87bc1c83"), DataFactoryLocation: to.Ptr("West US"), DataFactoryName: to.Ptr("e9955d6d-56ea-4be3-841c-52a12c1a9981"), SubscriptionID: to.Ptr("061774c7-4b5a-4159-a55b-365581830283"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L130) [¶](#IntegrationRuntimesClient.CreateOrUpdate) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), integrationRuntime [IntegrationRuntimeResource](#IntegrationRuntimeResource), options *[IntegrationRuntimesClientCreateOrUpdateOptions](#IntegrationRuntimesClientCreateOrUpdateOptions)) ([IntegrationRuntimesClientCreateOrUpdateResponse](#IntegrationRuntimesClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates an integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. integrationRuntime - Integration runtime resource definition. options - IntegrationRuntimesClientCreateOrUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.CreateOrUpdate method. Example [¶](#example-IntegrationRuntimesClient.CreateOrUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.IntegrationRuntimeResource{ Properties: &armdatafactory.SelfHostedIntegrationRuntime{ Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), Description: to.Ptr("A selfhosted integration runtime"), }, }, &armdatafactory.IntegrationRuntimesClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L195) [¶](#IntegrationRuntimesClient.Delete) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientDeleteOptions](#IntegrationRuntimesClientDeleteOptions)) ([IntegrationRuntimesClientDeleteResponse](#IntegrationRuntimesClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes an integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.Delete method. Example [¶](#example-IntegrationRuntimesClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L247) [¶](#IntegrationRuntimesClient.Get) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientGetOptions](#IntegrationRuntimesClientGetOptions)) ([IntegrationRuntimesClientGetResponse](#IntegrationRuntimesClientGetResponse), [error](/builtin#error)) ``` Get - Gets an integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. Example [¶](#example-IntegrationRuntimesClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", &armdatafactory.IntegrationRuntimesClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [GetConnectionInfo](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L313) [¶](#IntegrationRuntimesClient.GetConnectionInfo) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) GetConnectionInfo(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientGetConnectionInfoOptions](#IntegrationRuntimesClientGetConnectionInfoOptions)) ([IntegrationRuntimesClientGetConnectionInfoResponse](#IntegrationRuntimesClientGetConnectionInfoResponse), [error](/builtin#error)) ``` GetConnectionInfo - Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientGetConnectionInfoOptions contains the optional parameters for the IntegrationRuntimesClient.GetConnectionInfo method. Example [¶](#example-IntegrationRuntimesClient.GetConnectionInfo) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetConnectionInfo(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [GetMonitoringData](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L376) [¶](#IntegrationRuntimesClient.GetMonitoringData) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) GetMonitoringData(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientGetMonitoringDataOptions](#IntegrationRuntimesClientGetMonitoringDataOptions)) ([IntegrationRuntimesClientGetMonitoringDataResponse](#IntegrationRuntimesClientGetMonitoringDataResponse), [error](/builtin#error)) ``` GetMonitoringData - Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientGetMonitoringDataOptions contains the optional parameters for the IntegrationRuntimesClient.GetMonitoringData method. Example [¶](#example-IntegrationRuntimesClient.GetMonitoringData) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetMonitoringData(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [GetStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L438) [¶](#IntegrationRuntimesClient.GetStatus) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) GetStatus(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientGetStatusOptions](#IntegrationRuntimesClientGetStatusOptions)) ([IntegrationRuntimesClientGetStatusResponse](#IntegrationRuntimesClientGetStatusResponse), [error](/builtin#error)) ``` GetStatus - Gets detailed status information for an integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientGetStatusOptions contains the optional parameters for the IntegrationRuntimesClient.GetStatus method. Example [¶](#example-IntegrationRuntimesClient.GetStatus) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetStatus(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [ListAuthKeys](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L500) [¶](#IntegrationRuntimesClient.ListAuthKeys) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) ListAuthKeys(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientListAuthKeysOptions](#IntegrationRuntimesClientListAuthKeysOptions)) ([IntegrationRuntimesClientListAuthKeysResponse](#IntegrationRuntimesClientListAuthKeysResponse), [error](/builtin#error)) ``` ListAuthKeys - Retrieves the authentication keys for an integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientListAuthKeysOptions contains the optional parameters for the IntegrationRuntimesClient.ListAuthKeys method. Example [¶](#example-IntegrationRuntimesClient.ListAuthKeys) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListAuthKeys(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [ListOutboundNetworkDependenciesEndpoints](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L633) [¶](#IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) ListOutboundNetworkDependenciesEndpoints(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions](#IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions)) ([IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse](#IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse), [error](/builtin#error)) ``` ListOutboundNetworkDependenciesEndpoints - Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints method. Example [¶](#example-IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("7ad7c73b-38b8-4df3-84ee-52ff91092f61", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListOutboundNetworkDependenciesEndpoints(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L561) [¶](#IntegrationRuntimesClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[IntegrationRuntimesClientListByFactoryOptions](#IntegrationRuntimesClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[IntegrationRuntimesClientListByFactoryResponse](#IntegrationRuntimesClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists integration runtimes. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.ListByFactory method. Example [¶](#example-IntegrationRuntimesClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [RegenerateAuthKey](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L696) [¶](#IntegrationRuntimesClient.RegenerateAuthKey) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) RegenerateAuthKey(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), regenerateKeyParameters [IntegrationRuntimeRegenerateKeyParameters](#IntegrationRuntimeRegenerateKeyParameters), options *[IntegrationRuntimesClientRegenerateAuthKeyOptions](#IntegrationRuntimesClientRegenerateAuthKeyOptions)) ([IntegrationRuntimesClientRegenerateAuthKeyResponse](#IntegrationRuntimesClientRegenerateAuthKeyResponse), [error](/builtin#error)) ``` RegenerateAuthKey - Regenerates the authentication key for an integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. regenerateKeyParameters - The parameters for regenerating integration runtime authentication key. options - IntegrationRuntimesClientRegenerateAuthKeyOptions contains the optional parameters for the IntegrationRuntimesClient.RegenerateAuthKey method. Example [¶](#example-IntegrationRuntimesClient.RegenerateAuthKey) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.RegenerateAuthKey(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.IntegrationRuntimeRegenerateKeyParameters{ KeyName: to.Ptr(armdatafactory.IntegrationRuntimeAuthKeyNameAuthKey2), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [RemoveLinks](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L759) [¶](#IntegrationRuntimesClient.RemoveLinks) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) RemoveLinks(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), linkedIntegrationRuntimeRequest [LinkedIntegrationRuntimeRequest](#LinkedIntegrationRuntimeRequest), options *[IntegrationRuntimesClientRemoveLinksOptions](#IntegrationRuntimesClientRemoveLinksOptions)) ([IntegrationRuntimesClientRemoveLinksResponse](#IntegrationRuntimesClientRemoveLinksResponse), [error](/builtin#error)) ``` RemoveLinks - Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. linkedIntegrationRuntimeRequest - The data factory name for the linked integration runtime. options - IntegrationRuntimesClientRemoveLinksOptions contains the optional parameters for the IntegrationRuntimesClient.RemoveLinks method. Example [¶](#example-IntegrationRuntimesClient.RemoveLinks) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.RemoveLinks(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.LinkedIntegrationRuntimeRequest{ LinkedFactoryName: to.Ptr("exampleFactoryName-linked"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [SyncCredentials](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L951) [¶](#IntegrationRuntimesClient.SyncCredentials) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) SyncCredentials(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientSyncCredentialsOptions](#IntegrationRuntimesClientSyncCredentialsOptions)) ([IntegrationRuntimesClientSyncCredentialsResponse](#IntegrationRuntimesClientSyncCredentialsResponse), [error](/builtin#error)) ``` SyncCredentials - Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientSyncCredentialsOptions contains the optional parameters for the IntegrationRuntimesClient.SyncCredentials method. Example [¶](#example-IntegrationRuntimesClient.SyncCredentials) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.SyncCredentials(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [Update](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L1005) [¶](#IntegrationRuntimesClient.Update) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) Update(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), updateIntegrationRuntimeRequest [UpdateIntegrationRuntimeRequest](#UpdateIntegrationRuntimeRequest), options *[IntegrationRuntimesClientUpdateOptions](#IntegrationRuntimesClientUpdateOptions)) ([IntegrationRuntimesClientUpdateResponse](#IntegrationRuntimesClientUpdateResponse), [error](/builtin#error)) ``` Update - Updates an integration runtime. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. updateIntegrationRuntimeRequest - The parameters for updating an integration runtime. options - IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update method. Example [¶](#example-IntegrationRuntimesClient.Update) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.UpdateIntegrationRuntimeRequest{ AutoUpdate: to.Ptr(armdatafactory.IntegrationRuntimeAutoUpdateOff), UpdateDelayOffset: to.Ptr("\"PT3H\""), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*IntegrationRuntimesClient) [Upgrade](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go#L1067) [¶](#IntegrationRuntimesClient.Upgrade) ``` func (client *[IntegrationRuntimesClient](#IntegrationRuntimesClient)) Upgrade(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), integrationRuntimeName [string](/builtin#string), options *[IntegrationRuntimesClientUpgradeOptions](#IntegrationRuntimesClientUpgradeOptions)) ([IntegrationRuntimesClientUpgradeResponse](#IntegrationRuntimesClientUpgradeResponse), [error](/builtin#error)) ``` Upgrade - Upgrade self-hosted integration runtime to latest version if availability. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. integrationRuntimeName - The integration runtime name. options - IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade method. Example [¶](#example-IntegrationRuntimesClient.Upgrade) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Upgrade(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### type [IntegrationRuntimesClientBeginStartOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15855) [¶](#IntegrationRuntimesClientBeginStartOptions) added in v0.2.0 ``` type IntegrationRuntimesClientBeginStartOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart method. #### type [IntegrationRuntimesClientBeginStopOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15862) [¶](#IntegrationRuntimesClientBeginStopOptions) added in v0.2.0 ``` type IntegrationRuntimesClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop method. #### type [IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15869) [¶](#IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions) added in v0.2.0 ``` type IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions struct { } ``` IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions contains the optional parameters for the IntegrationRuntimesClient.CreateLinkedIntegrationRuntime method. #### type [IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L193) [¶](#IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse) added in v0.2.0 ``` type IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse struct { [IntegrationRuntimeStatusResponse](#IntegrationRuntimeStatusResponse) } ``` IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse contains the response from method IntegrationRuntimesClient.CreateLinkedIntegrationRuntime. #### type [IntegrationRuntimesClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15875) [¶](#IntegrationRuntimesClientCreateOrUpdateOptions) added in v0.2.0 ``` type IntegrationRuntimesClientCreateOrUpdateOptions struct { // ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity // or can be * for unconditional update. IfMatch *[string](/builtin#string) } ``` IntegrationRuntimesClientCreateOrUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.CreateOrUpdate method. #### type [IntegrationRuntimesClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L198) [¶](#IntegrationRuntimesClientCreateOrUpdateResponse) added in v0.2.0 ``` type IntegrationRuntimesClientCreateOrUpdateResponse struct { [IntegrationRuntimeResource](#IntegrationRuntimeResource) } ``` IntegrationRuntimesClientCreateOrUpdateResponse contains the response from method IntegrationRuntimesClient.CreateOrUpdate. #### type [IntegrationRuntimesClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15882) [¶](#IntegrationRuntimesClientDeleteOptions) added in v0.2.0 ``` type IntegrationRuntimesClientDeleteOptions struct { } ``` IntegrationRuntimesClientDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.Delete method. #### type [IntegrationRuntimesClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L203) [¶](#IntegrationRuntimesClientDeleteResponse) added in v0.2.0 ``` type IntegrationRuntimesClientDeleteResponse struct { } ``` IntegrationRuntimesClientDeleteResponse contains the response from method IntegrationRuntimesClient.Delete. #### type [IntegrationRuntimesClientGetConnectionInfoOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15888) [¶](#IntegrationRuntimesClientGetConnectionInfoOptions) added in v0.2.0 ``` type IntegrationRuntimesClientGetConnectionInfoOptions struct { } ``` IntegrationRuntimesClientGetConnectionInfoOptions contains the optional parameters for the IntegrationRuntimesClient.GetConnectionInfo method. #### type [IntegrationRuntimesClientGetConnectionInfoResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L208) [¶](#IntegrationRuntimesClientGetConnectionInfoResponse) added in v0.2.0 ``` type IntegrationRuntimesClientGetConnectionInfoResponse struct { [IntegrationRuntimeConnectionInfo](#IntegrationRuntimeConnectionInfo) } ``` IntegrationRuntimesClientGetConnectionInfoResponse contains the response from method IntegrationRuntimesClient.GetConnectionInfo. #### type [IntegrationRuntimesClientGetMonitoringDataOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15894) [¶](#IntegrationRuntimesClientGetMonitoringDataOptions) added in v0.2.0 ``` type IntegrationRuntimesClientGetMonitoringDataOptions struct { } ``` IntegrationRuntimesClientGetMonitoringDataOptions contains the optional parameters for the IntegrationRuntimesClient.GetMonitoringData method. #### type [IntegrationRuntimesClientGetMonitoringDataResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L213) [¶](#IntegrationRuntimesClientGetMonitoringDataResponse) added in v0.2.0 ``` type IntegrationRuntimesClientGetMonitoringDataResponse struct { [IntegrationRuntimeMonitoringData](#IntegrationRuntimeMonitoringData) } ``` IntegrationRuntimesClientGetMonitoringDataResponse contains the response from method IntegrationRuntimesClient.GetMonitoringData. #### type [IntegrationRuntimesClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15899) [¶](#IntegrationRuntimesClientGetOptions) added in v0.2.0 ``` type IntegrationRuntimesClientGetOptions struct { // ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, // or if * was provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. #### type [IntegrationRuntimesClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L218) [¶](#IntegrationRuntimesClientGetResponse) added in v0.2.0 ``` type IntegrationRuntimesClientGetResponse struct { [IntegrationRuntimeResource](#IntegrationRuntimeResource) } ``` IntegrationRuntimesClientGetResponse contains the response from method IntegrationRuntimesClient.Get. #### type [IntegrationRuntimesClientGetStatusOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15907) [¶](#IntegrationRuntimesClientGetStatusOptions) added in v0.2.0 ``` type IntegrationRuntimesClientGetStatusOptions struct { } ``` IntegrationRuntimesClientGetStatusOptions contains the optional parameters for the IntegrationRuntimesClient.GetStatus method. #### type [IntegrationRuntimesClientGetStatusResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L223) [¶](#IntegrationRuntimesClientGetStatusResponse) added in v0.2.0 ``` type IntegrationRuntimesClientGetStatusResponse struct { [IntegrationRuntimeStatusResponse](#IntegrationRuntimeStatusResponse) } ``` IntegrationRuntimesClientGetStatusResponse contains the response from method IntegrationRuntimesClient.GetStatus. #### type [IntegrationRuntimesClientListAuthKeysOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15913) [¶](#IntegrationRuntimesClientListAuthKeysOptions) added in v0.2.0 ``` type IntegrationRuntimesClientListAuthKeysOptions struct { } ``` IntegrationRuntimesClientListAuthKeysOptions contains the optional parameters for the IntegrationRuntimesClient.ListAuthKeys method. #### type [IntegrationRuntimesClientListAuthKeysResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L228) [¶](#IntegrationRuntimesClientListAuthKeysResponse) added in v0.2.0 ``` type IntegrationRuntimesClientListAuthKeysResponse struct { [IntegrationRuntimeAuthKeys](#IntegrationRuntimeAuthKeys) } ``` IntegrationRuntimesClientListAuthKeysResponse contains the response from method IntegrationRuntimesClient.ListAuthKeys. #### type [IntegrationRuntimesClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15919) [¶](#IntegrationRuntimesClientListByFactoryOptions) added in v0.2.0 ``` type IntegrationRuntimesClientListByFactoryOptions struct { } ``` IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.ListByFactory method. #### type [IntegrationRuntimesClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L233) [¶](#IntegrationRuntimesClientListByFactoryResponse) added in v0.2.0 ``` type IntegrationRuntimesClientListByFactoryResponse struct { [IntegrationRuntimeListResponse](#IntegrationRuntimeListResponse) } ``` IntegrationRuntimesClientListByFactoryResponse contains the response from method IntegrationRuntimesClient.ListByFactory. #### type [IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15925) [¶](#IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions) added in v0.2.0 ``` type IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions struct { } ``` IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints method. #### type [IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L238) [¶](#IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse) added in v0.2.0 ``` type IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse struct { [IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse](#IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) } ``` IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse contains the response from method IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints. #### type [IntegrationRuntimesClientRegenerateAuthKeyOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15931) [¶](#IntegrationRuntimesClientRegenerateAuthKeyOptions) added in v0.2.0 ``` type IntegrationRuntimesClientRegenerateAuthKeyOptions struct { } ``` IntegrationRuntimesClientRegenerateAuthKeyOptions contains the optional parameters for the IntegrationRuntimesClient.RegenerateAuthKey method. #### type [IntegrationRuntimesClientRegenerateAuthKeyResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L243) [¶](#IntegrationRuntimesClientRegenerateAuthKeyResponse) added in v0.2.0 ``` type IntegrationRuntimesClientRegenerateAuthKeyResponse struct { [IntegrationRuntimeAuthKeys](#IntegrationRuntimeAuthKeys) } ``` IntegrationRuntimesClientRegenerateAuthKeyResponse contains the response from method IntegrationRuntimesClient.RegenerateAuthKey. #### type [IntegrationRuntimesClientRemoveLinksOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15937) [¶](#IntegrationRuntimesClientRemoveLinksOptions) added in v0.2.0 ``` type IntegrationRuntimesClientRemoveLinksOptions struct { } ``` IntegrationRuntimesClientRemoveLinksOptions contains the optional parameters for the IntegrationRuntimesClient.RemoveLinks method. #### type [IntegrationRuntimesClientRemoveLinksResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L248) [¶](#IntegrationRuntimesClientRemoveLinksResponse) added in v0.2.0 ``` type IntegrationRuntimesClientRemoveLinksResponse struct { } ``` IntegrationRuntimesClientRemoveLinksResponse contains the response from method IntegrationRuntimesClient.RemoveLinks. #### type [IntegrationRuntimesClientStartResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L253) [¶](#IntegrationRuntimesClientStartResponse) added in v0.2.0 ``` type IntegrationRuntimesClientStartResponse struct { [IntegrationRuntimeStatusResponse](#IntegrationRuntimeStatusResponse) } ``` IntegrationRuntimesClientStartResponse contains the response from method IntegrationRuntimesClient.Start. #### type [IntegrationRuntimesClientStopResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L258) [¶](#IntegrationRuntimesClientStopResponse) added in v0.2.0 ``` type IntegrationRuntimesClientStopResponse struct { } ``` IntegrationRuntimesClientStopResponse contains the response from method IntegrationRuntimesClient.Stop. #### type [IntegrationRuntimesClientSyncCredentialsOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15943) [¶](#IntegrationRuntimesClientSyncCredentialsOptions) added in v0.2.0 ``` type IntegrationRuntimesClientSyncCredentialsOptions struct { } ``` IntegrationRuntimesClientSyncCredentialsOptions contains the optional parameters for the IntegrationRuntimesClient.SyncCredentials method. #### type [IntegrationRuntimesClientSyncCredentialsResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L263) [¶](#IntegrationRuntimesClientSyncCredentialsResponse) added in v0.2.0 ``` type IntegrationRuntimesClientSyncCredentialsResponse struct { } ``` IntegrationRuntimesClientSyncCredentialsResponse contains the response from method IntegrationRuntimesClient.SyncCredentials. #### type [IntegrationRuntimesClientUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15948) [¶](#IntegrationRuntimesClientUpdateOptions) added in v0.2.0 ``` type IntegrationRuntimesClientUpdateOptions struct { } ``` IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update method. #### type [IntegrationRuntimesClientUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L268) [¶](#IntegrationRuntimesClientUpdateResponse) added in v0.2.0 ``` type IntegrationRuntimesClientUpdateResponse struct { [IntegrationRuntimeResource](#IntegrationRuntimeResource) } ``` IntegrationRuntimesClientUpdateResponse contains the response from method IntegrationRuntimesClient.Update. #### type [IntegrationRuntimesClientUpgradeOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15953) [¶](#IntegrationRuntimesClientUpgradeOptions) added in v0.2.0 ``` type IntegrationRuntimesClientUpgradeOptions struct { } ``` IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade method. #### type [IntegrationRuntimesClientUpgradeResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L273) [¶](#IntegrationRuntimesClientUpgradeResponse) added in v0.2.0 ``` type IntegrationRuntimesClientUpgradeResponse struct { } ``` IntegrationRuntimesClientUpgradeResponse contains the response from method IntegrationRuntimesClient.Upgrade. #### type [JSONDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15958) [¶](#JSONDataset) ``` type JSONDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Json dataset properties. TypeProperties *[JSONDatasetTypeProperties](#JSONDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` JSONDataset - Json dataset. #### func (*JSONDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L15992) [¶](#JSONDataset.GetDataset) added in v0.2.0 ``` func (j *[JSONDataset](#JSONDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type JSONDataset. #### func (JSONDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27184) [¶](#JSONDataset.MarshalJSON) ``` func (j [JSONDataset](#JSONDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JSONDataset. #### func (*JSONDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27204) [¶](#JSONDataset.UnmarshalJSON) ``` func (j *[JSONDataset](#JSONDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JSONDataset. #### type [JSONDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16007) [¶](#JSONDatasetTypeProperties) ``` type JSONDatasetTypeProperties struct { // REQUIRED; The location of the json data storage. Location [DatasetLocationClassification](#DatasetLocationClassification) `json:"location,omitempty"` // The data compression method used for the json dataset. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // The code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another // Unicode encoding. Refer to the name column of the table in the following link to // set supported values: <https://msdn.microsoft.com/library/system.text.encoding.aspx>. Type: string (or Expression with resultType // string). EncodingName interface{} `json:"encodingName,omitempty"` } ``` JSONDatasetTypeProperties - Json dataset properties. #### func (JSONDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27258) [¶](#JSONDatasetTypeProperties.MarshalJSON) ``` func (j [JSONDatasetTypeProperties](#JSONDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JSONDatasetTypeProperties. #### func (*JSONDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27267) [¶](#JSONDatasetTypeProperties.UnmarshalJSON) ``` func (j *[JSONDatasetTypeProperties](#JSONDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JSONDatasetTypeProperties. #### type [JSONFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16022) [¶](#JSONFormat) ``` type JSONFormat struct { // REQUIRED; Type of dataset storage format. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Deserializer. Type: string (or Expression with resultType string). Deserializer interface{} `json:"deserializer,omitempty"` // The code page name of the preferred encoding. If not provided, the default value is 'utf-8', unless the byte order mark // (BOM) denotes another Unicode encoding. The full list of supported values can be // found in the 'Name' column of the table of encodings in the following reference: <https://go.microsoft.com/fwlink/?linkid=861078>. // Type: string (or Expression with resultType string). EncodingName interface{} `json:"encodingName,omitempty"` // File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. The default value is 'setOfObjects'. // It is case-sensitive. FilePattern interface{} `json:"filePattern,omitempty"` // The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType // string). JSONNodeReference interface{} `json:"jsonNodeReference,omitempty"` // The JSONPath definition for each column mapping with a customized column name to extract data from JSON file. For fields // under root object, start with "$"; for fields inside the array chosen by // jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. // Type: object (or Expression with resultType object). JSONPathDefinition interface{} `json:"jsonPathDefinition,omitempty"` // The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType // string). NestingSeparator interface{} `json:"nestingSeparator,omitempty"` // Serializer. Type: string (or Expression with resultType string). Serializer interface{} `json:"serializer,omitempty"` } ``` JSONFormat - The data stored in JSON format. #### func (*JSONFormat) [GetDatasetStorageFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16061) [¶](#JSONFormat.GetDatasetStorageFormat) added in v0.2.0 ``` func (j *[JSONFormat](#JSONFormat)) GetDatasetStorageFormat() *[DatasetStorageFormat](#DatasetStorageFormat) ``` GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type JSONFormat. #### func (JSONFormat) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27293) [¶](#JSONFormat.MarshalJSON) ``` func (j [JSONFormat](#JSONFormat)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JSONFormat. #### func (*JSONFormat) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27312) [¶](#JSONFormat.UnmarshalJSON) ``` func (j *[JSONFormat](#JSONFormat)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JSONFormat. #### type [JSONFormatFilePattern](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L949) [¶](#JSONFormatFilePattern) ``` type JSONFormatFilePattern [string](/builtin#string) ``` JSONFormatFilePattern - JSON format file pattern. A property of JsonFormat. ``` const ( JSONFormatFilePatternArrayOfObjects [JSONFormatFilePattern](#JSONFormatFilePattern) = "arrayOfObjects" JSONFormatFilePatternSetOfObjects [JSONFormatFilePattern](#JSONFormatFilePattern) = "setOfObjects" ) ``` #### func [PossibleJSONFormatFilePatternValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L957) [¶](#PossibleJSONFormatFilePatternValues) ``` func PossibleJSONFormatFilePatternValues() [][JSONFormatFilePattern](#JSONFormatFilePattern) ``` PossibleJSONFormatFilePatternValues returns the possible values for the JSONFormatFilePattern const type. #### type [JSONReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16071) [¶](#JSONReadSettings) ``` type JSONReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Compression settings. CompressionProperties [CompressionReadSettingsClassification](#CompressionReadSettingsClassification) `json:"compressionProperties,omitempty"` } ``` JSONReadSettings - Json read settings. #### func (*JSONReadSettings) [GetFormatReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16083) [¶](#JSONReadSettings.GetFormatReadSettings) added in v0.2.0 ``` func (j *[JSONReadSettings](#JSONReadSettings)) GetFormatReadSettings() *[FormatReadSettings](#FormatReadSettings) ``` GetFormatReadSettings implements the FormatReadSettingsClassification interface for type JSONReadSettings. #### func (JSONReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27363) [¶](#JSONReadSettings.MarshalJSON) ``` func (j [JSONReadSettings](#JSONReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JSONReadSettings. #### func (*JSONReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27376) [¶](#JSONReadSettings.UnmarshalJSON) ``` func (j *[JSONReadSettings](#JSONReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JSONReadSettings. #### type [JSONSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16091) [¶](#JSONSink) ``` type JSONSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Json format settings. FormatSettings *[JSONWriteSettings](#JSONWriteSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Json store settings. StoreSettings [StoreWriteSettingsClassification](#StoreWriteSettingsClassification) `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` JSONSink - A copy activity Json sink. #### func (*JSONSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16124) [¶](#JSONSink.GetCopySink) added in v0.2.0 ``` func (j *[JSONSink](#JSONSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type JSONSink. #### func (JSONSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27409) [¶](#JSONSink.MarshalJSON) ``` func (j [JSONSink](#JSONSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JSONSink. #### func (*JSONSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27429) [¶](#JSONSink.UnmarshalJSON) ``` func (j *[JSONSink](#JSONSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JSONSink. #### type [JSONSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16138) [¶](#JSONSource) ``` type JSONSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Json format settings. FormatSettings *[JSONReadSettings](#JSONReadSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Json store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` JSONSource - A copy activity Json source. #### func (*JSONSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16169) [¶](#JSONSource.GetCopySource) added in v0.2.0 ``` func (j *[JSONSource](#JSONSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type JSONSource. #### func (JSONSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27483) [¶](#JSONSource.MarshalJSON) ``` func (j [JSONSource](#JSONSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JSONSource. #### func (*JSONSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27502) [¶](#JSONSource.UnmarshalJSON) ``` func (j *[JSONSource](#JSONSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JSONSource. #### type [JSONWriteFilePattern](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L965) [¶](#JSONWriteFilePattern) ``` type JSONWriteFilePattern [string](/builtin#string) ``` JSONWriteFilePattern - All available filePatterns. ``` const ( JSONWriteFilePatternArrayOfObjects [JSONWriteFilePattern](#JSONWriteFilePattern) = "arrayOfObjects" JSONWriteFilePatternSetOfObjects [JSONWriteFilePattern](#JSONWriteFilePattern) = "setOfObjects" ) ``` #### func [PossibleJSONWriteFilePatternValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L973) [¶](#PossibleJSONWriteFilePatternValues) ``` func PossibleJSONWriteFilePatternValues() [][JSONWriteFilePattern](#JSONWriteFilePattern) ``` PossibleJSONWriteFilePatternValues returns the possible values for the JSONWriteFilePattern const type. #### type [JSONWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16181) [¶](#JSONWriteSettings) ``` type JSONWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is // 'setOfObjects'. It is case-sensitive. FilePattern interface{} `json:"filePattern,omitempty"` } ``` JSONWriteSettings - Json write settings. #### func (*JSONWriteSettings) [GetFormatWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16194) [¶](#JSONWriteSettings.GetFormatWriteSettings) added in v0.2.0 ``` func (j *[JSONWriteSettings](#JSONWriteSettings)) GetFormatWriteSettings() *[FormatWriteSettings](#FormatWriteSettings) ``` GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type JSONWriteSettings. #### func (JSONWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27553) [¶](#JSONWriteSettings.MarshalJSON) ``` func (j [JSONWriteSettings](#JSONWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JSONWriteSettings. #### func (*JSONWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27566) [¶](#JSONWriteSettings.UnmarshalJSON) ``` func (j *[JSONWriteSettings](#JSONWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JSONWriteSettings. #### type [JiraLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16202) [¶](#JiraLinkedService) ``` type JiraLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Jira Service linked service properties. TypeProperties *[JiraLinkedServiceTypeProperties](#JiraLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` JiraLinkedService - Jira Service linked service. #### func (*JiraLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16226) [¶](#JiraLinkedService.GetLinkedService) added in v0.2.0 ``` func (j *[JiraLinkedService](#JiraLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type JiraLinkedService. #### func (JiraLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27599) [¶](#JiraLinkedService.MarshalJSON) ``` func (j [JiraLinkedService](#JiraLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JiraLinkedService. #### func (*JiraLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27616) [¶](#JiraLinkedService.UnmarshalJSON) ``` func (j *[JiraLinkedService](#JiraLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JiraLinkedService. #### type [JiraLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16238) [¶](#JiraLinkedServiceTypeProperties) ``` type JiraLinkedServiceTypeProperties struct { // REQUIRED; The IP address or host name of the Jira service. (e.g. jira.example.com) Host interface{} `json:"host,omitempty"` // REQUIRED; The user name that you use to access Jira Service. Username interface{} `json:"username,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password corresponding to the user name that you provided in the username field. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port that the Jira server uses to listen for client connections. The default value is 443 if connecting through // HTTPS, or 8080 if connecting through HTTP. Port interface{} `json:"port,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` JiraLinkedServiceTypeProperties - Jira Service linked service properties. #### func (JiraLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27661) [¶](#JiraLinkedServiceTypeProperties.MarshalJSON) ``` func (j [JiraLinkedServiceTypeProperties](#JiraLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JiraLinkedServiceTypeProperties. #### func (*JiraLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27675) [¶](#JiraLinkedServiceTypeProperties.UnmarshalJSON) ``` func (j *[JiraLinkedServiceTypeProperties](#JiraLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JiraLinkedServiceTypeProperties. #### type [JiraObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16268) [¶](#JiraObjectDataset) ``` type JiraObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` JiraObjectDataset - Jira Service dataset. #### func (*JiraObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16302) [¶](#JiraObjectDataset.GetDataset) added in v0.2.0 ``` func (j *[JiraObjectDataset](#JiraObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type JiraObjectDataset. #### func (JiraObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27716) [¶](#JiraObjectDataset.MarshalJSON) ``` func (j [JiraObjectDataset](#JiraObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JiraObjectDataset. #### func (*JiraObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27736) [¶](#JiraObjectDataset.UnmarshalJSON) ``` func (j *[JiraObjectDataset](#JiraObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JiraObjectDataset. #### type [JiraSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16317) [¶](#JiraSource) ``` type JiraSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` JiraSource - A copy activity Jira Service source. #### func (*JiraSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16348) [¶](#JiraSource.GetCopySource) added in v0.2.0 ``` func (j *[JiraSource](#JiraSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type JiraSource. #### func (*JiraSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16360) [¶](#JiraSource.GetTabularSource) added in v0.2.0 ``` func (j *[JiraSource](#JiraSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type JiraSource. #### func (JiraSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27790) [¶](#JiraSource.MarshalJSON) ``` func (j [JiraSource](#JiraSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type JiraSource. #### func (*JiraSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27809) [¶](#JiraSource.UnmarshalJSON) ``` func (j *[JiraSource](#JiraSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type JiraSource. #### type [LicensedComponentSetupTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16374) [¶](#LicensedComponentSetupTypeProperties) ``` type LicensedComponentSetupTypeProperties struct { // REQUIRED; The name of the 3rd party component. ComponentName *[string](/builtin#string) `json:"componentName,omitempty"` // The license key to activate the component. LicenseKey [SecretBaseClassification](#SecretBaseClassification) `json:"licenseKey,omitempty"` } ``` LicensedComponentSetupTypeProperties - Installation of licensed component setup type properties. #### func (LicensedComponentSetupTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27860) [¶](#LicensedComponentSetupTypeProperties.MarshalJSON) ``` func (l [LicensedComponentSetupTypeProperties](#LicensedComponentSetupTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LicensedComponentSetupTypeProperties. #### func (*LicensedComponentSetupTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27868) [¶](#LicensedComponentSetupTypeProperties.UnmarshalJSON) ``` func (l *[LicensedComponentSetupTypeProperties](#LicensedComponentSetupTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LicensedComponentSetupTypeProperties. #### type [LinkedIntegrationRuntime](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16383) [¶](#LinkedIntegrationRuntime) ``` type LinkedIntegrationRuntime struct { // READ-ONLY; The creating time of the linked integration runtime. CreateTime *[time](/time).[Time](/time#Time) `json:"createTime,omitempty" azure:"ro"` // READ-ONLY; The location of the data factory for which the linked integration runtime belong to. DataFactoryLocation *[string](/builtin#string) `json:"dataFactoryLocation,omitempty" azure:"ro"` // READ-ONLY; The name of the data factory for which the linked integration runtime belong to. DataFactoryName *[string](/builtin#string) `json:"dataFactoryName,omitempty" azure:"ro"` // READ-ONLY; The name of the linked integration runtime. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The subscription ID for which the linked integration runtime belong to. SubscriptionID *[string](/builtin#string) `json:"subscriptionId,omitempty" azure:"ro"` } ``` LinkedIntegrationRuntime - The linked integration runtime information. #### func (LinkedIntegrationRuntime) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27891) [¶](#LinkedIntegrationRuntime.MarshalJSON) ``` func (l [LinkedIntegrationRuntime](#LinkedIntegrationRuntime)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntime. #### func (*LinkedIntegrationRuntime) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27902) [¶](#LinkedIntegrationRuntime.UnmarshalJSON) ``` func (l *[LinkedIntegrationRuntime](#LinkedIntegrationRuntime)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntime. #### type [LinkedIntegrationRuntimeKeyAuthorization](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16401) [¶](#LinkedIntegrationRuntimeKeyAuthorization) ``` type LinkedIntegrationRuntimeKeyAuthorization struct { // REQUIRED; The authorization type for integration runtime sharing. AuthorizationType *[string](/builtin#string) `json:"authorizationType,omitempty"` // REQUIRED; The key used for authorization. Key *[SecureString](#SecureString) `json:"key,omitempty"` } ``` LinkedIntegrationRuntimeKeyAuthorization - The key authorization type integration runtime. #### func (*LinkedIntegrationRuntimeKeyAuthorization) [GetLinkedIntegrationRuntimeType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16410) [¶](#LinkedIntegrationRuntimeKeyAuthorization.GetLinkedIntegrationRuntimeType) added in v0.2.0 ``` func (l *[LinkedIntegrationRuntimeKeyAuthorization](#LinkedIntegrationRuntimeKeyAuthorization)) GetLinkedIntegrationRuntimeType() *[LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType) ``` GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeKeyAuthorization. #### func (LinkedIntegrationRuntimeKeyAuthorization) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27934) [¶](#LinkedIntegrationRuntimeKeyAuthorization.MarshalJSON) ``` func (l [LinkedIntegrationRuntimeKeyAuthorization](#LinkedIntegrationRuntimeKeyAuthorization)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeKeyAuthorization. #### func (*LinkedIntegrationRuntimeKeyAuthorization) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27942) [¶](#LinkedIntegrationRuntimeKeyAuthorization.UnmarshalJSON) ``` func (l *[LinkedIntegrationRuntimeKeyAuthorization](#LinkedIntegrationRuntimeKeyAuthorization)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeKeyAuthorization. #### type [LinkedIntegrationRuntimeRbacAuthorization](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16417) [¶](#LinkedIntegrationRuntimeRbacAuthorization) ``` type LinkedIntegrationRuntimeRbacAuthorization struct { // REQUIRED; The authorization type for integration runtime sharing. AuthorizationType *[string](/builtin#string) `json:"authorizationType,omitempty"` // REQUIRED; The resource identifier of the integration runtime to be shared. ResourceID *[string](/builtin#string) `json:"resourceId,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` } ``` LinkedIntegrationRuntimeRbacAuthorization - The role based access control (RBAC) authorization type integration runtime. #### func (*LinkedIntegrationRuntimeRbacAuthorization) [GetLinkedIntegrationRuntimeType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16429) [¶](#LinkedIntegrationRuntimeRbacAuthorization.GetLinkedIntegrationRuntimeType) added in v0.2.0 ``` func (l *[LinkedIntegrationRuntimeRbacAuthorization](#LinkedIntegrationRuntimeRbacAuthorization)) GetLinkedIntegrationRuntimeType() *[LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType) ``` GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeRbacAuthorization. #### func (LinkedIntegrationRuntimeRbacAuthorization) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27965) [¶](#LinkedIntegrationRuntimeRbacAuthorization.MarshalJSON) ``` func (l [LinkedIntegrationRuntimeRbacAuthorization](#LinkedIntegrationRuntimeRbacAuthorization)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRbacAuthorization. #### func (*LinkedIntegrationRuntimeRbacAuthorization) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L27974) [¶](#LinkedIntegrationRuntimeRbacAuthorization.UnmarshalJSON) ``` func (l *[LinkedIntegrationRuntimeRbacAuthorization](#LinkedIntegrationRuntimeRbacAuthorization)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeRbacAuthorization. #### type [LinkedIntegrationRuntimeRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16436) [¶](#LinkedIntegrationRuntimeRequest) ``` type LinkedIntegrationRuntimeRequest struct { // REQUIRED; The data factory name for linked integration runtime. LinkedFactoryName *[string](/builtin#string) `json:"factoryName,omitempty"` } ``` LinkedIntegrationRuntimeRequest - Data factory name for linked integration runtime request. #### func (LinkedIntegrationRuntimeRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28000) [¶](#LinkedIntegrationRuntimeRequest.MarshalJSON) added in v1.3.0 ``` func (l [LinkedIntegrationRuntimeRequest](#LinkedIntegrationRuntimeRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRequest. #### func (*LinkedIntegrationRuntimeRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28007) [¶](#LinkedIntegrationRuntimeRequest.UnmarshalJSON) added in v1.3.0 ``` func (l *[LinkedIntegrationRuntimeRequest](#LinkedIntegrationRuntimeRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeRequest. #### type [LinkedIntegrationRuntimeType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16451) [¶](#LinkedIntegrationRuntimeType) ``` type LinkedIntegrationRuntimeType struct { // REQUIRED; The authorization type for integration runtime sharing. AuthorizationType *[string](/builtin#string) `json:"authorizationType,omitempty"` } ``` LinkedIntegrationRuntimeType - The base definition of a linked integration runtime. #### func (*LinkedIntegrationRuntimeType) [GetLinkedIntegrationRuntimeType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16457) [¶](#LinkedIntegrationRuntimeType.GetLinkedIntegrationRuntimeType) ``` func (l *[LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType)) GetLinkedIntegrationRuntimeType() *[LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType) ``` GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeType. #### func (LinkedIntegrationRuntimeType) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28027) [¶](#LinkedIntegrationRuntimeType.MarshalJSON) added in v1.3.0 ``` func (l [LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeType. #### func (*LinkedIntegrationRuntimeType) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28034) [¶](#LinkedIntegrationRuntimeType.UnmarshalJSON) ``` func (l *[LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeType. #### type [LinkedIntegrationRuntimeTypeClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16445) [¶](#LinkedIntegrationRuntimeTypeClassification) ``` type LinkedIntegrationRuntimeTypeClassification interface { // GetLinkedIntegrationRuntimeType returns the LinkedIntegrationRuntimeType content of the underlying type. GetLinkedIntegrationRuntimeType() *[LinkedIntegrationRuntimeType](#LinkedIntegrationRuntimeType) } ``` LinkedIntegrationRuntimeTypeClassification provides polymorphic access to related types. Call the interface's GetLinkedIntegrationRuntimeType() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *LinkedIntegrationRuntimeKeyAuthorization, *LinkedIntegrationRuntimeRbacAuthorization, *LinkedIntegrationRuntimeType #### type [LinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16495) [¶](#LinkedService) ``` type LinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` LinkedService - The nested object which contains the information and credential which can be used to connect with related store or compute resource. #### func (*LinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16516) [¶](#LinkedService.GetLinkedService) ``` func (l *[LinkedService](#LinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type LinkedService. #### func (LinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28054) [¶](#LinkedService.MarshalJSON) added in v0.2.0 ``` func (l [LinkedService](#LinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedService. #### func (*LinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28070) [¶](#LinkedService.UnmarshalJSON) ``` func (l *[LinkedService](#LinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedService. #### type [LinkedServiceClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16488) [¶](#LinkedServiceClassification) ``` type LinkedServiceClassification interface { // GetLinkedService returns the LinkedService content of the underlying type. GetLinkedService() *[LinkedService](#LinkedService) } ``` LinkedServiceClassification provides polymorphic access to related types. Call the interface's GetLinkedService() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AmazonMWSLinkedService, *AmazonRdsForOracleLinkedService, *AmazonRdsForSQLServerLinkedService, *AmazonRedshiftLinkedService, - *AmazonS3CompatibleLinkedService, *AmazonS3LinkedService, *AppFiguresLinkedService, *AsanaLinkedService, *AzureBatchLinkedService, - *AzureBlobFSLinkedService, *AzureBlobStorageLinkedService, *AzureDataExplorerLinkedService, *AzureDataLakeAnalyticsLinkedService, - *AzureDataLakeStoreLinkedService, *AzureDatabricksDeltaLakeLinkedService, *AzureDatabricksLinkedService, *AzureFileStorageLinkedService, - *AzureFunctionLinkedService, *AzureKeyVaultLinkedService, *AzureMLLinkedService, *AzureMLServiceLinkedService, *AzureMariaDBLinkedService, - *AzureMySQLLinkedService, *AzurePostgreSQLLinkedService, *AzureSQLDWLinkedService, *AzureSQLDatabaseLinkedService, *AzureSQLMILinkedService, - *AzureSearchLinkedService, *AzureStorageLinkedService, *AzureSynapseArtifactsLinkedService, *AzureTableStorageLinkedService, - *CassandraLinkedService, *CommonDataServiceForAppsLinkedService, *ConcurLinkedService, *CosmosDbLinkedService, *CosmosDbMongoDbAPILinkedService, - *CouchbaseLinkedService, *CustomDataSourceLinkedService, *DataworldLinkedService, *Db2LinkedService, *DrillLinkedService, - *DynamicsAXLinkedService, *DynamicsCrmLinkedService, *DynamicsLinkedService, *EloquaLinkedService, *FileServerLinkedService, - *FtpServerLinkedService, *GoogleAdWordsLinkedService, *GoogleBigQueryLinkedService, *GoogleCloudStorageLinkedService, - *GoogleSheetsLinkedService, *GreenplumLinkedService, *HBaseLinkedService, *HDInsightLinkedService, *HDInsightOnDemandLinkedService, - *HTTPLinkedService, *HdfsLinkedService, *HiveLinkedService, *HubspotLinkedService, *ImpalaLinkedService, *InformixLinkedService, - *JiraLinkedService, *LinkedService, *MagentoLinkedService, *MariaDBLinkedService, *MarketoLinkedService, *MicrosoftAccessLinkedService, - *MongoDbAtlasLinkedService, *MongoDbLinkedService, *MongoDbV2LinkedService, *MySQLLinkedService, *NetezzaLinkedService, - *ODataLinkedService, *OdbcLinkedService, *Office365LinkedService, *OracleCloudStorageLinkedService, *OracleLinkedService, - *OracleServiceCloudLinkedService, *PaypalLinkedService, *PhoenixLinkedService, *PostgreSQLLinkedService, *PrestoLinkedService, - *QuickBooksLinkedService, *QuickbaseLinkedService, *ResponsysLinkedService, *RestServiceLinkedService, *SQLServerLinkedService, - *SalesforceLinkedService, *SalesforceMarketingCloudLinkedService, *SalesforceServiceCloudLinkedService, *SapBWLinkedService, - *SapCloudForCustomerLinkedService, *SapEccLinkedService, *SapHanaLinkedService, *SapOdpLinkedService, *SapOpenHubLinkedService, - *SapTableLinkedService, *ServiceNowLinkedService, *SftpServerLinkedService, *SharePointOnlineListLinkedService, *ShopifyLinkedService, - *SmartsheetLinkedService, *SnowflakeLinkedService, *SparkLinkedService, *SquareLinkedService, *SybaseLinkedService, *TeamDeskLinkedService, - *TeradataLinkedService, *TwilioLinkedService, *VerticaLinkedService, *WebLinkedService, *XeroLinkedService, *ZendeskLinkedService, - *ZohoLinkedService #### type [LinkedServiceDebugResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16519) [¶](#LinkedServiceDebugResource) ``` type LinkedServiceDebugResource struct { // REQUIRED; Properties of linked service. Properties [LinkedServiceClassification](#LinkedServiceClassification) `json:"properties,omitempty"` // The resource name. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` LinkedServiceDebugResource - Linked service debug resource. #### func (LinkedServiceDebugResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28112) [¶](#LinkedServiceDebugResource.MarshalJSON) ``` func (l [LinkedServiceDebugResource](#LinkedServiceDebugResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedServiceDebugResource. #### func (*LinkedServiceDebugResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28120) [¶](#LinkedServiceDebugResource.UnmarshalJSON) ``` func (l *[LinkedServiceDebugResource](#LinkedServiceDebugResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedServiceDebugResource. #### type [LinkedServiceListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16528) [¶](#LinkedServiceListResponse) ``` type LinkedServiceListResponse struct { // REQUIRED; List of linked services. Value []*[LinkedServiceResource](#LinkedServiceResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` LinkedServiceListResponse - A list of linked service resources. #### func (LinkedServiceListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28143) [¶](#LinkedServiceListResponse.MarshalJSON) ``` func (l [LinkedServiceListResponse](#LinkedServiceListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedServiceListResponse. #### func (*LinkedServiceListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28151) [¶](#LinkedServiceListResponse.UnmarshalJSON) added in v1.3.0 ``` func (l *[LinkedServiceListResponse](#LinkedServiceListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedServiceListResponse. #### type [LinkedServiceReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16537) [¶](#LinkedServiceReference) ``` type LinkedServiceReference struct { // REQUIRED; Reference LinkedService name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Linked service reference type. Type *[LinkedServiceReferenceType](#LinkedServiceReferenceType) `json:"type,omitempty"` // Arguments for LinkedService. Parameters map[[string](/builtin#string)]interface{} `json:"parameters,omitempty"` } ``` LinkedServiceReference - Linked service reference type. #### func (LinkedServiceReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28174) [¶](#LinkedServiceReference.MarshalJSON) ``` func (l [LinkedServiceReference](#LinkedServiceReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedServiceReference. #### func (*LinkedServiceReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28183) [¶](#LinkedServiceReference.UnmarshalJSON) added in v1.3.0 ``` func (l *[LinkedServiceReference](#LinkedServiceReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedServiceReference. #### type [LinkedServiceReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L981) [¶](#LinkedServiceReferenceType) ``` type LinkedServiceReferenceType [string](/builtin#string) ``` LinkedServiceReferenceType - Linked service reference type. ``` const ( LinkedServiceReferenceTypeLinkedServiceReference [LinkedServiceReferenceType](#LinkedServiceReferenceType) = "LinkedServiceReference" ) ``` #### func [PossibleLinkedServiceReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L988) [¶](#PossibleLinkedServiceReferenceTypeValues) ``` func PossibleLinkedServiceReferenceTypeValues() [][LinkedServiceReferenceType](#LinkedServiceReferenceType) ``` PossibleLinkedServiceReferenceTypeValues returns the possible values for the LinkedServiceReferenceType const type. #### type [LinkedServiceResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16549) [¶](#LinkedServiceResource) ``` type LinkedServiceResource struct { // REQUIRED; Properties of linked service. Properties [LinkedServiceClassification](#LinkedServiceClassification) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` LinkedServiceResource - Linked service resource type. #### func (LinkedServiceResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28209) [¶](#LinkedServiceResource.MarshalJSON) ``` func (l [LinkedServiceResource](#LinkedServiceResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LinkedServiceResource. #### func (*LinkedServiceResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28220) [¶](#LinkedServiceResource.UnmarshalJSON) ``` func (l *[LinkedServiceResource](#LinkedServiceResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LinkedServiceResource. #### type [LinkedServicesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go#L28) [¶](#LinkedServicesClient) ``` type LinkedServicesClient struct { // contains filtered or unexported fields } ``` LinkedServicesClient contains the methods for the LinkedServices group. Don't use this type directly, use NewLinkedServicesClient() instead. #### func [NewLinkedServicesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go#L38) [¶](#NewLinkedServicesClient) ``` func NewLinkedServicesClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[LinkedServicesClient](#LinkedServicesClient), [error](/builtin#error)) ``` NewLinkedServicesClient creates a new instance of LinkedServicesClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*LinkedServicesClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go#L67) [¶](#LinkedServicesClient.CreateOrUpdate) ``` func (client *[LinkedServicesClient](#LinkedServicesClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), linkedServiceName [string](/builtin#string), linkedService [LinkedServiceResource](#LinkedServiceResource), options *[LinkedServicesClientCreateOrUpdateOptions](#LinkedServicesClientCreateOrUpdateOptions)) ([LinkedServicesClientCreateOrUpdateResponse](#LinkedServicesClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a linked service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. linkedServiceName - The linked service name. linkedService - Linked service resource definition. options - LinkedServicesClientCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.CreateOrUpdate method. Example (LinkedServicesCreate) [¶](#example-LinkedServicesClient.CreateOrUpdate-LinkedServicesCreate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", armdatafactory.LinkedServiceResource{ Properties: &armdatafactory.AzureStorageLinkedService{ Type: to.Ptr("AzureStorage"), TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ ConnectionString: map[string]interface{}{ "type": "SecureString", "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=<storage key>", }, }, }, }, &armdatafactory.LinkedServicesClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run Example (LinkedServicesUpdate) [¶](#example-LinkedServicesClient.CreateOrUpdate-LinkedServicesUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", armdatafactory.LinkedServiceResource{ Properties: &armdatafactory.AzureStorageLinkedService{ Type: to.Ptr("AzureStorage"), Description: to.Ptr("Example description"), TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ ConnectionString: map[string]interface{}{ "type": "SecureString", "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=<storage key>", }, }, }, }, &armdatafactory.LinkedServicesClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*LinkedServicesClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go#L131) [¶](#LinkedServicesClient.Delete) ``` func (client *[LinkedServicesClient](#LinkedServicesClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), linkedServiceName [string](/builtin#string), options *[LinkedServicesClientDeleteOptions](#LinkedServicesClientDeleteOptions)) ([LinkedServicesClientDeleteResponse](#LinkedServicesClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a linked service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. linkedServiceName - The linked service name. options - LinkedServicesClientDeleteOptions contains the optional parameters for the LinkedServicesClient.Delete method. Example [¶](#example-LinkedServicesClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*LinkedServicesClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go#L183) [¶](#LinkedServicesClient.Get) ``` func (client *[LinkedServicesClient](#LinkedServicesClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), linkedServiceName [string](/builtin#string), options *[LinkedServicesClientGetOptions](#LinkedServicesClientGetOptions)) ([LinkedServicesClientGetResponse](#LinkedServicesClientGetResponse), [error](/builtin#error)) ``` Get - Gets a linked service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. linkedServiceName - The linked service name. options - LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method. Example [¶](#example-LinkedServicesClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", &armdatafactory.LinkedServicesClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*LinkedServicesClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go#L247) [¶](#LinkedServicesClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[LinkedServicesClient](#LinkedServicesClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[LinkedServicesClientListByFactoryOptions](#LinkedServicesClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[LinkedServicesClientListByFactoryResponse](#LinkedServicesClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists linked services. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.ListByFactory method. Example [¶](#example-LinkedServicesClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [LinkedServicesClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16568) [¶](#LinkedServicesClientCreateOrUpdateOptions) added in v0.2.0 ``` type LinkedServicesClientCreateOrUpdateOptions struct { // ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can // be * for unconditional update. IfMatch *[string](/builtin#string) } ``` LinkedServicesClientCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.CreateOrUpdate method. #### type [LinkedServicesClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L278) [¶](#LinkedServicesClientCreateOrUpdateResponse) added in v0.2.0 ``` type LinkedServicesClientCreateOrUpdateResponse struct { [LinkedServiceResource](#LinkedServiceResource) } ``` LinkedServicesClientCreateOrUpdateResponse contains the response from method LinkedServicesClient.CreateOrUpdate. #### type [LinkedServicesClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16575) [¶](#LinkedServicesClientDeleteOptions) added in v0.2.0 ``` type LinkedServicesClientDeleteOptions struct { } ``` LinkedServicesClientDeleteOptions contains the optional parameters for the LinkedServicesClient.Delete method. #### type [LinkedServicesClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L283) [¶](#LinkedServicesClientDeleteResponse) added in v0.2.0 ``` type LinkedServicesClientDeleteResponse struct { } ``` LinkedServicesClientDeleteResponse contains the response from method LinkedServicesClient.Delete. #### type [LinkedServicesClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16580) [¶](#LinkedServicesClientGetOptions) added in v0.2.0 ``` type LinkedServicesClientGetOptions struct { // ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if // * was provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method. #### type [LinkedServicesClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L288) [¶](#LinkedServicesClientGetResponse) added in v0.2.0 ``` type LinkedServicesClientGetResponse struct { [LinkedServiceResource](#LinkedServiceResource) } ``` LinkedServicesClientGetResponse contains the response from method LinkedServicesClient.Get. #### type [LinkedServicesClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16587) [¶](#LinkedServicesClientListByFactoryOptions) added in v0.2.0 ``` type LinkedServicesClientListByFactoryOptions struct { } ``` LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.ListByFactory method. #### type [LinkedServicesClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L293) [¶](#LinkedServicesClientListByFactoryResponse) added in v0.2.0 ``` type LinkedServicesClientListByFactoryResponse struct { [LinkedServiceListResponse](#LinkedServiceListResponse) } ``` LinkedServicesClientListByFactoryResponse contains the response from method LinkedServicesClient.ListByFactory. #### type [LogLocationSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16592) [¶](#LogLocationSettings) ``` type LogLocationSettings struct { // REQUIRED; Log storage linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` LogLocationSettings - Log location settings. #### func (LogLocationSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28252) [¶](#LogLocationSettings.MarshalJSON) added in v1.3.0 ``` func (l [LogLocationSettings](#LogLocationSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LogLocationSettings. #### func (*LogLocationSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28260) [¶](#LogLocationSettings.UnmarshalJSON) added in v1.3.0 ``` func (l *[LogLocationSettings](#LogLocationSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LogLocationSettings. #### type [LogSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16601) [¶](#LogSettings) ``` type LogSettings struct { // REQUIRED; Log location settings customer needs to provide when enabling log. LogLocationSettings *[LogLocationSettings](#LogLocationSettings) `json:"logLocationSettings,omitempty"` // Specifies settings for copy activity log. CopyActivityLogSettings *[CopyActivityLogSettings](#CopyActivityLogSettings) `json:"copyActivityLogSettings,omitempty"` // Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean). EnableCopyActivityLog interface{} `json:"enableCopyActivityLog,omitempty"` } ``` LogSettings - Log settings. #### func (LogSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28283) [¶](#LogSettings.MarshalJSON) added in v1.3.0 ``` func (l [LogSettings](#LogSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LogSettings. #### func (*LogSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28292) [¶](#LogSettings.UnmarshalJSON) added in v1.3.0 ``` func (l *[LogSettings](#LogSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LogSettings. #### type [LogStorageSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16613) [¶](#LogStorageSettings) ``` type LogStorageSettings struct { // REQUIRED; Log storage linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` // Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). LogLevel interface{} `json:"logLevel,omitempty"` // The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` LogStorageSettings - (Deprecated. Please use LogSettings) Log storage settings. #### func (LogStorageSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28318) [¶](#LogStorageSettings.MarshalJSON) ``` func (l [LogStorageSettings](#LogStorageSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LogStorageSettings. #### func (*LogStorageSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28333) [¶](#LogStorageSettings.UnmarshalJSON) ``` func (l *[LogStorageSettings](#LogStorageSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LogStorageSettings. #### type [LookupActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16631) [¶](#LookupActivity) ``` type LookupActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Lookup activity properties. TypeProperties *[LookupActivityTypeProperties](#LookupActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` LookupActivity - Lookup activity. #### func (*LookupActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16661) [¶](#LookupActivity.GetActivity) added in v0.2.0 ``` func (l *[LookupActivity](#LookupActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type LookupActivity. #### func (*LookupActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16673) [¶](#LookupActivity.GetExecutionActivity) added in v0.2.0 ``` func (l *[LookupActivity](#LookupActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type LookupActivity. #### func (LookupActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28372) [¶](#LookupActivity.MarshalJSON) ``` func (l [LookupActivity](#LookupActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LookupActivity. #### func (*LookupActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28391) [¶](#LookupActivity.UnmarshalJSON) ``` func (l *[LookupActivity](#LookupActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LookupActivity. #### type [LookupActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16687) [¶](#LookupActivityTypeProperties) ``` type LookupActivityTypeProperties struct { // REQUIRED; Lookup activity dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // REQUIRED; Dataset-specific source properties, same as copy activity source. Source [CopySourceClassification](#CopySourceClassification) `json:"source,omitempty"` // Whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). FirstRowOnly interface{} `json:"firstRowOnly,omitempty"` } ``` LookupActivityTypeProperties - Lookup activity properties. #### func (LookupActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28442) [¶](#LookupActivityTypeProperties.MarshalJSON) ``` func (l [LookupActivityTypeProperties](#LookupActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type LookupActivityTypeProperties. #### func (*LookupActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28451) [¶](#LookupActivityTypeProperties.UnmarshalJSON) ``` func (l *[LookupActivityTypeProperties](#LookupActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type LookupActivityTypeProperties. #### type [MagentoLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16699) [¶](#MagentoLinkedService) ``` type MagentoLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Magento server linked service properties. TypeProperties *[MagentoLinkedServiceTypeProperties](#MagentoLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` MagentoLinkedService - Magento server linked service. #### func (*MagentoLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16723) [¶](#MagentoLinkedService.GetLinkedService) added in v0.2.0 ``` func (m *[MagentoLinkedService](#MagentoLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type MagentoLinkedService. #### func (MagentoLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28477) [¶](#MagentoLinkedService.MarshalJSON) ``` func (m [MagentoLinkedService](#MagentoLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MagentoLinkedService. #### func (*MagentoLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28494) [¶](#MagentoLinkedService.UnmarshalJSON) ``` func (m *[MagentoLinkedService](#MagentoLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MagentoLinkedService. #### type [MagentoLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16735) [¶](#MagentoLinkedServiceTypeProperties) ``` type MagentoLinkedServiceTypeProperties struct { // REQUIRED; The URL of the Magento instance. (i.e. 192.168.222.110/magento3) Host interface{} `json:"host,omitempty"` // The access token from Magento. AccessToken [SecretBaseClassification](#SecretBaseClassification) `json:"accessToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` MagentoLinkedServiceTypeProperties - Magento server linked service properties. #### func (MagentoLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28539) [¶](#MagentoLinkedServiceTypeProperties.MarshalJSON) ``` func (m [MagentoLinkedServiceTypeProperties](#MagentoLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MagentoLinkedServiceTypeProperties. #### func (*MagentoLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28551) [¶](#MagentoLinkedServiceTypeProperties.UnmarshalJSON) ``` func (m *[MagentoLinkedServiceTypeProperties](#MagentoLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MagentoLinkedServiceTypeProperties. #### type [MagentoObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16758) [¶](#MagentoObjectDataset) ``` type MagentoObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` MagentoObjectDataset - Magento server dataset. #### func (*MagentoObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16792) [¶](#MagentoObjectDataset.GetDataset) added in v0.2.0 ``` func (m *[MagentoObjectDataset](#MagentoObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type MagentoObjectDataset. #### func (MagentoObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28586) [¶](#MagentoObjectDataset.MarshalJSON) ``` func (m [MagentoObjectDataset](#MagentoObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MagentoObjectDataset. #### func (*MagentoObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28606) [¶](#MagentoObjectDataset.UnmarshalJSON) ``` func (m *[MagentoObjectDataset](#MagentoObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MagentoObjectDataset. #### type [MagentoSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16807) [¶](#MagentoSource) ``` type MagentoSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` MagentoSource - A copy activity Magento server source. #### func (*MagentoSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16838) [¶](#MagentoSource.GetCopySource) added in v0.2.0 ``` func (m *[MagentoSource](#MagentoSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type MagentoSource. #### func (*MagentoSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16850) [¶](#MagentoSource.GetTabularSource) added in v0.2.0 ``` func (m *[MagentoSource](#MagentoSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type MagentoSource. #### func (MagentoSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28660) [¶](#MagentoSource.MarshalJSON) ``` func (m [MagentoSource](#MagentoSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MagentoSource. #### func (*MagentoSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28679) [¶](#MagentoSource.UnmarshalJSON) ``` func (m *[MagentoSource](#MagentoSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MagentoSource. #### type [ManagedIdentityCredential](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16864) [¶](#ManagedIdentityCredential) added in v0.2.0 ``` type ManagedIdentityCredential struct { // REQUIRED; Type of credential. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Credential. Annotations []interface{} `json:"annotations,omitempty"` // Credential description. Description *[string](/builtin#string) `json:"description,omitempty"` // Managed identity credential properties. TypeProperties *[ManagedIdentityTypeProperties](#ManagedIdentityTypeProperties) `json:"typeProperties,omitempty"` } ``` ManagedIdentityCredential - Managed identity credential. #### func (*ManagedIdentityCredential) [GetCredential](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16882) [¶](#ManagedIdentityCredential.GetCredential) added in v0.2.0 ``` func (m *[ManagedIdentityCredential](#ManagedIdentityCredential)) GetCredential() *[Credential](#Credential) ``` GetCredential implements the CredentialClassification interface for type ManagedIdentityCredential. #### func (ManagedIdentityCredential) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28730) [¶](#ManagedIdentityCredential.MarshalJSON) added in v0.2.0 ``` func (m [ManagedIdentityCredential](#ManagedIdentityCredential)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIdentityCredential. #### func (*ManagedIdentityCredential) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28745) [¶](#ManagedIdentityCredential.UnmarshalJSON) added in v0.2.0 ``` func (m *[ManagedIdentityCredential](#ManagedIdentityCredential)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityCredential. #### type [ManagedIdentityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16892) [¶](#ManagedIdentityTypeProperties) added in v0.2.0 ``` type ManagedIdentityTypeProperties struct { // The resource id of user assigned managed identity ResourceID *[string](/builtin#string) `json:"resourceId,omitempty"` } ``` ManagedIdentityTypeProperties - Managed identity type properties. #### func (ManagedIdentityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28784) [¶](#ManagedIdentityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [ManagedIdentityTypeProperties](#ManagedIdentityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIdentityTypeProperties. #### func (*ManagedIdentityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28791) [¶](#ManagedIdentityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[ManagedIdentityTypeProperties](#ManagedIdentityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityTypeProperties. #### type [ManagedIntegrationRuntime](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16898) [¶](#ManagedIntegrationRuntime) ``` type ManagedIntegrationRuntime struct { // REQUIRED; Type of integration runtime. Type *[IntegrationRuntimeType](#IntegrationRuntimeType) `json:"type,omitempty"` // REQUIRED; Managed integration runtime properties. TypeProperties *[ManagedIntegrationRuntimeTypeProperties](#ManagedIntegrationRuntimeTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Integration runtime description. Description *[string](/builtin#string) `json:"description,omitempty"` // Managed Virtual Network reference. ManagedVirtualNetwork *[ManagedVirtualNetworkReference](#ManagedVirtualNetworkReference) `json:"managedVirtualNetwork,omitempty"` // READ-ONLY; Integration runtime state, only valid for managed dedicated integration runtime. State *[IntegrationRuntimeState](#IntegrationRuntimeState) `json:"state,omitempty" azure:"ro"` } ``` ManagedIntegrationRuntime - Managed integration runtime, including managed elastic and managed dedicated integration runtimes. #### func (*ManagedIntegrationRuntime) [GetIntegrationRuntime](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16919) [¶](#ManagedIntegrationRuntime.GetIntegrationRuntime) added in v0.2.0 ``` func (m *[ManagedIntegrationRuntime](#ManagedIntegrationRuntime)) GetIntegrationRuntime() *[IntegrationRuntime](#IntegrationRuntime) ``` GetIntegrationRuntime implements the IntegrationRuntimeClassification interface for type ManagedIntegrationRuntime. #### func (ManagedIntegrationRuntime) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28811) [¶](#ManagedIntegrationRuntime.MarshalJSON) ``` func (m [ManagedIntegrationRuntime](#ManagedIntegrationRuntime)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntime. #### func (*ManagedIntegrationRuntime) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28827) [¶](#ManagedIntegrationRuntime.UnmarshalJSON) ``` func (m *[ManagedIntegrationRuntime](#ManagedIntegrationRuntime)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntime. #### type [ManagedIntegrationRuntimeError](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16928) [¶](#ManagedIntegrationRuntimeError) ``` type ManagedIntegrationRuntimeError struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; Error code. Code *[string](/builtin#string) `json:"code,omitempty" azure:"ro"` // READ-ONLY; Error message. Message *[string](/builtin#string) `json:"message,omitempty" azure:"ro"` // READ-ONLY; Managed integration runtime error parameters. Parameters []*[string](/builtin#string) `json:"parameters,omitempty" azure:"ro"` // READ-ONLY; The time when the error occurred. Time *[time](/time).[Time](/time#Time) `json:"time,omitempty" azure:"ro"` } ``` ManagedIntegrationRuntimeError - Error definition for managed integration runtime. #### func (ManagedIntegrationRuntimeError) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28869) [¶](#ManagedIntegrationRuntimeError.MarshalJSON) ``` func (m [ManagedIntegrationRuntimeError](#ManagedIntegrationRuntimeError)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeError. #### func (*ManagedIntegrationRuntimeError) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28884) [¶](#ManagedIntegrationRuntimeError.UnmarshalJSON) ``` func (m *[ManagedIntegrationRuntimeError](#ManagedIntegrationRuntimeError)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeError. #### type [ManagedIntegrationRuntimeNode](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16946) [¶](#ManagedIntegrationRuntimeNode) ``` type ManagedIntegrationRuntimeNode struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The errors that occurred on this integration runtime node. Errors []*[ManagedIntegrationRuntimeError](#ManagedIntegrationRuntimeError) `json:"errors,omitempty"` // READ-ONLY; The managed integration runtime node id. NodeID *[string](/builtin#string) `json:"nodeId,omitempty" azure:"ro"` // READ-ONLY; The managed integration runtime node status. Status *[ManagedIntegrationRuntimeNodeStatus](#ManagedIntegrationRuntimeNodeStatus) `json:"status,omitempty" azure:"ro"` } ``` ManagedIntegrationRuntimeNode - Properties of integration runtime node. #### func (ManagedIntegrationRuntimeNode) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28923) [¶](#ManagedIntegrationRuntimeNode.MarshalJSON) ``` func (m [ManagedIntegrationRuntimeNode](#ManagedIntegrationRuntimeNode)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeNode. #### func (*ManagedIntegrationRuntimeNode) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28937) [¶](#ManagedIntegrationRuntimeNode.UnmarshalJSON) ``` func (m *[ManagedIntegrationRuntimeNode](#ManagedIntegrationRuntimeNode)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeNode. #### type [ManagedIntegrationRuntimeNodeStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L995) [¶](#ManagedIntegrationRuntimeNodeStatus) ``` type ManagedIntegrationRuntimeNodeStatus [string](/builtin#string) ``` ManagedIntegrationRuntimeNodeStatus - The managed integration runtime node status. ``` const ( ManagedIntegrationRuntimeNodeStatusAvailable [ManagedIntegrationRuntimeNodeStatus](#ManagedIntegrationRuntimeNodeStatus) = "Available" ManagedIntegrationRuntimeNodeStatusRecycling [ManagedIntegrationRuntimeNodeStatus](#ManagedIntegrationRuntimeNodeStatus) = "Recycling" ManagedIntegrationRuntimeNodeStatusStarting [ManagedIntegrationRuntimeNodeStatus](#ManagedIntegrationRuntimeNodeStatus) = "Starting" ManagedIntegrationRuntimeNodeStatusUnavailable [ManagedIntegrationRuntimeNodeStatus](#ManagedIntegrationRuntimeNodeStatus) = "Unavailable" ) ``` #### func [PossibleManagedIntegrationRuntimeNodeStatusValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1005) [¶](#PossibleManagedIntegrationRuntimeNodeStatusValues) ``` func PossibleManagedIntegrationRuntimeNodeStatusValues() [][ManagedIntegrationRuntimeNodeStatus](#ManagedIntegrationRuntimeNodeStatus) ``` PossibleManagedIntegrationRuntimeNodeStatusValues returns the possible values for the ManagedIntegrationRuntimeNodeStatus const type. #### type [ManagedIntegrationRuntimeOperationResult](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16961) [¶](#ManagedIntegrationRuntimeOperationResult) ``` type ManagedIntegrationRuntimeOperationResult struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; The activity id for the operation request. ActivityID *[string](/builtin#string) `json:"activityId,omitempty" azure:"ro"` // READ-ONLY; The error code. ErrorCode *[string](/builtin#string) `json:"errorCode,omitempty" azure:"ro"` // READ-ONLY; Managed integration runtime error parameters. Parameters []*[string](/builtin#string) `json:"parameters,omitempty" azure:"ro"` // READ-ONLY; The operation result. Result *[string](/builtin#string) `json:"result,omitempty" azure:"ro"` // READ-ONLY; The start time of the operation. StartTime *[time](/time).[Time](/time#Time) `json:"startTime,omitempty" azure:"ro"` // READ-ONLY; The operation type. Could be start or stop. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` ManagedIntegrationRuntimeOperationResult - Properties of managed integration runtime operation result. #### func (ManagedIntegrationRuntimeOperationResult) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28973) [¶](#ManagedIntegrationRuntimeOperationResult.MarshalJSON) ``` func (m [ManagedIntegrationRuntimeOperationResult](#ManagedIntegrationRuntimeOperationResult)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeOperationResult. #### func (*ManagedIntegrationRuntimeOperationResult) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L28990) [¶](#ManagedIntegrationRuntimeOperationResult.UnmarshalJSON) ``` func (m *[ManagedIntegrationRuntimeOperationResult](#ManagedIntegrationRuntimeOperationResult)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeOperationResult. #### type [ManagedIntegrationRuntimeStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L16985) [¶](#ManagedIntegrationRuntimeStatus) ``` type ManagedIntegrationRuntimeStatus struct { // REQUIRED; Type of integration runtime. Type *[IntegrationRuntimeType](#IntegrationRuntimeType) `json:"type,omitempty"` // REQUIRED; Managed integration runtime status type properties. TypeProperties *[ManagedIntegrationRuntimeStatusTypeProperties](#ManagedIntegrationRuntimeStatusTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *[string](/builtin#string) `json:"dataFactoryName,omitempty" azure:"ro"` // READ-ONLY; The state of integration runtime. State *[IntegrationRuntimeState](#IntegrationRuntimeState) `json:"state,omitempty" azure:"ro"` } ``` ManagedIntegrationRuntimeStatus - Managed integration runtime status. #### func (*ManagedIntegrationRuntimeStatus) [GetIntegrationRuntimeStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17003) [¶](#ManagedIntegrationRuntimeStatus.GetIntegrationRuntimeStatus) added in v0.2.0 ``` func (m *[ManagedIntegrationRuntimeStatus](#ManagedIntegrationRuntimeStatus)) GetIntegrationRuntimeStatus() *[IntegrationRuntimeStatus](#IntegrationRuntimeStatus) ``` GetIntegrationRuntimeStatus implements the IntegrationRuntimeStatusClassification interface for type ManagedIntegrationRuntimeStatus. #### func (ManagedIntegrationRuntimeStatus) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29035) [¶](#ManagedIntegrationRuntimeStatus.MarshalJSON) ``` func (m [ManagedIntegrationRuntimeStatus](#ManagedIntegrationRuntimeStatus)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeStatus. #### func (*ManagedIntegrationRuntimeStatus) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29050) [¶](#ManagedIntegrationRuntimeStatus.UnmarshalJSON) ``` func (m *[ManagedIntegrationRuntimeStatus](#ManagedIntegrationRuntimeStatus)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeStatus. #### type [ManagedIntegrationRuntimeStatusTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17013) [¶](#ManagedIntegrationRuntimeStatusTypeProperties) ``` type ManagedIntegrationRuntimeStatusTypeProperties struct { // READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. CreateTime *[time](/time).[Time](/time#Time) `json:"createTime,omitempty" azure:"ro"` // READ-ONLY; The last operation result that occurred on this integration runtime. LastOperation *[ManagedIntegrationRuntimeOperationResult](#ManagedIntegrationRuntimeOperationResult) `json:"lastOperation,omitempty" azure:"ro"` // READ-ONLY; The list of nodes for managed integration runtime. Nodes []*[ManagedIntegrationRuntimeNode](#ManagedIntegrationRuntimeNode) `json:"nodes,omitempty" azure:"ro"` // READ-ONLY; The errors that occurred on this integration runtime. OtherErrors []*[ManagedIntegrationRuntimeError](#ManagedIntegrationRuntimeError) `json:"otherErrors,omitempty" azure:"ro"` } ``` ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. #### func (ManagedIntegrationRuntimeStatusTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29089) [¶](#ManagedIntegrationRuntimeStatusTypeProperties.MarshalJSON) ``` func (m [ManagedIntegrationRuntimeStatusTypeProperties](#ManagedIntegrationRuntimeStatusTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeStatusTypeProperties. #### func (*ManagedIntegrationRuntimeStatusTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29099) [¶](#ManagedIntegrationRuntimeStatusTypeProperties.UnmarshalJSON) ``` func (m *[ManagedIntegrationRuntimeStatusTypeProperties](#ManagedIntegrationRuntimeStatusTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeStatusTypeProperties. #### type [ManagedIntegrationRuntimeTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17028) [¶](#ManagedIntegrationRuntimeTypeProperties) ``` type ManagedIntegrationRuntimeTypeProperties struct { // The compute resource for managed integration runtime. ComputeProperties *[IntegrationRuntimeComputeProperties](#IntegrationRuntimeComputeProperties) `json:"computeProperties,omitempty"` // The name of virtual network to which Azure-SSIS integration runtime will join CustomerVirtualNetwork *[IntegrationRuntimeCustomerVirtualNetwork](#IntegrationRuntimeCustomerVirtualNetwork) `json:"customerVirtualNetwork,omitempty"` // SSIS properties for managed integration runtime. SsisProperties *[IntegrationRuntimeSsisProperties](#IntegrationRuntimeSsisProperties) `json:"ssisProperties,omitempty"` } ``` ManagedIntegrationRuntimeTypeProperties - Managed integration runtime type properties. #### func (ManagedIntegrationRuntimeTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29128) [¶](#ManagedIntegrationRuntimeTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [ManagedIntegrationRuntimeTypeProperties](#ManagedIntegrationRuntimeTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeTypeProperties. #### func (*ManagedIntegrationRuntimeTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29137) [¶](#ManagedIntegrationRuntimeTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[ManagedIntegrationRuntimeTypeProperties](#ManagedIntegrationRuntimeTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeTypeProperties. #### type [ManagedPrivateEndpoint](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17040) [¶](#ManagedPrivateEndpoint) ``` type ManagedPrivateEndpoint struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The managed private endpoint connection state ConnectionState *[ConnectionStateProperties](#ConnectionStateProperties) `json:"connectionState,omitempty"` // Fully qualified domain names Fqdns []*[string](/builtin#string) `json:"fqdns,omitempty"` // The groupId to which the managed private endpoint is created GroupID *[string](/builtin#string) `json:"groupId,omitempty"` // The ARM resource ID of the resource to which the managed private endpoint is created PrivateLinkResourceID *[string](/builtin#string) `json:"privateLinkResourceId,omitempty"` // READ-ONLY; Denotes whether the managed private endpoint is reserved IsReserved *[bool](/builtin#bool) `json:"isReserved,omitempty" azure:"ro"` // READ-ONLY; The managed private endpoint provisioning state ProvisioningState *[string](/builtin#string) `json:"provisioningState,omitempty" azure:"ro"` } ``` ManagedPrivateEndpoint - Properties of a managed private endpoint #### func (ManagedPrivateEndpoint) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29163) [¶](#ManagedPrivateEndpoint.MarshalJSON) ``` func (m [ManagedPrivateEndpoint](#ManagedPrivateEndpoint)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpoint. #### func (*ManagedPrivateEndpoint) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29180) [¶](#ManagedPrivateEndpoint.UnmarshalJSON) ``` func (m *[ManagedPrivateEndpoint](#ManagedPrivateEndpoint)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpoint. #### type [ManagedPrivateEndpointListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17064) [¶](#ManagedPrivateEndpointListResponse) ``` type ManagedPrivateEndpointListResponse struct { // REQUIRED; List of managed private endpoints. Value []*[ManagedPrivateEndpointResource](#ManagedPrivateEndpointResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` ManagedPrivateEndpointListResponse - A list of managed private endpoint resources. #### func (ManagedPrivateEndpointListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29225) [¶](#ManagedPrivateEndpointListResponse.MarshalJSON) ``` func (m [ManagedPrivateEndpointListResponse](#ManagedPrivateEndpointListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointListResponse. #### func (*ManagedPrivateEndpointListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29233) [¶](#ManagedPrivateEndpointListResponse.UnmarshalJSON) added in v1.3.0 ``` func (m *[ManagedPrivateEndpointListResponse](#ManagedPrivateEndpointListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointListResponse. #### type [ManagedPrivateEndpointResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17073) [¶](#ManagedPrivateEndpointResource) ``` type ManagedPrivateEndpointResource struct { // REQUIRED; Managed private endpoint properties. Properties *[ManagedPrivateEndpoint](#ManagedPrivateEndpoint) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` ManagedPrivateEndpointResource - Managed private endpoint resource type. #### func (ManagedPrivateEndpointResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29256) [¶](#ManagedPrivateEndpointResource.MarshalJSON) ``` func (m [ManagedPrivateEndpointResource](#ManagedPrivateEndpointResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointResource. #### func (*ManagedPrivateEndpointResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29267) [¶](#ManagedPrivateEndpointResource.UnmarshalJSON) ``` func (m *[ManagedPrivateEndpointResource](#ManagedPrivateEndpointResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointResource. #### type [ManagedPrivateEndpointsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go#L28) [¶](#ManagedPrivateEndpointsClient) ``` type ManagedPrivateEndpointsClient struct { // contains filtered or unexported fields } ``` ManagedPrivateEndpointsClient contains the methods for the ManagedPrivateEndpoints group. Don't use this type directly, use NewManagedPrivateEndpointsClient() instead. #### func [NewManagedPrivateEndpointsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go#L38) [¶](#NewManagedPrivateEndpointsClient) ``` func NewManagedPrivateEndpointsClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[ManagedPrivateEndpointsClient](#ManagedPrivateEndpointsClient), [error](/builtin#error)) ``` NewManagedPrivateEndpointsClient creates a new instance of ManagedPrivateEndpointsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*ManagedPrivateEndpointsClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go#L68) [¶](#ManagedPrivateEndpointsClient.CreateOrUpdate) ``` func (client *[ManagedPrivateEndpointsClient](#ManagedPrivateEndpointsClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), managedVirtualNetworkName [string](/builtin#string), managedPrivateEndpointName [string](/builtin#string), managedPrivateEndpoint [ManagedPrivateEndpointResource](#ManagedPrivateEndpointResource), options *[ManagedPrivateEndpointsClientCreateOrUpdateOptions](#ManagedPrivateEndpointsClientCreateOrUpdateOptions)) ([ManagedPrivateEndpointsClientCreateOrUpdateResponse](#ManagedPrivateEndpointsClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a managed private endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. managedVirtualNetworkName - Managed virtual network name managedPrivateEndpointName - Managed private endpoint name managedPrivateEndpoint - Managed private endpoint resource definition. options - ManagedPrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CreateOrUpdate method. Example [¶](#example-ManagedPrivateEndpointsClient.CreateOrUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewManagedPrivateEndpointsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", "exampleManagedPrivateEndpointName", armdatafactory.ManagedPrivateEndpointResource{ Properties: &armdatafactory.ManagedPrivateEndpoint{ Fqdns: []*string{}, GroupID: to.Ptr("blob"), PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), }, }, &armdatafactory.ManagedPrivateEndpointsClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*ManagedPrivateEndpointsClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go#L138) [¶](#ManagedPrivateEndpointsClient.Delete) ``` func (client *[ManagedPrivateEndpointsClient](#ManagedPrivateEndpointsClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), managedVirtualNetworkName [string](/builtin#string), managedPrivateEndpointName [string](/builtin#string), options *[ManagedPrivateEndpointsClientDeleteOptions](#ManagedPrivateEndpointsClientDeleteOptions)) ([ManagedPrivateEndpointsClientDeleteResponse](#ManagedPrivateEndpointsClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a managed private endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. managedVirtualNetworkName - Managed virtual network name managedPrivateEndpointName - Managed private endpoint name options - ManagedPrivateEndpointsClientDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Delete method. Example [¶](#example-ManagedPrivateEndpointsClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewManagedPrivateEndpointsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", "exampleManagedPrivateEndpointName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*ManagedPrivateEndpointsClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go#L196) [¶](#ManagedPrivateEndpointsClient.Get) ``` func (client *[ManagedPrivateEndpointsClient](#ManagedPrivateEndpointsClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), managedVirtualNetworkName [string](/builtin#string), managedPrivateEndpointName [string](/builtin#string), options *[ManagedPrivateEndpointsClientGetOptions](#ManagedPrivateEndpointsClientGetOptions)) ([ManagedPrivateEndpointsClientGetResponse](#ManagedPrivateEndpointsClientGetResponse), [error](/builtin#error)) ``` Get - Gets a managed private endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. managedVirtualNetworkName - Managed virtual network name managedPrivateEndpointName - Managed private endpoint name options - ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get method. Example [¶](#example-ManagedPrivateEndpointsClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewManagedPrivateEndpointsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", "exampleManagedPrivateEndpointName", &armdatafactory.ManagedPrivateEndpointsClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*ManagedPrivateEndpointsClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go#L265) [¶](#ManagedPrivateEndpointsClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[ManagedPrivateEndpointsClient](#ManagedPrivateEndpointsClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), managedVirtualNetworkName [string](/builtin#string), options *[ManagedPrivateEndpointsClientListByFactoryOptions](#ManagedPrivateEndpointsClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[ManagedPrivateEndpointsClientListByFactoryResponse](#ManagedPrivateEndpointsClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists managed private endpoints. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. managedVirtualNetworkName - Managed virtual network name options - ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.ListByFactory method. Example [¶](#example-ManagedPrivateEndpointsClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewManagedPrivateEndpointsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [ManagedPrivateEndpointsClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17092) [¶](#ManagedPrivateEndpointsClientCreateOrUpdateOptions) added in v0.2.0 ``` type ManagedPrivateEndpointsClientCreateOrUpdateOptions struct { // ETag of the managed private endpoint entity. Should only be specified for update, for which it should match existing entity // or can be * for unconditional update. IfMatch *[string](/builtin#string) } ``` ManagedPrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CreateOrUpdate method. #### type [ManagedPrivateEndpointsClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L298) [¶](#ManagedPrivateEndpointsClientCreateOrUpdateResponse) added in v0.2.0 ``` type ManagedPrivateEndpointsClientCreateOrUpdateResponse struct { [ManagedPrivateEndpointResource](#ManagedPrivateEndpointResource) } ``` ManagedPrivateEndpointsClientCreateOrUpdateResponse contains the response from method ManagedPrivateEndpointsClient.CreateOrUpdate. #### type [ManagedPrivateEndpointsClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17100) [¶](#ManagedPrivateEndpointsClientDeleteOptions) added in v0.2.0 ``` type ManagedPrivateEndpointsClientDeleteOptions struct { } ``` ManagedPrivateEndpointsClientDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Delete method. #### type [ManagedPrivateEndpointsClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L303) [¶](#ManagedPrivateEndpointsClientDeleteResponse) added in v0.2.0 ``` type ManagedPrivateEndpointsClientDeleteResponse struct { } ``` ManagedPrivateEndpointsClientDeleteResponse contains the response from method ManagedPrivateEndpointsClient.Delete. #### type [ManagedPrivateEndpointsClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17105) [¶](#ManagedPrivateEndpointsClientGetOptions) added in v0.2.0 ``` type ManagedPrivateEndpointsClientGetOptions struct { // ETag of the managed private endpoint entity. Should only be specified for get. If the ETag matches the existing entity // tag, or if * was provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get method. #### type [ManagedPrivateEndpointsClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L308) [¶](#ManagedPrivateEndpointsClientGetResponse) added in v0.2.0 ``` type ManagedPrivateEndpointsClientGetResponse struct { [ManagedPrivateEndpointResource](#ManagedPrivateEndpointResource) } ``` ManagedPrivateEndpointsClientGetResponse contains the response from method ManagedPrivateEndpointsClient.Get. #### type [ManagedPrivateEndpointsClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17113) [¶](#ManagedPrivateEndpointsClientListByFactoryOptions) added in v0.2.0 ``` type ManagedPrivateEndpointsClientListByFactoryOptions struct { } ``` ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.ListByFactory method. #### type [ManagedPrivateEndpointsClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L313) [¶](#ManagedPrivateEndpointsClientListByFactoryResponse) added in v0.2.0 ``` type ManagedPrivateEndpointsClientListByFactoryResponse struct { [ManagedPrivateEndpointListResponse](#ManagedPrivateEndpointListResponse) } ``` ManagedPrivateEndpointsClientListByFactoryResponse contains the response from method ManagedPrivateEndpointsClient.ListByFactory. #### type [ManagedVirtualNetwork](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17118) [¶](#ManagedVirtualNetwork) ``` type ManagedVirtualNetwork struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; Managed Virtual Network alias. Alias *[string](/builtin#string) `json:"alias,omitempty" azure:"ro"` // READ-ONLY; Managed Virtual Network ID. VNetID *[string](/builtin#string) `json:"vNetId,omitempty" azure:"ro"` } ``` ManagedVirtualNetwork - A managed Virtual Network associated with the Azure Data Factory #### func (ManagedVirtualNetwork) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29299) [¶](#ManagedVirtualNetwork.MarshalJSON) ``` func (m [ManagedVirtualNetwork](#ManagedVirtualNetwork)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetwork. #### func (*ManagedVirtualNetwork) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29312) [¶](#ManagedVirtualNetwork.UnmarshalJSON) ``` func (m *[ManagedVirtualNetwork](#ManagedVirtualNetwork)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedVirtualNetwork. #### type [ManagedVirtualNetworkListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17130) [¶](#ManagedVirtualNetworkListResponse) ``` type ManagedVirtualNetworkListResponse struct { // REQUIRED; List of managed Virtual Networks. Value []*[ManagedVirtualNetworkResource](#ManagedVirtualNetworkResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` ManagedVirtualNetworkListResponse - A list of managed Virtual Network resources. #### func (ManagedVirtualNetworkListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29345) [¶](#ManagedVirtualNetworkListResponse.MarshalJSON) ``` func (m [ManagedVirtualNetworkListResponse](#ManagedVirtualNetworkListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkListResponse. #### func (*ManagedVirtualNetworkListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29353) [¶](#ManagedVirtualNetworkListResponse.UnmarshalJSON) added in v1.3.0 ``` func (m *[ManagedVirtualNetworkListResponse](#ManagedVirtualNetworkListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedVirtualNetworkListResponse. #### type [ManagedVirtualNetworkReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17139) [¶](#ManagedVirtualNetworkReference) ``` type ManagedVirtualNetworkReference struct { // REQUIRED; Reference ManagedVirtualNetwork name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Managed Virtual Network reference type. Type *[ManagedVirtualNetworkReferenceType](#ManagedVirtualNetworkReferenceType) `json:"type,omitempty"` } ``` ManagedVirtualNetworkReference - Managed Virtual Network reference type. #### func (ManagedVirtualNetworkReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29376) [¶](#ManagedVirtualNetworkReference.MarshalJSON) added in v1.3.0 ``` func (m [ManagedVirtualNetworkReference](#ManagedVirtualNetworkReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkReference. #### func (*ManagedVirtualNetworkReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29384) [¶](#ManagedVirtualNetworkReference.UnmarshalJSON) added in v1.3.0 ``` func (m *[ManagedVirtualNetworkReference](#ManagedVirtualNetworkReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedVirtualNetworkReference. #### type [ManagedVirtualNetworkReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1015) [¶](#ManagedVirtualNetworkReferenceType) ``` type ManagedVirtualNetworkReferenceType [string](/builtin#string) ``` ManagedVirtualNetworkReferenceType - Managed Virtual Network reference type. ``` const ( ManagedVirtualNetworkReferenceTypeManagedVirtualNetworkReference [ManagedVirtualNetworkReferenceType](#ManagedVirtualNetworkReferenceType) = "ManagedVirtualNetworkReference" ) ``` #### func [PossibleManagedVirtualNetworkReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1022) [¶](#PossibleManagedVirtualNetworkReferenceTypeValues) ``` func PossibleManagedVirtualNetworkReferenceTypeValues() [][ManagedVirtualNetworkReferenceType](#ManagedVirtualNetworkReferenceType) ``` PossibleManagedVirtualNetworkReferenceTypeValues returns the possible values for the ManagedVirtualNetworkReferenceType const type. #### type [ManagedVirtualNetworkResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17148) [¶](#ManagedVirtualNetworkResource) ``` type ManagedVirtualNetworkResource struct { // REQUIRED; Managed Virtual Network properties. Properties *[ManagedVirtualNetwork](#ManagedVirtualNetwork) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` ManagedVirtualNetworkResource - Managed Virtual Network resource type. #### func (ManagedVirtualNetworkResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29407) [¶](#ManagedVirtualNetworkResource.MarshalJSON) ``` func (m [ManagedVirtualNetworkResource](#ManagedVirtualNetworkResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkResource. #### func (*ManagedVirtualNetworkResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29418) [¶](#ManagedVirtualNetworkResource.UnmarshalJSON) ``` func (m *[ManagedVirtualNetworkResource](#ManagedVirtualNetworkResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ManagedVirtualNetworkResource. #### type [ManagedVirtualNetworksClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go#L28) [¶](#ManagedVirtualNetworksClient) ``` type ManagedVirtualNetworksClient struct { // contains filtered or unexported fields } ``` ManagedVirtualNetworksClient contains the methods for the ManagedVirtualNetworks group. Don't use this type directly, use NewManagedVirtualNetworksClient() instead. #### func [NewManagedVirtualNetworksClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go#L38) [¶](#NewManagedVirtualNetworksClient) ``` func NewManagedVirtualNetworksClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[ManagedVirtualNetworksClient](#ManagedVirtualNetworksClient), [error](/builtin#error)) ``` NewManagedVirtualNetworksClient creates a new instance of ManagedVirtualNetworksClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*ManagedVirtualNetworksClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go#L67) [¶](#ManagedVirtualNetworksClient.CreateOrUpdate) ``` func (client *[ManagedVirtualNetworksClient](#ManagedVirtualNetworksClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), managedVirtualNetworkName [string](/builtin#string), managedVirtualNetwork [ManagedVirtualNetworkResource](#ManagedVirtualNetworkResource), options *[ManagedVirtualNetworksClientCreateOrUpdateOptions](#ManagedVirtualNetworksClientCreateOrUpdateOptions)) ([ManagedVirtualNetworksClientCreateOrUpdateResponse](#ManagedVirtualNetworksClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a managed Virtual Network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. managedVirtualNetworkName - Managed virtual network name managedVirtualNetwork - Managed Virtual Network resource definition. options - ManagedVirtualNetworksClientCreateOrUpdateOptions contains the optional parameters for the ManagedVirtualNetworksClient.CreateOrUpdate method. Example [¶](#example-ManagedVirtualNetworksClient.CreateOrUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewManagedVirtualNetworksClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", armdatafactory.ManagedVirtualNetworkResource{ Properties: &armdatafactory.ManagedVirtualNetwork{}, }, &armdatafactory.ManagedVirtualNetworksClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*ManagedVirtualNetworksClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go#L132) [¶](#ManagedVirtualNetworksClient.Get) ``` func (client *[ManagedVirtualNetworksClient](#ManagedVirtualNetworksClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), managedVirtualNetworkName [string](/builtin#string), options *[ManagedVirtualNetworksClientGetOptions](#ManagedVirtualNetworksClientGetOptions)) ([ManagedVirtualNetworksClientGetResponse](#ManagedVirtualNetworksClientGetResponse), [error](/builtin#error)) ``` Get - Gets a managed Virtual Network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. managedVirtualNetworkName - Managed virtual network name options - ManagedVirtualNetworksClientGetOptions contains the optional parameters for the ManagedVirtualNetworksClient.Get method. Example [¶](#example-ManagedVirtualNetworksClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewManagedVirtualNetworksClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", &armdatafactory.ManagedVirtualNetworksClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*ManagedVirtualNetworksClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go#L196) [¶](#ManagedVirtualNetworksClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[ManagedVirtualNetworksClient](#ManagedVirtualNetworksClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[ManagedVirtualNetworksClientListByFactoryOptions](#ManagedVirtualNetworksClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[ManagedVirtualNetworksClientListByFactoryResponse](#ManagedVirtualNetworksClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists managed Virtual Networks. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.ListByFactory method. Example [¶](#example-ManagedVirtualNetworksClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewManagedVirtualNetworksClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [ManagedVirtualNetworksClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17167) [¶](#ManagedVirtualNetworksClientCreateOrUpdateOptions) added in v0.2.0 ``` type ManagedVirtualNetworksClientCreateOrUpdateOptions struct { // ETag of the managed Virtual Network entity. Should only be specified for update, for which it should match existing entity // or can be * for unconditional update. IfMatch *[string](/builtin#string) } ``` ManagedVirtualNetworksClientCreateOrUpdateOptions contains the optional parameters for the ManagedVirtualNetworksClient.CreateOrUpdate method. #### type [ManagedVirtualNetworksClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L318) [¶](#ManagedVirtualNetworksClientCreateOrUpdateResponse) added in v0.2.0 ``` type ManagedVirtualNetworksClientCreateOrUpdateResponse struct { [ManagedVirtualNetworkResource](#ManagedVirtualNetworkResource) } ``` ManagedVirtualNetworksClientCreateOrUpdateResponse contains the response from method ManagedVirtualNetworksClient.CreateOrUpdate. #### type [ManagedVirtualNetworksClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17174) [¶](#ManagedVirtualNetworksClientGetOptions) added in v0.2.0 ``` type ManagedVirtualNetworksClientGetOptions struct { // ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag matches the existing entity tag, // or if * was provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` ManagedVirtualNetworksClientGetOptions contains the optional parameters for the ManagedVirtualNetworksClient.Get method. #### type [ManagedVirtualNetworksClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L323) [¶](#ManagedVirtualNetworksClientGetResponse) added in v0.2.0 ``` type ManagedVirtualNetworksClientGetResponse struct { [ManagedVirtualNetworkResource](#ManagedVirtualNetworkResource) } ``` ManagedVirtualNetworksClientGetResponse contains the response from method ManagedVirtualNetworksClient.Get. #### type [ManagedVirtualNetworksClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17182) [¶](#ManagedVirtualNetworksClientListByFactoryOptions) added in v0.2.0 ``` type ManagedVirtualNetworksClientListByFactoryOptions struct { } ``` ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.ListByFactory method. #### type [ManagedVirtualNetworksClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L328) [¶](#ManagedVirtualNetworksClientListByFactoryResponse) added in v0.2.0 ``` type ManagedVirtualNetworksClientListByFactoryResponse struct { [ManagedVirtualNetworkListResponse](#ManagedVirtualNetworkListResponse) } ``` ManagedVirtualNetworksClientListByFactoryResponse contains the response from method ManagedVirtualNetworksClient.ListByFactory. #### type [MappingDataFlow](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17187) [¶](#MappingDataFlow) ``` type MappingDataFlow struct { // REQUIRED; Type of data flow. Type *[string](/builtin#string) `json:"type,omitempty"` // List of tags that can be used for describing the data flow. Annotations []interface{} `json:"annotations,omitempty"` // The description of the data flow. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this data flow is in. If not specified, Data flow will appear at the root level. Folder *[DataFlowFolder](#DataFlowFolder) `json:"folder,omitempty"` // Mapping data flow type properties. TypeProperties *[MappingDataFlowTypeProperties](#MappingDataFlowTypeProperties) `json:"typeProperties,omitempty"` } ``` MappingDataFlow - Mapping data flow. #### func (*MappingDataFlow) [GetDataFlow](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17205) [¶](#MappingDataFlow.GetDataFlow) added in v0.2.0 ``` func (m *[MappingDataFlow](#MappingDataFlow)) GetDataFlow() *[DataFlow](#DataFlow) ``` GetDataFlow implements the DataFlowClassification interface for type MappingDataFlow. #### func (MappingDataFlow) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29450) [¶](#MappingDataFlow.MarshalJSON) ``` func (m [MappingDataFlow](#MappingDataFlow)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MappingDataFlow. #### func (*MappingDataFlow) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29461) [¶](#MappingDataFlow.UnmarshalJSON) ``` func (m *[MappingDataFlow](#MappingDataFlow)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MappingDataFlow. #### type [MappingDataFlowTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17215) [¶](#MappingDataFlowTypeProperties) ``` type MappingDataFlowTypeProperties struct { // DataFlow script. Script *[string](/builtin#string) `json:"script,omitempty"` // Data flow script lines. ScriptLines []*[string](/builtin#string) `json:"scriptLines,omitempty"` // List of sinks in data flow. Sinks []*[DataFlowSink](#DataFlowSink) `json:"sinks,omitempty"` // List of sources in data flow. Sources []*[DataFlowSource](#DataFlowSource) `json:"sources,omitempty"` // List of transformations in data flow. Transformations []*[Transformation](#Transformation) `json:"transformations,omitempty"` } ``` MappingDataFlowTypeProperties - Mapping data flow type properties. #### func (MappingDataFlowTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29493) [¶](#MappingDataFlowTypeProperties.MarshalJSON) ``` func (m [MappingDataFlowTypeProperties](#MappingDataFlowTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MappingDataFlowTypeProperties. #### func (*MappingDataFlowTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29504) [¶](#MappingDataFlowTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MappingDataFlowTypeProperties](#MappingDataFlowTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MappingDataFlowTypeProperties. #### type [MariaDBLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17233) [¶](#MariaDBLinkedService) ``` type MariaDBLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; MariaDB server linked service properties. TypeProperties *[MariaDBLinkedServiceTypeProperties](#MariaDBLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` MariaDBLinkedService - MariaDB server linked service. #### func (*MariaDBLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17257) [¶](#MariaDBLinkedService.GetLinkedService) added in v0.2.0 ``` func (m *[MariaDBLinkedService](#MariaDBLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type MariaDBLinkedService. #### func (MariaDBLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29536) [¶](#MariaDBLinkedService.MarshalJSON) ``` func (m [MariaDBLinkedService](#MariaDBLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MariaDBLinkedService. #### func (*MariaDBLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29553) [¶](#MariaDBLinkedService.UnmarshalJSON) ``` func (m *[MariaDBLinkedService](#MariaDBLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MariaDBLinkedService. #### type [MariaDBLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17269) [¶](#MariaDBLinkedServiceTypeProperties) ``` type MariaDBLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"pwd,omitempty"` } ``` MariaDBLinkedServiceTypeProperties - MariaDB server linked service properties. #### func (MariaDBLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29598) [¶](#MariaDBLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MariaDBLinkedServiceTypeProperties](#MariaDBLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MariaDBLinkedServiceTypeProperties. #### func (*MariaDBLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29607) [¶](#MariaDBLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MariaDBLinkedServiceTypeProperties](#MariaDBLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MariaDBLinkedServiceTypeProperties. #### type [MariaDBSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17282) [¶](#MariaDBSource) ``` type MariaDBSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` MariaDBSource - A copy activity MariaDB server source. #### func (*MariaDBSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17313) [¶](#MariaDBSource.GetCopySource) added in v0.2.0 ``` func (m *[MariaDBSource](#MariaDBSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type MariaDBSource. #### func (*MariaDBSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17325) [¶](#MariaDBSource.GetTabularSource) added in v0.2.0 ``` func (m *[MariaDBSource](#MariaDBSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type MariaDBSource. #### func (MariaDBSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29633) [¶](#MariaDBSource.MarshalJSON) ``` func (m [MariaDBSource](#MariaDBSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MariaDBSource. #### func (*MariaDBSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29652) [¶](#MariaDBSource.UnmarshalJSON) ``` func (m *[MariaDBSource](#MariaDBSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MariaDBSource. #### type [MariaDBTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17339) [¶](#MariaDBTableDataset) ``` type MariaDBTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` MariaDBTableDataset - MariaDB server dataset. #### func (*MariaDBTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17373) [¶](#MariaDBTableDataset.GetDataset) added in v0.2.0 ``` func (m *[MariaDBTableDataset](#MariaDBTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type MariaDBTableDataset. #### func (MariaDBTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29703) [¶](#MariaDBTableDataset.MarshalJSON) ``` func (m [MariaDBTableDataset](#MariaDBTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MariaDBTableDataset. #### func (*MariaDBTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29723) [¶](#MariaDBTableDataset.UnmarshalJSON) ``` func (m *[MariaDBTableDataset](#MariaDBTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MariaDBTableDataset. #### type [MarketoLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17388) [¶](#MarketoLinkedService) ``` type MarketoLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Marketo server linked service properties. TypeProperties *[MarketoLinkedServiceTypeProperties](#MarketoLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` MarketoLinkedService - Marketo server linked service. #### func (*MarketoLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17412) [¶](#MarketoLinkedService.GetLinkedService) added in v0.2.0 ``` func (m *[MarketoLinkedService](#MarketoLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type MarketoLinkedService. #### func (MarketoLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29777) [¶](#MarketoLinkedService.MarshalJSON) ``` func (m [MarketoLinkedService](#MarketoLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MarketoLinkedService. #### func (*MarketoLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29794) [¶](#MarketoLinkedService.UnmarshalJSON) ``` func (m *[MarketoLinkedService](#MarketoLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MarketoLinkedService. #### type [MarketoLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17424) [¶](#MarketoLinkedServiceTypeProperties) ``` type MarketoLinkedServiceTypeProperties struct { // REQUIRED; The client Id of your Marketo service. ClientID interface{} `json:"clientId,omitempty"` // REQUIRED; The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) Endpoint interface{} `json:"endpoint,omitempty"` // The client secret of your Marketo service. ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` MarketoLinkedServiceTypeProperties - Marketo server linked service properties. #### func (MarketoLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29839) [¶](#MarketoLinkedServiceTypeProperties.MarshalJSON) ``` func (m [MarketoLinkedServiceTypeProperties](#MarketoLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MarketoLinkedServiceTypeProperties. #### func (*MarketoLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29852) [¶](#MarketoLinkedServiceTypeProperties.UnmarshalJSON) ``` func (m *[MarketoLinkedServiceTypeProperties](#MarketoLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MarketoLinkedServiceTypeProperties. #### type [MarketoObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17450) [¶](#MarketoObjectDataset) ``` type MarketoObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` MarketoObjectDataset - Marketo server dataset. #### func (*MarketoObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17484) [¶](#MarketoObjectDataset.GetDataset) added in v0.2.0 ``` func (m *[MarketoObjectDataset](#MarketoObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type MarketoObjectDataset. #### func (MarketoObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29890) [¶](#MarketoObjectDataset.MarshalJSON) ``` func (m [MarketoObjectDataset](#MarketoObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MarketoObjectDataset. #### func (*MarketoObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29910) [¶](#MarketoObjectDataset.UnmarshalJSON) ``` func (m *[MarketoObjectDataset](#MarketoObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MarketoObjectDataset. #### type [MarketoSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17499) [¶](#MarketoSource) ``` type MarketoSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` MarketoSource - A copy activity Marketo server source. #### func (*MarketoSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17530) [¶](#MarketoSource.GetCopySource) added in v0.2.0 ``` func (m *[MarketoSource](#MarketoSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type MarketoSource. #### func (*MarketoSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17542) [¶](#MarketoSource.GetTabularSource) added in v0.2.0 ``` func (m *[MarketoSource](#MarketoSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type MarketoSource. #### func (MarketoSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29964) [¶](#MarketoSource.MarshalJSON) ``` func (m [MarketoSource](#MarketoSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MarketoSource. #### func (*MarketoSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L29983) [¶](#MarketoSource.UnmarshalJSON) ``` func (m *[MarketoSource](#MarketoSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MarketoSource. #### type [MetadataItem](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17556) [¶](#MetadataItem) ``` type MetadataItem struct { // Metadata item key name. Type: string (or Expression with resultType string). Name interface{} `json:"name,omitempty"` // Metadata item value. Type: string (or Expression with resultType string). Value interface{} `json:"value,omitempty"` } ``` MetadataItem - Specify the name and value of custom metadata item. #### func (MetadataItem) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30034) [¶](#MetadataItem.MarshalJSON) added in v1.3.0 ``` func (m [MetadataItem](#MetadataItem)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MetadataItem. #### func (*MetadataItem) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30042) [¶](#MetadataItem.UnmarshalJSON) added in v1.3.0 ``` func (m *[MetadataItem](#MetadataItem)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MetadataItem. #### type [MicrosoftAccessLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17565) [¶](#MicrosoftAccessLinkedService) ``` type MicrosoftAccessLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Microsoft Access linked service properties. TypeProperties *[MicrosoftAccessLinkedServiceTypeProperties](#MicrosoftAccessLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` MicrosoftAccessLinkedService - Microsoft Access linked service. #### func (*MicrosoftAccessLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17589) [¶](#MicrosoftAccessLinkedService.GetLinkedService) added in v0.2.0 ``` func (m *[MicrosoftAccessLinkedService](#MicrosoftAccessLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type MicrosoftAccessLinkedService. #### func (MicrosoftAccessLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30065) [¶](#MicrosoftAccessLinkedService.MarshalJSON) ``` func (m [MicrosoftAccessLinkedService](#MicrosoftAccessLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessLinkedService. #### func (*MicrosoftAccessLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30082) [¶](#MicrosoftAccessLinkedService.UnmarshalJSON) ``` func (m *[MicrosoftAccessLinkedService](#MicrosoftAccessLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MicrosoftAccessLinkedService. #### type [MicrosoftAccessLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17601) [¶](#MicrosoftAccessLinkedServiceTypeProperties) ``` type MicrosoftAccessLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: // string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. // Type: string (or Expression with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // The access credential portion of the connection string specified in driver-specific property-value format. Credential [SecretBaseClassification](#SecretBaseClassification) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for Basic authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // User name for Basic authentication. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` MicrosoftAccessLinkedServiceTypeProperties - Microsoft Access linked service properties. #### func (MicrosoftAccessLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30127) [¶](#MicrosoftAccessLinkedServiceTypeProperties.MarshalJSON) ``` func (m [MicrosoftAccessLinkedServiceTypeProperties](#MicrosoftAccessLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessLinkedServiceTypeProperties. #### func (*MicrosoftAccessLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30139) [¶](#MicrosoftAccessLinkedServiceTypeProperties.UnmarshalJSON) ``` func (m *[MicrosoftAccessLinkedServiceTypeProperties](#MicrosoftAccessLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MicrosoftAccessLinkedServiceTypeProperties. #### type [MicrosoftAccessSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17625) [¶](#MicrosoftAccessSink) ``` type MicrosoftAccessSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` MicrosoftAccessSink - A copy activity Microsoft Access sink. #### func (*MicrosoftAccessSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17655) [¶](#MicrosoftAccessSink.GetCopySink) added in v0.2.0 ``` func (m *[MicrosoftAccessSink](#MicrosoftAccessSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type MicrosoftAccessSink. #### func (MicrosoftAccessSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30174) [¶](#MicrosoftAccessSink.MarshalJSON) ``` func (m [MicrosoftAccessSink](#MicrosoftAccessSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessSink. #### func (*MicrosoftAccessSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30193) [¶](#MicrosoftAccessSink.UnmarshalJSON) ``` func (m *[MicrosoftAccessSink](#MicrosoftAccessSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MicrosoftAccessSink. #### type [MicrosoftAccessSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17669) [¶](#MicrosoftAccessSource) ``` type MicrosoftAccessSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` MicrosoftAccessSource - A copy activity source for Microsoft Access. #### func (*MicrosoftAccessSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17697) [¶](#MicrosoftAccessSource.GetCopySource) added in v0.2.0 ``` func (m *[MicrosoftAccessSource](#MicrosoftAccessSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type MicrosoftAccessSource. #### func (MicrosoftAccessSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30244) [¶](#MicrosoftAccessSource.MarshalJSON) ``` func (m [MicrosoftAccessSource](#MicrosoftAccessSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessSource. #### func (*MicrosoftAccessSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30262) [¶](#MicrosoftAccessSource.UnmarshalJSON) ``` func (m *[MicrosoftAccessSource](#MicrosoftAccessSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MicrosoftAccessSource. #### type [MicrosoftAccessTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17709) [¶](#MicrosoftAccessTableDataset) ``` type MicrosoftAccessTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Microsoft Access table dataset properties. TypeProperties *[MicrosoftAccessTableDatasetTypeProperties](#MicrosoftAccessTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` MicrosoftAccessTableDataset - The Microsoft Access table dataset. #### func (*MicrosoftAccessTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17743) [¶](#MicrosoftAccessTableDataset.GetDataset) added in v0.2.0 ``` func (m *[MicrosoftAccessTableDataset](#MicrosoftAccessTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type MicrosoftAccessTableDataset. #### func (MicrosoftAccessTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30310) [¶](#MicrosoftAccessTableDataset.MarshalJSON) ``` func (m [MicrosoftAccessTableDataset](#MicrosoftAccessTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessTableDataset. #### func (*MicrosoftAccessTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30330) [¶](#MicrosoftAccessTableDataset.UnmarshalJSON) ``` func (m *[MicrosoftAccessTableDataset](#MicrosoftAccessTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MicrosoftAccessTableDataset. #### type [MicrosoftAccessTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17758) [¶](#MicrosoftAccessTableDatasetTypeProperties) ``` type MicrosoftAccessTableDatasetTypeProperties struct { // The Microsoft Access table name. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` MicrosoftAccessTableDatasetTypeProperties - Microsoft Access table dataset properties. #### func (MicrosoftAccessTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30384) [¶](#MicrosoftAccessTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MicrosoftAccessTableDatasetTypeProperties](#MicrosoftAccessTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessTableDatasetTypeProperties. #### func (*MicrosoftAccessTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30391) [¶](#MicrosoftAccessTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MicrosoftAccessTableDatasetTypeProperties](#MicrosoftAccessTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MicrosoftAccessTableDatasetTypeProperties. #### type [MongoDbAtlasCollectionDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17764) [¶](#MongoDbAtlasCollectionDataset) ``` type MongoDbAtlasCollectionDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; MongoDB Atlas database dataset properties. TypeProperties *[MongoDbAtlasCollectionDatasetTypeProperties](#MongoDbAtlasCollectionDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` MongoDbAtlasCollectionDataset - The MongoDB Atlas database dataset. #### func (*MongoDbAtlasCollectionDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17798) [¶](#MongoDbAtlasCollectionDataset.GetDataset) added in v0.2.0 ``` func (m *[MongoDbAtlasCollectionDataset](#MongoDbAtlasCollectionDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type MongoDbAtlasCollectionDataset. #### func (MongoDbAtlasCollectionDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30411) [¶](#MongoDbAtlasCollectionDataset.MarshalJSON) ``` func (m [MongoDbAtlasCollectionDataset](#MongoDbAtlasCollectionDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasCollectionDataset. #### func (*MongoDbAtlasCollectionDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30431) [¶](#MongoDbAtlasCollectionDataset.UnmarshalJSON) ``` func (m *[MongoDbAtlasCollectionDataset](#MongoDbAtlasCollectionDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbAtlasCollectionDataset. #### type [MongoDbAtlasCollectionDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17813) [¶](#MongoDbAtlasCollectionDatasetTypeProperties) ``` type MongoDbAtlasCollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the MongoDB Atlas database. Type: string (or Expression with resultType string). Collection interface{} `json:"collection,omitempty"` } ``` MongoDbAtlasCollectionDatasetTypeProperties - MongoDB Atlas database dataset properties. #### func (MongoDbAtlasCollectionDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30485) [¶](#MongoDbAtlasCollectionDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MongoDbAtlasCollectionDatasetTypeProperties](#MongoDbAtlasCollectionDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasCollectionDatasetTypeProperties. #### func (*MongoDbAtlasCollectionDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30492) [¶](#MongoDbAtlasCollectionDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MongoDbAtlasCollectionDatasetTypeProperties](#MongoDbAtlasCollectionDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbAtlasCollectionDatasetTypeProperties. #### type [MongoDbAtlasLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17819) [¶](#MongoDbAtlasLinkedService) ``` type MongoDbAtlasLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; MongoDB Atlas linked service properties. TypeProperties *[MongoDbAtlasLinkedServiceTypeProperties](#MongoDbAtlasLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` MongoDbAtlasLinkedService - Linked service for MongoDB Atlas data source. #### func (*MongoDbAtlasLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17843) [¶](#MongoDbAtlasLinkedService.GetLinkedService) added in v0.2.0 ``` func (m *[MongoDbAtlasLinkedService](#MongoDbAtlasLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type MongoDbAtlasLinkedService. #### func (MongoDbAtlasLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30512) [¶](#MongoDbAtlasLinkedService.MarshalJSON) ``` func (m [MongoDbAtlasLinkedService](#MongoDbAtlasLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasLinkedService. #### func (*MongoDbAtlasLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30529) [¶](#MongoDbAtlasLinkedService.UnmarshalJSON) ``` func (m *[MongoDbAtlasLinkedService](#MongoDbAtlasLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbAtlasLinkedService. #### type [MongoDbAtlasLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17855) [¶](#MongoDbAtlasLinkedServiceTypeProperties) ``` type MongoDbAtlasLinkedServiceTypeProperties struct { // REQUIRED; The MongoDB Atlas connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, // SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // REQUIRED; The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). Database interface{} `json:"database,omitempty"` } ``` MongoDbAtlasLinkedServiceTypeProperties - MongoDB Atlas linked service properties. #### func (MongoDbAtlasLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30574) [¶](#MongoDbAtlasLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MongoDbAtlasLinkedServiceTypeProperties](#MongoDbAtlasLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasLinkedServiceTypeProperties. #### func (*MongoDbAtlasLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30582) [¶](#MongoDbAtlasLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MongoDbAtlasLinkedServiceTypeProperties](#MongoDbAtlasLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbAtlasLinkedServiceTypeProperties. #### type [MongoDbAtlasSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17865) [¶](#MongoDbAtlasSink) ``` type MongoDbAtlasSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` MongoDbAtlasSink - A copy activity MongoDB Atlas sink. #### func (*MongoDbAtlasSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17897) [¶](#MongoDbAtlasSink.GetCopySink) added in v0.2.0 ``` func (m *[MongoDbAtlasSink](#MongoDbAtlasSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type MongoDbAtlasSink. #### func (MongoDbAtlasSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30605) [¶](#MongoDbAtlasSink.MarshalJSON) ``` func (m [MongoDbAtlasSink](#MongoDbAtlasSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasSink. #### func (*MongoDbAtlasSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30624) [¶](#MongoDbAtlasSink.UnmarshalJSON) ``` func (m *[MongoDbAtlasSink](#MongoDbAtlasSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbAtlasSink. #### type [MongoDbAtlasSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17911) [¶](#MongoDbAtlasSource) ``` type MongoDbAtlasSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the number of documents to return in each batch of the response from MongoDB Atlas instance. In most cases, modifying // the batch size will not affect the user or the application. This // property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). BatchSize interface{} `json:"batchSize,omitempty"` // Cursor methods for Mongodb query CursorMethods *[MongoDbCursorMethodsProperties](#MongoDbCursorMethodsProperties) `json:"cursorMethods,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). Filter interface{} `json:"filter,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` MongoDbAtlasSource - A copy activity source for a MongoDB Atlas database. #### func (*MongoDbAtlasSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17951) [¶](#MongoDbAtlasSource.GetCopySource) added in v0.2.0 ``` func (m *[MongoDbAtlasSource](#MongoDbAtlasSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type MongoDbAtlasSource. #### func (MongoDbAtlasSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30675) [¶](#MongoDbAtlasSource.MarshalJSON) ``` func (m [MongoDbAtlasSource](#MongoDbAtlasSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasSource. #### func (*MongoDbAtlasSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30696) [¶](#MongoDbAtlasSource.UnmarshalJSON) ``` func (m *[MongoDbAtlasSource](#MongoDbAtlasSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbAtlasSource. #### type [MongoDbAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1029) [¶](#MongoDbAuthenticationType) ``` type MongoDbAuthenticationType [string](/builtin#string) ``` MongoDbAuthenticationType - The authentication type to be used to connect to the MongoDB database. ``` const ( MongoDbAuthenticationTypeAnonymous [MongoDbAuthenticationType](#MongoDbAuthenticationType) = "Anonymous" MongoDbAuthenticationTypeBasic [MongoDbAuthenticationType](#MongoDbAuthenticationType) = "Basic" ) ``` #### func [PossibleMongoDbAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1037) [¶](#PossibleMongoDbAuthenticationTypeValues) ``` func PossibleMongoDbAuthenticationTypeValues() [][MongoDbAuthenticationType](#MongoDbAuthenticationType) ``` PossibleMongoDbAuthenticationTypeValues returns the possible values for the MongoDbAuthenticationType const type. #### type [MongoDbCollectionDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17963) [¶](#MongoDbCollectionDataset) ``` type MongoDbCollectionDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; MongoDB database dataset properties. TypeProperties *[MongoDbCollectionDatasetTypeProperties](#MongoDbCollectionDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` MongoDbCollectionDataset - The MongoDB database dataset. #### func (*MongoDbCollectionDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L17997) [¶](#MongoDbCollectionDataset.GetDataset) added in v0.2.0 ``` func (m *[MongoDbCollectionDataset](#MongoDbCollectionDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type MongoDbCollectionDataset. #### func (MongoDbCollectionDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30753) [¶](#MongoDbCollectionDataset.MarshalJSON) ``` func (m [MongoDbCollectionDataset](#MongoDbCollectionDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionDataset. #### func (*MongoDbCollectionDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30773) [¶](#MongoDbCollectionDataset.UnmarshalJSON) ``` func (m *[MongoDbCollectionDataset](#MongoDbCollectionDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCollectionDataset. #### type [MongoDbCollectionDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18012) [¶](#MongoDbCollectionDatasetTypeProperties) ``` type MongoDbCollectionDatasetTypeProperties struct { // REQUIRED; The table name of the MongoDB database. Type: string (or Expression with resultType string). CollectionName interface{} `json:"collectionName,omitempty"` } ``` MongoDbCollectionDatasetTypeProperties - MongoDB database dataset properties. #### func (MongoDbCollectionDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30827) [¶](#MongoDbCollectionDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MongoDbCollectionDatasetTypeProperties](#MongoDbCollectionDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionDatasetTypeProperties. #### func (*MongoDbCollectionDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30834) [¶](#MongoDbCollectionDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MongoDbCollectionDatasetTypeProperties](#MongoDbCollectionDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCollectionDatasetTypeProperties. #### type [MongoDbCursorMethodsProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18018) [¶](#MongoDbCursorMethodsProperties) ``` type MongoDbCursorMethodsProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the maximum number of documents the server returns. limit() is analogous to the LIMIT statement in a SQL database. // Type: integer (or Expression with resultType integer). Limit interface{} `json:"limit,omitempty"` // Specifies the fields to return in the documents that match the query filter. To return all fields in the matching documents, // omit this parameter. Type: string (or Expression with resultType string). Project interface{} `json:"project,omitempty"` // Specifies the how many documents skipped and where MongoDB begins returning results. This approach may be useful in implementing // paginated results. Type: integer (or Expression with resultType // integer). Skip interface{} `json:"skip,omitempty"` // Specifies the order in which the query returns matching documents. Type: string (or Expression with resultType string). // Type: string (or Expression with resultType string). Sort interface{} `json:"sort,omitempty"` } ``` MongoDbCursorMethodsProperties - Cursor methods for Mongodb query #### func (MongoDbCursorMethodsProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30854) [¶](#MongoDbCursorMethodsProperties.MarshalJSON) ``` func (m [MongoDbCursorMethodsProperties](#MongoDbCursorMethodsProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbCursorMethodsProperties. #### func (*MongoDbCursorMethodsProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30869) [¶](#MongoDbCursorMethodsProperties.UnmarshalJSON) ``` func (m *[MongoDbCursorMethodsProperties](#MongoDbCursorMethodsProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCursorMethodsProperties. #### type [MongoDbLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18041) [¶](#MongoDbLinkedService) ``` type MongoDbLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; MongoDB linked service properties. TypeProperties *[MongoDbLinkedServiceTypeProperties](#MongoDbLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` MongoDbLinkedService - Linked service for MongoDb data source. #### func (*MongoDbLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18065) [¶](#MongoDbLinkedService.GetLinkedService) added in v0.2.0 ``` func (m *[MongoDbLinkedService](#MongoDbLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type MongoDbLinkedService. #### func (MongoDbLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30908) [¶](#MongoDbLinkedService.MarshalJSON) ``` func (m [MongoDbLinkedService](#MongoDbLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbLinkedService. #### func (*MongoDbLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30925) [¶](#MongoDbLinkedService.UnmarshalJSON) ``` func (m *[MongoDbLinkedService](#MongoDbLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbLinkedService. #### type [MongoDbLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18077) [¶](#MongoDbLinkedServiceTypeProperties) ``` type MongoDbLinkedServiceTypeProperties struct { // REQUIRED; The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). DatabaseName interface{} `json:"databaseName,omitempty"` // REQUIRED; The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression // with resultType boolean). AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` // Database to verify the username and password. Type: string (or Expression with resultType string). AuthSource interface{} `json:"authSource,omitempty"` // The authentication type to be used to connect to the MongoDB database. AuthenticationType *[MongoDbAuthenticationType](#MongoDbAuthenticationType) `json:"authenticationType,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or // Expression with resultType boolean). EnableSSL interface{} `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port number that the MongoDB server uses to listen for client connections. The default value is 27017. Type: integer // (or Expression with resultType integer), minimum: 0. Port interface{} `json:"port,omitempty"` // Username for authentication. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` MongoDbLinkedServiceTypeProperties - MongoDB linked service properties. #### func (MongoDbLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30970) [¶](#MongoDbLinkedServiceTypeProperties.MarshalJSON) ``` func (m [MongoDbLinkedServiceTypeProperties](#MongoDbLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbLinkedServiceTypeProperties. #### func (*MongoDbLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L30986) [¶](#MongoDbLinkedServiceTypeProperties.UnmarshalJSON) ``` func (m *[MongoDbLinkedServiceTypeProperties](#MongoDbLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbLinkedServiceTypeProperties. #### type [MongoDbSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18114) [¶](#MongoDbSource) ``` type MongoDbSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Should be a SQL-92 query expression. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` MongoDbSource - A copy activity source for a MongoDB database. #### func (*MongoDbSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18142) [¶](#MongoDbSource.GetCopySource) added in v0.2.0 ``` func (m *[MongoDbSource](#MongoDbSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type MongoDbSource. #### func (MongoDbSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31033) [¶](#MongoDbSource.MarshalJSON) ``` func (m [MongoDbSource](#MongoDbSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbSource. #### func (*MongoDbSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31051) [¶](#MongoDbSource.UnmarshalJSON) ``` func (m *[MongoDbSource](#MongoDbSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbSource. #### type [MongoDbV2CollectionDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18154) [¶](#MongoDbV2CollectionDataset) ``` type MongoDbV2CollectionDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; MongoDB database dataset properties. TypeProperties *[MongoDbV2CollectionDatasetTypeProperties](#MongoDbV2CollectionDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` MongoDbV2CollectionDataset - The MongoDB database dataset. #### func (*MongoDbV2CollectionDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18188) [¶](#MongoDbV2CollectionDataset.GetDataset) added in v0.2.0 ``` func (m *[MongoDbV2CollectionDataset](#MongoDbV2CollectionDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type MongoDbV2CollectionDataset. #### func (MongoDbV2CollectionDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31099) [¶](#MongoDbV2CollectionDataset.MarshalJSON) ``` func (m [MongoDbV2CollectionDataset](#MongoDbV2CollectionDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbV2CollectionDataset. #### func (*MongoDbV2CollectionDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31119) [¶](#MongoDbV2CollectionDataset.UnmarshalJSON) ``` func (m *[MongoDbV2CollectionDataset](#MongoDbV2CollectionDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbV2CollectionDataset. #### type [MongoDbV2CollectionDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18203) [¶](#MongoDbV2CollectionDatasetTypeProperties) ``` type MongoDbV2CollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the MongoDB database. Type: string (or Expression with resultType string). Collection interface{} `json:"collection,omitempty"` } ``` MongoDbV2CollectionDatasetTypeProperties - MongoDB database dataset properties. #### func (MongoDbV2CollectionDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31173) [¶](#MongoDbV2CollectionDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MongoDbV2CollectionDatasetTypeProperties](#MongoDbV2CollectionDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbV2CollectionDatasetTypeProperties. #### func (*MongoDbV2CollectionDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31180) [¶](#MongoDbV2CollectionDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MongoDbV2CollectionDatasetTypeProperties](#MongoDbV2CollectionDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbV2CollectionDatasetTypeProperties. #### type [MongoDbV2LinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18209) [¶](#MongoDbV2LinkedService) ``` type MongoDbV2LinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; MongoDB linked service properties. TypeProperties *[MongoDbV2LinkedServiceTypeProperties](#MongoDbV2LinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` MongoDbV2LinkedService - Linked service for MongoDB data source. #### func (*MongoDbV2LinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18233) [¶](#MongoDbV2LinkedService.GetLinkedService) added in v0.2.0 ``` func (m *[MongoDbV2LinkedService](#MongoDbV2LinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type MongoDbV2LinkedService. #### func (MongoDbV2LinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31200) [¶](#MongoDbV2LinkedService.MarshalJSON) ``` func (m [MongoDbV2LinkedService](#MongoDbV2LinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbV2LinkedService. #### func (*MongoDbV2LinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31217) [¶](#MongoDbV2LinkedService.UnmarshalJSON) ``` func (m *[MongoDbV2LinkedService](#MongoDbV2LinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbV2LinkedService. #### type [MongoDbV2LinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18245) [¶](#MongoDbV2LinkedServiceTypeProperties) ``` type MongoDbV2LinkedServiceTypeProperties struct { // REQUIRED; The MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString // or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // REQUIRED; The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). Database interface{} `json:"database,omitempty"` } ``` MongoDbV2LinkedServiceTypeProperties - MongoDB linked service properties. #### func (MongoDbV2LinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31262) [¶](#MongoDbV2LinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MongoDbV2LinkedServiceTypeProperties](#MongoDbV2LinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbV2LinkedServiceTypeProperties. #### func (*MongoDbV2LinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31270) [¶](#MongoDbV2LinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MongoDbV2LinkedServiceTypeProperties](#MongoDbV2LinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbV2LinkedServiceTypeProperties. #### type [MongoDbV2Sink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18255) [¶](#MongoDbV2Sink) ``` type MongoDbV2Sink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` MongoDbV2Sink - A copy activity MongoDB sink. #### func (*MongoDbV2Sink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18287) [¶](#MongoDbV2Sink.GetCopySink) added in v0.2.0 ``` func (m *[MongoDbV2Sink](#MongoDbV2Sink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type MongoDbV2Sink. #### func (MongoDbV2Sink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31293) [¶](#MongoDbV2Sink.MarshalJSON) ``` func (m [MongoDbV2Sink](#MongoDbV2Sink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbV2Sink. #### func (*MongoDbV2Sink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31312) [¶](#MongoDbV2Sink.UnmarshalJSON) ``` func (m *[MongoDbV2Sink](#MongoDbV2Sink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbV2Sink. #### type [MongoDbV2Source](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18301) [¶](#MongoDbV2Source) ``` type MongoDbV2Source struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying // the batch size will not affect the user or the application. This property's // main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). BatchSize interface{} `json:"batchSize,omitempty"` // Cursor methods for Mongodb query CursorMethods *[MongoDbCursorMethodsProperties](#MongoDbCursorMethodsProperties) `json:"cursorMethods,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). Filter interface{} `json:"filter,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` MongoDbV2Source - A copy activity source for a MongoDB database. #### func (*MongoDbV2Source) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18341) [¶](#MongoDbV2Source.GetCopySource) added in v0.2.0 ``` func (m *[MongoDbV2Source](#MongoDbV2Source)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type MongoDbV2Source. #### func (MongoDbV2Source) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31363) [¶](#MongoDbV2Source.MarshalJSON) ``` func (m [MongoDbV2Source](#MongoDbV2Source)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MongoDbV2Source. #### func (*MongoDbV2Source) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31384) [¶](#MongoDbV2Source.UnmarshalJSON) ``` func (m *[MongoDbV2Source](#MongoDbV2Source)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbV2Source. #### type [MultiplePipelineTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18363) [¶](#MultiplePipelineTrigger) ``` type MultiplePipelineTrigger struct { // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // Pipelines that need to be started. Pipelines []*[TriggerPipelineReference](#TriggerPipelineReference) `json:"pipelines,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` MultiplePipelineTrigger - Base class for all triggers that support one to many model for trigger to pipeline. #### func (*MultiplePipelineTrigger) [GetMultiplePipelineTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18384) [¶](#MultiplePipelineTrigger.GetMultiplePipelineTrigger) ``` func (m *[MultiplePipelineTrigger](#MultiplePipelineTrigger)) GetMultiplePipelineTrigger() *[MultiplePipelineTrigger](#MultiplePipelineTrigger) ``` GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type MultiplePipelineTrigger. #### func (*MultiplePipelineTrigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18387) [¶](#MultiplePipelineTrigger.GetTrigger) added in v0.2.0 ``` func (m *[MultiplePipelineTrigger](#MultiplePipelineTrigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type MultiplePipelineTrigger. #### func (MultiplePipelineTrigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31441) [¶](#MultiplePipelineTrigger.MarshalJSON) ``` func (m [MultiplePipelineTrigger](#MultiplePipelineTrigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MultiplePipelineTrigger. #### func (*MultiplePipelineTrigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31457) [¶](#MultiplePipelineTrigger.UnmarshalJSON) ``` func (m *[MultiplePipelineTrigger](#MultiplePipelineTrigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MultiplePipelineTrigger. #### type [MultiplePipelineTriggerClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18356) [¶](#MultiplePipelineTriggerClassification) ``` type MultiplePipelineTriggerClassification interface { [TriggerClassification](#TriggerClassification) // GetMultiplePipelineTrigger returns the MultiplePipelineTrigger content of the underlying type. GetMultiplePipelineTrigger() *[MultiplePipelineTrigger](#MultiplePipelineTrigger) } ``` MultiplePipelineTriggerClassification provides polymorphic access to related types. Call the interface's GetMultiplePipelineTrigger() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *BlobEventsTrigger, *BlobTrigger, *CustomEventsTrigger, *MultiplePipelineTrigger, *ScheduleTrigger #### type [MySQLLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18398) [¶](#MySQLLinkedService) ``` type MySQLLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; MySQL linked service properties. TypeProperties *[MySQLLinkedServiceTypeProperties](#MySQLLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` MySQLLinkedService - Linked service for MySQL data source. #### func (*MySQLLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18422) [¶](#MySQLLinkedService.GetLinkedService) added in v0.2.0 ``` func (m *[MySQLLinkedService](#MySQLLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type MySQLLinkedService. #### func (MySQLLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31499) [¶](#MySQLLinkedService.MarshalJSON) ``` func (m [MySQLLinkedService](#MySQLLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MySQLLinkedService. #### func (*MySQLLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31516) [¶](#MySQLLinkedService.UnmarshalJSON) ``` func (m *[MySQLLinkedService](#MySQLLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MySQLLinkedService. #### type [MySQLLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18434) [¶](#MySQLLinkedServiceTypeProperties) ``` type MySQLLinkedServiceTypeProperties struct { // REQUIRED; The connection string. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` } ``` MySQLLinkedServiceTypeProperties - MySQL linked service properties. #### func (MySQLLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31561) [¶](#MySQLLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MySQLLinkedServiceTypeProperties](#MySQLLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MySQLLinkedServiceTypeProperties. #### func (*MySQLLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31570) [¶](#MySQLLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MySQLLinkedServiceTypeProperties](#MySQLLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MySQLLinkedServiceTypeProperties. #### type [MySQLSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18447) [¶](#MySQLSource) ``` type MySQLSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` MySQLSource - A copy activity source for MySQL databases. #### func (*MySQLSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18478) [¶](#MySQLSource.GetCopySource) added in v0.2.0 ``` func (m *[MySQLSource](#MySQLSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type MySQLSource. #### func (*MySQLSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18490) [¶](#MySQLSource.GetTabularSource) added in v0.2.0 ``` func (m *[MySQLSource](#MySQLSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type MySQLSource. #### func (MySQLSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31596) [¶](#MySQLSource.MarshalJSON) ``` func (m [MySQLSource](#MySQLSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MySQLSource. #### func (*MySQLSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31615) [¶](#MySQLSource.UnmarshalJSON) ``` func (m *[MySQLSource](#MySQLSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MySQLSource. #### type [MySQLTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18504) [¶](#MySQLTableDataset) ``` type MySQLTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // MySQL table dataset properties. TypeProperties *[MySQLTableDatasetTypeProperties](#MySQLTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` MySQLTableDataset - The MySQL table dataset. #### func (*MySQLTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18538) [¶](#MySQLTableDataset.GetDataset) added in v0.2.0 ``` func (m *[MySQLTableDataset](#MySQLTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type MySQLTableDataset. #### func (MySQLTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31666) [¶](#MySQLTableDataset.MarshalJSON) ``` func (m [MySQLTableDataset](#MySQLTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MySQLTableDataset. #### func (*MySQLTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31686) [¶](#MySQLTableDataset.UnmarshalJSON) ``` func (m *[MySQLTableDataset](#MySQLTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MySQLTableDataset. #### type [MySQLTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18553) [¶](#MySQLTableDatasetTypeProperties) ``` type MySQLTableDatasetTypeProperties struct { // The MySQL table name. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` MySQLTableDatasetTypeProperties - MySql table dataset properties. #### func (MySQLTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31740) [¶](#MySQLTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (m [MySQLTableDatasetTypeProperties](#MySQLTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type MySQLTableDatasetTypeProperties. #### func (*MySQLTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31747) [¶](#MySQLTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (m *[MySQLTableDatasetTypeProperties](#MySQLTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type MySQLTableDatasetTypeProperties. #### type [NetezzaLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18559) [¶](#NetezzaLinkedService) ``` type NetezzaLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Netezza linked service properties. TypeProperties *[NetezzaLinkedServiceTypeProperties](#NetezzaLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` NetezzaLinkedService - Netezza linked service. #### func (*NetezzaLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18583) [¶](#NetezzaLinkedService.GetLinkedService) added in v0.2.0 ``` func (n *[NetezzaLinkedService](#NetezzaLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type NetezzaLinkedService. #### func (NetezzaLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31767) [¶](#NetezzaLinkedService.MarshalJSON) ``` func (n [NetezzaLinkedService](#NetezzaLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type NetezzaLinkedService. #### func (*NetezzaLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31784) [¶](#NetezzaLinkedService.UnmarshalJSON) ``` func (n *[NetezzaLinkedService](#NetezzaLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaLinkedService. #### type [NetezzaLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18595) [¶](#NetezzaLinkedServiceTypeProperties) ``` type NetezzaLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"pwd,omitempty"` } ``` NetezzaLinkedServiceTypeProperties - Netezza linked service properties. #### func (NetezzaLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31829) [¶](#NetezzaLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (n [NetezzaLinkedServiceTypeProperties](#NetezzaLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type NetezzaLinkedServiceTypeProperties. #### func (*NetezzaLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31838) [¶](#NetezzaLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (n *[NetezzaLinkedServiceTypeProperties](#NetezzaLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaLinkedServiceTypeProperties. #### type [NetezzaPartitionOption](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1045) [¶](#NetezzaPartitionOption) ``` type NetezzaPartitionOption [string](/builtin#string) ``` NetezzaPartitionOption - The partition mechanism that will be used for Netezza read in parallel. ``` const ( NetezzaPartitionOptionDataSlice [NetezzaPartitionOption](#NetezzaPartitionOption) = "DataSlice" NetezzaPartitionOptionDynamicRange [NetezzaPartitionOption](#NetezzaPartitionOption) = "DynamicRange" NetezzaPartitionOptionNone [NetezzaPartitionOption](#NetezzaPartitionOption) = "None" ) ``` #### func [PossibleNetezzaPartitionOptionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1054) [¶](#PossibleNetezzaPartitionOptionValues) ``` func PossibleNetezzaPartitionOptionValues() [][NetezzaPartitionOption](#NetezzaPartitionOption) ``` PossibleNetezzaPartitionOptionValues returns the possible values for the NetezzaPartitionOption const type. #### type [NetezzaPartitionSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18608) [¶](#NetezzaPartitionSettings) ``` type NetezzaPartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` } ``` NetezzaPartitionSettings - The settings that will be leveraged for Netezza source partitioning. #### func (NetezzaPartitionSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31864) [¶](#NetezzaPartitionSettings.MarshalJSON) added in v1.3.0 ``` func (n [NetezzaPartitionSettings](#NetezzaPartitionSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type NetezzaPartitionSettings. #### func (*NetezzaPartitionSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31873) [¶](#NetezzaPartitionSettings.UnmarshalJSON) added in v1.3.0 ``` func (n *[NetezzaPartitionSettings](#NetezzaPartitionSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaPartitionSettings. #### type [NetezzaSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18623) [¶](#NetezzaSource) ``` type NetezzaSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Netezza read in parallel. Possible values include: "None", "DataSlice", "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for Netezza source partitioning. PartitionSettings *[NetezzaPartitionSettings](#NetezzaPartitionSettings) `json:"partitionSettings,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` NetezzaSource - A copy activity Netezza source. #### func (*NetezzaSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18660) [¶](#NetezzaSource.GetCopySource) added in v0.2.0 ``` func (n *[NetezzaSource](#NetezzaSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type NetezzaSource. #### func (*NetezzaSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18672) [¶](#NetezzaSource.GetTabularSource) added in v0.2.0 ``` func (n *[NetezzaSource](#NetezzaSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type NetezzaSource. #### func (NetezzaSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31899) [¶](#NetezzaSource.MarshalJSON) ``` func (n [NetezzaSource](#NetezzaSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type NetezzaSource. #### func (*NetezzaSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31920) [¶](#NetezzaSource.UnmarshalJSON) ``` func (n *[NetezzaSource](#NetezzaSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaSource. #### type [NetezzaTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18686) [¶](#NetezzaTableDataset) ``` type NetezzaTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[NetezzaTableDatasetTypeProperties](#NetezzaTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` NetezzaTableDataset - Netezza dataset. #### func (*NetezzaTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18720) [¶](#NetezzaTableDataset.GetDataset) added in v0.2.0 ``` func (n *[NetezzaTableDataset](#NetezzaTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type NetezzaTableDataset. #### func (NetezzaTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31977) [¶](#NetezzaTableDataset.MarshalJSON) ``` func (n [NetezzaTableDataset](#NetezzaTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type NetezzaTableDataset. #### func (*NetezzaTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L31997) [¶](#NetezzaTableDataset.UnmarshalJSON) ``` func (n *[NetezzaTableDataset](#NetezzaTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaTableDataset. #### type [NetezzaTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18735) [¶](#NetezzaTableDatasetTypeProperties) ``` type NetezzaTableDatasetTypeProperties struct { // The schema name of the Netezza. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Netezza. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` NetezzaTableDatasetTypeProperties - Netezza dataset properties. #### func (NetezzaTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32051) [¶](#NetezzaTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (n [NetezzaTableDatasetTypeProperties](#NetezzaTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type NetezzaTableDatasetTypeProperties. #### func (*NetezzaTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32060) [¶](#NetezzaTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (n *[NetezzaTableDatasetTypeProperties](#NetezzaTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaTableDatasetTypeProperties. #### type [NotebookParameter](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18747) [¶](#NotebookParameter) added in v1.3.0 ``` type NotebookParameter struct { // Notebook parameter type. Type *[NotebookParameterType](#NotebookParameterType) `json:"type,omitempty"` // Notebook parameter value. Type: string (or Expression with resultType string). Value interface{} `json:"value,omitempty"` } ``` NotebookParameter - Notebook parameter. #### func (NotebookParameter) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32086) [¶](#NotebookParameter.MarshalJSON) added in v1.3.0 ``` func (n [NotebookParameter](#NotebookParameter)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type NotebookParameter. #### func (*NotebookParameter) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32094) [¶](#NotebookParameter.UnmarshalJSON) added in v1.3.0 ``` func (n *[NotebookParameter](#NotebookParameter)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type NotebookParameter. #### type [NotebookParameterType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1063) [¶](#NotebookParameterType) added in v1.3.0 ``` type NotebookParameterType [string](/builtin#string) ``` NotebookParameterType - Notebook parameter type. ``` const ( NotebookParameterTypeBool [NotebookParameterType](#NotebookParameterType) = "bool" NotebookParameterTypeFloat [NotebookParameterType](#NotebookParameterType) = "float" NotebookParameterTypeInt [NotebookParameterType](#NotebookParameterType) = "int" NotebookParameterTypeString [NotebookParameterType](#NotebookParameterType) = "string" ) ``` #### func [PossibleNotebookParameterTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1073) [¶](#PossibleNotebookParameterTypeValues) added in v1.3.0 ``` func PossibleNotebookParameterTypeValues() [][NotebookParameterType](#NotebookParameterType) ``` PossibleNotebookParameterTypeValues returns the possible values for the NotebookParameterType const type. #### type [NotebookReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1083) [¶](#NotebookReferenceType) added in v1.3.0 ``` type NotebookReferenceType [string](/builtin#string) ``` NotebookReferenceType - Synapse notebook reference type. ``` const ( NotebookReferenceTypeNotebookReference [NotebookReferenceType](#NotebookReferenceType) = "NotebookReference" ) ``` #### func [PossibleNotebookReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1090) [¶](#PossibleNotebookReferenceTypeValues) added in v1.3.0 ``` func PossibleNotebookReferenceTypeValues() [][NotebookReferenceType](#NotebookReferenceType) ``` PossibleNotebookReferenceTypeValues returns the possible values for the NotebookReferenceType const type. #### type [ODataAADServicePrincipalCredentialType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1097) [¶](#ODataAADServicePrincipalCredentialType) ``` type ODataAADServicePrincipalCredentialType [string](/builtin#string) ``` ODataAADServicePrincipalCredentialType - Specify the credential type (key or cert) is used for service principal. ``` const ( ODataAADServicePrincipalCredentialTypeServicePrincipalCert [ODataAADServicePrincipalCredentialType](#ODataAADServicePrincipalCredentialType) = "ServicePrincipalCert" ODataAADServicePrincipalCredentialTypeServicePrincipalKey [ODataAADServicePrincipalCredentialType](#ODataAADServicePrincipalCredentialType) = "ServicePrincipalKey" ) ``` #### func [PossibleODataAADServicePrincipalCredentialTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1105) [¶](#PossibleODataAADServicePrincipalCredentialTypeValues) ``` func PossibleODataAADServicePrincipalCredentialTypeValues() [][ODataAADServicePrincipalCredentialType](#ODataAADServicePrincipalCredentialType) ``` PossibleODataAADServicePrincipalCredentialTypeValues returns the possible values for the ODataAADServicePrincipalCredentialType const type. #### type [ODataAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1113) [¶](#ODataAuthenticationType) ``` type ODataAuthenticationType [string](/builtin#string) ``` ODataAuthenticationType - Type of authentication used to connect to the OData service. ``` const ( ODataAuthenticationTypeAADServicePrincipal [ODataAuthenticationType](#ODataAuthenticationType) = "AadServicePrincipal" ODataAuthenticationTypeAnonymous [ODataAuthenticationType](#ODataAuthenticationType) = "Anonymous" ODataAuthenticationTypeBasic [ODataAuthenticationType](#ODataAuthenticationType) = "Basic" ODataAuthenticationTypeManagedServiceIdentity [ODataAuthenticationType](#ODataAuthenticationType) = "ManagedServiceIdentity" ODataAuthenticationTypeWindows [ODataAuthenticationType](#ODataAuthenticationType) = "Windows" ) ``` #### func [PossibleODataAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1124) [¶](#PossibleODataAuthenticationTypeValues) ``` func PossibleODataAuthenticationTypeValues() [][ODataAuthenticationType](#ODataAuthenticationType) ``` PossibleODataAuthenticationTypeValues returns the possible values for the ODataAuthenticationType const type. #### type [ODataLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18756) [¶](#ODataLinkedService) ``` type ODataLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; OData linked service properties. TypeProperties *[ODataLinkedServiceTypeProperties](#ODataLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` ODataLinkedService - Open Data Protocol (OData) linked service. #### func (*ODataLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18780) [¶](#ODataLinkedService.GetLinkedService) added in v0.2.0 ``` func (o *[ODataLinkedService](#ODataLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type ODataLinkedService. #### func (ODataLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32117) [¶](#ODataLinkedService.MarshalJSON) ``` func (o [ODataLinkedService](#ODataLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ODataLinkedService. #### func (*ODataLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32134) [¶](#ODataLinkedService.UnmarshalJSON) ``` func (o *[ODataLinkedService](#ODataLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ODataLinkedService. #### type [ODataLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18792) [¶](#ODataLinkedServiceTypeProperties) ``` type ODataLinkedServiceTypeProperties struct { // REQUIRED; The URL of the OData service endpoint. Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // Specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). AADResourceID interface{} `json:"aadResourceId,omitempty"` // Specify the credential type (key or cert) is used for service principal. AADServicePrincipalCredentialType *[ODataAADServicePrincipalCredentialType](#ODataAADServicePrincipalCredentialType) `json:"aadServicePrincipalCredentialType,omitempty"` // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType // object). AuthHeaders interface{} `json:"authHeaders,omitempty"` // Type of authentication used to connect to the OData service. AuthenticationType *[ODataAuthenticationType](#ODataAuthenticationType) `json:"authenticationType,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password of the OData service. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression // with resultType string). ServicePrincipalEmbeddedCert [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalEmbeddedCert,omitempty"` // Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. // Type: string (or Expression with resultType string). ServicePrincipalEmbeddedCertPassword [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalEmbeddedCertPassword,omitempty"` // Specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType // string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // Specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType // string). ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // Specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression // with resultType string). Tenant interface{} `json:"tenant,omitempty"` // User name of the OData service. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` ODataLinkedServiceTypeProperties - OData linked service properties. #### func (ODataLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32179) [¶](#ODataLinkedServiceTypeProperties.MarshalJSON) ``` func (o [ODataLinkedServiceTypeProperties](#ODataLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ODataLinkedServiceTypeProperties. #### func (*ODataLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32199) [¶](#ODataLinkedServiceTypeProperties.UnmarshalJSON) ``` func (o *[ODataLinkedServiceTypeProperties](#ODataLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ODataLinkedServiceTypeProperties. #### type [ODataResourceDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18846) [¶](#ODataResourceDataset) ``` type ODataResourceDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // OData dataset properties. TypeProperties *[ODataResourceDatasetTypeProperties](#ODataResourceDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ODataResourceDataset - The Open Data Protocol (OData) resource dataset. #### func (*ODataResourceDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18880) [¶](#ODataResourceDataset.GetDataset) added in v0.2.0 ``` func (o *[ODataResourceDataset](#ODataResourceDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ODataResourceDataset. #### func (ODataResourceDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32258) [¶](#ODataResourceDataset.MarshalJSON) ``` func (o [ODataResourceDataset](#ODataResourceDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ODataResourceDataset. #### func (*ODataResourceDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32278) [¶](#ODataResourceDataset.UnmarshalJSON) ``` func (o *[ODataResourceDataset](#ODataResourceDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ODataResourceDataset. #### type [ODataResourceDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18895) [¶](#ODataResourceDatasetTypeProperties) ``` type ODataResourceDatasetTypeProperties struct { // The OData resource path. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` ODataResourceDatasetTypeProperties - OData dataset properties. #### func (ODataResourceDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32332) [¶](#ODataResourceDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (o [ODataResourceDatasetTypeProperties](#ODataResourceDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ODataResourceDatasetTypeProperties. #### func (*ODataResourceDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32339) [¶](#ODataResourceDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (o *[ODataResourceDatasetTypeProperties](#ODataResourceDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ODataResourceDatasetTypeProperties. #### type [ODataSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18901) [¶](#ODataSource) ``` type ODataSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // OData query. For example, "$top=1". Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` ODataSource - A copy activity source for OData source. #### func (*ODataSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18934) [¶](#ODataSource.GetCopySource) added in v0.2.0 ``` func (o *[ODataSource](#ODataSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ODataSource. #### func (ODataSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32359) [¶](#ODataSource.MarshalJSON) ``` func (o [ODataSource](#ODataSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ODataSource. #### func (*ODataSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32378) [¶](#ODataSource.UnmarshalJSON) ``` func (o *[ODataSource](#ODataSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ODataSource. #### type [OdbcLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18946) [¶](#OdbcLinkedService) ``` type OdbcLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; ODBC linked service properties. TypeProperties *[OdbcLinkedServiceTypeProperties](#OdbcLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` OdbcLinkedService - Open Database Connectivity (ODBC) linked service. #### func (*OdbcLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18970) [¶](#OdbcLinkedService.GetLinkedService) added in v0.2.0 ``` func (o *[OdbcLinkedService](#OdbcLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type OdbcLinkedService. #### func (OdbcLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32429) [¶](#OdbcLinkedService.MarshalJSON) ``` func (o [OdbcLinkedService](#OdbcLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OdbcLinkedService. #### func (*OdbcLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32446) [¶](#OdbcLinkedService.UnmarshalJSON) ``` func (o *[OdbcLinkedService](#OdbcLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OdbcLinkedService. #### type [OdbcLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L18982) [¶](#OdbcLinkedServiceTypeProperties) ``` type OdbcLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: // string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or // Expression with resultType string). AuthenticationType interface{} `json:"authenticationType,omitempty"` // The access credential portion of the connection string specified in driver-specific property-value format. Credential [SecretBaseClassification](#SecretBaseClassification) `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for Basic authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // User name for Basic authentication. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` OdbcLinkedServiceTypeProperties - ODBC linked service properties. #### func (OdbcLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32491) [¶](#OdbcLinkedServiceTypeProperties.MarshalJSON) ``` func (o [OdbcLinkedServiceTypeProperties](#OdbcLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OdbcLinkedServiceTypeProperties. #### func (*OdbcLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32503) [¶](#OdbcLinkedServiceTypeProperties.UnmarshalJSON) ``` func (o *[OdbcLinkedServiceTypeProperties](#OdbcLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OdbcLinkedServiceTypeProperties. #### type [OdbcSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19006) [¶](#OdbcSink) ``` type OdbcSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` OdbcSink - A copy activity ODBC sink. #### func (*OdbcSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19036) [¶](#OdbcSink.GetCopySink) added in v0.2.0 ``` func (o *[OdbcSink](#OdbcSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type OdbcSink. #### func (OdbcSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32538) [¶](#OdbcSink.MarshalJSON) ``` func (o [OdbcSink](#OdbcSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OdbcSink. #### func (*OdbcSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32557) [¶](#OdbcSink.UnmarshalJSON) ``` func (o *[OdbcSink](#OdbcSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OdbcSink. #### type [OdbcSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19050) [¶](#OdbcSource) ``` type OdbcSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` OdbcSource - A copy activity source for ODBC databases. #### func (*OdbcSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19081) [¶](#OdbcSource.GetCopySource) added in v0.2.0 ``` func (o *[OdbcSource](#OdbcSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type OdbcSource. #### func (*OdbcSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19093) [¶](#OdbcSource.GetTabularSource) added in v0.2.0 ``` func (o *[OdbcSource](#OdbcSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type OdbcSource. #### func (OdbcSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32608) [¶](#OdbcSource.MarshalJSON) ``` func (o [OdbcSource](#OdbcSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OdbcSource. #### func (*OdbcSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32627) [¶](#OdbcSource.UnmarshalJSON) ``` func (o *[OdbcSource](#OdbcSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OdbcSource. #### type [OdbcTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19107) [¶](#OdbcTableDataset) ``` type OdbcTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // ODBC table dataset properties. TypeProperties *[OdbcTableDatasetTypeProperties](#OdbcTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` OdbcTableDataset - The ODBC table dataset. #### func (*OdbcTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19141) [¶](#OdbcTableDataset.GetDataset) added in v0.2.0 ``` func (o *[OdbcTableDataset](#OdbcTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type OdbcTableDataset. #### func (OdbcTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32678) [¶](#OdbcTableDataset.MarshalJSON) ``` func (o [OdbcTableDataset](#OdbcTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OdbcTableDataset. #### func (*OdbcTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32698) [¶](#OdbcTableDataset.UnmarshalJSON) ``` func (o *[OdbcTableDataset](#OdbcTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OdbcTableDataset. #### type [OdbcTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19156) [¶](#OdbcTableDatasetTypeProperties) ``` type OdbcTableDatasetTypeProperties struct { // The ODBC table name. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` OdbcTableDatasetTypeProperties - ODBC table dataset properties. #### func (OdbcTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32752) [¶](#OdbcTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (o [OdbcTableDatasetTypeProperties](#OdbcTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OdbcTableDatasetTypeProperties. #### func (*OdbcTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32759) [¶](#OdbcTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (o *[OdbcTableDatasetTypeProperties](#OdbcTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OdbcTableDatasetTypeProperties. #### type [Office365Dataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19162) [¶](#Office365Dataset) ``` type Office365Dataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Office365 dataset properties. TypeProperties *[Office365DatasetTypeProperties](#Office365DatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` Office365Dataset - The Office365 account. #### func (*Office365Dataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19196) [¶](#Office365Dataset.GetDataset) added in v0.2.0 ``` func (o *[Office365Dataset](#Office365Dataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type Office365Dataset. #### func (Office365Dataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32779) [¶](#Office365Dataset.MarshalJSON) ``` func (o [Office365Dataset](#Office365Dataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Office365Dataset. #### func (*Office365Dataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32799) [¶](#Office365Dataset.UnmarshalJSON) ``` func (o *[Office365Dataset](#Office365Dataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Office365Dataset. #### type [Office365DatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19211) [¶](#Office365DatasetTypeProperties) ``` type Office365DatasetTypeProperties struct { // REQUIRED; Name of the dataset to extract from Office 365. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` // A predicate expression that can be used to filter the specific rows to extract from Office 365. Type: string (or Expression // with resultType string). Predicate interface{} `json:"predicate,omitempty"` } ``` Office365DatasetTypeProperties - Office365 dataset properties. #### func (Office365DatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32853) [¶](#Office365DatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (o [Office365DatasetTypeProperties](#Office365DatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Office365DatasetTypeProperties. #### func (*Office365DatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32861) [¶](#Office365DatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (o *[Office365DatasetTypeProperties](#Office365DatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Office365DatasetTypeProperties. #### type [Office365LinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19221) [¶](#Office365LinkedService) ``` type Office365LinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Office365 linked service properties. TypeProperties *[Office365LinkedServiceTypeProperties](#Office365LinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` Office365LinkedService - Office365 linked service. #### func (*Office365LinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19245) [¶](#Office365LinkedService.GetLinkedService) added in v0.2.0 ``` func (o *[Office365LinkedService](#Office365LinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type Office365LinkedService. #### func (Office365LinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32884) [¶](#Office365LinkedService.MarshalJSON) ``` func (o [Office365LinkedService](#Office365LinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Office365LinkedService. #### func (*Office365LinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32901) [¶](#Office365LinkedService.UnmarshalJSON) ``` func (o *[Office365LinkedService](#Office365LinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Office365LinkedService. #### type [Office365LinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19257) [¶](#Office365LinkedServiceTypeProperties) ``` type Office365LinkedServiceTypeProperties struct { // REQUIRED; Azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with resultType string). Office365TenantID interface{} `json:"office365TenantId,omitempty"` // REQUIRED; Specify the application's client ID. Type: string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // REQUIRED; Specify the application's key. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // REQUIRED; Specify the tenant information under which your Azure AD web application resides. Type: string (or Expression // with resultType string). ServicePrincipalTenantID interface{} `json:"servicePrincipalTenantId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` Office365LinkedServiceTypeProperties - Office365 linked service properties. #### func (Office365LinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32946) [¶](#Office365LinkedServiceTypeProperties.MarshalJSON) ``` func (o [Office365LinkedServiceTypeProperties](#Office365LinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Office365LinkedServiceTypeProperties. #### func (*Office365LinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32957) [¶](#Office365LinkedServiceTypeProperties.UnmarshalJSON) ``` func (o *[Office365LinkedServiceTypeProperties](#Office365LinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Office365LinkedServiceTypeProperties. #### type [Office365Source](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19277) [¶](#Office365Source) ``` type Office365Source struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The groups containing all the users. Type: array of strings (or Expression with resultType array of strings). AllowedGroups interface{} `json:"allowedGroups,omitempty"` // The Column to apply the and . Type: string (or Expression with resultType string). DateFilterColumn interface{} `json:"dateFilterColumn,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // End time of the requested range for this dataset. Type: string (or Expression with resultType string). EndTime interface{} `json:"endTime,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The columns to be read out from the Office 365 table. Type: array of objects (or Expression with resultType array of objects). // Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ] OutputColumns interface{} `json:"outputColumns,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Start time of the requested range for this dataset. Type: string (or Expression with resultType string). StartTime interface{} `json:"startTime,omitempty"` // The user scope uri. Type: string (or Expression with resultType string). UserScopeFilterURI interface{} `json:"userScopeFilterUri,omitempty"` } ``` Office365Source - A copy activity source for an Office 365 service. #### func (*Office365Source) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19317) [¶](#Office365Source.GetCopySource) added in v0.2.0 ``` func (o *[Office365Source](#Office365Source)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type Office365Source. #### func (Office365Source) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L32989) [¶](#Office365Source.MarshalJSON) ``` func (o [Office365Source](#Office365Source)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Office365Source. #### func (*Office365Source) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33011) [¶](#Office365Source.UnmarshalJSON) ``` func (o *[Office365Source](#Office365Source)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Office365Source. #### type [Operation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19329) [¶](#Operation) ``` type Operation struct { // Metadata associated with the operation. Display *[OperationDisplay](#OperationDisplay) `json:"display,omitempty"` // Operation name: {provider}/{resource}/{operation} Name *[string](/builtin#string) `json:"name,omitempty"` // The intended executor of the operation. Origin *[string](/builtin#string) `json:"origin,omitempty"` // Additional details about the operation. Properties *[OperationProperties](#OperationProperties) `json:"properties,omitempty"` } ``` Operation - Azure Data Factory API operation definition. #### func (Operation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33071) [¶](#Operation.MarshalJSON) added in v1.3.0 ``` func (o [Operation](#Operation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Operation. #### func (*Operation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33081) [¶](#Operation.UnmarshalJSON) added in v1.3.0 ``` func (o *[Operation](#Operation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Operation. #### type [OperationDisplay](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19344) [¶](#OperationDisplay) ``` type OperationDisplay struct { // The description of the operation. Description *[string](/builtin#string) `json:"description,omitempty"` // The type of operation: get, read, delete, etc. Operation *[string](/builtin#string) `json:"operation,omitempty"` // The name of the provider. Provider *[string](/builtin#string) `json:"provider,omitempty"` // The name of the resource type on which the operation is performed. Resource *[string](/builtin#string) `json:"resource,omitempty"` } ``` OperationDisplay - Metadata associated with the operation. #### func (OperationDisplay) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33110) [¶](#OperationDisplay.MarshalJSON) added in v1.3.0 ``` func (o [OperationDisplay](#OperationDisplay)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OperationDisplay. #### func (*OperationDisplay) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33120) [¶](#OperationDisplay.UnmarshalJSON) added in v1.3.0 ``` func (o *[OperationDisplay](#OperationDisplay)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. #### type [OperationListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19359) [¶](#OperationListResponse) ``` type OperationListResponse struct { // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` // List of Data Factory operations supported by the Data Factory resource provider. Value []*[Operation](#Operation) `json:"value,omitempty"` } ``` OperationListResponse - A list of operations that can be performed by the Data Factory service. #### func (OperationListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33149) [¶](#OperationListResponse.MarshalJSON) ``` func (o [OperationListResponse](#OperationListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OperationListResponse. #### func (*OperationListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33157) [¶](#OperationListResponse.UnmarshalJSON) added in v1.3.0 ``` func (o *[OperationListResponse](#OperationListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResponse. #### type [OperationLogSpecification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19368) [¶](#OperationLogSpecification) ``` type OperationLogSpecification struct { // Blobs created in the customer storage account, per hour. BlobDuration *[string](/builtin#string) `json:"blobDuration,omitempty"` // Localized display name. DisplayName *[string](/builtin#string) `json:"displayName,omitempty"` // The name of the log category. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` OperationLogSpecification - Details about an operation related to logs. #### func (OperationLogSpecification) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33180) [¶](#OperationLogSpecification.MarshalJSON) added in v1.3.0 ``` func (o [OperationLogSpecification](#OperationLogSpecification)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OperationLogSpecification. #### func (*OperationLogSpecification) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33189) [¶](#OperationLogSpecification.UnmarshalJSON) added in v1.3.0 ``` func (o *[OperationLogSpecification](#OperationLogSpecification)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OperationLogSpecification. #### type [OperationMetricAvailability](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19380) [¶](#OperationMetricAvailability) ``` type OperationMetricAvailability struct { // Blob created in the customer storage account, per hour. BlobDuration *[string](/builtin#string) `json:"blobDuration,omitempty"` // The granularity for the metric. TimeGrain *[string](/builtin#string) `json:"timeGrain,omitempty"` } ``` OperationMetricAvailability - Defines how often data for a metric becomes available. #### func (OperationMetricAvailability) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33215) [¶](#OperationMetricAvailability.MarshalJSON) added in v1.3.0 ``` func (o [OperationMetricAvailability](#OperationMetricAvailability)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OperationMetricAvailability. #### func (*OperationMetricAvailability) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33223) [¶](#OperationMetricAvailability.UnmarshalJSON) added in v1.3.0 ``` func (o *[OperationMetricAvailability](#OperationMetricAvailability)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetricAvailability. #### type [OperationMetricDimension](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19389) [¶](#OperationMetricDimension) ``` type OperationMetricDimension struct { // The display name of the metric dimension. DisplayName *[string](/builtin#string) `json:"displayName,omitempty"` // The name of the dimension for the metric. Name *[string](/builtin#string) `json:"name,omitempty"` // Whether the dimension should be exported to Azure Monitor. ToBeExportedForShoebox *[bool](/builtin#bool) `json:"toBeExportedForShoebox,omitempty"` } ``` OperationMetricDimension - Defines the metric dimension. #### func (OperationMetricDimension) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33246) [¶](#OperationMetricDimension.MarshalJSON) added in v1.3.0 ``` func (o [OperationMetricDimension](#OperationMetricDimension)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OperationMetricDimension. #### func (*OperationMetricDimension) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33255) [¶](#OperationMetricDimension.UnmarshalJSON) added in v1.3.0 ``` func (o *[OperationMetricDimension](#OperationMetricDimension)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetricDimension. #### type [OperationMetricSpecification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19401) [¶](#OperationMetricSpecification) ``` type OperationMetricSpecification struct { // The type of metric aggregation. AggregationType *[string](/builtin#string) `json:"aggregationType,omitempty"` // Defines how often data for metrics becomes available. Availabilities []*[OperationMetricAvailability](#OperationMetricAvailability) `json:"availabilities,omitempty"` // Defines the metric dimension. Dimensions []*[OperationMetricDimension](#OperationMetricDimension) `json:"dimensions,omitempty"` // The description of the metric. DisplayDescription *[string](/builtin#string) `json:"displayDescription,omitempty"` // Localized display name of the metric. DisplayName *[string](/builtin#string) `json:"displayName,omitempty"` // Whether or not the service is using regional MDM accounts. EnableRegionalMdmAccount *[string](/builtin#string) `json:"enableRegionalMdmAccount,omitempty"` // The name of the metric. Name *[string](/builtin#string) `json:"name,omitempty"` // The name of the MDM account. SourceMdmAccount *[string](/builtin#string) `json:"sourceMdmAccount,omitempty"` // The name of the MDM namespace. SourceMdmNamespace *[string](/builtin#string) `json:"sourceMdmNamespace,omitempty"` // The unit that the metric is measured in. Unit *[string](/builtin#string) `json:"unit,omitempty"` } ``` OperationMetricSpecification - Details about an operation related to metrics. #### func (OperationMetricSpecification) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33281) [¶](#OperationMetricSpecification.MarshalJSON) ``` func (o [OperationMetricSpecification](#OperationMetricSpecification)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OperationMetricSpecification. #### func (*OperationMetricSpecification) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33297) [¶](#OperationMetricSpecification.UnmarshalJSON) added in v1.3.0 ``` func (o *[OperationMetricSpecification](#OperationMetricSpecification)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetricSpecification. #### type [OperationProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19434) [¶](#OperationProperties) ``` type OperationProperties struct { // Details about a service operation. ServiceSpecification *[OperationServiceSpecification](#OperationServiceSpecification) `json:"serviceSpecification,omitempty"` } ``` OperationProperties - Additional details about an operation. #### func (OperationProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33344) [¶](#OperationProperties.MarshalJSON) added in v1.3.0 ``` func (o [OperationProperties](#OperationProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OperationProperties. #### func (*OperationProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33351) [¶](#OperationProperties.UnmarshalJSON) added in v1.3.0 ``` func (o *[OperationProperties](#OperationProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OperationProperties. #### type [OperationServiceSpecification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19440) [¶](#OperationServiceSpecification) ``` type OperationServiceSpecification struct { // Details about operations related to logs. LogSpecifications []*[OperationLogSpecification](#OperationLogSpecification) `json:"logSpecifications,omitempty"` // Details about operations related to metrics. MetricSpecifications []*[OperationMetricSpecification](#OperationMetricSpecification) `json:"metricSpecifications,omitempty"` } ``` OperationServiceSpecification - Details about a service operation. #### func (OperationServiceSpecification) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33371) [¶](#OperationServiceSpecification.MarshalJSON) ``` func (o [OperationServiceSpecification](#OperationServiceSpecification)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OperationServiceSpecification. #### func (*OperationServiceSpecification) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33379) [¶](#OperationServiceSpecification.UnmarshalJSON) added in v1.3.0 ``` func (o *[OperationServiceSpecification](#OperationServiceSpecification)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OperationServiceSpecification. #### type [OperationsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go#L25) [¶](#OperationsClient) ``` type OperationsClient struct { // contains filtered or unexported fields } ``` OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead. #### func [NewOperationsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go#L33) [¶](#NewOperationsClient) ``` func NewOperationsClient(credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[OperationsClient](#OperationsClient), [error](/builtin#error)) ``` NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*OperationsClient) [NewListPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go#L56) [¶](#OperationsClient.NewListPager) added in v0.5.0 ``` func (client *[OperationsClient](#OperationsClient)) NewListPager(options *[OperationsClientListOptions](#OperationsClientListOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[OperationsClientListResponse](#OperationsClientListResponse)] ``` NewListPager - Lists the available Azure Data Factory API operations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. Example [¶](#example-OperationsClient.NewListPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [OperationsClientListOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19449) [¶](#OperationsClientListOptions) added in v0.2.0 ``` type OperationsClientListOptions struct { } ``` OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. #### type [OperationsClientListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L333) [¶](#OperationsClientListResponse) added in v0.2.0 ``` type OperationsClientListResponse struct { [OperationListResponse](#OperationListResponse) } ``` OperationsClientListResponse contains the response from method OperationsClient.List. #### type [OracleCloudStorageLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19454) [¶](#OracleCloudStorageLinkedService) ``` type OracleCloudStorageLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Oracle Cloud Storage linked service properties. TypeProperties *[OracleCloudStorageLinkedServiceTypeProperties](#OracleCloudStorageLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` OracleCloudStorageLinkedService - Linked service for Oracle Cloud Storage. #### func (*OracleCloudStorageLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19478) [¶](#OracleCloudStorageLinkedService.GetLinkedService) added in v0.2.0 ``` func (o *[OracleCloudStorageLinkedService](#OracleCloudStorageLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type OracleCloudStorageLinkedService. #### func (OracleCloudStorageLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33402) [¶](#OracleCloudStorageLinkedService.MarshalJSON) ``` func (o [OracleCloudStorageLinkedService](#OracleCloudStorageLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLinkedService. #### func (*OracleCloudStorageLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33419) [¶](#OracleCloudStorageLinkedService.UnmarshalJSON) ``` func (o *[OracleCloudStorageLinkedService](#OracleCloudStorageLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleCloudStorageLinkedService. #### type [OracleCloudStorageLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19490) [¶](#OracleCloudStorageLinkedServiceTypeProperties) ``` type OracleCloudStorageLinkedServiceTypeProperties struct { // The access key identifier of the Oracle Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression // with resultType string). AccessKeyID interface{} `json:"accessKeyId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The secret access key of the Oracle Cloud Storage Identity and Access Management (IAM) user. SecretAccessKey [SecretBaseClassification](#SecretBaseClassification) `json:"secretAccessKey,omitempty"` // This value specifies the endpoint to access with the Oracle Cloud Storage Connector. This is an optional property; change // it only if you want to try a different service endpoint or want to switch // between https and http. Type: string (or Expression with resultType string). ServiceURL interface{} `json:"serviceUrl,omitempty"` } ``` OracleCloudStorageLinkedServiceTypeProperties - Oracle Cloud Storage linked service properties. #### func (OracleCloudStorageLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33464) [¶](#OracleCloudStorageLinkedServiceTypeProperties.MarshalJSON) ``` func (o [OracleCloudStorageLinkedServiceTypeProperties](#OracleCloudStorageLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLinkedServiceTypeProperties. #### func (*OracleCloudStorageLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33474) [¶](#OracleCloudStorageLinkedServiceTypeProperties.UnmarshalJSON) ``` func (o *[OracleCloudStorageLinkedServiceTypeProperties](#OracleCloudStorageLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleCloudStorageLinkedServiceTypeProperties. #### type [OracleCloudStorageLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19509) [¶](#OracleCloudStorageLocation) ``` type OracleCloudStorageLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression with resultType string) BucketName interface{} `json:"bucketName,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` // Specify the version of Oracle Cloud Storage. Type: string (or Expression with resultType string). Version interface{} `json:"version,omitempty"` } ``` OracleCloudStorageLocation - The location of Oracle Cloud Storage dataset. #### func (*OracleCloudStorageLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19530) [¶](#OracleCloudStorageLocation.GetDatasetLocation) added in v0.2.0 ``` func (o *[OracleCloudStorageLocation](#OracleCloudStorageLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type OracleCloudStorageLocation. #### func (OracleCloudStorageLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33503) [¶](#OracleCloudStorageLocation.MarshalJSON) ``` func (o [OracleCloudStorageLocation](#OracleCloudStorageLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLocation. #### func (*OracleCloudStorageLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33519) [¶](#OracleCloudStorageLocation.UnmarshalJSON) ``` func (o *[OracleCloudStorageLocation](#OracleCloudStorageLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleCloudStorageLocation. #### type [OracleCloudStorageReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19540) [¶](#OracleCloudStorageReadSettings) ``` type OracleCloudStorageReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // The prefix filter for the Oracle Cloud Storage object name. Type: string (or Expression with resultType string). Prefix interface{} `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Oracle Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` OracleCloudStorageReadSettings - Oracle Cloud Storage read settings. #### func (*OracleCloudStorageReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19588) [¶](#OracleCloudStorageReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (o *[OracleCloudStorageReadSettings](#OracleCloudStorageReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type OracleCloudStorageReadSettings. #### func (OracleCloudStorageReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33561) [¶](#OracleCloudStorageReadSettings.MarshalJSON) ``` func (o [OracleCloudStorageReadSettings](#OracleCloudStorageReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageReadSettings. #### func (*OracleCloudStorageReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33585) [¶](#OracleCloudStorageReadSettings.UnmarshalJSON) ``` func (o *[OracleCloudStorageReadSettings](#OracleCloudStorageReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleCloudStorageReadSettings. #### type [OracleLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19598) [¶](#OracleLinkedService) ``` type OracleLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Oracle database linked service properties. TypeProperties *[OracleLinkedServiceTypeProperties](#OracleLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` OracleLinkedService - Oracle database. #### func (*OracleLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19622) [¶](#OracleLinkedService.GetLinkedService) added in v0.2.0 ``` func (o *[OracleLinkedService](#OracleLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type OracleLinkedService. #### func (OracleLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33651) [¶](#OracleLinkedService.MarshalJSON) ``` func (o [OracleLinkedService](#OracleLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleLinkedService. #### func (*OracleLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33668) [¶](#OracleLinkedService.UnmarshalJSON) ``` func (o *[OracleLinkedService](#OracleLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleLinkedService. #### type [OracleLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19634) [¶](#OracleLinkedServiceTypeProperties) ``` type OracleLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` } ``` OracleLinkedServiceTypeProperties - Oracle database linked service properties. #### func (OracleLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33713) [¶](#OracleLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (o [OracleLinkedServiceTypeProperties](#OracleLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleLinkedServiceTypeProperties. #### func (*OracleLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33722) [¶](#OracleLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (o *[OracleLinkedServiceTypeProperties](#OracleLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleLinkedServiceTypeProperties. #### type [OraclePartitionOption](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1135) [¶](#OraclePartitionOption) ``` type OraclePartitionOption [string](/builtin#string) ``` OraclePartitionOption - The partition mechanism that will be used for Oracle read in parallel. ``` const ( OraclePartitionOptionDynamicRange [OraclePartitionOption](#OraclePartitionOption) = "DynamicRange" OraclePartitionOptionNone [OraclePartitionOption](#OraclePartitionOption) = "None" OraclePartitionOptionPhysicalPartitionsOfTable [OraclePartitionOption](#OraclePartitionOption) = "PhysicalPartitionsOfTable" ) ``` #### func [PossibleOraclePartitionOptionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1144) [¶](#PossibleOraclePartitionOptionValues) ``` func PossibleOraclePartitionOptionValues() [][OraclePartitionOption](#OraclePartitionOption) ``` PossibleOraclePartitionOptionValues returns the possible values for the OraclePartitionOption const type. #### type [OraclePartitionSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19647) [¶](#OraclePartitionSettings) ``` type OraclePartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` // Names of the physical partitions of Oracle table. PartitionNames interface{} `json:"partitionNames,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` } ``` OraclePartitionSettings - The settings that will be leveraged for Oracle source partitioning. #### func (OraclePartitionSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33748) [¶](#OraclePartitionSettings.MarshalJSON) added in v1.3.0 ``` func (o [OraclePartitionSettings](#OraclePartitionSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OraclePartitionSettings. #### func (*OraclePartitionSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33758) [¶](#OraclePartitionSettings.UnmarshalJSON) added in v1.3.0 ``` func (o *[OraclePartitionSettings](#OraclePartitionSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OraclePartitionSettings. #### type [OracleServiceCloudLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19665) [¶](#OracleServiceCloudLinkedService) ``` type OracleServiceCloudLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Oracle Service Cloud linked service properties. TypeProperties *[OracleServiceCloudLinkedServiceTypeProperties](#OracleServiceCloudLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` OracleServiceCloudLinkedService - Oracle Service Cloud linked service. #### func (*OracleServiceCloudLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19689) [¶](#OracleServiceCloudLinkedService.GetLinkedService) added in v0.2.0 ``` func (o *[OracleServiceCloudLinkedService](#OracleServiceCloudLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type OracleServiceCloudLinkedService. #### func (OracleServiceCloudLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33787) [¶](#OracleServiceCloudLinkedService.MarshalJSON) ``` func (o [OracleServiceCloudLinkedService](#OracleServiceCloudLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudLinkedService. #### func (*OracleServiceCloudLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33804) [¶](#OracleServiceCloudLinkedService.UnmarshalJSON) ``` func (o *[OracleServiceCloudLinkedService](#OracleServiceCloudLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleServiceCloudLinkedService. #### type [OracleServiceCloudLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19701) [¶](#OracleServiceCloudLinkedServiceTypeProperties) ``` type OracleServiceCloudLinkedServiceTypeProperties struct { // REQUIRED; The URL of the Oracle Service Cloud instance. Host interface{} `json:"host,omitempty"` // REQUIRED; The password corresponding to the user name that you provided in the username key. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // REQUIRED; The user name that you use to access Oracle Service Cloud server. Username interface{} `json:"username,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` OracleServiceCloudLinkedServiceTypeProperties - Oracle Service Cloud linked service properties. #### func (OracleServiceCloudLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33849) [¶](#OracleServiceCloudLinkedServiceTypeProperties.MarshalJSON) ``` func (o [OracleServiceCloudLinkedServiceTypeProperties](#OracleServiceCloudLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudLinkedServiceTypeProperties. #### func (*OracleServiceCloudLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33862) [¶](#OracleServiceCloudLinkedServiceTypeProperties.UnmarshalJSON) ``` func (o *[OracleServiceCloudLinkedServiceTypeProperties](#OracleServiceCloudLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleServiceCloudLinkedServiceTypeProperties. #### type [OracleServiceCloudObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19730) [¶](#OracleServiceCloudObjectDataset) ``` type OracleServiceCloudObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` OracleServiceCloudObjectDataset - Oracle Service Cloud dataset. #### func (*OracleServiceCloudObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19764) [¶](#OracleServiceCloudObjectDataset.GetDataset) added in v0.2.0 ``` func (o *[OracleServiceCloudObjectDataset](#OracleServiceCloudObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type OracleServiceCloudObjectDataset. #### func (OracleServiceCloudObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33900) [¶](#OracleServiceCloudObjectDataset.MarshalJSON) ``` func (o [OracleServiceCloudObjectDataset](#OracleServiceCloudObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudObjectDataset. #### func (*OracleServiceCloudObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33920) [¶](#OracleServiceCloudObjectDataset.UnmarshalJSON) ``` func (o *[OracleServiceCloudObjectDataset](#OracleServiceCloudObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleServiceCloudObjectDataset. #### type [OracleServiceCloudSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19779) [¶](#OracleServiceCloudSource) ``` type OracleServiceCloudSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` OracleServiceCloudSource - A copy activity Oracle Service Cloud source. #### func (*OracleServiceCloudSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19810) [¶](#OracleServiceCloudSource.GetCopySource) added in v0.2.0 ``` func (o *[OracleServiceCloudSource](#OracleServiceCloudSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type OracleServiceCloudSource. #### func (*OracleServiceCloudSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19822) [¶](#OracleServiceCloudSource.GetTabularSource) added in v0.2.0 ``` func (o *[OracleServiceCloudSource](#OracleServiceCloudSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type OracleServiceCloudSource. #### func (OracleServiceCloudSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33974) [¶](#OracleServiceCloudSource.MarshalJSON) ``` func (o [OracleServiceCloudSource](#OracleServiceCloudSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudSource. #### func (*OracleServiceCloudSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L33993) [¶](#OracleServiceCloudSource.UnmarshalJSON) ``` func (o *[OracleServiceCloudSource](#OracleServiceCloudSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleServiceCloudSource. #### type [OracleSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19836) [¶](#OracleSink) ``` type OracleSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` OracleSink - A copy activity Oracle sink. #### func (*OracleSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19866) [¶](#OracleSink.GetCopySink) added in v0.2.0 ``` func (o *[OracleSink](#OracleSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type OracleSink. #### func (OracleSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34044) [¶](#OracleSink.MarshalJSON) ``` func (o [OracleSink](#OracleSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleSink. #### func (*OracleSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34063) [¶](#OracleSink.UnmarshalJSON) ``` func (o *[OracleSink](#OracleSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleSink. #### type [OracleSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19880) [¶](#OracleSource) ``` type OracleSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Oracle reader query. Type: string (or Expression with resultType string). OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` // The partition mechanism that will be used for Oracle read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for Oracle source partitioning. PartitionSettings *[OraclePartitionSettings](#OraclePartitionSettings) `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` OracleSource - A copy activity Oracle source. #### func (*OracleSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19918) [¶](#OracleSource.GetCopySource) added in v0.2.0 ``` func (o *[OracleSource](#OracleSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type OracleSource. #### func (OracleSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34114) [¶](#OracleSource.MarshalJSON) ``` func (o [OracleSource](#OracleSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleSource. #### func (*OracleSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34135) [¶](#OracleSource.UnmarshalJSON) ``` func (o *[OracleSource](#OracleSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleSource. #### type [OracleTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19930) [¶](#OracleTableDataset) ``` type OracleTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // On-premises Oracle dataset properties. TypeProperties *[OracleTableDatasetTypeProperties](#OracleTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` OracleTableDataset - The on-premises Oracle database dataset. #### func (*OracleTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19964) [¶](#OracleTableDataset.GetDataset) added in v0.2.0 ``` func (o *[OracleTableDataset](#OracleTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type OracleTableDataset. #### func (OracleTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34192) [¶](#OracleTableDataset.MarshalJSON) ``` func (o [OracleTableDataset](#OracleTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleTableDataset. #### func (*OracleTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34212) [¶](#OracleTableDataset.UnmarshalJSON) ``` func (o *[OracleTableDataset](#OracleTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleTableDataset. #### type [OracleTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19979) [¶](#OracleTableDatasetTypeProperties) ``` type OracleTableDatasetTypeProperties struct { // The schema name of the on-premises Oracle database. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the on-premises Oracle database. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` OracleTableDatasetTypeProperties - On-premises Oracle dataset properties. #### func (OracleTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34266) [¶](#OracleTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (o [OracleTableDatasetTypeProperties](#OracleTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OracleTableDatasetTypeProperties. #### func (*OracleTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34275) [¶](#OracleTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (o *[OracleTableDatasetTypeProperties](#OracleTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OracleTableDatasetTypeProperties. #### type [OrcCompressionCodec](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1152) [¶](#OrcCompressionCodec) ``` type OrcCompressionCodec [string](/builtin#string) ``` ``` const ( OrcCompressionCodecLzo [OrcCompressionCodec](#OrcCompressionCodec) = "lzo" OrcCompressionCodecNone [OrcCompressionCodec](#OrcCompressionCodec) = "none" OrcCompressionCodecSnappy [OrcCompressionCodec](#OrcCompressionCodec) = "snappy" OrcCompressionCodecZlib [OrcCompressionCodec](#OrcCompressionCodec) = "zlib" ) ``` #### func [PossibleOrcCompressionCodecValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1162) [¶](#PossibleOrcCompressionCodecValues) ``` func PossibleOrcCompressionCodecValues() [][OrcCompressionCodec](#OrcCompressionCodec) ``` PossibleOrcCompressionCodecValues returns the possible values for the OrcCompressionCodec const type. #### type [OrcDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L19991) [¶](#OrcDataset) ``` type OrcDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // ORC dataset properties. TypeProperties *[OrcDatasetTypeProperties](#OrcDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` OrcDataset - ORC dataset. #### func (*OrcDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20025) [¶](#OrcDataset.GetDataset) added in v0.2.0 ``` func (o *[OrcDataset](#OrcDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type OrcDataset. #### func (OrcDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34301) [¶](#OrcDataset.MarshalJSON) ``` func (o [OrcDataset](#OrcDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OrcDataset. #### func (*OrcDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34321) [¶](#OrcDataset.UnmarshalJSON) ``` func (o *[OrcDataset](#OrcDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OrcDataset. #### type [OrcDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20040) [¶](#OrcDatasetTypeProperties) ``` type OrcDatasetTypeProperties struct { // REQUIRED; The location of the ORC data storage. Location [DatasetLocationClassification](#DatasetLocationClassification) `json:"location,omitempty"` // The data orcCompressionCodec. Type: string (or Expression with resultType string). OrcCompressionCodec interface{} `json:"orcCompressionCodec,omitempty"` } ``` OrcDatasetTypeProperties - ORC dataset properties. #### func (OrcDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34375) [¶](#OrcDatasetTypeProperties.MarshalJSON) ``` func (o [OrcDatasetTypeProperties](#OrcDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OrcDatasetTypeProperties. #### func (*OrcDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34383) [¶](#OrcDatasetTypeProperties.UnmarshalJSON) ``` func (o *[OrcDatasetTypeProperties](#OrcDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OrcDatasetTypeProperties. #### type [OrcFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20049) [¶](#OrcFormat) ``` type OrcFormat struct { // REQUIRED; Type of dataset storage format. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Deserializer. Type: string (or Expression with resultType string). Deserializer interface{} `json:"deserializer,omitempty"` // Serializer. Type: string (or Expression with resultType string). Serializer interface{} `json:"serializer,omitempty"` } ``` OrcFormat - The data stored in Optimized Row Columnar (ORC) format. #### func (*OrcFormat) [GetDatasetStorageFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20064) [¶](#OrcFormat.GetDatasetStorageFormat) added in v0.2.0 ``` func (o *[OrcFormat](#OrcFormat)) GetDatasetStorageFormat() *[DatasetStorageFormat](#DatasetStorageFormat) ``` GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type OrcFormat. #### func (OrcFormat) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34406) [¶](#OrcFormat.MarshalJSON) ``` func (o [OrcFormat](#OrcFormat)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OrcFormat. #### func (*OrcFormat) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34420) [¶](#OrcFormat.UnmarshalJSON) added in v0.2.0 ``` func (o *[OrcFormat](#OrcFormat)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OrcFormat. #### type [OrcSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20074) [¶](#OrcSink) ``` type OrcSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // ORC format settings. FormatSettings *[OrcWriteSettings](#OrcWriteSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // ORC store settings. StoreSettings [StoreWriteSettingsClassification](#StoreWriteSettingsClassification) `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` OrcSink - A copy activity ORC sink. #### func (*OrcSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20107) [¶](#OrcSink.GetCopySink) added in v0.2.0 ``` func (o *[OrcSink](#OrcSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type OrcSink. #### func (OrcSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34456) [¶](#OrcSink.MarshalJSON) ``` func (o [OrcSink](#OrcSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OrcSink. #### func (*OrcSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34476) [¶](#OrcSink.UnmarshalJSON) ``` func (o *[OrcSink](#OrcSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OrcSink. #### type [OrcSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20121) [¶](#OrcSource) ``` type OrcSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // ORC store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` OrcSource - A copy activity ORC source. #### func (*OrcSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20149) [¶](#OrcSource.GetCopySource) added in v0.2.0 ``` func (o *[OrcSource](#OrcSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type OrcSource. #### func (OrcSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34530) [¶](#OrcSource.MarshalJSON) ``` func (o [OrcSource](#OrcSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OrcSource. #### func (*OrcSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34548) [¶](#OrcSource.UnmarshalJSON) ``` func (o *[OrcSource](#OrcSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OrcSource. #### type [OrcWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20161) [¶](#OrcWriteSettings) ``` type OrcWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` } ``` OrcWriteSettings - Orc write settings. #### func (*OrcWriteSettings) [GetFormatWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20178) [¶](#OrcWriteSettings.GetFormatWriteSettings) added in v0.2.0 ``` func (o *[OrcWriteSettings](#OrcWriteSettings)) GetFormatWriteSettings() *[FormatWriteSettings](#FormatWriteSettings) ``` GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type OrcWriteSettings. #### func (OrcWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34596) [¶](#OrcWriteSettings.MarshalJSON) ``` func (o [OrcWriteSettings](#OrcWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type OrcWriteSettings. #### func (*OrcWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34610) [¶](#OrcWriteSettings.UnmarshalJSON) ``` func (o *[OrcWriteSettings](#OrcWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type OrcWriteSettings. #### type [PackageStore](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20186) [¶](#PackageStore) ``` type PackageStore struct { // REQUIRED; The name of the package store Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; The package store linked service reference. PackageStoreLinkedService *[EntityReference](#EntityReference) `json:"packageStoreLinkedService,omitempty"` } ``` PackageStore - Package store for the SSIS integration runtime. #### func (PackageStore) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34646) [¶](#PackageStore.MarshalJSON) added in v1.3.0 ``` func (p [PackageStore](#PackageStore)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PackageStore. #### func (*PackageStore) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34654) [¶](#PackageStore.UnmarshalJSON) added in v1.3.0 ``` func (p *[PackageStore](#PackageStore)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PackageStore. #### type [ParameterSpecification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20195) [¶](#ParameterSpecification) ``` type ParameterSpecification struct { // REQUIRED; Parameter type. Type *[ParameterType](#ParameterType) `json:"type,omitempty"` // Default value of parameter. DefaultValue interface{} `json:"defaultValue,omitempty"` } ``` ParameterSpecification - Definition of a single parameter for an entity. #### func (ParameterSpecification) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34677) [¶](#ParameterSpecification.MarshalJSON) added in v1.3.0 ``` func (p [ParameterSpecification](#ParameterSpecification)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ParameterSpecification. #### func (*ParameterSpecification) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34685) [¶](#ParameterSpecification.UnmarshalJSON) added in v1.3.0 ``` func (p *[ParameterSpecification](#ParameterSpecification)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ParameterSpecification. #### type [ParameterType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1172) [¶](#ParameterType) ``` type ParameterType [string](/builtin#string) ``` ParameterType - Parameter type. ``` const ( ParameterTypeArray [ParameterType](#ParameterType) = "Array" ParameterTypeBool [ParameterType](#ParameterType) = "Bool" ParameterTypeFloat [ParameterType](#ParameterType) = "Float" ParameterTypeInt [ParameterType](#ParameterType) = "Int" ParameterTypeObject [ParameterType](#ParameterType) = "Object" ParameterTypeSecureString [ParameterType](#ParameterType) = "SecureString" ParameterTypeString [ParameterType](#ParameterType) = "String" ) ``` #### func [PossibleParameterTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1185) [¶](#PossibleParameterTypeValues) ``` func PossibleParameterTypeValues() [][ParameterType](#ParameterType) ``` PossibleParameterTypeValues returns the possible values for the ParameterType const type. #### type [ParquetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20204) [¶](#ParquetDataset) ``` type ParquetDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Parquet dataset properties. TypeProperties *[ParquetDatasetTypeProperties](#ParquetDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ParquetDataset - Parquet dataset. #### func (*ParquetDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20238) [¶](#ParquetDataset.GetDataset) added in v0.2.0 ``` func (p *[ParquetDataset](#ParquetDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ParquetDataset. #### func (ParquetDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34708) [¶](#ParquetDataset.MarshalJSON) ``` func (p [ParquetDataset](#ParquetDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ParquetDataset. #### func (*ParquetDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34728) [¶](#ParquetDataset.UnmarshalJSON) ``` func (p *[ParquetDataset](#ParquetDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ParquetDataset. #### type [ParquetDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20253) [¶](#ParquetDatasetTypeProperties) ``` type ParquetDatasetTypeProperties struct { // REQUIRED; The location of the parquet storage. Location [DatasetLocationClassification](#DatasetLocationClassification) `json:"location,omitempty"` // The data compressionCodec. Type: string (or Expression with resultType string). CompressionCodec interface{} `json:"compressionCodec,omitempty"` } ``` ParquetDatasetTypeProperties - Parquet dataset properties. #### func (ParquetDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34782) [¶](#ParquetDatasetTypeProperties.MarshalJSON) ``` func (p [ParquetDatasetTypeProperties](#ParquetDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ParquetDatasetTypeProperties. #### func (*ParquetDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34790) [¶](#ParquetDatasetTypeProperties.UnmarshalJSON) ``` func (p *[ParquetDatasetTypeProperties](#ParquetDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ParquetDatasetTypeProperties. #### type [ParquetFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20262) [¶](#ParquetFormat) ``` type ParquetFormat struct { // REQUIRED; Type of dataset storage format. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Deserializer. Type: string (or Expression with resultType string). Deserializer interface{} `json:"deserializer,omitempty"` // Serializer. Type: string (or Expression with resultType string). Serializer interface{} `json:"serializer,omitempty"` } ``` ParquetFormat - The data stored in Parquet format. #### func (*ParquetFormat) [GetDatasetStorageFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20277) [¶](#ParquetFormat.GetDatasetStorageFormat) added in v0.2.0 ``` func (p *[ParquetFormat](#ParquetFormat)) GetDatasetStorageFormat() *[DatasetStorageFormat](#DatasetStorageFormat) ``` GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type ParquetFormat. #### func (ParquetFormat) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34813) [¶](#ParquetFormat.MarshalJSON) ``` func (p [ParquetFormat](#ParquetFormat)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ParquetFormat. #### func (*ParquetFormat) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34827) [¶](#ParquetFormat.UnmarshalJSON) added in v0.2.0 ``` func (p *[ParquetFormat](#ParquetFormat)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ParquetFormat. #### type [ParquetSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20287) [¶](#ParquetSink) ``` type ParquetSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Parquet format settings. FormatSettings *[ParquetWriteSettings](#ParquetWriteSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Parquet store settings. StoreSettings [StoreWriteSettingsClassification](#StoreWriteSettingsClassification) `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` ParquetSink - A copy activity Parquet sink. #### func (*ParquetSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20320) [¶](#ParquetSink.GetCopySink) added in v0.2.0 ``` func (p *[ParquetSink](#ParquetSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type ParquetSink. #### func (ParquetSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34863) [¶](#ParquetSink.MarshalJSON) ``` func (p [ParquetSink](#ParquetSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ParquetSink. #### func (*ParquetSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34883) [¶](#ParquetSink.UnmarshalJSON) ``` func (p *[ParquetSink](#ParquetSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ParquetSink. #### type [ParquetSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20334) [¶](#ParquetSource) ``` type ParquetSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Parquet store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` ParquetSource - A copy activity Parquet source. #### func (*ParquetSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20362) [¶](#ParquetSource.GetCopySource) added in v0.2.0 ``` func (p *[ParquetSource](#ParquetSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ParquetSource. #### func (ParquetSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34937) [¶](#ParquetSource.MarshalJSON) ``` func (p [ParquetSource](#ParquetSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ParquetSource. #### func (*ParquetSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L34955) [¶](#ParquetSource.UnmarshalJSON) ``` func (p *[ParquetSource](#ParquetSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ParquetSource. #### type [ParquetWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20374) [¶](#ParquetWriteSettings) ``` type ParquetWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` } ``` ParquetWriteSettings - Parquet write settings. #### func (*ParquetWriteSettings) [GetFormatWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20391) [¶](#ParquetWriteSettings.GetFormatWriteSettings) added in v0.2.0 ``` func (p *[ParquetWriteSettings](#ParquetWriteSettings)) GetFormatWriteSettings() *[FormatWriteSettings](#FormatWriteSettings) ``` GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type ParquetWriteSettings. #### func (ParquetWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35003) [¶](#ParquetWriteSettings.MarshalJSON) ``` func (p [ParquetWriteSettings](#ParquetWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ParquetWriteSettings. #### func (*ParquetWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35017) [¶](#ParquetWriteSettings.UnmarshalJSON) ``` func (p *[ParquetWriteSettings](#ParquetWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ParquetWriteSettings. #### type [PaypalLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20399) [¶](#PaypalLinkedService) ``` type PaypalLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Paypal Service linked service properties. TypeProperties *[PaypalLinkedServiceTypeProperties](#PaypalLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` PaypalLinkedService - Paypal Service linked service. #### func (*PaypalLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20423) [¶](#PaypalLinkedService.GetLinkedService) added in v0.2.0 ``` func (p *[PaypalLinkedService](#PaypalLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type PaypalLinkedService. #### func (PaypalLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35053) [¶](#PaypalLinkedService.MarshalJSON) ``` func (p [PaypalLinkedService](#PaypalLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PaypalLinkedService. #### func (*PaypalLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35070) [¶](#PaypalLinkedService.UnmarshalJSON) ``` func (p *[PaypalLinkedService](#PaypalLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PaypalLinkedService. #### type [PaypalLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20435) [¶](#PaypalLinkedServiceTypeProperties) ``` type PaypalLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with your PayPal application. ClientID interface{} `json:"clientId,omitempty"` // REQUIRED; The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) Host interface{} `json:"host,omitempty"` // The client secret associated with your PayPal application. ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` PaypalLinkedServiceTypeProperties - Paypal Service linked service properties. #### func (PaypalLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35115) [¶](#PaypalLinkedServiceTypeProperties.MarshalJSON) ``` func (p [PaypalLinkedServiceTypeProperties](#PaypalLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PaypalLinkedServiceTypeProperties. #### func (*PaypalLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35128) [¶](#PaypalLinkedServiceTypeProperties.UnmarshalJSON) ``` func (p *[PaypalLinkedServiceTypeProperties](#PaypalLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PaypalLinkedServiceTypeProperties. #### type [PaypalObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20461) [¶](#PaypalObjectDataset) ``` type PaypalObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` PaypalObjectDataset - Paypal Service dataset. #### func (*PaypalObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20495) [¶](#PaypalObjectDataset.GetDataset) added in v0.2.0 ``` func (p *[PaypalObjectDataset](#PaypalObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type PaypalObjectDataset. #### func (PaypalObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35166) [¶](#PaypalObjectDataset.MarshalJSON) ``` func (p [PaypalObjectDataset](#PaypalObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PaypalObjectDataset. #### func (*PaypalObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35186) [¶](#PaypalObjectDataset.UnmarshalJSON) ``` func (p *[PaypalObjectDataset](#PaypalObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PaypalObjectDataset. #### type [PaypalSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20510) [¶](#PaypalSource) ``` type PaypalSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` PaypalSource - A copy activity Paypal Service source. #### func (*PaypalSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20541) [¶](#PaypalSource.GetCopySource) added in v0.2.0 ``` func (p *[PaypalSource](#PaypalSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type PaypalSource. #### func (*PaypalSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20553) [¶](#PaypalSource.GetTabularSource) added in v0.2.0 ``` func (p *[PaypalSource](#PaypalSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type PaypalSource. #### func (PaypalSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35240) [¶](#PaypalSource.MarshalJSON) ``` func (p [PaypalSource](#PaypalSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PaypalSource. #### func (*PaypalSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35259) [¶](#PaypalSource.UnmarshalJSON) ``` func (p *[PaypalSource](#PaypalSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PaypalSource. #### type [PhoenixAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1198) [¶](#PhoenixAuthenticationType) ``` type PhoenixAuthenticationType [string](/builtin#string) ``` PhoenixAuthenticationType - The authentication mechanism used to connect to the Phoenix server. ``` const ( PhoenixAuthenticationTypeAnonymous [PhoenixAuthenticationType](#PhoenixAuthenticationType) = "Anonymous" PhoenixAuthenticationTypeUsernameAndPassword [PhoenixAuthenticationType](#PhoenixAuthenticationType) = "UsernameAndPassword" PhoenixAuthenticationTypeWindowsAzureHDInsightService [PhoenixAuthenticationType](#PhoenixAuthenticationType) = "WindowsAzureHDInsightService" ) ``` #### func [PossiblePhoenixAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1207) [¶](#PossiblePhoenixAuthenticationTypeValues) ``` func PossiblePhoenixAuthenticationTypeValues() [][PhoenixAuthenticationType](#PhoenixAuthenticationType) ``` PossiblePhoenixAuthenticationTypeValues returns the possible values for the PhoenixAuthenticationType const type. #### type [PhoenixDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20567) [¶](#PhoenixDatasetTypeProperties) ``` type PhoenixDatasetTypeProperties struct { // The schema name of the Phoenix. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Phoenix. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` PhoenixDatasetTypeProperties - Phoenix Dataset Properties #### func (PhoenixDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35310) [¶](#PhoenixDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (p [PhoenixDatasetTypeProperties](#PhoenixDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PhoenixDatasetTypeProperties. #### func (*PhoenixDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35319) [¶](#PhoenixDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (p *[PhoenixDatasetTypeProperties](#PhoenixDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PhoenixDatasetTypeProperties. #### type [PhoenixLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20579) [¶](#PhoenixLinkedService) ``` type PhoenixLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Phoenix server linked service properties. TypeProperties *[PhoenixLinkedServiceTypeProperties](#PhoenixLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` PhoenixLinkedService - Phoenix server linked service. #### func (*PhoenixLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20603) [¶](#PhoenixLinkedService.GetLinkedService) added in v0.2.0 ``` func (p *[PhoenixLinkedService](#PhoenixLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type PhoenixLinkedService. #### func (PhoenixLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35345) [¶](#PhoenixLinkedService.MarshalJSON) ``` func (p [PhoenixLinkedService](#PhoenixLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PhoenixLinkedService. #### func (*PhoenixLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35362) [¶](#PhoenixLinkedService.UnmarshalJSON) ``` func (p *[PhoenixLinkedService](#PhoenixLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PhoenixLinkedService. #### type [PhoenixLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20615) [¶](#PhoenixLinkedServiceTypeProperties) ``` type PhoenixLinkedServiceTypeProperties struct { // REQUIRED; The authentication mechanism used to connect to the Phoenix server. AuthenticationType *[PhoenixAuthenticationType](#PhoenixAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The IP address or host name of the Phoenix server. (i.e. 192.168.222.160) Host interface{} `json:"host,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. EnableSSL interface{} `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The partial URL corresponding to the Phoenix server. (i.e. /gateway/sandbox/phoenix/version). The default value is hbasephoenix // if using WindowsAzureHDInsightService. HTTPPath interface{} `json:"httpPath,omitempty"` // The password corresponding to the user name. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port that the Phoenix server uses to listen for client connections. The default value is 8765. Port interface{} `json:"port,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` // The user name used to connect to the Phoenix server. Username interface{} `json:"username,omitempty"` } ``` PhoenixLinkedServiceTypeProperties - Phoenix server linked service properties. #### func (PhoenixLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35407) [¶](#PhoenixLinkedServiceTypeProperties.MarshalJSON) ``` func (p [PhoenixLinkedServiceTypeProperties](#PhoenixLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PhoenixLinkedServiceTypeProperties. #### func (*PhoenixLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35425) [¶](#PhoenixLinkedServiceTypeProperties.UnmarshalJSON) ``` func (p *[PhoenixLinkedServiceTypeProperties](#PhoenixLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PhoenixLinkedServiceTypeProperties. #### type [PhoenixObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20660) [¶](#PhoenixObjectDataset) ``` type PhoenixObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[PhoenixDatasetTypeProperties](#PhoenixDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` PhoenixObjectDataset - Phoenix server dataset. #### func (*PhoenixObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20694) [¶](#PhoenixObjectDataset.GetDataset) added in v0.2.0 ``` func (p *[PhoenixObjectDataset](#PhoenixObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type PhoenixObjectDataset. #### func (PhoenixObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35478) [¶](#PhoenixObjectDataset.MarshalJSON) ``` func (p [PhoenixObjectDataset](#PhoenixObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PhoenixObjectDataset. #### func (*PhoenixObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35498) [¶](#PhoenixObjectDataset.UnmarshalJSON) ``` func (p *[PhoenixObjectDataset](#PhoenixObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PhoenixObjectDataset. #### type [PhoenixSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20709) [¶](#PhoenixSource) ``` type PhoenixSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` PhoenixSource - A copy activity Phoenix server source. #### func (*PhoenixSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20740) [¶](#PhoenixSource.GetCopySource) added in v0.2.0 ``` func (p *[PhoenixSource](#PhoenixSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type PhoenixSource. #### func (*PhoenixSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20752) [¶](#PhoenixSource.GetTabularSource) added in v0.2.0 ``` func (p *[PhoenixSource](#PhoenixSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type PhoenixSource. #### func (PhoenixSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35552) [¶](#PhoenixSource.MarshalJSON) ``` func (p [PhoenixSource](#PhoenixSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PhoenixSource. #### func (*PhoenixSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35571) [¶](#PhoenixSource.UnmarshalJSON) ``` func (p *[PhoenixSource](#PhoenixSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PhoenixSource. #### type [Pipeline](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20766) [¶](#Pipeline) ``` type Pipeline struct { // List of activities in pipeline. Activities [][ActivityClassification](#ActivityClassification) `json:"activities,omitempty"` // List of tags that can be used for describing the Pipeline. Annotations []interface{} `json:"annotations,omitempty"` // The max number of concurrent runs for the pipeline. Concurrency *[int32](/builtin#int32) `json:"concurrency,omitempty"` // The description of the pipeline. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. Folder *[PipelineFolder](#PipelineFolder) `json:"folder,omitempty"` // List of parameters for pipeline. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Pipeline Policy. Policy *[PipelinePolicy](#PipelinePolicy) `json:"policy,omitempty"` // Dimensions emitted by Pipeline. RunDimensions map[[string](/builtin#string)]interface{} `json:"runDimensions,omitempty"` // List of variables for pipeline. Variables map[[string](/builtin#string)]*[VariableSpecification](#VariableSpecification) `json:"variables,omitempty"` } ``` Pipeline - A data factory pipeline. #### func (Pipeline) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35622) [¶](#Pipeline.MarshalJSON) ``` func (p [Pipeline](#Pipeline)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Pipeline. #### func (*Pipeline) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35637) [¶](#Pipeline.UnmarshalJSON) ``` func (p *[Pipeline](#Pipeline)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Pipeline. #### type [PipelineElapsedTimeMetricPolicy](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20796) [¶](#PipelineElapsedTimeMetricPolicy) ``` type PipelineElapsedTimeMetricPolicy struct { // TimeSpan value, after which an Azure Monitoring Metric is fired. Duration interface{} `json:"duration,omitempty"` } ``` PipelineElapsedTimeMetricPolicy - Pipeline ElapsedTime Metric Policy. #### func (PipelineElapsedTimeMetricPolicy) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35681) [¶](#PipelineElapsedTimeMetricPolicy.MarshalJSON) added in v1.3.0 ``` func (p [PipelineElapsedTimeMetricPolicy](#PipelineElapsedTimeMetricPolicy)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelineElapsedTimeMetricPolicy. #### func (*PipelineElapsedTimeMetricPolicy) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35688) [¶](#PipelineElapsedTimeMetricPolicy.UnmarshalJSON) added in v1.3.0 ``` func (p *[PipelineElapsedTimeMetricPolicy](#PipelineElapsedTimeMetricPolicy)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelineElapsedTimeMetricPolicy. #### type [PipelineFolder](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20802) [¶](#PipelineFolder) ``` type PipelineFolder struct { // The name of the folder that this Pipeline is in. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` PipelineFolder - The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. #### func (PipelineFolder) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35708) [¶](#PipelineFolder.MarshalJSON) added in v1.3.0 ``` func (p [PipelineFolder](#PipelineFolder)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelineFolder. #### func (*PipelineFolder) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35715) [¶](#PipelineFolder.UnmarshalJSON) added in v1.3.0 ``` func (p *[PipelineFolder](#PipelineFolder)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelineFolder. #### type [PipelineListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20808) [¶](#PipelineListResponse) ``` type PipelineListResponse struct { // REQUIRED; List of pipelines. Value []*[PipelineResource](#PipelineResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` PipelineListResponse - A list of pipeline resources. #### func (PipelineListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35735) [¶](#PipelineListResponse.MarshalJSON) ``` func (p [PipelineListResponse](#PipelineListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelineListResponse. #### func (*PipelineListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35743) [¶](#PipelineListResponse.UnmarshalJSON) added in v1.3.0 ``` func (p *[PipelineListResponse](#PipelineListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelineListResponse. #### type [PipelinePolicy](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20817) [¶](#PipelinePolicy) ``` type PipelinePolicy struct { // Pipeline ElapsedTime Metric Policy. ElapsedTimeMetric *[PipelineElapsedTimeMetricPolicy](#PipelineElapsedTimeMetricPolicy) `json:"elapsedTimeMetric,omitempty"` } ``` PipelinePolicy - Pipeline Policy. #### func (PipelinePolicy) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35766) [¶](#PipelinePolicy.MarshalJSON) added in v1.3.0 ``` func (p [PipelinePolicy](#PipelinePolicy)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelinePolicy. #### func (*PipelinePolicy) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35773) [¶](#PipelinePolicy.UnmarshalJSON) added in v1.3.0 ``` func (p *[PipelinePolicy](#PipelinePolicy)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelinePolicy. #### type [PipelineReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20823) [¶](#PipelineReference) ``` type PipelineReference struct { // REQUIRED; Reference pipeline name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Pipeline reference type. Type *[PipelineReferenceType](#PipelineReferenceType) `json:"type,omitempty"` // Reference name. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` PipelineReference - Pipeline reference type. #### func (PipelineReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35793) [¶](#PipelineReference.MarshalJSON) added in v1.3.0 ``` func (p [PipelineReference](#PipelineReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelineReference. #### func (*PipelineReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35802) [¶](#PipelineReference.UnmarshalJSON) added in v1.3.0 ``` func (p *[PipelineReference](#PipelineReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelineReference. #### type [PipelineReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1216) [¶](#PipelineReferenceType) ``` type PipelineReferenceType [string](/builtin#string) ``` PipelineReferenceType - Pipeline reference type. ``` const ( PipelineReferenceTypePipelineReference [PipelineReferenceType](#PipelineReferenceType) = "PipelineReference" ) ``` #### func [PossiblePipelineReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1223) [¶](#PossiblePipelineReferenceTypeValues) ``` func PossiblePipelineReferenceTypeValues() [][PipelineReferenceType](#PipelineReferenceType) ``` PossiblePipelineReferenceTypeValues returns the possible values for the PipelineReferenceType const type. #### type [PipelineResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20835) [¶](#PipelineResource) ``` type PipelineResource struct { // REQUIRED; Properties of the pipeline. Properties *[Pipeline](#Pipeline) `json:"properties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` PipelineResource - Pipeline resource type. #### func (PipelineResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35828) [¶](#PipelineResource.MarshalJSON) ``` func (p [PipelineResource](#PipelineResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelineResource. #### func (*PipelineResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35844) [¶](#PipelineResource.UnmarshalJSON) ``` func (p *[PipelineResource](#PipelineResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelineResource. #### type [PipelineRun](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20856) [¶](#PipelineRun) ``` type PipelineRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; The duration of a pipeline run. DurationInMs *[int32](/builtin#int32) `json:"durationInMs,omitempty" azure:"ro"` // READ-ONLY; Entity that started the pipeline run. InvokedBy *[PipelineRunInvokedBy](#PipelineRunInvokedBy) `json:"invokedBy,omitempty" azure:"ro"` // READ-ONLY; Indicates if the recovered pipeline run is the latest in its group. IsLatest *[bool](/builtin#bool) `json:"isLatest,omitempty" azure:"ro"` // READ-ONLY; The last updated timestamp for the pipeline run event in ISO8601 format. LastUpdated *[time](/time).[Time](/time#Time) `json:"lastUpdated,omitempty" azure:"ro"` // READ-ONLY; The message from a pipeline run. Message *[string](/builtin#string) `json:"message,omitempty" azure:"ro"` // READ-ONLY; The full or partial list of parameter name, value pair used in the pipeline run. Parameters map[[string](/builtin#string)]*[string](/builtin#string) `json:"parameters,omitempty" azure:"ro"` // READ-ONLY; The pipeline name. PipelineName *[string](/builtin#string) `json:"pipelineName,omitempty" azure:"ro"` // READ-ONLY; Run dimensions emitted by Pipeline run. RunDimensions map[[string](/builtin#string)]*[string](/builtin#string) `json:"runDimensions,omitempty" azure:"ro"` // READ-ONLY; The end time of a pipeline run in ISO8601 format. RunEnd *[time](/time).[Time](/time#Time) `json:"runEnd,omitempty" azure:"ro"` // READ-ONLY; Identifier that correlates all the recovery runs of a pipeline run. RunGroupID *[string](/builtin#string) `json:"runGroupId,omitempty" azure:"ro"` // READ-ONLY; Identifier of a run. RunID *[string](/builtin#string) `json:"runId,omitempty" azure:"ro"` // READ-ONLY; The start time of a pipeline run in ISO8601 format. RunStart *[time](/time).[Time](/time#Time) `json:"runStart,omitempty" azure:"ro"` // READ-ONLY; The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, Canceling, Cancelled Status *[string](/builtin#string) `json:"status,omitempty" azure:"ro"` } ``` PipelineRun - Information about a pipeline run. #### func (PipelineRun) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35886) [¶](#PipelineRun.MarshalJSON) ``` func (p [PipelineRun](#PipelineRun)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelineRun. #### func (*PipelineRun) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35910) [¶](#PipelineRun.UnmarshalJSON) ``` func (p *[PipelineRun](#PipelineRun)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRun. #### type [PipelineRunInvokedBy](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20901) [¶](#PipelineRunInvokedBy) ``` type PipelineRunInvokedBy struct { // READ-ONLY; The ID of the entity that started the run. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The type of the entity that started the run. InvokedByType *[string](/builtin#string) `json:"invokedByType,omitempty" azure:"ro"` // READ-ONLY; Name of the entity that started the pipeline run. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The name of the pipeline that triggered the run, if any. PipelineName *[string](/builtin#string) `json:"pipelineName,omitempty" azure:"ro"` // READ-ONLY; The run id of the pipeline that triggered the run, if any. PipelineRunID *[string](/builtin#string) `json:"pipelineRunId,omitempty" azure:"ro"` } ``` PipelineRunInvokedBy - Provides entity name and id that started the pipeline run. #### func (PipelineRunInvokedBy) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35976) [¶](#PipelineRunInvokedBy.MarshalJSON) added in v1.3.0 ``` func (p [PipelineRunInvokedBy](#PipelineRunInvokedBy)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelineRunInvokedBy. #### func (*PipelineRunInvokedBy) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L35987) [¶](#PipelineRunInvokedBy.UnmarshalJSON) added in v1.3.0 ``` func (p *[PipelineRunInvokedBy](#PipelineRunInvokedBy)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunInvokedBy. #### type [PipelineRunsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go#L29) [¶](#PipelineRunsClient) ``` type PipelineRunsClient struct { // contains filtered or unexported fields } ``` PipelineRunsClient contains the methods for the PipelineRuns group. Don't use this type directly, use NewPipelineRunsClient() instead. #### func [NewPipelineRunsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go#L39) [¶](#NewPipelineRunsClient) ``` func NewPipelineRunsClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[PipelineRunsClient](#PipelineRunsClient), [error](/builtin#error)) ``` NewPipelineRunsClient creates a new instance of PipelineRunsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*PipelineRunsClient) [Cancel](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go#L66) [¶](#PipelineRunsClient.Cancel) ``` func (client *[PipelineRunsClient](#PipelineRunsClient)) Cancel(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), runID [string](/builtin#string), options *[PipelineRunsClientCancelOptions](#PipelineRunsClientCancelOptions)) ([PipelineRunsClientCancelResponse](#PipelineRunsClientCancelResponse), [error](/builtin#error)) ``` Cancel - Cancel a pipeline run by its run ID. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. runID - The pipeline run identifier. options - PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. Example [¶](#example-PipelineRunsClient.Cancel) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelineRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Cancel(ctx, "exampleResourceGroup", "exampleFactoryName", "16ac5348-ff82-4f95-a80d-638c1d47b721", &armdatafactory.PipelineRunsClientCancelOptions{IsRecursive: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*PipelineRunsClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go#L121) [¶](#PipelineRunsClient.Get) ``` func (client *[PipelineRunsClient](#PipelineRunsClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), runID [string](/builtin#string), options *[PipelineRunsClientGetOptions](#PipelineRunsClientGetOptions)) ([PipelineRunsClientGetResponse](#PipelineRunsClientGetResponse), [error](/builtin#error)) ``` Get - Get a pipeline run by its run ID. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. runID - The pipeline run identifier. options - PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. Example [¶](#example-PipelineRunsClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelineRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*PipelineRunsClient) [QueryByFactory](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go#L183) [¶](#PipelineRunsClient.QueryByFactory) ``` func (client *[PipelineRunsClient](#PipelineRunsClient)) QueryByFactory(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), filterParameters [RunFilterParameters](#RunFilterParameters), options *[PipelineRunsClientQueryByFactoryOptions](#PipelineRunsClientQueryByFactoryOptions)) ([PipelineRunsClientQueryByFactoryResponse](#PipelineRunsClientQueryByFactoryResponse), [error](/builtin#error)) ``` QueryByFactory - Query pipeline runs in the factory based on input filter conditions. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. filterParameters - Parameters to filter the pipeline run. options - PipelineRunsClientQueryByFactoryOptions contains the optional parameters for the PipelineRunsClient.QueryByFactory method. Example [¶](#example-PipelineRunsClient.QueryByFactory) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json> ``` package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelineRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.QueryByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.RunFilterParameters{ Filters: []*armdatafactory.RunQueryFilter{ { Operand: to.Ptr(armdatafactory.RunQueryFilterOperandPipelineName), Operator: to.Ptr(armdatafactory.RunQueryFilterOperatorEquals), Values: []*string{ to.Ptr("examplePipeline")}, }}, LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [PipelineRunsClientCancelOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20919) [¶](#PipelineRunsClientCancelOptions) added in v0.2.0 ``` type PipelineRunsClientCancelOptions struct { // If true, cancel all the Child pipelines that are triggered by the current pipeline. IsRecursive *[bool](/builtin#bool) } ``` PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. #### type [PipelineRunsClientCancelResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L338) [¶](#PipelineRunsClientCancelResponse) added in v0.2.0 ``` type PipelineRunsClientCancelResponse struct { } ``` PipelineRunsClientCancelResponse contains the response from method PipelineRunsClient.Cancel. #### type [PipelineRunsClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20925) [¶](#PipelineRunsClientGetOptions) added in v0.2.0 ``` type PipelineRunsClientGetOptions struct { } ``` PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. #### type [PipelineRunsClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L343) [¶](#PipelineRunsClientGetResponse) added in v0.2.0 ``` type PipelineRunsClientGetResponse struct { [PipelineRun](#PipelineRun) } ``` PipelineRunsClientGetResponse contains the response from method PipelineRunsClient.Get. #### type [PipelineRunsClientQueryByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20930) [¶](#PipelineRunsClientQueryByFactoryOptions) added in v0.2.0 ``` type PipelineRunsClientQueryByFactoryOptions struct { } ``` PipelineRunsClientQueryByFactoryOptions contains the optional parameters for the PipelineRunsClient.QueryByFactory method. #### type [PipelineRunsClientQueryByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L348) [¶](#PipelineRunsClientQueryByFactoryResponse) added in v0.2.0 ``` type PipelineRunsClientQueryByFactoryResponse struct { [PipelineRunsQueryResponse](#PipelineRunsQueryResponse) } ``` PipelineRunsClientQueryByFactoryResponse contains the response from method PipelineRunsClient.QueryByFactory. #### type [PipelineRunsQueryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20935) [¶](#PipelineRunsQueryResponse) ``` type PipelineRunsQueryResponse struct { // REQUIRED; List of pipeline runs. Value []*[PipelineRun](#PipelineRun) `json:"value,omitempty"` // The continuation token for getting the next page of results, if any remaining results exist, null otherwise. ContinuationToken *[string](/builtin#string) `json:"continuationToken,omitempty"` } ``` PipelineRunsQueryResponse - A list pipeline runs. #### func (PipelineRunsQueryResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36019) [¶](#PipelineRunsQueryResponse.MarshalJSON) ``` func (p [PipelineRunsQueryResponse](#PipelineRunsQueryResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PipelineRunsQueryResponse. #### func (*PipelineRunsQueryResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36027) [¶](#PipelineRunsQueryResponse.UnmarshalJSON) added in v1.3.0 ``` func (p *[PipelineRunsQueryResponse](#PipelineRunsQueryResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunsQueryResponse. #### type [PipelinesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go#L29) [¶](#PipelinesClient) ``` type PipelinesClient struct { // contains filtered or unexported fields } ``` PipelinesClient contains the methods for the Pipelines group. Don't use this type directly, use NewPipelinesClient() instead. #### func [NewPipelinesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go#L39) [¶](#NewPipelinesClient) ``` func NewPipelinesClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[PipelinesClient](#PipelinesClient), [error](/builtin#error)) ``` NewPipelinesClient creates a new instance of PipelinesClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*PipelinesClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go#L68) [¶](#PipelinesClient.CreateOrUpdate) ``` func (client *[PipelinesClient](#PipelinesClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), pipelineName [string](/builtin#string), pipeline [PipelineResource](#PipelineResource), options *[PipelinesClientCreateOrUpdateOptions](#PipelinesClientCreateOrUpdateOptions)) ([PipelinesClientCreateOrUpdateResponse](#PipelinesClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a pipeline. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. pipelineName - The pipeline name. pipeline - Pipeline resource definition. options - PipelinesClientCreateOrUpdateOptions contains the optional parameters for the PipelinesClient.CreateOrUpdate method. Example (PipelinesCreate) [¶](#example-PipelinesClient.CreateOrUpdate-PipelinesCreate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", armdatafactory.PipelineResource{ Properties: &armdatafactory.Pipeline{ Activities: []armdatafactory.ActivityClassification{ &armdatafactory.ForEachActivity{ Name: to.Ptr("ExampleForeachActivity"), Type: to.Ptr("ForEach"), TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ Activities: []armdatafactory.ActivityClassification{ &armdatafactory.CopyActivity{ Name: to.Ptr("ExampleCopyActivity"), Type: to.Ptr("Copy"), Inputs: []*armdatafactory.DatasetReference{ { Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), Parameters: map[string]interface{}{ "MyFileName": "examplecontainer.csv", "MyFolderPath": "examplecontainer", }, ReferenceName: to.Ptr("exampleDataset"), }}, Outputs: []*armdatafactory.DatasetReference{ { Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), Parameters: map[string]interface{}{ "MyFileName": map[string]interface{}{ "type": "Expression", "value": "@item()", }, "MyFolderPath": "examplecontainer", }, ReferenceName: to.Ptr("exampleDataset"), }}, TypeProperties: &armdatafactory.CopyActivityTypeProperties{ DataIntegrationUnits: float64(32), Sink: &armdatafactory.BlobSink{ Type: to.Ptr("BlobSink"), }, Source: &armdatafactory.BlobSource{ Type: to.Ptr("BlobSource"), }, }, }}, IsSequential: to.Ptr(true), Items: &armdatafactory.Expression{ Type: to.Ptr(armdatafactory.ExpressionTypeExpression), Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), }, }, }}, Parameters: map[string]*armdatafactory.ParameterSpecification{ "JobId": { Type: to.Ptr(armdatafactory.ParameterTypeString), }, "OutputBlobNameList": { Type: to.Ptr(armdatafactory.ParameterTypeArray), }, }, Policy: &armdatafactory.PipelinePolicy{ ElapsedTimeMetric: &armdatafactory.PipelineElapsedTimeMetricPolicy{ Duration: "0.00:10:00", }, }, RunDimensions: map[string]interface{}{ "JobId": map[string]interface{}{ "type": "Expression", "value": "@pipeline().parameters.JobId", }, }, Variables: map[string]*armdatafactory.VariableSpecification{ "TestVariableArray": { Type: to.Ptr(armdatafactory.VariableTypeArray), }, }, }, }, &armdatafactory.PipelinesClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run Example (PipelinesUpdate) [¶](#example-PipelinesClient.CreateOrUpdate-PipelinesUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", armdatafactory.PipelineResource{ Properties: &armdatafactory.Pipeline{ Description: to.Ptr("Example description"), Activities: []armdatafactory.ActivityClassification{ &armdatafactory.ForEachActivity{ Name: to.Ptr("ExampleForeachActivity"), Type: to.Ptr("ForEach"), TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ Activities: []armdatafactory.ActivityClassification{ &armdatafactory.CopyActivity{ Name: to.Ptr("ExampleCopyActivity"), Type: to.Ptr("Copy"), Inputs: []*armdatafactory.DatasetReference{ { Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), Parameters: map[string]interface{}{ "MyFileName": "examplecontainer.csv", "MyFolderPath": "examplecontainer", }, ReferenceName: to.Ptr("exampleDataset"), }}, Outputs: []*armdatafactory.DatasetReference{ { Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), Parameters: map[string]interface{}{ "MyFileName": map[string]interface{}{ "type": "Expression", "value": "@item()", }, "MyFolderPath": "examplecontainer", }, ReferenceName: to.Ptr("exampleDataset"), }}, TypeProperties: &armdatafactory.CopyActivityTypeProperties{ DataIntegrationUnits: float64(32), Sink: &armdatafactory.BlobSink{ Type: to.Ptr("BlobSink"), }, Source: &armdatafactory.BlobSource{ Type: to.Ptr("BlobSource"), }, }, }}, IsSequential: to.Ptr(true), Items: &armdatafactory.Expression{ Type: to.Ptr(armdatafactory.ExpressionTypeExpression), Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), }, }, }}, Parameters: map[string]*armdatafactory.ParameterSpecification{ "OutputBlobNameList": { Type: to.Ptr(armdatafactory.ParameterTypeArray), }, }, Policy: &armdatafactory.PipelinePolicy{ ElapsedTimeMetric: &armdatafactory.PipelineElapsedTimeMetricPolicy{ Duration: "0.00:10:00", }, }, }, }, &armdatafactory.PipelinesClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*PipelinesClient) [CreateRun](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go#L132) [¶](#PipelinesClient.CreateRun) ``` func (client *[PipelinesClient](#PipelinesClient)) CreateRun(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), pipelineName [string](/builtin#string), options *[PipelinesClientCreateRunOptions](#PipelinesClientCreateRunOptions)) ([PipelinesClientCreateRunResponse](#PipelinesClientCreateRunResponse), [error](/builtin#error)) ``` CreateRun - Creates a run of a pipeline. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. pipelineName - The pipeline name. options - PipelinesClientCreateRunOptions contains the optional parameters for the PipelinesClient.CreateRun method. Example [¶](#example-PipelinesClient.CreateRun) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateRun(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", &armdatafactory.PipelinesClientCreateRunOptions{ReferencePipelineRunID: nil, IsRecovery: nil, StartActivityName: nil, StartFromFailure: nil, Parameters: map[string]interface{}{ "OutputBlobNameList": []interface{}{ "exampleoutput.csv", }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*PipelinesClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go#L208) [¶](#PipelinesClient.Delete) ``` func (client *[PipelinesClient](#PipelinesClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), pipelineName [string](/builtin#string), options *[PipelinesClientDeleteOptions](#PipelinesClientDeleteOptions)) ([PipelinesClientDeleteResponse](#PipelinesClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a pipeline. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. pipelineName - The pipeline name. options - PipelinesClientDeleteOptions contains the optional parameters for the PipelinesClient.Delete method. Example [¶](#example-PipelinesClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*PipelinesClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go#L260) [¶](#PipelinesClient.Get) ``` func (client *[PipelinesClient](#PipelinesClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), pipelineName [string](/builtin#string), options *[PipelinesClientGetOptions](#PipelinesClientGetOptions)) ([PipelinesClientGetResponse](#PipelinesClientGetResponse), [error](/builtin#error)) ``` Get - Gets a pipeline. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. pipelineName - The pipeline name. options - PipelinesClientGetOptions contains the optional parameters for the PipelinesClient.Get method. Example [¶](#example-PipelinesClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", &armdatafactory.PipelinesClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*PipelinesClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go#L323) [¶](#PipelinesClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[PipelinesClient](#PipelinesClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[PipelinesClientListByFactoryOptions](#PipelinesClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[PipelinesClientListByFactoryResponse](#PipelinesClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists pipelines. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.ListByFactory method. Example [¶](#example-PipelinesClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [PipelinesClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20944) [¶](#PipelinesClientCreateOrUpdateOptions) added in v0.2.0 ``` type PipelinesClientCreateOrUpdateOptions struct { // ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * // for unconditional update. IfMatch *[string](/builtin#string) } ``` PipelinesClientCreateOrUpdateOptions contains the optional parameters for the PipelinesClient.CreateOrUpdate method. #### type [PipelinesClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L353) [¶](#PipelinesClientCreateOrUpdateResponse) added in v0.2.0 ``` type PipelinesClientCreateOrUpdateResponse struct { [PipelineResource](#PipelineResource) } ``` PipelinesClientCreateOrUpdateResponse contains the response from method PipelinesClient.CreateOrUpdate. #### type [PipelinesClientCreateRunOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20951) [¶](#PipelinesClientCreateRunOptions) added in v0.2.0 ``` type PipelinesClientCreateRunOptions struct { // Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped // under the same groupId. IsRecovery *[bool](/builtin#bool) // Parameters of the pipeline run. These parameters will be used only if the runId is not specified. Parameters map[[string](/builtin#string)]interface{} // The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. ReferencePipelineRunID *[string](/builtin#string) // In recovery mode, the rerun will start from this activity. If not specified, all activities will run. StartActivityName *[string](/builtin#string) // In recovery mode, if set to true, the rerun will start from failed activities. The property will be used only if startActivityName // is not specified. StartFromFailure *[bool](/builtin#bool) } ``` PipelinesClientCreateRunOptions contains the optional parameters for the PipelinesClient.CreateRun method. #### type [PipelinesClientCreateRunResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L358) [¶](#PipelinesClientCreateRunResponse) added in v0.2.0 ``` type PipelinesClientCreateRunResponse struct { [CreateRunResponse](#CreateRunResponse) } ``` PipelinesClientCreateRunResponse contains the response from method PipelinesClient.CreateRun. #### type [PipelinesClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20967) [¶](#PipelinesClientDeleteOptions) added in v0.2.0 ``` type PipelinesClientDeleteOptions struct { } ``` PipelinesClientDeleteOptions contains the optional parameters for the PipelinesClient.Delete method. #### type [PipelinesClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L363) [¶](#PipelinesClientDeleteResponse) added in v0.2.0 ``` type PipelinesClientDeleteResponse struct { } ``` PipelinesClientDeleteResponse contains the response from method PipelinesClient.Delete. #### type [PipelinesClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20972) [¶](#PipelinesClientGetOptions) added in v0.2.0 ``` type PipelinesClientGetOptions struct { // ETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was // provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` PipelinesClientGetOptions contains the optional parameters for the PipelinesClient.Get method. #### type [PipelinesClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L368) [¶](#PipelinesClientGetResponse) added in v0.2.0 ``` type PipelinesClientGetResponse struct { [PipelineResource](#PipelineResource) } ``` PipelinesClientGetResponse contains the response from method PipelinesClient.Get. #### type [PipelinesClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20979) [¶](#PipelinesClientListByFactoryOptions) added in v0.2.0 ``` type PipelinesClientListByFactoryOptions struct { } ``` PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.ListByFactory method. #### type [PipelinesClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L373) [¶](#PipelinesClientListByFactoryResponse) added in v0.2.0 ``` type PipelinesClientListByFactoryResponse struct { [PipelineListResponse](#PipelineListResponse) } ``` PipelinesClientListByFactoryResponse contains the response from method PipelinesClient.ListByFactory. #### type [PolybaseSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L20984) [¶](#PolybaseSettings) ``` type PolybaseSettings struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Determines the number of rows to attempt to retrieve before the PolyBase recalculates the percentage of rejected rows. // Type: integer (or Expression with resultType integer), minimum: 0. RejectSampleValue interface{} `json:"rejectSampleValue,omitempty"` // Reject type. RejectType *[PolybaseSettingsRejectType](#PolybaseSettingsRejectType) `json:"rejectType,omitempty"` // Specifies the value or the percentage of rows that can be rejected before the query fails. Type: number (or Expression // with resultType number), minimum: 0. RejectValue interface{} `json:"rejectValue,omitempty"` // Specifies how to handle missing values in delimited text files when PolyBase retrieves data from the text file. Type: boolean // (or Expression with resultType boolean). UseTypeDefault interface{} `json:"useTypeDefault,omitempty"` } ``` PolybaseSettings - PolyBase settings. #### func (PolybaseSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36050) [¶](#PolybaseSettings.MarshalJSON) ``` func (p [PolybaseSettings](#PolybaseSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PolybaseSettings. #### func (*PolybaseSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36065) [¶](#PolybaseSettings.UnmarshalJSON) ``` func (p *[PolybaseSettings](#PolybaseSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PolybaseSettings. #### type [PolybaseSettingsRejectType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1230) [¶](#PolybaseSettingsRejectType) ``` type PolybaseSettingsRejectType [string](/builtin#string) ``` PolybaseSettingsRejectType - Indicates whether the RejectValue property is specified as a literal value or a percentage. ``` const ( PolybaseSettingsRejectTypePercentage [PolybaseSettingsRejectType](#PolybaseSettingsRejectType) = "percentage" PolybaseSettingsRejectTypeValue [PolybaseSettingsRejectType](#PolybaseSettingsRejectType) = "value" ) ``` #### func [PossiblePolybaseSettingsRejectTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1238) [¶](#PossiblePolybaseSettingsRejectTypeValues) ``` func PossiblePolybaseSettingsRejectTypeValues() [][PolybaseSettingsRejectType](#PolybaseSettingsRejectType) ``` PossiblePolybaseSettingsRejectTypeValues returns the possible values for the PolybaseSettingsRejectType const type. #### type [PostgreSQLLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21005) [¶](#PostgreSQLLinkedService) ``` type PostgreSQLLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; PostgreSQL linked service properties. TypeProperties *[PostgreSQLLinkedServiceTypeProperties](#PostgreSQLLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` PostgreSQLLinkedService - Linked service for PostgreSQL data source. #### func (*PostgreSQLLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21029) [¶](#PostgreSQLLinkedService.GetLinkedService) added in v0.2.0 ``` func (p *[PostgreSQLLinkedService](#PostgreSQLLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type PostgreSQLLinkedService. #### func (PostgreSQLLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36104) [¶](#PostgreSQLLinkedService.MarshalJSON) ``` func (p [PostgreSQLLinkedService](#PostgreSQLLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PostgreSQLLinkedService. #### func (*PostgreSQLLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36121) [¶](#PostgreSQLLinkedService.UnmarshalJSON) ``` func (p *[PostgreSQLLinkedService](#PostgreSQLLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLLinkedService. #### type [PostgreSQLLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21041) [¶](#PostgreSQLLinkedServiceTypeProperties) ``` type PostgreSQLLinkedServiceTypeProperties struct { // REQUIRED; The connection string. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` } ``` PostgreSQLLinkedServiceTypeProperties - PostgreSQL linked service properties. #### func (PostgreSQLLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36166) [¶](#PostgreSQLLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (p [PostgreSQLLinkedServiceTypeProperties](#PostgreSQLLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PostgreSQLLinkedServiceTypeProperties. #### func (*PostgreSQLLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36175) [¶](#PostgreSQLLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (p *[PostgreSQLLinkedServiceTypeProperties](#PostgreSQLLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLLinkedServiceTypeProperties. #### type [PostgreSQLSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21054) [¶](#PostgreSQLSource) ``` type PostgreSQLSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` PostgreSQLSource - A copy activity source for PostgreSQL databases. #### func (*PostgreSQLSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21085) [¶](#PostgreSQLSource.GetCopySource) added in v0.2.0 ``` func (p *[PostgreSQLSource](#PostgreSQLSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type PostgreSQLSource. #### func (*PostgreSQLSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21097) [¶](#PostgreSQLSource.GetTabularSource) added in v0.2.0 ``` func (p *[PostgreSQLSource](#PostgreSQLSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type PostgreSQLSource. #### func (PostgreSQLSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36201) [¶](#PostgreSQLSource.MarshalJSON) ``` func (p [PostgreSQLSource](#PostgreSQLSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PostgreSQLSource. #### func (*PostgreSQLSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36220) [¶](#PostgreSQLSource.UnmarshalJSON) ``` func (p *[PostgreSQLSource](#PostgreSQLSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLSource. #### type [PostgreSQLTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21111) [¶](#PostgreSQLTableDataset) ``` type PostgreSQLTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // PostgreSQL table dataset properties. TypeProperties *[PostgreSQLTableDatasetTypeProperties](#PostgreSQLTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` PostgreSQLTableDataset - The PostgreSQL table dataset. #### func (*PostgreSQLTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21145) [¶](#PostgreSQLTableDataset.GetDataset) added in v0.2.0 ``` func (p *[PostgreSQLTableDataset](#PostgreSQLTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type PostgreSQLTableDataset. #### func (PostgreSQLTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36271) [¶](#PostgreSQLTableDataset.MarshalJSON) ``` func (p [PostgreSQLTableDataset](#PostgreSQLTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PostgreSQLTableDataset. #### func (*PostgreSQLTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36291) [¶](#PostgreSQLTableDataset.UnmarshalJSON) ``` func (p *[PostgreSQLTableDataset](#PostgreSQLTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLTableDataset. #### type [PostgreSQLTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21160) [¶](#PostgreSQLTableDatasetTypeProperties) ``` type PostgreSQLTableDatasetTypeProperties struct { // The PostgreSQL schema name. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The PostgreSQL table name. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` PostgreSQLTableDatasetTypeProperties - PostgreSQL table dataset properties. #### func (PostgreSQLTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36345) [¶](#PostgreSQLTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (p [PostgreSQLTableDatasetTypeProperties](#PostgreSQLTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PostgreSQLTableDatasetTypeProperties. #### func (*PostgreSQLTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36354) [¶](#PostgreSQLTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (p *[PostgreSQLTableDatasetTypeProperties](#PostgreSQLTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLTableDatasetTypeProperties. #### type [PowerQuerySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21172) [¶](#PowerQuerySink) ``` type PowerQuerySink struct { // REQUIRED; Transformation name. Name *[string](/builtin#string) `json:"name,omitempty"` // Dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // Transformation description. Description *[string](/builtin#string) `json:"description,omitempty"` // Flowlet Reference Flowlet *[DataFlowReference](#DataFlowReference) `json:"flowlet,omitempty"` // Linked service reference. LinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedService,omitempty"` // Rejected data linked service reference. RejectedDataLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"rejectedDataLinkedService,omitempty"` // Schema linked service reference. SchemaLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"schemaLinkedService,omitempty"` // sink script. Script *[string](/builtin#string) `json:"script,omitempty"` } ``` PowerQuerySink - Power query sink. #### func (PowerQuerySink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36380) [¶](#PowerQuerySink.MarshalJSON) added in v1.3.0 ``` func (p [PowerQuerySink](#PowerQuerySink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PowerQuerySink. #### func (*PowerQuerySink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36394) [¶](#PowerQuerySink.UnmarshalJSON) added in v1.3.0 ``` func (p *[PowerQuerySink](#PowerQuerySink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PowerQuerySink. #### type [PowerQuerySinkMapping](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21199) [¶](#PowerQuerySinkMapping) ``` type PowerQuerySinkMapping struct { // List of sinks mapped to Power Query mashup query. DataflowSinks []*[PowerQuerySink](#PowerQuerySink) `json:"dataflowSinks,omitempty"` // Name of the query in Power Query mashup document. QueryName *[string](/builtin#string) `json:"queryName,omitempty"` } ``` PowerQuerySinkMapping - Map Power Query mashup query to sink dataset(s). #### func (PowerQuerySinkMapping) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36435) [¶](#PowerQuerySinkMapping.MarshalJSON) ``` func (p [PowerQuerySinkMapping](#PowerQuerySinkMapping)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PowerQuerySinkMapping. #### func (*PowerQuerySinkMapping) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36443) [¶](#PowerQuerySinkMapping.UnmarshalJSON) added in v1.3.0 ``` func (p *[PowerQuerySinkMapping](#PowerQuerySinkMapping)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PowerQuerySinkMapping. #### type [PowerQuerySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21208) [¶](#PowerQuerySource) ``` type PowerQuerySource struct { // REQUIRED; Transformation name. Name *[string](/builtin#string) `json:"name,omitempty"` // Dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // Transformation description. Description *[string](/builtin#string) `json:"description,omitempty"` // Flowlet Reference Flowlet *[DataFlowReference](#DataFlowReference) `json:"flowlet,omitempty"` // Linked service reference. LinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedService,omitempty"` // Schema linked service reference. SchemaLinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"schemaLinkedService,omitempty"` // source script. Script *[string](/builtin#string) `json:"script,omitempty"` } ``` PowerQuerySource - Power query source. #### func (PowerQuerySource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36466) [¶](#PowerQuerySource.MarshalJSON) added in v1.3.0 ``` func (p [PowerQuerySource](#PowerQuerySource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PowerQuerySource. #### func (*PowerQuerySource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36479) [¶](#PowerQuerySource.UnmarshalJSON) added in v1.3.0 ``` func (p *[PowerQuerySource](#PowerQuerySource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PowerQuerySource. #### type [PowerQueryTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21232) [¶](#PowerQueryTypeProperties) ``` type PowerQueryTypeProperties struct { // Locale of the Power query mashup document. DocumentLocale *[string](/builtin#string) `json:"documentLocale,omitempty"` // Power query mashup script. Script *[string](/builtin#string) `json:"script,omitempty"` // List of sources in Power Query. Sources []*[PowerQuerySource](#PowerQuerySource) `json:"sources,omitempty"` } ``` PowerQueryTypeProperties - Power Query data flow type properties. #### func (PowerQueryTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36517) [¶](#PowerQueryTypeProperties.MarshalJSON) ``` func (p [PowerQueryTypeProperties](#PowerQueryTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PowerQueryTypeProperties. #### func (*PowerQueryTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36526) [¶](#PowerQueryTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (p *[PowerQueryTypeProperties](#PowerQueryTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PowerQueryTypeProperties. #### type [PrestoAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1246) [¶](#PrestoAuthenticationType) ``` type PrestoAuthenticationType [string](/builtin#string) ``` PrestoAuthenticationType - The authentication mechanism used to connect to the Presto server. ``` const ( PrestoAuthenticationTypeAnonymous [PrestoAuthenticationType](#PrestoAuthenticationType) = "Anonymous" PrestoAuthenticationTypeLDAP [PrestoAuthenticationType](#PrestoAuthenticationType) = "LDAP" ) ``` #### func [PossiblePrestoAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1254) [¶](#PossiblePrestoAuthenticationTypeValues) ``` func PossiblePrestoAuthenticationTypeValues() [][PrestoAuthenticationType](#PrestoAuthenticationType) ``` PossiblePrestoAuthenticationTypeValues returns the possible values for the PrestoAuthenticationType const type. #### type [PrestoDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21244) [¶](#PrestoDatasetTypeProperties) ``` type PrestoDatasetTypeProperties struct { // The schema name of the Presto. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Presto. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` PrestoDatasetTypeProperties - Presto Dataset Properties #### func (PrestoDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36552) [¶](#PrestoDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (p [PrestoDatasetTypeProperties](#PrestoDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrestoDatasetTypeProperties. #### func (*PrestoDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36561) [¶](#PrestoDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (p *[PrestoDatasetTypeProperties](#PrestoDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrestoDatasetTypeProperties. #### type [PrestoLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21256) [¶](#PrestoLinkedService) ``` type PrestoLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Presto server linked service properties. TypeProperties *[PrestoLinkedServiceTypeProperties](#PrestoLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` PrestoLinkedService - Presto server linked service. #### func (*PrestoLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21280) [¶](#PrestoLinkedService.GetLinkedService) added in v0.2.0 ``` func (p *[PrestoLinkedService](#PrestoLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type PrestoLinkedService. #### func (PrestoLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36587) [¶](#PrestoLinkedService.MarshalJSON) ``` func (p [PrestoLinkedService](#PrestoLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrestoLinkedService. #### func (*PrestoLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36604) [¶](#PrestoLinkedService.UnmarshalJSON) ``` func (p *[PrestoLinkedService](#PrestoLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrestoLinkedService. #### type [PrestoLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21292) [¶](#PrestoLinkedServiceTypeProperties) ``` type PrestoLinkedServiceTypeProperties struct { // REQUIRED; The authentication mechanism used to connect to the Presto server. AuthenticationType *[PrestoAuthenticationType](#PrestoAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The catalog context for all request against the server. Catalog interface{} `json:"catalog,omitempty"` // REQUIRED; The IP address or host name of the Presto server. (i.e. 192.168.222.160) Host interface{} `json:"host,omitempty"` // REQUIRED; The version of the Presto server. (i.e. 0.148-t) ServerVersion interface{} `json:"serverVersion,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. EnableSSL interface{} `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password corresponding to the user name. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port that the Presto server uses to listen for client connections. The default value is 8080. Port interface{} `json:"port,omitempty"` // The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. // The default value is the system time zone. TimeZoneID interface{} `json:"timeZoneID,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` // The user name used to connect to the Presto server. Username interface{} `json:"username,omitempty"` } ``` PrestoLinkedServiceTypeProperties - Presto server linked service properties. #### func (PrestoLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36649) [¶](#PrestoLinkedServiceTypeProperties.MarshalJSON) ``` func (p [PrestoLinkedServiceTypeProperties](#PrestoLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrestoLinkedServiceTypeProperties. #### func (*PrestoLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36669) [¶](#PrestoLinkedServiceTypeProperties.UnmarshalJSON) ``` func (p *[PrestoLinkedServiceTypeProperties](#PrestoLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrestoLinkedServiceTypeProperties. #### type [PrestoObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21343) [¶](#PrestoObjectDataset) ``` type PrestoObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[PrestoDatasetTypeProperties](#PrestoDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` PrestoObjectDataset - Presto server dataset. #### func (*PrestoObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21377) [¶](#PrestoObjectDataset.GetDataset) added in v0.2.0 ``` func (p *[PrestoObjectDataset](#PrestoObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type PrestoObjectDataset. #### func (PrestoObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36728) [¶](#PrestoObjectDataset.MarshalJSON) ``` func (p [PrestoObjectDataset](#PrestoObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrestoObjectDataset. #### func (*PrestoObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36748) [¶](#PrestoObjectDataset.UnmarshalJSON) ``` func (p *[PrestoObjectDataset](#PrestoObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrestoObjectDataset. #### type [PrestoSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21392) [¶](#PrestoSource) ``` type PrestoSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` PrestoSource - A copy activity Presto server source. #### func (*PrestoSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21423) [¶](#PrestoSource.GetCopySource) added in v0.2.0 ``` func (p *[PrestoSource](#PrestoSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type PrestoSource. #### func (*PrestoSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21435) [¶](#PrestoSource.GetTabularSource) added in v0.2.0 ``` func (p *[PrestoSource](#PrestoSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type PrestoSource. #### func (PrestoSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36802) [¶](#PrestoSource.MarshalJSON) ``` func (p [PrestoSource](#PrestoSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrestoSource. #### func (*PrestoSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36821) [¶](#PrestoSource.UnmarshalJSON) ``` func (p *[PrestoSource](#PrestoSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrestoSource. #### type [PrivateEndPointConnectionsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go#L28) [¶](#PrivateEndPointConnectionsClient) ``` type PrivateEndPointConnectionsClient struct { // contains filtered or unexported fields } ``` PrivateEndPointConnectionsClient contains the methods for the PrivateEndPointConnections group. Don't use this type directly, use NewPrivateEndPointConnectionsClient() instead. #### func [NewPrivateEndPointConnectionsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go#L38) [¶](#NewPrivateEndPointConnectionsClient) ``` func NewPrivateEndPointConnectionsClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[PrivateEndPointConnectionsClient](#PrivateEndPointConnectionsClient), [error](/builtin#error)) ``` NewPrivateEndPointConnectionsClient creates a new instance of PrivateEndPointConnectionsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*PrivateEndPointConnectionsClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go#L65) [¶](#PrivateEndPointConnectionsClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[PrivateEndPointConnectionsClient](#PrivateEndPointConnectionsClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[PrivateEndPointConnectionsClientListByFactoryOptions](#PrivateEndPointConnectionsClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[PrivateEndPointConnectionsClientListByFactoryResponse](#PrivateEndPointConnectionsClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists Private endpoint connections If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.ListByFactory method. Example [¶](#example-PrivateEndPointConnectionsClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPrivateEndPointConnectionsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### type [PrivateEndPointConnectionsClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21450) [¶](#PrivateEndPointConnectionsClientListByFactoryOptions) added in v0.2.0 ``` type PrivateEndPointConnectionsClientListByFactoryOptions struct { } ``` PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.ListByFactory method. #### type [PrivateEndPointConnectionsClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L378) [¶](#PrivateEndPointConnectionsClientListByFactoryResponse) added in v0.2.0 ``` type PrivateEndPointConnectionsClientListByFactoryResponse struct { [PrivateEndpointConnectionListResponse](#PrivateEndpointConnectionListResponse) } ``` PrivateEndPointConnectionsClientListByFactoryResponse contains the response from method PrivateEndPointConnectionsClient.ListByFactory. #### type [PrivateEndpoint](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21455) [¶](#PrivateEndpoint) added in v1.0.0 ``` type PrivateEndpoint struct { // The resource Id for private endpoint ID *[string](/builtin#string) `json:"id,omitempty"` } ``` PrivateEndpoint - Private endpoint which a connection belongs to. #### func (PrivateEndpoint) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36872) [¶](#PrivateEndpoint.MarshalJSON) added in v1.3.0 ``` func (p [PrivateEndpoint](#PrivateEndpoint)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint. #### func (*PrivateEndpoint) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36879) [¶](#PrivateEndpoint.UnmarshalJSON) added in v1.3.0 ``` func (p *[PrivateEndpoint](#PrivateEndpoint)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint. #### type [PrivateEndpointConnectionClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go#L28) [¶](#PrivateEndpointConnectionClient) ``` type PrivateEndpointConnectionClient struct { // contains filtered or unexported fields } ``` PrivateEndpointConnectionClient contains the methods for the PrivateEndpointConnection group. Don't use this type directly, use NewPrivateEndpointConnectionClient() instead. #### func [NewPrivateEndpointConnectionClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go#L38) [¶](#NewPrivateEndpointConnectionClient) ``` func NewPrivateEndpointConnectionClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[PrivateEndpointConnectionClient](#PrivateEndpointConnectionClient), [error](/builtin#error)) ``` NewPrivateEndpointConnectionClient creates a new instance of PrivateEndpointConnectionClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*PrivateEndpointConnectionClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go#L66) [¶](#PrivateEndpointConnectionClient.CreateOrUpdate) ``` func (client *[PrivateEndpointConnectionClient](#PrivateEndpointConnectionClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), privateEndpointConnectionName [string](/builtin#string), privateEndpointWrapper [PrivateLinkConnectionApprovalRequestResource](#PrivateLinkConnectionApprovalRequestResource), options *[PrivateEndpointConnectionClientCreateOrUpdateOptions](#PrivateEndpointConnectionClientCreateOrUpdateOptions)) ([PrivateEndpointConnectionClientCreateOrUpdateResponse](#PrivateEndpointConnectionClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Approves or rejects a private endpoint connection If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. privateEndpointConnectionName - The private endpoint connection name. options - PrivateEndpointConnectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.CreateOrUpdate method. Example [¶](#example-PrivateEndpointConnectionClient.CreateOrUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPrivateEndpointConnectionClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "connection", armdatafactory.PrivateLinkConnectionApprovalRequestResource{ Properties: &armdatafactory.PrivateLinkConnectionApprovalRequest{ PrivateEndpoint: &armdatafactory.PrivateEndpoint{ ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"), }, PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ Description: to.Ptr("Approved by admin."), ActionsRequired: to.Ptr(""), Status: to.Ptr("Approved"), }, }, }, &armdatafactory.PrivateEndpointConnectionClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*PrivateEndpointConnectionClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go#L131) [¶](#PrivateEndpointConnectionClient.Delete) ``` func (client *[PrivateEndpointConnectionClient](#PrivateEndpointConnectionClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), privateEndpointConnectionName [string](/builtin#string), options *[PrivateEndpointConnectionClientDeleteOptions](#PrivateEndpointConnectionClientDeleteOptions)) ([PrivateEndpointConnectionClientDeleteResponse](#PrivateEndpointConnectionClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a private endpoint connection If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. privateEndpointConnectionName - The private endpoint connection name. options - PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete method. Example [¶](#example-PrivateEndpointConnectionClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPrivateEndpointConnectionClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "connection", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*PrivateEndpointConnectionClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go#L184) [¶](#PrivateEndpointConnectionClient.Get) ``` func (client *[PrivateEndpointConnectionClient](#PrivateEndpointConnectionClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), privateEndpointConnectionName [string](/builtin#string), options *[PrivateEndpointConnectionClientGetOptions](#PrivateEndpointConnectionClientGetOptions)) ([PrivateEndpointConnectionClientGetResponse](#PrivateEndpointConnectionClientGetResponse), [error](/builtin#error)) ``` Get - Gets a private endpoint connection If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. privateEndpointConnectionName - The private endpoint connection name. options - PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get method. Example [¶](#example-PrivateEndpointConnectionClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPrivateEndpointConnectionClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "connection", &armdatafactory.PrivateEndpointConnectionClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [PrivateEndpointConnectionClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21462) [¶](#PrivateEndpointConnectionClientCreateOrUpdateOptions) added in v0.2.0 ``` type PrivateEndpointConnectionClientCreateOrUpdateOptions struct { // ETag of the private endpoint connection entity. Should only be specified for update, for which it should match existing // entity or can be * for unconditional update. IfMatch *[string](/builtin#string) } ``` PrivateEndpointConnectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.CreateOrUpdate method. #### type [PrivateEndpointConnectionClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L383) [¶](#PrivateEndpointConnectionClientCreateOrUpdateResponse) added in v0.2.0 ``` type PrivateEndpointConnectionClientCreateOrUpdateResponse struct { [PrivateEndpointConnectionResource](#PrivateEndpointConnectionResource) } ``` PrivateEndpointConnectionClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionClient.CreateOrUpdate. #### type [PrivateEndpointConnectionClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21470) [¶](#PrivateEndpointConnectionClientDeleteOptions) added in v0.2.0 ``` type PrivateEndpointConnectionClientDeleteOptions struct { } ``` PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete method. #### type [PrivateEndpointConnectionClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L388) [¶](#PrivateEndpointConnectionClientDeleteResponse) added in v0.2.0 ``` type PrivateEndpointConnectionClientDeleteResponse struct { } ``` PrivateEndpointConnectionClientDeleteResponse contains the response from method PrivateEndpointConnectionClient.Delete. #### type [PrivateEndpointConnectionClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21476) [¶](#PrivateEndpointConnectionClientGetOptions) added in v0.2.0 ``` type PrivateEndpointConnectionClientGetOptions struct { // ETag of the private endpoint connection entity. Should only be specified for get. If the ETag matches the existing entity // tag, or if * was provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get method. #### type [PrivateEndpointConnectionClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L393) [¶](#PrivateEndpointConnectionClientGetResponse) added in v0.2.0 ``` type PrivateEndpointConnectionClientGetResponse struct { [PrivateEndpointConnectionResource](#PrivateEndpointConnectionResource) } ``` PrivateEndpointConnectionClientGetResponse contains the response from method PrivateEndpointConnectionClient.Get. #### type [PrivateEndpointConnectionListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21483) [¶](#PrivateEndpointConnectionListResponse) ``` type PrivateEndpointConnectionListResponse struct { // REQUIRED; List of Private Endpoint Connections. Value []*[PrivateEndpointConnectionResource](#PrivateEndpointConnectionResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` PrivateEndpointConnectionListResponse - A list of linked service resources. #### func (PrivateEndpointConnectionListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36899) [¶](#PrivateEndpointConnectionListResponse.MarshalJSON) ``` func (p [PrivateEndpointConnectionListResponse](#PrivateEndpointConnectionListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResponse. #### func (*PrivateEndpointConnectionListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36907) [¶](#PrivateEndpointConnectionListResponse.UnmarshalJSON) added in v1.3.0 ``` func (p *[PrivateEndpointConnectionListResponse](#PrivateEndpointConnectionListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResponse. #### type [PrivateEndpointConnectionResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21492) [¶](#PrivateEndpointConnectionResource) ``` type PrivateEndpointConnectionResource struct { // Core resource properties Properties *[RemotePrivateEndpointConnection](#RemotePrivateEndpointConnection) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` PrivateEndpointConnectionResource - Private Endpoint Connection ARM resource. #### func (PrivateEndpointConnectionResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36930) [¶](#PrivateEndpointConnectionResource.MarshalJSON) ``` func (p [PrivateEndpointConnectionResource](#PrivateEndpointConnectionResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionResource. #### func (*PrivateEndpointConnectionResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36941) [¶](#PrivateEndpointConnectionResource.UnmarshalJSON) ``` func (p *[PrivateEndpointConnectionResource](#PrivateEndpointConnectionResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionResource. #### type [PrivateLinkConnectionApprovalRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21510) [¶](#PrivateLinkConnectionApprovalRequest) ``` type PrivateLinkConnectionApprovalRequest struct { // The resource of private endpoint. PrivateEndpoint *[PrivateEndpoint](#PrivateEndpoint) `json:"privateEndpoint,omitempty"` // The state of a private link connection PrivateLinkServiceConnectionState *[PrivateLinkConnectionState](#PrivateLinkConnectionState) `json:"privateLinkServiceConnectionState,omitempty"` } ``` PrivateLinkConnectionApprovalRequest - A request to approve or reject a private endpoint connection #### func (PrivateLinkConnectionApprovalRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36973) [¶](#PrivateLinkConnectionApprovalRequest.MarshalJSON) added in v1.3.0 ``` func (p [PrivateLinkConnectionApprovalRequest](#PrivateLinkConnectionApprovalRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionApprovalRequest. #### func (*PrivateLinkConnectionApprovalRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L36981) [¶](#PrivateLinkConnectionApprovalRequest.UnmarshalJSON) added in v1.3.0 ``` func (p *[PrivateLinkConnectionApprovalRequest](#PrivateLinkConnectionApprovalRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkConnectionApprovalRequest. #### type [PrivateLinkConnectionApprovalRequestResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21519) [¶](#PrivateLinkConnectionApprovalRequestResource) ``` type PrivateLinkConnectionApprovalRequestResource struct { // Core resource properties Properties *[PrivateLinkConnectionApprovalRequest](#PrivateLinkConnectionApprovalRequest) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` PrivateLinkConnectionApprovalRequestResource - Private Endpoint Connection Approval ARM resource. #### func (PrivateLinkConnectionApprovalRequestResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37004) [¶](#PrivateLinkConnectionApprovalRequestResource.MarshalJSON) ``` func (p [PrivateLinkConnectionApprovalRequestResource](#PrivateLinkConnectionApprovalRequestResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionApprovalRequestResource. #### func (*PrivateLinkConnectionApprovalRequestResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37015) [¶](#PrivateLinkConnectionApprovalRequestResource.UnmarshalJSON) ``` func (p *[PrivateLinkConnectionApprovalRequestResource](#PrivateLinkConnectionApprovalRequestResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkConnectionApprovalRequestResource. #### type [PrivateLinkConnectionState](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21537) [¶](#PrivateLinkConnectionState) ``` type PrivateLinkConnectionState struct { // ActionsRequired for a private link connection ActionsRequired *[string](/builtin#string) `json:"actionsRequired,omitempty"` // Description of a private link connection Description *[string](/builtin#string) `json:"description,omitempty"` // Status of a private link connection Status *[string](/builtin#string) `json:"status,omitempty"` } ``` PrivateLinkConnectionState - The state of a private link connection #### func (PrivateLinkConnectionState) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37047) [¶](#PrivateLinkConnectionState.MarshalJSON) added in v1.3.0 ``` func (p [PrivateLinkConnectionState](#PrivateLinkConnectionState)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionState. #### func (*PrivateLinkConnectionState) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37056) [¶](#PrivateLinkConnectionState.UnmarshalJSON) added in v1.3.0 ``` func (p *[PrivateLinkConnectionState](#PrivateLinkConnectionState)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkConnectionState. #### type [PrivateLinkResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21549) [¶](#PrivateLinkResource) ``` type PrivateLinkResource struct { // Core resource properties Properties *[PrivateLinkResourceProperties](#PrivateLinkResourceProperties) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` PrivateLinkResource - A private link resource #### func (PrivateLinkResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37082) [¶](#PrivateLinkResource.MarshalJSON) ``` func (p [PrivateLinkResource](#PrivateLinkResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. #### func (*PrivateLinkResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37093) [¶](#PrivateLinkResource.UnmarshalJSON) ``` func (p *[PrivateLinkResource](#PrivateLinkResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource. #### type [PrivateLinkResourceProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21567) [¶](#PrivateLinkResourceProperties) ``` type PrivateLinkResourceProperties struct { // READ-ONLY; GroupId of a private link resource GroupID *[string](/builtin#string) `json:"groupId,omitempty" azure:"ro"` // READ-ONLY; RequiredMembers of a private link resource RequiredMembers []*[string](/builtin#string) `json:"requiredMembers,omitempty" azure:"ro"` // READ-ONLY; RequiredZoneNames of a private link resource RequiredZoneNames []*[string](/builtin#string) `json:"requiredZoneNames,omitempty" azure:"ro"` } ``` PrivateLinkResourceProperties - Properties of a private link resource #### func (PrivateLinkResourceProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37125) [¶](#PrivateLinkResourceProperties.MarshalJSON) ``` func (p [PrivateLinkResourceProperties](#PrivateLinkResourceProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. #### func (*PrivateLinkResourceProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37134) [¶](#PrivateLinkResourceProperties.UnmarshalJSON) added in v1.3.0 ``` func (p *[PrivateLinkResourceProperties](#PrivateLinkResourceProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties. #### type [PrivateLinkResourcesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go#L28) [¶](#PrivateLinkResourcesClient) ``` type PrivateLinkResourcesClient struct { // contains filtered or unexported fields } ``` PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead. #### func [NewPrivateLinkResourcesClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go#L38) [¶](#NewPrivateLinkResourcesClient) ``` func NewPrivateLinkResourcesClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[PrivateLinkResourcesClient](#PrivateLinkResourcesClient), [error](/builtin#error)) ``` NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*PrivateLinkResourcesClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go#L65) [¶](#PrivateLinkResourcesClient.Get) ``` func (client *[PrivateLinkResourcesClient](#PrivateLinkResourcesClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[PrivateLinkResourcesClientGetOptions](#PrivateLinkResourcesClientGetOptions)) ([PrivateLinkResourcesClientGetResponse](#PrivateLinkResourcesClientGetResponse), [error](/builtin#error)) ``` Get - Gets the private link resources If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method. Example [¶](#example-PrivateLinkResourcesClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewPrivateLinkResourcesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [PrivateLinkResourcesClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21579) [¶](#PrivateLinkResourcesClientGetOptions) added in v0.2.0 ``` type PrivateLinkResourcesClientGetOptions struct { } ``` PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method. #### type [PrivateLinkResourcesClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L398) [¶](#PrivateLinkResourcesClientGetResponse) added in v0.2.0 ``` type PrivateLinkResourcesClientGetResponse struct { [PrivateLinkResourcesWrapper](#PrivateLinkResourcesWrapper) } ``` PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get. #### type [PrivateLinkResourcesWrapper](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21584) [¶](#PrivateLinkResourcesWrapper) ``` type PrivateLinkResourcesWrapper struct { // REQUIRED Value []*[PrivateLinkResource](#PrivateLinkResource) `json:"value,omitempty"` } ``` PrivateLinkResourcesWrapper - Wrapper for a collection of private link resources #### func (PrivateLinkResourcesWrapper) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37160) [¶](#PrivateLinkResourcesWrapper.MarshalJSON) ``` func (p [PrivateLinkResourcesWrapper](#PrivateLinkResourcesWrapper)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesWrapper. #### func (*PrivateLinkResourcesWrapper) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37167) [¶](#PrivateLinkResourcesWrapper.UnmarshalJSON) added in v1.3.0 ``` func (p *[PrivateLinkResourcesWrapper](#PrivateLinkResourcesWrapper)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourcesWrapper. #### type [PublicNetworkAccess](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1262) [¶](#PublicNetworkAccess) ``` type PublicNetworkAccess [string](/builtin#string) ``` PublicNetworkAccess - Whether or not public network access is allowed for the data factory. ``` const ( PublicNetworkAccessDisabled [PublicNetworkAccess](#PublicNetworkAccess) = "Disabled" PublicNetworkAccessEnabled [PublicNetworkAccess](#PublicNetworkAccess) = "Enabled" ) ``` #### func [PossiblePublicNetworkAccessValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1270) [¶](#PossiblePublicNetworkAccessValues) ``` func PossiblePublicNetworkAccessValues() [][PublicNetworkAccess](#PublicNetworkAccess) ``` PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type. #### type [PurviewConfiguration](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21590) [¶](#PurviewConfiguration) added in v1.0.0 ``` type PurviewConfiguration struct { // Purview resource id. PurviewResourceID *[string](/builtin#string) `json:"purviewResourceId,omitempty"` } ``` PurviewConfiguration - Purview configuration. #### func (PurviewConfiguration) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37187) [¶](#PurviewConfiguration.MarshalJSON) added in v1.3.0 ``` func (p [PurviewConfiguration](#PurviewConfiguration)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type PurviewConfiguration. #### func (*PurviewConfiguration) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37194) [¶](#PurviewConfiguration.UnmarshalJSON) added in v1.3.0 ``` func (p *[PurviewConfiguration](#PurviewConfiguration)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type PurviewConfiguration. #### type [QueryDataFlowDebugSessionsResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21596) [¶](#QueryDataFlowDebugSessionsResponse) ``` type QueryDataFlowDebugSessionsResponse struct { // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` // Array with all active debug sessions. Value []*[DataFlowDebugSessionInfo](#DataFlowDebugSessionInfo) `json:"value,omitempty"` } ``` QueryDataFlowDebugSessionsResponse - A list of active debug sessions. #### func (QueryDataFlowDebugSessionsResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37214) [¶](#QueryDataFlowDebugSessionsResponse.MarshalJSON) ``` func (q [QueryDataFlowDebugSessionsResponse](#QueryDataFlowDebugSessionsResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type QueryDataFlowDebugSessionsResponse. #### func (*QueryDataFlowDebugSessionsResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37222) [¶](#QueryDataFlowDebugSessionsResponse.UnmarshalJSON) added in v1.3.0 ``` func (q *[QueryDataFlowDebugSessionsResponse](#QueryDataFlowDebugSessionsResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type QueryDataFlowDebugSessionsResponse. #### type [QuickBooksLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21605) [¶](#QuickBooksLinkedService) ``` type QuickBooksLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; QuickBooks server linked service properties. TypeProperties *[QuickBooksLinkedServiceTypeProperties](#QuickBooksLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` QuickBooksLinkedService - QuickBooks server linked service. #### func (*QuickBooksLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21629) [¶](#QuickBooksLinkedService.GetLinkedService) added in v0.2.0 ``` func (q *[QuickBooksLinkedService](#QuickBooksLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type QuickBooksLinkedService. #### func (QuickBooksLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37245) [¶](#QuickBooksLinkedService.MarshalJSON) ``` func (q [QuickBooksLinkedService](#QuickBooksLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type QuickBooksLinkedService. #### func (*QuickBooksLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37262) [¶](#QuickBooksLinkedService.UnmarshalJSON) ``` func (q *[QuickBooksLinkedService](#QuickBooksLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type QuickBooksLinkedService. #### type [QuickBooksLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21641) [¶](#QuickBooksLinkedServiceTypeProperties) ``` type QuickBooksLinkedServiceTypeProperties struct { // The access token for OAuth 1.0 authentication. AccessToken [SecretBaseClassification](#SecretBaseClassification) `json:"accessToken,omitempty"` // The access token secret for OAuth 1.0 authentication. AccessTokenSecret [SecretBaseClassification](#SecretBaseClassification) `json:"accessTokenSecret,omitempty"` // The company ID of the QuickBooks company to authorize. CompanyID interface{} `json:"companyId,omitempty"` // Properties used to connect to QuickBooks. It is mutually exclusive with any other properties in the linked service. Type: // object. ConnectionProperties interface{} `json:"connectionProperties,omitempty"` // The consumer key for OAuth 1.0 authentication. ConsumerKey interface{} `json:"consumerKey,omitempty"` // The consumer secret for OAuth 1.0 authentication. ConsumerSecret [SecretBaseClassification](#SecretBaseClassification) `json:"consumerSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) Endpoint interface{} `json:"endpoint,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` } ``` QuickBooksLinkedServiceTypeProperties - QuickBooks server linked service properties. #### func (QuickBooksLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37307) [¶](#QuickBooksLinkedServiceTypeProperties.MarshalJSON) ``` func (q [QuickBooksLinkedServiceTypeProperties](#QuickBooksLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type QuickBooksLinkedServiceTypeProperties. #### func (*QuickBooksLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37322) [¶](#QuickBooksLinkedServiceTypeProperties.UnmarshalJSON) ``` func (q *[QuickBooksLinkedServiceTypeProperties](#QuickBooksLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type QuickBooksLinkedServiceTypeProperties. #### type [QuickBooksObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21673) [¶](#QuickBooksObjectDataset) ``` type QuickBooksObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` QuickBooksObjectDataset - QuickBooks server dataset. #### func (*QuickBooksObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21707) [¶](#QuickBooksObjectDataset.GetDataset) added in v0.2.0 ``` func (q *[QuickBooksObjectDataset](#QuickBooksObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type QuickBooksObjectDataset. #### func (QuickBooksObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37366) [¶](#QuickBooksObjectDataset.MarshalJSON) ``` func (q [QuickBooksObjectDataset](#QuickBooksObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type QuickBooksObjectDataset. #### func (*QuickBooksObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37386) [¶](#QuickBooksObjectDataset.UnmarshalJSON) ``` func (q *[QuickBooksObjectDataset](#QuickBooksObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type QuickBooksObjectDataset. #### type [QuickBooksSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21722) [¶](#QuickBooksSource) ``` type QuickBooksSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` QuickBooksSource - A copy activity QuickBooks server source. #### func (*QuickBooksSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21753) [¶](#QuickBooksSource.GetCopySource) added in v0.2.0 ``` func (q *[QuickBooksSource](#QuickBooksSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type QuickBooksSource. #### func (*QuickBooksSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21765) [¶](#QuickBooksSource.GetTabularSource) added in v0.2.0 ``` func (q *[QuickBooksSource](#QuickBooksSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type QuickBooksSource. #### func (QuickBooksSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37440) [¶](#QuickBooksSource.MarshalJSON) ``` func (q [QuickBooksSource](#QuickBooksSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type QuickBooksSource. #### func (*QuickBooksSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37459) [¶](#QuickBooksSource.UnmarshalJSON) ``` func (q *[QuickBooksSource](#QuickBooksSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type QuickBooksSource. #### type [QuickbaseLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21779) [¶](#QuickbaseLinkedService) added in v0.3.0 ``` type QuickbaseLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Quickbase linked service properties. TypeProperties *[QuickbaseLinkedServiceTypeProperties](#QuickbaseLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` QuickbaseLinkedService - Linked service for Quickbase. #### func (*QuickbaseLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21803) [¶](#QuickbaseLinkedService.GetLinkedService) added in v0.3.0 ``` func (q *[QuickbaseLinkedService](#QuickbaseLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type QuickbaseLinkedService. #### func (QuickbaseLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37510) [¶](#QuickbaseLinkedService.MarshalJSON) added in v0.3.0 ``` func (q [QuickbaseLinkedService](#QuickbaseLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type QuickbaseLinkedService. #### func (*QuickbaseLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37527) [¶](#QuickbaseLinkedService.UnmarshalJSON) added in v0.3.0 ``` func (q *[QuickbaseLinkedService](#QuickbaseLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type QuickbaseLinkedService. #### type [QuickbaseLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21815) [¶](#QuickbaseLinkedServiceTypeProperties) added in v0.3.0 ``` type QuickbaseLinkedServiceTypeProperties struct { // REQUIRED; The url to connect Quickbase source. Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // REQUIRED; The user token for the Quickbase source. UserToken [SecretBaseClassification](#SecretBaseClassification) `json:"userToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` QuickbaseLinkedServiceTypeProperties - Quickbase linked service type properties. #### func (QuickbaseLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37572) [¶](#QuickbaseLinkedServiceTypeProperties.MarshalJSON) added in v0.3.0 ``` func (q [QuickbaseLinkedServiceTypeProperties](#QuickbaseLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type QuickbaseLinkedServiceTypeProperties. #### func (*QuickbaseLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37581) [¶](#QuickbaseLinkedServiceTypeProperties.UnmarshalJSON) added in v0.3.0 ``` func (q *[QuickbaseLinkedServiceTypeProperties](#QuickbaseLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type QuickbaseLinkedServiceTypeProperties. #### type [RecurrenceFrequency](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1278) [¶](#RecurrenceFrequency) ``` type RecurrenceFrequency [string](/builtin#string) ``` RecurrenceFrequency - Enumerates possible frequency option for the schedule trigger. ``` const ( RecurrenceFrequencyDay [RecurrenceFrequency](#RecurrenceFrequency) = "Day" RecurrenceFrequencyHour [RecurrenceFrequency](#RecurrenceFrequency) = "Hour" RecurrenceFrequencyMinute [RecurrenceFrequency](#RecurrenceFrequency) = "Minute" RecurrenceFrequencyMonth [RecurrenceFrequency](#RecurrenceFrequency) = "Month" RecurrenceFrequencyNotSpecified [RecurrenceFrequency](#RecurrenceFrequency) = "NotSpecified" RecurrenceFrequencyWeek [RecurrenceFrequency](#RecurrenceFrequency) = "Week" RecurrenceFrequencyYear [RecurrenceFrequency](#RecurrenceFrequency) = "Year" ) ``` #### func [PossibleRecurrenceFrequencyValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1291) [¶](#PossibleRecurrenceFrequencyValues) ``` func PossibleRecurrenceFrequencyValues() [][RecurrenceFrequency](#RecurrenceFrequency) ``` PossibleRecurrenceFrequencyValues returns the possible values for the RecurrenceFrequency const type. #### type [RecurrenceSchedule](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21828) [¶](#RecurrenceSchedule) ``` type RecurrenceSchedule struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The hours. Hours []*[int32](/builtin#int32) `json:"hours,omitempty"` // The minutes. Minutes []*[int32](/builtin#int32) `json:"minutes,omitempty"` // The month days. MonthDays []*[int32](/builtin#int32) `json:"monthDays,omitempty"` // The monthly occurrences. MonthlyOccurrences []*[RecurrenceScheduleOccurrence](#RecurrenceScheduleOccurrence) `json:"monthlyOccurrences,omitempty"` // The days of the week. WeekDays []*[DaysOfWeek](#DaysOfWeek) `json:"weekDays,omitempty"` } ``` RecurrenceSchedule - The recurrence schedule. #### func (RecurrenceSchedule) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37607) [¶](#RecurrenceSchedule.MarshalJSON) ``` func (r [RecurrenceSchedule](#RecurrenceSchedule)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RecurrenceSchedule. #### func (*RecurrenceSchedule) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37623) [¶](#RecurrenceSchedule.UnmarshalJSON) ``` func (r *[RecurrenceSchedule](#RecurrenceSchedule)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RecurrenceSchedule. #### type [RecurrenceScheduleOccurrence](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21849) [¶](#RecurrenceScheduleOccurrence) ``` type RecurrenceScheduleOccurrence struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The day of the week. Day *[DayOfWeek](#DayOfWeek) `json:"day,omitempty"` // The occurrence. Occurrence *[int32](/builtin#int32) `json:"occurrence,omitempty"` } ``` RecurrenceScheduleOccurrence - The recurrence schedule occurrence. #### func (RecurrenceScheduleOccurrence) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37665) [¶](#RecurrenceScheduleOccurrence.MarshalJSON) ``` func (r [RecurrenceScheduleOccurrence](#RecurrenceScheduleOccurrence)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RecurrenceScheduleOccurrence. #### func (*RecurrenceScheduleOccurrence) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37678) [¶](#RecurrenceScheduleOccurrence.UnmarshalJSON) ``` func (r *[RecurrenceScheduleOccurrence](#RecurrenceScheduleOccurrence)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RecurrenceScheduleOccurrence. #### type [RedirectIncompatibleRowSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21861) [¶](#RedirectIncompatibleRowSettings) ``` type RedirectIncompatibleRowSettings struct { // REQUIRED; Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked service used for redirecting incompatible // row. Must be specified if redirectIncompatibleRowSettings is specified. Type: string // (or Expression with resultType string). LinkedServiceName interface{} `json:"linkedServiceName,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The path for storing the redirect incompatible row data. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` RedirectIncompatibleRowSettings - Redirect incompatible row settings #### func (RedirectIncompatibleRowSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37711) [¶](#RedirectIncompatibleRowSettings.MarshalJSON) ``` func (r [RedirectIncompatibleRowSettings](#RedirectIncompatibleRowSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RedirectIncompatibleRowSettings. #### func (*RedirectIncompatibleRowSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37724) [¶](#RedirectIncompatibleRowSettings.UnmarshalJSON) ``` func (r *[RedirectIncompatibleRowSettings](#RedirectIncompatibleRowSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RedirectIncompatibleRowSettings. #### type [RedshiftUnloadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21877) [¶](#RedshiftUnloadSettings) ``` type RedshiftUnloadSettings struct { // REQUIRED; The bucket of the interim Amazon S3 which will be used to store the unloaded data from Amazon Redshift source. // The bucket must be in the same region as the Amazon Redshift source. Type: string (or // Expression with resultType string). BucketName interface{} `json:"bucketName,omitempty"` // REQUIRED; The name of the Amazon S3 linked service which will be used for the unload operation when copying from the Amazon // Redshift source. S3LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"s3LinkedServiceName,omitempty"` } ``` RedshiftUnloadSettings - The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then copied into the targeted sink from the interim S3. #### func (RedshiftUnloadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37757) [¶](#RedshiftUnloadSettings.MarshalJSON) added in v1.3.0 ``` func (r [RedshiftUnloadSettings](#RedshiftUnloadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RedshiftUnloadSettings. #### func (*RedshiftUnloadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37765) [¶](#RedshiftUnloadSettings.UnmarshalJSON) added in v1.3.0 ``` func (r *[RedshiftUnloadSettings](#RedshiftUnloadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RedshiftUnloadSettings. #### type [RelationalSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21889) [¶](#RelationalSource) ``` type RelationalSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` RelationalSource - A copy activity source for various relational databases. #### func (*RelationalSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21917) [¶](#RelationalSource.GetCopySource) added in v0.2.0 ``` func (r *[RelationalSource](#RelationalSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type RelationalSource. #### func (RelationalSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37788) [¶](#RelationalSource.MarshalJSON) ``` func (r [RelationalSource](#RelationalSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RelationalSource. #### func (*RelationalSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37806) [¶](#RelationalSource.UnmarshalJSON) ``` func (r *[RelationalSource](#RelationalSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RelationalSource. #### type [RelationalTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21929) [¶](#RelationalTableDataset) ``` type RelationalTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Relational table dataset properties. TypeProperties *[RelationalTableDatasetTypeProperties](#RelationalTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` RelationalTableDataset - The relational table dataset. #### func (*RelationalTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21963) [¶](#RelationalTableDataset.GetDataset) added in v0.2.0 ``` func (r *[RelationalTableDataset](#RelationalTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type RelationalTableDataset. #### func (RelationalTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37854) [¶](#RelationalTableDataset.MarshalJSON) ``` func (r [RelationalTableDataset](#RelationalTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RelationalTableDataset. #### func (*RelationalTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37874) [¶](#RelationalTableDataset.UnmarshalJSON) ``` func (r *[RelationalTableDataset](#RelationalTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RelationalTableDataset. #### type [RelationalTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21978) [¶](#RelationalTableDatasetTypeProperties) ``` type RelationalTableDatasetTypeProperties struct { // The relational table name. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` RelationalTableDatasetTypeProperties - Relational table dataset properties. #### func (RelationalTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37928) [¶](#RelationalTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (r [RelationalTableDatasetTypeProperties](#RelationalTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RelationalTableDatasetTypeProperties. #### func (*RelationalTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37935) [¶](#RelationalTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (r *[RelationalTableDatasetTypeProperties](#RelationalTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RelationalTableDatasetTypeProperties. #### type [RemotePrivateEndpointConnection](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21984) [¶](#RemotePrivateEndpointConnection) ``` type RemotePrivateEndpointConnection struct { // PrivateEndpoint of a remote private endpoint connection PrivateEndpoint *[ArmIDWrapper](#ArmIDWrapper) `json:"privateEndpoint,omitempty"` // The state of a private link connection PrivateLinkServiceConnectionState *[PrivateLinkConnectionState](#PrivateLinkConnectionState) `json:"privateLinkServiceConnectionState,omitempty"` // READ-ONLY ProvisioningState *[string](/builtin#string) `json:"provisioningState,omitempty" azure:"ro"` } ``` RemotePrivateEndpointConnection - A remote private endpoint connection #### func (RemotePrivateEndpointConnection) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37955) [¶](#RemotePrivateEndpointConnection.MarshalJSON) added in v1.3.0 ``` func (r [RemotePrivateEndpointConnection](#RemotePrivateEndpointConnection)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RemotePrivateEndpointConnection. #### func (*RemotePrivateEndpointConnection) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37964) [¶](#RemotePrivateEndpointConnection.UnmarshalJSON) added in v1.3.0 ``` func (r *[RemotePrivateEndpointConnection](#RemotePrivateEndpointConnection)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RemotePrivateEndpointConnection. #### type [RerunTumblingWindowTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L21997) [¶](#RerunTumblingWindowTrigger) ``` type RerunTumblingWindowTrigger struct { // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Rerun Trigger properties. TypeProperties *[RerunTumblingWindowTriggerTypeProperties](#RerunTumblingWindowTriggerTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` RerunTumblingWindowTrigger - Trigger that schedules pipeline reruns for all fixed time interval windows from a requested start time to requested end time. #### func (*RerunTumblingWindowTrigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22018) [¶](#RerunTumblingWindowTrigger.GetTrigger) added in v0.2.0 ``` func (r *[RerunTumblingWindowTrigger](#RerunTumblingWindowTrigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type RerunTumblingWindowTrigger. #### func (RerunTumblingWindowTrigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L37990) [¶](#RerunTumblingWindowTrigger.MarshalJSON) ``` func (r [RerunTumblingWindowTrigger](#RerunTumblingWindowTrigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RerunTumblingWindowTrigger. #### func (*RerunTumblingWindowTrigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38006) [¶](#RerunTumblingWindowTrigger.UnmarshalJSON) ``` func (r *[RerunTumblingWindowTrigger](#RerunTumblingWindowTrigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RerunTumblingWindowTrigger. #### type [RerunTumblingWindowTriggerTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22029) [¶](#RerunTumblingWindowTriggerTypeProperties) ``` type RerunTumblingWindowTriggerTypeProperties struct { // REQUIRED; The parent trigger reference. ParentTrigger interface{} `json:"parentTrigger,omitempty"` // REQUIRED; The end time for the time period for which restatement is initiated. Only UTC time is currently supported. RequestedEndTime *[time](/time).[Time](/time#Time) `json:"requestedEndTime,omitempty"` // REQUIRED; The start time for the time period for which restatement is initiated. Only UTC time is currently supported. RequestedStartTime *[time](/time).[Time](/time#Time) `json:"requestedStartTime,omitempty"` // REQUIRED; The max number of parallel time windows (ready for execution) for which a rerun is triggered. RerunConcurrency *[int32](/builtin#int32) `json:"rerunConcurrency,omitempty"` } ``` RerunTumblingWindowTriggerTypeProperties - Rerun Trigger properties. #### func (RerunTumblingWindowTriggerTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38048) [¶](#RerunTumblingWindowTriggerTypeProperties.MarshalJSON) ``` func (r [RerunTumblingWindowTriggerTypeProperties](#RerunTumblingWindowTriggerTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RerunTumblingWindowTriggerTypeProperties. #### func (*RerunTumblingWindowTriggerTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38058) [¶](#RerunTumblingWindowTriggerTypeProperties.UnmarshalJSON) ``` func (r *[RerunTumblingWindowTriggerTypeProperties](#RerunTumblingWindowTriggerTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RerunTumblingWindowTriggerTypeProperties. #### type [Resource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22044) [¶](#Resource) ``` type Resource struct { // The resource location. Location *[string](/builtin#string) `json:"location,omitempty"` // The resource tags. Tags map[[string](/builtin#string)]*[string](/builtin#string) `json:"tags,omitempty"` // READ-ONLY; Etag identifies change in the resource. ETag *[string](/builtin#string) `json:"eTag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` Resource - Azure Data Factory top-level resource. #### func (Resource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38087) [¶](#Resource.MarshalJSON) ``` func (r [Resource](#Resource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Resource. #### func (*Resource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38099) [¶](#Resource.UnmarshalJSON) ``` func (r *[Resource](#Resource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Resource. #### type [ResponsysLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22065) [¶](#ResponsysLinkedService) ``` type ResponsysLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Responsys linked service properties. TypeProperties *[ResponsysLinkedServiceTypeProperties](#ResponsysLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` ResponsysLinkedService - Responsys linked service. #### func (*ResponsysLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22089) [¶](#ResponsysLinkedService.GetLinkedService) added in v0.2.0 ``` func (r *[ResponsysLinkedService](#ResponsysLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type ResponsysLinkedService. #### func (ResponsysLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38134) [¶](#ResponsysLinkedService.MarshalJSON) ``` func (r [ResponsysLinkedService](#ResponsysLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ResponsysLinkedService. #### func (*ResponsysLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38151) [¶](#ResponsysLinkedService.UnmarshalJSON) ``` func (r *[ResponsysLinkedService](#ResponsysLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ResponsysLinkedService. #### type [ResponsysLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22101) [¶](#ResponsysLinkedServiceTypeProperties) ``` type ResponsysLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with the Responsys application. Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // REQUIRED; The endpoint of the Responsys server. Endpoint interface{} `json:"endpoint,omitempty"` // The client secret associated with the Responsys application. Type: string (or Expression with resultType string). ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` ResponsysLinkedServiceTypeProperties - Responsys linked service properties. #### func (ResponsysLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38196) [¶](#ResponsysLinkedServiceTypeProperties.MarshalJSON) ``` func (r [ResponsysLinkedServiceTypeProperties](#ResponsysLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ResponsysLinkedServiceTypeProperties. #### func (*ResponsysLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38209) [¶](#ResponsysLinkedServiceTypeProperties.UnmarshalJSON) ``` func (r *[ResponsysLinkedServiceTypeProperties](#ResponsysLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ResponsysLinkedServiceTypeProperties. #### type [ResponsysObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22130) [¶](#ResponsysObjectDataset) ``` type ResponsysObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ResponsysObjectDataset - Responsys dataset. #### func (*ResponsysObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22164) [¶](#ResponsysObjectDataset.GetDataset) added in v0.2.0 ``` func (r *[ResponsysObjectDataset](#ResponsysObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ResponsysObjectDataset. #### func (ResponsysObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38247) [¶](#ResponsysObjectDataset.MarshalJSON) ``` func (r [ResponsysObjectDataset](#ResponsysObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ResponsysObjectDataset. #### func (*ResponsysObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38267) [¶](#ResponsysObjectDataset.UnmarshalJSON) ``` func (r *[ResponsysObjectDataset](#ResponsysObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ResponsysObjectDataset. #### type [ResponsysSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22179) [¶](#ResponsysSource) ``` type ResponsysSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` ResponsysSource - A copy activity Responsys source. #### func (*ResponsysSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22210) [¶](#ResponsysSource.GetCopySource) added in v0.2.0 ``` func (r *[ResponsysSource](#ResponsysSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ResponsysSource. #### func (*ResponsysSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22222) [¶](#ResponsysSource.GetTabularSource) added in v0.2.0 ``` func (r *[ResponsysSource](#ResponsysSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type ResponsysSource. #### func (ResponsysSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38321) [¶](#ResponsysSource.MarshalJSON) ``` func (r [ResponsysSource](#ResponsysSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ResponsysSource. #### func (*ResponsysSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38340) [¶](#ResponsysSource.UnmarshalJSON) ``` func (r *[ResponsysSource](#ResponsysSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ResponsysSource. #### type [RestResourceDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22236) [¶](#RestResourceDataset) ``` type RestResourceDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[RestResourceDatasetTypeProperties](#RestResourceDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` RestResourceDataset - A Rest service dataset. #### func (*RestResourceDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22270) [¶](#RestResourceDataset.GetDataset) added in v0.2.0 ``` func (r *[RestResourceDataset](#RestResourceDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type RestResourceDataset. #### func (RestResourceDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38391) [¶](#RestResourceDataset.MarshalJSON) ``` func (r [RestResourceDataset](#RestResourceDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RestResourceDataset. #### func (*RestResourceDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38411) [¶](#RestResourceDataset.UnmarshalJSON) ``` func (r *[RestResourceDataset](#RestResourceDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RestResourceDataset. #### type [RestResourceDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22285) [¶](#RestResourceDatasetTypeProperties) ``` type RestResourceDatasetTypeProperties struct { // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` // The pagination rules to compose next page requests. Type: string (or Expression with resultType string). PaginationRules interface{} `json:"paginationRules,omitempty"` // The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). RelativeURL interface{} `json:"relativeUrl,omitempty"` // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). RequestBody interface{} `json:"requestBody,omitempty"` // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). RequestMethod interface{} `json:"requestMethod,omitempty"` } ``` RestResourceDatasetTypeProperties - Properties specific to this dataset type. #### func (RestResourceDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38465) [¶](#RestResourceDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (r [RestResourceDatasetTypeProperties](#RestResourceDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RestResourceDatasetTypeProperties. #### func (*RestResourceDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38476) [¶](#RestResourceDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (r *[RestResourceDatasetTypeProperties](#RestResourceDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RestResourceDatasetTypeProperties. #### type [RestServiceAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1304) [¶](#RestServiceAuthenticationType) ``` type RestServiceAuthenticationType [string](/builtin#string) ``` RestServiceAuthenticationType - Type of authentication used to connect to the REST service. ``` const ( RestServiceAuthenticationTypeAADServicePrincipal [RestServiceAuthenticationType](#RestServiceAuthenticationType) = "AadServicePrincipal" RestServiceAuthenticationTypeAnonymous [RestServiceAuthenticationType](#RestServiceAuthenticationType) = "Anonymous" RestServiceAuthenticationTypeBasic [RestServiceAuthenticationType](#RestServiceAuthenticationType) = "Basic" RestServiceAuthenticationTypeManagedServiceIdentity [RestServiceAuthenticationType](#RestServiceAuthenticationType) = "ManagedServiceIdentity" RestServiceAuthenticationTypeOAuth2ClientCredential [RestServiceAuthenticationType](#RestServiceAuthenticationType) = "OAuth2ClientCredential" ) ``` #### func [PossibleRestServiceAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1315) [¶](#PossibleRestServiceAuthenticationTypeValues) ``` func PossibleRestServiceAuthenticationTypeValues() [][RestServiceAuthenticationType](#RestServiceAuthenticationType) ``` PossibleRestServiceAuthenticationTypeValues returns the possible values for the RestServiceAuthenticationType const type. #### type [RestServiceLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22303) [¶](#RestServiceLinkedService) ``` type RestServiceLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Rest Service linked service properties. TypeProperties *[RestServiceLinkedServiceTypeProperties](#RestServiceLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` RestServiceLinkedService - Rest Service linked service. #### func (*RestServiceLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22327) [¶](#RestServiceLinkedService.GetLinkedService) added in v0.2.0 ``` func (r *[RestServiceLinkedService](#RestServiceLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type RestServiceLinkedService. #### func (RestServiceLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38508) [¶](#RestServiceLinkedService.MarshalJSON) ``` func (r [RestServiceLinkedService](#RestServiceLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RestServiceLinkedService. #### func (*RestServiceLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38525) [¶](#RestServiceLinkedService.UnmarshalJSON) ``` func (r *[RestServiceLinkedService](#RestServiceLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RestServiceLinkedService. #### type [RestServiceLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22339) [¶](#RestServiceLinkedServiceTypeProperties) ``` type RestServiceLinkedServiceTypeProperties struct { // REQUIRED; Type of authentication used to connect to the REST service. AuthenticationType *[RestServiceAuthenticationType](#RestServiceAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The base URL of the REST service. URL interface{} `json:"url,omitempty"` // The resource you are requesting authorization to use. AADResourceID interface{} `json:"aadResourceId,omitempty"` // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType // object). AuthHeaders interface{} `json:"authHeaders,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). AzureCloudType interface{} `json:"azureCloudType,omitempty"` // The client ID associated with your application. Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // The client secret associated with your application. ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean // (or Expression with resultType boolean). EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password used in Basic authentication type. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The target service or resource to which the access will be requested. Type: string (or Expression with resultType string). Resource interface{} `json:"resource,omitempty"` // The scope of the access required. It describes what kind of access will be requested. Type: string (or Expression with // resultType string). Scope interface{} `json:"scope,omitempty"` // The application's client ID used in AadServicePrincipal authentication type. ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The application's key used in AadServicePrincipal authentication type. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application // resides. Tenant interface{} `json:"tenant,omitempty"` // The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string). TokenEndpoint interface{} `json:"tokenEndpoint,omitempty"` // The user name used in Basic authentication type. UserName interface{} `json:"userName,omitempty"` } ``` RestServiceLinkedServiceTypeProperties - Rest Service linked service properties. #### func (RestServiceLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38570) [¶](#RestServiceLinkedServiceTypeProperties.MarshalJSON) ``` func (r [RestServiceLinkedServiceTypeProperties](#RestServiceLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RestServiceLinkedServiceTypeProperties. #### func (*RestServiceLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38594) [¶](#RestServiceLinkedServiceTypeProperties.UnmarshalJSON) ``` func (r *[RestServiceLinkedServiceTypeProperties](#RestServiceLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RestServiceLinkedServiceTypeProperties. #### type [RestSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22403) [¶](#RestSink) ``` type RestSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported // option is Gzip. HTTPCompressionType interface{} `json:"httpCompressionType,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:01:40. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The time to await before sending next request, in milliseconds RequestInterval interface{} `json:"requestInterval,omitempty"` // The HTTP method used to call the RESTful API. The default is POST. Type: string (or Expression with resultType string). RequestMethod interface{} `json:"requestMethod,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` RestSink - A copy activity Rest service Sink. #### func (*RestSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22448) [¶](#RestSink.GetCopySink) added in v0.2.0 ``` func (r *[RestSink](#RestSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type RestSink. #### func (RestSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38665) [¶](#RestSink.MarshalJSON) ``` func (r [RestSink](#RestSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RestSink. #### func (*RestSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38688) [¶](#RestSink.UnmarshalJSON) ``` func (r *[RestSink](#RestSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RestSink. #### type [RestSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22462) [¶](#RestSource) ``` type RestSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:01:40. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The pagination rules to compose next page requests. Type: string (or Expression with resultType string). PaginationRules interface{} `json:"paginationRules,omitempty"` // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). RequestBody interface{} `json:"requestBody,omitempty"` // The time to await before sending next page request. RequestInterval interface{} `json:"requestInterval,omitempty"` // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). RequestMethod interface{} `json:"requestMethod,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` RestSource - A copy activity Rest service source. #### func (*RestSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22507) [¶](#RestSource.GetCopySource) added in v0.2.0 ``` func (r *[RestSource](#RestSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type RestSource. #### func (RestSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38751) [¶](#RestSource.MarshalJSON) ``` func (r [RestSource](#RestSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RestSource. #### func (*RestSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38774) [¶](#RestSource.UnmarshalJSON) ``` func (r *[RestSource](#RestSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RestSource. #### type [RetryPolicy](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22519) [¶](#RetryPolicy) ``` type RetryPolicy struct { // Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. Count interface{} `json:"count,omitempty"` // Interval between retries in seconds. Default is 30. IntervalInSeconds *[int32](/builtin#int32) `json:"intervalInSeconds,omitempty"` } ``` RetryPolicy - Execution policy for an activity. #### func (RetryPolicy) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38837) [¶](#RetryPolicy.MarshalJSON) added in v1.3.0 ``` func (r [RetryPolicy](#RetryPolicy)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RetryPolicy. #### func (*RetryPolicy) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38845) [¶](#RetryPolicy.UnmarshalJSON) added in v1.3.0 ``` func (r *[RetryPolicy](#RetryPolicy)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RetryPolicy. #### type [RunFilterParameters](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22528) [¶](#RunFilterParameters) ``` type RunFilterParameters struct { // REQUIRED; The time at or after which the run event was updated in 'ISO 8601' format. LastUpdatedAfter *[time](/time).[Time](/time#Time) `json:"lastUpdatedAfter,omitempty"` // REQUIRED; The time at or before which the run event was updated in 'ISO 8601' format. LastUpdatedBefore *[time](/time).[Time](/time#Time) `json:"lastUpdatedBefore,omitempty"` // The continuation token for getting the next page of results. Null for first page. ContinuationToken *[string](/builtin#string) `json:"continuationToken,omitempty"` // List of filters. Filters []*[RunQueryFilter](#RunQueryFilter) `json:"filters,omitempty"` // List of OrderBy option. OrderBy []*[RunQueryOrderBy](#RunQueryOrderBy) `json:"orderBy,omitempty"` } ``` RunFilterParameters - Query parameters for listing runs. #### func (RunFilterParameters) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38868) [¶](#RunFilterParameters.MarshalJSON) ``` func (r [RunFilterParameters](#RunFilterParameters)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RunFilterParameters. #### func (*RunFilterParameters) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38879) [¶](#RunFilterParameters.UnmarshalJSON) ``` func (r *[RunFilterParameters](#RunFilterParameters)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RunFilterParameters. #### type [RunQueryFilter](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22546) [¶](#RunQueryFilter) ``` type RunQueryFilter struct { // REQUIRED; Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, // RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, // ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. Operand *[RunQueryFilterOperand](#RunQueryFilterOperand) `json:"operand,omitempty"` // REQUIRED; Operator to be used for filter. Operator *[RunQueryFilterOperator](#RunQueryFilterOperator) `json:"operator,omitempty"` // REQUIRED; List of filter values. Values []*[string](/builtin#string) `json:"values,omitempty"` } ``` RunQueryFilter - Query filter option for listing runs. #### func (RunQueryFilter) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38911) [¶](#RunQueryFilter.MarshalJSON) ``` func (r [RunQueryFilter](#RunQueryFilter)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RunQueryFilter. #### func (*RunQueryFilter) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38920) [¶](#RunQueryFilter.UnmarshalJSON) added in v1.3.0 ``` func (r *[RunQueryFilter](#RunQueryFilter)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RunQueryFilter. #### type [RunQueryFilterOperand](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1328) [¶](#RunQueryFilterOperand) ``` type RunQueryFilterOperand [string](/builtin#string) ``` RunQueryFilterOperand - Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. ``` const ( RunQueryFilterOperandActivityName [RunQueryFilterOperand](#RunQueryFilterOperand) = "ActivityName" RunQueryFilterOperandActivityRunEnd [RunQueryFilterOperand](#RunQueryFilterOperand) = "ActivityRunEnd" RunQueryFilterOperandActivityRunStart [RunQueryFilterOperand](#RunQueryFilterOperand) = "ActivityRunStart" RunQueryFilterOperandActivityType [RunQueryFilterOperand](#RunQueryFilterOperand) = "ActivityType" RunQueryFilterOperandLatestOnly [RunQueryFilterOperand](#RunQueryFilterOperand) = "LatestOnly" RunQueryFilterOperandPipelineName [RunQueryFilterOperand](#RunQueryFilterOperand) = "PipelineName" RunQueryFilterOperandRunEnd [RunQueryFilterOperand](#RunQueryFilterOperand) = "RunEnd" RunQueryFilterOperandRunGroupID [RunQueryFilterOperand](#RunQueryFilterOperand) = "RunGroupId" RunQueryFilterOperandRunStart [RunQueryFilterOperand](#RunQueryFilterOperand) = "RunStart" RunQueryFilterOperandStatus [RunQueryFilterOperand](#RunQueryFilterOperand) = "Status" RunQueryFilterOperandTriggerName [RunQueryFilterOperand](#RunQueryFilterOperand) = "TriggerName" RunQueryFilterOperandTriggerRunTimestamp [RunQueryFilterOperand](#RunQueryFilterOperand) = "TriggerRunTimestamp" ) ``` #### func [PossibleRunQueryFilterOperandValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1346) [¶](#PossibleRunQueryFilterOperandValues) ``` func PossibleRunQueryFilterOperandValues() [][RunQueryFilterOperand](#RunQueryFilterOperand) ``` PossibleRunQueryFilterOperandValues returns the possible values for the RunQueryFilterOperand const type. #### type [RunQueryFilterOperator](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1364) [¶](#RunQueryFilterOperator) ``` type RunQueryFilterOperator [string](/builtin#string) ``` RunQueryFilterOperator - Operator to be used for filter. ``` const ( RunQueryFilterOperatorEquals [RunQueryFilterOperator](#RunQueryFilterOperator) = "Equals" RunQueryFilterOperatorIn [RunQueryFilterOperator](#RunQueryFilterOperator) = "In" RunQueryFilterOperatorNotEquals [RunQueryFilterOperator](#RunQueryFilterOperator) = "NotEquals" RunQueryFilterOperatorNotIn [RunQueryFilterOperator](#RunQueryFilterOperator) = "NotIn" ) ``` #### func [PossibleRunQueryFilterOperatorValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1374) [¶](#PossibleRunQueryFilterOperatorValues) ``` func PossibleRunQueryFilterOperatorValues() [][RunQueryFilterOperator](#RunQueryFilterOperator) ``` PossibleRunQueryFilterOperatorValues returns the possible values for the RunQueryFilterOperator const type. #### type [RunQueryOrder](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1384) [¶](#RunQueryOrder) ``` type RunQueryOrder [string](/builtin#string) ``` RunQueryOrder - Sorting order of the parameter. ``` const ( RunQueryOrderASC [RunQueryOrder](#RunQueryOrder) = "ASC" RunQueryOrderDESC [RunQueryOrder](#RunQueryOrder) = "DESC" ) ``` #### func [PossibleRunQueryOrderValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1392) [¶](#PossibleRunQueryOrderValues) ``` func PossibleRunQueryOrderValues() [][RunQueryOrder](#RunQueryOrder) ``` PossibleRunQueryOrderValues returns the possible values for the RunQueryOrder const type. #### type [RunQueryOrderBy](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22560) [¶](#RunQueryOrderBy) ``` type RunQueryOrderBy struct { // REQUIRED; Sorting order of the parameter. Order *[RunQueryOrder](#RunQueryOrder) `json:"order,omitempty"` // REQUIRED; Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, // RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, // ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. OrderBy *[RunQueryOrderByField](#RunQueryOrderByField) `json:"orderBy,omitempty"` } ``` RunQueryOrderBy - An object to provide order by options for listing runs. #### func (RunQueryOrderBy) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38946) [¶](#RunQueryOrderBy.MarshalJSON) added in v1.3.0 ``` func (r [RunQueryOrderBy](#RunQueryOrderBy)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type RunQueryOrderBy. #### func (*RunQueryOrderBy) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38954) [¶](#RunQueryOrderBy.UnmarshalJSON) added in v1.3.0 ``` func (r *[RunQueryOrderBy](#RunQueryOrderBy)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type RunQueryOrderBy. #### type [RunQueryOrderByField](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1402) [¶](#RunQueryOrderByField) ``` type RunQueryOrderByField [string](/builtin#string) ``` RunQueryOrderByField - Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. ``` const ( RunQueryOrderByFieldActivityName [RunQueryOrderByField](#RunQueryOrderByField) = "ActivityName" RunQueryOrderByFieldActivityRunEnd [RunQueryOrderByField](#RunQueryOrderByField) = "ActivityRunEnd" RunQueryOrderByFieldActivityRunStart [RunQueryOrderByField](#RunQueryOrderByField) = "ActivityRunStart" RunQueryOrderByFieldPipelineName [RunQueryOrderByField](#RunQueryOrderByField) = "PipelineName" RunQueryOrderByFieldRunEnd [RunQueryOrderByField](#RunQueryOrderByField) = "RunEnd" RunQueryOrderByFieldRunStart [RunQueryOrderByField](#RunQueryOrderByField) = "RunStart" RunQueryOrderByFieldStatus [RunQueryOrderByField](#RunQueryOrderByField) = "Status" RunQueryOrderByFieldTriggerName [RunQueryOrderByField](#RunQueryOrderByField) = "TriggerName" RunQueryOrderByFieldTriggerRunTimestamp [RunQueryOrderByField](#RunQueryOrderByField) = "TriggerRunTimestamp" ) ``` #### func [PossibleRunQueryOrderByFieldValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1417) [¶](#PossibleRunQueryOrderByFieldValues) ``` func PossibleRunQueryOrderByFieldValues() [][RunQueryOrderByField](#RunQueryOrderByField) ``` PossibleRunQueryOrderByFieldValues returns the possible values for the RunQueryOrderByField const type. #### type [SQLAlwaysEncryptedAkvAuthType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1433) [¶](#SQLAlwaysEncryptedAkvAuthType) ``` type SQLAlwaysEncryptedAkvAuthType [string](/builtin#string) ``` SQLAlwaysEncryptedAkvAuthType - Sql always encrypted AKV authentication type. Type: string (or Expression with resultType string). ``` const ( SQLAlwaysEncryptedAkvAuthTypeManagedIdentity [SQLAlwaysEncryptedAkvAuthType](#SQLAlwaysEncryptedAkvAuthType) = "ManagedIdentity" SQLAlwaysEncryptedAkvAuthTypeServicePrincipal [SQLAlwaysEncryptedAkvAuthType](#SQLAlwaysEncryptedAkvAuthType) = "ServicePrincipal" SQLAlwaysEncryptedAkvAuthTypeUserAssignedManagedIdentity [SQLAlwaysEncryptedAkvAuthType](#SQLAlwaysEncryptedAkvAuthType) = "UserAssignedManagedIdentity" ) ``` #### func [PossibleSQLAlwaysEncryptedAkvAuthTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1442) [¶](#PossibleSQLAlwaysEncryptedAkvAuthTypeValues) ``` func PossibleSQLAlwaysEncryptedAkvAuthTypeValues() [][SQLAlwaysEncryptedAkvAuthType](#SQLAlwaysEncryptedAkvAuthType) ``` PossibleSQLAlwaysEncryptedAkvAuthTypeValues returns the possible values for the SQLAlwaysEncryptedAkvAuthType const type. #### type [SQLAlwaysEncryptedProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22571) [¶](#SQLAlwaysEncryptedProperties) ``` type SQLAlwaysEncryptedProperties struct { // REQUIRED; Sql always encrypted AKV authentication type. Type: string (or Expression with resultType string). AlwaysEncryptedAkvAuthType *[SQLAlwaysEncryptedAkvAuthType](#SQLAlwaysEncryptedAkvAuthType) `json:"alwaysEncryptedAkvAuthType,omitempty"` // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression // with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure Key Vault. ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` } ``` SQLAlwaysEncryptedProperties - Sql always encrypted properties. #### func (SQLAlwaysEncryptedProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38977) [¶](#SQLAlwaysEncryptedProperties.MarshalJSON) ``` func (s [SQLAlwaysEncryptedProperties](#SQLAlwaysEncryptedProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLAlwaysEncryptedProperties. #### func (*SQLAlwaysEncryptedProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L38987) [¶](#SQLAlwaysEncryptedProperties.UnmarshalJSON) ``` func (s *[SQLAlwaysEncryptedProperties](#SQLAlwaysEncryptedProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLAlwaysEncryptedProperties. #### type [SQLDWSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22587) [¶](#SQLDWSink) ``` type SQLDWSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` // Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType // boolean). AllowPolyBase interface{} `json:"allowPolyBase,omitempty"` // Specifies Copy Command related settings when allowCopyCommand is true. CopyCommandSettings *[DWCopyCommandSettings](#DWCopyCommandSettings) `json:"copyCommandSettings,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Specifies PolyBase-related settings when allowPolyBase is true. PolyBaseSettings *[PolybaseSettings](#PolybaseSettings) `json:"polyBaseSettings,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). TableOption interface{} `json:"tableOption,omitempty"` // SQL DW upsert settings. UpsertSettings *[SQLDWUpsertSettings](#SQLDWUpsertSettings) `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum) WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` SQLDWSink - A copy activity SQL Data Warehouse sink. #### func (*SQLDWSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22643) [¶](#SQLDWSink.GetCopySink) added in v0.2.0 ``` func (s *[SQLDWSink](#SQLDWSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type SQLDWSink. #### func (SQLDWSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39016) [¶](#SQLDWSink.MarshalJSON) ``` func (s [SQLDWSink](#SQLDWSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLDWSink. #### func (*SQLDWSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39043) [¶](#SQLDWSink.UnmarshalJSON) ``` func (s *[SQLDWSink](#SQLDWSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLDWSink. #### type [SQLDWSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22657) [¶](#SQLDWSource) ``` type SQLDWSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *[SQLPartitionSettings](#SQLPartitionSettings) `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // SQL Data Warehouse reader query. Type: string (or Expression with resultType string). SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Data Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: // string (or Expression with resultType string). SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object // (or Expression with resultType object), itemType: StoredProcedureParameter. StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` } ``` SQLDWSource - A copy activity SQL Data Warehouse source. #### func (*SQLDWSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22703) [¶](#SQLDWSource.GetCopySource) added in v0.2.0 ``` func (s *[SQLDWSource](#SQLDWSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SQLDWSource. #### func (*SQLDWSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22715) [¶](#SQLDWSource.GetTabularSource) added in v0.2.0 ``` func (s *[SQLDWSource](#SQLDWSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SQLDWSource. #### func (SQLDWSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39118) [¶](#SQLDWSource.MarshalJSON) ``` func (s [SQLDWSource](#SQLDWSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLDWSource. #### func (*SQLDWSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39141) [¶](#SQLDWSource.UnmarshalJSON) ``` func (s *[SQLDWSource](#SQLDWSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLDWSource. #### type [SQLDWUpsertSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22729) [¶](#SQLDWUpsertSettings) ``` type SQLDWUpsertSettings struct { // Schema name for interim table. Type: string (or Expression with resultType string). InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` // Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). Keys interface{} `json:"keys,omitempty"` } ``` SQLDWUpsertSettings - Sql DW upsert option settings #### func (SQLDWUpsertSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39204) [¶](#SQLDWUpsertSettings.MarshalJSON) added in v1.3.0 ``` func (s [SQLDWUpsertSettings](#SQLDWUpsertSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLDWUpsertSettings. #### func (*SQLDWUpsertSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39212) [¶](#SQLDWUpsertSettings.UnmarshalJSON) added in v1.3.0 ``` func (s *[SQLDWUpsertSettings](#SQLDWUpsertSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLDWUpsertSettings. #### type [SQLDWWriteBehaviorEnum](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1451) [¶](#SQLDWWriteBehaviorEnum) ``` type SQLDWWriteBehaviorEnum [string](/builtin#string) ``` SQLDWWriteBehaviorEnum - Specify the write behavior when copying data into sql dw. ``` const ( SQLDWWriteBehaviorEnumInsert [SQLDWWriteBehaviorEnum](#SQLDWWriteBehaviorEnum) = "Insert" SQLDWWriteBehaviorEnumUpsert [SQLDWWriteBehaviorEnum](#SQLDWWriteBehaviorEnum) = "Upsert" ) ``` #### func [PossibleSQLDWWriteBehaviorEnumValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1459) [¶](#PossibleSQLDWWriteBehaviorEnumValues) ``` func PossibleSQLDWWriteBehaviorEnumValues() [][SQLDWWriteBehaviorEnum](#SQLDWWriteBehaviorEnum) ``` PossibleSQLDWWriteBehaviorEnumValues returns the possible values for the SQLDWWriteBehaviorEnum const type. #### type [SQLMISink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22738) [¶](#SQLMISink) ``` type SQLMISink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // SQL writer stored procedure name. Type: string (or Expression with resultType string). SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` // SQL writer table type. Type: string (or Expression with resultType string). SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). TableOption interface{} `json:"tableOption,omitempty"` // SQL upsert settings. UpsertSettings *[SQLUpsertSettings](#SQLUpsertSettings) `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // White behavior when copying data into azure SQL MI. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` SQLMISink - A copy activity Azure SQL Managed Instance sink. #### func (*SQLMISink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22793) [¶](#SQLMISink.GetCopySink) added in v0.2.0 ``` func (s *[SQLMISink](#SQLMISink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type SQLMISink. #### func (SQLMISink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39235) [¶](#SQLMISink.MarshalJSON) ``` func (s [SQLMISink](#SQLMISink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLMISink. #### func (*SQLMISink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39262) [¶](#SQLMISink.UnmarshalJSON) ``` func (s *[SQLMISink](#SQLMISink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLMISink. #### type [SQLMISource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22807) [¶](#SQLMISource) ``` type SQLMISource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *[SQLPartitionSettings](#SQLPartitionSettings) `json:"partitionSettings,omitempty"` // Which additional types to produce. ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. // Type: string (or Expression with resultType string). SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` } ``` SQLMISource - A copy activity Azure SQL Managed Instance source. #### func (*SQLMISource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22855) [¶](#SQLMISource.GetCopySource) added in v0.2.0 ``` func (s *[SQLMISource](#SQLMISource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SQLMISource. #### func (*SQLMISource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22867) [¶](#SQLMISource.GetTabularSource) added in v0.2.0 ``` func (s *[SQLMISource](#SQLMISource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SQLMISource. #### func (SQLMISource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39337) [¶](#SQLMISource.MarshalJSON) ``` func (s [SQLMISource](#SQLMISource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLMISource. #### func (*SQLMISource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39361) [¶](#SQLMISource.UnmarshalJSON) ``` func (s *[SQLMISource](#SQLMISource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLMISource. #### type [SQLPartitionOption](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1467) [¶](#SQLPartitionOption) ``` type SQLPartitionOption [string](/builtin#string) ``` SQLPartitionOption - The partition mechanism that will be used for Sql read in parallel. ``` const ( SQLPartitionOptionDynamicRange [SQLPartitionOption](#SQLPartitionOption) = "DynamicRange" SQLPartitionOptionNone [SQLPartitionOption](#SQLPartitionOption) = "None" SQLPartitionOptionPhysicalPartitionsOfTable [SQLPartitionOption](#SQLPartitionOption) = "PhysicalPartitionsOfTable" ) ``` #### func [PossibleSQLPartitionOptionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1476) [¶](#PossibleSQLPartitionOptionValues) ``` func PossibleSQLPartitionOptionValues() [][SQLPartitionOption](#SQLPartitionOption) ``` PossibleSQLPartitionOptionValues returns the possible values for the SQLPartitionOption const type. #### type [SQLPartitionSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22881) [¶](#SQLPartitionSettings) ``` type SQLPartitionSettings struct { // The name of the column in integer or datetime type that will be used for proceeding partitioning. If not specified, the // primary key of the table is auto-detected and used as the partition column. // Type: string (or Expression with resultType string). PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` // The minimum value of the partition column for partition range splitting. This value is used to decide the partition stride, // not for filtering the rows in table. All rows in the table or query result // will be partitioned and copied. Type: string (or Expression with resultType string). PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` // The maximum value of the partition column for partition range splitting. This value is used to decide the partition stride, // not for filtering the rows in table. All rows in the table or query result // will be partitioned and copied. Type: string (or Expression with resultType string). PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` } ``` SQLPartitionSettings - The settings that will be leveraged for Sql source partitioning. #### func (SQLPartitionSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39427) [¶](#SQLPartitionSettings.MarshalJSON) added in v1.3.0 ``` func (s [SQLPartitionSettings](#SQLPartitionSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLPartitionSettings. #### func (*SQLPartitionSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39436) [¶](#SQLPartitionSettings.UnmarshalJSON) added in v1.3.0 ``` func (s *[SQLPartitionSettings](#SQLPartitionSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLPartitionSettings. #### type [SQLServerLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22899) [¶](#SQLServerLinkedService) ``` type SQLServerLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SQL Server linked service properties. TypeProperties *[SQLServerLinkedServiceTypeProperties](#SQLServerLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SQLServerLinkedService - SQL Server linked service. #### func (*SQLServerLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22923) [¶](#SQLServerLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SQLServerLinkedService](#SQLServerLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SQLServerLinkedService. #### func (SQLServerLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39462) [¶](#SQLServerLinkedService.MarshalJSON) ``` func (s [SQLServerLinkedService](#SQLServerLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLServerLinkedService. #### func (*SQLServerLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39479) [¶](#SQLServerLinkedService.UnmarshalJSON) ``` func (s *[SQLServerLinkedService](#SQLServerLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerLinkedService. #### type [SQLServerLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22935) [¶](#SQLServerLinkedServiceTypeProperties) ``` type SQLServerLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Sql always encrypted properties. AlwaysEncryptedSettings *[SQLAlwaysEncryptedProperties](#SQLAlwaysEncryptedProperties) `json:"alwaysEncryptedSettings,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The on-premises Windows authentication password. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The on-premises Windows authentication user name. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` SQLServerLinkedServiceTypeProperties - SQL Server linked service properties. #### func (SQLServerLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39524) [¶](#SQLServerLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SQLServerLinkedServiceTypeProperties](#SQLServerLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLServerLinkedServiceTypeProperties. #### func (*SQLServerLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39535) [¶](#SQLServerLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SQLServerLinkedServiceTypeProperties](#SQLServerLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerLinkedServiceTypeProperties. #### type [SQLServerSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L22954) [¶](#SQLServerSink) ``` type SQLServerSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // SQL writer stored procedure name. Type: string (or Expression with resultType string). SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` // SQL writer table type. Type: string (or Expression with resultType string). SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). TableOption interface{} `json:"tableOption,omitempty"` // SQL upsert settings. UpsertSettings *[SQLUpsertSettings](#SQLUpsertSettings) `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Write behavior when copying data into sql server. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` SQLServerSink - A copy activity SQL server sink. #### func (*SQLServerSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23009) [¶](#SQLServerSink.GetCopySink) added in v0.2.0 ``` func (s *[SQLServerSink](#SQLServerSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type SQLServerSink. #### func (SQLServerSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39567) [¶](#SQLServerSink.MarshalJSON) ``` func (s [SQLServerSink](#SQLServerSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLServerSink. #### func (*SQLServerSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39594) [¶](#SQLServerSink.UnmarshalJSON) ``` func (s *[SQLServerSink](#SQLServerSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerSink. #### type [SQLServerSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23023) [¶](#SQLServerSource) ``` type SQLServerSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *[SQLPartitionSettings](#SQLPartitionSettings) `json:"partitionSettings,omitempty"` // Which additional types to produce. ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` } ``` SQLServerSource - A copy activity SQL server source. #### func (*SQLServerSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23071) [¶](#SQLServerSource.GetCopySource) added in v0.2.0 ``` func (s *[SQLServerSource](#SQLServerSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SQLServerSource. #### func (*SQLServerSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23083) [¶](#SQLServerSource.GetTabularSource) added in v0.2.0 ``` func (s *[SQLServerSource](#SQLServerSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SQLServerSource. #### func (SQLServerSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39669) [¶](#SQLServerSource.MarshalJSON) ``` func (s [SQLServerSource](#SQLServerSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLServerSource. #### func (*SQLServerSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39693) [¶](#SQLServerSource.UnmarshalJSON) ``` func (s *[SQLServerSource](#SQLServerSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerSource. #### type [SQLServerStoredProcedureActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23097) [¶](#SQLServerStoredProcedureActivity) ``` type SQLServerStoredProcedureActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SQL stored procedure activity properties. TypeProperties *[SQLServerStoredProcedureActivityTypeProperties](#SQLServerStoredProcedureActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` SQLServerStoredProcedureActivity - SQL stored procedure activity type. #### func (*SQLServerStoredProcedureActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23127) [¶](#SQLServerStoredProcedureActivity.GetActivity) added in v0.2.0 ``` func (s *[SQLServerStoredProcedureActivity](#SQLServerStoredProcedureActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type SQLServerStoredProcedureActivity. #### func (*SQLServerStoredProcedureActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23139) [¶](#SQLServerStoredProcedureActivity.GetExecutionActivity) added in v0.2.0 ``` func (s *[SQLServerStoredProcedureActivity](#SQLServerStoredProcedureActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type SQLServerStoredProcedureActivity. #### func (SQLServerStoredProcedureActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39759) [¶](#SQLServerStoredProcedureActivity.MarshalJSON) ``` func (s [SQLServerStoredProcedureActivity](#SQLServerStoredProcedureActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLServerStoredProcedureActivity. #### func (*SQLServerStoredProcedureActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39778) [¶](#SQLServerStoredProcedureActivity.UnmarshalJSON) ``` func (s *[SQLServerStoredProcedureActivity](#SQLServerStoredProcedureActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerStoredProcedureActivity. #### type [SQLServerStoredProcedureActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23153) [¶](#SQLServerStoredProcedureActivityTypeProperties) ``` type SQLServerStoredProcedureActivityTypeProperties struct { // REQUIRED; Stored procedure name. Type: string (or Expression with resultType string). StoredProcedureName interface{} `json:"storedProcedureName,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` } ``` SQLServerStoredProcedureActivityTypeProperties - SQL stored procedure activity properties. #### func (SQLServerStoredProcedureActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39829) [¶](#SQLServerStoredProcedureActivityTypeProperties.MarshalJSON) ``` func (s [SQLServerStoredProcedureActivityTypeProperties](#SQLServerStoredProcedureActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLServerStoredProcedureActivityTypeProperties. #### func (*SQLServerStoredProcedureActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39837) [¶](#SQLServerStoredProcedureActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SQLServerStoredProcedureActivityTypeProperties](#SQLServerStoredProcedureActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerStoredProcedureActivityTypeProperties. #### type [SQLServerTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23162) [¶](#SQLServerTableDataset) ``` type SQLServerTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // On-premises SQL Server dataset properties. TypeProperties *[SQLServerTableDatasetTypeProperties](#SQLServerTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SQLServerTableDataset - The on-premises SQL Server dataset. #### func (*SQLServerTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23196) [¶](#SQLServerTableDataset.GetDataset) added in v0.2.0 ``` func (s *[SQLServerTableDataset](#SQLServerTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SQLServerTableDataset. #### func (SQLServerTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39860) [¶](#SQLServerTableDataset.MarshalJSON) ``` func (s [SQLServerTableDataset](#SQLServerTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLServerTableDataset. #### func (*SQLServerTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39880) [¶](#SQLServerTableDataset.UnmarshalJSON) ``` func (s *[SQLServerTableDataset](#SQLServerTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerTableDataset. #### type [SQLServerTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23211) [¶](#SQLServerTableDatasetTypeProperties) ``` type SQLServerTableDatasetTypeProperties struct { // The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the SQL Server dataset. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` SQLServerTableDatasetTypeProperties - On-premises SQL Server dataset properties. #### func (SQLServerTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39934) [¶](#SQLServerTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SQLServerTableDatasetTypeProperties](#SQLServerTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLServerTableDatasetTypeProperties. #### func (*SQLServerTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39943) [¶](#SQLServerTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SQLServerTableDatasetTypeProperties](#SQLServerTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerTableDatasetTypeProperties. #### type [SQLSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23223) [¶](#SQLSink) ``` type SQLSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // SQL writer stored procedure name. Type: string (or Expression with resultType string). SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` // SQL writer table type. Type: string (or Expression with resultType string). SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). TableOption interface{} `json:"tableOption,omitempty"` // SQL upsert settings. UpsertSettings *[SQLUpsertSettings](#SQLUpsertSettings) `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // Write behavior when copying data into sql. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) WriteBehavior interface{} `json:"writeBehavior,omitempty"` } ``` SQLSink - A copy activity SQL sink. #### func (*SQLSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23278) [¶](#SQLSink.GetCopySink) added in v0.2.0 ``` func (s *[SQLSink](#SQLSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type SQLSink. #### func (SQLSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39969) [¶](#SQLSink.MarshalJSON) ``` func (s [SQLSink](#SQLSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLSink. #### func (*SQLSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L39996) [¶](#SQLSink.UnmarshalJSON) ``` func (s *[SQLSink](#SQLSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLSink. #### type [SQLSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23292) [¶](#SQLSource) ``` type SQLSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. // The default value is ReadCommitted. Type: string (or // Expression with resultType string). IsolationLevel interface{} `json:"isolationLevel,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *[SQLPartitionSettings](#SQLPartitionSettings) `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". StoredProcedureParameters map[[string](/builtin#string)]*[StoredProcedureParameter](#StoredProcedureParameter) `json:"storedProcedureParameters,omitempty"` } ``` SQLSource - A copy activity SQL source. #### func (*SQLSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23342) [¶](#SQLSource.GetCopySource) added in v0.2.0 ``` func (s *[SQLSource](#SQLSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SQLSource. #### func (*SQLSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23354) [¶](#SQLSource.GetTabularSource) added in v0.2.0 ``` func (s *[SQLSource](#SQLSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SQLSource. #### func (SQLSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40071) [¶](#SQLSource.MarshalJSON) ``` func (s [SQLSource](#SQLSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLSource. #### func (*SQLSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40095) [¶](#SQLSource.UnmarshalJSON) ``` func (s *[SQLSource](#SQLSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLSource. #### type [SQLUpsertSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23368) [¶](#SQLUpsertSettings) ``` type SQLUpsertSettings struct { // Schema name for interim table. Type: string (or Expression with resultType string). InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` // Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). Keys interface{} `json:"keys,omitempty"` // Specifies whether to use temp db for upsert interim table. Type: boolean (or Expression with resultType boolean). UseTempDB interface{} `json:"useTempDB,omitempty"` } ``` SQLUpsertSettings - Sql upsert option settings #### func (SQLUpsertSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40161) [¶](#SQLUpsertSettings.MarshalJSON) added in v1.3.0 ``` func (s [SQLUpsertSettings](#SQLUpsertSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SQLUpsertSettings. #### func (*SQLUpsertSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40170) [¶](#SQLUpsertSettings.UnmarshalJSON) added in v1.3.0 ``` func (s *[SQLUpsertSettings](#SQLUpsertSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SQLUpsertSettings. #### type [SQLWriteBehaviorEnum](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1485) [¶](#SQLWriteBehaviorEnum) ``` type SQLWriteBehaviorEnum [string](/builtin#string) ``` SQLWriteBehaviorEnum - Specify the write behavior when copying data into sql. ``` const ( SQLWriteBehaviorEnumInsert [SQLWriteBehaviorEnum](#SQLWriteBehaviorEnum) = "Insert" SQLWriteBehaviorEnumStoredProcedure [SQLWriteBehaviorEnum](#SQLWriteBehaviorEnum) = "StoredProcedure" SQLWriteBehaviorEnumUpsert [SQLWriteBehaviorEnum](#SQLWriteBehaviorEnum) = "Upsert" ) ``` #### func [PossibleSQLWriteBehaviorEnumValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1494) [¶](#PossibleSQLWriteBehaviorEnumValues) ``` func PossibleSQLWriteBehaviorEnumValues() [][SQLWriteBehaviorEnum](#SQLWriteBehaviorEnum) ``` PossibleSQLWriteBehaviorEnumValues returns the possible values for the SQLWriteBehaviorEnum const type. #### type [SSISAccessCredential](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23380) [¶](#SSISAccessCredential) ``` type SSISAccessCredential struct { // REQUIRED; Domain for windows authentication. Domain interface{} `json:"domain,omitempty"` // REQUIRED; Password for windows authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // REQUIRED; UseName for windows authentication. UserName interface{} `json:"userName,omitempty"` } ``` SSISAccessCredential - SSIS access credential. #### func (SSISAccessCredential) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40196) [¶](#SSISAccessCredential.MarshalJSON) ``` func (s [SSISAccessCredential](#SSISAccessCredential)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISAccessCredential. #### func (*SSISAccessCredential) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40205) [¶](#SSISAccessCredential.UnmarshalJSON) ``` func (s *[SSISAccessCredential](#SSISAccessCredential)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISAccessCredential. #### type [SSISChildPackage](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23392) [¶](#SSISChildPackage) ``` type SSISChildPackage struct { // REQUIRED; Content for embedded child package. Type: string (or Expression with resultType string). PackageContent interface{} `json:"packageContent,omitempty"` // REQUIRED; Path for embedded child package. Type: string (or Expression with resultType string). PackagePath interface{} `json:"packagePath,omitempty"` // Last modified date for embedded child package. PackageLastModifiedDate *[string](/builtin#string) `json:"packageLastModifiedDate,omitempty"` // Name for embedded child package. PackageName *[string](/builtin#string) `json:"packageName,omitempty"` } ``` SSISChildPackage - SSIS embedded child package. #### func (SSISChildPackage) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40231) [¶](#SSISChildPackage.MarshalJSON) added in v1.3.0 ``` func (s [SSISChildPackage](#SSISChildPackage)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISChildPackage. #### func (*SSISChildPackage) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40241) [¶](#SSISChildPackage.UnmarshalJSON) added in v1.3.0 ``` func (s *[SSISChildPackage](#SSISChildPackage)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISChildPackage. #### type [SSISExecutionCredential](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23407) [¶](#SSISExecutionCredential) ``` type SSISExecutionCredential struct { // REQUIRED; Domain for windows authentication. Domain interface{} `json:"domain,omitempty"` // REQUIRED; Password for windows authentication. Password *[SecureString](#SecureString) `json:"password,omitempty"` // REQUIRED; UseName for windows authentication. UserName interface{} `json:"userName,omitempty"` } ``` SSISExecutionCredential - SSIS package execution credential. #### func (SSISExecutionCredential) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40270) [¶](#SSISExecutionCredential.MarshalJSON) added in v1.3.0 ``` func (s [SSISExecutionCredential](#SSISExecutionCredential)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISExecutionCredential. #### func (*SSISExecutionCredential) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40279) [¶](#SSISExecutionCredential.UnmarshalJSON) added in v1.3.0 ``` func (s *[SSISExecutionCredential](#SSISExecutionCredential)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISExecutionCredential. #### type [SSISExecutionParameter](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23419) [¶](#SSISExecutionParameter) ``` type SSISExecutionParameter struct { // REQUIRED; SSIS package execution parameter value. Type: string (or Expression with resultType string). Value interface{} `json:"value,omitempty"` } ``` SSISExecutionParameter - SSIS execution parameter. #### func (SSISExecutionParameter) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40305) [¶](#SSISExecutionParameter.MarshalJSON) added in v1.3.0 ``` func (s [SSISExecutionParameter](#SSISExecutionParameter)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISExecutionParameter. #### func (*SSISExecutionParameter) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40312) [¶](#SSISExecutionParameter.UnmarshalJSON) added in v1.3.0 ``` func (s *[SSISExecutionParameter](#SSISExecutionParameter)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISExecutionParameter. #### type [SSISLogLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23425) [¶](#SSISLogLocation) ``` type SSISLogLocation struct { // REQUIRED; The SSIS package execution log path. Type: string (or Expression with resultType string). LogPath interface{} `json:"logPath,omitempty"` // REQUIRED; The type of SSIS log location. Type *[SsisLogLocationType](#SsisLogLocationType) `json:"type,omitempty"` // REQUIRED; SSIS package execution log location properties. TypeProperties *[SSISLogLocationTypeProperties](#SSISLogLocationTypeProperties) `json:"typeProperties,omitempty"` } ``` SSISLogLocation - SSIS package execution log location #### func (SSISLogLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40332) [¶](#SSISLogLocation.MarshalJSON) added in v1.3.0 ``` func (s [SSISLogLocation](#SSISLogLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISLogLocation. #### func (*SSISLogLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40341) [¶](#SSISLogLocation.UnmarshalJSON) added in v1.3.0 ``` func (s *[SSISLogLocation](#SSISLogLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISLogLocation. #### type [SSISLogLocationTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23437) [¶](#SSISLogLocationTypeProperties) ``` type SSISLogLocationTypeProperties struct { // The package execution log access credential. AccessCredential *[SSISAccessCredential](#SSISAccessCredential) `json:"accessCredential,omitempty"` // Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). LogRefreshInterval interface{} `json:"logRefreshInterval,omitempty"` } ``` SSISLogLocationTypeProperties - SSIS package execution log location properties. #### func (SSISLogLocationTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40367) [¶](#SSISLogLocationTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SSISLogLocationTypeProperties](#SSISLogLocationTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISLogLocationTypeProperties. #### func (*SSISLogLocationTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40375) [¶](#SSISLogLocationTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SSISLogLocationTypeProperties](#SSISLogLocationTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISLogLocationTypeProperties. #### type [SSISPackageLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23447) [¶](#SSISPackageLocation) ``` type SSISPackageLocation struct { // The SSIS package path. Type: string (or Expression with resultType string). PackagePath interface{} `json:"packagePath,omitempty"` // The type of SSIS package location. Type *[SsisPackageLocationType](#SsisPackageLocationType) `json:"type,omitempty"` // SSIS package location properties. TypeProperties *[SSISPackageLocationTypeProperties](#SSISPackageLocationTypeProperties) `json:"typeProperties,omitempty"` } ``` SSISPackageLocation - SSIS package location. #### func (SSISPackageLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40398) [¶](#SSISPackageLocation.MarshalJSON) added in v1.3.0 ``` func (s [SSISPackageLocation](#SSISPackageLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISPackageLocation. #### func (*SSISPackageLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40407) [¶](#SSISPackageLocation.UnmarshalJSON) added in v1.3.0 ``` func (s *[SSISPackageLocation](#SSISPackageLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISPackageLocation. #### type [SSISPackageLocationTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23459) [¶](#SSISPackageLocationTypeProperties) ``` type SSISPackageLocationTypeProperties struct { // The package access credential. AccessCredential *[SSISAccessCredential](#SSISAccessCredential) `json:"accessCredential,omitempty"` // The embedded child package list. ChildPackages []*[SSISChildPackage](#SSISChildPackage) `json:"childPackages,omitempty"` // The configuration file access credential. ConfigurationAccessCredential *[SSISAccessCredential](#SSISAccessCredential) `json:"configurationAccessCredential,omitempty"` // The configuration file of the package execution. Type: string (or Expression with resultType string). ConfigurationPath interface{} `json:"configurationPath,omitempty"` // The embedded package content. Type: string (or Expression with resultType string). PackageContent interface{} `json:"packageContent,omitempty"` // The embedded package last modified date. PackageLastModifiedDate *[string](/builtin#string) `json:"packageLastModifiedDate,omitempty"` // The package name. PackageName *[string](/builtin#string) `json:"packageName,omitempty"` // Password of the package. PackagePassword [SecretBaseClassification](#SecretBaseClassification) `json:"packagePassword,omitempty"` } ``` SSISPackageLocationTypeProperties - SSIS package location properties. #### func (SSISPackageLocationTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40433) [¶](#SSISPackageLocationTypeProperties.MarshalJSON) ``` func (s [SSISPackageLocationTypeProperties](#SSISPackageLocationTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISPackageLocationTypeProperties. #### func (*SSISPackageLocationTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40447) [¶](#SSISPackageLocationTypeProperties.UnmarshalJSON) ``` func (s *[SSISPackageLocationTypeProperties](#SSISPackageLocationTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISPackageLocationTypeProperties. #### type [SSISPropertyOverride](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23486) [¶](#SSISPropertyOverride) ``` type SSISPropertyOverride struct { // REQUIRED; SSIS package property override value. Type: string (or Expression with resultType string). Value interface{} `json:"value,omitempty"` // Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true IsSensitive *[bool](/builtin#bool) `json:"isSensitive,omitempty"` } ``` SSISPropertyOverride - SSIS property override. #### func (SSISPropertyOverride) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40488) [¶](#SSISPropertyOverride.MarshalJSON) added in v1.3.0 ``` func (s [SSISPropertyOverride](#SSISPropertyOverride)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SSISPropertyOverride. #### func (*SSISPropertyOverride) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40496) [¶](#SSISPropertyOverride.UnmarshalJSON) added in v1.3.0 ``` func (s *[SSISPropertyOverride](#SSISPropertyOverride)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SSISPropertyOverride. #### type [SalesforceLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23495) [¶](#SalesforceLinkedService) ``` type SalesforceLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Salesforce linked service properties. TypeProperties *[SalesforceLinkedServiceTypeProperties](#SalesforceLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SalesforceLinkedService - Linked service for Salesforce. #### func (*SalesforceLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23519) [¶](#SalesforceLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SalesforceLinkedService](#SalesforceLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SalesforceLinkedService. #### func (SalesforceLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40519) [¶](#SalesforceLinkedService.MarshalJSON) ``` func (s [SalesforceLinkedService](#SalesforceLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceLinkedService. #### func (*SalesforceLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40536) [¶](#SalesforceLinkedService.UnmarshalJSON) ``` func (s *[SalesforceLinkedService](#SalesforceLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceLinkedService. #### type [SalesforceLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23531) [¶](#SalesforceLinkedServiceTypeProperties) ``` type SalesforceLinkedServiceTypeProperties struct { // The Salesforce API version used in ADF. Type: string (or Expression with resultType string). APIVersion interface{} `json:"apiVersion,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The URL of Salesforce instance. Default is '[https://login.salesforce.com'](https://login.salesforce.com%27). To copy data from sandbox, specify '[https://test.salesforce.com'](https://test.salesforce.com%27). // To copy data from custom domain, specify, for example, // '[https://[domain].my.salesforce.com'](https://[domain].my.salesforce.com%27). Type: string (or Expression with resultType string). EnvironmentURL interface{} `json:"environmentUrl,omitempty"` // The password for Basic authentication of the Salesforce instance. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The security token is optional to remotely access Salesforce instance. SecurityToken [SecretBaseClassification](#SecretBaseClassification) `json:"securityToken,omitempty"` // The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` SalesforceLinkedServiceTypeProperties - Salesforce linked service properties. #### func (SalesforceLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40581) [¶](#SalesforceLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SalesforceLinkedServiceTypeProperties](#SalesforceLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceLinkedServiceTypeProperties. #### func (*SalesforceLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40593) [¶](#SalesforceLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SalesforceLinkedServiceTypeProperties](#SalesforceLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceLinkedServiceTypeProperties. #### type [SalesforceMarketingCloudLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23555) [¶](#SalesforceMarketingCloudLinkedService) ``` type SalesforceMarketingCloudLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Salesforce Marketing Cloud linked service properties. TypeProperties *[SalesforceMarketingCloudLinkedServiceTypeProperties](#SalesforceMarketingCloudLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SalesforceMarketingCloudLinkedService - Salesforce Marketing Cloud linked service. #### func (*SalesforceMarketingCloudLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23579) [¶](#SalesforceMarketingCloudLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SalesforceMarketingCloudLinkedService](#SalesforceMarketingCloudLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SalesforceMarketingCloudLinkedService. #### func (SalesforceMarketingCloudLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40628) [¶](#SalesforceMarketingCloudLinkedService.MarshalJSON) ``` func (s [SalesforceMarketingCloudLinkedService](#SalesforceMarketingCloudLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudLinkedService. #### func (*SalesforceMarketingCloudLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40645) [¶](#SalesforceMarketingCloudLinkedService.UnmarshalJSON) ``` func (s *[SalesforceMarketingCloudLinkedService](#SalesforceMarketingCloudLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceMarketingCloudLinkedService. #### type [SalesforceMarketingCloudLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23591) [¶](#SalesforceMarketingCloudLinkedServiceTypeProperties) ``` type SalesforceMarketingCloudLinkedServiceTypeProperties struct { // The client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType // string). ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // Properties used to connect to Salesforce Marketing Cloud. It is mutually exclusive with any other properties in the linked // service. Type: object. ConnectionProperties interface{} `json:"connectionProperties,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` SalesforceMarketingCloudLinkedServiceTypeProperties - Salesforce Marketing Cloud linked service properties. #### func (SalesforceMarketingCloudLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40690) [¶](#SalesforceMarketingCloudLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SalesforceMarketingCloudLinkedServiceTypeProperties](#SalesforceMarketingCloudLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudLinkedServiceTypeProperties. #### func (*SalesforceMarketingCloudLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40703) [¶](#SalesforceMarketingCloudLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SalesforceMarketingCloudLinkedServiceTypeProperties](#SalesforceMarketingCloudLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceMarketingCloudLinkedServiceTypeProperties. #### type [SalesforceMarketingCloudObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23622) [¶](#SalesforceMarketingCloudObjectDataset) ``` type SalesforceMarketingCloudObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SalesforceMarketingCloudObjectDataset - Salesforce Marketing Cloud dataset. #### func (*SalesforceMarketingCloudObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23656) [¶](#SalesforceMarketingCloudObjectDataset.GetDataset) added in v0.2.0 ``` func (s *[SalesforceMarketingCloudObjectDataset](#SalesforceMarketingCloudObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SalesforceMarketingCloudObjectDataset. #### func (SalesforceMarketingCloudObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40741) [¶](#SalesforceMarketingCloudObjectDataset.MarshalJSON) ``` func (s [SalesforceMarketingCloudObjectDataset](#SalesforceMarketingCloudObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudObjectDataset. #### func (*SalesforceMarketingCloudObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40761) [¶](#SalesforceMarketingCloudObjectDataset.UnmarshalJSON) ``` func (s *[SalesforceMarketingCloudObjectDataset](#SalesforceMarketingCloudObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceMarketingCloudObjectDataset. #### type [SalesforceMarketingCloudSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23671) [¶](#SalesforceMarketingCloudSource) ``` type SalesforceMarketingCloudSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SalesforceMarketingCloudSource - A copy activity Salesforce Marketing Cloud source. #### func (*SalesforceMarketingCloudSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23702) [¶](#SalesforceMarketingCloudSource.GetCopySource) added in v0.2.0 ``` func (s *[SalesforceMarketingCloudSource](#SalesforceMarketingCloudSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SalesforceMarketingCloudSource. #### func (*SalesforceMarketingCloudSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23714) [¶](#SalesforceMarketingCloudSource.GetTabularSource) added in v0.2.0 ``` func (s *[SalesforceMarketingCloudSource](#SalesforceMarketingCloudSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SalesforceMarketingCloudSource. #### func (SalesforceMarketingCloudSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40815) [¶](#SalesforceMarketingCloudSource.MarshalJSON) ``` func (s [SalesforceMarketingCloudSource](#SalesforceMarketingCloudSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudSource. #### func (*SalesforceMarketingCloudSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40834) [¶](#SalesforceMarketingCloudSource.UnmarshalJSON) ``` func (s *[SalesforceMarketingCloudSource](#SalesforceMarketingCloudSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceMarketingCloudSource. #### type [SalesforceObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23728) [¶](#SalesforceObjectDataset) ``` type SalesforceObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Salesforce object dataset properties. TypeProperties *[SalesforceObjectDatasetTypeProperties](#SalesforceObjectDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SalesforceObjectDataset - The Salesforce object dataset. #### func (*SalesforceObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23762) [¶](#SalesforceObjectDataset.GetDataset) added in v0.2.0 ``` func (s *[SalesforceObjectDataset](#SalesforceObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SalesforceObjectDataset. #### func (SalesforceObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40885) [¶](#SalesforceObjectDataset.MarshalJSON) ``` func (s [SalesforceObjectDataset](#SalesforceObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceObjectDataset. #### func (*SalesforceObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40905) [¶](#SalesforceObjectDataset.UnmarshalJSON) ``` func (s *[SalesforceObjectDataset](#SalesforceObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceObjectDataset. #### type [SalesforceObjectDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23777) [¶](#SalesforceObjectDatasetTypeProperties) ``` type SalesforceObjectDatasetTypeProperties struct { // The Salesforce object API name. Type: string (or Expression with resultType string). ObjectAPIName interface{} `json:"objectApiName,omitempty"` } ``` SalesforceObjectDatasetTypeProperties - Salesforce object dataset properties. #### func (SalesforceObjectDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40959) [¶](#SalesforceObjectDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SalesforceObjectDatasetTypeProperties](#SalesforceObjectDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceObjectDatasetTypeProperties. #### func (*SalesforceObjectDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40966) [¶](#SalesforceObjectDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SalesforceObjectDatasetTypeProperties](#SalesforceObjectDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceObjectDatasetTypeProperties. #### type [SalesforceServiceCloudLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23783) [¶](#SalesforceServiceCloudLinkedService) ``` type SalesforceServiceCloudLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Salesforce Service Cloud linked service properties. TypeProperties *[SalesforceServiceCloudLinkedServiceTypeProperties](#SalesforceServiceCloudLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SalesforceServiceCloudLinkedService - Linked service for Salesforce Service Cloud. #### func (*SalesforceServiceCloudLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23807) [¶](#SalesforceServiceCloudLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SalesforceServiceCloudLinkedService](#SalesforceServiceCloudLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SalesforceServiceCloudLinkedService. #### func (SalesforceServiceCloudLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L40986) [¶](#SalesforceServiceCloudLinkedService.MarshalJSON) ``` func (s [SalesforceServiceCloudLinkedService](#SalesforceServiceCloudLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudLinkedService. #### func (*SalesforceServiceCloudLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41003) [¶](#SalesforceServiceCloudLinkedService.UnmarshalJSON) ``` func (s *[SalesforceServiceCloudLinkedService](#SalesforceServiceCloudLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudLinkedService. #### type [SalesforceServiceCloudLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23819) [¶](#SalesforceServiceCloudLinkedServiceTypeProperties) ``` type SalesforceServiceCloudLinkedServiceTypeProperties struct { // The Salesforce API version used in ADF. Type: string (or Expression with resultType string). APIVersion interface{} `json:"apiVersion,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The URL of Salesforce Service Cloud instance. Default is '[https://login.salesforce.com'](https://login.salesforce.com%27). To copy data from sandbox, specify // '[https://test.salesforce.com'](https://test.salesforce.com%27). To copy data from custom domain, specify, for // example, '[https://[domain].my.salesforce.com'](https://[domain].my.salesforce.com%27). Type: string (or Expression with resultType string). EnvironmentURL interface{} `json:"environmentUrl,omitempty"` // Extended properties appended to the connection string. Type: string (or Expression with resultType string). ExtendedProperties interface{} `json:"extendedProperties,omitempty"` // The password for Basic authentication of the Salesforce instance. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The security token is optional to remotely access Salesforce instance. SecurityToken [SecretBaseClassification](#SecretBaseClassification) `json:"securityToken,omitempty"` // The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` SalesforceServiceCloudLinkedServiceTypeProperties - Salesforce Service Cloud linked service properties. #### func (SalesforceServiceCloudLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41048) [¶](#SalesforceServiceCloudLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SalesforceServiceCloudLinkedServiceTypeProperties](#SalesforceServiceCloudLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudLinkedServiceTypeProperties. #### func (*SalesforceServiceCloudLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41061) [¶](#SalesforceServiceCloudLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SalesforceServiceCloudLinkedServiceTypeProperties](#SalesforceServiceCloudLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudLinkedServiceTypeProperties. #### type [SalesforceServiceCloudObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23846) [¶](#SalesforceServiceCloudObjectDataset) ``` type SalesforceServiceCloudObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Salesforce Service Cloud object dataset properties. TypeProperties *[SalesforceServiceCloudObjectDatasetTypeProperties](#SalesforceServiceCloudObjectDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SalesforceServiceCloudObjectDataset - The Salesforce Service Cloud object dataset. #### func (*SalesforceServiceCloudObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23880) [¶](#SalesforceServiceCloudObjectDataset.GetDataset) added in v0.2.0 ``` func (s *[SalesforceServiceCloudObjectDataset](#SalesforceServiceCloudObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SalesforceServiceCloudObjectDataset. #### func (SalesforceServiceCloudObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41099) [¶](#SalesforceServiceCloudObjectDataset.MarshalJSON) ``` func (s [SalesforceServiceCloudObjectDataset](#SalesforceServiceCloudObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudObjectDataset. #### func (*SalesforceServiceCloudObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41119) [¶](#SalesforceServiceCloudObjectDataset.UnmarshalJSON) ``` func (s *[SalesforceServiceCloudObjectDataset](#SalesforceServiceCloudObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudObjectDataset. #### type [SalesforceServiceCloudObjectDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23895) [¶](#SalesforceServiceCloudObjectDatasetTypeProperties) ``` type SalesforceServiceCloudObjectDatasetTypeProperties struct { // The Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). ObjectAPIName interface{} `json:"objectApiName,omitempty"` } ``` SalesforceServiceCloudObjectDatasetTypeProperties - Salesforce Service Cloud object dataset properties. #### func (SalesforceServiceCloudObjectDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41173) [¶](#SalesforceServiceCloudObjectDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SalesforceServiceCloudObjectDatasetTypeProperties](#SalesforceServiceCloudObjectDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudObjectDatasetTypeProperties. #### func (*SalesforceServiceCloudObjectDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41180) [¶](#SalesforceServiceCloudObjectDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SalesforceServiceCloudObjectDatasetTypeProperties](#SalesforceServiceCloudObjectDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudObjectDatasetTypeProperties. #### type [SalesforceServiceCloudSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23901) [¶](#SalesforceServiceCloudSink) ``` type SalesforceServiceCloudSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with // resultType string). ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` // The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. // Default value is false. If set it to true, it means ADF will leave the data in // the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert // operation, versus ADF will update the data in the destination object to NULL when // doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType // boolean). IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // The write behavior for the operation. Default is Insert. WriteBehavior *[SalesforceSinkWriteBehavior](#SalesforceSinkWriteBehavior) `json:"writeBehavior,omitempty"` } ``` SalesforceServiceCloudSink - A copy activity Salesforce Service Cloud sink. #### func (*SalesforceServiceCloudSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23943) [¶](#SalesforceServiceCloudSink.GetCopySink) added in v0.2.0 ``` func (s *[SalesforceServiceCloudSink](#SalesforceServiceCloudSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type SalesforceServiceCloudSink. #### func (SalesforceServiceCloudSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41200) [¶](#SalesforceServiceCloudSink.MarshalJSON) ``` func (s [SalesforceServiceCloudSink](#SalesforceServiceCloudSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudSink. #### func (*SalesforceServiceCloudSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41221) [¶](#SalesforceServiceCloudSink.UnmarshalJSON) ``` func (s *[SalesforceServiceCloudSink](#SalesforceServiceCloudSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudSink. #### type [SalesforceServiceCloudSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23957) [¶](#SalesforceServiceCloudSource) ``` type SalesforceServiceCloudSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // The read behavior for the operation. Default is Query. ReadBehavior *[SalesforceSourceReadBehavior](#SalesforceSourceReadBehavior) `json:"readBehavior,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SalesforceServiceCloudSource - A copy activity Salesforce Service Cloud source. #### func (*SalesforceServiceCloudSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L23988) [¶](#SalesforceServiceCloudSource.GetCopySource) added in v0.2.0 ``` func (s *[SalesforceServiceCloudSource](#SalesforceServiceCloudSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SalesforceServiceCloudSource. #### func (SalesforceServiceCloudSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41278) [¶](#SalesforceServiceCloudSource.MarshalJSON) ``` func (s [SalesforceServiceCloudSource](#SalesforceServiceCloudSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudSource. #### func (*SalesforceServiceCloudSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41297) [¶](#SalesforceServiceCloudSource.UnmarshalJSON) ``` func (s *[SalesforceServiceCloudSource](#SalesforceServiceCloudSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudSource. #### type [SalesforceSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24000) [¶](#SalesforceSink) ``` type SalesforceSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with // resultType string). ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` // The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. // Default value is false. If set it to true, it means ADF will leave the data in // the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert // operation, versus ADF will update the data in the destination object to NULL when // doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType // boolean). IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // The write behavior for the operation. Default is Insert. WriteBehavior *[SalesforceSinkWriteBehavior](#SalesforceSinkWriteBehavior) `json:"writeBehavior,omitempty"` } ``` SalesforceSink - A copy activity Salesforce sink. #### func (*SalesforceSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24042) [¶](#SalesforceSink.GetCopySink) added in v0.2.0 ``` func (s *[SalesforceSink](#SalesforceSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type SalesforceSink. #### func (SalesforceSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41348) [¶](#SalesforceSink.MarshalJSON) ``` func (s [SalesforceSink](#SalesforceSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceSink. #### func (*SalesforceSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41369) [¶](#SalesforceSink.UnmarshalJSON) ``` func (s *[SalesforceSink](#SalesforceSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceSink. #### type [SalesforceSinkWriteBehavior](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1503) [¶](#SalesforceSinkWriteBehavior) ``` type SalesforceSinkWriteBehavior [string](/builtin#string) ``` SalesforceSinkWriteBehavior - The write behavior for the operation. Default is Insert. ``` const ( SalesforceSinkWriteBehaviorInsert [SalesforceSinkWriteBehavior](#SalesforceSinkWriteBehavior) = "Insert" SalesforceSinkWriteBehaviorUpsert [SalesforceSinkWriteBehavior](#SalesforceSinkWriteBehavior) = "Upsert" ) ``` #### func [PossibleSalesforceSinkWriteBehaviorValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1511) [¶](#PossibleSalesforceSinkWriteBehaviorValues) ``` func PossibleSalesforceSinkWriteBehaviorValues() [][SalesforceSinkWriteBehavior](#SalesforceSinkWriteBehavior) ``` PossibleSalesforceSinkWriteBehaviorValues returns the possible values for the SalesforceSinkWriteBehavior const type. #### type [SalesforceSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24056) [¶](#SalesforceSource) ``` type SalesforceSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // The read behavior for the operation. Default is Query. ReadBehavior *[SalesforceSourceReadBehavior](#SalesforceSourceReadBehavior) `json:"readBehavior,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SalesforceSource - A copy activity Salesforce source. #### func (*SalesforceSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24090) [¶](#SalesforceSource.GetCopySource) added in v0.2.0 ``` func (s *[SalesforceSource](#SalesforceSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SalesforceSource. #### func (*SalesforceSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24102) [¶](#SalesforceSource.GetTabularSource) added in v0.2.0 ``` func (s *[SalesforceSource](#SalesforceSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SalesforceSource. #### func (SalesforceSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41426) [¶](#SalesforceSource.MarshalJSON) ``` func (s [SalesforceSource](#SalesforceSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SalesforceSource. #### func (*SalesforceSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41446) [¶](#SalesforceSource.UnmarshalJSON) ``` func (s *[SalesforceSource](#SalesforceSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceSource. #### type [SalesforceSourceReadBehavior](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1519) [¶](#SalesforceSourceReadBehavior) ``` type SalesforceSourceReadBehavior [string](/builtin#string) ``` SalesforceSourceReadBehavior - The read behavior for the operation. Default is Query. ``` const ( SalesforceSourceReadBehaviorQuery [SalesforceSourceReadBehavior](#SalesforceSourceReadBehavior) = "Query" SalesforceSourceReadBehaviorQueryAll [SalesforceSourceReadBehavior](#SalesforceSourceReadBehavior) = "QueryAll" ) ``` #### func [PossibleSalesforceSourceReadBehaviorValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1527) [¶](#PossibleSalesforceSourceReadBehaviorValues) ``` func PossibleSalesforceSourceReadBehaviorValues() [][SalesforceSourceReadBehavior](#SalesforceSourceReadBehavior) ``` PossibleSalesforceSourceReadBehaviorValues returns the possible values for the SalesforceSourceReadBehavior const type. #### type [SapBWLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24116) [¶](#SapBWLinkedService) ``` type SapBWLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to this linked service type. TypeProperties *[SapBWLinkedServiceTypeProperties](#SapBWLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SapBWLinkedService - SAP Business Warehouse Linked Service. #### func (*SapBWLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24140) [¶](#SapBWLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SapBWLinkedService](#SapBWLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SapBWLinkedService. #### func (SapBWLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41500) [¶](#SapBWLinkedService.MarshalJSON) ``` func (s [SapBWLinkedService](#SapBWLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapBWLinkedService. #### func (*SapBWLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41517) [¶](#SapBWLinkedService.UnmarshalJSON) ``` func (s *[SapBWLinkedService](#SapBWLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapBWLinkedService. #### type [SapBWLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24152) [¶](#SapBWLinkedServiceTypeProperties) ``` type SapBWLinkedServiceTypeProperties struct { // REQUIRED; Client ID of the client on the BW system. (Usually a three-digit decimal number represented as a string) Type: // string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // REQUIRED; Host name of the SAP BW instance. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` // REQUIRED; System number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or // Expression with resultType string). SystemNumber interface{} `json:"systemNumber,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password to access the SAP BW server. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Username to access the SAP BW server. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` SapBWLinkedServiceTypeProperties - Properties specific to this linked service type. #### func (SapBWLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41562) [¶](#SapBWLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SapBWLinkedServiceTypeProperties](#SapBWLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapBWLinkedServiceTypeProperties. #### func (*SapBWLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41574) [¶](#SapBWLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SapBWLinkedServiceTypeProperties](#SapBWLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapBWLinkedServiceTypeProperties. #### type [SapBwCubeDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24176) [¶](#SapBwCubeDataset) ``` type SapBwCubeDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` SapBwCubeDataset - The SAP BW cube dataset. #### func (*SapBwCubeDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24207) [¶](#SapBwCubeDataset.GetDataset) added in v0.2.0 ``` func (s *[SapBwCubeDataset](#SapBwCubeDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SapBwCubeDataset. #### func (SapBwCubeDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41609) [¶](#SapBwCubeDataset.MarshalJSON) ``` func (s [SapBwCubeDataset](#SapBwCubeDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapBwCubeDataset. #### func (*SapBwCubeDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41628) [¶](#SapBwCubeDataset.UnmarshalJSON) added in v0.2.0 ``` func (s *[SapBwCubeDataset](#SapBwCubeDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapBwCubeDataset. #### type [SapBwSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24222) [¶](#SapBwSource) ``` type SapBwSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // MDX query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SapBwSource - A copy activity source for SapBW server via MDX. #### func (*SapBwSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24253) [¶](#SapBwSource.GetCopySource) added in v0.2.0 ``` func (s *[SapBwSource](#SapBwSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SapBwSource. #### func (*SapBwSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24265) [¶](#SapBwSource.GetTabularSource) added in v0.2.0 ``` func (s *[SapBwSource](#SapBwSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SapBwSource. #### func (SapBwSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41679) [¶](#SapBwSource.MarshalJSON) ``` func (s [SapBwSource](#SapBwSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapBwSource. #### func (*SapBwSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41698) [¶](#SapBwSource.UnmarshalJSON) ``` func (s *[SapBwSource](#SapBwSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapBwSource. #### type [SapCloudForCustomerLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24279) [¶](#SapCloudForCustomerLinkedService) ``` type SapCloudForCustomerLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SAP Cloud for Customer linked service properties. TypeProperties *[SapCloudForCustomerLinkedServiceTypeProperties](#SapCloudForCustomerLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SapCloudForCustomerLinkedService - Linked service for SAP Cloud for Customer. #### func (*SapCloudForCustomerLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24303) [¶](#SapCloudForCustomerLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SapCloudForCustomerLinkedService](#SapCloudForCustomerLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SapCloudForCustomerLinkedService. #### func (SapCloudForCustomerLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41749) [¶](#SapCloudForCustomerLinkedService.MarshalJSON) ``` func (s [SapCloudForCustomerLinkedService](#SapCloudForCustomerLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerLinkedService. #### func (*SapCloudForCustomerLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41766) [¶](#SapCloudForCustomerLinkedService.UnmarshalJSON) ``` func (s *[SapCloudForCustomerLinkedService](#SapCloudForCustomerLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapCloudForCustomerLinkedService. #### type [SapCloudForCustomerLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24315) [¶](#SapCloudForCustomerLinkedServiceTypeProperties) ``` type SapCloudForCustomerLinkedServiceTypeProperties struct { // REQUIRED; The URL of SAP Cloud for Customer OData API. For example, '[<https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1>]'. // Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Either encryptedCredential or username/password must be provided. Type: // string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password for Basic authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The username for Basic authentication. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` SapCloudForCustomerLinkedServiceTypeProperties - SAP Cloud for Customer linked service properties. #### func (SapCloudForCustomerLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41811) [¶](#SapCloudForCustomerLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SapCloudForCustomerLinkedServiceTypeProperties](#SapCloudForCustomerLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerLinkedServiceTypeProperties. #### func (*SapCloudForCustomerLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41821) [¶](#SapCloudForCustomerLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SapCloudForCustomerLinkedServiceTypeProperties](#SapCloudForCustomerLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapCloudForCustomerLinkedServiceTypeProperties. #### type [SapCloudForCustomerResourceDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24333) [¶](#SapCloudForCustomerResourceDataset) ``` type SapCloudForCustomerResourceDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SAP Cloud For Customer OData resource dataset properties. TypeProperties *[SapCloudForCustomerResourceDatasetTypeProperties](#SapCloudForCustomerResourceDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` SapCloudForCustomerResourceDataset - The path of the SAP Cloud for Customer OData entity. #### func (*SapCloudForCustomerResourceDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24367) [¶](#SapCloudForCustomerResourceDataset.GetDataset) added in v0.2.0 ``` func (s *[SapCloudForCustomerResourceDataset](#SapCloudForCustomerResourceDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SapCloudForCustomerResourceDataset. #### func (SapCloudForCustomerResourceDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41850) [¶](#SapCloudForCustomerResourceDataset.MarshalJSON) ``` func (s [SapCloudForCustomerResourceDataset](#SapCloudForCustomerResourceDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerResourceDataset. #### func (*SapCloudForCustomerResourceDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41870) [¶](#SapCloudForCustomerResourceDataset.UnmarshalJSON) ``` func (s *[SapCloudForCustomerResourceDataset](#SapCloudForCustomerResourceDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapCloudForCustomerResourceDataset. #### type [SapCloudForCustomerResourceDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24382) [¶](#SapCloudForCustomerResourceDatasetTypeProperties) ``` type SapCloudForCustomerResourceDatasetTypeProperties struct { // REQUIRED; The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` SapCloudForCustomerResourceDatasetTypeProperties - Sap Cloud For Customer OData resource dataset properties. #### func (SapCloudForCustomerResourceDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41924) [¶](#SapCloudForCustomerResourceDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SapCloudForCustomerResourceDatasetTypeProperties](#SapCloudForCustomerResourceDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerResourceDatasetTypeProperties. #### func (*SapCloudForCustomerResourceDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41931) [¶](#SapCloudForCustomerResourceDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SapCloudForCustomerResourceDatasetTypeProperties](#SapCloudForCustomerResourceDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapCloudForCustomerResourceDatasetTypeProperties. #### type [SapCloudForCustomerSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24388) [¶](#SapCloudForCustomerSink) ``` type SapCloudForCustomerSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` // The write behavior for the operation. Default is 'Insert'. WriteBehavior *[SapCloudForCustomerSinkWriteBehavior](#SapCloudForCustomerSinkWriteBehavior) `json:"writeBehavior,omitempty"` } ``` SapCloudForCustomerSink - A copy activity SAP Cloud for Customer sink. #### func (*SapCloudForCustomerSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24423) [¶](#SapCloudForCustomerSink.GetCopySink) added in v0.2.0 ``` func (s *[SapCloudForCustomerSink](#SapCloudForCustomerSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type SapCloudForCustomerSink. #### func (SapCloudForCustomerSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41951) [¶](#SapCloudForCustomerSink.MarshalJSON) ``` func (s [SapCloudForCustomerSink](#SapCloudForCustomerSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerSink. #### func (*SapCloudForCustomerSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L41971) [¶](#SapCloudForCustomerSink.UnmarshalJSON) ``` func (s *[SapCloudForCustomerSink](#SapCloudForCustomerSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapCloudForCustomerSink. #### type [SapCloudForCustomerSinkWriteBehavior](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1535) [¶](#SapCloudForCustomerSinkWriteBehavior) ``` type SapCloudForCustomerSinkWriteBehavior [string](/builtin#string) ``` SapCloudForCustomerSinkWriteBehavior - The write behavior for the operation. Default is 'Insert'. ``` const ( SapCloudForCustomerSinkWriteBehaviorInsert [SapCloudForCustomerSinkWriteBehavior](#SapCloudForCustomerSinkWriteBehavior) = "Insert" SapCloudForCustomerSinkWriteBehaviorUpdate [SapCloudForCustomerSinkWriteBehavior](#SapCloudForCustomerSinkWriteBehavior) = "Update" ) ``` #### func [PossibleSapCloudForCustomerSinkWriteBehaviorValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1543) [¶](#PossibleSapCloudForCustomerSinkWriteBehaviorValues) ``` func PossibleSapCloudForCustomerSinkWriteBehaviorValues() [][SapCloudForCustomerSinkWriteBehavior](#SapCloudForCustomerSinkWriteBehavior) ``` PossibleSapCloudForCustomerSinkWriteBehaviorValues returns the possible values for the SapCloudForCustomerSinkWriteBehavior const type. #### type [SapCloudForCustomerSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24437) [¶](#SapCloudForCustomerSource) ``` type SapCloudForCustomerSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SapCloudForCustomerSource - A copy activity source for SAP Cloud for Customer source. #### func (*SapCloudForCustomerSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24473) [¶](#SapCloudForCustomerSource.GetCopySource) added in v0.2.0 ``` func (s *[SapCloudForCustomerSource](#SapCloudForCustomerSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SapCloudForCustomerSource. #### func (*SapCloudForCustomerSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24485) [¶](#SapCloudForCustomerSource.GetTabularSource) added in v0.2.0 ``` func (s *[SapCloudForCustomerSource](#SapCloudForCustomerSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SapCloudForCustomerSource. #### func (SapCloudForCustomerSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42025) [¶](#SapCloudForCustomerSource.MarshalJSON) ``` func (s [SapCloudForCustomerSource](#SapCloudForCustomerSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerSource. #### func (*SapCloudForCustomerSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42045) [¶](#SapCloudForCustomerSource.UnmarshalJSON) ``` func (s *[SapCloudForCustomerSource](#SapCloudForCustomerSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapCloudForCustomerSource. #### type [SapEccLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24499) [¶](#SapEccLinkedService) ``` type SapEccLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SAP ECC linked service properties. TypeProperties *[SapEccLinkedServiceTypeProperties](#SapEccLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SapEccLinkedService - Linked service for SAP ERP Central Component(SAP ECC). #### func (*SapEccLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24523) [¶](#SapEccLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SapEccLinkedService](#SapEccLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SapEccLinkedService. #### func (SapEccLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42099) [¶](#SapEccLinkedService.MarshalJSON) ``` func (s [SapEccLinkedService](#SapEccLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapEccLinkedService. #### func (*SapEccLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42116) [¶](#SapEccLinkedService.UnmarshalJSON) ``` func (s *[SapEccLinkedService](#SapEccLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapEccLinkedService. #### type [SapEccLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24535) [¶](#SapEccLinkedServiceTypeProperties) ``` type SapEccLinkedServiceTypeProperties struct { // REQUIRED; The URL of SAP ECC OData API. For example, '[<https://hostname:port/sap/opu/odata/sap/servicename/>]'. Type: string // (or Expression with resultType string). URL *[string](/builtin#string) `json:"url,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Either encryptedCredential or username/password must be provided. Type: // string (or Expression with resultType string). EncryptedCredential *[string](/builtin#string) `json:"encryptedCredential,omitempty"` // The password for Basic authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The username for Basic authentication. Type: string (or Expression with resultType string). Username *[string](/builtin#string) `json:"username,omitempty"` } ``` SapEccLinkedServiceTypeProperties - SAP ECC linked service properties. #### func (SapEccLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42161) [¶](#SapEccLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SapEccLinkedServiceTypeProperties](#SapEccLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapEccLinkedServiceTypeProperties. #### func (*SapEccLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42171) [¶](#SapEccLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SapEccLinkedServiceTypeProperties](#SapEccLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapEccLinkedServiceTypeProperties. #### type [SapEccResourceDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24553) [¶](#SapEccResourceDataset) ``` type SapEccResourceDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SAP ECC OData resource dataset properties. TypeProperties *[SapEccResourceDatasetTypeProperties](#SapEccResourceDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` SapEccResourceDataset - The path of the SAP ECC OData entity. #### func (*SapEccResourceDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24587) [¶](#SapEccResourceDataset.GetDataset) added in v0.2.0 ``` func (s *[SapEccResourceDataset](#SapEccResourceDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SapEccResourceDataset. #### func (SapEccResourceDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42200) [¶](#SapEccResourceDataset.MarshalJSON) ``` func (s [SapEccResourceDataset](#SapEccResourceDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapEccResourceDataset. #### func (*SapEccResourceDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42220) [¶](#SapEccResourceDataset.UnmarshalJSON) ``` func (s *[SapEccResourceDataset](#SapEccResourceDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapEccResourceDataset. #### type [SapEccResourceDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24602) [¶](#SapEccResourceDatasetTypeProperties) ``` type SapEccResourceDatasetTypeProperties struct { // REQUIRED; The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` SapEccResourceDatasetTypeProperties - Sap ECC OData resource dataset properties. #### func (SapEccResourceDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42274) [¶](#SapEccResourceDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SapEccResourceDatasetTypeProperties](#SapEccResourceDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapEccResourceDatasetTypeProperties. #### func (*SapEccResourceDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42281) [¶](#SapEccResourceDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SapEccResourceDatasetTypeProperties](#SapEccResourceDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapEccResourceDatasetTypeProperties. #### type [SapEccSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24608) [¶](#SapEccSource) ``` type SapEccSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SapEccSource - A copy activity source for SAP ECC source. #### func (*SapEccSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24644) [¶](#SapEccSource.GetCopySource) added in v0.2.0 ``` func (s *[SapEccSource](#SapEccSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SapEccSource. #### func (*SapEccSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24656) [¶](#SapEccSource.GetTabularSource) added in v0.2.0 ``` func (s *[SapEccSource](#SapEccSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SapEccSource. #### func (SapEccSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42301) [¶](#SapEccSource.MarshalJSON) ``` func (s [SapEccSource](#SapEccSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapEccSource. #### func (*SapEccSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42321) [¶](#SapEccSource.UnmarshalJSON) ``` func (s *[SapEccSource](#SapEccSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapEccSource. #### type [SapHanaAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1551) [¶](#SapHanaAuthenticationType) ``` type SapHanaAuthenticationType [string](/builtin#string) ``` SapHanaAuthenticationType - The authentication type to be used to connect to the SAP HANA server. ``` const ( SapHanaAuthenticationTypeBasic [SapHanaAuthenticationType](#SapHanaAuthenticationType) = "Basic" SapHanaAuthenticationTypeWindows [SapHanaAuthenticationType](#SapHanaAuthenticationType) = "Windows" ) ``` #### func [PossibleSapHanaAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1559) [¶](#PossibleSapHanaAuthenticationTypeValues) ``` func PossibleSapHanaAuthenticationTypeValues() [][SapHanaAuthenticationType](#SapHanaAuthenticationType) ``` PossibleSapHanaAuthenticationTypeValues returns the possible values for the SapHanaAuthenticationType const type. #### type [SapHanaLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24670) [¶](#SapHanaLinkedService) ``` type SapHanaLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to this linked service type. TypeProperties *[SapHanaLinkedServiceProperties](#SapHanaLinkedServiceProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SapHanaLinkedService - SAP HANA Linked Service. #### func (*SapHanaLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24694) [¶](#SapHanaLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SapHanaLinkedService](#SapHanaLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SapHanaLinkedService. #### func (SapHanaLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42375) [¶](#SapHanaLinkedService.MarshalJSON) ``` func (s [SapHanaLinkedService](#SapHanaLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapHanaLinkedService. #### func (*SapHanaLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42392) [¶](#SapHanaLinkedService.UnmarshalJSON) ``` func (s *[SapHanaLinkedService](#SapHanaLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapHanaLinkedService. #### type [SapHanaLinkedServiceProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24706) [¶](#SapHanaLinkedServiceProperties) ``` type SapHanaLinkedServiceProperties struct { // The authentication type to be used to connect to the SAP HANA server. AuthenticationType *[SapHanaAuthenticationType](#SapHanaAuthenticationType) `json:"authenticationType,omitempty"` // SAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password to access the SAP HANA server. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Host name of the SAP HANA server. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` // Username to access the SAP HANA server. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` SapHanaLinkedServiceProperties - Properties specific to this linked service type. #### func (SapHanaLinkedServiceProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42437) [¶](#SapHanaLinkedServiceProperties.MarshalJSON) ``` func (s [SapHanaLinkedServiceProperties](#SapHanaLinkedServiceProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapHanaLinkedServiceProperties. #### func (*SapHanaLinkedServiceProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42449) [¶](#SapHanaLinkedServiceProperties.UnmarshalJSON) ``` func (s *[SapHanaLinkedServiceProperties](#SapHanaLinkedServiceProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapHanaLinkedServiceProperties. #### type [SapHanaPartitionOption](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1567) [¶](#SapHanaPartitionOption) ``` type SapHanaPartitionOption [string](/builtin#string) ``` SapHanaPartitionOption - The partition mechanism that will be used for SAP HANA read in parallel. ``` const ( SapHanaPartitionOptionNone [SapHanaPartitionOption](#SapHanaPartitionOption) = "None" SapHanaPartitionOptionPhysicalPartitionsOfTable [SapHanaPartitionOption](#SapHanaPartitionOption) = "PhysicalPartitionsOfTable" SapHanaPartitionOptionSapHanaDynamicRange [SapHanaPartitionOption](#SapHanaPartitionOption) = "SapHanaDynamicRange" ) ``` #### func [PossibleSapHanaPartitionOptionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1576) [¶](#PossibleSapHanaPartitionOptionValues) ``` func PossibleSapHanaPartitionOptionValues() [][SapHanaPartitionOption](#SapHanaPartitionOption) ``` PossibleSapHanaPartitionOptionValues returns the possible values for the SapHanaPartitionOption const type. #### type [SapHanaPartitionSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24728) [¶](#SapHanaPartitionSettings) ``` type SapHanaPartitionSettings struct { // The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType // string). PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` } ``` SapHanaPartitionSettings - The settings that will be leveraged for SAP HANA source partitioning. #### func (SapHanaPartitionSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42484) [¶](#SapHanaPartitionSettings.MarshalJSON) added in v1.3.0 ``` func (s [SapHanaPartitionSettings](#SapHanaPartitionSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapHanaPartitionSettings. #### func (*SapHanaPartitionSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42491) [¶](#SapHanaPartitionSettings.UnmarshalJSON) added in v1.3.0 ``` func (s *[SapHanaPartitionSettings](#SapHanaPartitionSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapHanaPartitionSettings. #### type [SapHanaSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24735) [¶](#SapHanaSource) ``` type SapHanaSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). PacketSize interface{} `json:"packetSize,omitempty"` // The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "SapHanaDynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for SAP HANA source partitioning. PartitionSettings *[SapHanaPartitionSettings](#SapHanaPartitionSettings) `json:"partitionSettings,omitempty"` // SAP HANA Sql query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SapHanaSource - A copy activity source for SAP HANA source. #### func (*SapHanaSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24776) [¶](#SapHanaSource.GetCopySource) added in v0.2.0 ``` func (s *[SapHanaSource](#SapHanaSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SapHanaSource. #### func (*SapHanaSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24788) [¶](#SapHanaSource.GetTabularSource) added in v0.2.0 ``` func (s *[SapHanaSource](#SapHanaSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SapHanaSource. #### func (SapHanaSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42511) [¶](#SapHanaSource.MarshalJSON) ``` func (s [SapHanaSource](#SapHanaSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapHanaSource. #### func (*SapHanaSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42533) [¶](#SapHanaSource.UnmarshalJSON) ``` func (s *[SapHanaSource](#SapHanaSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapHanaSource. #### type [SapHanaTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24802) [¶](#SapHanaTableDataset) ``` type SapHanaTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // SAP HANA Table properties. TypeProperties *[SapHanaTableDatasetTypeProperties](#SapHanaTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SapHanaTableDataset - SAP HANA Table properties. #### func (*SapHanaTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24836) [¶](#SapHanaTableDataset.GetDataset) added in v0.2.0 ``` func (s *[SapHanaTableDataset](#SapHanaTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SapHanaTableDataset. #### func (SapHanaTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42593) [¶](#SapHanaTableDataset.MarshalJSON) ``` func (s [SapHanaTableDataset](#SapHanaTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapHanaTableDataset. #### func (*SapHanaTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42613) [¶](#SapHanaTableDataset.UnmarshalJSON) ``` func (s *[SapHanaTableDataset](#SapHanaTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapHanaTableDataset. #### type [SapHanaTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24851) [¶](#SapHanaTableDatasetTypeProperties) ``` type SapHanaTableDatasetTypeProperties struct { // The schema name of SAP HANA. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of SAP HANA. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } ``` SapHanaTableDatasetTypeProperties - SAP HANA Table properties. #### func (SapHanaTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42667) [¶](#SapHanaTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SapHanaTableDatasetTypeProperties](#SapHanaTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapHanaTableDatasetTypeProperties. #### func (*SapHanaTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42675) [¶](#SapHanaTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SapHanaTableDatasetTypeProperties](#SapHanaTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapHanaTableDatasetTypeProperties. #### type [SapOdpLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24860) [¶](#SapOdpLinkedService) added in v1.2.0 ``` type SapOdpLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to SAP ODP linked service type. TypeProperties *[SapOdpLinkedServiceTypeProperties](#SapOdpLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SapOdpLinkedService - SAP ODP Linked Service. #### func (*SapOdpLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24884) [¶](#SapOdpLinkedService.GetLinkedService) added in v1.2.0 ``` func (s *[SapOdpLinkedService](#SapOdpLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SapOdpLinkedService. #### func (SapOdpLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42698) [¶](#SapOdpLinkedService.MarshalJSON) added in v1.2.0 ``` func (s [SapOdpLinkedService](#SapOdpLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOdpLinkedService. #### func (*SapOdpLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42715) [¶](#SapOdpLinkedService.UnmarshalJSON) added in v1.2.0 ``` func (s *[SapOdpLinkedService](#SapOdpLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOdpLinkedService. #### type [SapOdpLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24896) [¶](#SapOdpLinkedServiceTypeProperties) added in v1.2.0 ``` type SapOdpLinkedServiceTypeProperties struct { // Client ID of the client on the SAP system where the table is located. (Usually a three-digit decimal number represented // as a string) Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType // string). Language interface{} `json:"language,omitempty"` // The Logon Group for the SAP System. Type: string (or Expression with resultType string). LogonGroup interface{} `json:"logonGroup,omitempty"` // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). MessageServer interface{} `json:"messageServer,omitempty"` // The service name or port number of the Message Server. Type: string (or Expression with resultType string). MessageServerService interface{} `json:"messageServerService,omitempty"` // Password to access the SAP server where the table is located. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` // External security product's library to access the SAP server where the table is located. Type: string (or Expression with // resultType string). SncLibraryPath interface{} `json:"sncLibraryPath,omitempty"` // SNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). Type: string // (or Expression with resultType string). SncMode interface{} `json:"sncMode,omitempty"` // Initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). SncMyName interface{} `json:"sncMyName,omitempty"` // Communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with // resultType string). SncPartnerName interface{} `json:"sncPartnerName,omitempty"` // SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). SncQop interface{} `json:"sncQop,omitempty"` // The subscriber name. Type: string (or Expression with resultType string). SubscriberName interface{} `json:"subscriberName,omitempty"` // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). SystemID interface{} `json:"systemId,omitempty"` // System number of the SAP system where the table is located. (Usually a two-digit decimal number represented as a string.) // Type: string (or Expression with resultType string). SystemNumber interface{} `json:"systemNumber,omitempty"` // Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` // SNC X509 certificate file path. Type: string (or Expression with resultType string). X509CertificatePath interface{} `json:"x509CertificatePath,omitempty"` } ``` SapOdpLinkedServiceTypeProperties - Properties specific to this linked service type. #### func (SapOdpLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42760) [¶](#SapOdpLinkedServiceTypeProperties.MarshalJSON) added in v1.2.0 ``` func (s [SapOdpLinkedServiceTypeProperties](#SapOdpLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOdpLinkedServiceTypeProperties. #### func (*SapOdpLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42784) [¶](#SapOdpLinkedServiceTypeProperties.UnmarshalJSON) added in v1.2.0 ``` func (s *[SapOdpLinkedServiceTypeProperties](#SapOdpLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOdpLinkedServiceTypeProperties. #### type [SapOdpResourceDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24960) [¶](#SapOdpResourceDataset) added in v1.2.0 ``` type SapOdpResourceDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SAP ODP Resource properties. TypeProperties *[SapOdpResourceDatasetTypeProperties](#SapOdpResourceDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` SapOdpResourceDataset - SAP ODP Resource properties. #### func (*SapOdpResourceDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L24994) [¶](#SapOdpResourceDataset.GetDataset) added in v1.2.0 ``` func (s *[SapOdpResourceDataset](#SapOdpResourceDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SapOdpResourceDataset. #### func (SapOdpResourceDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42855) [¶](#SapOdpResourceDataset.MarshalJSON) added in v1.2.0 ``` func (s [SapOdpResourceDataset](#SapOdpResourceDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOdpResourceDataset. #### func (*SapOdpResourceDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42875) [¶](#SapOdpResourceDataset.UnmarshalJSON) added in v1.2.0 ``` func (s *[SapOdpResourceDataset](#SapOdpResourceDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOdpResourceDataset. #### type [SapOdpResourceDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25009) [¶](#SapOdpResourceDatasetTypeProperties) added in v1.2.0 ``` type SapOdpResourceDatasetTypeProperties struct { // REQUIRED; The context of the SAP ODP Object. Type: string (or Expression with resultType string). Context interface{} `json:"context,omitempty"` // REQUIRED; The name of the SAP ODP Object. Type: string (or Expression with resultType string). ObjectName interface{} `json:"objectName,omitempty"` } ``` SapOdpResourceDatasetTypeProperties - SAP ODP Resource properties. #### func (SapOdpResourceDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42929) [¶](#SapOdpResourceDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SapOdpResourceDatasetTypeProperties](#SapOdpResourceDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOdpResourceDatasetTypeProperties. #### func (*SapOdpResourceDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42937) [¶](#SapOdpResourceDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SapOdpResourceDatasetTypeProperties](#SapOdpResourceDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOdpResourceDatasetTypeProperties. #### type [SapOdpSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25018) [¶](#SapOdpSource) added in v1.2.0 ``` type SapOdpSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The extraction mode. Allowed value include: Full, Delta and Recovery. The default value is Full. Type: string (or Expression // with resultType string). ExtractionMode interface{} `json:"extractionMode,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Specifies the columns to be selected from source data. Type: array of objects(projection) (or Expression with resultType // array of objects). Projection interface{} `json:"projection,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Specifies the selection conditions from source data. Type: array of objects(selection) (or Expression with resultType array // of objects). Selection interface{} `json:"selection,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // The subscriber process to manage the delta process. Type: string (or Expression with resultType string). SubscriberProcess interface{} `json:"subscriberProcess,omitempty"` } ``` SapOdpSource - A copy activity source for SAP ODP source. #### func (*SapOdpSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25061) [¶](#SapOdpSource.GetCopySource) added in v1.2.0 ``` func (s *[SapOdpSource](#SapOdpSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SapOdpSource. #### func (*SapOdpSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25073) [¶](#SapOdpSource.GetTabularSource) added in v1.2.0 ``` func (s *[SapOdpSource](#SapOdpSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SapOdpSource. #### func (SapOdpSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42960) [¶](#SapOdpSource.MarshalJSON) added in v1.2.0 ``` func (s [SapOdpSource](#SapOdpSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOdpSource. #### func (*SapOdpSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L42982) [¶](#SapOdpSource.UnmarshalJSON) added in v1.2.0 ``` func (s *[SapOdpSource](#SapOdpSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOdpSource. #### type [SapOpenHubLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25087) [¶](#SapOpenHubLinkedService) ``` type SapOpenHubLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to SAP Business Warehouse Open Hub Destination linked service type. TypeProperties *[SapOpenHubLinkedServiceTypeProperties](#SapOpenHubLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SapOpenHubLinkedService - SAP Business Warehouse Open Hub Destination Linked Service. #### func (*SapOpenHubLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25111) [¶](#SapOpenHubLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SapOpenHubLinkedService](#SapOpenHubLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SapOpenHubLinkedService. #### func (SapOpenHubLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43042) [¶](#SapOpenHubLinkedService.MarshalJSON) ``` func (s [SapOpenHubLinkedService](#SapOpenHubLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOpenHubLinkedService. #### func (*SapOpenHubLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43059) [¶](#SapOpenHubLinkedService.UnmarshalJSON) ``` func (s *[SapOpenHubLinkedService](#SapOpenHubLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOpenHubLinkedService. #### type [SapOpenHubLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25124) [¶](#SapOpenHubLinkedServiceTypeProperties) ``` type SapOpenHubLinkedServiceTypeProperties struct { // Client ID of the client on the BW system where the open hub destination is located. (Usually a three-digit decimal number // represented as a string) Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression // with resultType string). Language interface{} `json:"language,omitempty"` // The Logon Group for the SAP System. Type: string (or Expression with resultType string). LogonGroup interface{} `json:"logonGroup,omitempty"` // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). MessageServer interface{} `json:"messageServer,omitempty"` // The service name or port number of the Message Server. Type: string (or Expression with resultType string). MessageServerService interface{} `json:"messageServerService,omitempty"` // Password to access the SAP BW server where the open hub destination is located. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Host name of the SAP BW instance where the open hub destination is located. Type: string (or Expression with resultType // string). Server interface{} `json:"server,omitempty"` // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). SystemID interface{} `json:"systemId,omitempty"` // System number of the BW system where the open hub destination is located. (Usually a two-digit decimal number represented // as a string.) Type: string (or Expression with resultType string). SystemNumber interface{} `json:"systemNumber,omitempty"` // Username to access the SAP BW server where the open hub destination is located. Type: string (or Expression with resultType // string). UserName interface{} `json:"userName,omitempty"` } ``` SapOpenHubLinkedServiceTypeProperties - Properties specific to SAP Business Warehouse Open Hub Destination linked service type. #### func (SapOpenHubLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43104) [¶](#SapOpenHubLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SapOpenHubLinkedServiceTypeProperties](#SapOpenHubLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOpenHubLinkedServiceTypeProperties. #### func (*SapOpenHubLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43121) [¶](#SapOpenHubLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SapOpenHubLinkedServiceTypeProperties](#SapOpenHubLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOpenHubLinkedServiceTypeProperties. #### type [SapOpenHubSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25166) [¶](#SapOpenHubSource) ``` type SapOpenHubSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will // be retrieved. The default value is 0. Type: integer (or Expression with // resultType integer ). BaseRequestID interface{} `json:"baseRequestId,omitempty"` // Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with // resultType string). CustomRFCReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType // boolean). ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: // string (or Expression with resultType string). SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SapOpenHubSource - A copy activity source for SAP Business Warehouse Open Hub Destination source. #### func (*SapOpenHubSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25211) [¶](#SapOpenHubSource.GetCopySource) added in v0.2.0 ``` func (s *[SapOpenHubSource](#SapOpenHubSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SapOpenHubSource. #### func (*SapOpenHubSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25223) [¶](#SapOpenHubSource.GetTabularSource) added in v0.2.0 ``` func (s *[SapOpenHubSource](#SapOpenHubSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SapOpenHubSource. #### func (SapOpenHubSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43171) [¶](#SapOpenHubSource.MarshalJSON) ``` func (s [SapOpenHubSource](#SapOpenHubSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOpenHubSource. #### func (*SapOpenHubSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43193) [¶](#SapOpenHubSource.UnmarshalJSON) ``` func (s *[SapOpenHubSource](#SapOpenHubSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOpenHubSource. #### type [SapOpenHubTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25237) [¶](#SapOpenHubTableDataset) ``` type SapOpenHubTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Sap Business Warehouse Open Hub Destination Table properties. TypeProperties *[SapOpenHubTableDatasetTypeProperties](#SapOpenHubTableDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` SapOpenHubTableDataset - Sap Business Warehouse Open Hub Destination Table properties. #### func (*SapOpenHubTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25271) [¶](#SapOpenHubTableDataset.GetDataset) added in v0.2.0 ``` func (s *[SapOpenHubTableDataset](#SapOpenHubTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SapOpenHubTableDataset. #### func (SapOpenHubTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43253) [¶](#SapOpenHubTableDataset.MarshalJSON) ``` func (s [SapOpenHubTableDataset](#SapOpenHubTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOpenHubTableDataset. #### func (*SapOpenHubTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43273) [¶](#SapOpenHubTableDataset.UnmarshalJSON) ``` func (s *[SapOpenHubTableDataset](#SapOpenHubTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOpenHubTableDataset. #### type [SapOpenHubTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25286) [¶](#SapOpenHubTableDatasetTypeProperties) ``` type SapOpenHubTableDatasetTypeProperties struct { // REQUIRED; The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with // resultType string). OpenHubDestinationName interface{} `json:"openHubDestinationName,omitempty"` // The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will // be retrieved. The default value is 0. Type: integer (or Expression with // resultType integer ). BaseRequestID interface{} `json:"baseRequestId,omitempty"` // Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType // boolean). ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` } ``` SapOpenHubTableDatasetTypeProperties - Sap Business Warehouse Open Hub Destination Table properties. #### func (SapOpenHubTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43327) [¶](#SapOpenHubTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SapOpenHubTableDatasetTypeProperties](#SapOpenHubTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapOpenHubTableDatasetTypeProperties. #### func (*SapOpenHubTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43336) [¶](#SapOpenHubTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SapOpenHubTableDatasetTypeProperties](#SapOpenHubTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapOpenHubTableDatasetTypeProperties. #### type [SapTableLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25302) [¶](#SapTableLinkedService) ``` type SapTableLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to this linked service type. TypeProperties *[SapTableLinkedServiceTypeProperties](#SapTableLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SapTableLinkedService - SAP Table Linked Service. #### func (*SapTableLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25326) [¶](#SapTableLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SapTableLinkedService](#SapTableLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SapTableLinkedService. #### func (SapTableLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43362) [¶](#SapTableLinkedService.MarshalJSON) ``` func (s [SapTableLinkedService](#SapTableLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapTableLinkedService. #### func (*SapTableLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43379) [¶](#SapTableLinkedService.UnmarshalJSON) ``` func (s *[SapTableLinkedService](#SapTableLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapTableLinkedService. #### type [SapTableLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25338) [¶](#SapTableLinkedServiceTypeProperties) ``` type SapTableLinkedServiceTypeProperties struct { // Client ID of the client on the SAP system where the table is located. (Usually a three-digit decimal number represented // as a string) Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType // string). Language interface{} `json:"language,omitempty"` // The Logon Group for the SAP System. Type: string (or Expression with resultType string). LogonGroup interface{} `json:"logonGroup,omitempty"` // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). MessageServer interface{} `json:"messageServer,omitempty"` // The service name or port number of the Message Server. Type: string (or Expression with resultType string). MessageServerService interface{} `json:"messageServerService,omitempty"` // Password to access the SAP server where the table is located. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` // External security product's library to access the SAP server where the table is located. Type: string (or Expression with // resultType string). SncLibraryPath interface{} `json:"sncLibraryPath,omitempty"` // SNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). Type: string // (or Expression with resultType string). SncMode interface{} `json:"sncMode,omitempty"` // Initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). SncMyName interface{} `json:"sncMyName,omitempty"` // Communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with // resultType string). SncPartnerName interface{} `json:"sncPartnerName,omitempty"` // SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). SncQop interface{} `json:"sncQop,omitempty"` // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). SystemID interface{} `json:"systemId,omitempty"` // System number of the SAP system where the table is located. (Usually a two-digit decimal number represented as a string.) // Type: string (or Expression with resultType string). SystemNumber interface{} `json:"systemNumber,omitempty"` // Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` SapTableLinkedServiceTypeProperties - Properties specific to this linked service type. #### func (SapTableLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43424) [¶](#SapTableLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SapTableLinkedServiceTypeProperties](#SapTableLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapTableLinkedServiceTypeProperties. #### func (*SapTableLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43446) [¶](#SapTableLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SapTableLinkedServiceTypeProperties](#SapTableLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapTableLinkedServiceTypeProperties. #### type [SapTablePartitionOption](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1585) [¶](#SapTablePartitionOption) ``` type SapTablePartitionOption [string](/builtin#string) ``` SapTablePartitionOption - The partition mechanism that will be used for SAP table read in parallel. ``` const ( SapTablePartitionOptionNone [SapTablePartitionOption](#SapTablePartitionOption) = "None" SapTablePartitionOptionPartitionOnCalendarDate [SapTablePartitionOption](#SapTablePartitionOption) = "PartitionOnCalendarDate" SapTablePartitionOptionPartitionOnCalendarMonth [SapTablePartitionOption](#SapTablePartitionOption) = "PartitionOnCalendarMonth" SapTablePartitionOptionPartitionOnCalendarYear [SapTablePartitionOption](#SapTablePartitionOption) = "PartitionOnCalendarYear" SapTablePartitionOptionPartitionOnInt [SapTablePartitionOption](#SapTablePartitionOption) = "PartitionOnInt" SapTablePartitionOptionPartitionOnTime [SapTablePartitionOption](#SapTablePartitionOption) = "PartitionOnTime" ) ``` #### func [PossibleSapTablePartitionOptionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1597) [¶](#PossibleSapTablePartitionOptionValues) ``` func PossibleSapTablePartitionOptionValues() [][SapTablePartitionOption](#SapTablePartitionOption) ``` PossibleSapTablePartitionOptionValues returns the possible values for the SapTablePartitionOption const type. #### type [SapTablePartitionSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25396) [¶](#SapTablePartitionSettings) ``` type SapTablePartitionSettings struct { // The maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). MaxPartitionsNumber interface{} `json:"maxPartitionsNumber,omitempty"` // The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType // string). PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` } ``` SapTablePartitionSettings - The settings that will be leveraged for SAP table source partitioning. #### func (SapTablePartitionSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43511) [¶](#SapTablePartitionSettings.MarshalJSON) added in v1.3.0 ``` func (s [SapTablePartitionSettings](#SapTablePartitionSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapTablePartitionSettings. #### func (*SapTablePartitionSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43521) [¶](#SapTablePartitionSettings.UnmarshalJSON) added in v1.3.0 ``` func (s *[SapTablePartitionSettings](#SapTablePartitionSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapTablePartitionSettings. #### type [SapTableResourceDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25414) [¶](#SapTableResourceDataset) ``` type SapTableResourceDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SAP Table Resource properties. TypeProperties *[SapTableResourceDatasetTypeProperties](#SapTableResourceDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` SapTableResourceDataset - SAP Table Resource properties. #### func (*SapTableResourceDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25448) [¶](#SapTableResourceDataset.GetDataset) added in v0.2.0 ``` func (s *[SapTableResourceDataset](#SapTableResourceDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SapTableResourceDataset. #### func (SapTableResourceDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43550) [¶](#SapTableResourceDataset.MarshalJSON) ``` func (s [SapTableResourceDataset](#SapTableResourceDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapTableResourceDataset. #### func (*SapTableResourceDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43570) [¶](#SapTableResourceDataset.UnmarshalJSON) ``` func (s *[SapTableResourceDataset](#SapTableResourceDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapTableResourceDataset. #### type [SapTableResourceDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25463) [¶](#SapTableResourceDatasetTypeProperties) ``` type SapTableResourceDatasetTypeProperties struct { // REQUIRED; The name of the SAP Table. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` SapTableResourceDatasetTypeProperties - SAP Table Resource properties. #### func (SapTableResourceDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43624) [¶](#SapTableResourceDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SapTableResourceDatasetTypeProperties](#SapTableResourceDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapTableResourceDatasetTypeProperties. #### func (*SapTableResourceDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43631) [¶](#SapTableResourceDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SapTableResourceDatasetTypeProperties](#SapTableResourceDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapTableResourceDatasetTypeProperties. #### type [SapTableSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25469) [¶](#SapTableSource) ``` type SapTableSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies the maximum number of rows that will be retrieved at a time when retrieving data from SAP Table. Type: integer // (or Expression with resultType integer). BatchSize interface{} `json:"batchSize,omitempty"` // Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with // resultType string). CustomRFCReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for SAP table read in parallel. Possible values include: "None", "PartitionOnInt", // "PartitionOnCalendarYear", "PartitionOnCalendarMonth", // "PartitionOnCalendarDate", "PartitionOnTime". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for SAP table source partitioning. PartitionSettings *[SapTablePartitionSettings](#SapTablePartitionSettings) `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // The fields of the SAP table that will be retrieved. For example, column0, column1. Type: string (or Expression with resultType // string). RFCTableFields interface{} `json:"rfcTableFields,omitempty"` // The options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME VALUE. Type: string (or Expression with resultType // string). RFCTableOptions interface{} `json:"rfcTableOptions,omitempty"` // The number of rows to be retrieved. Type: integer(or Expression with resultType integer). RowCount interface{} `json:"rowCount,omitempty"` // The number of rows that will be skipped. Type: integer (or Expression with resultType integer). RowSkips interface{} `json:"rowSkips,omitempty"` // The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: // string (or Expression with resultType string). SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SapTableSource - A copy activity source for SAP Table source. #### func (*SapTableSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25531) [¶](#SapTableSource.GetCopySource) added in v0.2.0 ``` func (s *[SapTableSource](#SapTableSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SapTableSource. #### func (*SapTableSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25543) [¶](#SapTableSource.GetTabularSource) added in v0.2.0 ``` func (s *[SapTableSource](#SapTableSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SapTableSource. #### func (SapTableSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43651) [¶](#SapTableSource.MarshalJSON) ``` func (s [SapTableSource](#SapTableSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SapTableSource. #### func (*SapTableSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43678) [¶](#SapTableSource.UnmarshalJSON) ``` func (s *[SapTableSource](#SapTableSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SapTableSource. #### type [ScheduleTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25557) [¶](#ScheduleTrigger) ``` type ScheduleTrigger struct { // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Schedule Trigger properties. TypeProperties *[ScheduleTriggerTypeProperties](#ScheduleTriggerTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // Pipelines that need to be started. Pipelines []*[TriggerPipelineReference](#TriggerPipelineReference) `json:"pipelines,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` ScheduleTrigger - Trigger that creates pipeline runs periodically, on schedule. #### func (*ScheduleTrigger) [GetMultiplePipelineTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25581) [¶](#ScheduleTrigger.GetMultiplePipelineTrigger) added in v0.2.0 ``` func (s *[ScheduleTrigger](#ScheduleTrigger)) GetMultiplePipelineTrigger() *[MultiplePipelineTrigger](#MultiplePipelineTrigger) ``` GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type ScheduleTrigger. #### func (*ScheduleTrigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25593) [¶](#ScheduleTrigger.GetTrigger) added in v0.2.0 ``` func (s *[ScheduleTrigger](#ScheduleTrigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type ScheduleTrigger. #### func (ScheduleTrigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43753) [¶](#ScheduleTrigger.MarshalJSON) ``` func (s [ScheduleTrigger](#ScheduleTrigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScheduleTrigger. #### func (*ScheduleTrigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43770) [¶](#ScheduleTrigger.UnmarshalJSON) ``` func (s *[ScheduleTrigger](#ScheduleTrigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleTrigger. #### type [ScheduleTriggerRecurrence](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25604) [¶](#ScheduleTriggerRecurrence) ``` type ScheduleTriggerRecurrence struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The end time. EndTime *[time](/time).[Time](/time#Time) `json:"endTime,omitempty"` // The frequency. Frequency *[RecurrenceFrequency](#RecurrenceFrequency) `json:"frequency,omitempty"` // The interval. Interval *[int32](/builtin#int32) `json:"interval,omitempty"` // The recurrence schedule. Schedule *[RecurrenceSchedule](#RecurrenceSchedule) `json:"schedule,omitempty"` // The start time. StartTime *[time](/time).[Time](/time#Time) `json:"startTime,omitempty"` // The time zone. TimeZone *[string](/builtin#string) `json:"timeZone,omitempty"` } ``` ScheduleTriggerRecurrence - The workflow trigger recurrence. #### func (ScheduleTriggerRecurrence) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43815) [¶](#ScheduleTriggerRecurrence.MarshalJSON) ``` func (s [ScheduleTriggerRecurrence](#ScheduleTriggerRecurrence)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScheduleTriggerRecurrence. #### func (*ScheduleTriggerRecurrence) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43832) [¶](#ScheduleTriggerRecurrence.UnmarshalJSON) ``` func (s *[ScheduleTriggerRecurrence](#ScheduleTriggerRecurrence)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleTriggerRecurrence. #### type [ScheduleTriggerTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25628) [¶](#ScheduleTriggerTypeProperties) ``` type ScheduleTriggerTypeProperties struct { // REQUIRED; Recurrence schedule configuration. Recurrence *[ScheduleTriggerRecurrence](#ScheduleTriggerRecurrence) `json:"recurrence,omitempty"` } ``` ScheduleTriggerTypeProperties - Schedule Trigger properties. #### func (ScheduleTriggerTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43877) [¶](#ScheduleTriggerTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [ScheduleTriggerTypeProperties](#ScheduleTriggerTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScheduleTriggerTypeProperties. #### func (*ScheduleTriggerTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43884) [¶](#ScheduleTriggerTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[ScheduleTriggerTypeProperties](#ScheduleTriggerTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleTriggerTypeProperties. #### type [ScriptAction](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25634) [¶](#ScriptAction) ``` type ScriptAction struct { // REQUIRED; The user provided name of the script action. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; The node types on which the script action should be executed. Roles interface{} `json:"roles,omitempty"` // REQUIRED; The URI for the script action. URI *[string](/builtin#string) `json:"uri,omitempty"` // The parameters for the script action. Parameters *[string](/builtin#string) `json:"parameters,omitempty"` } ``` ScriptAction - Custom script action to run on HDI ondemand cluster once it's up. #### func (ScriptAction) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43904) [¶](#ScriptAction.MarshalJSON) added in v1.3.0 ``` func (s [ScriptAction](#ScriptAction)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScriptAction. #### func (*ScriptAction) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43914) [¶](#ScriptAction.UnmarshalJSON) added in v1.3.0 ``` func (s *[ScriptAction](#ScriptAction)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScriptAction. #### type [ScriptActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25649) [¶](#ScriptActivity) added in v0.3.0 ``` type ScriptActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Script activity properties. TypeProperties *[ScriptActivityTypeProperties](#ScriptActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ScriptActivity - Script activity type. #### func (*ScriptActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25679) [¶](#ScriptActivity.GetActivity) added in v0.3.0 ``` func (s *[ScriptActivity](#ScriptActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ScriptActivity. #### func (*ScriptActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25691) [¶](#ScriptActivity.GetExecutionActivity) added in v0.3.0 ``` func (s *[ScriptActivity](#ScriptActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type ScriptActivity. #### func (ScriptActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43943) [¶](#ScriptActivity.MarshalJSON) added in v0.3.0 ``` func (s [ScriptActivity](#ScriptActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScriptActivity. #### func (*ScriptActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L43962) [¶](#ScriptActivity.UnmarshalJSON) added in v0.3.0 ``` func (s *[ScriptActivity](#ScriptActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivity. #### type [ScriptActivityLogDestination](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1609) [¶](#ScriptActivityLogDestination) added in v0.3.0 ``` type ScriptActivityLogDestination [string](/builtin#string) ``` ScriptActivityLogDestination - The destination of logs. Type: string. ``` const ( ScriptActivityLogDestinationActivityOutput [ScriptActivityLogDestination](#ScriptActivityLogDestination) = "ActivityOutput" ScriptActivityLogDestinationExternalStore [ScriptActivityLogDestination](#ScriptActivityLogDestination) = "ExternalStore" ) ``` #### func [PossibleScriptActivityLogDestinationValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1617) [¶](#PossibleScriptActivityLogDestinationValues) added in v0.3.0 ``` func PossibleScriptActivityLogDestinationValues() [][ScriptActivityLogDestination](#ScriptActivityLogDestination) ``` PossibleScriptActivityLogDestinationValues returns the possible values for the ScriptActivityLogDestination const type. #### type [ScriptActivityParameter](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25705) [¶](#ScriptActivityParameter) added in v0.3.0 ``` type ScriptActivityParameter struct { // The direction of the parameter. Direction *[ScriptActivityParameterDirection](#ScriptActivityParameterDirection) `json:"direction,omitempty"` // The name of the parameter. Type: string (or Expression with resultType string). Name interface{} `json:"name,omitempty"` // The size of the output direction parameter. Size *[int32](/builtin#int32) `json:"size,omitempty"` // The type of the parameter. Type *[ScriptActivityParameterType](#ScriptActivityParameterType) `json:"type,omitempty"` // The value of the parameter. Value interface{} `json:"value,omitempty"` } ``` ScriptActivityParameter - Parameters of a script block. #### func (ScriptActivityParameter) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44013) [¶](#ScriptActivityParameter.MarshalJSON) added in v1.3.0 ``` func (s [ScriptActivityParameter](#ScriptActivityParameter)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScriptActivityParameter. #### func (*ScriptActivityParameter) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44024) [¶](#ScriptActivityParameter.UnmarshalJSON) added in v1.3.0 ``` func (s *[ScriptActivityParameter](#ScriptActivityParameter)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivityParameter. #### type [ScriptActivityParameterDirection](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1625) [¶](#ScriptActivityParameterDirection) added in v0.3.0 ``` type ScriptActivityParameterDirection [string](/builtin#string) ``` ScriptActivityParameterDirection - The direction of the parameter. ``` const ( ScriptActivityParameterDirectionInput [ScriptActivityParameterDirection](#ScriptActivityParameterDirection) = "Input" ScriptActivityParameterDirectionInputOutput [ScriptActivityParameterDirection](#ScriptActivityParameterDirection) = "InputOutput" ScriptActivityParameterDirectionOutput [ScriptActivityParameterDirection](#ScriptActivityParameterDirection) = "Output" ) ``` #### func [PossibleScriptActivityParameterDirectionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1634) [¶](#PossibleScriptActivityParameterDirectionValues) added in v0.3.0 ``` func PossibleScriptActivityParameterDirectionValues() [][ScriptActivityParameterDirection](#ScriptActivityParameterDirection) ``` PossibleScriptActivityParameterDirectionValues returns the possible values for the ScriptActivityParameterDirection const type. #### type [ScriptActivityParameterType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1643) [¶](#ScriptActivityParameterType) added in v0.3.0 ``` type ScriptActivityParameterType [string](/builtin#string) ``` ScriptActivityParameterType - The type of the parameter. ``` const ( ScriptActivityParameterTypeBoolean [ScriptActivityParameterType](#ScriptActivityParameterType) = "Boolean" ScriptActivityParameterTypeDateTime [ScriptActivityParameterType](#ScriptActivityParameterType) = "DateTime" ScriptActivityParameterTypeDateTimeOffset [ScriptActivityParameterType](#ScriptActivityParameterType) = "DateTimeOffset" ScriptActivityParameterTypeDecimal [ScriptActivityParameterType](#ScriptActivityParameterType) = "Decimal" ScriptActivityParameterTypeDouble [ScriptActivityParameterType](#ScriptActivityParameterType) = "Double" ScriptActivityParameterTypeGUID [ScriptActivityParameterType](#ScriptActivityParameterType) = "Guid" ScriptActivityParameterTypeInt16 [ScriptActivityParameterType](#ScriptActivityParameterType) = "Int16" ScriptActivityParameterTypeInt32 [ScriptActivityParameterType](#ScriptActivityParameterType) = "Int32" ScriptActivityParameterTypeInt64 [ScriptActivityParameterType](#ScriptActivityParameterType) = "Int64" ScriptActivityParameterTypeSingle [ScriptActivityParameterType](#ScriptActivityParameterType) = "Single" ScriptActivityParameterTypeString [ScriptActivityParameterType](#ScriptActivityParameterType) = "String" ScriptActivityParameterTypeTimespan [ScriptActivityParameterType](#ScriptActivityParameterType) = "Timespan" ) ``` #### func [PossibleScriptActivityParameterTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1661) [¶](#PossibleScriptActivityParameterTypeValues) added in v0.3.0 ``` func PossibleScriptActivityParameterTypeValues() [][ScriptActivityParameterType](#ScriptActivityParameterType) ``` PossibleScriptActivityParameterTypeValues returns the possible values for the ScriptActivityParameterType const type. #### type [ScriptActivityScriptBlock](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25723) [¶](#ScriptActivityScriptBlock) added in v0.3.0 ``` type ScriptActivityScriptBlock struct { // REQUIRED; The query text. Type: string (or Expression with resultType string). Text interface{} `json:"text,omitempty"` // REQUIRED; The type of the query. Type: string. Type *[ScriptType](#ScriptType) `json:"type,omitempty"` // Array of script parameters. Type: array. Parameters []*[ScriptActivityParameter](#ScriptActivityParameter) `json:"parameters,omitempty"` } ``` ScriptActivityScriptBlock - Script block of scripts. #### func (ScriptActivityScriptBlock) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44056) [¶](#ScriptActivityScriptBlock.MarshalJSON) added in v0.3.0 ``` func (s [ScriptActivityScriptBlock](#ScriptActivityScriptBlock)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScriptActivityScriptBlock. #### func (*ScriptActivityScriptBlock) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44065) [¶](#ScriptActivityScriptBlock.UnmarshalJSON) added in v1.3.0 ``` func (s *[ScriptActivityScriptBlock](#ScriptActivityScriptBlock)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivityScriptBlock. #### type [ScriptActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25735) [¶](#ScriptActivityTypeProperties) added in v0.3.0 ``` type ScriptActivityTypeProperties struct { // Log settings of script activity. LogSettings *[ScriptActivityTypePropertiesLogSettings](#ScriptActivityTypePropertiesLogSettings) `json:"logSettings,omitempty"` // Array of script blocks. Type: array. Scripts []*[ScriptActivityScriptBlock](#ScriptActivityScriptBlock) `json:"scripts,omitempty"` } ``` ScriptActivityTypeProperties - Script activity properties. #### func (ScriptActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44091) [¶](#ScriptActivityTypeProperties.MarshalJSON) added in v0.3.0 ``` func (s [ScriptActivityTypeProperties](#ScriptActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScriptActivityTypeProperties. #### func (*ScriptActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44099) [¶](#ScriptActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[ScriptActivityTypeProperties](#ScriptActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivityTypeProperties. #### type [ScriptActivityTypePropertiesLogSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25744) [¶](#ScriptActivityTypePropertiesLogSettings) added in v0.3.0 ``` type ScriptActivityTypePropertiesLogSettings struct { // REQUIRED; The destination of logs. Type: string. LogDestination *[ScriptActivityLogDestination](#ScriptActivityLogDestination) `json:"logDestination,omitempty"` // Log location settings customer needs to provide when enabling log. LogLocationSettings *[LogLocationSettings](#LogLocationSettings) `json:"logLocationSettings,omitempty"` } ``` ScriptActivityTypePropertiesLogSettings - Log settings of script activity. #### func (ScriptActivityTypePropertiesLogSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44122) [¶](#ScriptActivityTypePropertiesLogSettings.MarshalJSON) added in v1.3.0 ``` func (s [ScriptActivityTypePropertiesLogSettings](#ScriptActivityTypePropertiesLogSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ScriptActivityTypePropertiesLogSettings. #### func (*ScriptActivityTypePropertiesLogSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44130) [¶](#ScriptActivityTypePropertiesLogSettings.UnmarshalJSON) added in v1.3.0 ``` func (s *[ScriptActivityTypePropertiesLogSettings](#ScriptActivityTypePropertiesLogSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivityTypePropertiesLogSettings. #### type [ScriptType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1679) [¶](#ScriptType) added in v0.3.0 ``` type ScriptType [string](/builtin#string) ``` ScriptType - The type of the query. Type: string. ``` const ( ScriptTypeNonQuery [ScriptType](#ScriptType) = "NonQuery" ScriptTypeQuery [ScriptType](#ScriptType) = "Query" ) ``` #### func [PossibleScriptTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1687) [¶](#PossibleScriptTypeValues) added in v0.3.0 ``` func PossibleScriptTypeValues() [][ScriptType](#ScriptType) ``` PossibleScriptTypeValues returns the possible values for the ScriptType const type. #### type [SecretBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25762) [¶](#SecretBase) ``` type SecretBase struct { // REQUIRED; Type of the secret. Type *[string](/builtin#string) `json:"type,omitempty"` } ``` SecretBase - The base definition of a secret type. #### func (*SecretBase) [GetSecretBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25768) [¶](#SecretBase.GetSecretBase) ``` func (s *[SecretBase](#SecretBase)) GetSecretBase() *[SecretBase](#SecretBase) ``` GetSecretBase implements the SecretBaseClassification interface for type SecretBase. #### func (SecretBase) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44153) [¶](#SecretBase.MarshalJSON) added in v1.3.0 ``` func (s [SecretBase](#SecretBase)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SecretBase. #### func (*SecretBase) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44160) [¶](#SecretBase.UnmarshalJSON) ``` func (s *[SecretBase](#SecretBase)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SecretBase. #### type [SecretBaseClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25756) [¶](#SecretBaseClassification) ``` type SecretBaseClassification interface { // GetSecretBase returns the SecretBase content of the underlying type. GetSecretBase() *[SecretBase](#SecretBase) } ``` SecretBaseClassification provides polymorphic access to related types. Call the interface's GetSecretBase() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureKeyVaultSecretReference, *SecretBase, *SecureString #### type [SecureString](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25772) [¶](#SecureString) ``` type SecureString struct { // REQUIRED; Type of the secret. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Value of secure string. Value *[string](/builtin#string) `json:"value,omitempty"` } ``` SecureString - Azure Data Factory secure string definition. The string value will be masked with asterisks '*' during Get or List API calls. #### func (*SecureString) [GetSecretBase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25781) [¶](#SecureString.GetSecretBase) added in v0.2.0 ``` func (s *[SecureString](#SecureString)) GetSecretBase() *[SecretBase](#SecretBase) ``` GetSecretBase implements the SecretBaseClassification interface for type SecureString. #### func (SecureString) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44180) [¶](#SecureString.MarshalJSON) ``` func (s [SecureString](#SecureString)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SecureString. #### func (*SecureString) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44188) [¶](#SecureString.UnmarshalJSON) ``` func (s *[SecureString](#SecureString)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SecureString. #### type [SelfDependencyTumblingWindowTriggerReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25788) [¶](#SelfDependencyTumblingWindowTriggerReference) ``` type SelfDependencyTumblingWindowTriggerReference struct { // REQUIRED; Timespan applied to the start time of a tumbling window when evaluating dependency. Offset *[string](/builtin#string) `json:"offset,omitempty"` // REQUIRED; The type of dependency reference. Type *[string](/builtin#string) `json:"type,omitempty"` // The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. Size *[string](/builtin#string) `json:"size,omitempty"` } ``` SelfDependencyTumblingWindowTriggerReference - Self referenced tumbling window trigger dependency. #### func (*SelfDependencyTumblingWindowTriggerReference) [GetDependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25800) [¶](#SelfDependencyTumblingWindowTriggerReference.GetDependencyReference) added in v0.2.0 ``` func (s *[SelfDependencyTumblingWindowTriggerReference](#SelfDependencyTumblingWindowTriggerReference)) GetDependencyReference() *[DependencyReference](#DependencyReference) ``` GetDependencyReference implements the DependencyReferenceClassification interface for type SelfDependencyTumblingWindowTriggerReference. #### func (SelfDependencyTumblingWindowTriggerReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44211) [¶](#SelfDependencyTumblingWindowTriggerReference.MarshalJSON) ``` func (s [SelfDependencyTumblingWindowTriggerReference](#SelfDependencyTumblingWindowTriggerReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SelfDependencyTumblingWindowTriggerReference. #### func (*SelfDependencyTumblingWindowTriggerReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44220) [¶](#SelfDependencyTumblingWindowTriggerReference.UnmarshalJSON) ``` func (s *[SelfDependencyTumblingWindowTriggerReference](#SelfDependencyTumblingWindowTriggerReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SelfDependencyTumblingWindowTriggerReference. #### type [SelfHostedIntegrationRuntime](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25807) [¶](#SelfHostedIntegrationRuntime) ``` type SelfHostedIntegrationRuntime struct { // REQUIRED; Type of integration runtime. Type *[IntegrationRuntimeType](#IntegrationRuntimeType) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Integration runtime description. Description *[string](/builtin#string) `json:"description,omitempty"` // When this property is not null, means this is a linked integration runtime. The property is used to access original integration // runtime. TypeProperties *[SelfHostedIntegrationRuntimeTypeProperties](#SelfHostedIntegrationRuntimeTypeProperties) `json:"typeProperties,omitempty"` } ``` SelfHostedIntegrationRuntime - Self-hosted integration runtime. #### func (*SelfHostedIntegrationRuntime) [GetIntegrationRuntime](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25823) [¶](#SelfHostedIntegrationRuntime.GetIntegrationRuntime) added in v0.2.0 ``` func (s *[SelfHostedIntegrationRuntime](#SelfHostedIntegrationRuntime)) GetIntegrationRuntime() *[IntegrationRuntime](#IntegrationRuntime) ``` GetIntegrationRuntime implements the IntegrationRuntimeClassification interface for type SelfHostedIntegrationRuntime. #### func (SelfHostedIntegrationRuntime) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44246) [¶](#SelfHostedIntegrationRuntime.MarshalJSON) ``` func (s [SelfHostedIntegrationRuntime](#SelfHostedIntegrationRuntime)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntime. #### func (*SelfHostedIntegrationRuntime) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44260) [¶](#SelfHostedIntegrationRuntime.UnmarshalJSON) ``` func (s *[SelfHostedIntegrationRuntime](#SelfHostedIntegrationRuntime)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntime. #### type [SelfHostedIntegrationRuntimeNode](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25832) [¶](#SelfHostedIntegrationRuntimeNode) ``` type SelfHostedIntegrationRuntimeNode struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; The integration runtime capabilities dictionary Capabilities map[[string](/builtin#string)]*[string](/builtin#string) `json:"capabilities,omitempty" azure:"ro"` // READ-ONLY; Maximum concurrent jobs on the integration runtime node. ConcurrentJobsLimit *[int32](/builtin#int32) `json:"concurrentJobsLimit,omitempty" azure:"ro"` // READ-ONLY; The time at which the integration runtime will expire in ISO8601 format. ExpiryTime *[time](/time).[Time](/time#Time) `json:"expiryTime,omitempty" azure:"ro"` // READ-ONLY; URI for the host machine of the integration runtime. HostServiceURI *[string](/builtin#string) `json:"hostServiceUri,omitempty" azure:"ro"` // READ-ONLY; Indicates whether this node is the active dispatcher for integration runtime requests. IsActiveDispatcher *[bool](/builtin#bool) `json:"isActiveDispatcher,omitempty" azure:"ro"` // READ-ONLY; The most recent time at which the integration runtime was connected in ISO8601 format. LastConnectTime *[time](/time).[Time](/time#Time) `json:"lastConnectTime,omitempty" azure:"ro"` // READ-ONLY; The last time for the integration runtime node update end. LastEndUpdateTime *[time](/time).[Time](/time#Time) `json:"lastEndUpdateTime,omitempty" azure:"ro"` // READ-ONLY; The time the node last started up. LastStartTime *[time](/time).[Time](/time#Time) `json:"lastStartTime,omitempty" azure:"ro"` // READ-ONLY; The last time for the integration runtime node update start. LastStartUpdateTime *[time](/time).[Time](/time#Time) `json:"lastStartUpdateTime,omitempty" azure:"ro"` // READ-ONLY; The integration runtime node last stop time. LastStopTime *[time](/time).[Time](/time#Time) `json:"lastStopTime,omitempty" azure:"ro"` // READ-ONLY; The result of the last integration runtime node update. LastUpdateResult *[IntegrationRuntimeUpdateResult](#IntegrationRuntimeUpdateResult) `json:"lastUpdateResult,omitempty" azure:"ro"` // READ-ONLY; Machine name of the integration runtime node. MachineName *[string](/builtin#string) `json:"machineName,omitempty" azure:"ro"` // READ-ONLY; The maximum concurrent jobs in this integration runtime. MaxConcurrentJobs *[int32](/builtin#int32) `json:"maxConcurrentJobs,omitempty" azure:"ro"` // READ-ONLY; Name of the integration runtime node. NodeName *[string](/builtin#string) `json:"nodeName,omitempty" azure:"ro"` // READ-ONLY; The time at which the integration runtime node was registered in ISO8601 format. RegisterTime *[time](/time).[Time](/time#Time) `json:"registerTime,omitempty" azure:"ro"` // READ-ONLY; Status of the integration runtime node. Status *[SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) `json:"status,omitempty" azure:"ro"` // READ-ONLY; Version of the integration runtime node. Version *[string](/builtin#string) `json:"version,omitempty" azure:"ro"` // READ-ONLY; Status of the integration runtime node version. VersionStatus *[string](/builtin#string) `json:"versionStatus,omitempty" azure:"ro"` } ``` SelfHostedIntegrationRuntimeNode - Properties of Self-hosted integration runtime node. #### func (SelfHostedIntegrationRuntimeNode) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44296) [¶](#SelfHostedIntegrationRuntimeNode.MarshalJSON) ``` func (s [SelfHostedIntegrationRuntimeNode](#SelfHostedIntegrationRuntimeNode)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeNode. #### func (*SelfHostedIntegrationRuntimeNode) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44325) [¶](#SelfHostedIntegrationRuntimeNode.UnmarshalJSON) ``` func (s *[SelfHostedIntegrationRuntimeNode](#SelfHostedIntegrationRuntimeNode)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeNode. #### type [SelfHostedIntegrationRuntimeNodeStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1695) [¶](#SelfHostedIntegrationRuntimeNodeStatus) ``` type SelfHostedIntegrationRuntimeNodeStatus [string](/builtin#string) ``` SelfHostedIntegrationRuntimeNodeStatus - Status of the integration runtime node. ``` const ( SelfHostedIntegrationRuntimeNodeStatusInitializeFailed [SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) = "InitializeFailed" SelfHostedIntegrationRuntimeNodeStatusInitializing [SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) = "Initializing" SelfHostedIntegrationRuntimeNodeStatusLimited [SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) = "Limited" SelfHostedIntegrationRuntimeNodeStatusNeedRegistration [SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) = "NeedRegistration" SelfHostedIntegrationRuntimeNodeStatusOffline [SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) = "Offline" SelfHostedIntegrationRuntimeNodeStatusOnline [SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) = "Online" SelfHostedIntegrationRuntimeNodeStatusUpgrading [SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) = "Upgrading" ) ``` #### func [PossibleSelfHostedIntegrationRuntimeNodeStatusValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1708) [¶](#PossibleSelfHostedIntegrationRuntimeNodeStatusValues) ``` func PossibleSelfHostedIntegrationRuntimeNodeStatusValues() [][SelfHostedIntegrationRuntimeNodeStatus](#SelfHostedIntegrationRuntimeNodeStatus) ``` PossibleSelfHostedIntegrationRuntimeNodeStatusValues returns the possible values for the SelfHostedIntegrationRuntimeNodeStatus const type. #### type [SelfHostedIntegrationRuntimeStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25892) [¶](#SelfHostedIntegrationRuntimeStatus) ``` type SelfHostedIntegrationRuntimeStatus struct { // REQUIRED; Type of integration runtime. Type *[IntegrationRuntimeType](#IntegrationRuntimeType) `json:"type,omitempty"` // REQUIRED; Self-hosted integration runtime status type properties. TypeProperties *[SelfHostedIntegrationRuntimeStatusTypeProperties](#SelfHostedIntegrationRuntimeStatusTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *[string](/builtin#string) `json:"dataFactoryName,omitempty" azure:"ro"` // READ-ONLY; The state of integration runtime. State *[IntegrationRuntimeState](#IntegrationRuntimeState) `json:"state,omitempty" azure:"ro"` } ``` SelfHostedIntegrationRuntimeStatus - Self-hosted integration runtime status. #### func (*SelfHostedIntegrationRuntimeStatus) [GetIntegrationRuntimeStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25910) [¶](#SelfHostedIntegrationRuntimeStatus.GetIntegrationRuntimeStatus) added in v0.2.0 ``` func (s *[SelfHostedIntegrationRuntimeStatus](#SelfHostedIntegrationRuntimeStatus)) GetIntegrationRuntimeStatus() *[IntegrationRuntimeStatus](#IntegrationRuntimeStatus) ``` GetIntegrationRuntimeStatus implements the IntegrationRuntimeStatusClassification interface for type SelfHostedIntegrationRuntimeStatus. #### func (SelfHostedIntegrationRuntimeStatus) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44406) [¶](#SelfHostedIntegrationRuntimeStatus.MarshalJSON) ``` func (s [SelfHostedIntegrationRuntimeStatus](#SelfHostedIntegrationRuntimeStatus)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatus. #### func (*SelfHostedIntegrationRuntimeStatus) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44421) [¶](#SelfHostedIntegrationRuntimeStatus.UnmarshalJSON) ``` func (s *[SelfHostedIntegrationRuntimeStatus](#SelfHostedIntegrationRuntimeStatus)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeStatus. #### type [SelfHostedIntegrationRuntimeStatusTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25920) [¶](#SelfHostedIntegrationRuntimeStatusTypeProperties) ``` type SelfHostedIntegrationRuntimeStatusTypeProperties struct { // The list of linked integration runtimes that are created to share with this integration runtime. Links []*[LinkedIntegrationRuntime](#LinkedIntegrationRuntime) `json:"links,omitempty"` // The list of nodes for this integration runtime. Nodes []*[SelfHostedIntegrationRuntimeNode](#SelfHostedIntegrationRuntimeNode) `json:"nodes,omitempty"` // READ-ONLY; Whether Self-hosted integration runtime auto update has been turned on. AutoUpdate *[IntegrationRuntimeAutoUpdate](#IntegrationRuntimeAutoUpdate) `json:"autoUpdate,omitempty" azure:"ro"` // READ-ONLY; The estimated time when the self-hosted integration runtime will be updated. AutoUpdateETA *[time](/time).[Time](/time#Time) `json:"autoUpdateETA,omitempty" azure:"ro"` // READ-ONLY; Object with additional information about integration runtime capabilities. Capabilities map[[string](/builtin#string)]*[string](/builtin#string) `json:"capabilities,omitempty" azure:"ro"` // READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. CreateTime *[time](/time).[Time](/time#Time) `json:"createTime,omitempty" azure:"ro"` // READ-ONLY; It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration // runtime nodes exist). InternalChannelEncryption *[IntegrationRuntimeInternalChannelEncryptionMode](#IntegrationRuntimeInternalChannelEncryptionMode) `json:"internalChannelEncryption,omitempty" azure:"ro"` // READ-ONLY; The latest version on download center. LatestVersion *[string](/builtin#string) `json:"latestVersion,omitempty" azure:"ro"` // READ-ONLY; The local time zone offset in hours. LocalTimeZoneOffset *[string](/builtin#string) `json:"localTimeZoneOffset,omitempty" azure:"ro"` // READ-ONLY; The version that the integration runtime is going to update to. PushedVersion *[string](/builtin#string) `json:"pushedVersion,omitempty" azure:"ro"` // READ-ONLY; The date at which the integration runtime will be scheduled to update, in ISO8601 format. ScheduledUpdateDate *[time](/time).[Time](/time#Time) `json:"scheduledUpdateDate,omitempty" azure:"ro"` // READ-ONLY; The URLs for the services used in integration runtime backend service. ServiceUrls []*[string](/builtin#string) `json:"serviceUrls,omitempty" azure:"ro"` // READ-ONLY; The task queue id of the integration runtime. TaskQueueID *[string](/builtin#string) `json:"taskQueueId,omitempty" azure:"ro"` // READ-ONLY; The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours UpdateDelayOffset *[string](/builtin#string) `json:"updateDelayOffset,omitempty" azure:"ro"` // READ-ONLY; Version of the integration runtime. Version *[string](/builtin#string) `json:"version,omitempty" azure:"ro"` // READ-ONLY; Status of the integration runtime version. VersionStatus *[string](/builtin#string) `json:"versionStatus,omitempty" azure:"ro"` } ``` SelfHostedIntegrationRuntimeStatusTypeProperties - Self-hosted integration runtime status type properties. #### func (SelfHostedIntegrationRuntimeStatusTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44460) [¶](#SelfHostedIntegrationRuntimeStatusTypeProperties.MarshalJSON) ``` func (s [SelfHostedIntegrationRuntimeStatusTypeProperties](#SelfHostedIntegrationRuntimeStatusTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. #### func (*SelfHostedIntegrationRuntimeStatusTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44482) [¶](#SelfHostedIntegrationRuntimeStatusTypeProperties.UnmarshalJSON) ``` func (s *[SelfHostedIntegrationRuntimeStatusTypeProperties](#SelfHostedIntegrationRuntimeStatusTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. #### type [SelfHostedIntegrationRuntimeTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25972) [¶](#SelfHostedIntegrationRuntimeTypeProperties) ``` type SelfHostedIntegrationRuntimeTypeProperties struct { // The base definition of a linked integration runtime. LinkedInfo [LinkedIntegrationRuntimeTypeClassification](#LinkedIntegrationRuntimeTypeClassification) `json:"linkedInfo,omitempty"` } ``` SelfHostedIntegrationRuntimeTypeProperties - The self-hosted integration runtime properties. #### func (SelfHostedIntegrationRuntimeTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44547) [¶](#SelfHostedIntegrationRuntimeTypeProperties.MarshalJSON) ``` func (s [SelfHostedIntegrationRuntimeTypeProperties](#SelfHostedIntegrationRuntimeTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeTypeProperties. #### func (*SelfHostedIntegrationRuntimeTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44554) [¶](#SelfHostedIntegrationRuntimeTypeProperties.UnmarshalJSON) ``` func (s *[SelfHostedIntegrationRuntimeTypeProperties](#SelfHostedIntegrationRuntimeTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeTypeProperties. #### type [ServiceNowAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1721) [¶](#ServiceNowAuthenticationType) ``` type ServiceNowAuthenticationType [string](/builtin#string) ``` ServiceNowAuthenticationType - The authentication type to use. ``` const ( ServiceNowAuthenticationTypeBasic [ServiceNowAuthenticationType](#ServiceNowAuthenticationType) = "Basic" ServiceNowAuthenticationTypeOAuth2 [ServiceNowAuthenticationType](#ServiceNowAuthenticationType) = "OAuth2" ) ``` #### func [PossibleServiceNowAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1729) [¶](#PossibleServiceNowAuthenticationTypeValues) ``` func PossibleServiceNowAuthenticationTypeValues() [][ServiceNowAuthenticationType](#ServiceNowAuthenticationType) ``` PossibleServiceNowAuthenticationTypeValues returns the possible values for the ServiceNowAuthenticationType const type. #### type [ServiceNowLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L25978) [¶](#ServiceNowLinkedService) ``` type ServiceNowLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; ServiceNow server linked service properties. TypeProperties *[ServiceNowLinkedServiceTypeProperties](#ServiceNowLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` ServiceNowLinkedService - ServiceNow server linked service. #### func (*ServiceNowLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26002) [¶](#ServiceNowLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[ServiceNowLinkedService](#ServiceNowLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type ServiceNowLinkedService. #### func (ServiceNowLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44574) [¶](#ServiceNowLinkedService.MarshalJSON) ``` func (s [ServiceNowLinkedService](#ServiceNowLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ServiceNowLinkedService. #### func (*ServiceNowLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44591) [¶](#ServiceNowLinkedService.UnmarshalJSON) ``` func (s *[ServiceNowLinkedService](#ServiceNowLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ServiceNowLinkedService. #### type [ServiceNowLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26014) [¶](#ServiceNowLinkedServiceTypeProperties) ``` type ServiceNowLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to use. AuthenticationType *[ServiceNowAuthenticationType](#ServiceNowAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The endpoint of the ServiceNow server. (i.e. .service-now.com) Endpoint interface{} `json:"endpoint,omitempty"` // The client id for OAuth2 authentication. ClientID interface{} `json:"clientId,omitempty"` // The client secret for OAuth2 authentication. ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password corresponding to the user name for Basic and OAuth2 authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` // The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. Username interface{} `json:"username,omitempty"` } ``` ServiceNowLinkedServiceTypeProperties - ServiceNow server linked service properties. #### func (ServiceNowLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44636) [¶](#ServiceNowLinkedServiceTypeProperties.MarshalJSON) ``` func (s [ServiceNowLinkedServiceTypeProperties](#ServiceNowLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ServiceNowLinkedServiceTypeProperties. #### func (*ServiceNowLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44652) [¶](#ServiceNowLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[ServiceNowLinkedServiceTypeProperties](#ServiceNowLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ServiceNowLinkedServiceTypeProperties. #### type [ServiceNowObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26049) [¶](#ServiceNowObjectDataset) ``` type ServiceNowObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ServiceNowObjectDataset - ServiceNow server dataset. #### func (*ServiceNowObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26083) [¶](#ServiceNowObjectDataset.GetDataset) added in v0.2.0 ``` func (s *[ServiceNowObjectDataset](#ServiceNowObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ServiceNowObjectDataset. #### func (ServiceNowObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44699) [¶](#ServiceNowObjectDataset.MarshalJSON) ``` func (s [ServiceNowObjectDataset](#ServiceNowObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ServiceNowObjectDataset. #### func (*ServiceNowObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44719) [¶](#ServiceNowObjectDataset.UnmarshalJSON) ``` func (s *[ServiceNowObjectDataset](#ServiceNowObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ServiceNowObjectDataset. #### type [ServiceNowSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26098) [¶](#ServiceNowSource) ``` type ServiceNowSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` ServiceNowSource - A copy activity ServiceNow server source. #### func (*ServiceNowSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26129) [¶](#ServiceNowSource.GetCopySource) added in v0.2.0 ``` func (s *[ServiceNowSource](#ServiceNowSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ServiceNowSource. #### func (*ServiceNowSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26141) [¶](#ServiceNowSource.GetTabularSource) added in v0.2.0 ``` func (s *[ServiceNowSource](#ServiceNowSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type ServiceNowSource. #### func (ServiceNowSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44773) [¶](#ServiceNowSource.MarshalJSON) ``` func (s [ServiceNowSource](#ServiceNowSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ServiceNowSource. #### func (*ServiceNowSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44792) [¶](#ServiceNowSource.UnmarshalJSON) ``` func (s *[ServiceNowSource](#ServiceNowSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ServiceNowSource. #### type [ServicePrincipalCredential](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26155) [¶](#ServicePrincipalCredential) added in v0.2.0 ``` type ServicePrincipalCredential struct { // REQUIRED; Type of credential. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Service Principal credential properties. TypeProperties *[ServicePrincipalCredentialTypeProperties](#ServicePrincipalCredentialTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Credential. Annotations []interface{} `json:"annotations,omitempty"` // Credential description. Description *[string](/builtin#string) `json:"description,omitempty"` } ``` ServicePrincipalCredential - Service principal credential. #### func (*ServicePrincipalCredential) [GetCredential](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26173) [¶](#ServicePrincipalCredential.GetCredential) added in v0.2.0 ``` func (s *[ServicePrincipalCredential](#ServicePrincipalCredential)) GetCredential() *[Credential](#Credential) ``` GetCredential implements the CredentialClassification interface for type ServicePrincipalCredential. #### func (ServicePrincipalCredential) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44843) [¶](#ServicePrincipalCredential.MarshalJSON) added in v0.2.0 ``` func (s [ServicePrincipalCredential](#ServicePrincipalCredential)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ServicePrincipalCredential. #### func (*ServicePrincipalCredential) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44858) [¶](#ServicePrincipalCredential.UnmarshalJSON) added in v0.2.0 ``` func (s *[ServicePrincipalCredential](#ServicePrincipalCredential)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalCredential. #### type [ServicePrincipalCredentialType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1737) [¶](#ServicePrincipalCredentialType) ``` type ServicePrincipalCredentialType [string](/builtin#string) ``` ServicePrincipalCredentialType - All available servicePrincipalCredentialType values. ``` const ( ServicePrincipalCredentialTypeServicePrincipalCert [ServicePrincipalCredentialType](#ServicePrincipalCredentialType) = "ServicePrincipalCert" ServicePrincipalCredentialTypeServicePrincipalKey [ServicePrincipalCredentialType](#ServicePrincipalCredentialType) = "ServicePrincipalKey" ) ``` #### func [PossibleServicePrincipalCredentialTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1745) [¶](#PossibleServicePrincipalCredentialTypeValues) ``` func PossibleServicePrincipalCredentialTypeValues() [][ServicePrincipalCredentialType](#ServicePrincipalCredentialType) ``` PossibleServicePrincipalCredentialTypeValues returns the possible values for the ServicePrincipalCredentialType const type. #### type [ServicePrincipalCredentialTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26183) [¶](#ServicePrincipalCredentialTypeProperties) added in v0.2.0 ``` type ServicePrincipalCredentialTypeProperties struct { // The app ID of the service principal used to authenticate ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate. ServicePrincipalKey *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"servicePrincipalKey,omitempty"` // The ID of the tenant to which the service principal belongs Tenant interface{} `json:"tenant,omitempty"` } ``` ServicePrincipalCredentialTypeProperties - Service Principal credential type properties. #### func (ServicePrincipalCredentialTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44897) [¶](#ServicePrincipalCredentialTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [ServicePrincipalCredentialTypeProperties](#ServicePrincipalCredentialTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ServicePrincipalCredentialTypeProperties. #### func (*ServicePrincipalCredentialTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44906) [¶](#ServicePrincipalCredentialTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[ServicePrincipalCredentialTypeProperties](#ServicePrincipalCredentialTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalCredentialTypeProperties. #### type [SetVariableActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26195) [¶](#SetVariableActivity) ``` type SetVariableActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Set Variable activity properties. TypeProperties *[SetVariableActivityTypeProperties](#SetVariableActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` SetVariableActivity - Set value for a Variable. #### func (*SetVariableActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26219) [¶](#SetVariableActivity.GetActivity) added in v0.2.0 ``` func (s *[SetVariableActivity](#SetVariableActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type SetVariableActivity. #### func (*SetVariableActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26231) [¶](#SetVariableActivity.GetControlActivity) added in v0.2.0 ``` func (s *[SetVariableActivity](#SetVariableActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type SetVariableActivity. #### func (SetVariableActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44932) [¶](#SetVariableActivity.MarshalJSON) ``` func (s [SetVariableActivity](#SetVariableActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SetVariableActivity. #### func (*SetVariableActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44949) [¶](#SetVariableActivity.UnmarshalJSON) ``` func (s *[SetVariableActivity](#SetVariableActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SetVariableActivity. #### type [SetVariableActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26243) [¶](#SetVariableActivityTypeProperties) ``` type SetVariableActivityTypeProperties struct { // Value to be set. Could be a static value or Expression Value interface{} `json:"value,omitempty"` // Name of the variable whose value needs to be set. VariableName *[string](/builtin#string) `json:"variableName,omitempty"` } ``` SetVariableActivityTypeProperties - SetVariable activity properties. #### func (SetVariableActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L44994) [¶](#SetVariableActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SetVariableActivityTypeProperties](#SetVariableActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SetVariableActivityTypeProperties. #### func (*SetVariableActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45002) [¶](#SetVariableActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SetVariableActivityTypeProperties](#SetVariableActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SetVariableActivityTypeProperties. #### type [SftpAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1753) [¶](#SftpAuthenticationType) ``` type SftpAuthenticationType [string](/builtin#string) ``` SftpAuthenticationType - The authentication type to be used to connect to the FTP server. ``` const ( SftpAuthenticationTypeBasic [SftpAuthenticationType](#SftpAuthenticationType) = "Basic" SftpAuthenticationTypeMultiFactor [SftpAuthenticationType](#SftpAuthenticationType) = "MultiFactor" SftpAuthenticationTypeSSHPublicKey [SftpAuthenticationType](#SftpAuthenticationType) = "SshPublicKey" ) ``` #### func [PossibleSftpAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1762) [¶](#PossibleSftpAuthenticationTypeValues) ``` func PossibleSftpAuthenticationTypeValues() [][SftpAuthenticationType](#SftpAuthenticationType) ``` PossibleSftpAuthenticationTypeValues returns the possible values for the SftpAuthenticationType const type. #### type [SftpLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26252) [¶](#SftpLocation) ``` type SftpLocation struct { // REQUIRED; Type of dataset storage location. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specify the file name of dataset. Type: string (or Expression with resultType string). FileName interface{} `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) FolderPath interface{} `json:"folderPath,omitempty"` } ``` SftpLocation - The location of SFTP dataset. #### func (*SftpLocation) [GetDatasetLocation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26267) [¶](#SftpLocation.GetDatasetLocation) added in v0.2.0 ``` func (s *[SftpLocation](#SftpLocation)) GetDatasetLocation() *[DatasetLocation](#DatasetLocation) ``` GetDatasetLocation implements the DatasetLocationClassification interface for type SftpLocation. #### func (SftpLocation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45025) [¶](#SftpLocation.MarshalJSON) ``` func (s [SftpLocation](#SftpLocation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SftpLocation. #### func (*SftpLocation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45039) [¶](#SftpLocation.UnmarshalJSON) added in v0.2.0 ``` func (s *[SftpLocation](#SftpLocation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SftpLocation. #### type [SftpReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26277) [¶](#SftpReadSettings) ``` type SftpReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). DisableChunking interface{} `json:"disableChunking,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *[bool](/builtin#bool) `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). FileListPath interface{} `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). Recursive interface{} `json:"recursive,omitempty"` // Sftp wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName interface{} `json:"wildcardFileName,omitempty"` // Sftp wildcardFolderPath. Type: string (or Expression with resultType string). WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` } ``` SftpReadSettings - Sftp read settings. #### func (*SftpReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26325) [¶](#SftpReadSettings.GetStoreReadSettings) added in v0.2.0 ``` func (s *[SftpReadSettings](#SftpReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type SftpReadSettings. #### func (SftpReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45075) [¶](#SftpReadSettings.MarshalJSON) ``` func (s [SftpReadSettings](#SftpReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SftpReadSettings. #### func (*SftpReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45099) [¶](#SftpReadSettings.UnmarshalJSON) ``` func (s *[SftpReadSettings](#SftpReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SftpReadSettings. #### type [SftpServerLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26335) [¶](#SftpServerLinkedService) ``` type SftpServerLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Properties specific to this linked service type. TypeProperties *[SftpServerLinkedServiceTypeProperties](#SftpServerLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SftpServerLinkedService - A linked service for an SSH File Transfer Protocol (SFTP) server. #### func (*SftpServerLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26359) [¶](#SftpServerLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SftpServerLinkedService](#SftpServerLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SftpServerLinkedService. #### func (SftpServerLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45165) [¶](#SftpServerLinkedService.MarshalJSON) ``` func (s [SftpServerLinkedService](#SftpServerLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SftpServerLinkedService. #### func (*SftpServerLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45182) [¶](#SftpServerLinkedService.UnmarshalJSON) ``` func (s *[SftpServerLinkedService](#SftpServerLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SftpServerLinkedService. #### type [SftpServerLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26371) [¶](#SftpServerLinkedServiceTypeProperties) ``` type SftpServerLinkedServiceTypeProperties struct { // REQUIRED; The SFTP server host name. Type: string (or Expression with resultType string). Host interface{} `json:"host,omitempty"` // The authentication type to be used to connect to the FTP server. AuthenticationType *[SftpAuthenticationType](#SftpAuthenticationType) `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. // Type: string (or Expression with resultType string). HostKeyFingerprint interface{} `json:"hostKeyFingerprint,omitempty"` // The password to decrypt the SSH private key if the SSH private key is encrypted. PassPhrase [SecretBaseClassification](#SecretBaseClassification) `json:"passPhrase,omitempty"` // Password to logon the SFTP server for Basic authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The TCP port number that the SFTP server uses to listen for client connections. Default value is 22. Type: integer (or // Expression with resultType integer), minimum: 0. Port interface{} `json:"port,omitempty"` // Base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy with SshPublicKey authentication, // either PrivateKeyPath or PrivateKeyContent should be specified. SSH // private key should be OpenSSH format. PrivateKeyContent [SecretBaseClassification](#SecretBaseClassification) `json:"privateKeyContent,omitempty"` // The SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with // SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should // be specified. SSH private key should be OpenSSH format. Type: string (or Expression with resultType string). PrivateKeyPath interface{} `json:"privateKeyPath,omitempty"` // If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). SkipHostKeyValidation interface{} `json:"skipHostKeyValidation,omitempty"` // The username used to log on to the SFTP server. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` SftpServerLinkedServiceTypeProperties - Properties specific to this linked service type. #### func (SftpServerLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45227) [¶](#SftpServerLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SftpServerLinkedServiceTypeProperties](#SftpServerLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SftpServerLinkedServiceTypeProperties. #### func (*SftpServerLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45244) [¶](#SftpServerLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SftpServerLinkedServiceTypeProperties](#SftpServerLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SftpServerLinkedServiceTypeProperties. #### type [SftpWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26414) [¶](#SftpWriteSettings) ``` type SftpWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Specifies the timeout for writing each chunk to SFTP server. Default value: 01:00:00 (one hour). Type: string (or Expression // with resultType string). OperationTimeout interface{} `json:"operationTimeout,omitempty"` // Upload to temporary file(s) and rename. Disable this option if your SFTP server doesn't support rename operation. Type: // boolean (or Expression with resultType boolean). UseTempFileRename interface{} `json:"useTempFileRename,omitempty"` } ``` SftpWriteSettings - Sftp write settings. #### func (*SftpWriteSettings) [GetStoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26440) [¶](#SftpWriteSettings.GetStoreWriteSettings) added in v0.2.0 ``` func (s *[SftpWriteSettings](#SftpWriteSettings)) GetStoreWriteSettings() *[StoreWriteSettings](#StoreWriteSettings) ``` GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type SftpWriteSettings. #### func (SftpWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45294) [¶](#SftpWriteSettings.MarshalJSON) ``` func (s [SftpWriteSettings](#SftpWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SftpWriteSettings. #### func (*SftpWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45311) [¶](#SftpWriteSettings.UnmarshalJSON) ``` func (s *[SftpWriteSettings](#SftpWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SftpWriteSettings. #### type [SharePointOnlineListDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26451) [¶](#SharePointOnlineListDatasetTypeProperties) ``` type SharePointOnlineListDatasetTypeProperties struct { // The name of the SharePoint Online list. Type: string (or Expression with resultType string). ListName interface{} `json:"listName,omitempty"` } ``` SharePointOnlineListDatasetTypeProperties - Sharepoint online list dataset properties. #### func (SharePointOnlineListDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45356) [¶](#SharePointOnlineListDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SharePointOnlineListDatasetTypeProperties](#SharePointOnlineListDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListDatasetTypeProperties. #### func (*SharePointOnlineListDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45363) [¶](#SharePointOnlineListDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SharePointOnlineListDatasetTypeProperties](#SharePointOnlineListDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SharePointOnlineListDatasetTypeProperties. #### type [SharePointOnlineListLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26457) [¶](#SharePointOnlineListLinkedService) ``` type SharePointOnlineListLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; SharePoint Online List linked service properties. TypeProperties *[SharePointOnlineListLinkedServiceTypeProperties](#SharePointOnlineListLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SharePointOnlineListLinkedService - SharePoint Online List linked service. #### func (*SharePointOnlineListLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26481) [¶](#SharePointOnlineListLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SharePointOnlineListLinkedService](#SharePointOnlineListLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SharePointOnlineListLinkedService. #### func (SharePointOnlineListLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45383) [¶](#SharePointOnlineListLinkedService.MarshalJSON) ``` func (s [SharePointOnlineListLinkedService](#SharePointOnlineListLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListLinkedService. #### func (*SharePointOnlineListLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45400) [¶](#SharePointOnlineListLinkedService.UnmarshalJSON) ``` func (s *[SharePointOnlineListLinkedService](#SharePointOnlineListLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SharePointOnlineListLinkedService. #### type [SharePointOnlineListLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26493) [¶](#SharePointOnlineListLinkedServiceTypeProperties) ``` type SharePointOnlineListLinkedServiceTypeProperties struct { // REQUIRED; The application (client) ID of your application registered in Azure Active Directory. Make sure to grant SharePoint // site permission to this application. Type: string (or Expression with resultType // string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` // REQUIRED; The client secret of your application registered in Azure Active Directory. Type: string (or Expression with // resultType string). ServicePrincipalKey [SecretBaseClassification](#SecretBaseClassification) `json:"servicePrincipalKey,omitempty"` // REQUIRED; The URL of the SharePoint Online site. For example, <https://contoso.sharepoint.com/sites/siteName>. Type: string // (or Expression with resultType string). SiteURL interface{} `json:"siteUrl,omitempty"` // REQUIRED; The tenant ID under which your application resides. You can find it from Azure portal Active Directory overview // page. Type: string (or Expression with resultType string). TenantID interface{} `json:"tenantId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` SharePointOnlineListLinkedServiceTypeProperties - SharePoint Online List linked service properties. #### func (SharePointOnlineListLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45445) [¶](#SharePointOnlineListLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SharePointOnlineListLinkedServiceTypeProperties](#SharePointOnlineListLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListLinkedServiceTypeProperties. #### func (*SharePointOnlineListLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45456) [¶](#SharePointOnlineListLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SharePointOnlineListLinkedServiceTypeProperties](#SharePointOnlineListLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SharePointOnlineListLinkedServiceTypeProperties. #### type [SharePointOnlineListResourceDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26517) [¶](#SharePointOnlineListResourceDataset) ``` type SharePointOnlineListResourceDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Sharepoint online list dataset properties. TypeProperties *[SharePointOnlineListDatasetTypeProperties](#SharePointOnlineListDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SharePointOnlineListResourceDataset - The sharepoint online list resource dataset. #### func (*SharePointOnlineListResourceDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26551) [¶](#SharePointOnlineListResourceDataset.GetDataset) added in v0.2.0 ``` func (s *[SharePointOnlineListResourceDataset](#SharePointOnlineListResourceDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SharePointOnlineListResourceDataset. #### func (SharePointOnlineListResourceDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45488) [¶](#SharePointOnlineListResourceDataset.MarshalJSON) ``` func (s [SharePointOnlineListResourceDataset](#SharePointOnlineListResourceDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListResourceDataset. #### func (*SharePointOnlineListResourceDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45508) [¶](#SharePointOnlineListResourceDataset.UnmarshalJSON) ``` func (s *[SharePointOnlineListResourceDataset](#SharePointOnlineListResourceDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SharePointOnlineListResourceDataset. #### type [SharePointOnlineListSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26566) [¶](#SharePointOnlineListSource) ``` type SharePointOnlineListSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The wait time to get a response from SharePoint Online. Default value is 5 minutes (00:05:00). Type: string (or Expression // with resultType string), pattern: // ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The OData query to filter the data in SharePoint Online list. For example, "$top=1". Type: string (or Expression with resultType // string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SharePointOnlineListSource - A copy activity source for sharePoint online list source. #### func (*SharePointOnlineListSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26596) [¶](#SharePointOnlineListSource.GetCopySource) added in v0.2.0 ``` func (s *[SharePointOnlineListSource](#SharePointOnlineListSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SharePointOnlineListSource. #### func (SharePointOnlineListSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45562) [¶](#SharePointOnlineListSource.MarshalJSON) ``` func (s [SharePointOnlineListSource](#SharePointOnlineListSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListSource. #### func (*SharePointOnlineListSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45580) [¶](#SharePointOnlineListSource.UnmarshalJSON) ``` func (s *[SharePointOnlineListSource](#SharePointOnlineListSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SharePointOnlineListSource. #### type [ShopifyLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26608) [¶](#ShopifyLinkedService) ``` type ShopifyLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Shopify Service linked service properties. TypeProperties *[ShopifyLinkedServiceTypeProperties](#ShopifyLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` ShopifyLinkedService - Shopify Service linked service. #### func (*ShopifyLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26632) [¶](#ShopifyLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[ShopifyLinkedService](#ShopifyLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type ShopifyLinkedService. #### func (ShopifyLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45628) [¶](#ShopifyLinkedService.MarshalJSON) ``` func (s [ShopifyLinkedService](#ShopifyLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ShopifyLinkedService. #### func (*ShopifyLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45645) [¶](#ShopifyLinkedService.UnmarshalJSON) ``` func (s *[ShopifyLinkedService](#ShopifyLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ShopifyLinkedService. #### type [ShopifyLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26644) [¶](#ShopifyLinkedServiceTypeProperties) ``` type ShopifyLinkedServiceTypeProperties struct { // REQUIRED; The endpoint of the Shopify server. (i.e. mystore.myshopify.com) Host interface{} `json:"host,omitempty"` // The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. AccessToken [SecretBaseClassification](#SecretBaseClassification) `json:"accessToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` ShopifyLinkedServiceTypeProperties - Shopify Service linked service properties. #### func (ShopifyLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45690) [¶](#ShopifyLinkedServiceTypeProperties.MarshalJSON) ``` func (s [ShopifyLinkedServiceTypeProperties](#ShopifyLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ShopifyLinkedServiceTypeProperties. #### func (*ShopifyLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45702) [¶](#ShopifyLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[ShopifyLinkedServiceTypeProperties](#ShopifyLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ShopifyLinkedServiceTypeProperties. #### type [ShopifyObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26667) [¶](#ShopifyObjectDataset) ``` type ShopifyObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ShopifyObjectDataset - Shopify Service dataset. #### func (*ShopifyObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26701) [¶](#ShopifyObjectDataset.GetDataset) added in v0.2.0 ``` func (s *[ShopifyObjectDataset](#ShopifyObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ShopifyObjectDataset. #### func (ShopifyObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45737) [¶](#ShopifyObjectDataset.MarshalJSON) ``` func (s [ShopifyObjectDataset](#ShopifyObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ShopifyObjectDataset. #### func (*ShopifyObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45757) [¶](#ShopifyObjectDataset.UnmarshalJSON) ``` func (s *[ShopifyObjectDataset](#ShopifyObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ShopifyObjectDataset. #### type [ShopifySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26716) [¶](#ShopifySource) ``` type ShopifySource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` ShopifySource - A copy activity Shopify Service source. #### func (*ShopifySource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26747) [¶](#ShopifySource.GetCopySource) added in v0.2.0 ``` func (s *[ShopifySource](#ShopifySource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ShopifySource. #### func (*ShopifySource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26759) [¶](#ShopifySource.GetTabularSource) added in v0.2.0 ``` func (s *[ShopifySource](#ShopifySource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type ShopifySource. #### func (ShopifySource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45811) [¶](#ShopifySource.MarshalJSON) ``` func (s [ShopifySource](#ShopifySource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ShopifySource. #### func (*ShopifySource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45830) [¶](#ShopifySource.UnmarshalJSON) ``` func (s *[ShopifySource](#ShopifySource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ShopifySource. #### type [SkipErrorFile](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26773) [¶](#SkipErrorFile) ``` type SkipErrorFile struct { // Skip if source/sink file changed by other concurrent write. Default is false. Type: boolean (or Expression with resultType // boolean). DataInconsistency interface{} `json:"dataInconsistency,omitempty"` // Skip if file is deleted by other client during copy. Default is true. Type: boolean (or Expression with resultType boolean). FileMissing interface{} `json:"fileMissing,omitempty"` } ``` SkipErrorFile - Skip error file. #### func (SkipErrorFile) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45881) [¶](#SkipErrorFile.MarshalJSON) added in v1.3.0 ``` func (s [SkipErrorFile](#SkipErrorFile)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SkipErrorFile. #### func (*SkipErrorFile) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45889) [¶](#SkipErrorFile.UnmarshalJSON) added in v1.3.0 ``` func (s *[SkipErrorFile](#SkipErrorFile)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SkipErrorFile. #### type [SmartsheetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26783) [¶](#SmartsheetLinkedService) added in v0.3.0 ``` type SmartsheetLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Smartsheet linked service properties. TypeProperties *[SmartsheetLinkedServiceTypeProperties](#SmartsheetLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SmartsheetLinkedService - Linked service for Smartsheet. #### func (*SmartsheetLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26807) [¶](#SmartsheetLinkedService.GetLinkedService) added in v0.3.0 ``` func (s *[SmartsheetLinkedService](#SmartsheetLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SmartsheetLinkedService. #### func (SmartsheetLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45912) [¶](#SmartsheetLinkedService.MarshalJSON) added in v0.3.0 ``` func (s [SmartsheetLinkedService](#SmartsheetLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SmartsheetLinkedService. #### func (*SmartsheetLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45929) [¶](#SmartsheetLinkedService.UnmarshalJSON) added in v0.3.0 ``` func (s *[SmartsheetLinkedService](#SmartsheetLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SmartsheetLinkedService. #### type [SmartsheetLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26819) [¶](#SmartsheetLinkedServiceTypeProperties) added in v0.3.0 ``` type SmartsheetLinkedServiceTypeProperties struct { // REQUIRED; The api token for the Smartsheet source. APIToken [SecretBaseClassification](#SecretBaseClassification) `json:"apiToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } ``` SmartsheetLinkedServiceTypeProperties - Smartsheet linked service type properties. #### func (SmartsheetLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45974) [¶](#SmartsheetLinkedServiceTypeProperties.MarshalJSON) added in v0.3.0 ``` func (s [SmartsheetLinkedServiceTypeProperties](#SmartsheetLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SmartsheetLinkedServiceTypeProperties. #### func (*SmartsheetLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L45982) [¶](#SmartsheetLinkedServiceTypeProperties.UnmarshalJSON) added in v0.3.0 ``` func (s *[SmartsheetLinkedServiceTypeProperties](#SmartsheetLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SmartsheetLinkedServiceTypeProperties. #### type [SnowflakeDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26829) [¶](#SnowflakeDataset) ``` type SnowflakeDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Snowflake dataset properties. TypeProperties *[SnowflakeDatasetTypeProperties](#SnowflakeDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` SnowflakeDataset - The snowflake dataset. #### func (*SnowflakeDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26863) [¶](#SnowflakeDataset.GetDataset) added in v0.2.0 ``` func (s *[SnowflakeDataset](#SnowflakeDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SnowflakeDataset. #### func (SnowflakeDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46005) [¶](#SnowflakeDataset.MarshalJSON) ``` func (s [SnowflakeDataset](#SnowflakeDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SnowflakeDataset. #### func (*SnowflakeDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46025) [¶](#SnowflakeDataset.UnmarshalJSON) ``` func (s *[SnowflakeDataset](#SnowflakeDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeDataset. #### type [SnowflakeDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26878) [¶](#SnowflakeDatasetTypeProperties) ``` type SnowflakeDatasetTypeProperties struct { // The schema name of the Snowflake database. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Snowflake database. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } ``` SnowflakeDatasetTypeProperties - Snowflake dataset properties. #### func (SnowflakeDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46079) [¶](#SnowflakeDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SnowflakeDatasetTypeProperties](#SnowflakeDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SnowflakeDatasetTypeProperties. #### func (*SnowflakeDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46087) [¶](#SnowflakeDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SnowflakeDatasetTypeProperties](#SnowflakeDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeDatasetTypeProperties. #### type [SnowflakeExportCopyCommand](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26887) [¶](#SnowflakeExportCopyCommand) ``` type SnowflakeExportCopyCommand struct { // REQUIRED; The export setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) // (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE // FORMAT": "MM/DD/YYYY", "TIMEFORMAT": "'HH24:MI:SS.FF'" } AdditionalCopyOptions map[[string](/builtin#string)]interface{} `json:"additionalCopyOptions,omitempty"` // Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) // (or Expression with resultType object). Example: "additionalFormatOptions": { // "OVERWRITE": "TRUE", "MAXFILESIZE": "'FALSE'" } AdditionalFormatOptions map[[string](/builtin#string)]interface{} `json:"additionalFormatOptions,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` SnowflakeExportCopyCommand - Snowflake export command settings. #### func (*SnowflakeExportCopyCommand) [GetExportSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26906) [¶](#SnowflakeExportCopyCommand.GetExportSettings) added in v0.2.0 ``` func (s *[SnowflakeExportCopyCommand](#SnowflakeExportCopyCommand)) GetExportSettings() *[ExportSettings](#ExportSettings) ``` GetExportSettings implements the ExportSettingsClassification interface for type SnowflakeExportCopyCommand. #### func (SnowflakeExportCopyCommand) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46110) [¶](#SnowflakeExportCopyCommand.MarshalJSON) ``` func (s [SnowflakeExportCopyCommand](#SnowflakeExportCopyCommand)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SnowflakeExportCopyCommand. #### func (*SnowflakeExportCopyCommand) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46124) [¶](#SnowflakeExportCopyCommand.UnmarshalJSON) ``` func (s *[SnowflakeExportCopyCommand](#SnowflakeExportCopyCommand)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeExportCopyCommand. #### type [SnowflakeImportCopyCommand](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26914) [¶](#SnowflakeImportCopyCommand) ``` type SnowflakeImportCopyCommand struct { // REQUIRED; The import setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) // (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE // FORMAT": "MM/DD/YYYY", "TIMEFORMAT": "'HH24:MI:SS.FF'" } AdditionalCopyOptions map[[string](/builtin#string)]interface{} `json:"additionalCopyOptions,omitempty"` // Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) // (or Expression with resultType object). Example: "additionalFormatOptions": { // "FORCE": "TRUE", "LOADUNCERTAINFILES": "'FALSE'" } AdditionalFormatOptions map[[string](/builtin#string)]interface{} `json:"additionalFormatOptions,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} } ``` SnowflakeImportCopyCommand - Snowflake import command settings. #### func (*SnowflakeImportCopyCommand) [GetImportSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26933) [¶](#SnowflakeImportCopyCommand.GetImportSettings) added in v0.2.0 ``` func (s *[SnowflakeImportCopyCommand](#SnowflakeImportCopyCommand)) GetImportSettings() *[ImportSettings](#ImportSettings) ``` GetImportSettings implements the ImportSettingsClassification interface for type SnowflakeImportCopyCommand. #### func (SnowflakeImportCopyCommand) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46160) [¶](#SnowflakeImportCopyCommand.MarshalJSON) ``` func (s [SnowflakeImportCopyCommand](#SnowflakeImportCopyCommand)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SnowflakeImportCopyCommand. #### func (*SnowflakeImportCopyCommand) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46174) [¶](#SnowflakeImportCopyCommand.UnmarshalJSON) ``` func (s *[SnowflakeImportCopyCommand](#SnowflakeImportCopyCommand)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeImportCopyCommand. #### type [SnowflakeLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26941) [¶](#SnowflakeLinkedService) ``` type SnowflakeLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Snowflake linked service properties. TypeProperties *[SnowflakeLinkedServiceTypeProperties](#SnowflakeLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SnowflakeLinkedService - Snowflake linked service. #### func (*SnowflakeLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26965) [¶](#SnowflakeLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SnowflakeLinkedService](#SnowflakeLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SnowflakeLinkedService. #### func (SnowflakeLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46210) [¶](#SnowflakeLinkedService.MarshalJSON) ``` func (s [SnowflakeLinkedService](#SnowflakeLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SnowflakeLinkedService. #### func (*SnowflakeLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46227) [¶](#SnowflakeLinkedService.UnmarshalJSON) ``` func (s *[SnowflakeLinkedService](#SnowflakeLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeLinkedService. #### type [SnowflakeLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26977) [¶](#SnowflakeLinkedServiceTypeProperties) ``` type SnowflakeLinkedServiceTypeProperties struct { // REQUIRED; The connection string of snowflake. Type: string, SecureString. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"password,omitempty"` } ``` SnowflakeLinkedServiceTypeProperties - Snowflake linked service properties. #### func (SnowflakeLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46272) [¶](#SnowflakeLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SnowflakeLinkedServiceTypeProperties](#SnowflakeLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SnowflakeLinkedServiceTypeProperties. #### func (*SnowflakeLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46281) [¶](#SnowflakeLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SnowflakeLinkedServiceTypeProperties](#SnowflakeLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeLinkedServiceTypeProperties. #### type [SnowflakeSink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L26990) [¶](#SnowflakeSink) ``` type SnowflakeSink struct { // REQUIRED; Copy sink type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Snowflake import settings. ImportSettings *[SnowflakeImportCopyCommand](#SnowflakeImportCopyCommand) `json:"importSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). PreCopyScript interface{} `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` } ``` SnowflakeSink - A copy activity snowflake sink. #### func (*SnowflakeSink) [GetCopySink](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27023) [¶](#SnowflakeSink.GetCopySink) added in v0.2.0 ``` func (s *[SnowflakeSink](#SnowflakeSink)) GetCopySink() *[CopySink](#CopySink) ``` GetCopySink implements the CopySinkClassification interface for type SnowflakeSink. #### func (SnowflakeSink) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46307) [¶](#SnowflakeSink.MarshalJSON) ``` func (s [SnowflakeSink](#SnowflakeSink)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SnowflakeSink. #### func (*SnowflakeSink) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46327) [¶](#SnowflakeSink.UnmarshalJSON) ``` func (s *[SnowflakeSink](#SnowflakeSink)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeSink. #### type [SnowflakeSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27037) [¶](#SnowflakeSource) ``` type SnowflakeSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Snowflake export settings. ExportSettings *[SnowflakeExportCopyCommand](#SnowflakeExportCopyCommand) `json:"exportSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Snowflake Sql query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SnowflakeSource - A copy activity snowflake source. #### func (*SnowflakeSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27064) [¶](#SnowflakeSource.GetCopySource) added in v0.2.0 ``` func (s *[SnowflakeSource](#SnowflakeSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SnowflakeSource. #### func (SnowflakeSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46381) [¶](#SnowflakeSource.MarshalJSON) ``` func (s [SnowflakeSource](#SnowflakeSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SnowflakeSource. #### func (*SnowflakeSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46399) [¶](#SnowflakeSource.UnmarshalJSON) ``` func (s *[SnowflakeSource](#SnowflakeSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeSource. #### type [SparkAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1771) [¶](#SparkAuthenticationType) ``` type SparkAuthenticationType [string](/builtin#string) ``` SparkAuthenticationType - The authentication method used to access the Spark server. ``` const ( SparkAuthenticationTypeAnonymous [SparkAuthenticationType](#SparkAuthenticationType) = "Anonymous" SparkAuthenticationTypeUsername [SparkAuthenticationType](#SparkAuthenticationType) = "Username" SparkAuthenticationTypeUsernameAndPassword [SparkAuthenticationType](#SparkAuthenticationType) = "UsernameAndPassword" SparkAuthenticationTypeWindowsAzureHDInsightService [SparkAuthenticationType](#SparkAuthenticationType) = "WindowsAzureHDInsightService" ) ``` #### func [PossibleSparkAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1781) [¶](#PossibleSparkAuthenticationTypeValues) ``` func PossibleSparkAuthenticationTypeValues() [][SparkAuthenticationType](#SparkAuthenticationType) ``` PossibleSparkAuthenticationTypeValues returns the possible values for the SparkAuthenticationType const type. #### type [SparkDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27076) [¶](#SparkDatasetTypeProperties) ``` type SparkDatasetTypeProperties struct { // The schema name of the Spark. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Spark. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` SparkDatasetTypeProperties - Spark Properties #### func (SparkDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46447) [¶](#SparkDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SparkDatasetTypeProperties](#SparkDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SparkDatasetTypeProperties. #### func (*SparkDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46456) [¶](#SparkDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SparkDatasetTypeProperties](#SparkDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SparkDatasetTypeProperties. #### type [SparkJobReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1791) [¶](#SparkJobReferenceType) added in v1.3.0 ``` type SparkJobReferenceType [string](/builtin#string) ``` SparkJobReferenceType - Synapse spark job reference type. ``` const ( SparkJobReferenceTypeSparkJobDefinitionReference [SparkJobReferenceType](#SparkJobReferenceType) = "SparkJobDefinitionReference" ) ``` #### func [PossibleSparkJobReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1798) [¶](#PossibleSparkJobReferenceTypeValues) added in v1.3.0 ``` func PossibleSparkJobReferenceTypeValues() [][SparkJobReferenceType](#SparkJobReferenceType) ``` PossibleSparkJobReferenceTypeValues returns the possible values for the SparkJobReferenceType const type. #### type [SparkLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27088) [¶](#SparkLinkedService) ``` type SparkLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Spark Server linked service properties. TypeProperties *[SparkLinkedServiceTypeProperties](#SparkLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SparkLinkedService - Spark Server linked service. #### func (*SparkLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27112) [¶](#SparkLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SparkLinkedService](#SparkLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SparkLinkedService. #### func (SparkLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46482) [¶](#SparkLinkedService.MarshalJSON) ``` func (s [SparkLinkedService](#SparkLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SparkLinkedService. #### func (*SparkLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46499) [¶](#SparkLinkedService.UnmarshalJSON) ``` func (s *[SparkLinkedService](#SparkLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SparkLinkedService. #### type [SparkLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27124) [¶](#SparkLinkedServiceTypeProperties) ``` type SparkLinkedServiceTypeProperties struct { // REQUIRED; The authentication method used to access the Spark server. AuthenticationType *[SparkAuthenticationType](#SparkAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; IP address or host name of the Spark server Host interface{} `json:"host,omitempty"` // REQUIRED; The TCP port that the Spark server uses to listen for client connections. Port interface{} `json:"port,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. EnableSSL interface{} `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The partial URL corresponding to the Spark server. HTTPPath interface{} `json:"httpPath,omitempty"` // The password corresponding to the user name that you provided in the Username field Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The type of Spark server. ServerType *[SparkServerType](#SparkServerType) `json:"serverType,omitempty"` // The transport protocol to use in the Thrift layer. ThriftTransportProtocol *[SparkThriftTransportProtocol](#SparkThriftTransportProtocol) `json:"thriftTransportProtocol,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` // The user name that you use to access Spark Server. Username interface{} `json:"username,omitempty"` } ``` SparkLinkedServiceTypeProperties - Spark Server linked service properties. #### func (SparkLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46544) [¶](#SparkLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SparkLinkedServiceTypeProperties](#SparkLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SparkLinkedServiceTypeProperties. #### func (*SparkLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46564) [¶](#SparkLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SparkLinkedServiceTypeProperties](#SparkLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SparkLinkedServiceTypeProperties. #### type [SparkObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27174) [¶](#SparkObjectDataset) ``` type SparkObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[SparkDatasetTypeProperties](#SparkDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SparkObjectDataset - Spark Server dataset. #### func (*SparkObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27208) [¶](#SparkObjectDataset.GetDataset) added in v0.2.0 ``` func (s *[SparkObjectDataset](#SparkObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SparkObjectDataset. #### func (SparkObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46623) [¶](#SparkObjectDataset.MarshalJSON) ``` func (s [SparkObjectDataset](#SparkObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SparkObjectDataset. #### func (*SparkObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46643) [¶](#SparkObjectDataset.UnmarshalJSON) ``` func (s *[SparkObjectDataset](#SparkObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SparkObjectDataset. #### type [SparkServerType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1805) [¶](#SparkServerType) ``` type SparkServerType [string](/builtin#string) ``` SparkServerType - The type of Spark server. ``` const ( SparkServerTypeSharkServer [SparkServerType](#SparkServerType) = "SharkServer" SparkServerTypeSharkServer2 [SparkServerType](#SparkServerType) = "SharkServer2" SparkServerTypeSparkThriftServer [SparkServerType](#SparkServerType) = "SparkThriftServer" ) ``` #### func [PossibleSparkServerTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1814) [¶](#PossibleSparkServerTypeValues) ``` func PossibleSparkServerTypeValues() [][SparkServerType](#SparkServerType) ``` PossibleSparkServerTypeValues returns the possible values for the SparkServerType const type. #### type [SparkSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27223) [¶](#SparkSource) ``` type SparkSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SparkSource - A copy activity Spark Server source. #### func (*SparkSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27254) [¶](#SparkSource.GetCopySource) added in v0.2.0 ``` func (s *[SparkSource](#SparkSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SparkSource. #### func (*SparkSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27266) [¶](#SparkSource.GetTabularSource) added in v0.2.0 ``` func (s *[SparkSource](#SparkSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SparkSource. #### func (SparkSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46697) [¶](#SparkSource.MarshalJSON) ``` func (s [SparkSource](#SparkSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SparkSource. #### func (*SparkSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46716) [¶](#SparkSource.UnmarshalJSON) ``` func (s *[SparkSource](#SparkSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SparkSource. #### type [SparkThriftTransportProtocol](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1823) [¶](#SparkThriftTransportProtocol) ``` type SparkThriftTransportProtocol [string](/builtin#string) ``` SparkThriftTransportProtocol - The transport protocol to use in the Thrift layer. ``` const ( SparkThriftTransportProtocolBinary [SparkThriftTransportProtocol](#SparkThriftTransportProtocol) = "Binary" SparkThriftTransportProtocolHTTP [SparkThriftTransportProtocol](#SparkThriftTransportProtocol) = "HTTP " SparkThriftTransportProtocolSASL [SparkThriftTransportProtocol](#SparkThriftTransportProtocol) = "SASL" ) ``` #### func [PossibleSparkThriftTransportProtocolValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1832) [¶](#PossibleSparkThriftTransportProtocolValues) ``` func PossibleSparkThriftTransportProtocolValues() [][SparkThriftTransportProtocol](#SparkThriftTransportProtocol) ``` PossibleSparkThriftTransportProtocolValues returns the possible values for the SparkThriftTransportProtocol const type. #### type [SquareLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27280) [¶](#SquareLinkedService) ``` type SquareLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Square Service linked service properties. TypeProperties *[SquareLinkedServiceTypeProperties](#SquareLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SquareLinkedService - Square Service linked service. #### func (*SquareLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27304) [¶](#SquareLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SquareLinkedService](#SquareLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SquareLinkedService. #### func (SquareLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46767) [¶](#SquareLinkedService.MarshalJSON) ``` func (s [SquareLinkedService](#SquareLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SquareLinkedService. #### func (*SquareLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46784) [¶](#SquareLinkedService.UnmarshalJSON) ``` func (s *[SquareLinkedService](#SquareLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SquareLinkedService. #### type [SquareLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27316) [¶](#SquareLinkedServiceTypeProperties) ``` type SquareLinkedServiceTypeProperties struct { // The client ID associated with your Square application. ClientID interface{} `json:"clientId,omitempty"` // The client secret associated with your Square application. ClientSecret [SecretBaseClassification](#SecretBaseClassification) `json:"clientSecret,omitempty"` // Properties used to connect to Square. It is mutually exclusive with any other properties in the linked service. Type: object. ConnectionProperties interface{} `json:"connectionProperties,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The URL of the Square instance. (i.e. mystore.mysquare.com) Host interface{} `json:"host,omitempty"` // The redirect URL assigned in the Square application dashboard. (i.e. <http://localhost:2500>) RedirectURI interface{} `json:"redirectUri,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` SquareLinkedServiceTypeProperties - Square Service linked service properties. #### func (SquareLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46829) [¶](#SquareLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SquareLinkedServiceTypeProperties](#SquareLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SquareLinkedServiceTypeProperties. #### func (*SquareLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46844) [¶](#SquareLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SquareLinkedServiceTypeProperties](#SquareLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SquareLinkedServiceTypeProperties. #### type [SquareObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27348) [¶](#SquareObjectDataset) ``` type SquareObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SquareObjectDataset - Square Service dataset. #### func (*SquareObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27382) [¶](#SquareObjectDataset.GetDataset) added in v0.2.0 ``` func (s *[SquareObjectDataset](#SquareObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SquareObjectDataset. #### func (SquareObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46888) [¶](#SquareObjectDataset.MarshalJSON) ``` func (s [SquareObjectDataset](#SquareObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SquareObjectDataset. #### func (*SquareObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46908) [¶](#SquareObjectDataset.UnmarshalJSON) ``` func (s *[SquareObjectDataset](#SquareObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SquareObjectDataset. #### type [SquareSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27397) [¶](#SquareSource) ``` type SquareSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SquareSource - A copy activity Square Service source. #### func (*SquareSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27428) [¶](#SquareSource.GetCopySource) added in v0.2.0 ``` func (s *[SquareSource](#SquareSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SquareSource. #### func (*SquareSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27440) [¶](#SquareSource.GetTabularSource) added in v0.2.0 ``` func (s *[SquareSource](#SquareSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SquareSource. #### func (SquareSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46962) [¶](#SquareSource.MarshalJSON) ``` func (s [SquareSource](#SquareSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SquareSource. #### func (*SquareSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L46981) [¶](#SquareSource.UnmarshalJSON) ``` func (s *[SquareSource](#SquareSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SquareSource. #### type [SsisEnvironment](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27454) [¶](#SsisEnvironment) ``` type SsisEnvironment struct { // REQUIRED; Type of metadata. Type *[SsisObjectMetadataType](#SsisObjectMetadataType) `json:"type,omitempty"` // Metadata description. Description *[string](/builtin#string) `json:"description,omitempty"` // Folder id which contains environment. FolderID *[int64](/builtin#int64) `json:"folderId,omitempty"` // Metadata id. ID *[int64](/builtin#int64) `json:"id,omitempty"` // Metadata name. Name *[string](/builtin#string) `json:"name,omitempty"` // Variable in environment Variables []*[SsisVariable](#SsisVariable) `json:"variables,omitempty"` } ``` SsisEnvironment - Ssis environment. #### func (*SsisEnvironment) [GetSsisObjectMetadata](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27475) [¶](#SsisEnvironment.GetSsisObjectMetadata) added in v0.2.0 ``` func (s *[SsisEnvironment](#SsisEnvironment)) GetSsisObjectMetadata() *[SsisObjectMetadata](#SsisObjectMetadata) ``` GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisEnvironment. #### func (SsisEnvironment) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47032) [¶](#SsisEnvironment.MarshalJSON) ``` func (s [SsisEnvironment](#SsisEnvironment)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisEnvironment. #### func (*SsisEnvironment) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47044) [¶](#SsisEnvironment.UnmarshalJSON) ``` func (s *[SsisEnvironment](#SsisEnvironment)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisEnvironment. #### type [SsisEnvironmentReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27485) [¶](#SsisEnvironmentReference) ``` type SsisEnvironmentReference struct { // Environment folder name. EnvironmentFolderName *[string](/builtin#string) `json:"environmentFolderName,omitempty"` // Environment name. EnvironmentName *[string](/builtin#string) `json:"environmentName,omitempty"` // Environment reference id. ID *[int64](/builtin#int64) `json:"id,omitempty"` // Reference type ReferenceType *[string](/builtin#string) `json:"referenceType,omitempty"` } ``` SsisEnvironmentReference - Ssis environment reference. #### func (SsisEnvironmentReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47079) [¶](#SsisEnvironmentReference.MarshalJSON) added in v1.3.0 ``` func (s [SsisEnvironmentReference](#SsisEnvironmentReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisEnvironmentReference. #### func (*SsisEnvironmentReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47089) [¶](#SsisEnvironmentReference.UnmarshalJSON) added in v1.3.0 ``` func (s *[SsisEnvironmentReference](#SsisEnvironmentReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisEnvironmentReference. #### type [SsisFolder](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27500) [¶](#SsisFolder) ``` type SsisFolder struct { // REQUIRED; Type of metadata. Type *[SsisObjectMetadataType](#SsisObjectMetadataType) `json:"type,omitempty"` // Metadata description. Description *[string](/builtin#string) `json:"description,omitempty"` // Metadata id. ID *[int64](/builtin#int64) `json:"id,omitempty"` // Metadata name. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` SsisFolder - Ssis folder. #### func (*SsisFolder) [GetSsisObjectMetadata](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27515) [¶](#SsisFolder.GetSsisObjectMetadata) added in v0.2.0 ``` func (s *[SsisFolder](#SsisFolder)) GetSsisObjectMetadata() *[SsisObjectMetadata](#SsisObjectMetadata) ``` GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisFolder. #### func (SsisFolder) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47118) [¶](#SsisFolder.MarshalJSON) ``` func (s [SsisFolder](#SsisFolder)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisFolder. #### func (*SsisFolder) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47128) [¶](#SsisFolder.UnmarshalJSON) added in v0.2.0 ``` func (s *[SsisFolder](#SsisFolder)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisFolder. #### type [SsisLogLocationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1841) [¶](#SsisLogLocationType) ``` type SsisLogLocationType [string](/builtin#string) ``` SsisLogLocationType - The type of SSIS log location. ``` const ( SsisLogLocationTypeFile [SsisLogLocationType](#SsisLogLocationType) = "File" ) ``` #### func [PossibleSsisLogLocationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1848) [¶](#PossibleSsisLogLocationTypeValues) ``` func PossibleSsisLogLocationTypeValues() [][SsisLogLocationType](#SsisLogLocationType) ``` PossibleSsisLogLocationTypeValues returns the possible values for the SsisLogLocationType const type. #### type [SsisObjectMetadata](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27534) [¶](#SsisObjectMetadata) ``` type SsisObjectMetadata struct { // REQUIRED; Type of metadata. Type *[SsisObjectMetadataType](#SsisObjectMetadataType) `json:"type,omitempty"` // Metadata description. Description *[string](/builtin#string) `json:"description,omitempty"` // Metadata id. ID *[int64](/builtin#int64) `json:"id,omitempty"` // Metadata name. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` SsisObjectMetadata - SSIS object metadata. #### func (*SsisObjectMetadata) [GetSsisObjectMetadata](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27549) [¶](#SsisObjectMetadata.GetSsisObjectMetadata) ``` func (s *[SsisObjectMetadata](#SsisObjectMetadata)) GetSsisObjectMetadata() *[SsisObjectMetadata](#SsisObjectMetadata) ``` GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisObjectMetadata. #### func (SsisObjectMetadata) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47157) [¶](#SsisObjectMetadata.MarshalJSON) added in v1.3.0 ``` func (s [SsisObjectMetadata](#SsisObjectMetadata)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadata. #### func (*SsisObjectMetadata) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47167) [¶](#SsisObjectMetadata.UnmarshalJSON) ``` func (s *[SsisObjectMetadata](#SsisObjectMetadata)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadata. #### type [SsisObjectMetadataClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27528) [¶](#SsisObjectMetadataClassification) ``` type SsisObjectMetadataClassification interface { // GetSsisObjectMetadata returns the SsisObjectMetadata content of the underlying type. GetSsisObjectMetadata() *[SsisObjectMetadata](#SsisObjectMetadata) } ``` SsisObjectMetadataClassification provides polymorphic access to related types. Call the interface's GetSsisObjectMetadata() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *SsisEnvironment, *SsisFolder, *SsisObjectMetadata, *SsisPackage, *SsisProject #### type [SsisObjectMetadataListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27552) [¶](#SsisObjectMetadataListResponse) ``` type SsisObjectMetadataListResponse struct { // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` // List of SSIS object metadata. Value [][SsisObjectMetadataClassification](#SsisObjectMetadataClassification) `json:"value,omitempty"` } ``` SsisObjectMetadataListResponse - A list of SSIS object metadata. #### func (SsisObjectMetadataListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47196) [¶](#SsisObjectMetadataListResponse.MarshalJSON) ``` func (s [SsisObjectMetadataListResponse](#SsisObjectMetadataListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataListResponse. #### func (*SsisObjectMetadataListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47204) [¶](#SsisObjectMetadataListResponse.UnmarshalJSON) ``` func (s *[SsisObjectMetadataListResponse](#SsisObjectMetadataListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadataListResponse. #### type [SsisObjectMetadataStatusResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27561) [¶](#SsisObjectMetadataStatusResponse) ``` type SsisObjectMetadataStatusResponse struct { // The operation error message. Error *[string](/builtin#string) `json:"error,omitempty"` // The operation name. Name *[string](/builtin#string) `json:"name,omitempty"` // The operation properties. Properties *[string](/builtin#string) `json:"properties,omitempty"` // The status of the operation. Status *[string](/builtin#string) `json:"status,omitempty"` } ``` SsisObjectMetadataStatusResponse - The status of the operation. #### func (SsisObjectMetadataStatusResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47227) [¶](#SsisObjectMetadataStatusResponse.MarshalJSON) added in v1.3.0 ``` func (s [SsisObjectMetadataStatusResponse](#SsisObjectMetadataStatusResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataStatusResponse. #### func (*SsisObjectMetadataStatusResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47237) [¶](#SsisObjectMetadataStatusResponse.UnmarshalJSON) added in v1.3.0 ``` func (s *[SsisObjectMetadataStatusResponse](#SsisObjectMetadataStatusResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadataStatusResponse. #### type [SsisObjectMetadataType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1855) [¶](#SsisObjectMetadataType) ``` type SsisObjectMetadataType [string](/builtin#string) ``` SsisObjectMetadataType - The type of SSIS object metadata. ``` const ( SsisObjectMetadataTypeEnvironment [SsisObjectMetadataType](#SsisObjectMetadataType) = "Environment" SsisObjectMetadataTypeFolder [SsisObjectMetadataType](#SsisObjectMetadataType) = "Folder" SsisObjectMetadataTypePackage [SsisObjectMetadataType](#SsisObjectMetadataType) = "Package" SsisObjectMetadataTypeProject [SsisObjectMetadataType](#SsisObjectMetadataType) = "Project" ) ``` #### func [PossibleSsisObjectMetadataTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1865) [¶](#PossibleSsisObjectMetadataTypeValues) ``` func PossibleSsisObjectMetadataTypeValues() [][SsisObjectMetadataType](#SsisObjectMetadataType) ``` PossibleSsisObjectMetadataTypeValues returns the possible values for the SsisObjectMetadataType const type. #### type [SsisPackage](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27576) [¶](#SsisPackage) ``` type SsisPackage struct { // REQUIRED; Type of metadata. Type *[SsisObjectMetadataType](#SsisObjectMetadataType) `json:"type,omitempty"` // Metadata description. Description *[string](/builtin#string) `json:"description,omitempty"` // Folder id which contains package. FolderID *[int64](/builtin#int64) `json:"folderId,omitempty"` // Metadata id. ID *[int64](/builtin#int64) `json:"id,omitempty"` // Metadata name. Name *[string](/builtin#string) `json:"name,omitempty"` // Parameters in package Parameters []*[SsisParameter](#SsisParameter) `json:"parameters,omitempty"` // Project id which contains package. ProjectID *[int64](/builtin#int64) `json:"projectId,omitempty"` // Project version which contains package. ProjectVersion *[int64](/builtin#int64) `json:"projectVersion,omitempty"` } ``` SsisPackage - Ssis Package. #### func (*SsisPackage) [GetSsisObjectMetadata](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27603) [¶](#SsisPackage.GetSsisObjectMetadata) added in v0.2.0 ``` func (s *[SsisPackage](#SsisPackage)) GetSsisObjectMetadata() *[SsisObjectMetadata](#SsisObjectMetadata) ``` GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisPackage. #### func (SsisPackage) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47266) [¶](#SsisPackage.MarshalJSON) ``` func (s [SsisPackage](#SsisPackage)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisPackage. #### func (*SsisPackage) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47280) [¶](#SsisPackage.UnmarshalJSON) ``` func (s *[SsisPackage](#SsisPackage)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisPackage. #### type [SsisPackageLocationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1875) [¶](#SsisPackageLocationType) ``` type SsisPackageLocationType [string](/builtin#string) ``` SsisPackageLocationType - The type of SSIS package location. ``` const ( SsisPackageLocationTypeFile [SsisPackageLocationType](#SsisPackageLocationType) = "File" SsisPackageLocationTypeInlinePackage [SsisPackageLocationType](#SsisPackageLocationType) = "InlinePackage" SsisPackageLocationTypePackageStore [SsisPackageLocationType](#SsisPackageLocationType) = "PackageStore" SsisPackageLocationTypeSSISDB [SsisPackageLocationType](#SsisPackageLocationType) = "SSISDB" ) ``` #### func [PossibleSsisPackageLocationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1885) [¶](#PossibleSsisPackageLocationTypeValues) ``` func PossibleSsisPackageLocationTypeValues() [][SsisPackageLocationType](#SsisPackageLocationType) ``` PossibleSsisPackageLocationTypeValues returns the possible values for the SsisPackageLocationType const type. #### type [SsisParameter](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27613) [¶](#SsisParameter) ``` type SsisParameter struct { // Parameter type. DataType *[string](/builtin#string) `json:"dataType,omitempty"` // Default value of parameter. DefaultValue *[string](/builtin#string) `json:"defaultValue,omitempty"` // Parameter description. Description *[string](/builtin#string) `json:"description,omitempty"` // Design default value of parameter. DesignDefaultValue *[string](/builtin#string) `json:"designDefaultValue,omitempty"` // Parameter id. ID *[int64](/builtin#int64) `json:"id,omitempty"` // Parameter name. Name *[string](/builtin#string) `json:"name,omitempty"` // Whether parameter is required. Required *[bool](/builtin#bool) `json:"required,omitempty"` // Whether parameter is sensitive. Sensitive *[bool](/builtin#bool) `json:"sensitive,omitempty"` // Default sensitive value of parameter. SensitiveDefaultValue *[string](/builtin#string) `json:"sensitiveDefaultValue,omitempty"` // Parameter value set. ValueSet *[bool](/builtin#bool) `json:"valueSet,omitempty"` // Parameter value type. ValueType *[string](/builtin#string) `json:"valueType,omitempty"` // Parameter reference variable. Variable *[string](/builtin#string) `json:"variable,omitempty"` } ``` SsisParameter - Ssis parameter. #### func (SsisParameter) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47321) [¶](#SsisParameter.MarshalJSON) added in v1.3.0 ``` func (s [SsisParameter](#SsisParameter)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisParameter. #### func (*SsisParameter) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47339) [¶](#SsisParameter.UnmarshalJSON) added in v1.3.0 ``` func (s *[SsisParameter](#SsisParameter)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisParameter. #### type [SsisProject](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27652) [¶](#SsisProject) ``` type SsisProject struct { // REQUIRED; Type of metadata. Type *[SsisObjectMetadataType](#SsisObjectMetadataType) `json:"type,omitempty"` // Metadata description. Description *[string](/builtin#string) `json:"description,omitempty"` // Environment reference in project EnvironmentRefs []*[SsisEnvironmentReference](#SsisEnvironmentReference) `json:"environmentRefs,omitempty"` // Folder id which contains project. FolderID *[int64](/builtin#int64) `json:"folderId,omitempty"` // Metadata id. ID *[int64](/builtin#int64) `json:"id,omitempty"` // Metadata name. Name *[string](/builtin#string) `json:"name,omitempty"` // Parameters in project Parameters []*[SsisParameter](#SsisParameter) `json:"parameters,omitempty"` // Project version. Version *[int64](/builtin#int64) `json:"version,omitempty"` } ``` SsisProject - Ssis project. #### func (*SsisProject) [GetSsisObjectMetadata](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27679) [¶](#SsisProject.GetSsisObjectMetadata) added in v0.2.0 ``` func (s *[SsisProject](#SsisProject)) GetSsisObjectMetadata() *[SsisObjectMetadata](#SsisObjectMetadata) ``` GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisProject. #### func (SsisProject) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47392) [¶](#SsisProject.MarshalJSON) ``` func (s [SsisProject](#SsisProject)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisProject. #### func (*SsisProject) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47406) [¶](#SsisProject.UnmarshalJSON) ``` func (s *[SsisProject](#SsisProject)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisProject. #### type [SsisVariable](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27689) [¶](#SsisVariable) ``` type SsisVariable struct { // Variable type. DataType *[string](/builtin#string) `json:"dataType,omitempty"` // Variable description. Description *[string](/builtin#string) `json:"description,omitempty"` // Variable id. ID *[int64](/builtin#int64) `json:"id,omitempty"` // Variable name. Name *[string](/builtin#string) `json:"name,omitempty"` // Whether variable is sensitive. Sensitive *[bool](/builtin#bool) `json:"sensitive,omitempty"` // Variable sensitive value. SensitiveValue *[string](/builtin#string) `json:"sensitiveValue,omitempty"` // Variable value. Value *[string](/builtin#string) `json:"value,omitempty"` } ``` SsisVariable - Ssis variable. #### func (SsisVariable) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47447) [¶](#SsisVariable.MarshalJSON) added in v1.3.0 ``` func (s [SsisVariable](#SsisVariable)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SsisVariable. #### func (*SsisVariable) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47460) [¶](#SsisVariable.UnmarshalJSON) added in v1.3.0 ``` func (s *[SsisVariable](#SsisVariable)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SsisVariable. #### type [StagingSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27713) [¶](#StagingSettings) ``` type StagingSettings struct { // REQUIRED; Staging linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Specifies whether to use compression when copying data via an interim staging. Default value is false. Type: boolean (or // Expression with resultType boolean). EnableCompression interface{} `json:"enableCompression,omitempty"` // The path to storage for storing the interim data. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` StagingSettings - Staging settings. #### func (StagingSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47498) [¶](#StagingSettings.MarshalJSON) ``` func (s [StagingSettings](#StagingSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type StagingSettings. #### func (*StagingSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47512) [¶](#StagingSettings.UnmarshalJSON) ``` func (s *[StagingSettings](#StagingSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type StagingSettings. #### type [StoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27740) [¶](#StoreReadSettings) ``` type StoreReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` } ``` StoreReadSettings - Connector read setting. #### func (*StoreReadSettings) [GetStoreReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27755) [¶](#StoreReadSettings.GetStoreReadSettings) ``` func (s *[StoreReadSettings](#StoreReadSettings)) GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) ``` GetStoreReadSettings implements the StoreReadSettingsClassification interface for type StoreReadSettings. #### func (StoreReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47548) [¶](#StoreReadSettings.MarshalJSON) added in v0.2.0 ``` func (s [StoreReadSettings](#StoreReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type StoreReadSettings. #### func (*StoreReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47562) [¶](#StoreReadSettings.UnmarshalJSON) ``` func (s *[StoreReadSettings](#StoreReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type StoreReadSettings. #### type [StoreReadSettingsClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27734) [¶](#StoreReadSettingsClassification) ``` type StoreReadSettingsClassification interface { // GetStoreReadSettings returns the StoreReadSettings content of the underlying type. GetStoreReadSettings() *[StoreReadSettings](#StoreReadSettings) } ``` StoreReadSettingsClassification provides polymorphic access to related types. Call the interface's GetStoreReadSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AmazonS3CompatibleReadSettings, *AmazonS3ReadSettings, *AzureBlobFSReadSettings, *AzureBlobStorageReadSettings, *AzureDataLakeStoreReadSettings, - *AzureFileStorageReadSettings, *FileServerReadSettings, *FtpReadSettings, *GoogleCloudStorageReadSettings, *HTTPReadSettings, - *HdfsReadSettings, *OracleCloudStorageReadSettings, *SftpReadSettings, *StoreReadSettings #### type [StoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27768) [¶](#StoreWriteSettings) ``` type StoreWriteSettings struct { // REQUIRED; The write setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` } ``` StoreWriteSettings - Connector write settings. #### func (*StoreWriteSettings) [GetStoreWriteSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27786) [¶](#StoreWriteSettings.GetStoreWriteSettings) ``` func (s *[StoreWriteSettings](#StoreWriteSettings)) GetStoreWriteSettings() *[StoreWriteSettings](#StoreWriteSettings) ``` GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type StoreWriteSettings. #### func (StoreWriteSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47598) [¶](#StoreWriteSettings.MarshalJSON) added in v0.2.0 ``` func (s [StoreWriteSettings](#StoreWriteSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type StoreWriteSettings. #### func (*StoreWriteSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47613) [¶](#StoreWriteSettings.UnmarshalJSON) ``` func (s *[StoreWriteSettings](#StoreWriteSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type StoreWriteSettings. #### type [StoreWriteSettingsClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27762) [¶](#StoreWriteSettingsClassification) ``` type StoreWriteSettingsClassification interface { // GetStoreWriteSettings returns the StoreWriteSettings content of the underlying type. GetStoreWriteSettings() *[StoreWriteSettings](#StoreWriteSettings) } ``` StoreWriteSettingsClassification provides polymorphic access to related types. Call the interface's GetStoreWriteSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureBlobFSWriteSettings, *AzureBlobStorageWriteSettings, *AzureDataLakeStoreWriteSettings, *AzureFileStorageWriteSettings, - *FileServerWriteSettings, *SftpWriteSettings, *StoreWriteSettings #### type [StoredProcedureParameter](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27789) [¶](#StoredProcedureParameter) ``` type StoredProcedureParameter struct { // Stored procedure parameter type. Type *[StoredProcedureParameterType](#StoredProcedureParameterType) `json:"type,omitempty"` // Stored procedure parameter value. Type: string (or Expression with resultType string). Value interface{} `json:"value,omitempty"` } ``` StoredProcedureParameter - SQL stored procedure parameter. #### func (StoredProcedureParameter) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47652) [¶](#StoredProcedureParameter.MarshalJSON) added in v1.3.0 ``` func (s [StoredProcedureParameter](#StoredProcedureParameter)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type StoredProcedureParameter. #### func (*StoredProcedureParameter) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47660) [¶](#StoredProcedureParameter.UnmarshalJSON) added in v1.3.0 ``` func (s *[StoredProcedureParameter](#StoredProcedureParameter)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type StoredProcedureParameter. #### type [StoredProcedureParameterType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1895) [¶](#StoredProcedureParameterType) ``` type StoredProcedureParameterType [string](/builtin#string) ``` StoredProcedureParameterType - Stored procedure parameter type. ``` const ( StoredProcedureParameterTypeBoolean [StoredProcedureParameterType](#StoredProcedureParameterType) = "Boolean" StoredProcedureParameterTypeDate [StoredProcedureParameterType](#StoredProcedureParameterType) = "Date" StoredProcedureParameterTypeDecimal [StoredProcedureParameterType](#StoredProcedureParameterType) = "Decimal" StoredProcedureParameterTypeGUID [StoredProcedureParameterType](#StoredProcedureParameterType) = "Guid" StoredProcedureParameterTypeInt [StoredProcedureParameterType](#StoredProcedureParameterType) = "Int" StoredProcedureParameterTypeInt64 [StoredProcedureParameterType](#StoredProcedureParameterType) = "Int64" StoredProcedureParameterTypeString [StoredProcedureParameterType](#StoredProcedureParameterType) = "String" ) ``` #### func [PossibleStoredProcedureParameterTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1908) [¶](#PossibleStoredProcedureParameterTypeValues) ``` func PossibleStoredProcedureParameterTypeValues() [][StoredProcedureParameterType](#StoredProcedureParameterType) ``` PossibleStoredProcedureParameterTypeValues returns the possible values for the StoredProcedureParameterType const type. #### type [SubResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27798) [¶](#SubResource) ``` type SubResource struct { // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` SubResource - Azure Data Factory nested resource, which belongs to a factory. #### func (SubResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47683) [¶](#SubResource.MarshalJSON) ``` func (s [SubResource](#SubResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SubResource. #### func (*SubResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47693) [¶](#SubResource.UnmarshalJSON) ``` func (s *[SubResource](#SubResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SubResource. #### type [SubResourceDebugResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27813) [¶](#SubResourceDebugResource) ``` type SubResourceDebugResource struct { // The resource name. Name *[string](/builtin#string) `json:"name,omitempty"` } ``` SubResourceDebugResource - Azure Data Factory nested debug resource. #### func (SubResourceDebugResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47722) [¶](#SubResourceDebugResource.MarshalJSON) ``` func (s [SubResourceDebugResource](#SubResourceDebugResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SubResourceDebugResource. #### func (*SubResourceDebugResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47729) [¶](#SubResourceDebugResource.UnmarshalJSON) ``` func (s *[SubResourceDebugResource](#SubResourceDebugResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SubResourceDebugResource. #### type [SwitchActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27820) [¶](#SwitchActivity) ``` type SwitchActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Switch activity properties. TypeProperties *[SwitchActivityTypeProperties](#SwitchActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` SwitchActivity - This activity evaluates an expression and executes activities under the cases property that correspond to the expression evaluation expected in the equals property. #### func (*SwitchActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27844) [¶](#SwitchActivity.GetActivity) added in v0.2.0 ``` func (s *[SwitchActivity](#SwitchActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type SwitchActivity. #### func (*SwitchActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27856) [¶](#SwitchActivity.GetControlActivity) added in v0.2.0 ``` func (s *[SwitchActivity](#SwitchActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type SwitchActivity. #### func (SwitchActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47749) [¶](#SwitchActivity.MarshalJSON) ``` func (s [SwitchActivity](#SwitchActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SwitchActivity. #### func (*SwitchActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47766) [¶](#SwitchActivity.UnmarshalJSON) ``` func (s *[SwitchActivity](#SwitchActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SwitchActivity. #### type [SwitchActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27868) [¶](#SwitchActivityTypeProperties) ``` type SwitchActivityTypeProperties struct { // REQUIRED; An expression that would evaluate to a string or integer. This is used to determine the block of activities in // cases that will be executed. On *[Expression](#Expression) `json:"on,omitempty"` // List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, // the activity will execute activities provided in defaultActivities. Cases []*[SwitchCase](#SwitchCase) `json:"cases,omitempty"` // List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the // activity will exit without any action. DefaultActivities [][ActivityClassification](#ActivityClassification) `json:"defaultActivities,omitempty"` } ``` SwitchActivityTypeProperties - Switch activity properties. #### func (SwitchActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47811) [¶](#SwitchActivityTypeProperties.MarshalJSON) ``` func (s [SwitchActivityTypeProperties](#SwitchActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SwitchActivityTypeProperties. #### func (*SwitchActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47820) [¶](#SwitchActivityTypeProperties.UnmarshalJSON) ``` func (s *[SwitchActivityTypeProperties](#SwitchActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SwitchActivityTypeProperties. #### type [SwitchCase](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27883) [¶](#SwitchCase) ``` type SwitchCase struct { // List of activities to execute for satisfied case condition. Activities [][ActivityClassification](#ActivityClassification) `json:"activities,omitempty"` // Expected value that satisfies the expression result of the 'on' property. Value *[string](/builtin#string) `json:"value,omitempty"` } ``` SwitchCase - Switch cases with have a value and corresponding activities. #### func (SwitchCase) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47846) [¶](#SwitchCase.MarshalJSON) ``` func (s [SwitchCase](#SwitchCase)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SwitchCase. #### func (*SwitchCase) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47854) [¶](#SwitchCase.UnmarshalJSON) ``` func (s *[SwitchCase](#SwitchCase)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SwitchCase. #### type [SybaseAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1921) [¶](#SybaseAuthenticationType) ``` type SybaseAuthenticationType [string](/builtin#string) ``` SybaseAuthenticationType - AuthenticationType to be used for connection. ``` const ( SybaseAuthenticationTypeBasic [SybaseAuthenticationType](#SybaseAuthenticationType) = "Basic" SybaseAuthenticationTypeWindows [SybaseAuthenticationType](#SybaseAuthenticationType) = "Windows" ) ``` #### func [PossibleSybaseAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1929) [¶](#PossibleSybaseAuthenticationTypeValues) ``` func PossibleSybaseAuthenticationTypeValues() [][SybaseAuthenticationType](#SybaseAuthenticationType) ``` PossibleSybaseAuthenticationTypeValues returns the possible values for the SybaseAuthenticationType const type. #### type [SybaseLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27892) [¶](#SybaseLinkedService) ``` type SybaseLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Sybase linked service properties. TypeProperties *[SybaseLinkedServiceTypeProperties](#SybaseLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` SybaseLinkedService - Linked service for Sybase data source. #### func (*SybaseLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27916) [¶](#SybaseLinkedService.GetLinkedService) added in v0.2.0 ``` func (s *[SybaseLinkedService](#SybaseLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type SybaseLinkedService. #### func (SybaseLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47877) [¶](#SybaseLinkedService.MarshalJSON) ``` func (s [SybaseLinkedService](#SybaseLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SybaseLinkedService. #### func (*SybaseLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47894) [¶](#SybaseLinkedService.UnmarshalJSON) ``` func (s *[SybaseLinkedService](#SybaseLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SybaseLinkedService. #### type [SybaseLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27928) [¶](#SybaseLinkedServiceTypeProperties) ``` type SybaseLinkedServiceTypeProperties struct { // REQUIRED; Database name for connection. Type: string (or Expression with resultType string). Database interface{} `json:"database,omitempty"` // REQUIRED; Server name for connection. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` // AuthenticationType to be used for connection. AuthenticationType *[SybaseAuthenticationType](#SybaseAuthenticationType) `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Schema name for connection. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // Username for authentication. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` SybaseLinkedServiceTypeProperties - Sybase linked service properties. #### func (SybaseLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47939) [¶](#SybaseLinkedServiceTypeProperties.MarshalJSON) ``` func (s [SybaseLinkedServiceTypeProperties](#SybaseLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SybaseLinkedServiceTypeProperties. #### func (*SybaseLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47952) [¶](#SybaseLinkedServiceTypeProperties.UnmarshalJSON) ``` func (s *[SybaseLinkedServiceTypeProperties](#SybaseLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SybaseLinkedServiceTypeProperties. #### type [SybaseSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27953) [¶](#SybaseSource) ``` type SybaseSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` SybaseSource - A copy activity source for Sybase databases. #### func (*SybaseSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27984) [¶](#SybaseSource.GetCopySource) added in v0.2.0 ``` func (s *[SybaseSource](#SybaseSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type SybaseSource. #### func (*SybaseSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L27996) [¶](#SybaseSource.GetTabularSource) added in v0.2.0 ``` func (s *[SybaseSource](#SybaseSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type SybaseSource. #### func (SybaseSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L47990) [¶](#SybaseSource.MarshalJSON) ``` func (s [SybaseSource](#SybaseSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SybaseSource. #### func (*SybaseSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48009) [¶](#SybaseSource.UnmarshalJSON) ``` func (s *[SybaseSource](#SybaseSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SybaseSource. #### type [SybaseTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28010) [¶](#SybaseTableDataset) ``` type SybaseTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Sybase table dataset properties. TypeProperties *[SybaseTableDatasetTypeProperties](#SybaseTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` SybaseTableDataset - The Sybase table dataset. #### func (*SybaseTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28044) [¶](#SybaseTableDataset.GetDataset) added in v0.2.0 ``` func (s *[SybaseTableDataset](#SybaseTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type SybaseTableDataset. #### func (SybaseTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48060) [¶](#SybaseTableDataset.MarshalJSON) ``` func (s [SybaseTableDataset](#SybaseTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SybaseTableDataset. #### func (*SybaseTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48080) [¶](#SybaseTableDataset.UnmarshalJSON) ``` func (s *[SybaseTableDataset](#SybaseTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SybaseTableDataset. #### type [SybaseTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28059) [¶](#SybaseTableDatasetTypeProperties) ``` type SybaseTableDatasetTypeProperties struct { // The Sybase table name. Type: string (or Expression with resultType string). TableName interface{} `json:"tableName,omitempty"` } ``` SybaseTableDatasetTypeProperties - Sybase table dataset properties. #### func (SybaseTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48134) [¶](#SybaseTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SybaseTableDatasetTypeProperties](#SybaseTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SybaseTableDatasetTypeProperties. #### func (*SybaseTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48141) [¶](#SybaseTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SybaseTableDatasetTypeProperties](#SybaseTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SybaseTableDatasetTypeProperties. #### type [SynapseNotebookActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28065) [¶](#SynapseNotebookActivity) added in v1.3.0 ``` type SynapseNotebookActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Execute Synapse notebook activity properties. TypeProperties *[SynapseNotebookActivityTypeProperties](#SynapseNotebookActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` SynapseNotebookActivity - Execute Synapse notebook activity. #### func (*SynapseNotebookActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28095) [¶](#SynapseNotebookActivity.GetActivity) added in v1.3.0 ``` func (s *[SynapseNotebookActivity](#SynapseNotebookActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type SynapseNotebookActivity. #### func (*SynapseNotebookActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28107) [¶](#SynapseNotebookActivity.GetExecutionActivity) added in v1.3.0 ``` func (s *[SynapseNotebookActivity](#SynapseNotebookActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type SynapseNotebookActivity. #### func (SynapseNotebookActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48161) [¶](#SynapseNotebookActivity.MarshalJSON) added in v1.3.0 ``` func (s [SynapseNotebookActivity](#SynapseNotebookActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SynapseNotebookActivity. #### func (*SynapseNotebookActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48180) [¶](#SynapseNotebookActivity.UnmarshalJSON) added in v1.3.0 ``` func (s *[SynapseNotebookActivity](#SynapseNotebookActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SynapseNotebookActivity. #### type [SynapseNotebookActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28121) [¶](#SynapseNotebookActivityTypeProperties) added in v1.3.0 ``` type SynapseNotebookActivityTypeProperties struct { // REQUIRED; Synapse notebook reference. Notebook *[SynapseNotebookReference](#SynapseNotebookReference) `json:"notebook,omitempty"` // Spark configuration properties, which will override the 'conf' of the notebook you provide. Conf interface{} `json:"conf,omitempty"` // Number of core and memory to be used for driver allocated in the specified Spark pool for the session, which will be used // for overriding 'driverCores' and 'driverMemory' of the notebook you provide. // Type: string (or Expression with resultType string). DriverSize interface{} `json:"driverSize,omitempty"` // Number of core and memory to be used for executors allocated in the specified Spark pool for the session, which will be // used for overriding 'executorCores' and 'executorMemory' of the notebook you // provide. Type: string (or Expression with resultType string). ExecutorSize interface{} `json:"executorSize,omitempty"` // Number of executors to launch for this session, which will override the 'numExecutors' of the notebook you provide. NumExecutors *[int32](/builtin#int32) `json:"numExecutors,omitempty"` // Notebook parameters. Parameters map[[string](/builtin#string)]*[NotebookParameter](#NotebookParameter) `json:"parameters,omitempty"` // The name of the big data pool which will be used to execute the notebook. SparkPool *[BigDataPoolParametrizationReference](#BigDataPoolParametrizationReference) `json:"sparkPool,omitempty"` } ``` SynapseNotebookActivityTypeProperties - Execute Synapse notebook activity properties. #### func (SynapseNotebookActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48231) [¶](#SynapseNotebookActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SynapseNotebookActivityTypeProperties](#SynapseNotebookActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SynapseNotebookActivityTypeProperties. #### func (*SynapseNotebookActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48244) [¶](#SynapseNotebookActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SynapseNotebookActivityTypeProperties](#SynapseNotebookActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SynapseNotebookActivityTypeProperties. #### type [SynapseNotebookReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28149) [¶](#SynapseNotebookReference) added in v1.3.0 ``` type SynapseNotebookReference struct { // REQUIRED; Reference notebook name. Type: string (or Expression with resultType string). ReferenceName interface{} `json:"referenceName,omitempty"` // REQUIRED; Synapse notebook reference type. Type *[NotebookReferenceType](#NotebookReferenceType) `json:"type,omitempty"` } ``` SynapseNotebookReference - Synapse notebook reference type. #### func (SynapseNotebookReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48282) [¶](#SynapseNotebookReference.MarshalJSON) added in v1.3.0 ``` func (s [SynapseNotebookReference](#SynapseNotebookReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SynapseNotebookReference. #### func (*SynapseNotebookReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48290) [¶](#SynapseNotebookReference.UnmarshalJSON) added in v1.3.0 ``` func (s *[SynapseNotebookReference](#SynapseNotebookReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SynapseNotebookReference. #### type [SynapseSparkJobActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28158) [¶](#SynapseSparkJobActivityTypeProperties) added in v1.3.0 ``` type SynapseSparkJobActivityTypeProperties struct { // REQUIRED; Synapse spark job reference. SparkJob *[SynapseSparkJobReference](#SynapseSparkJobReference) `json:"sparkJob,omitempty"` // User specified arguments to SynapseSparkJobDefinitionActivity. Arguments []interface{} `json:"args,omitempty"` // The fully-qualified identifier or the main class that is in the main definition file, which will override the 'className' // of the spark job definition you provide. Type: string (or Expression with // resultType string). ClassName interface{} `json:"className,omitempty"` // Spark configuration properties, which will override the 'conf' of the spark job definition you provide. Conf interface{} `json:"conf,omitempty"` // Number of core and memory to be used for driver allocated in the specified Spark pool for the job, which will be used for // overriding 'driverCores' and 'driverMemory' of the spark job definition you // provide. Type: string (or Expression with resultType string). DriverSize interface{} `json:"driverSize,omitempty"` // Number of core and memory to be used for executors allocated in the specified Spark pool for the job, which will be used // for overriding 'executorCores' and 'executorMemory' of the spark job definition // you provide. Type: string (or Expression with resultType string). ExecutorSize interface{} `json:"executorSize,omitempty"` // The main file used for the job, which will override the 'file' of the spark job definition you provide. Type: string (or // Expression with resultType string). File interface{} `json:"file,omitempty"` // Additional files used for reference in the main definition file, which will override the 'files' of the spark job definition // you provide. Files []interface{} `json:"files,omitempty"` // Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. NumExecutors *[int32](/builtin#int32) `json:"numExecutors,omitempty"` // The name of the big data pool which will be used to execute the spark batch job, which will override the 'targetBigDataPool' // of the spark job definition you provide. TargetBigDataPool *[BigDataPoolParametrizationReference](#BigDataPoolParametrizationReference) `json:"targetBigDataPool,omitempty"` } ``` SynapseSparkJobActivityTypeProperties - Execute spark job activity properties. #### func (SynapseSparkJobActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48313) [¶](#SynapseSparkJobActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (s [SynapseSparkJobActivityTypeProperties](#SynapseSparkJobActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SynapseSparkJobActivityTypeProperties. #### func (*SynapseSparkJobActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48329) [¶](#SynapseSparkJobActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (s *[SynapseSparkJobActivityTypeProperties](#SynapseSparkJobActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SynapseSparkJobActivityTypeProperties. #### type [SynapseSparkJobDefinitionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28200) [¶](#SynapseSparkJobDefinitionActivity) added in v1.3.0 ``` type SynapseSparkJobDefinitionActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Execute spark job activity properties. TypeProperties *[SynapseSparkJobActivityTypeProperties](#SynapseSparkJobActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` SynapseSparkJobDefinitionActivity - Execute spark job activity. #### func (*SynapseSparkJobDefinitionActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28230) [¶](#SynapseSparkJobDefinitionActivity.GetActivity) added in v1.3.0 ``` func (s *[SynapseSparkJobDefinitionActivity](#SynapseSparkJobDefinitionActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type SynapseSparkJobDefinitionActivity. #### func (*SynapseSparkJobDefinitionActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28242) [¶](#SynapseSparkJobDefinitionActivity.GetExecutionActivity) added in v1.3.0 ``` func (s *[SynapseSparkJobDefinitionActivity](#SynapseSparkJobDefinitionActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type SynapseSparkJobDefinitionActivity. #### func (SynapseSparkJobDefinitionActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48376) [¶](#SynapseSparkJobDefinitionActivity.MarshalJSON) added in v1.3.0 ``` func (s [SynapseSparkJobDefinitionActivity](#SynapseSparkJobDefinitionActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SynapseSparkJobDefinitionActivity. #### func (*SynapseSparkJobDefinitionActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48395) [¶](#SynapseSparkJobDefinitionActivity.UnmarshalJSON) added in v1.3.0 ``` func (s *[SynapseSparkJobDefinitionActivity](#SynapseSparkJobDefinitionActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SynapseSparkJobDefinitionActivity. #### type [SynapseSparkJobReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28256) [¶](#SynapseSparkJobReference) added in v1.3.0 ``` type SynapseSparkJobReference struct { // REQUIRED; Reference spark job name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Synapse spark job reference type. Type *[SparkJobReferenceType](#SparkJobReferenceType) `json:"type,omitempty"` } ``` SynapseSparkJobReference - Synapse spark job reference type. #### func (SynapseSparkJobReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48446) [¶](#SynapseSparkJobReference.MarshalJSON) added in v1.3.0 ``` func (s [SynapseSparkJobReference](#SynapseSparkJobReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type SynapseSparkJobReference. #### func (*SynapseSparkJobReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48454) [¶](#SynapseSparkJobReference.UnmarshalJSON) added in v1.3.0 ``` func (s *[SynapseSparkJobReference](#SynapseSparkJobReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type SynapseSparkJobReference. #### type [TabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28283) [¶](#TabularSource) ``` type TabularSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` TabularSource - Copy activity sources of tabular type. #### func (*TabularSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28311) [¶](#TabularSource.GetCopySource) added in v0.2.0 ``` func (t *[TabularSource](#TabularSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type TabularSource. #### func (*TabularSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28323) [¶](#TabularSource.GetTabularSource) ``` func (t *[TabularSource](#TabularSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type TabularSource. #### func (TabularSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48477) [¶](#TabularSource.MarshalJSON) ``` func (t [TabularSource](#TabularSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TabularSource. #### func (*TabularSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48495) [¶](#TabularSource.UnmarshalJSON) ``` func (t *[TabularSource](#TabularSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TabularSource. #### type [TabularSourceClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28276) [¶](#TabularSourceClassification) ``` type TabularSourceClassification interface { [CopySourceClassification](#CopySourceClassification) // GetTabularSource returns the TabularSource content of the underlying type. GetTabularSource() *[TabularSource](#TabularSource) } ``` TabularSourceClassification provides polymorphic access to related types. Call the interface's GetTabularSource() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AmazonMWSSource, *AmazonRdsForSQLServerSource, *AmazonRedshiftSource, *AzureMariaDBSource, *AzureMySQLSource, *AzurePostgreSQLSource, - *AzureSQLSource, *AzureTableSource, *CassandraSource, *ConcurSource, *CouchbaseSource, *Db2Source, *DrillSource, *DynamicsAXSource, - *EloquaSource, *GoogleAdWordsSource, *GoogleBigQuerySource, *GreenplumSource, *HBaseSource, *HiveSource, *HubspotSource, - *ImpalaSource, *InformixSource, *JiraSource, *MagentoSource, *MariaDBSource, *MarketoSource, *MySQLSource, *NetezzaSource, - *OdbcSource, *OracleServiceCloudSource, *PaypalSource, *PhoenixSource, *PostgreSQLSource, *PrestoSource, *QuickBooksSource, - *ResponsysSource, *SQLDWSource, *SQLMISource, *SQLServerSource, *SQLSource, *SalesforceMarketingCloudSource, *SalesforceSource, - *SapBwSource, *SapCloudForCustomerSource, *SapEccSource, *SapHanaSource, *SapOdpSource, *SapOpenHubSource, *SapTableSource, - *ServiceNowSource, *ShopifySource, *SparkSource, *SquareSource, *SybaseSource, *TabularSource, *TeradataSource, *VerticaSource, - *XeroSource, *ZohoSource #### type [TabularTranslator](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28326) [¶](#TabularTranslator) ``` type TabularTranslator struct { // REQUIRED; Copy translator type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The JSON Path of the Nested Array that is going to do cross-apply. Type: object (or Expression with resultType object). CollectionReference interface{} `json:"collectionReference,omitempty"` // Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: MyName" Type: string (or Expression with resultType // string). This property will be retired. Please use mappings property. ColumnMappings interface{} `json:"columnMappings,omitempty"` // Whether to map complex (array and object) values to simple strings in json format. Type: boolean (or Expression with resultType // boolean). MapComplexValuesToString interface{} `json:"mapComplexValuesToString,omitempty"` // Column mappings with logical types. Tabular->tabular example: // [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. // Hierarchical->tabular example: // [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. // Type: object (or Expression with resultType object). Mappings interface{} `json:"mappings,omitempty"` // The schema mapping to map between tabular data and hierarchical data. Example: {"Column1": "$.Column1", "Column2": "$.Column2.Property1", // "Column3": "$.Column2.Property2"}. Type: object (or Expression // with resultType object). This property will be retired. Please use mappings property. SchemaMapping interface{} `json:"schemaMapping,omitempty"` // Whether to enable the advanced type conversion feature in the Copy activity. Type: boolean (or Expression with resultType // boolean). TypeConversion interface{} `json:"typeConversion,omitempty"` // Type conversion settings TypeConversionSettings *[TypeConversionSettings](#TypeConversionSettings) `json:"typeConversionSettings,omitempty"` } ``` TabularTranslator - A copy activity tabular translator. #### func (*TabularTranslator) [GetCopyTranslator](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28365) [¶](#TabularTranslator.GetCopyTranslator) added in v0.2.0 ``` func (t *[TabularTranslator](#TabularTranslator)) GetCopyTranslator() *[CopyTranslator](#CopyTranslator) ``` GetCopyTranslator implements the CopyTranslatorClassification interface for type TabularTranslator. #### func (TabularTranslator) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48543) [¶](#TabularTranslator.MarshalJSON) ``` func (t [TabularTranslator](#TabularTranslator)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TabularTranslator. #### func (*TabularTranslator) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48562) [¶](#TabularTranslator.UnmarshalJSON) ``` func (t *[TabularTranslator](#TabularTranslator)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TabularTranslator. #### type [TarGZipReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28373) [¶](#TarGZipReadSettings) ``` type TarGZipReadSettings struct { // REQUIRED; The Compression setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` } ``` TarGZipReadSettings - The TarGZip compression read settings. #### func (*TarGZipReadSettings) [GetCompressionReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28385) [¶](#TarGZipReadSettings.GetCompressionReadSettings) added in v0.2.0 ``` func (t *[TarGZipReadSettings](#TarGZipReadSettings)) GetCompressionReadSettings() *[CompressionReadSettings](#CompressionReadSettings) ``` GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type TarGZipReadSettings. #### func (TarGZipReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48613) [¶](#TarGZipReadSettings.MarshalJSON) ``` func (t [TarGZipReadSettings](#TarGZipReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TarGZipReadSettings. #### func (*TarGZipReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48626) [¶](#TarGZipReadSettings.UnmarshalJSON) ``` func (t *[TarGZipReadSettings](#TarGZipReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TarGZipReadSettings. #### type [TarReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28393) [¶](#TarReadSettings) ``` type TarReadSettings struct { // REQUIRED; The Compression setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` } ``` TarReadSettings - The Tar compression read settings. #### func (*TarReadSettings) [GetCompressionReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28405) [¶](#TarReadSettings.GetCompressionReadSettings) added in v0.2.0 ``` func (t *[TarReadSettings](#TarReadSettings)) GetCompressionReadSettings() *[CompressionReadSettings](#CompressionReadSettings) ``` GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type TarReadSettings. #### func (TarReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48659) [¶](#TarReadSettings.MarshalJSON) ``` func (t [TarReadSettings](#TarReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TarReadSettings. #### func (*TarReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48672) [¶](#TarReadSettings.UnmarshalJSON) ``` func (t *[TarReadSettings](#TarReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TarReadSettings. #### type [TeamDeskAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1937) [¶](#TeamDeskAuthenticationType) added in v0.3.0 ``` type TeamDeskAuthenticationType [string](/builtin#string) ``` TeamDeskAuthenticationType - The authentication type to use. ``` const ( TeamDeskAuthenticationTypeBasic [TeamDeskAuthenticationType](#TeamDeskAuthenticationType) = "Basic" TeamDeskAuthenticationTypeToken [TeamDeskAuthenticationType](#TeamDeskAuthenticationType) = "Token" ) ``` #### func [PossibleTeamDeskAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1945) [¶](#PossibleTeamDeskAuthenticationTypeValues) added in v0.3.0 ``` func PossibleTeamDeskAuthenticationTypeValues() [][TeamDeskAuthenticationType](#TeamDeskAuthenticationType) ``` PossibleTeamDeskAuthenticationTypeValues returns the possible values for the TeamDeskAuthenticationType const type. #### type [TeamDeskLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28413) [¶](#TeamDeskLinkedService) added in v0.3.0 ``` type TeamDeskLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; TeamDesk linked service properties. TypeProperties *[TeamDeskLinkedServiceTypeProperties](#TeamDeskLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` TeamDeskLinkedService - Linked service for TeamDesk. #### func (*TeamDeskLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28437) [¶](#TeamDeskLinkedService.GetLinkedService) added in v0.3.0 ``` func (t *[TeamDeskLinkedService](#TeamDeskLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type TeamDeskLinkedService. #### func (TeamDeskLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48705) [¶](#TeamDeskLinkedService.MarshalJSON) added in v0.3.0 ``` func (t [TeamDeskLinkedService](#TeamDeskLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TeamDeskLinkedService. #### func (*TeamDeskLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48722) [¶](#TeamDeskLinkedService.UnmarshalJSON) added in v0.3.0 ``` func (t *[TeamDeskLinkedService](#TeamDeskLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TeamDeskLinkedService. #### type [TeamDeskLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28449) [¶](#TeamDeskLinkedServiceTypeProperties) added in v0.3.0 ``` type TeamDeskLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to use. AuthenticationType *[TeamDeskAuthenticationType](#TeamDeskAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The url to connect TeamDesk source. Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // The api token for the TeamDesk source. APIToken [SecretBaseClassification](#SecretBaseClassification) `json:"apiToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password of the TeamDesk source. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The username of the TeamDesk source. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` TeamDeskLinkedServiceTypeProperties - TeamDesk linked service type properties. #### func (TeamDeskLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48767) [¶](#TeamDeskLinkedServiceTypeProperties.MarshalJSON) added in v0.3.0 ``` func (t [TeamDeskLinkedServiceTypeProperties](#TeamDeskLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TeamDeskLinkedServiceTypeProperties. #### func (*TeamDeskLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48779) [¶](#TeamDeskLinkedServiceTypeProperties.UnmarshalJSON) added in v0.3.0 ``` func (t *[TeamDeskLinkedServiceTypeProperties](#TeamDeskLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TeamDeskLinkedServiceTypeProperties. #### type [TeradataAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1953) [¶](#TeradataAuthenticationType) ``` type TeradataAuthenticationType [string](/builtin#string) ``` TeradataAuthenticationType - AuthenticationType to be used for connection. ``` const ( TeradataAuthenticationTypeBasic [TeradataAuthenticationType](#TeradataAuthenticationType) = "Basic" TeradataAuthenticationTypeWindows [TeradataAuthenticationType](#TeradataAuthenticationType) = "Windows" ) ``` #### func [PossibleTeradataAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1961) [¶](#PossibleTeradataAuthenticationTypeValues) ``` func PossibleTeradataAuthenticationTypeValues() [][TeradataAuthenticationType](#TeradataAuthenticationType) ``` PossibleTeradataAuthenticationTypeValues returns the possible values for the TeradataAuthenticationType const type. #### type [TeradataLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28471) [¶](#TeradataLinkedService) ``` type TeradataLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Teradata linked service properties. TypeProperties *[TeradataLinkedServiceTypeProperties](#TeradataLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` TeradataLinkedService - Linked service for Teradata data source. #### func (*TeradataLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28495) [¶](#TeradataLinkedService.GetLinkedService) added in v0.2.0 ``` func (t *[TeradataLinkedService](#TeradataLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type TeradataLinkedService. #### func (TeradataLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48814) [¶](#TeradataLinkedService.MarshalJSON) ``` func (t [TeradataLinkedService](#TeradataLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TeradataLinkedService. #### func (*TeradataLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48831) [¶](#TeradataLinkedService.UnmarshalJSON) ``` func (t *[TeradataLinkedService](#TeradataLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TeradataLinkedService. #### type [TeradataLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28507) [¶](#TeradataLinkedServiceTypeProperties) ``` type TeradataLinkedServiceTypeProperties struct { // AuthenticationType to be used for connection. AuthenticationType *[TeradataAuthenticationType](#TeradataAuthenticationType) `json:"authenticationType,omitempty"` // Teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // Password for authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Server name for connection. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` // Username for authentication. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` TeradataLinkedServiceTypeProperties - Teradata linked service properties. #### func (TeradataLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48876) [¶](#TeradataLinkedServiceTypeProperties.MarshalJSON) ``` func (t [TeradataLinkedServiceTypeProperties](#TeradataLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TeradataLinkedServiceTypeProperties. #### func (*TeradataLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48888) [¶](#TeradataLinkedServiceTypeProperties.UnmarshalJSON) ``` func (t *[TeradataLinkedServiceTypeProperties](#TeradataLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TeradataLinkedServiceTypeProperties. #### type [TeradataPartitionOption](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1969) [¶](#TeradataPartitionOption) ``` type TeradataPartitionOption [string](/builtin#string) ``` TeradataPartitionOption - The partition mechanism that will be used for teradata read in parallel. ``` const ( TeradataPartitionOptionDynamicRange [TeradataPartitionOption](#TeradataPartitionOption) = "DynamicRange" TeradataPartitionOptionHash [TeradataPartitionOption](#TeradataPartitionOption) = "Hash" TeradataPartitionOptionNone [TeradataPartitionOption](#TeradataPartitionOption) = "None" ) ``` #### func [PossibleTeradataPartitionOptionValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1978) [¶](#PossibleTeradataPartitionOptionValues) ``` func PossibleTeradataPartitionOptionValues() [][TeradataPartitionOption](#TeradataPartitionOption) ``` PossibleTeradataPartitionOptionValues returns the possible values for the TeradataPartitionOption const type. #### type [TeradataPartitionSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28529) [¶](#TeradataPartitionSettings) ``` type TeradataPartitionSettings struct { // The name of the column that will be used for proceeding range or hash partitioning. Type: string (or Expression with resultType // string). PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` } ``` TeradataPartitionSettings - The settings that will be leveraged for teradata source partitioning. #### func (TeradataPartitionSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48923) [¶](#TeradataPartitionSettings.MarshalJSON) added in v1.3.0 ``` func (t [TeradataPartitionSettings](#TeradataPartitionSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TeradataPartitionSettings. #### func (*TeradataPartitionSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48932) [¶](#TeradataPartitionSettings.UnmarshalJSON) added in v1.3.0 ``` func (t *[TeradataPartitionSettings](#TeradataPartitionSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TeradataPartitionSettings. #### type [TeradataSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28544) [¶](#TeradataSource) ``` type TeradataSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for teradata read in parallel. Possible values include: "None", "Hash", "DynamicRange". PartitionOption interface{} `json:"partitionOption,omitempty"` // The settings that will be leveraged for teradata source partitioning. PartitionSettings *[TeradataPartitionSettings](#TeradataPartitionSettings) `json:"partitionSettings,omitempty"` // Teradata query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` TeradataSource - A copy activity Teradata source. #### func (*TeradataSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28581) [¶](#TeradataSource.GetCopySource) added in v0.2.0 ``` func (t *[TeradataSource](#TeradataSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type TeradataSource. #### func (*TeradataSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28593) [¶](#TeradataSource.GetTabularSource) added in v0.2.0 ``` func (t *[TeradataSource](#TeradataSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type TeradataSource. #### func (TeradataSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48958) [¶](#TeradataSource.MarshalJSON) ``` func (t [TeradataSource](#TeradataSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TeradataSource. #### func (*TeradataSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L48979) [¶](#TeradataSource.UnmarshalJSON) ``` func (t *[TeradataSource](#TeradataSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TeradataSource. #### type [TeradataTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28607) [¶](#TeradataTableDataset) ``` type TeradataTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Teradata dataset properties. TypeProperties *[TeradataTableDatasetTypeProperties](#TeradataTableDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` TeradataTableDataset - The Teradata database dataset. #### func (*TeradataTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28641) [¶](#TeradataTableDataset.GetDataset) added in v0.2.0 ``` func (t *[TeradataTableDataset](#TeradataTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type TeradataTableDataset. #### func (TeradataTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49036) [¶](#TeradataTableDataset.MarshalJSON) ``` func (t [TeradataTableDataset](#TeradataTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TeradataTableDataset. #### func (*TeradataTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49056) [¶](#TeradataTableDataset.UnmarshalJSON) ``` func (t *[TeradataTableDataset](#TeradataTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TeradataTableDataset. #### type [TeradataTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28656) [¶](#TeradataTableDatasetTypeProperties) ``` type TeradataTableDatasetTypeProperties struct { // The database name of Teradata. Type: string (or Expression with resultType string). Database interface{} `json:"database,omitempty"` // The table name of Teradata. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } ``` TeradataTableDatasetTypeProperties - Teradata dataset properties. #### func (TeradataTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49110) [¶](#TeradataTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (t [TeradataTableDatasetTypeProperties](#TeradataTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TeradataTableDatasetTypeProperties. #### func (*TeradataTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49118) [¶](#TeradataTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (t *[TeradataTableDatasetTypeProperties](#TeradataTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TeradataTableDatasetTypeProperties. #### type [TextFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28665) [¶](#TextFormat) ``` type TextFormat struct { // REQUIRED; Type of dataset storage format. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // The column delimiter. Type: string (or Expression with resultType string). ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` // Deserializer. Type: string (or Expression with resultType string). Deserializer interface{} `json:"deserializer,omitempty"` // The code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode // encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the following link // to set supported values: <https://msdn.microsoft.com/library/system.text.encoding.aspx>. Type: string (or Expression with // resultType string). EncodingName interface{} `json:"encodingName,omitempty"` // The escape character. Type: string (or Expression with resultType string). EscapeChar interface{} `json:"escapeChar,omitempty"` // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` // The null value string. Type: string (or Expression with resultType string). NullValue interface{} `json:"nullValue,omitempty"` // The quote character. Type: string (or Expression with resultType string). QuoteChar interface{} `json:"quoteChar,omitempty"` // The row delimiter. Type: string (or Expression with resultType string). RowDelimiter interface{} `json:"rowDelimiter,omitempty"` // Serializer. Type: string (or Expression with resultType string). Serializer interface{} `json:"serializer,omitempty"` // The number of lines/rows to be skipped when parsing text files. The default value is 0. Type: integer (or Expression with // resultType integer). SkipLineCount interface{} `json:"skipLineCount,omitempty"` // Treat empty column values in the text file as null. The default value is true. Type: boolean (or Expression with resultType // boolean). TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` } ``` TextFormat - The data stored in text format. #### func (*TextFormat) [GetDatasetStorageFormat](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28714) [¶](#TextFormat.GetDatasetStorageFormat) added in v0.2.0 ``` func (t *[TextFormat](#TextFormat)) GetDatasetStorageFormat() *[DatasetStorageFormat](#DatasetStorageFormat) ``` GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type TextFormat. #### func (TextFormat) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49141) [¶](#TextFormat.MarshalJSON) ``` func (t [TextFormat](#TextFormat)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TextFormat. #### func (*TextFormat) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49164) [¶](#TextFormat.UnmarshalJSON) ``` func (t *[TextFormat](#TextFormat)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TextFormat. #### type [Transformation](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28724) [¶](#Transformation) ``` type Transformation struct { // REQUIRED; Transformation name. Name *[string](/builtin#string) `json:"name,omitempty"` // Dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // Transformation description. Description *[string](/builtin#string) `json:"description,omitempty"` // Flowlet Reference Flowlet *[DataFlowReference](#DataFlowReference) `json:"flowlet,omitempty"` // Linked service reference. LinkedService *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedService,omitempty"` } ``` Transformation - A data flow transformation. #### func (Transformation) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49227) [¶](#Transformation.MarshalJSON) added in v1.3.0 ``` func (t [Transformation](#Transformation)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Transformation. #### func (*Transformation) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49238) [¶](#Transformation.UnmarshalJSON) added in v1.3.0 ``` func (t *[Transformation](#Transformation)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Transformation. #### type [Trigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28752) [¶](#Trigger) ``` type Trigger struct { // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` Trigger - Azure data factory nested object which contains information about creating pipeline run #### func (*Trigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28770) [¶](#Trigger.GetTrigger) ``` func (t *[Trigger](#Trigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type Trigger. #### func (Trigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49270) [¶](#Trigger.MarshalJSON) added in v0.2.0 ``` func (t [Trigger](#Trigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type Trigger. #### func (*Trigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49285) [¶](#Trigger.UnmarshalJSON) ``` func (t *[Trigger](#Trigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type Trigger. #### type [TriggerClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28746) [¶](#TriggerClassification) ``` type TriggerClassification interface { // GetTrigger returns the Trigger content of the underlying type. GetTrigger() *[Trigger](#Trigger) } ``` TriggerClassification provides polymorphic access to related types. Call the interface's GetTrigger() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *BlobEventsTrigger, *BlobTrigger, *ChainingTrigger, *CustomEventsTrigger, *MultiplePipelineTrigger, *RerunTumblingWindowTrigger, - *ScheduleTrigger, *Trigger, *TumblingWindowTrigger #### type [TriggerDependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28783) [¶](#TriggerDependencyReference) ``` type TriggerDependencyReference struct { // REQUIRED; Referenced trigger. ReferenceTrigger *[TriggerReference](#TriggerReference) `json:"referenceTrigger,omitempty"` // REQUIRED; The type of dependency reference. Type *[string](/builtin#string) `json:"type,omitempty"` } ``` TriggerDependencyReference - Trigger referenced dependency. #### func (*TriggerDependencyReference) [GetDependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28792) [¶](#TriggerDependencyReference.GetDependencyReference) added in v0.2.0 ``` func (t *[TriggerDependencyReference](#TriggerDependencyReference)) GetDependencyReference() *[DependencyReference](#DependencyReference) ``` GetDependencyReference implements the DependencyReferenceClassification interface for type TriggerDependencyReference. #### func (*TriggerDependencyReference) [GetTriggerDependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28799) [¶](#TriggerDependencyReference.GetTriggerDependencyReference) ``` func (t *[TriggerDependencyReference](#TriggerDependencyReference)) GetTriggerDependencyReference() *[TriggerDependencyReference](#TriggerDependencyReference) ``` GetTriggerDependencyReference implements the TriggerDependencyReferenceClassification interface for type TriggerDependencyReference. #### func (TriggerDependencyReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49324) [¶](#TriggerDependencyReference.MarshalJSON) ``` func (t [TriggerDependencyReference](#TriggerDependencyReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerDependencyReference. #### func (*TriggerDependencyReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49332) [¶](#TriggerDependencyReference.UnmarshalJSON) ``` func (t *[TriggerDependencyReference](#TriggerDependencyReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerDependencyReference. #### type [TriggerDependencyReferenceClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28776) [¶](#TriggerDependencyReferenceClassification) ``` type TriggerDependencyReferenceClassification interface { [DependencyReferenceClassification](#DependencyReferenceClassification) // GetTriggerDependencyReference returns the TriggerDependencyReference content of the underlying type. GetTriggerDependencyReference() *[TriggerDependencyReference](#TriggerDependencyReference) } ``` TriggerDependencyReferenceClassification provides polymorphic access to related types. Call the interface's GetTriggerDependencyReference() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *TriggerDependencyReference, *TumblingWindowTriggerDependencyReference #### type [TriggerFilterParameters](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28804) [¶](#TriggerFilterParameters) ``` type TriggerFilterParameters struct { // The continuation token for getting the next page of results. Null for first page. ContinuationToken *[string](/builtin#string) `json:"continuationToken,omitempty"` // The name of the parent TumblingWindowTrigger to get the child rerun triggers ParentTriggerName *[string](/builtin#string) `json:"parentTriggerName,omitempty"` } ``` TriggerFilterParameters - Query parameters for triggers. #### func (TriggerFilterParameters) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49355) [¶](#TriggerFilterParameters.MarshalJSON) added in v1.3.0 ``` func (t [TriggerFilterParameters](#TriggerFilterParameters)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerFilterParameters. #### func (*TriggerFilterParameters) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49363) [¶](#TriggerFilterParameters.UnmarshalJSON) added in v1.3.0 ``` func (t *[TriggerFilterParameters](#TriggerFilterParameters)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerFilterParameters. #### type [TriggerListResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28813) [¶](#TriggerListResponse) ``` type TriggerListResponse struct { // REQUIRED; List of triggers. Value []*[TriggerResource](#TriggerResource) `json:"value,omitempty"` // The link to the next page of results, if any remaining results exist. NextLink *[string](/builtin#string) `json:"nextLink,omitempty"` } ``` TriggerListResponse - A list of trigger resources. #### func (TriggerListResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49386) [¶](#TriggerListResponse.MarshalJSON) ``` func (t [TriggerListResponse](#TriggerListResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerListResponse. #### func (*TriggerListResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49394) [¶](#TriggerListResponse.UnmarshalJSON) added in v1.3.0 ``` func (t *[TriggerListResponse](#TriggerListResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerListResponse. #### type [TriggerPipelineReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28822) [¶](#TriggerPipelineReference) ``` type TriggerPipelineReference struct { // Pipeline parameters. Parameters map[[string](/builtin#string)]interface{} `json:"parameters,omitempty"` // Pipeline reference. PipelineReference *[PipelineReference](#PipelineReference) `json:"pipelineReference,omitempty"` } ``` TriggerPipelineReference - Pipeline that needs to be triggered with the given parameters. #### func (TriggerPipelineReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49417) [¶](#TriggerPipelineReference.MarshalJSON) ``` func (t [TriggerPipelineReference](#TriggerPipelineReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerPipelineReference. #### func (*TriggerPipelineReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49425) [¶](#TriggerPipelineReference.UnmarshalJSON) added in v1.3.0 ``` func (t *[TriggerPipelineReference](#TriggerPipelineReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerPipelineReference. #### type [TriggerQueryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28831) [¶](#TriggerQueryResponse) ``` type TriggerQueryResponse struct { // REQUIRED; List of triggers. Value []*[TriggerResource](#TriggerResource) `json:"value,omitempty"` // The continuation token for getting the next page of results, if any remaining results exist, null otherwise. ContinuationToken *[string](/builtin#string) `json:"continuationToken,omitempty"` } ``` TriggerQueryResponse - A query of triggers. #### func (TriggerQueryResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49448) [¶](#TriggerQueryResponse.MarshalJSON) ``` func (t [TriggerQueryResponse](#TriggerQueryResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerQueryResponse. #### func (*TriggerQueryResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49456) [¶](#TriggerQueryResponse.UnmarshalJSON) added in v1.3.0 ``` func (t *[TriggerQueryResponse](#TriggerQueryResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerQueryResponse. #### type [TriggerReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28840) [¶](#TriggerReference) ``` type TriggerReference struct { // REQUIRED; Reference trigger name. ReferenceName *[string](/builtin#string) `json:"referenceName,omitempty"` // REQUIRED; Trigger reference type. Type *[TriggerReferenceType](#TriggerReferenceType) `json:"type,omitempty"` } ``` TriggerReference - Trigger reference type. #### func (TriggerReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49479) [¶](#TriggerReference.MarshalJSON) added in v1.3.0 ``` func (t [TriggerReference](#TriggerReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerReference. #### func (*TriggerReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49487) [¶](#TriggerReference.UnmarshalJSON) added in v1.3.0 ``` func (t *[TriggerReference](#TriggerReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerReference. #### type [TriggerReferenceType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1987) [¶](#TriggerReferenceType) ``` type TriggerReferenceType [string](/builtin#string) ``` TriggerReferenceType - Trigger reference type. ``` const ( TriggerReferenceTypeTriggerReference [TriggerReferenceType](#TriggerReferenceType) = "TriggerReference" ) ``` #### func [PossibleTriggerReferenceTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L1994) [¶](#PossibleTriggerReferenceTypeValues) ``` func PossibleTriggerReferenceTypeValues() [][TriggerReferenceType](#TriggerReferenceType) ``` PossibleTriggerReferenceTypeValues returns the possible values for the TriggerReferenceType const type. #### type [TriggerResource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28849) [¶](#TriggerResource) ``` type TriggerResource struct { // REQUIRED; Properties of the trigger. Properties [TriggerClassification](#TriggerClassification) `json:"properties,omitempty"` // READ-ONLY; Etag identifies change in the resource. Etag *[string](/builtin#string) `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource identifier. ID *[string](/builtin#string) `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *[string](/builtin#string) `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *[string](/builtin#string) `json:"type,omitempty" azure:"ro"` } ``` TriggerResource - Trigger resource type. #### func (TriggerResource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49510) [¶](#TriggerResource.MarshalJSON) ``` func (t [TriggerResource](#TriggerResource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerResource. #### func (*TriggerResource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49521) [¶](#TriggerResource.UnmarshalJSON) ``` func (t *[TriggerResource](#TriggerResource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerResource. #### type [TriggerRun](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28867) [¶](#TriggerRun) ``` type TriggerRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // READ-ONLY; Status of the upstream pipelines. DependencyStatus map[[string](/builtin#string)]interface{} `json:"dependencyStatus,omitempty" azure:"ro"` // READ-ONLY; Trigger error message. Message *[string](/builtin#string) `json:"message,omitempty" azure:"ro"` // READ-ONLY; List of property name and value related to trigger run. Name, value pair depends on type of trigger. Properties map[[string](/builtin#string)]*[string](/builtin#string) `json:"properties,omitempty" azure:"ro"` // READ-ONLY; Run dimension for which trigger was fired. RunDimension map[[string](/builtin#string)]*[string](/builtin#string) `json:"runDimension,omitempty" azure:"ro"` // READ-ONLY; Trigger run status. Status *[TriggerRunStatus](#TriggerRunStatus) `json:"status,omitempty" azure:"ro"` // READ-ONLY; Trigger name. TriggerName *[string](/builtin#string) `json:"triggerName,omitempty" azure:"ro"` // READ-ONLY; Trigger run id. TriggerRunID *[string](/builtin#string) `json:"triggerRunId,omitempty" azure:"ro"` // READ-ONLY; Trigger run start time. TriggerRunTimestamp *[time](/time).[Time](/time#Time) `json:"triggerRunTimestamp,omitempty" azure:"ro"` // READ-ONLY; Trigger type. TriggerType *[string](/builtin#string) `json:"triggerType,omitempty" azure:"ro"` // READ-ONLY; List of pipeline name and run Id triggered by the trigger run. TriggeredPipelines map[[string](/builtin#string)]*[string](/builtin#string) `json:"triggeredPipelines,omitempty" azure:"ro"` } ``` TriggerRun - Trigger runs. #### func (TriggerRun) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49553) [¶](#TriggerRun.MarshalJSON) ``` func (t [TriggerRun](#TriggerRun)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerRun. #### func (*TriggerRun) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49574) [¶](#TriggerRun.UnmarshalJSON) ``` func (t *[TriggerRun](#TriggerRun)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerRun. #### type [TriggerRunStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2001) [¶](#TriggerRunStatus) ``` type TriggerRunStatus [string](/builtin#string) ``` TriggerRunStatus - Trigger run status. ``` const ( TriggerRunStatusFailed [TriggerRunStatus](#TriggerRunStatus) = "Failed" TriggerRunStatusInprogress [TriggerRunStatus](#TriggerRunStatus) = "Inprogress" TriggerRunStatusSucceeded [TriggerRunStatus](#TriggerRunStatus) = "Succeeded" ) ``` #### func [PossibleTriggerRunStatusValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2010) [¶](#PossibleTriggerRunStatusValues) ``` func PossibleTriggerRunStatusValues() [][TriggerRunStatus](#TriggerRunStatus) ``` PossibleTriggerRunStatusValues returns the possible values for the TriggerRunStatus const type. #### type [TriggerRunsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go#L28) [¶](#TriggerRunsClient) ``` type TriggerRunsClient struct { // contains filtered or unexported fields } ``` TriggerRunsClient contains the methods for the TriggerRuns group. Don't use this type directly, use NewTriggerRunsClient() instead. #### func [NewTriggerRunsClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go#L38) [¶](#NewTriggerRunsClient) ``` func NewTriggerRunsClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[TriggerRunsClient](#TriggerRunsClient), [error](/builtin#error)) ``` NewTriggerRunsClient creates a new instance of TriggerRunsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*TriggerRunsClient) [Cancel](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go#L66) [¶](#TriggerRunsClient.Cancel) ``` func (client *[TriggerRunsClient](#TriggerRunsClient)) Cancel(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), runID [string](/builtin#string), options *[TriggerRunsClientCancelOptions](#TriggerRunsClientCancelOptions)) ([TriggerRunsClientCancelResponse](#TriggerRunsClientCancelResponse), [error](/builtin#error)) ``` Cancel - Cancel a single trigger instance by runId. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. runID - The pipeline run identifier. options - TriggerRunsClientCancelOptions contains the optional parameters for the TriggerRunsClient.Cancel method. Example [¶](#example-TriggerRunsClient.Cancel) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggerRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Cancel(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*TriggerRunsClient) [QueryByFactory](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go#L123) [¶](#TriggerRunsClient.QueryByFactory) ``` func (client *[TriggerRunsClient](#TriggerRunsClient)) QueryByFactory(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), filterParameters [RunFilterParameters](#RunFilterParameters), options *[TriggerRunsClientQueryByFactoryOptions](#TriggerRunsClientQueryByFactoryOptions)) ([TriggerRunsClientQueryByFactoryResponse](#TriggerRunsClientQueryByFactoryResponse), [error](/builtin#error)) ``` QueryByFactory - Query trigger runs. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. filterParameters - Parameters to filter the pipeline run. options - TriggerRunsClientQueryByFactoryOptions contains the optional parameters for the TriggerRunsClient.QueryByFactory method. Example [¶](#example-TriggerRunsClient.QueryByFactory) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json> ``` package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggerRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.QueryByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.RunFilterParameters{ Filters: []*armdatafactory.RunQueryFilter{ { Operand: to.Ptr(armdatafactory.RunQueryFilterOperandTriggerName), Operator: to.Ptr(armdatafactory.RunQueryFilterOperatorEquals), Values: []*string{ to.Ptr("exampleTrigger")}, }}, LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*TriggerRunsClient) [Rerun](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go#L181) [¶](#TriggerRunsClient.Rerun) ``` func (client *[TriggerRunsClient](#TriggerRunsClient)) Rerun(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), runID [string](/builtin#string), options *[TriggerRunsClientRerunOptions](#TriggerRunsClientRerunOptions)) ([TriggerRunsClientRerunResponse](#TriggerRunsClientRerunResponse), [error](/builtin#error)) ``` Rerun - Rerun single trigger instance by runId. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. runID - The pipeline run identifier. options - TriggerRunsClientRerunOptions contains the optional parameters for the TriggerRunsClient.Rerun method. Example [¶](#example-TriggerRunsClient.Rerun) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggerRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Rerun(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### type [TriggerRunsClientCancelOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28903) [¶](#TriggerRunsClientCancelOptions) added in v0.2.0 ``` type TriggerRunsClientCancelOptions struct { } ``` TriggerRunsClientCancelOptions contains the optional parameters for the TriggerRunsClient.Cancel method. #### type [TriggerRunsClientCancelResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L403) [¶](#TriggerRunsClientCancelResponse) added in v0.2.0 ``` type TriggerRunsClientCancelResponse struct { } ``` TriggerRunsClientCancelResponse contains the response from method TriggerRunsClient.Cancel. #### type [TriggerRunsClientQueryByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28908) [¶](#TriggerRunsClientQueryByFactoryOptions) added in v0.2.0 ``` type TriggerRunsClientQueryByFactoryOptions struct { } ``` TriggerRunsClientQueryByFactoryOptions contains the optional parameters for the TriggerRunsClient.QueryByFactory method. #### type [TriggerRunsClientQueryByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L408) [¶](#TriggerRunsClientQueryByFactoryResponse) added in v0.2.0 ``` type TriggerRunsClientQueryByFactoryResponse struct { [TriggerRunsQueryResponse](#TriggerRunsQueryResponse) } ``` TriggerRunsClientQueryByFactoryResponse contains the response from method TriggerRunsClient.QueryByFactory. #### type [TriggerRunsClientRerunOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28913) [¶](#TriggerRunsClientRerunOptions) added in v0.2.0 ``` type TriggerRunsClientRerunOptions struct { } ``` TriggerRunsClientRerunOptions contains the optional parameters for the TriggerRunsClient.Rerun method. #### type [TriggerRunsClientRerunResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L413) [¶](#TriggerRunsClientRerunResponse) added in v0.2.0 ``` type TriggerRunsClientRerunResponse struct { } ``` TriggerRunsClientRerunResponse contains the response from method TriggerRunsClient.Rerun. #### type [TriggerRunsQueryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28918) [¶](#TriggerRunsQueryResponse) ``` type TriggerRunsQueryResponse struct { // REQUIRED; List of trigger runs. Value []*[TriggerRun](#TriggerRun) `json:"value,omitempty"` // The continuation token for getting the next page of results, if any remaining results exist, null otherwise. ContinuationToken *[string](/builtin#string) `json:"continuationToken,omitempty"` } ``` TriggerRunsQueryResponse - A list of trigger runs. #### func (TriggerRunsQueryResponse) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49631) [¶](#TriggerRunsQueryResponse.MarshalJSON) ``` func (t [TriggerRunsQueryResponse](#TriggerRunsQueryResponse)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerRunsQueryResponse. #### func (*TriggerRunsQueryResponse) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49639) [¶](#TriggerRunsQueryResponse.UnmarshalJSON) added in v1.3.0 ``` func (t *[TriggerRunsQueryResponse](#TriggerRunsQueryResponse)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerRunsQueryResponse. #### type [TriggerRuntimeState](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2019) [¶](#TriggerRuntimeState) ``` type TriggerRuntimeState [string](/builtin#string) ``` TriggerRuntimeState - Enumerates possible state of Triggers. ``` const ( TriggerRuntimeStateDisabled [TriggerRuntimeState](#TriggerRuntimeState) = "Disabled" TriggerRuntimeStateStarted [TriggerRuntimeState](#TriggerRuntimeState) = "Started" TriggerRuntimeStateStopped [TriggerRuntimeState](#TriggerRuntimeState) = "Stopped" ) ``` #### func [PossibleTriggerRuntimeStateValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2028) [¶](#PossibleTriggerRuntimeStateValues) ``` func PossibleTriggerRuntimeStateValues() [][TriggerRuntimeState](#TriggerRuntimeState) ``` PossibleTriggerRuntimeStateValues returns the possible values for the TriggerRuntimeState const type. #### type [TriggerSubscriptionOperationStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28927) [¶](#TriggerSubscriptionOperationStatus) ``` type TriggerSubscriptionOperationStatus struct { // READ-ONLY; Event Subscription Status. Status *[EventSubscriptionStatus](#EventSubscriptionStatus) `json:"status,omitempty" azure:"ro"` // READ-ONLY; Trigger name. TriggerName *[string](/builtin#string) `json:"triggerName,omitempty" azure:"ro"` } ``` TriggerSubscriptionOperationStatus - Defines the response of a trigger subscription operation. #### func (TriggerSubscriptionOperationStatus) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49662) [¶](#TriggerSubscriptionOperationStatus.MarshalJSON) added in v1.3.0 ``` func (t [TriggerSubscriptionOperationStatus](#TriggerSubscriptionOperationStatus)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TriggerSubscriptionOperationStatus. #### func (*TriggerSubscriptionOperationStatus) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49670) [¶](#TriggerSubscriptionOperationStatus.UnmarshalJSON) added in v1.3.0 ``` func (t *[TriggerSubscriptionOperationStatus](#TriggerSubscriptionOperationStatus)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TriggerSubscriptionOperationStatus. #### type [TriggersClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L28) [¶](#TriggersClient) ``` type TriggersClient struct { // contains filtered or unexported fields } ``` TriggersClient contains the methods for the Triggers group. Don't use this type directly, use NewTriggersClient() instead. #### func [NewTriggersClient](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L38) [¶](#NewTriggersClient) ``` func NewTriggersClient(subscriptionID [string](/builtin#string), credential [azcore](/github.com/Azure/azure-sdk-for-go/sdk/azcore).[TokenCredential](/github.com/Azure/azure-sdk-for-go/sdk/azcore#TokenCredential), options *[arm](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm).[ClientOptions](/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm#ClientOptions)) (*[TriggersClient](#TriggersClient), [error](/builtin#error)) ``` NewTriggersClient creates a new instance of TriggersClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values. #### func (*TriggersClient) [BeginStart](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L434) [¶](#TriggersClient.BeginStart) ``` func (client *[TriggersClient](#TriggersClient)) BeginStart(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), options *[TriggersClientBeginStartOptions](#TriggersClientBeginStartOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[TriggersClientStartResponse](#TriggersClientStartResponse)], [error](/builtin#error)) ``` BeginStart - Starts a trigger. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. options - TriggersClientBeginStartOptions contains the optional parameters for the TriggersClient.BeginStart method. Example [¶](#example-TriggersClient.BeginStart) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStart(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [BeginStop](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L501) [¶](#TriggersClient.BeginStop) ``` func (client *[TriggersClient](#TriggersClient)) BeginStop(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), options *[TriggersClientBeginStopOptions](#TriggersClientBeginStopOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[TriggersClientStopResponse](#TriggersClientStopResponse)], [error](/builtin#error)) ``` BeginStop - Stops a trigger. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. options - TriggersClientBeginStopOptions contains the optional parameters for the TriggersClient.BeginStop method. Example [¶](#example-TriggersClient.BeginStop) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStop(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [BeginSubscribeToEvents](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L569) [¶](#TriggersClient.BeginSubscribeToEvents) ``` func (client *[TriggersClient](#TriggersClient)) BeginSubscribeToEvents(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), options *[TriggersClientBeginSubscribeToEventsOptions](#TriggersClientBeginSubscribeToEventsOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[TriggersClientSubscribeToEventsResponse](#TriggersClientSubscribeToEventsResponse)], [error](/builtin#error)) ``` BeginSubscribeToEvents - Subscribe event trigger to events. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. options - TriggersClientBeginSubscribeToEventsOptions contains the optional parameters for the TriggersClient.BeginSubscribeToEvents method. Example [¶](#example-TriggersClient.BeginSubscribeToEvents) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginSubscribeToEvents(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [BeginUnsubscribeFromEvents](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L637) [¶](#TriggersClient.BeginUnsubscribeFromEvents) ``` func (client *[TriggersClient](#TriggersClient)) BeginUnsubscribeFromEvents(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), options *[TriggersClientBeginUnsubscribeFromEventsOptions](#TriggersClientBeginUnsubscribeFromEventsOptions)) (*[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Poller](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Poller)[[TriggersClientUnsubscribeFromEventsResponse](#TriggersClientUnsubscribeFromEventsResponse)], [error](/builtin#error)) ``` BeginUnsubscribeFromEvents - Unsubscribe event trigger from events. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. options - TriggersClientBeginUnsubscribeFromEventsOptions contains the optional parameters for the TriggersClient.BeginUnsubscribeFromEvents method. Example [¶](#example-TriggersClient.BeginUnsubscribeFromEvents) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUnsubscribeFromEvents(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L66) [¶](#TriggersClient.CreateOrUpdate) ``` func (client *[TriggersClient](#TriggersClient)) CreateOrUpdate(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), trigger [TriggerResource](#TriggerResource), options *[TriggersClientCreateOrUpdateOptions](#TriggersClientCreateOrUpdateOptions)) ([TriggersClientCreateOrUpdateResponse](#TriggersClientCreateOrUpdateResponse), [error](/builtin#error)) ``` CreateOrUpdate - Creates or updates a trigger. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. trigger - Trigger resource definition. options - TriggersClientCreateOrUpdateOptions contains the optional parameters for the TriggersClient.CreateOrUpdate method. Example (TriggersCreate) [¶](#example-TriggersClient.CreateOrUpdate-TriggersCreate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json> ``` package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", armdatafactory.TriggerResource{ Properties: &armdatafactory.ScheduleTrigger{ Type: to.Ptr("ScheduleTrigger"), Pipelines: []*armdatafactory.TriggerPipelineReference{ { Parameters: map[string]interface{}{ "OutputBlobNameList": []interface{}{ "exampleoutput.csv", }, }, PipelineReference: &armdatafactory.PipelineReference{ Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), ReferenceName: to.Ptr("examplePipeline"), }, }}, TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:13.8441801Z"); return t }()), Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), Interval: to.Ptr[int32](4), StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:13.8441801Z"); return t }()), TimeZone: to.Ptr("UTC"), }, }, }, }, &armdatafactory.TriggersClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run Example (TriggersUpdate) [¶](#example-TriggersClient.CreateOrUpdate-TriggersUpdate) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json> ``` package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", armdatafactory.TriggerResource{ Properties: &armdatafactory.ScheduleTrigger{ Type: to.Ptr("ScheduleTrigger"), Description: to.Ptr("Example description"), Pipelines: []*armdatafactory.TriggerPipelineReference{ { Parameters: map[string]interface{}{ "OutputBlobNameList": []interface{}{ "exampleoutput.csv", }, }, PipelineReference: &armdatafactory.PipelineReference{ Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), ReferenceName: to.Ptr("examplePipeline"), }, }}, TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:14.905167Z"); return t }()), Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), Interval: to.Ptr[int32](4), StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905167Z"); return t }()), TimeZone: to.Ptr("UTC"), }, }, }, }, &armdatafactory.TriggersClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [Delete](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L130) [¶](#TriggersClient.Delete) ``` func (client *[TriggersClient](#TriggersClient)) Delete(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), options *[TriggersClientDeleteOptions](#TriggersClientDeleteOptions)) ([TriggersClientDeleteResponse](#TriggersClientDeleteResponse), [error](/builtin#error)) ``` Delete - Deletes a trigger. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. options - TriggersClientDeleteOptions contains the optional parameters for the TriggersClient.Delete method. Example [¶](#example-TriggersClient.Delete) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [Get](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L182) [¶](#TriggersClient.Get) ``` func (client *[TriggersClient](#TriggersClient)) Get(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), options *[TriggersClientGetOptions](#TriggersClientGetOptions)) ([TriggersClientGetResponse](#TriggersClientGetResponse), [error](/builtin#error)) ``` Get - Gets a trigger. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. options - TriggersClientGetOptions contains the optional parameters for the TriggersClient.Get method. Example [¶](#example-TriggersClient.Get) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", &armdatafactory.TriggersClientGetOptions{IfNoneMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [GetEventSubscriptionStatus](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L247) [¶](#TriggersClient.GetEventSubscriptionStatus) ``` func (client *[TriggersClient](#TriggersClient)) GetEventSubscriptionStatus(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), triggerName [string](/builtin#string), options *[TriggersClientGetEventSubscriptionStatusOptions](#TriggersClientGetEventSubscriptionStatusOptions)) ([TriggersClientGetEventSubscriptionStatusResponse](#TriggersClientGetEventSubscriptionStatusResponse), [error](/builtin#error)) ``` GetEventSubscriptionStatus - Get a trigger's event subscription status. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. triggerName - The trigger name. options - TriggersClientGetEventSubscriptionStatusOptions contains the optional parameters for the TriggersClient.GetEventSubscriptionStatus method. Example [¶](#example-TriggersClient.GetEventSubscriptionStatus) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetEventSubscriptionStatus(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [NewListByFactoryPager](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L307) [¶](#TriggersClient.NewListByFactoryPager) added in v0.5.0 ``` func (client *[TriggersClient](#TriggersClient)) NewListByFactoryPager(resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), options *[TriggersClientListByFactoryOptions](#TriggersClientListByFactoryOptions)) *[runtime](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime).[Pager](/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#Pager)[[TriggersClientListByFactoryResponse](#TriggersClientListByFactoryResponse)] ``` NewListByFactoryPager - Lists triggers. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. options - TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.ListByFactory method. Example [¶](#example-TriggersClient.NewListByFactoryPager) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } ``` ``` Output: ``` Share Format Run #### func (*TriggersClient) [QueryByFactory](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go#L377) [¶](#TriggersClient.QueryByFactory) ``` func (client *[TriggersClient](#TriggersClient)) QueryByFactory(ctx [context](/context).[Context](/context#Context), resourceGroupName [string](/builtin#string), factoryName [string](/builtin#string), filterParameters [TriggerFilterParameters](#TriggerFilterParameters), options *[TriggersClientQueryByFactoryOptions](#TriggersClientQueryByFactoryOptions)) ([TriggersClientQueryByFactoryResponse](#TriggersClientQueryByFactoryResponse), [error](/builtin#error)) ``` QueryByFactory - Query triggers. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2018-06-01 resourceGroupName - The resource group name. factoryName - The factory name. filterParameters - Parameters to filter the triggers. options - TriggersClientQueryByFactoryOptions contains the optional parameters for the TriggersClient.QueryByFactory method. Example [¶](#example-TriggersClient.QueryByFactory) Generated from example definition: <https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json> ``` package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.QueryByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.TriggerFilterParameters{ ParentTriggerName: to.Ptr("exampleTrigger"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res } ``` ``` Output: ``` Share Format Run #### type [TriggersClientBeginStartOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28936) [¶](#TriggersClientBeginStartOptions) added in v0.2.0 ``` type TriggersClientBeginStartOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` TriggersClientBeginStartOptions contains the optional parameters for the TriggersClient.BeginStart method. #### type [TriggersClientBeginStopOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28942) [¶](#TriggersClientBeginStopOptions) added in v0.2.0 ``` type TriggersClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` TriggersClientBeginStopOptions contains the optional parameters for the TriggersClient.BeginStop method. #### type [TriggersClientBeginSubscribeToEventsOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28949) [¶](#TriggersClientBeginSubscribeToEventsOptions) added in v0.2.0 ``` type TriggersClientBeginSubscribeToEventsOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` TriggersClientBeginSubscribeToEventsOptions contains the optional parameters for the TriggersClient.BeginSubscribeToEvents method. #### type [TriggersClientBeginUnsubscribeFromEventsOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28956) [¶](#TriggersClientBeginUnsubscribeFromEventsOptions) added in v0.2.0 ``` type TriggersClientBeginUnsubscribeFromEventsOptions struct { // Resumes the LRO from the provided token. ResumeToken [string](/builtin#string) } ``` TriggersClientBeginUnsubscribeFromEventsOptions contains the optional parameters for the TriggersClient.BeginUnsubscribeFromEvents method. #### type [TriggersClientCreateOrUpdateOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28962) [¶](#TriggersClientCreateOrUpdateOptions) added in v0.2.0 ``` type TriggersClientCreateOrUpdateOptions struct { // ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * // for unconditional update. IfMatch *[string](/builtin#string) } ``` TriggersClientCreateOrUpdateOptions contains the optional parameters for the TriggersClient.CreateOrUpdate method. #### type [TriggersClientCreateOrUpdateResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L418) [¶](#TriggersClientCreateOrUpdateResponse) added in v0.2.0 ``` type TriggersClientCreateOrUpdateResponse struct { [TriggerResource](#TriggerResource) } ``` TriggersClientCreateOrUpdateResponse contains the response from method TriggersClient.CreateOrUpdate. #### type [TriggersClientDeleteOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28969) [¶](#TriggersClientDeleteOptions) added in v0.2.0 ``` type TriggersClientDeleteOptions struct { } ``` TriggersClientDeleteOptions contains the optional parameters for the TriggersClient.Delete method. #### type [TriggersClientDeleteResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L423) [¶](#TriggersClientDeleteResponse) added in v0.2.0 ``` type TriggersClientDeleteResponse struct { } ``` TriggersClientDeleteResponse contains the response from method TriggersClient.Delete. #### type [TriggersClientGetEventSubscriptionStatusOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28975) [¶](#TriggersClientGetEventSubscriptionStatusOptions) added in v0.2.0 ``` type TriggersClientGetEventSubscriptionStatusOptions struct { } ``` TriggersClientGetEventSubscriptionStatusOptions contains the optional parameters for the TriggersClient.GetEventSubscriptionStatus method. #### type [TriggersClientGetEventSubscriptionStatusResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L428) [¶](#TriggersClientGetEventSubscriptionStatusResponse) added in v0.2.0 ``` type TriggersClientGetEventSubscriptionStatusResponse struct { [TriggerSubscriptionOperationStatus](#TriggerSubscriptionOperationStatus) } ``` TriggersClientGetEventSubscriptionStatusResponse contains the response from method TriggersClient.GetEventSubscriptionStatus. #### type [TriggersClientGetOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28980) [¶](#TriggersClientGetOptions) added in v0.2.0 ``` type TriggersClientGetOptions struct { // ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was // provided, then no content will be returned. IfNoneMatch *[string](/builtin#string) } ``` TriggersClientGetOptions contains the optional parameters for the TriggersClient.Get method. #### type [TriggersClientGetResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L433) [¶](#TriggersClientGetResponse) added in v0.2.0 ``` type TriggersClientGetResponse struct { [TriggerResource](#TriggerResource) } ``` TriggersClientGetResponse contains the response from method TriggersClient.Get. #### type [TriggersClientListByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28987) [¶](#TriggersClientListByFactoryOptions) added in v0.2.0 ``` type TriggersClientListByFactoryOptions struct { } ``` TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.ListByFactory method. #### type [TriggersClientListByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L438) [¶](#TriggersClientListByFactoryResponse) added in v0.2.0 ``` type TriggersClientListByFactoryResponse struct { [TriggerListResponse](#TriggerListResponse) } ``` TriggersClientListByFactoryResponse contains the response from method TriggersClient.ListByFactory. #### type [TriggersClientQueryByFactoryOptions](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28992) [¶](#TriggersClientQueryByFactoryOptions) added in v0.2.0 ``` type TriggersClientQueryByFactoryOptions struct { } ``` TriggersClientQueryByFactoryOptions contains the optional parameters for the TriggersClient.QueryByFactory method. #### type [TriggersClientQueryByFactoryResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L443) [¶](#TriggersClientQueryByFactoryResponse) added in v0.2.0 ``` type TriggersClientQueryByFactoryResponse struct { [TriggerQueryResponse](#TriggerQueryResponse) } ``` TriggersClientQueryByFactoryResponse contains the response from method TriggersClient.QueryByFactory. #### type [TriggersClientStartResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L448) [¶](#TriggersClientStartResponse) added in v0.2.0 ``` type TriggersClientStartResponse struct { } ``` TriggersClientStartResponse contains the response from method TriggersClient.Start. #### type [TriggersClientStopResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L453) [¶](#TriggersClientStopResponse) added in v0.2.0 ``` type TriggersClientStopResponse struct { } ``` TriggersClientStopResponse contains the response from method TriggersClient.Stop. #### type [TriggersClientSubscribeToEventsResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L458) [¶](#TriggersClientSubscribeToEventsResponse) added in v0.2.0 ``` type TriggersClientSubscribeToEventsResponse struct { [TriggerSubscriptionOperationStatus](#TriggerSubscriptionOperationStatus) } ``` TriggersClientSubscribeToEventsResponse contains the response from method TriggersClient.SubscribeToEvents. #### type [TriggersClientUnsubscribeFromEventsResponse](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/response_types.go#L463) [¶](#TriggersClientUnsubscribeFromEventsResponse) added in v0.2.0 ``` type TriggersClientUnsubscribeFromEventsResponse struct { [TriggerSubscriptionOperationStatus](#TriggerSubscriptionOperationStatus) } ``` TriggersClientUnsubscribeFromEventsResponse contains the response from method TriggersClient.UnsubscribeFromEvents. #### type [TumblingWindowFrequency](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2037) [¶](#TumblingWindowFrequency) ``` type TumblingWindowFrequency [string](/builtin#string) ``` TumblingWindowFrequency - Enumerates possible frequency option for the tumbling window trigger. ``` const ( TumblingWindowFrequencyHour [TumblingWindowFrequency](#TumblingWindowFrequency) = "Hour" TumblingWindowFrequencyMinute [TumblingWindowFrequency](#TumblingWindowFrequency) = "Minute" TumblingWindowFrequencyMonth [TumblingWindowFrequency](#TumblingWindowFrequency) = "Month" ) ``` #### func [PossibleTumblingWindowFrequencyValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2046) [¶](#PossibleTumblingWindowFrequencyValues) ``` func PossibleTumblingWindowFrequencyValues() [][TumblingWindowFrequency](#TumblingWindowFrequency) ``` PossibleTumblingWindowFrequencyValues returns the possible values for the TumblingWindowFrequency const type. #### type [TumblingWindowTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L28998) [¶](#TumblingWindowTrigger) ``` type TumblingWindowTrigger struct { // REQUIRED; Pipeline for which runs are created when an event is fired for trigger window that is ready. Pipeline *[TriggerPipelineReference](#TriggerPipelineReference) `json:"pipeline,omitempty"` // REQUIRED; Trigger type. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Tumbling Window Trigger properties. TypeProperties *[TumblingWindowTriggerTypeProperties](#TumblingWindowTriggerTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the trigger. Annotations []interface{} `json:"annotations,omitempty"` // Trigger description. Description *[string](/builtin#string) `json:"description,omitempty"` // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. RuntimeState *[TriggerRuntimeState](#TriggerRuntimeState) `json:"runtimeState,omitempty" azure:"ro"` } ``` TumblingWindowTrigger - Trigger that schedules pipeline runs for all fixed time interval windows from a start time without gaps and also supports backfill scenarios (when start time is in the past). #### func (*TumblingWindowTrigger) [GetTrigger](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29022) [¶](#TumblingWindowTrigger.GetTrigger) added in v0.2.0 ``` func (t *[TumblingWindowTrigger](#TumblingWindowTrigger)) GetTrigger() *[Trigger](#Trigger) ``` GetTrigger implements the TriggerClassification interface for type TumblingWindowTrigger. #### func (TumblingWindowTrigger) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49693) [¶](#TumblingWindowTrigger.MarshalJSON) ``` func (t [TumblingWindowTrigger](#TumblingWindowTrigger)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TumblingWindowTrigger. #### func (*TumblingWindowTrigger) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49710) [¶](#TumblingWindowTrigger.UnmarshalJSON) ``` func (t *[TumblingWindowTrigger](#TumblingWindowTrigger)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TumblingWindowTrigger. #### type [TumblingWindowTriggerDependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29033) [¶](#TumblingWindowTriggerDependencyReference) ``` type TumblingWindowTriggerDependencyReference struct { // REQUIRED; Referenced trigger. ReferenceTrigger *[TriggerReference](#TriggerReference) `json:"referenceTrigger,omitempty"` // REQUIRED; The type of dependency reference. Type *[string](/builtin#string) `json:"type,omitempty"` // Timespan applied to the start time of a tumbling window when evaluating dependency. Offset *[string](/builtin#string) `json:"offset,omitempty"` // The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. Size *[string](/builtin#string) `json:"size,omitempty"` } ``` TumblingWindowTriggerDependencyReference - Referenced tumbling window trigger dependency. #### func (*TumblingWindowTriggerDependencyReference) [GetDependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29048) [¶](#TumblingWindowTriggerDependencyReference.GetDependencyReference) added in v0.2.0 ``` func (t *[TumblingWindowTriggerDependencyReference](#TumblingWindowTriggerDependencyReference)) GetDependencyReference() *[DependencyReference](#DependencyReference) ``` GetDependencyReference implements the DependencyReferenceClassification interface for type TumblingWindowTriggerDependencyReference. #### func (*TumblingWindowTriggerDependencyReference) [GetTriggerDependencyReference](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29055) [¶](#TumblingWindowTriggerDependencyReference.GetTriggerDependencyReference) added in v0.2.0 ``` func (t *[TumblingWindowTriggerDependencyReference](#TumblingWindowTriggerDependencyReference)) GetTriggerDependencyReference() *[TriggerDependencyReference](#TriggerDependencyReference) ``` GetTriggerDependencyReference implements the TriggerDependencyReferenceClassification interface for type TumblingWindowTriggerDependencyReference. #### func (TumblingWindowTriggerDependencyReference) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49755) [¶](#TumblingWindowTriggerDependencyReference.MarshalJSON) ``` func (t [TumblingWindowTriggerDependencyReference](#TumblingWindowTriggerDependencyReference)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TumblingWindowTriggerDependencyReference. #### func (*TumblingWindowTriggerDependencyReference) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49765) [¶](#TumblingWindowTriggerDependencyReference.UnmarshalJSON) ``` func (t *[TumblingWindowTriggerDependencyReference](#TumblingWindowTriggerDependencyReference)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TumblingWindowTriggerDependencyReference. #### type [TumblingWindowTriggerTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29063) [¶](#TumblingWindowTriggerTypeProperties) ``` type TumblingWindowTriggerTypeProperties struct { // REQUIRED; The frequency of the time windows. Frequency *[TumblingWindowFrequency](#TumblingWindowFrequency) `json:"frequency,omitempty"` // REQUIRED; The interval of the time windows. The minimum interval allowed is 15 Minutes. Interval *[int32](/builtin#int32) `json:"interval,omitempty"` // REQUIRED; The max number of parallel time windows (ready for execution) for which a new run is triggered. MaxConcurrency *[int32](/builtin#int32) `json:"maxConcurrency,omitempty"` // REQUIRED; The start time for the time period for the trigger during which events are fired for windows that are ready. // Only UTC time is currently supported. StartTime *[time](/time).[Time](/time#Time) `json:"startTime,omitempty"` // Specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. // The default is 0. Type: string (or Expression with resultType string), // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Delay interface{} `json:"delay,omitempty"` // Triggers that this trigger depends on. Only tumbling window triggers are supported. DependsOn [][DependencyReferenceClassification](#DependencyReferenceClassification) `json:"dependsOn,omitempty"` // The end time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time // is currently supported. EndTime *[time](/time).[Time](/time#Time) `json:"endTime,omitempty"` // Retry policy that will be applied for failed pipeline runs. RetryPolicy *[RetryPolicy](#RetryPolicy) `json:"retryPolicy,omitempty"` } ``` TumblingWindowTriggerTypeProperties - Tumbling Window Trigger properties. #### func (TumblingWindowTriggerTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49794) [¶](#TumblingWindowTriggerTypeProperties.MarshalJSON) ``` func (t [TumblingWindowTriggerTypeProperties](#TumblingWindowTriggerTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TumblingWindowTriggerTypeProperties. #### func (*TumblingWindowTriggerTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49808) [¶](#TumblingWindowTriggerTypeProperties.UnmarshalJSON) ``` func (t *[TumblingWindowTriggerTypeProperties](#TumblingWindowTriggerTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TumblingWindowTriggerTypeProperties. #### type [TwilioLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29094) [¶](#TwilioLinkedService) added in v0.5.0 ``` type TwilioLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Twilio linked service properties. TypeProperties *[TwilioLinkedServiceTypeProperties](#TwilioLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` TwilioLinkedService - Linked service for Twilio. #### func (*TwilioLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29118) [¶](#TwilioLinkedService.GetLinkedService) added in v0.5.0 ``` func (t *[TwilioLinkedService](#TwilioLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type TwilioLinkedService. #### func (TwilioLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49849) [¶](#TwilioLinkedService.MarshalJSON) added in v0.5.0 ``` func (t [TwilioLinkedService](#TwilioLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TwilioLinkedService. #### func (*TwilioLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49866) [¶](#TwilioLinkedService.UnmarshalJSON) added in v0.5.0 ``` func (t *[TwilioLinkedService](#TwilioLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TwilioLinkedService. #### type [TwilioLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29130) [¶](#TwilioLinkedServiceTypeProperties) added in v0.5.0 ``` type TwilioLinkedServiceTypeProperties struct { // REQUIRED; The auth token of Twilio service. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // REQUIRED; The Account SID of Twilio service. UserName interface{} `json:"userName,omitempty"` } ``` TwilioLinkedServiceTypeProperties - Twilio linked service type properties. #### func (TwilioLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49911) [¶](#TwilioLinkedServiceTypeProperties.MarshalJSON) added in v0.5.0 ``` func (t [TwilioLinkedServiceTypeProperties](#TwilioLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TwilioLinkedServiceTypeProperties. #### func (*TwilioLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49919) [¶](#TwilioLinkedServiceTypeProperties.UnmarshalJSON) added in v0.5.0 ``` func (t *[TwilioLinkedServiceTypeProperties](#TwilioLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TwilioLinkedServiceTypeProperties. #### type [TypeConversionSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29139) [¶](#TypeConversionSettings) ``` type TypeConversionSettings struct { // Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean). AllowDataTruncation interface{} `json:"allowDataTruncation,omitempty"` // The culture used to convert data from/to string. Type: string (or Expression with resultType string). Culture interface{} `json:"culture,omitempty"` // The format for DateTime values. Type: string (or Expression with resultType string). DateTimeFormat interface{} `json:"dateTimeFormat,omitempty"` // The format for DateTimeOffset values. Type: string (or Expression with resultType string). DateTimeOffsetFormat interface{} `json:"dateTimeOffsetFormat,omitempty"` // The format for TimeSpan values. Type: string (or Expression with resultType string). TimeSpanFormat interface{} `json:"timeSpanFormat,omitempty"` // Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean). TreatBooleanAsNumber interface{} `json:"treatBooleanAsNumber,omitempty"` } ``` TypeConversionSettings - Type conversion settings #### func (TypeConversionSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49942) [¶](#TypeConversionSettings.MarshalJSON) added in v1.3.0 ``` func (t [TypeConversionSettings](#TypeConversionSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type TypeConversionSettings. #### func (*TypeConversionSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49954) [¶](#TypeConversionSettings.UnmarshalJSON) added in v1.3.0 ``` func (t *[TypeConversionSettings](#TypeConversionSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type TypeConversionSettings. #### type [UntilActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29161) [¶](#UntilActivity) ``` type UntilActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Until activity properties. TypeProperties *[UntilActivityTypeProperties](#UntilActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` UntilActivity - This activity executes inner activities until the specified boolean expression results to true or timeout is reached, whichever is earlier. #### func (*UntilActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29185) [¶](#UntilActivity.GetActivity) added in v0.2.0 ``` func (u *[UntilActivity](#UntilActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type UntilActivity. #### func (*UntilActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29197) [¶](#UntilActivity.GetControlActivity) added in v0.2.0 ``` func (u *[UntilActivity](#UntilActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type UntilActivity. #### func (UntilActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L49989) [¶](#UntilActivity.MarshalJSON) ``` func (u [UntilActivity](#UntilActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type UntilActivity. #### func (*UntilActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50006) [¶](#UntilActivity.UnmarshalJSON) ``` func (u *[UntilActivity](#UntilActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type UntilActivity. #### type [UntilActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29209) [¶](#UntilActivityTypeProperties) ``` type UntilActivityTypeProperties struct { // REQUIRED; List of activities to execute. Activities [][ActivityClassification](#ActivityClassification) `json:"activities,omitempty"` // REQUIRED; An expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true Expression *[Expression](#Expression) `json:"expression,omitempty"` // Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) // which is 1 week as default. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Timeout interface{} `json:"timeout,omitempty"` } ``` UntilActivityTypeProperties - Until activity properties. #### func (UntilActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50051) [¶](#UntilActivityTypeProperties.MarshalJSON) ``` func (u [UntilActivityTypeProperties](#UntilActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type UntilActivityTypeProperties. #### func (*UntilActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50060) [¶](#UntilActivityTypeProperties.UnmarshalJSON) ``` func (u *[UntilActivityTypeProperties](#UntilActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type UntilActivityTypeProperties. #### type [UpdateIntegrationRuntimeNodeRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29224) [¶](#UpdateIntegrationRuntimeNodeRequest) ``` type UpdateIntegrationRuntimeNodeRequest struct { // The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) // are allowed. ConcurrentJobsLimit *[int32](/builtin#int32) `json:"concurrentJobsLimit,omitempty"` } ``` UpdateIntegrationRuntimeNodeRequest - Update integration runtime node request. #### func (UpdateIntegrationRuntimeNodeRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50086) [¶](#UpdateIntegrationRuntimeNodeRequest.MarshalJSON) ``` func (u [UpdateIntegrationRuntimeNodeRequest](#UpdateIntegrationRuntimeNodeRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeNodeRequest. #### func (*UpdateIntegrationRuntimeNodeRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50093) [¶](#UpdateIntegrationRuntimeNodeRequest.UnmarshalJSON) added in v1.3.0 ``` func (u *[UpdateIntegrationRuntimeNodeRequest](#UpdateIntegrationRuntimeNodeRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type UpdateIntegrationRuntimeNodeRequest. #### type [UpdateIntegrationRuntimeRequest](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29231) [¶](#UpdateIntegrationRuntimeRequest) ``` type UpdateIntegrationRuntimeRequest struct { // Enables or disables the auto-update feature of the self-hosted integration runtime. See <https://go.microsoft.com/fwlink/?linkid=854189>. AutoUpdate *[IntegrationRuntimeAutoUpdate](#IntegrationRuntimeAutoUpdate) `json:"autoUpdate,omitempty"` // The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that // time. UpdateDelayOffset *[string](/builtin#string) `json:"updateDelayOffset,omitempty"` } ``` UpdateIntegrationRuntimeRequest - Update integration runtime request. #### func (UpdateIntegrationRuntimeRequest) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50113) [¶](#UpdateIntegrationRuntimeRequest.MarshalJSON) ``` func (u [UpdateIntegrationRuntimeRequest](#UpdateIntegrationRuntimeRequest)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeRequest. #### func (*UpdateIntegrationRuntimeRequest) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50121) [¶](#UpdateIntegrationRuntimeRequest.UnmarshalJSON) added in v1.3.0 ``` func (u *[UpdateIntegrationRuntimeRequest](#UpdateIntegrationRuntimeRequest)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type UpdateIntegrationRuntimeRequest. #### type [UserAccessPolicy](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29241) [¶](#UserAccessPolicy) ``` type UserAccessPolicy struct { // The resource path to get access relative to factory. Currently only empty string is supported which corresponds to the // factory resource. AccessResourcePath *[string](/builtin#string) `json:"accessResourcePath,omitempty"` // Expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight // hours. ExpireTime *[string](/builtin#string) `json:"expireTime,omitempty"` // The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access. Permissions *[string](/builtin#string) `json:"permissions,omitempty"` // The name of the profile. Currently only the default is supported. The default value is DefaultProfile. ProfileName *[string](/builtin#string) `json:"profileName,omitempty"` // Start time for the token. If not specified the current time will be used. StartTime *[string](/builtin#string) `json:"startTime,omitempty"` } ``` UserAccessPolicy - Get Data Plane read only token request definition. #### func (UserAccessPolicy) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50144) [¶](#UserAccessPolicy.MarshalJSON) added in v1.3.0 ``` func (u [UserAccessPolicy](#UserAccessPolicy)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type UserAccessPolicy. #### func (*UserAccessPolicy) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50155) [¶](#UserAccessPolicy.UnmarshalJSON) added in v1.3.0 ``` func (u *[UserAccessPolicy](#UserAccessPolicy)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type UserAccessPolicy. #### type [UserProperty](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29261) [¶](#UserProperty) ``` type UserProperty struct { // REQUIRED; User property name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; User property value. Type: string (or Expression with resultType string). Value interface{} `json:"value,omitempty"` } ``` UserProperty - User property. #### func (UserProperty) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50187) [¶](#UserProperty.MarshalJSON) added in v1.3.0 ``` func (u [UserProperty](#UserProperty)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type UserProperty. #### func (*UserProperty) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50195) [¶](#UserProperty.UnmarshalJSON) added in v1.3.0 ``` func (u *[UserProperty](#UserProperty)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type UserProperty. #### type [ValidationActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29270) [¶](#ValidationActivity) ``` type ValidationActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Validation activity properties. TypeProperties *[ValidationActivityTypeProperties](#ValidationActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` ValidationActivity - This activity verifies that an external resource exists. #### func (*ValidationActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29294) [¶](#ValidationActivity.GetActivity) added in v0.2.0 ``` func (v *[ValidationActivity](#ValidationActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type ValidationActivity. #### func (*ValidationActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29306) [¶](#ValidationActivity.GetControlActivity) added in v0.2.0 ``` func (v *[ValidationActivity](#ValidationActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type ValidationActivity. #### func (ValidationActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50218) [¶](#ValidationActivity.MarshalJSON) ``` func (v [ValidationActivity](#ValidationActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ValidationActivity. #### func (*ValidationActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50235) [¶](#ValidationActivity.UnmarshalJSON) ``` func (v *[ValidationActivity](#ValidationActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ValidationActivity. #### type [ValidationActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29318) [¶](#ValidationActivityTypeProperties) ``` type ValidationActivityTypeProperties struct { // REQUIRED; Validation activity dataset reference. Dataset *[DatasetReference](#DatasetReference) `json:"dataset,omitempty"` // Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the // folder must be empty. Type: boolean (or Expression with resultType boolean). ChildItems interface{} `json:"childItems,omitempty"` // Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer // (or Expression with resultType integer). MinimumSize interface{} `json:"minimumSize,omitempty"` // A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: // integer (or Expression with resultType integer). Sleep interface{} `json:"sleep,omitempty"` // Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) // which is 1 week as default. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Timeout interface{} `json:"timeout,omitempty"` } ``` ValidationActivityTypeProperties - Validation activity properties. #### func (ValidationActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50280) [¶](#ValidationActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (v [ValidationActivityTypeProperties](#ValidationActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ValidationActivityTypeProperties. #### func (*ValidationActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50291) [¶](#ValidationActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (v *[ValidationActivityTypeProperties](#ValidationActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ValidationActivityTypeProperties. #### type [VariableSpecification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29341) [¶](#VariableSpecification) ``` type VariableSpecification struct { // REQUIRED; Variable type. Type *[VariableType](#VariableType) `json:"type,omitempty"` // Default value of variable. DefaultValue interface{} `json:"defaultValue,omitempty"` } ``` VariableSpecification - Definition of a single variable for a Pipeline. #### func (VariableSpecification) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50323) [¶](#VariableSpecification.MarshalJSON) added in v1.3.0 ``` func (v [VariableSpecification](#VariableSpecification)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type VariableSpecification. #### func (*VariableSpecification) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50331) [¶](#VariableSpecification.UnmarshalJSON) added in v1.3.0 ``` func (v *[VariableSpecification](#VariableSpecification)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type VariableSpecification. #### type [VariableType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2055) [¶](#VariableType) ``` type VariableType [string](/builtin#string) ``` VariableType - Variable type. ``` const ( VariableTypeArray [VariableType](#VariableType) = "Array" VariableTypeBool [VariableType](#VariableType) = "Bool" VariableTypeString [VariableType](#VariableType) = "String" ) ``` #### func [PossibleVariableTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2064) [¶](#PossibleVariableTypeValues) ``` func PossibleVariableTypeValues() [][VariableType](#VariableType) ``` PossibleVariableTypeValues returns the possible values for the VariableType const type. #### type [VerticaDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29350) [¶](#VerticaDatasetTypeProperties) ``` type VerticaDatasetTypeProperties struct { // The schema name of the Vertica. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` // The table name of the Vertica. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` } ``` VerticaDatasetTypeProperties - Vertica Properties #### func (VerticaDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50354) [¶](#VerticaDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (v [VerticaDatasetTypeProperties](#VerticaDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type VerticaDatasetTypeProperties. #### func (*VerticaDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50363) [¶](#VerticaDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (v *[VerticaDatasetTypeProperties](#VerticaDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type VerticaDatasetTypeProperties. #### type [VerticaLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29362) [¶](#VerticaLinkedService) ``` type VerticaLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Vertica linked service properties. TypeProperties *[VerticaLinkedServiceTypeProperties](#VerticaLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` VerticaLinkedService - Vertica linked service. #### func (*VerticaLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29386) [¶](#VerticaLinkedService.GetLinkedService) added in v0.2.0 ``` func (v *[VerticaLinkedService](#VerticaLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type VerticaLinkedService. #### func (VerticaLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50389) [¶](#VerticaLinkedService.MarshalJSON) ``` func (v [VerticaLinkedService](#VerticaLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type VerticaLinkedService. #### func (*VerticaLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50406) [¶](#VerticaLinkedService.UnmarshalJSON) ``` func (v *[VerticaLinkedService](#VerticaLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type VerticaLinkedService. #### type [VerticaLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29398) [¶](#VerticaLinkedServiceTypeProperties) ``` type VerticaLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *[AzureKeyVaultSecretReference](#AzureKeyVaultSecretReference) `json:"pwd,omitempty"` } ``` VerticaLinkedServiceTypeProperties - Vertica linked service properties. #### func (VerticaLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50451) [¶](#VerticaLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (v [VerticaLinkedServiceTypeProperties](#VerticaLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type VerticaLinkedServiceTypeProperties. #### func (*VerticaLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50460) [¶](#VerticaLinkedServiceTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (v *[VerticaLinkedServiceTypeProperties](#VerticaLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type VerticaLinkedServiceTypeProperties. #### type [VerticaSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29411) [¶](#VerticaSource) ``` type VerticaSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` VerticaSource - A copy activity Vertica source. #### func (*VerticaSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29442) [¶](#VerticaSource.GetCopySource) added in v0.2.0 ``` func (v *[VerticaSource](#VerticaSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type VerticaSource. #### func (*VerticaSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29454) [¶](#VerticaSource.GetTabularSource) added in v0.2.0 ``` func (v *[VerticaSource](#VerticaSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type VerticaSource. #### func (VerticaSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50486) [¶](#VerticaSource.MarshalJSON) ``` func (v [VerticaSource](#VerticaSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type VerticaSource. #### func (*VerticaSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50505) [¶](#VerticaSource.UnmarshalJSON) ``` func (v *[VerticaSource](#VerticaSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type VerticaSource. #### type [VerticaTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29468) [¶](#VerticaTableDataset) ``` type VerticaTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[VerticaDatasetTypeProperties](#VerticaDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` VerticaTableDataset - Vertica dataset. #### func (*VerticaTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29502) [¶](#VerticaTableDataset.GetDataset) added in v0.2.0 ``` func (v *[VerticaTableDataset](#VerticaTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type VerticaTableDataset. #### func (VerticaTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50556) [¶](#VerticaTableDataset.MarshalJSON) ``` func (v [VerticaTableDataset](#VerticaTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type VerticaTableDataset. #### func (*VerticaTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50576) [¶](#VerticaTableDataset.UnmarshalJSON) ``` func (v *[VerticaTableDataset](#VerticaTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type VerticaTableDataset. #### type [WaitActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29517) [¶](#WaitActivity) ``` type WaitActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Wait activity properties. TypeProperties *[WaitActivityTypeProperties](#WaitActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` WaitActivity - This activity suspends pipeline execution for the specified interval. #### func (*WaitActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29541) [¶](#WaitActivity.GetActivity) added in v0.2.0 ``` func (w *[WaitActivity](#WaitActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type WaitActivity. #### func (*WaitActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29553) [¶](#WaitActivity.GetControlActivity) added in v0.2.0 ``` func (w *[WaitActivity](#WaitActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type WaitActivity. #### func (WaitActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50630) [¶](#WaitActivity.MarshalJSON) ``` func (w [WaitActivity](#WaitActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WaitActivity. #### func (*WaitActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50647) [¶](#WaitActivity.UnmarshalJSON) ``` func (w *[WaitActivity](#WaitActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WaitActivity. #### type [WaitActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29565) [¶](#WaitActivityTypeProperties) ``` type WaitActivityTypeProperties struct { // REQUIRED; Duration in seconds. WaitTimeInSeconds interface{} `json:"waitTimeInSeconds,omitempty"` } ``` WaitActivityTypeProperties - Wait activity properties. #### func (WaitActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50692) [¶](#WaitActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (w [WaitActivityTypeProperties](#WaitActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WaitActivityTypeProperties. #### func (*WaitActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50699) [¶](#WaitActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (w *[WaitActivityTypeProperties](#WaitActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WaitActivityTypeProperties. #### type [WebActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29571) [¶](#WebActivity) ``` type WebActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Web activity properties. TypeProperties *[WebActivityTypeProperties](#WebActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // Activity policy. Policy *[ActivityPolicy](#ActivityPolicy) `json:"policy,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` WebActivity - Web activity. #### func (*WebActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29601) [¶](#WebActivity.GetActivity) added in v0.2.0 ``` func (w *[WebActivity](#WebActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type WebActivity. #### func (*WebActivity) [GetExecutionActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29613) [¶](#WebActivity.GetExecutionActivity) added in v0.2.0 ``` func (w *[WebActivity](#WebActivity)) GetExecutionActivity() *[ExecutionActivity](#ExecutionActivity) ``` GetExecutionActivity implements the ExecutionActivityClassification interface for type WebActivity. #### func (WebActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50719) [¶](#WebActivity.MarshalJSON) ``` func (w [WebActivity](#WebActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebActivity. #### func (*WebActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50738) [¶](#WebActivity.UnmarshalJSON) ``` func (w *[WebActivity](#WebActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebActivity. #### type [WebActivityAuthentication](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29627) [¶](#WebActivityAuthentication) ``` type WebActivityAuthentication struct { // The credential reference containing authentication information. Credential *[CredentialReference](#CredentialReference) `json:"credential,omitempty"` // Password for the PFX file or basic authentication / Secret when used for ServicePrincipal Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal Pfx [SecretBaseClassification](#SecretBaseClassification) `json:"pfx,omitempty"` // Resource for which Azure Auth token will be requested when using MSI Authentication. Type: string (or Expression with resultType // string). Resource interface{} `json:"resource,omitempty"` // Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal) Type *[string](/builtin#string) `json:"type,omitempty"` // TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication. Type: string (or Expression // with resultType string). UserTenant interface{} `json:"userTenant,omitempty"` // Web activity authentication user name for basic authentication or ClientID when used for ServicePrincipal. Type: string // (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` WebActivityAuthentication - Web activity authentication properties. #### func (WebActivityAuthentication) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50789) [¶](#WebActivityAuthentication.MarshalJSON) ``` func (w [WebActivityAuthentication](#WebActivityAuthentication)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebActivityAuthentication. #### func (*WebActivityAuthentication) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50802) [¶](#WebActivityAuthentication.UnmarshalJSON) ``` func (w *[WebActivityAuthentication](#WebActivityAuthentication)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebActivityAuthentication. #### type [WebActivityMethod](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2073) [¶](#WebActivityMethod) ``` type WebActivityMethod [string](/builtin#string) ``` WebActivityMethod - The list of HTTP methods supported by a WebActivity. ``` const ( WebActivityMethodDELETE [WebActivityMethod](#WebActivityMethod) = "DELETE" WebActivityMethodGET [WebActivityMethod](#WebActivityMethod) = "GET" WebActivityMethodPOST [WebActivityMethod](#WebActivityMethod) = "POST" WebActivityMethodPUT [WebActivityMethod](#WebActivityMethod) = "PUT" ) ``` #### func [PossibleWebActivityMethodValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2083) [¶](#PossibleWebActivityMethodValues) ``` func PossibleWebActivityMethodValues() [][WebActivityMethod](#WebActivityMethod) ``` PossibleWebActivityMethodValues returns the possible values for the WebActivityMethod const type. #### type [WebActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29654) [¶](#WebActivityTypeProperties) ``` type WebActivityTypeProperties struct { // REQUIRED; Rest API method for target endpoint. Method *[WebActivityMethod](#WebActivityMethod) `json:"method,omitempty"` // REQUIRED; Web activity target endpoint and path. Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // Authentication method used for calling the endpoint. Authentication *[WebActivityAuthentication](#WebActivityAuthentication) `json:"authentication,omitempty"` // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). Body interface{} `json:"body,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // List of datasets passed to web endpoint. Datasets []*[DatasetReference](#DatasetReference) `json:"datasets,omitempty"` // When set to true, Certificate validation will be disabled. DisableCertValidation *[bool](/builtin#bool) `json:"disableCertValidation,omitempty"` // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). Headers interface{} `json:"headers,omitempty"` // List of linked services passed to web endpoint. LinkedServices []*[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServices,omitempty"` } ``` WebActivityTypeProperties - Web activity type properties. #### func (WebActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50840) [¶](#WebActivityTypeProperties.MarshalJSON) ``` func (w [WebActivityTypeProperties](#WebActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebActivityTypeProperties. #### func (*WebActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50855) [¶](#WebActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (w *[WebActivityTypeProperties](#WebActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebActivityTypeProperties. #### type [WebAnonymousAuthentication](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29687) [¶](#WebAnonymousAuthentication) ``` type WebAnonymousAuthentication struct { // REQUIRED; Type of authentication used to connect to the web table source. AuthenticationType *[WebAuthenticationType](#WebAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The URL of the web service endpoint, e.g. <https://www.microsoft.com> . Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` } ``` WebAnonymousAuthentication - A WebLinkedService that uses anonymous authentication to communicate with an HTTP endpoint. #### func (*WebAnonymousAuthentication) [GetWebLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29697) [¶](#WebAnonymousAuthentication.GetWebLinkedServiceTypeProperties) added in v0.2.0 ``` func (w *[WebAnonymousAuthentication](#WebAnonymousAuthentication)) GetWebLinkedServiceTypeProperties() *[WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties) ``` GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebAnonymousAuthentication. #### func (WebAnonymousAuthentication) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50899) [¶](#WebAnonymousAuthentication.MarshalJSON) ``` func (w [WebAnonymousAuthentication](#WebAnonymousAuthentication)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebAnonymousAuthentication. #### func (*WebAnonymousAuthentication) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50907) [¶](#WebAnonymousAuthentication.UnmarshalJSON) added in v0.2.0 ``` func (w *[WebAnonymousAuthentication](#WebAnonymousAuthentication)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebAnonymousAuthentication. #### type [WebAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2093) [¶](#WebAuthenticationType) ``` type WebAuthenticationType [string](/builtin#string) ``` WebAuthenticationType - Type of authentication used to connect to the web table source. ``` const ( WebAuthenticationTypeAnonymous [WebAuthenticationType](#WebAuthenticationType) = "Anonymous" WebAuthenticationTypeBasic [WebAuthenticationType](#WebAuthenticationType) = "Basic" WebAuthenticationTypeClientCertificate [WebAuthenticationType](#WebAuthenticationType) = "ClientCertificate" ) ``` #### func [PossibleWebAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2102) [¶](#PossibleWebAuthenticationTypeValues) ``` func PossibleWebAuthenticationTypeValues() [][WebAuthenticationType](#WebAuthenticationType) ``` PossibleWebAuthenticationTypeValues returns the possible values for the WebAuthenticationType const type. #### type [WebBasicAuthentication](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29705) [¶](#WebBasicAuthentication) ``` type WebBasicAuthentication struct { // REQUIRED; Type of authentication used to connect to the web table source. AuthenticationType *[WebAuthenticationType](#WebAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The password for Basic authentication. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // REQUIRED; The URL of the web service endpoint, e.g. <https://www.microsoft.com> . Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` // REQUIRED; User name for Basic authentication. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` } ``` WebBasicAuthentication - A WebLinkedService that uses basic authentication to communicate with an HTTP endpoint. #### func (*WebBasicAuthentication) [GetWebLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29721) [¶](#WebBasicAuthentication.GetWebLinkedServiceTypeProperties) added in v0.2.0 ``` func (w *[WebBasicAuthentication](#WebBasicAuthentication)) GetWebLinkedServiceTypeProperties() *[WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties) ``` GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebBasicAuthentication. #### func (WebBasicAuthentication) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50930) [¶](#WebBasicAuthentication.MarshalJSON) ``` func (w [WebBasicAuthentication](#WebBasicAuthentication)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebBasicAuthentication. #### func (*WebBasicAuthentication) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50940) [¶](#WebBasicAuthentication.UnmarshalJSON) ``` func (w *[WebBasicAuthentication](#WebBasicAuthentication)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebBasicAuthentication. #### type [WebClientCertificateAuthentication](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29731) [¶](#WebClientCertificateAuthentication) ``` type WebClientCertificateAuthentication struct { // REQUIRED; Type of authentication used to connect to the web table source. AuthenticationType *[WebAuthenticationType](#WebAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; Password for the PFX file. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // REQUIRED; Base64-encoded contents of a PFX file. Pfx [SecretBaseClassification](#SecretBaseClassification) `json:"pfx,omitempty"` // REQUIRED; The URL of the web service endpoint, e.g. <https://www.microsoft.com> . Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` } ``` WebClientCertificateAuthentication - A WebLinkedService that uses client certificate based authentication to communicate with an HTTP endpoint. This scheme follows mutual authentication; the server must also provide valid credentials to the client. #### func (*WebClientCertificateAuthentication) [GetWebLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29747) [¶](#WebClientCertificateAuthentication.GetWebLinkedServiceTypeProperties) added in v0.2.0 ``` func (w *[WebClientCertificateAuthentication](#WebClientCertificateAuthentication)) GetWebLinkedServiceTypeProperties() *[WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties) ``` GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebClientCertificateAuthentication. #### func (WebClientCertificateAuthentication) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50969) [¶](#WebClientCertificateAuthentication.MarshalJSON) ``` func (w [WebClientCertificateAuthentication](#WebClientCertificateAuthentication)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebClientCertificateAuthentication. #### func (*WebClientCertificateAuthentication) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L50979) [¶](#WebClientCertificateAuthentication.UnmarshalJSON) ``` func (w *[WebClientCertificateAuthentication](#WebClientCertificateAuthentication)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebClientCertificateAuthentication. #### type [WebHookActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29755) [¶](#WebHookActivity) ``` type WebHookActivity struct { // REQUIRED; Activity name. Name *[string](/builtin#string) `json:"name,omitempty"` // REQUIRED; Type of activity. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; WebHook activity properties. TypeProperties *[WebHookActivityTypeProperties](#WebHookActivityTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Activity depends on condition. DependsOn []*[ActivityDependency](#ActivityDependency) `json:"dependsOn,omitempty"` // Activity description. Description *[string](/builtin#string) `json:"description,omitempty"` // Activity user properties. UserProperties []*[UserProperty](#UserProperty) `json:"userProperties,omitempty"` } ``` WebHookActivity - WebHook activity. #### func (*WebHookActivity) [GetActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29779) [¶](#WebHookActivity.GetActivity) added in v0.2.0 ``` func (w *[WebHookActivity](#WebHookActivity)) GetActivity() *[Activity](#Activity) ``` GetActivity implements the ActivityClassification interface for type WebHookActivity. #### func (*WebHookActivity) [GetControlActivity](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29791) [¶](#WebHookActivity.GetControlActivity) added in v0.2.0 ``` func (w *[WebHookActivity](#WebHookActivity)) GetControlActivity() *[ControlActivity](#ControlActivity) ``` GetControlActivity implements the ControlActivityClassification interface for type WebHookActivity. #### func (WebHookActivity) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51008) [¶](#WebHookActivity.MarshalJSON) ``` func (w [WebHookActivity](#WebHookActivity)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebHookActivity. #### func (*WebHookActivity) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51025) [¶](#WebHookActivity.UnmarshalJSON) ``` func (w *[WebHookActivity](#WebHookActivity)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebHookActivity. #### type [WebHookActivityMethod](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2111) [¶](#WebHookActivityMethod) ``` type WebHookActivityMethod [string](/builtin#string) ``` WebHookActivityMethod - The list of HTTP methods supported by a WebHook activity. ``` const ( WebHookActivityMethodPOST [WebHookActivityMethod](#WebHookActivityMethod) = "POST" ) ``` #### func [PossibleWebHookActivityMethodValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2118) [¶](#PossibleWebHookActivityMethodValues) ``` func PossibleWebHookActivityMethodValues() [][WebHookActivityMethod](#WebHookActivityMethod) ``` PossibleWebHookActivityMethodValues returns the possible values for the WebHookActivityMethod const type. #### type [WebHookActivityTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29803) [¶](#WebHookActivityTypeProperties) ``` type WebHookActivityTypeProperties struct { // REQUIRED; Rest API method for target endpoint. Method *[WebHookActivityMethod](#WebHookActivityMethod) `json:"method,omitempty"` // REQUIRED; WebHook activity target endpoint and path. Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // Authentication method used for calling the endpoint. Authentication *[WebActivityAuthentication](#WebActivityAuthentication) `json:"authentication,omitempty"` // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). Body interface{} `json:"body,omitempty"` // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). Headers interface{} `json:"headers,omitempty"` // When set to true, statusCode, output and error in callback request body will be consumed by activity. The activity can // be marked as failed by setting statusCode >= 400 in callback request. Default is // false. Type: boolean (or Expression with resultType boolean). ReportStatusOnCallBack interface{} `json:"reportStatusOnCallBack,omitempty"` // The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. // Type: string. Pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Timeout *[string](/builtin#string) `json:"timeout,omitempty"` } ``` WebHookActivityTypeProperties - WebHook activity type properties. #### func (WebHookActivityTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51070) [¶](#WebHookActivityTypeProperties.MarshalJSON) added in v1.3.0 ``` func (w [WebHookActivityTypeProperties](#WebHookActivityTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebHookActivityTypeProperties. #### func (*WebHookActivityTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51083) [¶](#WebHookActivityTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (w *[WebHookActivityTypeProperties](#WebHookActivityTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebHookActivityTypeProperties. #### type [WebLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29833) [¶](#WebLinkedService) ``` type WebLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Web linked service properties. TypeProperties [WebLinkedServiceTypePropertiesClassification](#WebLinkedServiceTypePropertiesClassification) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` WebLinkedService - Web linked service. #### func (*WebLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29857) [¶](#WebLinkedService.GetLinkedService) added in v0.2.0 ``` func (w *[WebLinkedService](#WebLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type WebLinkedService. #### func (WebLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51121) [¶](#WebLinkedService.MarshalJSON) ``` func (w [WebLinkedService](#WebLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebLinkedService. #### func (*WebLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51138) [¶](#WebLinkedService.UnmarshalJSON) ``` func (w *[WebLinkedService](#WebLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebLinkedService. #### type [WebLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29879) [¶](#WebLinkedServiceTypeProperties) ``` type WebLinkedServiceTypeProperties struct { // REQUIRED; Type of authentication used to connect to the web table source. AuthenticationType *[WebAuthenticationType](#WebAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The URL of the web service endpoint, e.g. <https://www.microsoft.com> . Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` } ``` WebLinkedServiceTypeProperties - Base definition of WebLinkedServiceTypeProperties, this typeProperties is polymorphic based on authenticationType, so not flattened in SDK models. #### func (*WebLinkedServiceTypeProperties) [GetWebLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29889) [¶](#WebLinkedServiceTypeProperties.GetWebLinkedServiceTypeProperties) ``` func (w *[WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties)) GetWebLinkedServiceTypeProperties() *[WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties) ``` GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebLinkedServiceTypeProperties. #### func (WebLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51183) [¶](#WebLinkedServiceTypeProperties.MarshalJSON) added in v1.3.0 ``` func (w [WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebLinkedServiceTypeProperties. #### func (*WebLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51191) [¶](#WebLinkedServiceTypeProperties.UnmarshalJSON) ``` func (w *[WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebLinkedServiceTypeProperties. #### type [WebLinkedServiceTypePropertiesClassification](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29872) [¶](#WebLinkedServiceTypePropertiesClassification) ``` type WebLinkedServiceTypePropertiesClassification interface { // GetWebLinkedServiceTypeProperties returns the WebLinkedServiceTypeProperties content of the underlying type. GetWebLinkedServiceTypeProperties() *[WebLinkedServiceTypeProperties](#WebLinkedServiceTypeProperties) } ``` WebLinkedServiceTypePropertiesClassification provides polymorphic access to related types. Call the interface's GetWebLinkedServiceTypeProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *WebAnonymousAuthentication, *WebBasicAuthentication, *WebClientCertificateAuthentication, *WebLinkedServiceTypeProperties #### type [WebSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29894) [¶](#WebSource) ``` type WebSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` WebSource - A copy activity source for web page table. #### func (*WebSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29919) [¶](#WebSource.GetCopySource) added in v0.2.0 ``` func (w *[WebSource](#WebSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type WebSource. #### func (WebSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51214) [¶](#WebSource.MarshalJSON) ``` func (w [WebSource](#WebSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebSource. #### func (*WebSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51231) [¶](#WebSource.UnmarshalJSON) ``` func (w *[WebSource](#WebSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebSource. #### type [WebTableDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29931) [¶](#WebTableDataset) ``` type WebTableDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Web table dataset properties. TypeProperties *[WebTableDatasetTypeProperties](#WebTableDatasetTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` } ``` WebTableDataset - The dataset points to a HTML table in the web page. #### func (*WebTableDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29965) [¶](#WebTableDataset.GetDataset) added in v0.2.0 ``` func (w *[WebTableDataset](#WebTableDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type WebTableDataset. #### func (WebTableDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51276) [¶](#WebTableDataset.MarshalJSON) ``` func (w [WebTableDataset](#WebTableDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebTableDataset. #### func (*WebTableDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51296) [¶](#WebTableDataset.UnmarshalJSON) ``` func (w *[WebTableDataset](#WebTableDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebTableDataset. #### type [WebTableDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29980) [¶](#WebTableDatasetTypeProperties) ``` type WebTableDatasetTypeProperties struct { // REQUIRED; The zero-based index of the table in the web page. Type: integer (or Expression with resultType integer), minimum: // 0. Index interface{} `json:"index,omitempty"` // The relative URL to the web page from the linked service URL. Type: string (or Expression with resultType string). Path interface{} `json:"path,omitempty"` } ``` WebTableDatasetTypeProperties - Web table dataset properties. #### func (WebTableDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51350) [¶](#WebTableDatasetTypeProperties.MarshalJSON) added in v1.3.0 ``` func (w [WebTableDatasetTypeProperties](#WebTableDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WebTableDatasetTypeProperties. #### func (*WebTableDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51358) [¶](#WebTableDatasetTypeProperties.UnmarshalJSON) added in v1.3.0 ``` func (w *[WebTableDatasetTypeProperties](#WebTableDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WebTableDatasetTypeProperties. #### type [WranglingDataFlow](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L29990) [¶](#WranglingDataFlow) ``` type WranglingDataFlow struct { // REQUIRED; Type of data flow. Type *[string](/builtin#string) `json:"type,omitempty"` // List of tags that can be used for describing the data flow. Annotations []interface{} `json:"annotations,omitempty"` // The description of the data flow. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this data flow is in. If not specified, Data flow will appear at the root level. Folder *[DataFlowFolder](#DataFlowFolder) `json:"folder,omitempty"` // PowerQuery data flow type properties. TypeProperties *[PowerQueryTypeProperties](#PowerQueryTypeProperties) `json:"typeProperties,omitempty"` } ``` WranglingDataFlow - Power Query data flow. #### func (*WranglingDataFlow) [GetDataFlow](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30008) [¶](#WranglingDataFlow.GetDataFlow) added in v0.2.0 ``` func (w *[WranglingDataFlow](#WranglingDataFlow)) GetDataFlow() *[DataFlow](#DataFlow) ``` GetDataFlow implements the DataFlowClassification interface for type WranglingDataFlow. #### func (WranglingDataFlow) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51381) [¶](#WranglingDataFlow.MarshalJSON) ``` func (w [WranglingDataFlow](#WranglingDataFlow)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type WranglingDataFlow. #### func (*WranglingDataFlow) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51392) [¶](#WranglingDataFlow.UnmarshalJSON) ``` func (w *[WranglingDataFlow](#WranglingDataFlow)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type WranglingDataFlow. #### type [XMLDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30018) [¶](#XMLDataset) ``` type XMLDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Xml dataset properties. TypeProperties *[XMLDatasetTypeProperties](#XMLDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` XMLDataset - Xml dataset. #### func (*XMLDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30052) [¶](#XMLDataset.GetDataset) added in v0.2.0 ``` func (x *[XMLDataset](#XMLDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type XMLDataset. #### func (XMLDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51424) [¶](#XMLDataset.MarshalJSON) ``` func (x [XMLDataset](#XMLDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type XMLDataset. #### func (*XMLDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51444) [¶](#XMLDataset.UnmarshalJSON) ``` func (x *[XMLDataset](#XMLDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type XMLDataset. #### type [XMLDatasetTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30067) [¶](#XMLDatasetTypeProperties) ``` type XMLDatasetTypeProperties struct { // REQUIRED; The location of the json data storage. Location [DatasetLocationClassification](#DatasetLocationClassification) `json:"location,omitempty"` // The data compression method used for the json dataset. Compression *[DatasetCompression](#DatasetCompression) `json:"compression,omitempty"` // The code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another // Unicode encoding. Refer to the name column of the table in the following link to // set supported values: <https://msdn.microsoft.com/library/system.text.encoding.aspx>. Type: string (or Expression with resultType // string). EncodingName interface{} `json:"encodingName,omitempty"` // The null value string. Type: string (or Expression with resultType string). NullValue interface{} `json:"nullValue,omitempty"` } ``` XMLDatasetTypeProperties - Xml dataset properties. #### func (XMLDatasetTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51498) [¶](#XMLDatasetTypeProperties.MarshalJSON) ``` func (x [XMLDatasetTypeProperties](#XMLDatasetTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type XMLDatasetTypeProperties. #### func (*XMLDatasetTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51508) [¶](#XMLDatasetTypeProperties.UnmarshalJSON) ``` func (x *[XMLDatasetTypeProperties](#XMLDatasetTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type XMLDatasetTypeProperties. #### type [XMLReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30085) [¶](#XMLReadSettings) ``` type XMLReadSettings struct { // REQUIRED; The read setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Compression settings. CompressionProperties [CompressionReadSettingsClassification](#CompressionReadSettingsClassification) `json:"compressionProperties,omitempty"` // Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). DetectDataType interface{} `json:"detectDataType,omitempty"` // Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined // for a namespace uri, the prefix of xml element/attribute name in the xml // data file will be used. Example: "{"<http://www.example.com/xml>":"prefix"}" Type: object (or Expression with resultType // object). NamespacePrefixes interface{} `json:"namespacePrefixes,omitempty"` // Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). Namespaces interface{} `json:"namespaces,omitempty"` // Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string // (or Expression with resultType string). ValidationMode interface{} `json:"validationMode,omitempty"` } ``` XMLReadSettings - Xml read settings. #### func (*XMLReadSettings) [GetFormatReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30113) [¶](#XMLReadSettings.GetFormatReadSettings) added in v0.2.0 ``` func (x *[XMLReadSettings](#XMLReadSettings)) GetFormatReadSettings() *[FormatReadSettings](#FormatReadSettings) ``` GetFormatReadSettings implements the FormatReadSettingsClassification interface for type XMLReadSettings. #### func (XMLReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51537) [¶](#XMLReadSettings.MarshalJSON) ``` func (x [XMLReadSettings](#XMLReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type XMLReadSettings. #### func (*XMLReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51554) [¶](#XMLReadSettings.UnmarshalJSON) ``` func (x *[XMLReadSettings](#XMLReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type XMLReadSettings. #### type [XMLSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30121) [¶](#XMLSource) ``` type XMLSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // Xml format settings. FormatSettings *[XMLReadSettings](#XMLReadSettings) `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Xml store settings. StoreSettings [StoreReadSettingsClassification](#StoreReadSettingsClassification) `json:"storeSettings,omitempty"` } ``` XMLSource - A copy activity Xml source. #### func (*XMLSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30152) [¶](#XMLSource.GetCopySource) added in v0.2.0 ``` func (x *[XMLSource](#XMLSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type XMLSource. #### func (XMLSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51599) [¶](#XMLSource.MarshalJSON) ``` func (x [XMLSource](#XMLSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type XMLSource. #### func (*XMLSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51618) [¶](#XMLSource.UnmarshalJSON) ``` func (x *[XMLSource](#XMLSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type XMLSource. #### type [XeroLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30164) [¶](#XeroLinkedService) ``` type XeroLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Xero Service linked service properties. TypeProperties *[XeroLinkedServiceTypeProperties](#XeroLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` XeroLinkedService - Xero Service linked service. #### func (*XeroLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30188) [¶](#XeroLinkedService.GetLinkedService) added in v0.2.0 ``` func (x *[XeroLinkedService](#XeroLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type XeroLinkedService. #### func (XeroLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51669) [¶](#XeroLinkedService.MarshalJSON) ``` func (x [XeroLinkedService](#XeroLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type XeroLinkedService. #### func (*XeroLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51686) [¶](#XeroLinkedService.UnmarshalJSON) ``` func (x *[XeroLinkedService](#XeroLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type XeroLinkedService. #### type [XeroLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30200) [¶](#XeroLinkedServiceTypeProperties) ``` type XeroLinkedServiceTypeProperties struct { // Properties used to connect to Xero. It is mutually exclusive with any other properties in the linked service. Type: object. ConnectionProperties interface{} `json:"connectionProperties,omitempty"` // The consumer key associated with the Xero application. ConsumerKey [SecretBaseClassification](#SecretBaseClassification) `json:"consumerKey,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The endpoint of the Xero server. (i.e. api.xero.com) Host interface{} `json:"host,omitempty"` // The private key from the .pem file that was generated for your Xero private application. You must include all the text // from the .pem file, including the Unix line endings( ). PrivateKey [SecretBaseClassification](#SecretBaseClassification) `json:"privateKey,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` XeroLinkedServiceTypeProperties - Xero Service linked service properties. #### func (XeroLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51731) [¶](#XeroLinkedServiceTypeProperties.MarshalJSON) ``` func (x [XeroLinkedServiceTypeProperties](#XeroLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type XeroLinkedServiceTypeProperties. #### func (*XeroLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51745) [¶](#XeroLinkedServiceTypeProperties.UnmarshalJSON) ``` func (x *[XeroLinkedServiceTypeProperties](#XeroLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type XeroLinkedServiceTypeProperties. #### type [XeroObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30230) [¶](#XeroObjectDataset) ``` type XeroObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` XeroObjectDataset - Xero Service dataset. #### func (*XeroObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30264) [¶](#XeroObjectDataset.GetDataset) added in v0.2.0 ``` func (x *[XeroObjectDataset](#XeroObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type XeroObjectDataset. #### func (XeroObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51786) [¶](#XeroObjectDataset.MarshalJSON) ``` func (x [XeroObjectDataset](#XeroObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type XeroObjectDataset. #### func (*XeroObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51806) [¶](#XeroObjectDataset.UnmarshalJSON) ``` func (x *[XeroObjectDataset](#XeroObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type XeroObjectDataset. #### type [XeroSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30279) [¶](#XeroSource) ``` type XeroSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` XeroSource - A copy activity Xero Service source. #### func (*XeroSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30310) [¶](#XeroSource.GetCopySource) added in v0.2.0 ``` func (x *[XeroSource](#XeroSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type XeroSource. #### func (*XeroSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30322) [¶](#XeroSource.GetTabularSource) added in v0.2.0 ``` func (x *[XeroSource](#XeroSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type XeroSource. #### func (XeroSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51860) [¶](#XeroSource.MarshalJSON) ``` func (x [XeroSource](#XeroSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type XeroSource. #### func (*XeroSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51879) [¶](#XeroSource.UnmarshalJSON) ``` func (x *[XeroSource](#XeroSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type XeroSource. #### type [ZendeskAuthenticationType](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2125) [¶](#ZendeskAuthenticationType) added in v0.3.0 ``` type ZendeskAuthenticationType [string](/builtin#string) ``` ZendeskAuthenticationType - The authentication type to use. ``` const ( ZendeskAuthenticationTypeBasic [ZendeskAuthenticationType](#ZendeskAuthenticationType) = "Basic" ZendeskAuthenticationTypeToken [ZendeskAuthenticationType](#ZendeskAuthenticationType) = "Token" ) ``` #### func [PossibleZendeskAuthenticationTypeValues](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/constants.go#L2133) [¶](#PossibleZendeskAuthenticationTypeValues) added in v0.3.0 ``` func PossibleZendeskAuthenticationTypeValues() [][ZendeskAuthenticationType](#ZendeskAuthenticationType) ``` PossibleZendeskAuthenticationTypeValues returns the possible values for the ZendeskAuthenticationType const type. #### type [ZendeskLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30336) [¶](#ZendeskLinkedService) added in v0.3.0 ``` type ZendeskLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Zendesk linked service properties. TypeProperties *[ZendeskLinkedServiceTypeProperties](#ZendeskLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` ZendeskLinkedService - Linked service for Zendesk. #### func (*ZendeskLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30360) [¶](#ZendeskLinkedService.GetLinkedService) added in v0.3.0 ``` func (z *[ZendeskLinkedService](#ZendeskLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type ZendeskLinkedService. #### func (ZendeskLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51930) [¶](#ZendeskLinkedService.MarshalJSON) added in v0.3.0 ``` func (z [ZendeskLinkedService](#ZendeskLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ZendeskLinkedService. #### func (*ZendeskLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51947) [¶](#ZendeskLinkedService.UnmarshalJSON) added in v0.3.0 ``` func (z *[ZendeskLinkedService](#ZendeskLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ZendeskLinkedService. #### type [ZendeskLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30372) [¶](#ZendeskLinkedServiceTypeProperties) added in v0.3.0 ``` type ZendeskLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to use. AuthenticationType *[ZendeskAuthenticationType](#ZendeskAuthenticationType) `json:"authenticationType,omitempty"` // REQUIRED; The url to connect Zendesk source. Type: string (or Expression with resultType string). URL interface{} `json:"url,omitempty"` // The api token for the Zendesk source. APIToken [SecretBaseClassification](#SecretBaseClassification) `json:"apiToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The password of the Zendesk source. Password [SecretBaseClassification](#SecretBaseClassification) `json:"password,omitempty"` // The username of the Zendesk source. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` } ``` ZendeskLinkedServiceTypeProperties - Zendesk linked service type properties. #### func (ZendeskLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L51992) [¶](#ZendeskLinkedServiceTypeProperties.MarshalJSON) added in v0.3.0 ``` func (z [ZendeskLinkedServiceTypeProperties](#ZendeskLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ZendeskLinkedServiceTypeProperties. #### func (*ZendeskLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52004) [¶](#ZendeskLinkedServiceTypeProperties.UnmarshalJSON) added in v0.3.0 ``` func (z *[ZendeskLinkedServiceTypeProperties](#ZendeskLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ZendeskLinkedServiceTypeProperties. #### type [ZipDeflateReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30394) [¶](#ZipDeflateReadSettings) ``` type ZipDeflateReadSettings struct { // REQUIRED; The Compression setting type. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // Preserve the zip file name as folder path. Type: boolean (or Expression with resultType boolean). PreserveZipFileNameAsFolder interface{} `json:"preserveZipFileNameAsFolder,omitempty"` } ``` ZipDeflateReadSettings - The ZipDeflate compression read settings. #### func (*ZipDeflateReadSettings) [GetCompressionReadSettings](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30406) [¶](#ZipDeflateReadSettings.GetCompressionReadSettings) added in v0.2.0 ``` func (z *[ZipDeflateReadSettings](#ZipDeflateReadSettings)) GetCompressionReadSettings() *[CompressionReadSettings](#CompressionReadSettings) ``` GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type ZipDeflateReadSettings. #### func (ZipDeflateReadSettings) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52039) [¶](#ZipDeflateReadSettings.MarshalJSON) ``` func (z [ZipDeflateReadSettings](#ZipDeflateReadSettings)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ZipDeflateReadSettings. #### func (*ZipDeflateReadSettings) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52052) [¶](#ZipDeflateReadSettings.UnmarshalJSON) ``` func (z *[ZipDeflateReadSettings](#ZipDeflateReadSettings)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ZipDeflateReadSettings. #### type [ZohoLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30414) [¶](#ZohoLinkedService) ``` type ZohoLinkedService struct { // REQUIRED; Type of linked service. Type *[string](/builtin#string) `json:"type,omitempty"` // REQUIRED; Zoho server linked service properties. TypeProperties *[ZohoLinkedServiceTypeProperties](#ZohoLinkedServiceTypeProperties) `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the linked service. Annotations []interface{} `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *[IntegrationRuntimeReference](#IntegrationRuntimeReference) `json:"connectVia,omitempty"` // Linked service description. Description *[string](/builtin#string) `json:"description,omitempty"` // Parameters for linked service. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` } ``` ZohoLinkedService - Zoho server linked service. #### func (*ZohoLinkedService) [GetLinkedService](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30438) [¶](#ZohoLinkedService.GetLinkedService) added in v0.2.0 ``` func (z *[ZohoLinkedService](#ZohoLinkedService)) GetLinkedService() *[LinkedService](#LinkedService) ``` GetLinkedService implements the LinkedServiceClassification interface for type ZohoLinkedService. #### func (ZohoLinkedService) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52085) [¶](#ZohoLinkedService.MarshalJSON) ``` func (z [ZohoLinkedService](#ZohoLinkedService)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ZohoLinkedService. #### func (*ZohoLinkedService) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52102) [¶](#ZohoLinkedService.UnmarshalJSON) ``` func (z *[ZohoLinkedService](#ZohoLinkedService)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ZohoLinkedService. #### type [ZohoLinkedServiceTypeProperties](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30450) [¶](#ZohoLinkedServiceTypeProperties) ``` type ZohoLinkedServiceTypeProperties struct { // The access token for Zoho authentication. AccessToken [SecretBaseClassification](#SecretBaseClassification) `json:"accessToken,omitempty"` // Properties used to connect to Zoho. It is mutually exclusive with any other properties in the linked service. Type: object. ConnectionProperties interface{} `json:"connectionProperties,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` // The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) Endpoint interface{} `json:"endpoint,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. UseHostVerification interface{} `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` } ``` ZohoLinkedServiceTypeProperties - Zoho server linked service properties. #### func (ZohoLinkedServiceTypeProperties) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52147) [¶](#ZohoLinkedServiceTypeProperties.MarshalJSON) ``` func (z [ZohoLinkedServiceTypeProperties](#ZohoLinkedServiceTypeProperties)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ZohoLinkedServiceTypeProperties. #### func (*ZohoLinkedServiceTypeProperties) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52160) [¶](#ZohoLinkedServiceTypeProperties.UnmarshalJSON) ``` func (z *[ZohoLinkedServiceTypeProperties](#ZohoLinkedServiceTypeProperties)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ZohoLinkedServiceTypeProperties. #### type [ZohoObjectDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30476) [¶](#ZohoObjectDataset) ``` type ZohoObjectDataset struct { // REQUIRED; Linked service reference. LinkedServiceName *[LinkedServiceReference](#LinkedServiceReference) `json:"linkedServiceName,omitempty"` // REQUIRED; Type of dataset. Type *[string](/builtin#string) `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // List of tags that can be used for describing the Dataset. Annotations []interface{} `json:"annotations,omitempty"` // Dataset description. Description *[string](/builtin#string) `json:"description,omitempty"` // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *[DatasetFolder](#DatasetFolder) `json:"folder,omitempty"` // Parameters for dataset. Parameters map[[string](/builtin#string)]*[ParameterSpecification](#ParameterSpecification) `json:"parameters,omitempty"` // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. Structure interface{} `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *[GenericDatasetTypeProperties](#GenericDatasetTypeProperties) `json:"typeProperties,omitempty"` } ``` ZohoObjectDataset - Zoho server dataset. #### func (*ZohoObjectDataset) [GetDataset](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30510) [¶](#ZohoObjectDataset.GetDataset) added in v0.2.0 ``` func (z *[ZohoObjectDataset](#ZohoObjectDataset)) GetDataset() *[Dataset](#Dataset) ``` GetDataset implements the DatasetClassification interface for type ZohoObjectDataset. #### func (ZohoObjectDataset) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52198) [¶](#ZohoObjectDataset.MarshalJSON) ``` func (z [ZohoObjectDataset](#ZohoObjectDataset)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ZohoObjectDataset. #### func (*ZohoObjectDataset) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52218) [¶](#ZohoObjectDataset.UnmarshalJSON) ``` func (z *[ZohoObjectDataset](#ZohoObjectDataset)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ZohoObjectDataset. #### type [ZohoSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30525) [¶](#ZohoSource) ``` type ZohoSource struct { // REQUIRED; Copy source type. Type *[string](/builtin#string) `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[[string](/builtin#string)]interface{} // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` } ``` ZohoSource - A copy activity Zoho server source. #### func (*ZohoSource) [GetCopySource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30556) [¶](#ZohoSource.GetCopySource) added in v0.2.0 ``` func (z *[ZohoSource](#ZohoSource)) GetCopySource() *[CopySource](#CopySource) ``` GetCopySource implements the CopySourceClassification interface for type ZohoSource. #### func (*ZohoSource) [GetTabularSource](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models.go#L30568) [¶](#ZohoSource.GetTabularSource) added in v0.2.0 ``` func (z *[ZohoSource](#ZohoSource)) GetTabularSource() *[TabularSource](#TabularSource) ``` GetTabularSource implements the TabularSourceClassification interface for type ZohoSource. #### func (ZohoSource) [MarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52272) [¶](#ZohoSource.MarshalJSON) ``` func (z [ZohoSource](#ZohoSource)) MarshalJSON() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalJSON implements the json.Marshaller interface for type ZohoSource. #### func (*ZohoSource) [UnmarshalJSON](https://github.com/Azure/azure-sdk-for-go/blob/sdk/resourcemanager/datafactory/armdatafactory/v1.3.0/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go#L52291) [¶](#ZohoSource.UnmarshalJSON) ``` func (z *[ZohoSource](#ZohoSource)) UnmarshalJSON(data [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalJSON implements the json.Unmarshaller interface for type ZohoSource.
@easepick/lock-plugin
npm
JavaScript
@easepick/lock-plugin === > This package does not need to be installed if you are using [@easepick/bundle](https://easepick.com/packages/bundle). Adds the ability to disable days for selection. Documentation --- <https://easepick.com/packages/lock-pluginOptions --- | Name | Type | Default | Description | | --- | --- | --- | --- | | minDate | Date string number | null | The minimum/earliest date that can be selected. Date Object or Unix Timestamp (with milliseconds) or ISO String. | | maxDate | Date string number | null | The maximum/latest date that can be selected. Date Object or Unix Timestamp (with milliseconds) or ISO String. | | minDays | number | null | The minimum days of the selected range. | | maxDays | number | null | The maximum days of the selected range. | | selectForward | boolean | false | Select second date after the first selected date. | | selectBackward | boolean | false | Select second date before the first selected date. | | presets | boolean | true | Disable unallowed presets (when PresetPlugin is included). | | inseparable | boolean | false | Disable date range selection with locked days. | | filter | function | null | Lock days by custom function. | Readme --- ### Keywords none
aslib
cran
R
Package ‘aslib’ October 12, 2022 Title Interface to the Algorithm Selection Benchmark Library Description Provides an interface to the algorithm selection benchmark library at <http://www.aslib.net> and the 'LLAMA' package (<https://cran.r-project.org/package=llama>) for building algorithm selection models; see Bischl et al. (2016) <doi:10.1016/j.artint.2016.04.003>. Author <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> [ctb], <NAME> <<EMAIL>> [ctb] Maintainer <NAME> <<EMAIL>> URL https://github.com/coseal/aslib-r/ BugReports https://github.com/coseal/aslib-r/issues License GPL-3 Imports batchtools, data.table, BBmisc, checkmate, corrplot, ggplot2, llama, mlr, parallelMap, ParamHelpers, plyr, reshape2, RWeka, stringr, yaml Suggests testthat, rpart ByteCompile yes Encoding UTF-8 Version 0.1.2 RoxygenNote 7.2.1 NeedsCompilation no Repository CRAN Date/Publication 2022-08-25 08:22:50 UTC R topics documented: ASScenarioDes... 2 checkDuplicatedInstance... 3 convertAlgoPerfToWideForma... 3 convertToLlam... 4 convertToLlamaCVFold... 5 createCVSplit... 6 findDominatedAlgo... 6 fixFeckingPresolv... 7 getAlgorithmName... 8 getCosealASScenari... 8 getCostsAndPresolvedStatu... 9 getDefaultFeatureStepName... 10 getFeatureName... 10 getFeatureStepName... 11 getInstanceName... 11 getNumberOfCVFold... 12 getNumberOfCVRep... 12 getProvidedFeature... 13 getSummedFeatureCost... 13 imputeAlgoPer... 14 parseASScenari... 15 plotAlgoCorMatri... 16 plotAlgoPer... 17 runLlamaModel... 19 summarizeAlgoPer... 20 summarizeAlgoRunstatu... 21 summarizeFeatureStep... 21 summarizeFeatureValue... 22 summarizeLlamaExp... 22 writeASScenari... 23 ASScenarioDesc S3 class for ASScenarioDesc. Description Object members Details scenario_id [character(1) ] Name of scenario. performance_measures [character ] Names of measures. maximize [named character ] Maximize measure? performance_type [named character ] Either “runtime” or “solution_quality”. algorithm_cutoff_time [numeric(1) ] Cutoff time for an algorithm run. algorithm_cutoff_memory [numeric(1) ] Cutoff memory for an algorithm run. features_cutoff_time [numeric(1) ] Cutoff time for an instance feature run. features_cutoff_memory [numeric(1) ] Cutoff memory for an instance feature run. algorithm_features_cutoff_time [numeric(1) ] Cutoff time for an algorithm feature run. algorithm_features_cutoff_memory [numeric(1) ] Cutoff memory for an algorithm feature run. feature_steps [named list of character ] Names of feature processing steps, the other feature steps they require, and the features they provide. metainfo_algorithms [named list of lists of character ] Names of algorithms and meta-information about them. checkDuplicatedInstances Checks the feature data set for duplicated instances. Description Potentially duplicated instances are detected by grouping all instances with equal feature vectors. Usage checkDuplicatedInstances(asscenario) Arguments asscenario [ASScenario] Algorithm selection scenario. Value list of character . List of instance id vectors where corresponding feature vectors are the same. Only groups of at least 2 elements are returned. convertAlgoPerfToWideFormat Converts algo.runs object of a scenario to wide format. Description The first 2 columns are “instance_id” and “repetition”. The remaining ones are the measured per- formance values. The feature columns are in the same order as “features_deterministic”, “fea- tures_stochastic” in the description object. codeNA means the performance value is not available, possibly because the algorithm run was aborted. The data.frame is sorted by “instance_id”, then “repetition”. Usage convertAlgoPerfToWideFormat(desc, algo.runs, measure) Arguments desc [ASScenarioDesc] Description object of scenario. algo.runs [data.frame] Algo runs data.frame from scenario. measure [character(1)] Selected performance measure. Default is first measure in scenario. Value data.frame . convertToLlama Convert an ASScenario scenario object to a llama data object. Description For features, mean values are computed across repetitions. For algorithms, repetitions are not sup- ported at the moment and will result in an error. Usage convertToLlama(asscenario, measure, feature.steps) Arguments asscenario [ASScenario] Algorithm selection scenario. measure [character(1)] Measure to use for modeling. Default is first measure in scenario. feature.steps [character] Which feature steps are allowed? Default are the default feature steps or all steps in case no defaults were defined. Details Note that feature step dependencies are currently not supported explicitly by LLAMA. The con- version checks that all dependencies are satisfied, but subsequent feature selection on the LLAMA data frame may not work as expected. Value Result of calling input. convertToLlamaCVFolds Convert an ASScenario scenario object to a llama data object with cross-validation folds. Description For features, mean values are computed across repetitions. For algorithms, repetitions are not sup- ported at the moment and will result in an error. Usage convertToLlamaCVFolds( asscenario, measure, feature.steps, algorithm.feature.steps, cv.splits ) Arguments asscenario [ASScenario] Algorithm selection scenario. measure [character(1)] Measure to use for modelling. Default is first measure in scenario. feature.steps [character] Which instance feature steps are allowed? Default are the default instance fea- ture steps or all steps in case no defaults were defined. algorithm.feature.steps [character] Which algorithm feature steps are allowed? Default are the default algorithm feature steps or all steps in case no defaults were defined. cv.splits [data.frame] Data frame defining the split of the data into cross-validation folds, as returned by createCVSplits. Default are the splits asscenario$cv.splits Value Result of calling input with data partitioned into folds. createCVSplits Create cross-validation splits for a scenario. Description Create a data.frame that defines cross-validation splits for a scenario, and potentially store it in an ARFF file. The mlr package is used to generate the splits, see makeResampleDesc and makeResampleInstance. Usage createCVSplits(asscenario, reps = 1L, folds = 10L, file = NULL) Arguments asscenario [ASScenario] Algorithm selection scenario. reps [integer] CV repetitions. Default is 1. folds [integer] CV folds. Default is 10. file [character] If not missing, where to save the returned splits as an ARFF file via write.arff. Default is no saving. Value data.frame . Splits as defined in the algorithm benchmark repository specification text. Has columns: “instance_id”, “fold”, “rep”. Defines which instances go into the test set for each replication / fold during CV. The training set are the remaining instances, in exactly the order as given by the data.frame for the current repetition. findDominatedAlgos Creates a table that shows the dominance of one algorithm over an- other one. Description If NAs occur, they are imputed (before aggregation) by base + 0.3 * range. base is the cutoff value for runtimes scenarios with cutoff or the worst performance for all others. Stochastic replications are aggregated by the mean value. Usage findDominatedAlgos(asscenario, measure, reduce = FALSE, type = "logical") Arguments asscenario [ASScenario] Algorithm selection scenario. measure [character(1)] Measure for algorithm performance. Default is first measure in scenario. reduce [logical(1)] Should the resulting matrix be reduced to algorithms that a are either dominated by or dominate another algorithm? Default is FALSE. type [character(1)] Data type of the result object. “logical”: Logical matrix, TRUE means row algorithm dominates column algo- rithm. “character”: Same information but more human-readable. States how the row relates to the column. Value matrix . See above. fixFeckingPresolve Bakes presolving stuff into a LLAMA data frame. Description Determines whether any of the feature groups in the LLAMA data frame presolve any of the in- stances. If so, the performances of all algorithms in the portfolio are set to the runtime of the first used feature group that presolves the respective instance. Furthermore, the success of all algorithms on those instances is set to true. Usage fixFeckingPresolve(asscenario, ldf) Arguments asscenario [ASScenario] Algorithm selection scenario. ldf [LLAMA data frame] LLAMA data frame to modify. Details These modifications are done on the main LLAMA data and on any test splits. They are *not* done on the training data. This function should only ever be used to evaluate the performance of an actual selector that uses features (i.e. not VBS or single best). Using it in polite company is to be avoided. Value The LLAMA data frame with presolving baked into the algorithm performances. getAlgorithmNames Returns algorithm names of scenario. Description Returns algorithm names of scenario. Usage getAlgorithmNames(asscenario) Arguments asscenario [ASScenario] Algorithm selection scenario. Value character . getCosealASScenario Retrieves a scenario from the Coseal Github repository and parses into an S3 object. Description Uses subversion export to retrieve a specific scenario from the official Coseal Github repository. The scenario is checked out into a temporary directory and parsed with parseASScenario. Usage getCosealASScenario(name) Arguments name [character(1)] Name of benchmark data set. Value ASScenario . Description object. Examples ## Not run: sc = getCosealASScenario("CSP-2010") ## End(Not run) getCostsAndPresolvedStatus Return whether an instance was presolved and which step did it. Description Return whether an instance was presolved and which step did it. Usage getCostsAndPresolvedStatus(asscenario, feature.steps, type) Arguments asscenario [ASScenario] Algorithm selection scenario. feature.steps [character] Which feature steps are allowed? Default is all steps. type [character(1)] Feature type (instance or algorithmic). Value list . Below, n is the number of instances. All following object are ordered by “instance_id”. is.presolved [logical(n)] Was instance presolved? Named by instance ids. solve.steps [character(n)] Which step solved it? NA if no step did it. Named by instance ids. costs [numeric(n)] Feature costs for using the steps. Named by instance ids. NULL if no costs are present. getDefaultFeatureStepNames Returns the default feature step names of scenario. Description Returns the default feature step names of scenario. Usage getDefaultFeatureStepNames(asscenario) Arguments asscenario [ASScenario] Algorithm selection scenario. Value character . getFeatureNames Returns feature names of scenario. Description Returns feature names of scenario. Usage getFeatureNames(asscenario, type) Arguments asscenario [ASScenario] Algorithm selection scenario. type [character(1)] Feature type (instance or algorithmic). Value character . getFeatureStepNames Returns feature step names of scenario. Description Returns feature step names of scenario. Usage getFeatureStepNames(asscenario, type) Arguments asscenario [ASScenario] Algorithm selection scenario. type [character(1)] Feature type (instance or algorithmic). Value character . getInstanceNames Returns instance names of scenario. Description Returns instance names of scenario. Usage getInstanceNames(asscenario) Arguments asscenario [ASScenario] Algorithm selection scenario. Value character . getNumberOfCVFolds Returns number of CV folds. Description Returns number of CV folds. Usage getNumberOfCVFolds(asscenario) Arguments asscenario [ASScenario] Algorithm selection scenario. Value integer(1) . getNumberOfCVReps Returns number of CV repetitions. Description Returns number of CV repetitions. Usage getNumberOfCVReps(asscenario) Arguments asscenario [ASScenario] Algorithm selection scenario. Value integer(1) . getProvidedFeatures Return features that are useable for a given set of feature steps. Description Return features that are useable for a given set of feature steps. Usage getProvidedFeatures(asscenario, steps, type) Arguments asscenario [ASScenario] Algorithm selection scenario. steps [character] Feature steps. Default are all feature steps. type [character(1)] Feature type (instance or algorithmic). Value character . getSummedFeatureCosts Returns feature costs of scenario, summed over all instances. Description Returns feature costs of scenario, summed over all instances. Usage getSummedFeatureCosts(asscenario, feature.steps) Arguments asscenario [ASScenario] Algorithm selection scenario. feature.steps [character] Sum costs only for these selected steps. Default are all feature steps. Value character . imputeAlgoPerf Imputes algorithm performance for runs which have NA performance values. Description The following formula is used for imputation: base +- range.scalar * range.span + N(0, sd = jitter * range.span) With range.span = max - min. Returns an object like algo.runs of asscenario, but drops the runstatus and all other measures. Usage imputeAlgoPerf( asscenario, measure, base = NULL, range.scalar = 0.3, jitter = 0, impute.zero.vals = FALSE ) Arguments asscenario [ASScenario] Algorithm selection scenario. measure [character(1)] Measure to impute. Default is first measure in scenario. base [numeric(1)] See formula. Default is NULL, which means maximum of performance values if measure should be minimized, or minimum for maximization case. range.scalar [numeric(1)] See formula. Default is 0.3. jitter [numeric(1)] See formula. Default is 0. impute.zero.vals [logical(1)] Should values which are exactly 0 be imputed to 1e-6? This allows to take the logarithm later on, handy for subsequent visualizations. Note that this really only makes sense for non-negative measures! Default is FALSE. Value data.frame . parseASScenario Parses the data files of an algorithm selection scenario into an S3 object. Description Object members Let n be the number of (replicated) instances, m the number of unique instances, p the number of features, s the number of feature steps and k the number of algorithms. desc [ASScenarioDesc ] Description object, containing further info. feature.runstatus [data.frame(n, s + 2) ] Runstatus of instance feature computation steps. The first 2 columns are “instance_id” and “repetition”, the remaining are the status factors. The step columns are in the same order as the feature steps in the description object. The factor levels are always: ok, presolved, crash, timeout, memout, other. No entry can be NA. The data.frame is sorted by “instance_id”, then “repetition”. algorithm.feature.runstatus [data.frame(k, s + 1) ] Runstatus of algorithm feature computa- tion steps. The first column is “algorithm”, the remaining are the status factors. The step columns are in the same order as the feature steps in the description object. The factor levels are always: ok, crash, timeout, memout, other. No entry can be NA. The data.frame is sorted by “algorithm”. feature.costs [data.frame(n, s + 2) ] Costs of instance feature computation steps. The first 2 columns are “instance_id” and “repetition”, the remaining are numeric costs of the instance feature steps. The step columns are in the same order as the feature steps in the description object. codeNA means the cost is not available, possibly because the feature computation was aborted. The data.frame is sorted by “instance_id”, then “repetition”. If no cost file is available at all, NULL is stored. algorithm.feature.costs [data.frame(n, s + 1) ] Costs of algorithm feature computation steps. The first column is “algorithm”, the remaining are numeric costs of the algorithmic feature steps. The step columns are in the same order as the feature steps in the description object. codeNA means the cost is not available, possibly because the feature computation was aborted. The data.frame is sorted by “algorithm”. If no cost file is available at all, NULL is stored. feature.values [data.frame(n, p + 2) ] Measured feature values of instances. The first 2 columns are “instance_id” and “repetition”. The remaining ones are the measured instance features. The feature columns are in the same order as “instance_features_deterministic”, “features_stochastic” in the description object. codeNA means the feature is not available, possibly because the fea- ture computation was aborted. The data.frame is sorted by “instance_id”, then “repetition”. algorithm.feature.values [data.frame(k, p + 1) ] Measured feature values of algorithms The first column is “algorithm”. The remaining ones are the measured algorithmic features. The feature columns are in the same order as “algorithm_features_deterministic”, “algorithm_features_stochastic” in the description object. codeNA means the feature is not available, possibly because the fea- ture computation was aborted. The data.frame is sorted by “algorithm”. algo.runs [data.frame ] Runstatus and performance information of the algorithms. Simply the parsed ARFF file. See convertAlgoPerfToWideFormat for a more convenient format. algo.runstatus [data.frame(n, k + 2) ] Runstatus of algorithm runs. The first 2 columns are “instance_id” and “repetition”, the remaining are the status factors. The step columns are in the same order as the feature steps in the description object. The factor levels are always: ok, presolved, crash, timeout, memout, other. No entry can be NA. The data.frame is sorted by “instance_id”, then “repetition”. cv.splits[data.frame(m, 3) ] Definition of cross-validation splits for each replication of a repeated CV with folds. Has columns “instance_id”, “repetition” and “fold”. The instances with fold = i for a replication r constitute the i-th test set for the r-th CV. The training set is the “instance_id” column with repetition = r, in the same order, when the test set is removed. The data.frame is sorted by “repetition”, then “fold”, then “instance_id”. If no CV file is available at all, NULL is stored, and a warning is issued, although this should not happen. Usage parseASScenario(path) Arguments path [character(1)] Path to directory of benchmark data set. Value ASScenario . Description object. See Also writeASScenario Examples ## Not run: sc = parseASScenario("/path/to/scenario") ## End(Not run) plotAlgoCorMatrix Plots the correlation matrix of the algorithms. Description If NAs occur, they are imputed (before aggregation) by base + 0.3 * range. base is the cutoff value for runtimes scenarios with cutoff or the worst performance for all others. Stochastic replications are aggregated by the mean value. Usage plotAlgoCorMatrix( asscenario, measure, order.method = "hclust", hclust.method = "ward.D2", cor.method = "spearman" ) Arguments asscenario [ASScenario] Algorithm selection scenario. measure [character(1)] Measure to plot. Default is first measure in scenario. order.method [character(1)] Method for ordering the algorithms within the plot. Possible values are “hclust” (for hierarchical clustering order), “FPC” (first principal component order), “AOE” (angular order of eigenvectors), “original” (original order) and “alphabet” (al- phabetical order). See corrMatOrder. Default is “hclust”. hclust.method [character(1)] Method for hierarchical clustering. Only useful, when order.method is set to “hclust”, otherwise ignored. Possible values are: “ward.D2”, “single”, “com- plete”, “average”, “mcquitty”, “median” and “centroid”. See corrMatOrder. Default is “ward.D2”. cor.method [character(1)] Method to be used for calculating the correlation between the algorithms. Possi- ble values are “pearson”, “kendall” and “spearman”. See cor. Default is “spear- man”. Value See corrplot. plotAlgoPerf EDA plots for performance values of algorithms across all instances. Description If NAs occur, they are imputed (before aggregation) by base + 0.3 range + jitter . base is is the cutoff value for runtimes scenarios with cutoff or the worst performance for all others. For the CDFs we only show the visible area where successful runs occurred. Stochastic replications are aggregated by the mean value. Usage plotAlgoPerfBoxplots( asscenario, measure, impute.zero.vals = FALSE, log = FALSE, impute.failed.runs = TRUE, rm.censored.runs = TRUE ) plotAlgoPerfCDFs( asscenario, measure, impute.zero.vals = FALSE, log = FALSE, rm.censored.runs = TRUE ) plotAlgoPerfDensities( asscenario, measure, impute.failed.runs = TRUE, impute.zero.vals = FALSE, log = FALSE, rm.censored.runs = TRUE ) plotAlgoPerfScatterMatrix( asscenario, measure, impute.zero.vals = FALSE, log = FALSE, rm.censored.runs = TRUE ) Arguments asscenario [ASScenario] Algorithm selection scenario. measure [character(1)] Measure to plot. Default is first measure in scenario. impute.zero.vals [logical(1)] Should values which are exactly 0 be imputed to 1e-6? This allows to take the logarithm later on, handy for subsequent visualizations. Note that this really only makes sense for non-negative measures! Default is FALSE. log [logical(1)] Should the performance values be log10-transformed in the plot? Default is FALSE. impute.failed.runs [logical(1)] Should runtimes for failed runs be imputed? Default is TRUE. rm.censored.runs [logical(1)] Should runtimes for censored runs (i.e. runs that have hitted the walltime) be removed (and eventually be imputed along with the remaining NAs)? Default is TRUE. Value ggplot2 plot object. runLlamaModels Creates a registry which can be used for running several Llama models on a cluster. Description It is likely that you need to install some additional R packages for this from CRAN or extra Weka learner. The latter can be done via e.g. WPM("install-package", "XMeans"). Feature costs are added for real prognostic models but not for baseline models. Usage runLlamaModels( asscenarios, feature.steps.list = NULL, baselines = NULL, learners = list(), par.sets = list(), rs.iters = 100L, n.inner.folds = 2L ) Arguments asscenarios [(list of) ASScenario] Algorithm selection scenarios. feature.steps.list [list of character] Named list of feature steps we want to use. Must be named with scenario ids. Default is to take the default feature steps from the scenario. baselines [character] Vector of characters, defining the baseline models. Default is c("vbs", "sin- gleBest", "singleBestByPar", "singleBestBySuccesses"). learners [list of Learner] mlr learners to use for modeling. Default is none. par.sets [list of ParamSet] Param sets for learners to tune via random search. Pass an empty param set, if you want no tuning. Must be in of same length as learners and in the same order. Default is none. rs.iters [integer(1)] Number of iterations for random search hyperparameter tuning. Default is 100. n.inner.folds [integer(1)] Number of cross-validation folds for inner CV in hyperparameter tuning. De- fault is 2L. Value batchtools registry. summarizeAlgoPerf Creates summary data.frame for algorithm performance values across all instances. Description Creates summary data.frame for algorithm performance values across all instances. Usage summarizeAlgoPerf(asscenario, measure) Arguments asscenario [ASScenario] Algorithm selection scenario. measure [character(1)] Selected measure. Default is first measure in scenario. Value data.frame . summarizeAlgoRunstatus Creates summary data.frame for algorithm runstatus across all in- stances. Description Creates summary data.frame for algorithm runstatus across all instances. Usage summarizeAlgoRunstatus(asscenario) Arguments asscenario [ASScenario] Algorithm selection scenario. Value data.frame . summarizeFeatureSteps Creates a data.frame that summarizes the feature steps. Description Creates a data.frame that summarizes the feature steps. Usage summarizeFeatureSteps(asscenario) Arguments asscenario [ASScenario] Algorithm selection scenario. Value data.frame . summarizeFeatureValues Creates summary data.frame for feature values across all instances. Description Creates summary data.frame for feature values across all instances. Usage summarizeFeatureValues(asscenario, type) Arguments asscenario [ASScenario] Algorithm selection scenario. type [character(1)] Feature type (instance or algorithmic). Value data.frame . summarizeLlamaExps Creates summary data.table for runLlamaModel experiments. Description Creates summary data.table for runLlamaModel experiments. Usage summarizeLlamaExps( reg, ids = findSubmitted(), fun = function(job, res) { return(list(succ = res$succ, par10 = res$par10, mcp = res$mcp)) }, missing.val = list(succ = 0, par10 = Inf, mcp = Inf) ) Arguments reg [Registry] batchtools registry. ids [data.table] Selected job ids. Default is all submitted jobs. fun [function()] Function to aggregate results with. Default is a function that returns succ, par10 and mcp values. For a detailed description, see [reduceResultsList]. missing.val [list(1)] List with defaults for missing values that are needed for aggregation. For a detailed description, see [reduceResultsList]. Value data.table . writeASScenario Writes an algorithm selection scenario to a directory. Description Splits an algorithm selection scenario into description, feature values / runstatus / costs, algorithm performance and cv splits and saves those data sets as single ARFF files in the given directory. Usage writeASScenario(asscenario, path = asscenario$desc$scenario_id) Arguments asscenario [ASScenario] Algorithm selection scenario. path [character(1)] Path to write scenario to. Default is the name of the scenario. See Also parseASScenario
deldir
cran
R
Package ‘deldir’ May 17, 2023 Version 1.0-9 Date 2023-05-17 Title Delaunay Triangulation and Dirichlet (Voronoi) Tessellation Author <NAME> Maintainer <NAME> <<EMAIL>> Depends R (>= 3.5.0) Suggests polyclip Imports graphics, grDevices Description Calculates the Delaunay triangulation and the Dirichlet or Voronoi tessellation (with respect to the entire plane) of a planar point set. Plots triangulations and tessellations in various ways. Clips tessellations to sub-windows. Calculates perimeters of tessellations. Summarises information about the tiles of the tessellation. Calculates the centroidal Voronoi (Dirichlet) tessellation using Lloyd's algorithm. LazyData true ByteCompile true License GPL (>= 2) NeedsCompilation yes Repository CRAN Date/Publication 2023-05-17 05:20:02 UTC R topics documented: cv... 2 deldi... 4 divchai... 12 duplicatedx... 14 getNbr... 15 grapherXmp... 17 lawSummar... 18 niPropertie... 20 plot.deldi... 21 plot.divchai... 24 plot.tile.lis... 25 plot.triang.lis... 29 print.deldi... 30 print.tileInf... 31 seawee... 33 tile.centroid... 34 tile.lis... 35 tileAre... 37 tileInf... 38 tilePeri... 40 toyPatter... 42 triang.lis... 42 triMa... 44 volTriPoint... 45 which.til... 46 cvt Centroidal Voronoi (Dirichlet) tessellation. Description Calculates the centroidal Voronoi (Dirichlet) tessellation using Lloyd’s algorithm. Usage cvt(object, stopcrit = c("change", "maxit"), tol = NULL, maxit = 100, verbose = FALSE) Arguments object An object of class either "deldir" (as returned by deldir()) or "tile.list" (as returned by tile.list()). stopcrit Text string specifying the stopping criterion for the algorithm. If this is "change" then the algorithm halts when the maximum change in in the distances between corresponding centroids, between iterations, is less than tol (see below). It stopcrit is "maxit" then the algorithm halts after a specified number of itera- tions (maxit; see below) have been completed. This argument may be abbrevi- ated, e.g. to "c" or "m". tol The tolerance used when the stopping criterion is "change". Defaults to .Machine$double.eps. maxit The maximum number of iterations to perform when the stopping criterion is "maxit". verbose Logical scalar. If verbose is TRUE then rudimentary “progress reports” are printed out, every 10 iterations if the stopping criterion is "change" or every iteration if the stopping criterion is "maxit". Details The algorithm iteratively tessellates a set of points and then replaces the points with the centroids of the tiles associated with those points. “Eventually” (at convergence) points and the centroids of their associated tiles coincide. Value A list with components: centroids A data frame with columns "x" and "y" specifying the coordinates of the limit- ing locations of the tile centroids. tiles An object of class "tile.list" specifying the Dirichlet (Voronoi) tiles in the tessellation of the points whose coordinates are given in centroids. Note the tile associated with the ith point has centroid equal to that point. Note This function was added to the deldir package at the suggestion of Dr. Micha\"<NAME>, Senior Scientist at the Qatar Computing Research Institute, Hamad Bin Khalifa University. Author(s) <NAME> <<EMAIL>> References https://en.wikipedia.org/wiki/Lloyd’s_algorithm Lloyd, <NAME>. (1982). Least squares quantization in PCM. IEEE Transactions on Information Theory 28 (2), pp. 129–137, doi:10.1109/TIT.1982.1056489. See Also deldir() tile.list() Examples # Takes too long. set.seed(42) x <- runif(20) y <- runif(20) dxy <- deldir(x,y,rw=c(0,1,0,1)) cxy1 <- cvt(dxy,verb=TRUE) plot(cxy1$tiles) with(cxy1$centroids,points(x,y,pch=20,col="red")) cxy2 <- cvt(dxy,stopcrit="m",verb=TRUE) plot(cxy2$tiles) with(cxy2$centroids,points(x,y,pch=20,col="red")) # Visually indistinguishable from the cxy1 plot. # But ... all.equal(cxy1$centroids,cxy2$centroids) # Not quite. cxy3 <- cvt(dxy,stopcrit="m",verb=TRUE,maxit=250) all.equal(cxy1$centroids,cxy3$centroids) # Close, but no cigar. cxy4 <- cvt(dxy,verb=TRUE,tol=1e-14) cxy5 <- cvt(dxy,stopcrit="m",verb=TRUE,maxit=600) all.equal(cxy4$centroids,cxy5$centroids) # TRUE # Takes a lot of iterations or a really small tolerance # to get "good" convergence. But this is almost surely # of no practical importance. txy <- tile.list(dxy) cxy6 <- cvt(txy) all.equal(cxy6$centroids,cxy1$centroids) # TRUE deldir Delaunay triangulation and Dirichlet tessellation Description This function computes the Delaunay triangulation (and hence the Dirichlet or Voronoi tessella- tion) of a planar point set according to the second (iterative) algorithm of Lee and Schacter — see References. The triangulation is made to be with respect to the whole plane by “suspending” it from so-called ideal points (-Inf,-Inf), (Inf,-Inf) (Inf,Inf), and (-Inf,Inf). The triangulation is also enclosed in a finite rectangular window. Usage deldir(x, y, z=NULL, rw=NULL, eps=1e-09, sort=TRUE, plot=FALSE, round=TRUE,digits=6, id=NULL, ...) Arguments x,y These arguments specify the coordinates of the point set being triangulated/tessellated. Argument x may be a numeric vector or it may be a data structure consisting of a matrix, a data frame, a generic list, or an object of class "ppp". (See package spatstat.) Argument y, if specified, is always a numeric vector. The "x" and "y" coordinates are extracted from arguments x and y according to (what can be, in some instances) a rather complicated protocol. See Notes on extracting the coordinates for details of this protocol. z Optional argument specifying “auxiliary” values or “tags” associated with the respective points. (See Notes on “tags”.) This argument may be a vector or factor whose entries constitute these tags, or it may be a text string naming such a vector or factor. If z, or the object named by z is a vector (rather than a factor) it may be of any mode (numeric, character, logical, etc.). See Notes on extracting z for how z is handled when argument x is a data structure (rather than a numeric vector). rw The coordinates of the corners of the rectangular window enclosing the trian- gulation, in the order (xmin, xmax, ymin, ymax). Any data points outside this window are discarded. If this argument is omitted, it defaults to values given by the range of the data, plus and minus 10 percent. eps A value of epsilon used in testing whether a quantity is zero, mainly in the context of whether points are collinear. If anomalous errors arise, it is possible that these may averted by adjusting the value of eps upward or downward. sort Logical argument; if TRUE (the default) the data are sorted into a sequence of “bins” prior to triangulation; this makes the algorithm slightly more efficient. Normally one would set sort equal to FALSE only if one wished to observe some of the fine detail of the way in which adding a point to a data set affected the triangulation, and therefore wished to make sure that the point in question was added last. Essentially this argument would get used only in a debugging process. plot Logical argument; if TRUE a plot is produced. The nature of the plot may be con- trolled by using the ... argument to pass appropriate arguments to plot.deldir(). Without “further instruction” a plot of the points being triangulated and of both the triangulation and the tessellation is produced; round Logical scalar. Should the data stored in the returned value be rounded to digits decimal digits? This is essentially for cosmetic purposes. This argument is a “new addition” to deldir(), as of version 0.1-26. Previously rounding was done willy-nilly. The change was undertaken when <NAME> pointed out that the rounding might have unwanted effects upon “downstream” operations. digits The number of decimal places to which all numeric values in the returned list should be rounded. Defaults to 6. Ignored if round (see above) is set to FALSE. id Optional vector of the same length as x and y, providing identifiers for the points that are being triangulated/tessellated. This vector will be coerced to mode "character" internally. If id is not specified, it defaults to the sequence of indices of the points. Note that id must specify identifiers for all points, even though some of these points may be dropped from consideration if they do not lie inside the “rectangular window” rw. Note also that id must contain no du- plicate values. The id argument should not be confused with the z argument. The two are entirely different and serve entirely different purposes. ... Auxiliary arguments add, wlines, labelPts, lex, col, lty, pch, xlim, and ylim (and possibly other plotting parameters) may be passed to plot.deldir() through ... if plot=TRUE. Details This package had its origins (way back in the mists of time!) as an Splus library section named “delaunay”. That library section in turn was a re-write of a stand-alone Fortran program written in 1987/88 while the author was with the Division of Mathematics and Statistics, CSIRO, Sydney, Australia. This program was an implementation of the second (iterative) Lee-Schacter algorithm. The stand-alone Fortran program was re-written as an Splus function (which called upon dynami- cally loaded Fortran code) while the author was visiting the University of Western Australia, May, 1995. Further revisions were made December 1996. The author gratefully acknowledges the contribu- tions, assistance, and guidance of <NAME>, of D.M.S., CSIRO, in collaboration with whom this project was originally undertaken. The author also acknowledges much useful advice from <NAME>, formerly of D.M.S., CSIRO (now Professor of Statistics at Curtin University). <NAME>ingley of the Department of Mathematics and Statistics, University of New Brunswick, pro- vided some helpful insight. Special thanks are extended to <NAME>, of the Alaska Fisheries Science Centre, who supplied two data sets which were extremely valuable in tracking down some errors in the code. <NAME>, of Lawrence Livermore National Lab, wrote an Splus driver function for the old stand-alone version of this software. That driver, which was available on Statlib, was deprecated in favour of the Statlib package “delaunay”. Don also collaborated in the preparation of the latter package. It is not clear to me whether the “delaunay” package, or indeed Statlib (or indeed Splus!) still exist. See the ChangeLog for information about further revisions and bug-fixes. Value A list (of class deldir), invisible if plot=TRUE, with components: delsgs A data frame with 6 columns. The first 4 entries of each row are the coor- dinates of the points joined by an edge of a Delaunay triangle, in the order (x1,y1,x2,y2). The last two entries are the identifiers (defaulting to the in- dices, if id is not supplied) of the two points which are joined. dirsgs A data frame with 10 columns. The first 4 entries of each row are the coordinates of the endpoints of one the edges of a Dirichlet tile, in the order (x1,y1,x2,y2). The fifth and sixth entries, in the columns named ind1 and ind2, are the identi- fiers (defaulting to the indices, if id is not supplied) of the two points, in the set being triangulated, which are separated by that edge. The seventh and eighth en- tries, in the columns named bp1 and bp2 are logical values. The entry in column bp1 indicates whether the first endpoint of the corresponding edge of a Dirichlet tile is a boundary point (a point on the boundary of the rectangular window). Likewise for the entry in column bp2 and the second endpoint of the edge. The ninth and tenth entries, in columns named thirdv1 and thirdv2 are the identifiers of the respective third vertices of the Delaunay triangles whose cir- cumcentres constitute the corresponding endpoints of the edge under consider- ation. (The other two vertices of the triangle in question are identified by the entries of columns ind1 and ind2.) The entries of columns thirdv1 and thirdv2 may (also) take the values $-1, -2, -3$, and $-4$. (These will be coerced to mode character if id was supplied.) This will be the case if the circumcentre in question lies outside of the rect- angular window rw. In these circumstances the corresponding endpoint of the tile edge is the intersection of the line joining the two circumcentres with the boundary of rw, and the numeric value of the entry of column “thirdv1” (respec- tively “thirdv2”) indicates which side. The numbering follows the convention for numbering the sides of a plot region in R: 1 for the bottom side, 2 for the left hand side, 3 for the top side and 4 for the right hand side. Note that the entry in column thirdv1 will be negative if and only if the cor- responding entry in column bp1 is TRUE. Similarly for columns thirdv2 and bp2. summary a data frame with 9, 10 or 11 columns and n.data rows (see below). The rows correspond to the points in the set being triangulated. Note that the row names are the indices of the points in the original sequence of points being triangu- lated/tessellated. Usually these will be the sequence 1, 2, ..., n. However if there were duplicated points then the row name corresponding to a point is the first of the indices of the set of duplicated points in which the given point appears. The columns are: • x (the x-coordinate of the point) • y (the y-coordinate of the point) • id (the identifers of the points; present only if id was specified) • z (the auxiliary values or “tags”; present only if these were specified) • n.tri (the number of Delaunay triangles emanating from the point) • del.area (1/3 of the total area of all the Delaunay triangles emanating from the point) • del.wts (the corresponding entry of the del.area column divided by the sum of this column) • n.tside (the number of sides — within the rectangular window — of the Dirichlet tile surrounding the point) • nbpt (the number of points in which the Dirichlet tile intersects the bound- ary of the rectangular window) • dir.area (the area of the Dirichlet tile surrounding the point) • dir.wts (the corresponding entry of the dir.area column divided by the sum of this column). Note that the factor of 1/3 associated with the del.area column arises because each triangle occurs three times — once for each corner. n.data the number of points in the set which was triangulated, with any duplicate points eliminated. It is the same as the number of rows of summary. del.area the area of the convex hull of the set of points being triangulated, as formed by summing the del.area column of summary. dir.area the area of the rectangular window enclosing the points being triangulated, as formed by summing the dir.area column of summary. rw the specification of the corners of the rectangular window enclosing the data, in the order (xmin, xmax, ymin, ymax). ind.orig A vector of the indices of the points (x,y) in the set of coordinates initially sup- plied to deldir() before duplicate points (if any) were removed. These indices are used by triang.list(). Side Effects If plot=TRUE a plot of the triangulation and/or tessellation is produced or added to an existing plot. Notes on extracting the coordinates The protocol for extracting the x and y coordinates from the arguments x and y is a bit complicated and confusing. It is designed to handle a number of different desiderata and to accommodate various feature-requests that users have made over the years. Basically the protocol is: • If x is a numeric vector and y is a numeric vector then x is used as the x-coordinates and y is used as the y-coordinates. • If x is a matrix, a data frame, or a generic list), and y is a numeric vector, then the x-coordinates are sought amongst the components of x and y is used as the y-coordinates. • If x is a matrix, a data frame, or a generic list and y is not specified or cannot be found, then both the x-coordinates and y-coordinates are sought amongst the components of x. • If x an object of class "ppp" then both the x-coordinates and y-coordinates are taken from the components of x. If y is specified, it is ignored (with a warning). • If x is a numeric vector and y is not specified or cannot be found, then an error is thrown. A few more details: • If x is of class "ppp" then it will definitely have components named "x" and "y". • If x is a generic list, it must have a component named "x" (otherwise an error is thrown), and the x-coordinates are set equal to this component. If y is not specified or cannot be found, then a "y" component of x is sought. If such a component exists then the y-coordinates are set equal to this component. Otherwise an error is thrown). • If x is a matrix or a data frame, the protocol gets a bit more intricate. – If x has a column named "x" then this column is taken to be the x-coordinates. – Otherwise the x-coordinates are taken to be the first column of x that is not named "y" or znm (where znm is the name of the object providing the “tags”, if “tags” have been specified). – If there is no such first column (e.g. if there are only two columns and these have names "y" and znm) then an error is thrown. – If y is not specified or cannot be found, and if x has a column named "y" then this column is taken to be the y-coordinates. – Otherwise, in this situation, the y-coordinates are taken to be the first column of x that is not named "x" or znm and is not equal to the column previously selected to be the x-coordinates. – If there is no such first column (e.g. if there are only two columns and these have names "x" and znm), then an error is thrown. Got all that? :-) If these instructions seem rather bewildering (and indeed they are!) just keep things simple and make calls like deldir(x,y) where x and y are numeric vectors that have been previously assigned in the global environment. Notes on extracting z If argument x is a data structure (rather than a numeric vector) and is not an object of class "ppp" then z, if specified and not found, is searched for in x. If x is of class "ppp" then what happens depends on whether z was specified or left to take its default value of NULL. In the former case, z takes the specified value. In the latter case the value of "z" is taken from the marks of x provided that x is indeed a marked point pattern and that the marks are atomic (essentially provided that the marks are not a data frame). Otherwise z is left NULL, i.e. there are no “tags” associated with the points. Notes on “tags” The “tags” are simply values that are associated in some way with the data points and hence with the tiles of the tessellation produced. They DO NOT affect the tessellation. In previous versions of this package (0.2-10 and earlier) the entries of z were referred to as “weights”. This terminology has been changed since it is misleading. The tessellation produced when a z argument is supplied is the same as is it would be if there were no z argument (i.e. no “weights”). The deldir package DOES NOT do weighted tessellation. Notes on Memory Allocation It is difficult-to-impossible to determine a priori how much memory needs to be allocated (in the Fortran code) for storing the edges of the Delaunay triangles and Dirichlet tiles, and for storing the “adjacency list” used by the Lee-Schacter algorithm. In the code, an attempt is made to allocate sufficient storage. If, during the course of running the algorithm, the amount of storage turns out to be inadequate, the algorithm is halted, the storage is incremented, and the algorithm is restarted (with an informative message). This message may be suppressed by wrapping the call to deldir() in suppressMessages(). Notes on error messages In previous versions of this package, error traps were set in the underlying Fortran code for 17 different errors. These were identified by an error number which was passed back up the call stack and finally printed out by deldir() which then invisibly returned a NULL value. A glossary of the meanings of the values of was provided in a file to be found in a file located in the inst directory (“folder” if you are a Windoze weenie). This was a pretty shaganappi system. Consequently, as of version 1.2-1, conversion to “proper” error trapping was implemented. Such error trapping is effected via the rexit() subroutine which is now available in R. (See “Writing R Extensions”, section 6.2.1.) Note that when an error is detected, deldir() now exits with a genuine error, rather than returning NULL. The glossary of the meanings of “error numbers” is now irrelevant and has been removed from the inst directory. An error trap that merits particular mention was introduced in version 0.1-16 of deldir. This error trap relates to “triangle problems”. It was drawn to my attention by <NAME> (on 18 December, 2018) that in some data sets collinearity problems may cause the “triangle finding” procedure, used by the algorithm to successively add new points to a tessellation, to go into an infinite loop. A symptom of the collinearity is that the vertices of a putative triangle appear not to be in anticlockwise order irrespective of whether they are presented in the order i, j, k or k, j, i. The result of this anomaly is that the procedure keeps alternating between moving to “triangle” i, j, k and moving to “triangle” k, j, i, forever. The error trap in question is set in trifnd, the triangle finding subroutine. It detects such occur- rences of “clockwise in either orientation” vertices. The trap causes the deldir() function to throw an error rather than disappearing into a black hole. When an error of the “triangle problems” nature occurs, a possible remedy is to increase the value of the eps argument of deldir(). (See the Examples.) There may conceivably be other problems that lead to infinite loops and so I put in another error trap to detect whether the procedure has inspected more triangles than actually exist, and if so to throw an error. Note that the strategy of increasing the value of eps is probably the appropriate response in most (if not all) of the cases where errors of this nature arise. Similarly this strategy is probably the appropriate response to the errors • Vertices of “triangle” are collinear and vertex 2 is not between 1 and 3. Error in circen. • Vertices of triangle are collinear. Error in dirseg. • Vertices of triangle are collinear. Error in dirout. However it is impossible to be sure. The intricacy and numerical delicacy of triangulations is too great for anyone to be able to foresee all the possibilities that could arise. If there is any doubt as to the appropriateness of the “increase eps” strategy, users are advised to do their best to explore the data set, graphically or by other means, and thereby determine what is actually going on and why problems are occurring. Warnings 1. The process for determining if points are duplicated changed between versions 0.1-9 and 0.1- 10. Previously there was an argument frac for this function, which defaulted to 0.0001. Points were deemed to be duplicates if the difference in x-coordinates was less than frac times the width of rw and y-coordinates was less than frac times the height of rw. This process has been changed to one which uses duplicated() on the data frame whose columns are x and y. As a result it may happen that points which were previously eliminated as duplicates will no longer be eliminated. (And possibly vice-versa.) 2. The components delsgs and summary of the value returned by deldir() are now data frames rather than matrices. The component summary was changed to allow the “auxiliary” values z to be of arbitrary mode (i.e. not necessarily numeric). The component delsgs was then changed for consistency. Note that the other “matrix-like” component dirsgs has been a data frame since time immemorial. Acknowledgement I would like to express my most warm and sincere thanks to <NAME> (Emeritus Profes- sor of Statistics, Western University) for helping me, with incredible patience and forbearance, to straighten out my thinking in respect of adjustments that I recently (October 2021) made to the argument processing protocol in the deldir() function. Duncan provided numerous simple exam- ples to demonstrate when and how things were going wrong, and patiently explained to me how I was getting one aspect of the protocol backwards. Author(s) <NAME> <<EMAIL>.ac.nz> References <NAME>. and <NAME>. (1980). Two algorithms for constructing a Delaunay triangulation, International Journal of Computer and Information Sciences 9 (3), pp. 219 – 242. <NAME>. and <NAME>. (1983). Pattern Models. New York: Wiley. See Also plot.deldir(), tile.list(), triang.list() Examples x <- c(2.3,3.0,7.0,1.0,3.0,8.0) y <- c(2.3,3.0,2.0,5.0,8.0,9.0) # Let deldir() choose the rectangular window. dxy1 <- deldir(x,y) # User chooses the rectangular window. dxy2 <- deldir(x,y,rw=c(0,10,0,10)) # Put "dummy" points at the corners of the rectangular # window, i.e. at (0,0), (10,0), (10,10), and (0,10) xx <- c(x,0,10,10,0) yy <- c(y,0,0,10,10) dxy3 <- deldir(xx,yy,rw=c(0,10,0,10)) # Plot the triangulation created (but not the tessellation). dxy2 <- deldir(x,y,rw=c(0,10,0,10),plot=TRUE,wl="tr") # Example of collinearity error. ## Not run: dniP <- deldir(niProperties) # Throws an error ## End(Not run) dniP <- deldir(niProperties,eps=1e-8) # No error. # Example of using data stored in a data frame. dsw <- deldir(seaweed) # Example where "data" is of class "ppp". dtoy <- deldir(toyPattern) # The "tags", in dtoy$summary$z, are the marks of the toy ppp # object which consists of the letters "a","b","c" and "d". # Artificial example of tags. set.seed(42) trees1 <- sample(c("spruce","birch","poplar","shoe"),20,TRUE) trees2 <- sample(c("fir","maple","larch","palm"),20,TRUE) egDat <- data.frame(x=runif(20),y=runif(20),species=trees1) tagNm <- "species" species <- trees2 dd1 <- deldir(egDat) # No tags. dd2 <- deldir(egDat,z=species) # Uses trees1 as the tags. dd3 <- deldir(egDat,z="species") # Same as dd2. dd4 <- deldir(egDat,z=tagNm) # Same as dd2 and dd3. spec <- species dd5 <- deldir(egDat,z=spec) # Uses trees2 as the tags. # Duncan Murdoch's examples. The deldir() function was not # handling such examples correctly until Duncan kindly set # me on the right path. set.seed(123) dd6 <- deldir(rnorm(32),rnorm(32),rnorm(32)) # x <- cbind(x = 1:10, junk = 11:20) y <- 21:30 z <- 31:40 d7 <- deldir(x=x, y=y, z=z) # # print(d7$summary) reveals that x is 1:10, y is 21:30 # and z is 31:40; x[,"junk"] is ignored as it should be. x <- cbind(x = 1:10, "rnorm(10)" = 11:20) y <- 21:30 z <- 41:50 d8 <- deldir(x=x, y=y, z=rnorm(10)) # # print(d8$summary) reveals that x is 1:10, y is 21:30 and z is a # vector of standard normal values. Even though x has a column with # the name of the z argument i.e. "rnorm(10)" (!!!) the specified # value of z takes precedence over this column (and, as per the usual # R syntax) over the object named "z" in the global environment. # Artificial example of the use of the "id" argument. set.seed(42) x <- runif(50) y <- runif(50) ll <- expand.grid(a=letters[1:10],b=letters[1:10]) aa <- sample(paste0(ll[["a"]],ll[["b"]]),50) dxy.wid <- deldir(x,y,id=aa) divchain Dividing chain. Description Create the “dividing chain” of a Dirichlet tessellation. The tessellation must have been created from a set of points having associated “tags”. The dividing chain consists of those edges of Dirichlet tiles which separate points having different values of the given tags. Usage divchain(x, ...) ## Default S3 method: divchain(x, y, z, ...) ## S3 method for class 'deldir' divchain(x, ...) Arguments x Either an object specifying coordinates (in the case of the "default" method; see deldir() for details) or an object of class “deldir”. In the latter case this object must have been created in such a way that the points of the set being tessellated have associate categorical “tags”. That is, deldir() must have been called with a z argument or the x argument to deldir() must have had an ap- propriate component which could be taken to be z. Note that if the value of z that was used was not a factor, it is coerced to one. y A numeric vector constituting the y-coordinates of the set of points being tes- sellated. See deldir() for details. Not used by the "deldir" method. z A vector or factor specifying “auxiliary” values or “tags”. If this argument is left NULL then it is extracted, if possible, from the components of x. See deldir() for further details. If z is not a factor it is coerced to one. See deldir() for details. Not used by the "deldir" method. ... Arguments to be passed to deldir(). Not used by the "deldir" method. Value An object of class “divchain” consisting of a data frame with columns named “x0”, “y0”, “x1”, “y1”, “v01”, “v02”, “v03”, “v11”, “v12” and “v13”. The columns named “x0” and “y0” consist of the coordinates of one endpoint of an edge of a Dirichlet tile and the columns named “x1” and “y1” consist of the coordinates of the other endpoint. The columns named “vij”, i = 0, 1, j = 1, 2, 3, consist of the indices of the vertices of the Delaunay triangles whose circumcentres constitute the respective endpoints of the corresponding edge of a Dirichlet tile. The entries of column “vi3” may (also) take the values $-1, -2, -3$, and $-4$. This will be the case if the circumcentre in question lay outside of the rectangular window rw (see deldir()) enclosing the points being tessellated. In these circumstances the corresponding endpoint of the tile edge is the intersection of the line joining the two circumcentres with the boundary of rw, and the numeric value of the entry of column “vi3” indicates which side. The numbering follows the convention for numbering the sides of a plot region in R: 1 for the bottom side, 2 for the left side, 3 for the top side and 4 for the right side. Note that the triple of vertices uniquely identify the endpoint of the tile edge. The object has an attribute rw which is equal to the specification of the rectangular window within which the triangulation/tessellation in question was constructed. (See deldir().) Note This function was created in response to a question asked on stackoverflow.com by a user named “Dan”. Author(s) <NAME> <<EMAIL>> See Also deldir() plot.divchain() Examples set.seed(42) x <- runif(50) y <- runif(50) z <- factor(kmeans(cbind(x,y),centers=4)$cluster) dc1 <- divchain(x,y,z,rw=c(0,1,0,1)) dxy <- deldir(x,y,z=z,rw=c(0,1,0,1)) dc2 <- divchain(dxy) duplicatedxy Determine duplicated points. Description Find which points among a given set are duplicates of others. Usage duplicatedxy(x, y) Arguments x Either a vector of x coordinates of a set of (two dimensional) points, or a list (or data frame) with columns x and y giving the coordinates of a set of such points. y A vector of y coordinates of a set of (two dimensional) points. Ignored if x is a list or data frame. Details Often it is of interest to associate each Dirichlet tile in a tessellation of a planar point set with the point determining the tile. This becomes problematic if there are duplicate points in the set being tessellated/triangulated. Duplicated points are automatically eliminated “internally” by deldir(). The association between tiles and the indices of the original set of points is now preserved by the component ind.orig of the object returned by deldir(). However confusion could still arise. If it is of interest to associate Dirichlet tiles with the points determining them, then it is better to proceed by eliminating duplicate points to start with. This function (duplicatedxy()) provides a convenient way of doing so. Value A logical vector of length equal to the (original) number of points being considered, with entries TRUE if the corresponding point is a duplicate of a point with a smaller index, and FALSE otherwise. Warning Which indices will be considered to be indices of duplicated points (i.e. get TRUE values) will of course depend on the order in which the points are presented. Note The real work is done by the base R function duplicated(). Author(s) <NAME> <<EMAIL>> See Also duplicated(), deldir() Examples set.seed(42) xy <- data.frame(x=runif(20),y=runif(20)) # Lots of duplicated points. xy <- rbind(xy,xy[sample(1:20,20,TRUE),]) # Scramble. ii <- sample(1:40,40) x <- xy$x[ii] y <- xy$y[ii] # Unduplicate! iii <- !duplicatedxy(x,y) xu <- x[iii] yu <- y[iii] # The i-th tile is determined by (xu[i],yu[i]): dxy <- deldir(xu,yu) getNbrs List Delaunay neighbours. Description Lists the indices (or identifiers if these are provided) of the Delaunay neighbours of each point in the set of points being triangulated/tessellated. Usage getNbrs(object, interior = NULL) Arguments object An object of class "deldir", as returned by the function deldir(). interior Either a rectangle, i.e. a numeric vector of length 4, (xmin,xmax,ymin,ymax), or a polygon (a list with components named "x" and "y", which are numeric vectors of equal length, say n. The pairs (x[i],y[i]) specify the vertices of the polygon and should be presented in anticlockwise order. The last vertex should NOT repeat the first. If interior is given as a rectangle, its entries must satisfy xmin < xmax and ymin < ymax. Moreover, in this case, interior must be a subset of the rectan- gular window rw (see deldir()) with respect to which the points in question are being triangulated/tessellated. That is, its entries must satisfy rw[1] <= xmin, xmax <= rw[2], rw[3] <= ymin and ymax <= rw[4]. Details If interior is specified then Delaunay neighbours are listed only for those points which lie in interior. Note that these neighbours need not themselves lie in interior. Note also that it is possible for points i and j to be neighbours even though the “clipped” versions of the tiles are discontiguous. Value A (named) list of length equal to the number points in the set being triangulated/tessellated, or to the number of such points that lie in interior if that argument was specified. The names of the list are the identifiers of the points as specified by id if id was specified in the call to deldir() that produced object. If id was not specified, then the names are the indices of the points, coerced to character mode. The entries of this list are vectors of the identifiers or indices of the Delaunay neighbours of the point corresponding to that entry. Warning Be careful about addressing the entries of the list returned by this function. If id was not specified in the call to deldir() that produced object, then the names of this list are the point indices coerced to character mode. If interior was specified then the name of i-th entry of the list will not in general be i. E.g. given that xxx is the list returned by this function, xxx[[14]] will not in general give the Delaunay neighbours of point 14. Instead, specify xxx[["14"]] or xxx[[id[14]]] where id is the vector of identifiers supplied in the call to deldir(). Author(s) <NAME> <<EMAIL>> References See deldir() for references. Examples set.seed(42) x <- runif(60) y <- runif(60) dxy <- deldir(x,y,rw=c(0,1,0,1)) nbrs <- getNbrs(dxy,interior=c(0.2,0.8,0.2,0.8)) nbrs[["14"]] # Correct. nbrs[[14]] # Incorrect. names(nbrs)[14] # The result is 42. # Thus nbrs[[14]] actually gives the Delaunay neighbours of point 42. # Demonstrate that neighbours can have discontiguous clipped tiles. if(require(polyclip)) { x <- c(0.38,0.44,0.04,0.97,0.43,0.96,0.89,0.64,0.97,0.62,0.33,0.35, 0.40,0.78,0.04,0.75,0.68,0.17,0.26,0.51) y <- c(0.68,0.98,0.76,0.57,0.85,0.19,0.27,0.83,0.69,0.24,0.04,0.14, 0.22,0.48,0.20,0.72,0.01,0.38,0.51,0.00) CP <- list(x=c(0.72,0.93,0.76,0.61,-0.03,-0.04,0.41), y=c(0.46,0.76,0.94,1.03,1.01,0.37,0.31)) dxy <- deldir(x,y,rw=c(0,1,0,1)) TL <- tile.list(dxy) plot(TL,labelPts=TRUE) plot(TL[16],clipp=CP,fillcol="orange",labelPts=TRUE,add=TRUE) polygon(CP,border="red") nbrs <- getNbrs(dxy,interior=CP) # Tiles are clipped to CP. # Note that point 14 is a neighbour of point 16, even though their # clipped tiles do not meet. } grapherXmpl grapherXmpl Description A data set taken from an example in the grapherator package. This data set demonstrates handling a data set with duplicated points. Usage grapherXmpl Format A data frame with 250 observations on the following 2 variables. x a numeric vector y a numeric vector Details There are 25 duplicated points, so the net number of observations is 225. These data constitute a structure (named coordinates) generated internally in the function addEdgesDelaunay. The call is to be found in the examples in the help file for the plot.grapherator() in the grapherator package. The relevant example initially threw an error, revealing a bug in deldir() that was trig- gered when there were duplicated points in the data. Source The grapherator package, https://CRAN.R-project.org/package=grapherator Examples dgX <- deldir(grapherXmpl) # Now works!!!` lawSummary Produce a Lewis-Aboav-Weaire summary of a tessellation. Description Produce a summary of a Dirichlet (Voronoi) tessellation in terms of parameters relevant to Lewis’s law and Aboav-Weaire’s law. Note that “law” in the function name corresponds to “Lewis-Aboav- Weaire”. Usage lawSummary(object) Arguments object An object of class "deldir" as returned by the function deldir(). Details Tiles are stripped away from the tessellation in “layers”. Layer 1 consists of “boundary” tiles, i.e. tiles having at least one vertex on the enclosing rectangle (determined by the rw argument of deldir()). Layer 2 consists of tiles which are neighbours of tiles in layer 1 (i.e. tiles determined by points that are Delaunay neighbours of points determining the tiles in layer 1). Layer 3 consists of tiles which are neighbours of tiles in layer 2. The parameters of interest in respect of the Lewis-Aboav-Weaire summary are then calculated in terms of the tiles that remain after the three layers have been stripped away, which will be referred to as “interior” tiles. These parameters are: • the areas of each of the interior tiles • the number of edges of each of the interior tiles • the number of edges of all neighbouring tiles of each of the interior tiles. Note that the neighbouring tiles of the interior tiles may include tiles which are not themselves interior tiles (i.e. tiles which are in layer 3). This function was created at the request of Kai Xu (Fisheries College, Jimei University, Xiamen, Fujian, China 361021). Value If no tiles remain after the three layers have been stripped away, then the returned value is NULL. Otherwise the returned value is a list with components calculated in terms of the remaining (“inte- rior”) tiles. These components are: • tile.vertices A list whose entries are data frames giving the coordinates of the vertices of the interior tiles. • tile.areas A vector of the areas of the interior tiles in the tessellation in question. • tile.tags A vector or factor whose values are the “tags” of the interior tiles. The “original” of this object (the “tags” associated with all of the tiles) is provided as the z argument to deldir(). The tile.tags component of the value returned by lawSummary() is present only if deldir() was called with a (non-NULL) value of the z argument. • num.edges A vector of the number of edges of each such tile. • num.nbr.edges A list with a component for each point, in the set being tessellated, whose corresponding tile is an interior tile. Each component of this list is the vector of the number of edges of the interior tiles determined by points which are Delaunay neighbours of the point corresponding to the list component in question. • totnum.nbr.edges A vector whose entries consist of the sums of the vectors in the foregoing list. The returned list also has attributes as follows: • i1 An integer vector whose entries are in the indices of the tiles in layer 1. • i2 An integer vector whose entries are in the indices of the tiles in layer 2. • i3 An integer vector whose entries are in the indices of the tiles in layer 3. • i.kept An integer vector whose entries are in the indices of the tiles that are kept, i.e. those that remain after the three layers have been stripped away. Author(s) <NAME> <<EMAIL>> See Also tile.list() tile.centroids() Examples # A random pattern: set.seed(42) xy1 <- data.frame(x=runif(400,0,20),y=runif(400,0,20)) dxy1 <- deldir(xy1) ldxy1 <- lawSummary(dxy1) tl1 <- tile.list(dxy1) plot(0,0,type="n",xlim=c(-2,35),ylim=c(0,20),asp=1,xlab="x",ylab="y",bty="l") plot(tl1,showpoints=FALSE,add=TRUE) points(xy1[attr(ldxy1,"i1"),],pch=20,col="yellow") points(xy1[attr(ldxy1,"i2"),],pch=20,col="blue") points(xy1[attr(ldxy1,"i3"),],pch=20,col="green") points(xy1[attr(ldxy1,"i.kept"),],pch=20,col="red") legend("right",pch=20,col=c("yellow","blue","green","red"), legend=c("layer 1","layer 2","layer 3","interior")) # A highly structured pattern (example due to Kai Xu): set.seed(115) x <- c(rep(1:20,10),rep((1:20)+0.5,10)) y <- c(rep(1:10,each=20),rep((1:10)+0.5,each=20))*sqrt(3) a <- runif(400,0,2*pi) b <- runif(400,-1,1) x <- x+0.1*cos(a)*b y <- y+0.1*sin(a)*b xy2 <- data.frame(x,y) dxy2 <- deldir(xy2) ldxy2 <- lawSummary(dxy2) tl2 <- tile.list(dxy2) plot(0,0,type="n",xlim=c(-2,35),ylim=c(0,20),asp=1,xlab="x",ylab="y",bty="l") plot(tl2,showpoints=FALSE,add=TRUE) points(xy2[attr(ldxy2,"i1"),],pch=20,col="yellow") points(xy2[attr(ldxy2,"i2"),],pch=20,col="blue") points(xy2[attr(ldxy2,"i3"),],pch=20,col="green") points(xy2[attr(ldxy2,"i.kept"),],pch=20,col="red") legend("right",pch=20,col=c("yellow","blue","green","red"), legend=c("layer 1","layer 2","layer 3","interior")) niProperties Northern Ireland properties. Description The locations (in longitude and latitude) of a number of properties (land holdings) in Northern Ireland. Usage data("niProperties") Format A data frame with 240 observations on the following 2 variables. x A numeric vector of longitudes. y A numeric vector of latitudes. Source These data were kindly provided by <NAME> of the Cartesian Limited consulting service. URL: http://www.cartesian.com. Examples # data(niProperties) # It is unnecessary to use \code{data} since \code{niProperties} is # a "first class object". It is "lazily loaded". plot(niProperties) plot.deldir Plot objects produced by deldir Description This is a method for plot. Usage ## S3 method for class 'deldir' plot(x,add=FALSE,wlines=c("both","triang","tess"), showpoints=TRUE,labelPts=FALSE,cex=1,lex=1, cmpnt_col=NULL,cmpnt_lty=NULL,pch=1,xlim=NULL, ylim=NULL,axes=FALSE,xlab=if(axes) "x" else "", ylab=if(axes) "y" else"",showrect=FALSE,asp=1,...) Arguments x An object of class "deldir" as returned by the function deldir. add logical argument; should the plot be added to an existing plot? wlines "which lines?". I.e. should the Delaunay triangulation be plotted (wlines="triang"), should the Dirichlet tessellation be plotted (wlines="tess"), or should both be plotted (wlines="both", the default) ? showpoints Logical scalar; should the points being triangulated/tessellated be plotted? labelPts Logical argument, defaulting to FALSE; if TRUE then the points plotted will be labelled with their identifiers (as specified by the optional argument id of deldir(). If id was not specified to deldir(), then the identifiers default to the indices of the points, which correspond to the row numbers of the matrix "summary" in the output of deldir()). cex The value of the character expansion argument cex to be used with the plotting symbols for plotting the points. lex The value of the character expansion argument cex to be used by the text func- tion when labelling the points with their identifiers. Used only if labelPts is TRUE. cmpnt_col A vector or list specifying the colours to be used for plotting the (up to five) dif- ferent components of the graphic, explicitly the triangulation, the tessellation, the data points, the point labels and the enclosing rectangle (x$rw) in that order. The components of this vector or list may be named, with the names chosen from "tri","tess","points","labels","rect". The default is c(tri=1,tess=1,points=1,labels=1,r If the vector or list is not named, the component names are assumed to be from the default list of names in the given order. Colours may be specified as positive integers, corresponding to the entries of the current palette(), or as names of colours (from the list given by colors()), or in terms of their RGB components with strings of the form "#RRGGBB". (See Color Specification in par().) If fewer than five colours are given, the missing components are filled in with 1 or palette()[1] as is appropriate. If cmpnt_col does not have names then the components are simply recycled. If more than five colours are given, the redundant ones are ignored (i.e. only the first five are used). cmpnt_lty A vector or list (of length two) of line types for plotting the two components of the graphic that consist of lines, i.e. the triangulation and the tessellation. The types may consist of integers between 1 and 6, or of approriate text strings ("solid", "dashed", "dotted", "dotdash", "longdash" or "twodash"; see the dis- cussion of lty in par()). The components of cmpnt_lty (vector or list) may have names ("tri","tess"). The default is c(tri=1,tess=2). If a single value is given, the missing one is filled in as 1 or "solid" as is appropriate. If more than two values are given, the redundant ones are ignored, i.e. only the first two are used. pch The plotting symbol for plotting the points. May be either integer or character. xlim The limits on the x-axis. Defaults to rw[1:2] where rw is the rectangular win- dow specification returned by deldir(). ylim The limits on the y-axis. Defaults to rw[3:4] where rw is the rectangular win- dow specification returned by deldir(). axes Logical scalar. Should axes be drawn on the plot? xlab Label for the x-axis. Defaults to x if axes is TRUE and to the empty string if axes is FALSE. Ignored if add=TRUE. ylab Label for the y-axis. Defaults to y if axes is TRUE and to the empty string if axes is FALSE. Ignored if add=TRUE. showrect Logical scalar; show the enclosing rectangle rw (see deldir()) be plotted? asp The aspect ratio of the plot; integer scalar or NA. Set this argument equal to NA to allow the data to determine the aspect ratio and hence to make the plot occupy the complete plotting region in both x and y directions. This is inadvisable; see the Warning. The asp argument is ignored if add is TRUE. ... Further plotting parameters (e.g. lw, col) to be passed to segments(). (Con- ceivably one might also use ... to supply additional arguments to be passed to points() or text() but this is unlikely.) Note that if col is specified as one of the ... arguments then this is used as the col argument of segments (and the values of cmpnt_col[1:2] are ignored. Side Effects A plot of the edges of the Delaunay triangles and/or of the Dirichlet tiles is produced or added to an existing plot. By default the triangles are plotted with solid lines (lty=1) and the tiles with dotted lines (lty=2). In addition the points being triangulated may be plotted. Warnings • As of release 1.0-8 the argument number of plot.deldir() and plot.tile.list() was changed to labelPts. As a consequence the argument nex of this function has had its name changed to lex. • In previous versions of the deldir package, the aspect ratio was not set. Instead, the shape of the plotting region was set to be square (pty="s"). This practice was suboptimal. To re- produce previous behaviour set asp=NA (and possibly pty="s") in the call to plot.deldir(). Users, unless they really understand what they are doing and why they are doing it, are now strongly advised not to set the value of asp but rather to leave asp equal to its default value of 1. Any other value may distort the tessellation and destroy the perpendicular appearance of lines which are indeed perpendicular. (And conversely may cause lines which are not perpen- dicular to appear as if they are.) Author(s) <NAME> <<EMAIL>> See Also deldir() Examples x <- c(2.3,3.0,7.0,1.0,3.0,8.0) + 0.5 y <- c(2.3,3.0,2.0,5.0,8.0,9.0) + 0.5 x <- c(x,1,10,10,1) y <- c(y,1,1,10,10) dxy <- deldir(x,y,rw=c(0,11,0,11)) plot(dxy) # Plots the tessellation, but does not save the results: deldir(x,y,rw=c(0,11,0,11),plot=TRUE, wl="tess",cmpnt_col=c(1,1,2,3,4),labelPts=TRUE) # Plots the triangulation, but not the tessellation or the points, # and saves the returned structure: dxy <- deldir(x,y,rw=c(0,11,0,11),plot=TRUE,wl="triang",wp="none") # Plot everything: plot(dxy,cmpnt_col=c("orange","green","red","blue","black"),cmpnt_lty=1, labelPts=TRUE,lex=1.5,pch=c(19,9),showrect=TRUE,axes=TRUE) # Complicated example from He Huang: # "Linguistic distances". vldm <- c(308.298557,592.555483,284.256926,141.421356,449.719913, 733.976839,591.141269,282.842712,1.414214,732.562625) ldm <- matrix(nrow=5,ncol=5) ldm[row(ldm) > col(ldm)] <- vldm ldm[row(ldm) <= col(ldm)] <- 0 ldm <- (ldm + t(ldm))/2 rownames(ldm) <- LETTERS[1:5] colnames(ldm) <- LETTERS[1:5] # Data to be triangulated. id <- c("A","B","C","D","E") x <- c(0.5,1,1,1.5,2) y <- c(5.5,3,7,6.5,5) dat_Huang <- data.frame(id = id, x = x, y = y) # Form the triangulation/tessellation. dH <- deldir(dat_Huang) # Plot the triangulation with line widths proportional # to "linguistic distances". all_col <- rainbow(100) i <- pmax(1,round(100*vldm/max(vldm))) use_col <- all_col[i] ind <- as.matrix(dH$delsgs[,c("ind1","ind2")]) lwv <- ldm[ind] lwv <- 10*lwv/max(lwv) plot(dH,wlines="triang",col=use_col,showpoints=FALSE, lw=lwv,asp=NA) with(dH,text(x,y,id,cex=1.5)) plot.divchain Plot a dividing chain. Description Plot the dividing chain of a Dirichlet tessellation. The tessellation must have been created from a set of points having associated categorical “tags”. The dividing chain consists of those edges of Dirichlet tiles which separate points having different values of the given tags. Usage ## S3 method for class 'divchain' plot(x, add = FALSE, ...) Arguments x An object of class “divchain”. See divchain.deldir() for details. add Logical scalar. It add=TRUE the plot of the dividing chain is added to an existing plot. ... Graphical parameters such as main, xlab, col.main, col.lab. In particular if bty is supplied (as a value other than n) a “box” will be drawn around the plot that is formed when add=FALSE. Also a non-standard graphical parameter boxcol may be supplied which will be taken to be the colour with which the box is drawn. If a col argument is supplied, this determines the colour for plotting the segments constituting the dividing chain. Value None. Note This function was created in response to a question asked on stackoverflow.com by a user named “Dan”. Author(s) <NAME> <<EMAIL>> See Also divchain() divchain.default() divchain.deldir() deldir() Examples set.seed(42) x <- runif(50) y <- runif(50) z <- factor(kmeans(cbind(x,y),centers=4)$cluster) dc <- divchain(x,y,z,rw=c(0,1,0,1)) plot(dc,lwd=2,col="blue",bty="o") plot.tile.list Plot Dirichlet (Voronoi) tiles Description A method for plot. Plots (sequentially) the tiles associated with each point in the set being tessel- lated. Usage ## S3 method for class 'tile.list' plot(x, verbose = FALSE, close = FALSE, pch = 1, fillcol = getCol(x,warn=warn), col.pts=NULL, col.lbls=NULL,border=NULL, showpoints = !labelPts, add = FALSE, asp = 1, clipp=NULL, xlab = "x", ylab = "y", main = "", warn=TRUE, labelPts=FALSE,adj=NULL,...) Arguments x A list of the tiles in a tessellation, as produced the function tile.list(). verbose Logical scalar; if TRUE the tiles are plotted one at a time (with a “Go?” prompt after each) so that the process can be watched. close Logical scalar; if TRUE the outer edges of of the tiles (i.e. the edges which are constitute parts of the edges of the enclosing rectangle) are drawn. Otherwise tiles on the periphery of the tessellation are left “open”. pch The plotting character (or vector of plotting characters) with which to plot the points of the pattern which was tessellated. Ignored if showpoints is FALSE. fillcol Optional vector (possibly of length 1, i.e. a scalar) whose entries can be inter- preted as colours by col2rgb(). The i-th entry indicates with which colour to fill the i-th tile. Note that an NA entry cause the tile to be left unfilled. This argu- ment will be replicated to have length equal to the number of tiles. The default value is created (using the tile “tags”, i.e. the z components of the tiles, if these exist) by the undocumented function getCol(). Note that if these z components are not present, then getCol() returns NA. col.pts Optional vector like unto fillcol whose entries can be interpreted as colours by col2rgb(). The i-th entry indicates with which colour to plot the i-th point. This argument will be replicated to have length equal to the number of tiles. Ignored if showpoints is FALSE. col.lbls Optional vector like unto col.pts. Determines the colours in which the point labels (see labelPts below) are plotted. This argument will be replicated to have length equal to the number of tiles. Ignored if labelPts is FALSE. border A scalar that can be interpreted as a colour by col2rgb(), indicating the colour with which to plot the tile boundaries. Defaults to black unless all of the fill colours specified by fillcol are black, in which case it defaults to white. If length(border) > 1 then only its first entry is used. showpoints Logical scalar; if TRUE the points of the pattern which was triangulated/tessellated are plotted. If clipp is specified, then only those points associated with non- empty clipped tiles are shown. Note that some such points will be external to the polygon clipp and that these “external” points are shown. add Logical scalar; should the plot of the tiles be added to an existing plot? asp The aspect ratio of the plot; integer scalar or NA. Set this argument equal to NA to allow the data to determine the aspect ratio and hence to make the plot occupy the complete plotting region in both x and y directions. This is inadvisable; see the Warnings. clipp An object specifying a polygon to which the tessellation being plotted should be clipped. It should consist either of: • a list containing two components x and y giving the coordinates of the ver- tices of a single polygon. The last vertex should not repeat the first vertex. Or: • a list of list(x,y) structures giving the coordinates of the vertices of several polygons. If this argument is provided then the plot of the tessellation is “clipped” to the polygon specified by clipp. xlab Label for the x-axis (used only if add is FALSE). ylab Label for the y-axis (used only if add is FALSE). main A title for the plot (used only if add is FALSE). warn Logical scalar passed to the internal function getCol(). Should a warning be issued if the z components of the entries of x cannot all be interpreted as colours? (See Notes.) labelPts Logical scalar; if TRUE the labels of the points determining the tiles are plotted in the tiles. Note that if labelPts is TRUE then showpoints defaults to FALSE adj The “adjustment” argument to text(). If labelPts and showpoints are both TRUE it defaults to -1 (so that the labels and point symbols are not superim- posed). If labelPts is TRUE and showpoints is FALSE it defaults to 0. If labelPts is FALSE it is ignored. ... Optional arguments; may be passed to points() and text(). Value The list of tiles being plotted. This will be the input list of tiles specified by argument x, or this list clipped to the polygon clipp if the latter was specified. Warnings • As of release 1.0-8 the argument number of plot.deldir() and plot.tile.list() was changed to labelPts. As a consequence the argument col.num of this function has had its name changed to col.lbls. • The behaviour of this function with respect to “clipping” has changed substantially since the previous release of deldir, i.e. 1.1-0. The argument clipwin has been re-named clipp (“p” for “polygon”). Clipping is now effected via the new package polyclip. The spatstat package is no longer used. The argument use.gpclib has been eliminated, since gpclib (which used to be called upon by spatstat has been superseded by polyclip which has an unrestrictive license. • As of release 0.1-1 of the deldir package, the argument fillcol to this function replaces the old argument polycol, but behaves somewhat differently. • The argument showrect which was present in versions of this function prior to release 0.1-1 has been eliminated. It was redundant. • As of release 0.1-1 the col.pts argument might behave somewhat differently from how it behaved in the past. • The arguments border, clipp, and warn are new as of release 0.1-1. • Users, unless they really understand what they are doing and why they are doing it, are strongly advised not to set the value of asp but rather to leave asp equal to its default value of 1. Any other value distorts the tesselation and destroys the perpendicular appearance of lines which are indeed perpendicular. (And conversely can cause lines which are not perpendicular to appear as if they are.) Notes • If clipp is not NULL and showpoints is TRUE then it is possible that some of the points “shown” will not fall inside any of the plotted tiles. (This will happen if the parts of the tiles in which they fall have been “clipped” out.) If a tile is clipped out completely then the point which determines that tile is not plotted irrespective of the value of showpoints. • If the z components of the entries of x exist but cannot all be interpreted as colours then the internal function getCol() returns NA. If warn is TRUE then a warning is issued. The function getCol() will also return NA (no warning is issued in this case) if there aren’t any z components. This circumstance will arise if no z argument was supplied in the call to deldir(). An NA value of fillcol results (as is indicated by the argument list entry for fillcol) in (all of) the tiles being left unfilled. • The change from argument polycol to argument fillcol, and the resulting change in the way in which plotted tiles are filled with colours, was made as a result of a request from Chris Triggs. Likewise the argument clipp was added due to a request from <NAME>. • The argument asp was added at the request of <NAME> (who presumably knows what he’s doing!). Author(s) <NAME> <<EMAIL>> See Also deldir(), tile.list(), triang.list(), plot.triang.list() Examples set.seed(42) x <- runif(20) y <- runif(20) z <- deldir(x,y,rw=c(0,1,0,1)) w <- tile.list(z) plot(w) ccc <- heat.colors(20) # Or topo.colors(20), or terrain.colors(20) # or cm.colors(20), or rainbow(20). plot(w,fillcol=ccc,close=TRUE) if(require(polyclip)) { CP <- list(x=c(0.49,0.35,0.15,0.20,0.35,0.42, 0.43,0.62,0.46,0.63,0.82,0.79), y=c(0.78,0.86,0.79,0.54,0.58,0.70, 0.51,0.46,0.31,0.20,0.37,0.54)) cul <- rainbow(10)[c(1,7,3:6,2,8:10)] # Rearranging colours to improve # the contrast between contiguous tiles. plot(w,clipp=CP,showpoints=FALSE,fillcol=cul) } plot(w,labelPts=TRUE,col.lbls="red") plot(w,labelPts=TRUE,col.lbls="red",cex=0.5) plot(w,showpoints=TRUE,labelPts=TRUE,col.pts="green",col.lbls="red") plot.triang.list Plot Delaunay triangles Description A method for plot. Plots the triangles of a Delaunay triangulation of a set of points in the plane. Usage ## S3 method for class 'triang.list' plot(x, showrect = FALSE, add = FALSE, xlab = "x", ylab = "y", main = "", asp = 1, rectcol="black", ...) Arguments x An object of class “triang.list” as produced by triang.list(). showrect Logical scalar; show the enclosing rectangle rw (see deldir()) be plotted? add Logical scalar; should the plot of the triangles be added to an existing plot? xlab Label for the x-axis. ylab Label for the y-axis. main A title for the plot (used only if add is FALSE). asp The aspect ratio of the plot; integer scalar or NA. Set this argument equal to NA to allow the data to determine the aspect ratio and hence to make the plot occupy the complete plotting region in both x and y directions. This is inadvisable; see the Warnings. rectcol Text string or integer specifying the colour in which the enclosing rectangle should be plotted. Ignored unless showrect is TRUE. ... Arguments passed to polygon() which does the actual plotting of the triangles. Value None. This function has the side effect of producing (or adding to) a plot. Warnings Users are strongly advised not to set the value of asp (unless they really know what they are doing) but rather to leave asp equal to its default value of 1. Any other value distorts the tesselation and destroys the perpendicular appearance of lines which are indeed perpendicular. (And conversely can cause lines which are not perpendicular to appear as if they are.) The argument asp was added at the request of Zubin Dowlaty (who presumably knows what he is doing!). Author(s) <NAME> <r.<EMAIL>> See Also deldir(), plot.triang.list(), tile.list(), plot.tile.list() Examples set.seed(42) x <- runif(20) y <- runif(20) d <- deldir(x,y) ttt <- triang.list(d) plot(ttt,border="red",showrect=TRUE,rectcol="green") sss <- tile.list(d) plot(sss) plot(ttt,add=TRUE,border="blue",showrect=TRUE,rectcol="red") print.deldir Print some information about a tessellation/triangulation. Description Prints a very brief description of an object of class "deldir" as returned by deldir(). Usage ## S3 method for class 'deldir' print(x,digits=NULL,...) Arguments x A Delaunay triangulation and Dirichlet (Voronoi) tessellation of a set of points (object of class "deldir"). digits Integer scalar. The number of digits to which to round the numeric information before printing. Note this may be give negative values. (See round().) ... Not used. Details This is a method for the generic print() function. Author(s) <NAME> <<EMAIL>> See Also print() Examples set.seed(42) x <- rnorm(200,0,4) y <- rnorm(200,0,4) dxy1 <- deldir(x,y) dxy2 <- deldir(x,y,rw=c(-12,12,-11,11)) dxy1 dxy2 print(dxy1,digits=4) print.tileInfo Print a summary of tile information. Description Print a reasonably readable summary of an object of class tileInfo as produced by the tileInfo() function. Usage ## S3 method for class 'tileInfo' print(x, digits = 4, npl = 6, ...) Arguments x An object of class tileInfo as produced by the tileInfo() function. digits Integer scalar. The (maximum) number of decimal digits to which the output is to be printed. npl Integer scalar. “Number per line”. It specifies the (maximum) number of values per line. Used (only) when printing the edge lengths component of x. It effects a tidy “folding” of the printed vector of edge lengths of the tile associated with a given point. If you increase the value of digits you may wish to decrease the value of npl, and vice versa. ... Not used. Present for compatibility with the generic print() function. Details The list produced by tileInfo() is a bit messy and hard to comprehend, especially if there is a large number of tiles. This print method produces a screen display which is somewhat more perspicuous. There are four components to the display: • A list, each entry of which is the vector of edge lengths of the tile. Each edge length is formatted to have a number of digits specified by the digits argument. Each list entry may be displayed over a number of lines. The first of these lines is prefixed by an “informative” string indicating the point that determines the tile whose edge lengths are being printed. The string is formed from the identifier of the point. See deldir(), plot.deldir() and getNbrs(). The identifier may consist essentially of the index of the point in the sequence of points that is being tessellated. Succeeding lines, corresponding to the same list entry, are prefixed with a number of blanks so as to produce an aesthetically pleasing alignment. • A table of the edge counts of the tiles. • A simple print out of the areas of the tiles (rounded to a maximum of digits decimal digits). • A simple print out of the perimeters of the tiles (rounded to a maximum of digits decimal digits). This screen display is for “looking at” only. In order to do further calculations on the output of tileInfo it is necessary to delve into the bowels of x and extract the relevant bits. Value None. Author(s) <NAME> <<EMAIL>> See Also tileInfo() Examples set.seed(179) x <- runif(100) y <- runif(100) dxy <- deldir(x,y,rw=c(0,1,0,1)) ixy1 <- tileInfo(dxy) print(ixy1) ixy2 <- tileInfo(dxy,bndry=TRUE) print(ixy2) if(require(polyclip)) { CP <- list(x=c(0.49,0.35,0.15,0.20,0.35,0.42, 0.43,0.62,0.46,0.63,0.82,0.79), y=c(0.78,0.86,0.79,0.54,0.58,0.70, 0.51,0.46,0.31,0.20,0.37,0.54)) ixy3 <- tileInfo(dxy,clipp=CP) options(width=120) # And enlarge the console window. print(ixy3) # 33 tiles are retained. print(ixy3$perimeters$perComps) # The tiles for points 9 and 94 have # been split into two components. } seaweed seaweed Description A data frame whose columns are the coordinates of the centroids of the cells in a seaweed frond. The points are estimates-by-eye of where the centroids of the cells occur. Usage data("seaweed") Format A data frame with 266 observations on the following 2 variables. x The x-coordinates of the cell centroids. y The y-coordinates of the cell centroids. Source These data were kindly supplied by Dr. <NAME> of the Department of Biosciences, Durham University. The data were collected by <NAME> and <NAME>, members of Dr. Both- well’s research group. Examples # data(seaweed) # It is unnecessary to use \code{data} since \code{seaweed} is # a "first class object". It is "lazily loaded". dsw <- deldir(seaweed) isw <- tileInfo(dsw) # Expand the width of the terminal window. options(width=120) isw tsw <- tile.list(dsw) plot(tsw,labelPts=TRUE,col.lbls="red",cex=0.5,adj=0.5) tile.centroids Compute centroids of Dirichlet (Voronoi) tiles Description Given a list of Dirichlet tiles, as produced by tile.list(), produces a data frame consisting of the centroids of those tiles. Usage tile.centroids(tl) Arguments tl A list of the tiles (produced by tile.list()) in a Dirichlet tessellation of a set of planar points. Value A data frame with two columns named x and y. Each row of this data frame constitutes the centroid of one of the Dirichlet tiles. Author(s) <NAME> <<EMAIL>> References URL http://en.wikipedia.org/wiki/Centroid See Also tile.list() Examples set.seed(42) x <- runif(20) y <- runif(20) d <- deldir(x,y) l <- tile.list(d) g <- tile.centroids(l) plot(l,close=TRUE) points(g,pch=20,col="red") tile.list Create a list of tiles in a tessellation Description For each point in the set being tessellated produces a list entry describing the Dirichlet/Voronoi tile containing that point. Usage tile.list(object,minEdgeLength=NULL,clipp=NULL) Arguments object An object of class deldir as produced by the function deldir(). minEdgeLength Positive numeric scalar specifying the minimum length that an edge of a tile may have. It is used to eliminate edges that are effectively of zero length, which can cause tiles to be “invalid”. This argument defaults to sqrt(.Machine$double.eps) time the diameter (length of the diagonal) of the “rectangular window” associ- ated with the tessellation. This rectangular window is available as the rw com- ponent of object. clipp An object specifying a polygon to which the tessellation, whose tiles are being determined, should be clipped. It should consist either of: • a list containing two components x and y giving the coordinates of the ver- tices of a single polygon. The last vertex should not repeat the first vertex. Or: • a list of list(x,y) structures giving the coordinates of the vertices of several polygons. If this argument is provided then the tiles in the list that is produced are “clipped” to the polygon specified by clipp. Empty tiles (those which do not intersect the polygon specified by clipp) are omitted. The clipping process may subdivide some of the tiles into two or more discontiguous parts. Value A list with one entry for each of the points in the set being tessellated, or for each of the tiles that are retained after clipping if clipp is not NULL. Each entry is in turn a list with a number of components. These components always include: ptNum The index of the point in the original sequence of points that is being tessellated. Note that if a point is one of a set of duplicated points then ptNum is the first of the indices of the points in this set. pt The coordinates of the point whose tile is being described. area The area of the tile. If the tile in question has not been subdivided by the clipping process then the list components also include: x The x coordinates of the vertices of the tile, in anticlockwise order. y The y coordinates of the vertices of the tile, in anticlockwise order. bp Vector of logicals indicating whether the tile vertex is a “real” vertex, or a bound- ary point, i.e. a point where the tile edge intersects the boundary of the enclosing rectangle. If the tile in question has been subdivided then the list does not have the foregoing three components but rather has a component tileParts which is in turn a list of length equal to the number of parts into which the tile was subdivided. Each component of tileParts is yet another list with four components x, y, bp and area as described above and as are appropriate for the part in question. z The “auxiliary value” or “tag” associated with the pt; present only if such values were supplied in the call to deldir(). Acknowledgement The author expresses sincere thanks to <NAME> who found and pointed out a serious bug in tile.list in a previous version (0.0-5) of the deldir package. Warning The set of vertices of each tile may be “incomplete”. Only vertices which lie within the enclosing rectangle, and “boundary points” are listed. Note that the enclosing rectangle may be specified by the user in the call to deldir(). In contrast to some earlier versions of deldir, the corners of the enclosing rectangle are now in- cluded as vertices of tiles. I.e. a tile which in fact extends beyond the rectangular window and contains a corner of that window will have that corner added to its list of vertices. Thus the corre- sponding polygon is the intersection of the tile with the enclosing rectangle. Author(s) <NAME> <<EMAIL>> See Also deldir(), plot.tile.list() triang.list() plot.triang.list() Examples set.seed(42) x <- runif(20) y <- runif(20) z <- deldir(x,y) w <- tile.list(z) z <- deldir(x,y,rw=c(0,1,0,1)) w <- tile.list(z) z <- deldir(x,y,rw=c(0,1,0,1),dpl=list(ndx=2,ndy=2)) w <- tile.list(z) if(require(polyclip)) { CP <- list(x=c(0.49,0.35,0.15,0.20,0.35,0.42, 0.43,0.62,0.46,0.63,0.82,0.79), y=c(0.78,0.86,0.79,0.54,0.58,0.70, 0.51,0.46,0.31,0.20,0.37,0.54)) wc <- tile.list(z,clipp=CP) # 10 tiles are retained; the third tile, # corresponding to point 6, is # subdivided into two parts. } tileArea Area of a Dirichlet tile. Description Calculates the area of a Dirichlet tile, applying a discrete version of Stoke’s theorem. Usage tileArea(x, y, rw) Arguments x The x-coordinates of the vertices of the tile, in anticlockwise direction. The last coordinate should not repeat the first. y The y-coordinates of the vertices of the tile, in anticlockwise direction. The last coordinate should not repeat the first. rw A vector of length 4 specifying the rectangular window in which the relevant tessellation was constructed. See deldir() for more detail. Actually this can be any rectangle containing the tile in question. Details The heavy lifting is done by the Fortran subroutine stoke() which is called by the .Fortran() function. Value A positive scalar. Author(s) <NAME> <<EMAIL>> See Also deldir() tilePerim() Examples set.seed(42) x <- runif(20) y <- runif(20) z <- deldir(x,y,rw=c(0,1,0,1)) w <- tile.list(z) with(w[[1]],tileArea(x,y,rw=z$rw)) sapply(w,function(x,rw){tileArea(x$x,x$y,attr(w,"rw"))}) x <- c(0.613102,0.429294,0.386023,0.271880,0.387249,0.455900,0.486101) y <- c(0.531978,0.609665,0.597780,0.421738,0.270596,0.262953,0.271532) # The vertices of the Dirichlet tile for point 6. tileArea(x,y,rw=c(0,1,0,1)) tileArea(x,y,rw=c(-1,2,-3,4)) # Same as above. tileInfo Extract information from a tile list. Description Produces a summary of information about the tiles in an object of class deldir as produced by the function deldir(). Usage tileInfo(object, bndry = FALSE, clipp=NULL) Arguments object An object of class deldir as produced by the function deldir(). bndry Logical scalar. If TRUE then the “boundary” tiles (those tiles having edges form- ing part of the “rectangular window” enclosing the tessellation) are included in the summary. Otherwise they are excluded. Note that if all tiles are boundary tiles and bndry is FALSE, then the list of included tiles is empty. In this setting the information summary would be vacuous and hence an error is thrown. clipp An object specifying a polygon to which the tiles of the tessellation should be clipped. See link{tile.list}() for more information. Note that tiles which were originally boundary tiles may no longer be boundary tiles after being clipped. Value An object of class "tileInfo" which consists of a list with components: indivTiles This is itself a list. If clipp is NULL then this list has one entry for each tile in “object”. If clipp is not NULL then tiles are retained only if they have non-empty intersection with the polygon specified by clipp. The list indivTiles is in fact a named list, the names being of form pt.n, where n is equal to the value of ptNum (see below) corresponding to the tile. The entries of indivTiles are themselves in turn lists with entries • edges: a matrix whose rows consists of the x and y coordinates of the endpoints of each edge of the tile • edgeLengths: a vector of the lengths of the edges of the tile • area: a positive number equal to the area of the tile • ptNum an integer equal to the number of the point determining the tile. Note that this is the number of the point in the original sequence of points that were tessellated. allEdgeCounts An integer vector of the number of edges for each of the tiles. tabEdgeCounts A table of allEdgeCounts. allEdgeLengths A vector of all of the tile edge lengths; a catenation of the edgeLengths com- ponents of the entries of indivTiles. Note that there will be many duplicate lengths since each tile edge is, in general, an edge of two tiles. Areas A vector of the areas of the tiles. uniqueEdgeLengths A vector of the lengths of the tiles edges with the duplicates (which occur in allEdgeLengths) being eliminated. Each tile edge is represented only once. perimeters A list, as returned by tilePerim() containing the perimeters of the tiles, as well as the total and the mean of these perimeters. In addition perimeters has a component perComps giving the breakdown of the perimeters into the perimeters of the parts into which tiles may have been subdivided by the clipping process. Remark There is a print() method for class "tileInfo" which produces a convenient display of the infor- mation returned by this function. Acknowledgement Thanks to <NAME> of Ruhr-University Bochum, who provided an example illustrating the need for an error trap in the setting in which all tiles are boundary tiles. Author(s) <NAME> <<EMAIL>> See Also deldir() tile.list() print.tileInfo() tilePerim() Examples set.seed(42) x <- runif(20) y <- runif(20) dxy <- deldir(x,y,rw=c(0,1,0,1)) ixy1 <- tileInfo(dxy) ixy2 <- tileInfo(dxy,bndry=TRUE) if(require(polyclip)) { CP <- list(x=c(0.49,0.35,0.15,0.20,0.35,0.42, 0.43,0.62,0.46,0.63,0.82,0.79), y=c(0.78,0.86,0.79,0.54,0.58,0.70, 0.51,0.46,0.31,0.20,0.37,0.54)) ixy3 <- tileInfo(dxy,clipp=CP) # 10 tiles are retained; the third tile, # corresponding to point 6, is # subdivided into two parts. } tilePerim Calculate tile perimeters. Description Calculates the perimeters of all of the Dirichlet (Voronoi) tiles in a tessellation of a set of planar points. Also calculates the sum and the mean of these perimeters. Usage tilePerim(object,inclbdry=TRUE) Arguments object An object of class tile.list (as produced by tile.list() specifying the Dirichlet (Voronoi) tiles in a tessellation of a set of planar points. inclbdry Logical scalar. Should boundary segments (edges of tiles at least one of whose endpoints lies on the enclosing rectangle rw (see deldir()) be included in the perimeter? Value A list with components perimeters A vector consisting of the values of the perimeters of the Dirichlet tiles in the tessellation. totalPerim The sum of perimeters. meanPerim The mean of perimeters. perComps A list whose entries are vectors consisting of the “components” of the perime- ters of each tile. If/when the tiles are clipped, some tiles may be subdivided by the clipping into discontiguous parts. The components referred to above are the perimeters of this parts. If no subdivision has occurred then the vector in question has a single entry equal to the perimeter of the corresponding tile. If subdivision has occurred then the perimeter of the tile is the sum of the perime- ters of the components. Note Function added at the request of Haozhe Zhang. Author(s) <NAME> <<EMAIL>> See Also tile.list(), plot.tile.list() Examples x <- runif(20) y <- runif(20) z <- deldir(x,y,rw=c(0,1,0,1)) w <- tile.list(z) p1 <- tilePerim(w) p0 <- tilePerim(w,inclbdry=FALSE) p1$totalPerim - p0$totalPerim # Get 4 = the perimeter of rw. ss <- apply(as.matrix(z$dirsgs[,1:4]),1, function(x){(x[1]-x[3])^2 + (x[2]-x[4])^2}) 2*sum(sqrt(ss)) - p0$totalPerim # Get 0; in tilePerim() each interior # edge is counted twice. if(require(polyclip)) { CP <- list(x=c(0.49,0.35,0.15,0.20,0.35,0.42, 0.43,0.62,0.46,0.63,0.82,0.79), y=c(0.78,0.86,0.79,0.54,0.58,0.70, 0.51,0.46,0.31,0.20,0.37,0.54)) wc <- tile.list(z,clipp=CP) p2 <- tilePerim(wc) # Doesn't matter here if inclbdry is TRUE or FALSE. p2$perComps[["pt.6"]] # The tile for point 6 has got subdivided into # two parts, a tetrahedron and a triangle. cul <- rainbow(10)[c(1,7,3:6,2,8:10)] # Rearranging colours to improve # the contrast between contiguous tiles. plot(wc,labelPts=TRUE,fillcol=cul) } toyPattern A toy marked point pattern object, with 59 points. Description A simulated object of class "ppp" provided for use in an example illustrating the application of deldir() to point pattern objects. Usage toyPattern Format An object of class "ppp" consisting of a simulated marked point pattern. Entries include x Cartesian x-coordinates y Cartesian y-coordinates marks factor with levels "a","b","c","d" Source Simulated. Examples dtoy <- deldir(toyPattern) # "Tags" are the marks of the pattern. set.seed(42) dtoy.nt <- deldir(toyPattern,z=round(runif(59),2)) # Tags are numeric. triang.list Create a list of Delaunay triangles Description From an object of class “deldir” produces a list of the Delaunay triangles in the triangulation of a set of points in the plane. Usage triang.list(object) Arguments object An object of class “deldir” as produced by deldir(). Value A list each of whose components is a 3×3 or 3×4 data frame corresponding to one of the Delaunay triangles specified by “object”. The rows of each such data frame correspond to the vertices of the corresponding Delaunay triangle. The columns are: • ptNum (the index of the point in the original sequence of points that is being triangulated. Note that if a point is one of a set of duplicated points then ptNum is the first of the indices of the points in this set.) • x (the x-coordinate of the vertex) • y (the y-coordinate of the vertex) • z (the “auxiliary value” or “tag” z associated with the vertex; present only if such values were supplied in the call to deldir()) The returned value has an attribute “rw” consisting of the enclosing rectangle of the triangulation. Warning There may not actually be any triangles determined by object, in which case this function returns an empty list with an "rw" attribute. See Examples. Note The code of this function was taken more-or-less directly from code written by <NAME> for the “delaunay()” function in the “spatstat” package. Author(s) <NAME> <<EMAIL>> See Also deldir(), plot.triang.list(), tile.list(), plot.tile.list() Examples set.seed(42) x <- runif(20) y <- runif(20) z <- sample(1:100,20) d1 <- deldir(x,y,z=z) t1 <- triang.list(d1) # A "triangulation" with no triangles! d2 <- deldir(x=1:10,y=11:20) plot(d2) t2 <- triang.list(d2) plot(t2,showrect=TRUE,rectcol="blue") # Pretty boring! triMat Produce matrix of triangle vertex indices. Description Lists the indices of the vertices of each Delaunay triangle in the triangulation of a planar point set. The indices are listed (in increasing numeric order) as the rows of an n × 3 matrix where n is the number of Delaunay triangles in the triangulation. Usage triMat(object) Arguments object An object of class deldir (as produced by the function deldir()) specifying the Delaunay triangulation and Dirichlet (Voronoi) tessellation of a planar point set. Details This function was suggested by <NAME> of the School of Mathematical and Computing Sci- ences at Auckland University of Technology. Value An n × 3 matrix where n is the number of Delaunay triangles in the triangulation specified by object. The ith row consists of the indices (in the original list of points being triangulated) of vertices of the ith Delaunay triangle. The indices are listed in increasing numeric order in each row. Note Earlier versions of this function (prior to release 0.1-14 of deldir) could sometimes give incorrect results. This happened if the union of three contiguous Delaunay triangles happened to constitute another triangle. This latter triangle would appear in the list of triangles produced by triMat() but is not itself a Delaunay triangle. The updated version of triMat() now checks for this possibility and gives (I think!) correct results. Many thanks to Jay Call, who pointed out this bug to me. Author(s) <NAME> <<EMAIL>> See Also deldir() triang.list() plot.triang.list() Examples # These are the data used by Jay Call to illustrate the bug # that appeared in a previous incarnation of triMat. xy <- data.frame( x = c(0.048,0.412,0.174,0.472,0.607,0.565,0.005,0.237,0.810,0.023), y = c(0.512,0.928,0.955,0.739,0.946,0.134,0.468,0.965,0.631,0.782) ) dxy <- deldir(xy) M <- triMat(dxy) plot(dxy,wlines="triang",num=TRUE,axes=FALSE,cmpnt_col=c(1,1,1,1,2,1)) # The triangle with vertices {4,5,8} was listed in the output of # the previous (buggy) version of triMat(). It is NOT a Delaunay # triangle and hence should NOT be listed. volTriPoints Solute plume concentration data set. Description Example solute plume concentration data set associated with the GWSDAT (“GroundWater Spa- tiotemporal Data Analysis Tool”) project https://protect-au.mimecast.com/s/demRC91WzLH6qo3TorzN7? domain=gwsdat.net. The deldir package is used in this project as part of a numerical routine to estimate plume quantities (mass, average concentration and centre of mass). Usage volTriPoints Format A data frame with 232 observations on the following 3 variables. x The x-coordinates of the centres of mass of the plumes. y The y-coordinates of the centres of mass of the plumes. z The plume concentrations. Details This data set played a critical role in revealing a bug in the Fortran code underlying the deldir() function. Source These data were kindly provided by <NAME> of the GWSDAT project. The data set was originally named Vol.Tri.Points; the name was changed so as to be more consistent with my usual naming conventions. References <NAME>., <NAME>., <NAME>., <NAME>. and <NAME>. (2014). A software tool for the spatiotemporal analysis and reporting of groundwater monitoring data. Environmental Modelling & Software 55, pp. 242–249. Examples dvtp <- deldir(volTriPoints) plot(dvtp) which.tile Determine the tile containing a given point. Description Finds the Dirichlet/Voronoi tile, of a tessellation produced by deldir(), that contains a given point. Usage which.tile(x, y, tl) Arguments x The x coordinate of the point in question. y The y coordinate of the point in question. tl A tile list, as produced by the function tile.list() from a tessellation pro- duced by deldir(). Details Just minimises the distance from the point in question to the points of the pattern determining the tiles. Value An integer equal to the index of the tile in which the given point lies. Author(s) <NAME> <<EMAIL>> See Also tile.list() deldir(). Examples set.seed(42) x <- runif(20,0,100) y <- runif(20,0,100) dxy <- deldir(x,y) txy <- tile.list(dxy) i <- which.tile(30,50,txy) # The value of i here is 14. plot(txy,showpoints=FALSE) text(x,y,labels=1:length(txy),col="red") points(30,50,pch=20,col="blue")
c_comments
ctan
TeX
Copyright. Copyright (c) <NAME> 1998 - 2015 _Rc_comments_ rule. Rc_comments Rslash_asterisk R2slash 1.1 10. **Rc_comments op directive.** (Rc_comments op directive 10) \(\equiv\) _Cc_comments \(*\)fsm =_ (_Cc_comments \(*\)_) _rule_info_parser_\(\_\_\)-fsm_tbl_; _T_comment \(*\)com =_new _T_comment_((**const char \(*\)) &_fsm-ddd_); _com-set_rc_(\(*\)rule_info_parser_\(\_\)-start_token_, __FILE__, __LINE__); RSVP(_com_); * **First Set Language for \(O_{2}^{linker}\).** /* File: c_comments.fsc Date and Time: Fri Jan 2 15:33:28 2015 */ transitive n grammar-name "c_comments" name-space "NS_c_comments" thread-name "TH_c_comments" monolithic n file-name "c_comments.fsc" no-of-T 569 list-of-native-first-set-terminals 1 raw_slash end-list-of-native-first-set-terminals list-of-transitive-threads 0 end-list-of-transitive-threads list-of-used-threads 0 end-list-of-used-threads fsm-comments "C++ type comments lexer." ## Index 1.|.|: 9. __FILE__: 10, 11. __LINE__: 10, 11. _aster_: 11. _c_comments_: 2. _c_str_: 7. _CAbs_lr1_sym_: 11. _Cc_comments_: 7, 8, 10, 11, 12. _com_: 10. _copy_kstr_into_buffer_: 6, 8, 11, 12. _copy_str_into_buffer_: 6, 7. _cr_: 11. _current_token_: 11, 12. _ddd_: 4, 5, 6, 7, 8, 10. _ddd_idx_: 4, 5, 6, 7, 8. _enumerated_id_: 11, 12. _Err_comment_overrun_: 11. _fsm_: 10, 11, 12. _fsm_tbl_: 10, 11, 12. _get_next_token_: 11, 12. _id_: 11, 12. _loop_: 11. _other_: 11. _overrun_: 11. _parser_: 10, 11, 12. _Rc_comments_: 9. Rslash_asterisk_: 9. _Rslash_asterisk_: 11. _RSVP_: 10, 11. _rule_info_: 10, 11, 12. _R2slash_: 12. R2slash_: 9. _set_rc_: 10, 11. _set_stop_parse_: 11. _start_token_: 10, 11. _std_: 6, 7. _Str_: 6, 7, 8. _string_: 6, 7. _sym_: 11. _T_comment_: 10. _T_Enum_: 11, 12. _T_LR1_eog_: 11, 12. _T_raw_asteric_: 11. _T_raw_cr_: 11, 12. _T_raw_lf_: 11, 12. _T_raw_slash_: 11. _true_: 11. _x_: 7, 8. _y_: 7, 8. \(\langle\) Cc_comments constructor directive 4\(\rangle\) \(\langle\) Cc_comments op directive 5\(\rangle\) \(\langle\) Cc_comments user-declaration directive 6\(\rangle\) \(\langle\) Cc_comments user-implementation directive 7\(\rangle\) \(\langle\) More code 8\(\rangle\) \(\langle\) R2slash subrule 1 op directive 12\(\rangle\) \(\langle\) Rc_comments op directive 10\(\rangle\) \(\langle\) Rslash_asterisk subrule 1 op directive 11\(\rangle\)
fdi
readthedoc
Unknown
fdi Release v0.18c <NAME> Nov 22, 2022 CONTENTS: 2.1 Install FD... 5 2.2 dataset: Model for Data Containe... 5 2.3 pal: Product Access Laye... 9 2.4 pns: Processing Node Serve... 12 2.5 fdi Quick Star... 17 3.1 API Referenc... 33 i ii fdi, Release v0.18c FDI, known as SPDC before, is written in Python for integrating different types of data, and letting the integrated product take care of inter-platform compatibility, serialisation, persistence, and data object referencing that enables lazy-loading. fdi, Release v0.18c 2 CONTENTS: CHAPTER ONE FEATURES With FDI one can pack data of different format into modular Data Products, together with annotation (description and units) and meta data (data about data). One can make arrays or tables of Products using basic data structures such as sets, sequences (Python list), mappings (Python dict), or custom-made classes. FDI accomodates nested and highly complex structures. Access APIs of the components of ‘FDIs’ are convenient, making it easier for scripting and data mining directly ‘on FDIs’. All levels of FDI Products and their component (datasets or metadata) are portable (serializable) in human-friendly standard format (JSON implemented), allowing machine data processors on different platforms to parse, access internal components, or re-construct “an FDI”. Even a human with a web browser can understand the data. The toString() method of major containers classes outputs nicely formated text representation of complex data to help converting FDI to ASCII. Most FDI Products and components implement event sender and listener interfaces, allowing scalable data-driven processing pipelines and visualizers of live data to be constructed. FDI storage ‘pools’ (file based and memory based) are provided as references for 1) queryable data storage and, 2) for all persistent data to be referenced to with URNs (Universal Resource Names). FDI provides Context type of product so that references of other products can become components of a Context, en- abling encapsulation of rich, deep, sophisticated, and accessible contextual data, yet remain light weight. For data processors, an HTML server with RESTful APIs is implemented (named Processing Node Server, PNS) to interface data processing modules. PNS is especially suitable for Docker containers in pipelines mixing legacy software or software of incompatible environments to form an integral data processing pipeline. This package attempts to meet scientific observation and data processing requirements, and is inspired by data models of, and designs APIs as compatible as possible with, European Space Agency’s Interactive Analysis package of Herschel Common Science System (written in Java, and in Jython for scripting). fdi, Release v0.18c 4 Chapter 1. Features CHAPTER TWO FDI PYTHON PACKAGES • The base data model is defined in package dataset. • Persistent data access, referencing, querying, and Universal Resource Names are defined in package pal. • A reference REST API server designed to communicate with a data processing docker using the data model is in package pns. 2.1 Install FDI 2.1.1 for developers FDIINSTDIR=/tmp # change this to your installation dir cd $FDIINSTDIR git clone ssh://git@<EMAIL>:9005/mh/fdi.git cd fdi pip3 install -e . 2.1.2 for users cd /tmp git clone http://mercury.bao.ac.cn:9006/mh/fdi.git cd fdi pip3 install -e . to install in /tmp. 2.2 dataset: Model for Data Container 2.2.1 Rationale A data processing task produces data products that are meant to be shared by other people. When someone receives a data ‘product’ besides datasets s/he woud expect explanation informaion associated with the product. Many people tend to store data with no note of meaning attached to them. Without attach meaning of the collection of numbers, it is difficult for other people to fully understand or use the data. It could be difficult for even the data producer to recall the exact meaning of the numbers after a while. fdi, Release v0.18c This package implements a data product modeled after Herschel Common Software System (v15) products, taking other requirements of scientific observation and data processing into account. The APIs are kept as compatible with HCSS (written in Java, and in Jython for scripting) as possible. 2.2.2 Definitions Product A product has • zero or more datasets: defining well described data entities (say images, tables, spectra etc. . . ). • history of this product: how was this data created, • accompanying meta data – required information such as who created this product, what does the data reflect (say instrument) and so on; possible additional meta data specific to that particular product type. Dataset Three types of datasets are implemented to store potentially any data as a dataset. Like a product, all datasets may have meta data, with the distinction that the meta data of a dataset is related to that particular dataset only. array dataset a dataset containing array data (say a data vector, array, cube etc. . . ) and may have a unit. table dataset a dataset containing a collection of columns. Each column contains array data (say a data vector, array, cube etc. . . ) and may have a unit. All columns have the same number of rows. Together they make up the table. composite dataset a dataset containing a collection of datasets. This allows arbitrary complex structures, as a child dataset within a composite dataset may be a composite dataset itself and so on. . . Metadata and Parameters Meta data data about data. Defined as a collection of parameters. Parameter named scalar variables. This package provides the following parameter types: • _Parameter_: Contains value (classes whitelisted in ParameterTypes) • _NumericParameter_: Contains a number with a unit. Apart from the value of a parameter you can ask it for its description and -if it is a numeric parameter- for its unit as well. fdi, Release v0.18c History The history is a lightweight mechanism to record the origin of this product or changes made to this product. Lightweight means, that the Product data itself does not records changes, but external parties can attach additional information to the Product which reflects the changes. The sole purpose of the history interface of a Product is to allow notably pipeline tasks (as defined by the pipeline framework) to record what they have done to generate and/or modify a Product. Serializability In order to transfer data across the network between heterogeneous nodes data needs to be serializable. JSON format is used considering to transfer serialized data for its wide adoption, availability of tools, ease to use with Python, and simplicity. 2.2.3 run tests In the install directory: make test You can only test sub-package dataset, pal, pns or pns server self-test only, by changing test above to test1, test2, test3, test4, respectively. To pass command-line arguments to pytest do make test T='-k Bas' to test BaseProduct in sub-package dataset. 2.2.4 Design Packages fdi, Release v0.18c Classes 8 Chapter 2. FDI Python packages fdi, Release v0.18c 2.3 pal: Product Access Layer Product Access Layer allows data stored logical “pools” to be accessed with light weight product refernces by data processers, data storage, and data consumers. A data product can include a context built with references of relevant data. A ProductStorage interface is provided to handle saving/retrieving/querying data in registered pools. 2.3.1 Rationale In a data processing pipeline or network of processing nodes, data products are generated within a context which may include input data, reference data, and auxiliary data of many kind. It is often needed to have relevant context recorded with a product. However the context could have a large size so including their actual data as metadata of the product is often impractical. Once FDI data are generated they can have a reference through which they can be accessed. The size of such references are typically less than a few hundred bytes, like a URL. In the product context only data references are recorded. This package provides MapContext, ProductRef, Urn, ProductStorage, ProductPool, and Query classes (sim- plified but mostly API-compatible with Herschel Common Science System v15.0) for the storing, retrieving, tagging, and context creating of data product modeled in the dataset package. 2.3.2 Definitions URN The Universial Resource Name (URN) string has this format: urn:poolname:resourceclass:serialnumber where resourceclass full class name of the resource (product) poolname scheme + :// + place + directory scheme file, mem, http . . . etc place 192.168.5.6:8080, c:, an empty string . . . etc directory A label for the pool that is by default used as the full path where the pool is stored. ProductPool.transformpath() can used to change the directory here to other meaning. • for file scheme: / + name + / + name + . . . + / + name • for mem scheme: / + name + / serialnumber internal index. str(int). fdi, Release v0.18c ProductRef This class not only holds the URN of the product it references to, but also records who ( the _parents_) are keeping this reference. Context and MapContext Context is a Product that holds a set of productRef s that accessible by keys. The keys are strings for MapContext which usually maps names to product references. ProductStorage A centralized access place for saving/loading/querying/deleting data organized in conceptual pools. One gets a Pro- ductRef when saving data. ProductPool An place where products can be saved, with a reference for the saved product generated. The product can be retrieved with the reference. Pools based on different media or networking mechanism can be implemented. Multiple pools can be registered in a ProductStorage front-end where users can do the saving, loading, querying etc. so that the pools are collectively form a larger logical storage. Query One can make queries to a ProductStorage and get back a list of references to products that satisfy search chriteria. Queries can be constructed using Python predicate expressions about a product and its metadata, or a function that returns True or False. 2.3.3 run tests in the same directory: make test2 2.3.4 Design Packages fdi, Release v0.18c Classes 2.3. pal: Product Access Layer 11 fdi, Release v0.18c 2.4 pns: Processing Node Server 2.4.1 Rationale Many data processing pipelines need to run software that only runs on a specific combination of OS type, version, language, and library. These software could be impractical to replace or modify but need to be run side-by-side with software of incompatible environments/formats to form an integral data processing pipeline, each software being a “node” to perform a processing task. Docker containers are often the perfect solution to run software with incompatible dependencies. PNS installed on a Docker container or a normal server allows such processing tasks to run in the PNS memory space, in a daemon process, or as an OS process receiving input and delivering output through a ‘delivery man’ protocol. This Web API Server for a data processing pipeline/network node provides interfaces to configure the data processing task software (PTS) in a processing node, to make a run request, to deliver necessary input data, and to read results, all via web APIs. The following commands are run from the fdi directory from installation. 2.4.2 Basic Configuration When running Flask server, the host IP is 0.0.0.0 and port number 5000 by default. They are configurable in pnsconfig.py. Default configuration can be overridden by ~/.config/pnslocal.py. Copy pnsconfig.py to ~/.config/pnslocal.py cp fdi/pns/pnsconfig.py ~/.config/pnslocal.py and customize ~/.config/pnslocal.py. When in developement mode, set dev to True (dev = True or dev = 1) to run local server. The serveruser should be the name of the user of web server, usually your username if you run make runserver. This is the default if dev is true. For production deployment the dev should be set false. Set serveruser depending which web server (e.g. 'apache'). The ptsuser is usually the user required by the processing software. It is set to serveruser by default. ptsuser must have write previlige to read and write inputdir and outputdir, which are owned by serveruser with mode o0775. On the server side (or on your computer which can be both the server and the client) edit Makefile by changing the value of varible PNSDIR in Makefile the pnshome directory if you do not want the default (~/pns). Then run the deployment command make installpns to create the pns home directory and copy the demo PTS script set. fdi, Release v0.18c 2.4.3 Run the FLASK Server Edit ~/.config/pnslocal.py if needed. Then python3 fdi/pns/runflaskserver.py --username=<username> --password=<password> [--ip= ˓→<host ip>] [--port=<port>] Contents in [], like [--ip=<host ip>] [--port=<port>] above, are optional. <> means you need to substitute with actual information (for example --port=<port> becomes --port=5000). Or you can run python3 fdi/pns/runflaskserver.py -u <username> -p <password> [-i <host ip>] [-o <port>] in debugging mode: python3 fdi/pns/runflaskserver.py --username=foo --password=bar -v or just make runserver to use the defaults. Do not run debugging mode for production use. The username and password are used when making run requests. 2.4.4 Test and Verify Installation To run all tests in one go: make test3 [T='-u <username> -p <password> [-i <host ip>] [-o <port>] [options]'] Tests can be done step-by-step to pin-point possible problems: 2.4.5 1. Server Unit Test Run this on the server host to verify that internal essential functions of the server work with current configuration. This runs without needing starting the server: make test4 2.4.6 2. Local Flask Server Functional Tests In ~/.config/pnslocal.py (see above for installation and customization), set dev=True and make sure the IP is local (0.0.0.0 or 127.0.0.1). Start the server fresh in one terminal (see above) and in another terminal (on the server host) run the following: 2a: test GET initPTS script to see if reading the init script back works: make test3 T='getinit' 2b: test PUT initialization test: fdi, Release v0.18c make test3 T='-k putinittest' 2c1: If the test passes, you can Run all tests in one go: make test3 2c2: Or keep on individual tests. . . test POST In-server processing make test3 T='-k _post' test POST PTS processing make test3 T='-k _run' test DELETE Clean-up the server by removing the input and output dirs make test3 T='-k deleteclean' Now is a good time to . . . 2.4.7 3. Get public access APIs and information Suppose the server address and port are 127.0.0.1 and 5000, respectively: Run the Flask server in a terminal (see above) and open this in a browser. The up-to-date URL is displayed in the server stating message: http://127.0.0.1:5000/v0.6/ An online API documentation page similar to below is shown. { "APIs": { "DELETE": [ { "URL": "http://127.0.0.1:5000/v0.6/clean", "description": " Removing traces of past runnings the Processing Task Software.\n " } ], "GET": [ { "URL": "http://127.0.0.1:5000/v0.6/init", "description": "the initPTS file" }, { "URL": "http://127.0.0.1:5000/v0.6/config", "description": "the configPTS file" }, { "URL": "http://127.0.0.1:5000/v0.6/run", "description": "the file running PTS" }, { (continues on next page) fdi, Release v0.18c (continued from previous page) "URL": "http://127.0.0.1:5000/v0.6/clean", "description": "the cleanPTS file" }, { "URL": "http://127.0.0.1:5000/v0.6/input", "description": " returns names and contents of all files in the dir, 'None' if dir not␣ ˓→existing. " }, { "URL": "http://127.0.0.1:5000/v0.6/output", "description": " returns names and contents of all files in the dir, 'None' if dir not␣ ˓→existing. " }, { "URL": "http://127.0.0.1:5000/v0.6/pnsconfig", "description": "PNS configuration" } ], "POST": [ { "URL": "http://127.0.0.1:5000/v0.6/calc", "description": " generates result product directly using data on PNS.\n " }, { "URL": "http://127.0.0.1:5000/v0.6/testcalc", "description": " generate post test product.\n put the 1st input (see maketestdata in␣ ˓→test_all.py)\n parameter to metadata\n and 2nd to the product's dataset\n " }, { "URL": "http://127.0.0.1:5000/v0.6/echo", "description": "Echo" }, { "URL": "http://127.0.0.1:5000/v0.6/run", "description": " Generates a product by running script defined in the config under 'run'. ˓→ Execution on the server host is in the pnshome directory and run result and status␣ ˓→are returned.\n " }, { "URL": "http://127.0.0.1:5000/v0.6/testrun", "description": " Run 'runPTS' for testing, and as an example.\n " } ], "PUT": [ { "URL": "http://127.0.0.1:5000/v0.6/init", "description": " Initialize the Processing Task Software by running the init script␣ ˓→defined in the config. Execution on the server host is in the pnshome directory and␣ ˓→run result and status are returned. If input/output directories cannot be created with␣ ˓→serveruser as owner, Error401 will be given.\n " }, { (continues on next page) fdi, Release v0.18c (continued from previous page) "URL": "http://127.0.0.1:5000/v0.6/config", "description": " Configure the Processing Task Software by running the config script.␣ ˓→Ref init PTS.\n " }, { "URL": "http://127.0.0.1:5000/v0.6/pnsconf", "description": " Configure the PNS itself by replacing the pnsconfig var\n " }, { "URL": "http://127.0.0.1:5000/v0.6/inittest", "description": " Renames the 'init' 'config' 'run' 'clean' scripts to \"*.save\" and␣ ˓→points it to the '.ori' scripts.\n " } ] }, "timestamp": 1566130779.0208821 } Continue with tests. . . 2.4.8 4. Run tests from a remote client Install pns on a remote host, configure IP and port, then run the tests above. This proves that the server and the client have connection and fire wall configured correctly. 2.4.9 Run the local tests with Apache Set dev=False in ~/.config/pnslocal.py (see above) and set the IP and port. Suppose the server is on CentOS. Edit pns/resources/pns.conf according to local setup, then cp pns/resources/pns.conf /etc/httpd/conf.d systemctl restart httpd systemctl status http -l then run the above with correct IP and port (edit ~/.config/pnslocal.py or specifying in command line). Start the server and run all the tests: make test3 2.4.10 PTS Configuration To run a PTS shell script instead of the ‘hello’ demo, change the `run` parameter in the config file, e.g. to run the script named runPTS.vvpp run=[join(h, 'runPTS.vvpp'), ''], restart the server. run make test4 fdi, Release v0.18c 2.4.11 PTS API TBW 2.4.12 Return on Common Errors 400 {'error': 'Bad request.', 'timestamp': ts} 401 {'error': 'Unauthorized. Authentication needed to modify.', 'timestamp': ts} 404 {'error': 'Not found.', 'timestamp': ts} 409 {'error': 'Conflict. Updating.', 'timestamp': ts} Resources TBW 2.5 fdi Quick Start Contents: • fdi Quick Start – dataset ∗ ArrayDataset ∗ TableDataset ∗ Parameter ∗ Metadata ∗ Product – pal ∗ Store a Product in a Pool and Get a Reference Back ∗ Context: a Product with References ∗ Query a ProductStorage – pns fdi, Release v0.18c The following demostrates important dataset and pal functionalities. It was made by running fdi/resources/ example.py with command elpy-shell-send-group-and-step [c-c c-y c-g] in emacs. You can copy the code from code blocks by clicking the copy icon on the top-right, with he prompts and results removed. >>> # import these first. ... import copy ... import getpass ... import os ... from datetime import datetime ... import logging ... from fdi.dataset.product import Product ... from fdi.dataset.metadata import Parameter, NumericParameter, MetaData ... from fdi.dataset.finetime import FineTime1, utcobj ... from fdi.dataset.dataset import ArrayDataset, TableDataset, Column ... from fdi.pal.context import Context, MapContext ... from fdi.pal.productref import ProductRef ... from fdi.pal.query import MetaQuery ... from fdi.pal.poolmanager import PoolManager, DEFAULT_MEM_POOL ... from fdi.pal.productstorage import ProductStorage 2.5.1 dataset ArrayDataset >>> # Creation ... a1 = [1, 4.4, 5.4E3, -22, 0xa2] # a 1D array of data ... v = ArrayDataset(data=a1, unit='ev', description='5 elements') ... v ArrayDataset{ [1, 4.4, 5400.0, -22, 162] <ev>, description = "5 elements", meta =␣ ˓→MetaData{[], listeners = []}} >>> # data access ... v[2] 5400.0 >>> v.unit 'ev' >>> v.unit = 'm' ... v.unit 'm' >>> # iteration ... for m in v: ... print(m) 1 4.4 5400.0 (continues on next page) fdi, Release v0.18c (continued from previous page) -22 162 >>> [m**3 for m in v if m > 0 and m < 40] [1, 85.18400000000003] >>> # slice ... v[1:3] [4.4, 5400.0] >>> v[2:-1] [5400.0, -22] >>> v.data = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] ... v[0:2] [[1, 2, 3], [4, 5, 6]] >>> # Run this to see a demo of the ``toString()`` function:: ... # make a 4-D array: a list of 2 lists of 3 lists of 4 lists of 5 elements. ... s = [[[[i + j + k + l for i in range(5)] for j in range(4)] ... for k in range(3)] for l in range(2)] ... x = ArrayDataset(data=s) ... print(x.toString()) # ArrayDataset # description = "UNKNOWN" # meta = MetaData{[], listeners = []} # unit = "None" # data = 0 1 2 3 1 2 3 4 2 3 4 5 3 4 5 6 4 5 6 7 1 2 3 4 2 3 4 5 3 4 5 6 4 5 6 7 5 6 7 8 2 3 4 5 3 4 5 6 4 5 6 7 5 6 7 8 6 7 8 9 (continues on next page) fdi, Release v0.18c (continued from previous page) #=== dimension 4 1 2 3 4 2 3 4 5 3 4 5 6 4 5 6 7 5 6 7 8 2 3 4 5 3 4 5 6 4 5 6 7 5 6 7 8 6 7 8 9 3 4 5 6 4 5 6 7 5 6 7 8 6 7 8 9 7 8 9 10 #=== dimension 4 TableDataset >>> # Creation ... a1 = [dict(name='col1', unit='eV', column=[1, 4.4, 5.4E3]), ... dict(name='col2', unit='cnt', column=[0, 43.2, 2E3]) ... ] ... v = TableDataset(data=a1) ... v TableDataset{ description = "UNKNOWN", meta = MetaData{[], listeners = []}, data = "OD{ ˓→'col1':Column{ [1, 4.4, 5400.0] <eV>, description = "UNKNOWN", meta = MetaData{[],␣ ˓→listeners = []}}, 'col2':Column{ [0, 43.2, 2000.0] <cnt>, description = "UNKNOWN",␣ ˓→meta = MetaData{[], listeners = []}}}"} >>> # many other ways to create a TableDataset ... v3 = TableDataset(data=[('col1', [1, 4.4, 5.4E3], 'eV'), ... ('col2', [0, 43.2, 2E3], 'cnt')]) ... v == v3 True >>> # quick and dirty. data are list of lists without names or units ... a5 = [[1, 4.4, 5.4E3], [0, 43.2, 2E3]] ... v5 = TableDataset(data=a5) ... print(v5.toString()) fdi, Release v0.18c # TableDataset # description = "UNKNOWN" # meta = MetaData{[], listeners = []} # data = # col1 col2 # None None 1 0 4.4 43.2 5400.0 2000.0 >>> # access ... # get names of all column ... v5.data.keys() odict_keys(['col1', 'col2']) >>> # get a list of all columns' data ... [c.data for c in v5.data.values()] # == a5 [[1, 4.4, 5400.0], [0, 43.2, 2000.0]] >>> # get column by name ... c_1 = v5['col1'] ... c_1 Column{ [1, 4.4, 5400.0] <None>, description = "UNKNOWN", meta = MetaData{[], listeners␣ ˓→= []}} >>> # indexOf ... v5.indexOf('col1') # == u.indexOf(c_1) 0 >>> v5.indexOf(c_1) 0 >>> # get a cell ... v5['col2'][1] # 43.2 43.2 >>> # set cell value ... v5['col2'][1] = 123 ... v5['col2'][1] # 123 123 >>> v5.setValueAt(aValue=42, rowIndex=1, columnIndex=1) ... v5.getValueAt(rowIndex=1, columnIndex=1) # 42 42 >>> # unit access ... v3['col1'].unit # == 'eV' 'eV' fdi, Release v0.18c >>> # add, set, and replace columns and rows ... # column set / get ... u = TableDataset() ... c1 = Column([1, 4], 'sec') ... u.addColumn('col3', c1) ... u.columnCount # 1 1 >>> # for non-existing names set is addColum. ... c2 = Column([2, 3], 'eu') ... u['col4'] = c2 ... u['col4'][0] # 2 2 >>> u.columnCount # 2 2 >>> # replace column for existing names ... c3 = Column([5, 7], 'j') ... u['col4'] = c3 ... u['col4'][0] # c3.data[0] 5 >>> # addRow ... u.rowCount # 2 2 >>> cc = copy.deepcopy(c1) ... c33, c44 = 3.3, 4.4 ... cc.append(c33) ... u.addRow({'col4': c44, 'col3': c33}) ... u.rowCount # 3 3 >>> u['col3'] # cc Column{ [1, 4, 3.3] <sec>, description = "UNKNOWN", meta = MetaData{[], listeners = []}} >>> # removeRow ... u.removeRow(u.rowCount - 1) # [c33, c44] [3.3, 4.4] >>> u.rowCount # 2 2 >>> # syntax ``in`` ... [c for c in u] # list of column names ['col1', 'col2'] ['col3', 'col4'] >>> # run this to see ``toString()`` ... ELECTRON_VOLTS = 'eV' (continues on next page) fdi, Release v0.18c (continued from previous page) ... SECONDS = 'sec' ... t = [x * 1.0 for x in range(10)] ... e = [2 * x + 100 for x in t] ... # creating a table dataset to hold the quantified data ... x = TableDataset(description="Example table") ... x["Time"] = Column(data=t, unit=SECONDS) ... x["Energy"] = Column(data=e, unit=ELECTRON_VOLTS) ... print(x.toString()) # TableDataset # description = "Example table" # meta = MetaData{[], listeners = []} # data = # Time Energy # sec eV 0.0 100.0 1.0 102.0 2.0 104.0 3.0 106.0 4.0 108.0 5.0 110.0 6.0 112.0 7.0 114.0 8.0 116.0 9.0 118.0 Parameter >>> # Creation ... # standard way -- with keyword arguments ... a1 = 'a test parameter' ... a2 = 300 ... a3 = 'integer' ... v = Parameter(description=a1, value=a2, type_=a3) ... v.description # == a1 'a test parameter' >>> v.value # == a2 300 >>> v.type_ # == a3 'integer' >>> # with no argument ... v = Parameter() ... v.description # == 'UNKNOWN# inherited from Anotatable 'UNKNOWN' fdi, Release v0.18c >>> v.value # is None >>> v.type_ # == '' '' >>> # make a blank one then set attributes ... v = Parameter(description=a1) ... v.description # == a1 'a test parameter' >>> v.value # is None >>> v.type_ # == '' '' >>> v.setValue(a2) ... v.setType(a3) ... v.description # == a1 'a test parameter' >>> v.value # == a2 300 >>> v.type_ # == a3 'integer' >>> # test equivalence of v.setXxxx(a) and v.xxx = a ... a1 = 'test score' ... a2 = 98 ... v = Parameter() ... v.description = a1 ... v.value = a2 ... v.description # == a1 'test score' >>> v.value # == a2 98 >>> # test equals ... b1 = ''.join(a1) # make a new string copy ... b2 = a2 + 0 # make a copy ... v1 = Parameter(description=b1, value=b2) ... v.equals(v1) True >>> v == v1 True fdi, Release v0.18c >>> v1.value = -4 ... v.equals(v1) # False False >>> v != v1 # True True Metadata >>> # Creation ... a1 = 'age' ... a2 = NumericParameter(description='since 2000', ... value=20, unit='year', type_='integer') ... v = MetaData() ... v.set(a1, a2) ... v.get(a1) # == a2 NumericParameter{ 20 (year) <integer>, "since 2000"} >>> # add more parameter ... a3 = 'Bob' ... v.set(name='name', newParameter=Parameter(a3)) ... v.get('name').value # == a3 'Bob' >>> # access parameters in metadata ... v = MetaData() ... # a more readable way to set a parameter ... v[a1] = a2 # DRM doc case ... # a more readable way to get a parameter ... v[a1] # == a2 NumericParameter{ 20 (year) <integer>, "since 2000"} >>> v.get(a1) # == a2 NumericParameter{ 20 (year) <integer>, "since 2000"} >>> v['date'] = Parameter(description='take off at', ... value=FineTime1.datetimeToFineTime(datetime.now(tz=utcobj))) ... # names of all parameters ... [n for n in v] # == [a1, 'date'] ['age', 'date'] >>> print(v.toString()) MetaData{[age = NumericParameter{ 20 (year) <integer>, "since 2000"}, date = Parameter{␣ ˓→108120221290 <integer>, "take off at"}, ], listeners = []} >>> # remove parameter ... v.remove(a1) # inherited from composite ... print(v.size()) # == 1 1 fdi, Release v0.18c Product >>> # Creation: ... x = Product(description="product example with several datasets", ... instrument="Crystal-Ball", modelName="Mk II") ... x.meta['description'].value # == "product example with several datasets" 'product example with several datasets' >>> x.instrument # == "Crystal-Ball" 'Crystal-Ball' >>> # ways to add datasets ... i0 = 6 ... i1 = [[1, 2, 3], [4, 5, i0], [7, 8, 9]] ... i2 = 'ev' # unit ... i3 = 'image1' # description ... image = ArrayDataset(data=i1, unit=i2, description=i3) ... x["RawImage"] = image ... x["RawImage"].data # == [[1, 2, 3], [4, 5, 6], [7, 8, 9]] [[1, 2, 3], [4, 5, 6], [7, 8, 9]] >>> # no unit or description. different syntax but same function as above ... x.set('QualityImage', ArrayDataset( ... [[0.1, 0.5, 0.7], [4e3, 6e7, 8], [-2, 0, 3.1]])) ... x["QualityImage"].unit # is None >>> # add a tabledataset ... s1 = [('col1', [1, 4.4, 5.4E3], 'eV'), ... ('col2', [0, 43.2, 2E3], 'cnt')] ... x["Spectrum"] = TableDataset(data=s1) ... print(x["Spectrum"].toString()) # TableDataset # description = "UNKNOWN" # meta = MetaData{[], listeners = []} # data = # col1 col2 # eV cnt 1 0 4.4 43.2 5400.0 2000.0 >>> # mandatory properties are also in metadata ... # test mandatory BaseProduct properties that are also metadata ... x.creator = "" ... a0 = "Me, myself and I" ... x.creator = a0 ... x.creator # == a0 'Me, myself and I' fdi, Release v0.18c >>> # metada by the same name is also set ... x.meta["creator"].value # == a0 'Me, myself and I' >>> # change the metadata ... a1 = "or else" ... x.meta["creator"] = Parameter(a1) ... # metada changed ... x.meta["creator"].value # == a1 'or else' >>> # so did the property ... x.creator # == a1 'or else' >>> # Demo ``toString()`` function. The result should be :: ... print(x.toString()) # Product # description = "product example with several datasets" # meta = MetaData{[description = Parameter{ product example with several datasets ˓→<string>, "Description of this product"}, type = Parameter{ Product <string>, "Product␣ ˓→Type identification. Fully qualified Python class name or CARD."}, creator = Parameter ˓→{ or else <string>, "UNKNOWN"}, creationDate = Parameter{ 2017-01-01T00:00:00.000000␣ ˓→TAI(0) <finetime>, "Creation date of this product"}, rootCause = Parameter{ UNKOWN ˓→<string>, "Reason of this run of pipeline."}, schema = Parameter{ 0.3 <string>, ˓→"Version of product schema"}, startDate = Parameter{ 2017-01-01T00:00:00.000000 TAI(0) ˓→<finetime>, "Nominal start time of this product."}, endDate = Parameter{ 2017-01- ˓→01T00:00:00.000000 TAI(0) <finetime>, "Nominal end time of this product."},␣ ˓→instrument = Parameter{ Crystal-Ball <string>, "Instrument that generated data of this␣ ˓→product"}, modelName = Parameter{ Mk II <string>, "Model name of the instrument of␣ ˓→this product"}, mission = Parameter{ _AGS <string>, "Name of the mission."}, ],␣ ˓→listeners = []} # History # description = "UNKNOWN" # meta = MetaData{[], listeners = []} # data = # data = # [ RawImage ] # ArrayDataset # description = "image1" # meta = MetaData{[], listeners = []} # unit = "ev" # data = 1 4 7 2 5 8 3 6 9 (continues on next page) fdi, Release v0.18c (continued from previous page) # [ QualityImage ] # ArrayDataset # description = "UNKNOWN" # meta = MetaData{[], listeners = []} # unit = "None" # data = 0.1 4000.0 -2 0.5 60000000.0 0 0.7 8 3.1 # [ Spectrum ] # TableDataset # description = "UNKNOWN" # meta = MetaData{[], listeners = []} # data = # col1 col2 # eV cnt 1 0 4.4 43.2 5400.0 2000.0 2.5.2 pal Store a Product in a Pool and Get a Reference Back Create a product and a productStorage with a pool registered >>> # disable debugging messages ... logger = logging.getLogger('') ... logger.setLevel(logging.WARNING) >>> # a pool for demonstration will be create here ... demopoolpath = '/tmp/demopool_' + getpass.getuser() ... demopool = 'file://' + demopoolpath ... # clean possible data left from previous runs ... os.system('rm -rf ' + demopoolpath) ... PoolManager.getPool(DEFAULT_MEM_POOL).removeAll() ... PoolManager.removeAll() >>> # create a prooduct and save it to a pool ... x = Product(description='in store') ... # add a tabledataset ... s1 = [('energy', [1, 4.4, 5.6], 'eV'), ('freq', [0, 43.2, 2E3], 'Hz')] ... x["Spectrum"] = TableDataset(data=s1) ... # create a product store ... pstore = ProductStorage(pool=demopool) (continues on next page) fdi, Release v0.18c (continued from previous page) ... pstore ProductStorage { pool= OD{'file:///tmp/demopool_mh':LocalPool { pool= file:///tmp/ ˓→demopool_mh }} } >>> # save the product and get a reference ... prodref = pstore.save(x) ... print(prodref) ProductRef{ ProductURN=urn:file:///tmp/demopool_mh:fdi.dataset.product.Product:0,␣ ˓→meta=MetaData{[description = Parameter{ in store <string>, "Description of this product ˓→"}, type = Parameter{ Product <string>, "Product Type identificat...} >>> # get the urn string ... urn = prodref.urn ... print(urn) # urn:file:///tmp/demopool_mh:fdi.dataset.product.Product:0 urn:file:///tmp/demopool_mh:fdi.dataset.product.Product:0 >>> newp = ProductRef(urn).product ... # the new and the old one are equal ... print(newp == x) # == True True Context: a Product with References >>> # the reference can be stored in another product of Context class ... p1 = Product(description='p1') ... p2 = Product(description='p2') ... # create an empty mapcontext that can carry references with name labels ... map1 = MapContext(description='product with refs 1') ... # A ProductRef created from a lone product will use a mempool ... pref1 = ProductRef(p1) ... pref1 ProductRef{ ProductURN=urn:mem:///default:fdi.dataset.product.Product:0, meta=None} >>> # A productStorage with a pool on disk ... pref2 = pstore.save(p2) ... pref2 ProductRef{ ProductURN=urn:file:///tmp/demopool_mh:fdi.dataset.product.Product:1,␣ ˓→meta=MetaData{[description = Parameter{ p2 <string>, "Description of this p... >>> # how many prodrefs do we have? (do not use len() due to classID, version) ... map1['refs'].size() # == 0 0 >>> len(pref1.parents) # == 0 0 >>> len(pref2.parents) # == 0 0 fdi, Release v0.18c >>> # add a ref to the contex. every ref has a name in mapcontext ... map1['refs']['spam'] = pref1 ... # add the second one ... map1['refs']['egg'] = pref2 ... # how many prodrefs do we have? (do not use len() due to classID, version) ... map1['refs'].size() # == 2 2 >>> len(pref2.parents) # == 1 1 >>> pref2.parents[0] == map1 True >>> pref1.parents[0] == map1 True >>> # remove a ref ... del map1['refs']['spam'] ... # how many prodrefs do we have? (do not use len() due to classID, version) ... map1.refs.size() # == 1 1 >>> len(pref1.parents) # == 0 0 >>> # add ref2 to another map ... map2 = MapContext(description='product with refs 2') ... map2.refs['also2'] = pref2 ... map2['refs'].size() # == 1 1 >>> # two parents ... len(pref2.parents) # == 2 2 >>> pref2.parents[1] == map2 True Query a ProductStorage >>> # clean possible data left from previous runs ... defaultpoolpath = '/tmp/pool_' + getpass.getuser() ... newpoolpath = '/tmp/newpool_' + getpass.getuser() ... os.system('rm -rf ' + defaultpoolpath) ... os.system('rm -rf ' + newpoolpath) ... PoolManager.getPool(DEFAULT_MEM_POOL).removeAll() ... PoolManager.removeAll() ... # make a productStorage (continues on next page) fdi, Release v0.18c (continued from previous page) ... defaultpool = 'file://'+defaultpoolpath ... pstore = ProductStorage(defaultpool) ... # make another ... newpoolname = 'file://' + newpoolpath ... pstore2 = ProductStorage(newpoolname) >>> # add some products to both storages ... n = 7 ... for i in range(n): ... a0, a1, a2 = 'desc %d' % i, 'fatman %d' % (i*4), 5000+i ... if i < 3: ... x = Product(description=a0, instrument=a1) ... x.meta['extra'] = Parameter(value=a2) ... elif i < 5: ... x = Context(description=a0, instrument=a1) ... x.meta['extra'] = Parameter(value=a2) ... ... ... x = MapContext(description=a0, instrument=a1) ... x.meta['extra'] = Parameter(value=a2) ... x.meta['time'] = Parameter(value=FineTime1(a2)) ... if i < 4: ... r = pstore.save(x) ... else: ... r = pstore2.save(x) ... print(r.urn) ... # Two pools, 7 products ... # [P P P C] [C M M] urn:file:///tmp/pool_mh:fdi.dataset.product.Product:0 urn:file:///tmp/pool_mh:fdi.dataset.product.Product:1 urn:file:///tmp/pool_mh:fdi.dataset.product.Product:2 urn:file:///tmp/pool_mh:fdi.pal.context.Context:0 urn:file:///tmp/newpool_mh:fdi.pal.context.Context:0 urn:file:///tmp/newpool_mh:fdi.pal.context.MapContext:0 urn:file:///tmp/newpool_mh:fdi.pal.context.MapContext:1 >>> # register the new pool above to the 1st productStorage ... pstore.register(newpoolname) ... len(pstore.getPools()) # == 2 2 >>> # make a query on product metadata, which is the variable 'm' ... # in the query expression, i.e. ``m = product.meta; ...`` ... # But '5000 < m["extra"]' does not work. see tests/test.py. ... q = MetaQuery(Product, 'm["extra"] > 5001 and m["extra"] <= 5005') ... # search all pools registered on pstore ... res = pstore.select(q) ... # [2,3,4,5] ... len(res) # == 4 ... [r.product.description for r in res] ['desc 2', 'desc 3', 'desc 4', 'desc 5'] fdi, Release v0.18c >>> def t(m): ... # query is a function ... import re ... return re.match('.*n.1.*', m['instrument'].value) >>> q = MetaQuery(Product, t) ... res = pstore.select(q) ... # [3,4] ... [r.product.instrument for r in res] ['fatman 12', 'fatman 16'] >>> # same as above but query is on the product. this is slow. ... q = AbstractQuery(Product, 'p', '"n 1" in p.instrument') ... res = pstore.select(q) ... # [3,4] ... [r.product.instrument for r in res] ['fatman 12', 'fatman 16'] >>> 2.5.3 pns See the installation and testing sections of the pns page. CHAPTER THREE API DOCUMENT 3.1 API Reference 3.1.1 fdi.dataset package Submodules fdi.dataset.abstractcomposite module fdi.dataset.annotatable module fdi.dataset.attributable module fdi.dataset.baseproduct module fdi.dataset.classes module fdi.dataset.collectionsMockUp module fdi.dataset.composite module fdi.dataset.copyable module fdi.dataset.dataset module fdi.dataset.datatypes module fdi.dataset.datawrapper module fdi.dataset.deserialize module fdi.dataset.eq module fdi.dataset.finetime module fdi.dataset.listener module fdi.dataset.metadata module 33 fdi, Release v0.18c fdi.dataset.metadataholder module fdi.dataset.ndprint module fdi.dataset.odict module fdi.dataset.product module fdi.dataset.quantifiable module fdi.dataset.serializable module fdi.dataset.yaml2python module 3.1.2 fdi.pal package Subpackages fdi.pal.resources package Submodules fdi.pal.common module fdi.pal.comparable module fdi.pal.context module fdi.pal.definable module fdi.pal.httpclientpool module fdi.pal.localpool module fdi.pal.mempool module fdi.pal.pnspoolserver module fdi.pal.poolmanager module fdi.pal.productpool module fdi.pal.productref module fdi.pal.productstorage module fdi.pal.query module fdi.pal.runpnsserver module fdi.pal.taggable module 34 Chapter 3. API Document fdi, Release v0.18c fdi.pal.urn module fdi.pal.versionable module 3.1.3 fdi.pns package Subpackages fdi.pns.resources package Submodules fdi.pns.jsonio module fdi.pns.logdict module fdi.pns.pnsconfig module fdi.pns.runflaskserver module fdi.pns.server module 3.1.4 fdi.utils package Submodules fdi.utils.checkjson module fdi.utils.common module fdi.utils.options module fdi.utils.ydump module 3.1.5 Diagrams packages_dataset.png 3.1. API Reference 35 fdi, Release v0.18c classes_dataset.png packages_pal.png 36 Chapter 3. API Document fdi, Release v0.18c classes_pal.png packages_pns.png 3.1. API Reference 37 fdi, Release v0.18c classes_pns.png packages_all.png classes_all.png 38 Chapter 3. API Document fdi, Release v0.18c 3.1.6 Indices and tables • genindex • modindex • search 3.1. API Reference 39 fdi, Release v0.18c 40 Chapter 3. API Document CHAPTER FOUR INDICES AND TABLES • genindex • modindex • search 41
rusoto_credential
rust
Rust
Crate rusoto_credential === Types for loading and managing AWS access credentials for API requests. Modules --- claimsCredential Claims module. Structs --- AutoRefreshingProviderWrapper for `ProvideAwsCredentials` that caches the credentials returned by the wrapped provider. Each time the credentials are accessed, they are checked to see if they have expired, in which case they are retrieved from the wrapped provider again. AwsCredentialsAWS API access credentials, including access key, secret key, token (for IAM profiles), expiration timestamp, and claims from federated login. ChainProviderProvides AWS credentials from multiple possible sources using a priority order. ContainerProviderProvides AWS credentials from a task’s IAM role. CredentialsErrorRepresents an Error that has occured during the fetching Credentials Phase. DefaultCredentialsProviderWraps a `ChainProvider` in an `AutoRefreshingProvider`. EnvironmentProviderProvides AWS credentials from environment variables. InstanceMetadataProviderProvides AWS credentials from a resource’s IAM role. ProfileProviderProvides AWS credentials from a profile in a credentials file, or from a credential process. SecretNewtype (pattern) to protect secret credentials stored as Strings. StaticProviderProvides AWS credentials from statically/programmatically provided strings. Enums --- VariableVariable is an abstraction over parameters to credential providers, allowing to abstract on how (source) and when (time) parameter values are resolved. A lot of credentials providers use external information sources such as environment variables or files to obtain parameter values needed to produce AWS credentials. Traits --- AnonymousRepresentation of anonymity ProvideAwsCredentialsA trait for types that produce `AwsCredentials`. Crate rusoto_credential === Types for loading and managing AWS access credentials for API requests. Modules --- claimsCredential Claims module. Structs --- AutoRefreshingProviderWrapper for `ProvideAwsCredentials` that caches the credentials returned by the wrapped provider. Each time the credentials are accessed, they are checked to see if they have expired, in which case they are retrieved from the wrapped provider again. AwsCredentialsAWS API access credentials, including access key, secret key, token (for IAM profiles), expiration timestamp, and claims from federated login. ChainProviderProvides AWS credentials from multiple possible sources using a priority order. ContainerProviderProvides AWS credentials from a task’s IAM role. CredentialsErrorRepresents an Error that has occured during the fetching Credentials Phase. DefaultCredentialsProviderWraps a `ChainProvider` in an `AutoRefreshingProvider`. EnvironmentProviderProvides AWS credentials from environment variables. InstanceMetadataProviderProvides AWS credentials from a resource’s IAM role. ProfileProviderProvides AWS credentials from a profile in a credentials file, or from a credential process. SecretNewtype (pattern) to protect secret credentials stored as Strings. StaticProviderProvides AWS credentials from statically/programmatically provided strings. Enums --- VariableVariable is an abstraction over parameters to credential providers, allowing to abstract on how (source) and when (time) parameter values are resolved. A lot of credentials providers use external information sources such as environment variables or files to obtain parameter values needed to produce AWS credentials. Traits --- AnonymousRepresentation of anonymity ProvideAwsCredentialsA trait for types that produce `AwsCredentials`. Module rusoto_credential::claims === Credential Claims module. Contains constants used as keys into the `AwsCredentials` claims map returned by the STS client’s federated assume role APIs. Constants --- AUDIENCEKey used in the claims map for the `Audience` claim. ISSUERKey used in the claims map for the `Issuer` claim. SUBJECTKey used in the claims map for the `Subject` claim. Struct rusoto_credential::AutoRefreshingProvider === ``` pub struct AutoRefreshingProvider<P: ProvideAwsCredentials + 'static> { /* private fields */ } ``` Wrapper for `ProvideAwsCredentials` that caches the credentials returned by the wrapped provider. Each time the credentials are accessed, they are checked to see if they have expired, in which case they are retrieved from the wrapped provider again. In order to access the wrapped provider, for instance to set a timeout, the `get_ref` and `get_mut` methods can be used. Implementations --- source### impl<P: ProvideAwsCredentials + 'static> AutoRefreshingProvider<Psource#### pub fn new(provider: P) -> Result<AutoRefreshingProvider<P>, CredentialsErrorCreate a new `AutoRefreshingProvider` around the provided base provider. source#### pub fn get_ref(&self) -> &P Get a shared reference to the wrapped provider. source#### pub fn get_mut(&mut self) -> &mutP Get a mutable reference to the wrapped provider. This can be used to call `set_timeout` on the wrapped provider. Trait Implementations --- source### impl<P: Clone + ProvideAwsCredentials + 'static> Clone for AutoRefreshingProvider<Psource#### fn clone(&self) -> AutoRefreshingProvider<PReturns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl<P: Debug + ProvideAwsCredentials + 'static> Debug for AutoRefreshingProvider<Psource#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl<P: ProvideAwsCredentials + Send + Sync + 'static> ProvideAwsCredentials for AutoRefreshingProvider<Psource#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Auto Trait Implementations --- ### impl<P> !RefUnwindSafe for AutoRefreshingProvider<P### impl<P> Send for AutoRefreshingProvider<P> where    P: Send, ### impl<P> Sync for AutoRefreshingProvider<P> where    P: Sync, ### impl<P> Unpin for AutoRefreshingProvider<P> where    P: Unpin, ### impl<P> !UnwindSafe for AutoRefreshingProvider<PBlanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::AwsCredentials === ``` pub struct AwsCredentials { /* private fields */ } ``` AWS API access credentials, including access key, secret key, token (for IAM profiles), expiration timestamp, and claims from federated login. Anonymous example --- Some AWS services, like s3 do not require authenticated credentials. For these cases you can use `AwsCredentials::default` with `StaticProvider`. Implementations --- source### impl AwsCredentials source#### pub fn new<K, S>(    key: K,     secret: S,     token: Option<String>,     expires_at: Option<DateTime<Utc>>) -> AwsCredentials where    K: Into<String>,    S: Into<String>, Create a new `AwsCredentials` from a key ID, secret key, optional access token, and expiry time. source#### pub fn aws_access_key_id(&self) -> &str Get a reference to the access key ID. source#### pub fn aws_secret_access_key(&self) -> &str Get a reference to the secret access key. source#### pub fn expires_at(&self) -> &Option<DateTime<Utc>Get a reference to the expiry time. source#### pub fn token(&self) -> &Option<StringGet a reference to the access token. source#### pub fn claims(&self) -> &BTreeMap<String, StringGet the token claims source#### pub fn claims_mut(&mut self) -> &mut BTreeMap<String, StringGet the mutable token claims Trait Implementations --- source### impl Anonymous for AwsCredentials source#### fn is_anonymous(&self) -> bool Return true if a type is anonymous, false otherwise source### impl Clone for AwsCredentials source#### fn clone(&self) -> AwsCredentials Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for AwsCredentials source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Default for AwsCredentials source#### fn default() -> AwsCredentials Returns the “default value” for a type. Read more source### impl<'de> Deserialize<'de> for AwsCredentials source#### fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where    __D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more source### impl From<AwsCredentials> for StaticProvider source#### fn from(credentials: AwsCredentials) -> Self Converts to this type from the input type. Auto Trait Implementations --- ### impl RefUnwindSafe for AwsCredentials ### impl Send for AwsCredentials ### impl Sync for AwsCredentials ### impl Unpin for AwsCredentials ### impl UnwindSafe for AwsCredentials Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source### impl<T> DeserializeOwned for T where    T: for<'de> Deserialize<'de>, Struct rusoto_credential::ChainProvider === ``` pub struct ChainProvider { /* private fields */ } ``` Provides AWS credentials from multiple possible sources using a priority order. The following sources are checked in order for credentials when calling `credentials`: 1. Environment variables: `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` 2. `credential_process` command in the AWS config file, usually located at `~/.aws/config`. 3. AWS credentials file. Usually located at `~/.aws/credentials`. 4. IAM instance profile. Will only work if running on an EC2 instance with an instance profile/role. If the sources are exhausted without finding credentials, an error is returned. The provider has a default timeout of 30 seconds. While it should work well for most setups, you can change the timeout using the `set_timeout` method. Example --- ``` use std::time::Duration; use rusoto_credential::ChainProvider; let mut provider = ChainProvider::new(); // you can overwrite the default timeout like this: provider.set_timeout(Duration::from_secs(60)); ``` Warning --- This provider allows the `credential_process` option in the AWS config file (`~/.aws/config`), a method of sourcing credentials from an external process. This can potentially be dangerous, so proceed with caution. Other credential providers should be preferred if at all possible. If using this option, you should make sure that the config file is as locked down as possible using security best practices for your operating system. Implementations --- source### impl ChainProvider source#### pub fn set_timeout(&mut self, duration: Duration) Set the timeout on the provider to the specified duration. source### impl ChainProvider source#### pub fn new() -> ChainProvider Create a new `ChainProvider` using a `ProfileProvider` with the default settings. source#### pub fn with_profile_provider(profile_provider: ProfileProvider) -> ChainProvider Create a new `ChainProvider` using the provided `ProfileProvider`. Trait Implementations --- source### impl Clone for ChainProvider source#### fn clone(&self) -> ChainProvider Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for ChainProvider source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Default for ChainProvider source#### fn default() -> Self Returns the “default value” for a type. Read more source### impl ProvideAwsCredentials for ChainProvider source#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Auto Trait Implementations --- ### impl !RefUnwindSafe for ChainProvider ### impl Send for ChainProvider ### impl Sync for ChainProvider ### impl Unpin for ChainProvider ### impl !UnwindSafe for ChainProvider Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::ContainerProvider === ``` pub struct ContainerProvider { /* private fields */ } ``` Provides AWS credentials from a task’s IAM role. The provider has a default timeout of 30 seconds. While it should work well for most setups, you can change the timeout using the `set_timeout` method. As described in Amazon’s ECS developers guide, Containers started as part of Tasks using IAM Roles for Tasks will be provided with a relative URL stored in the environment variable `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI`, which will be used to obtain the AWS credentials. If that environment variable is not set, rusoto will use the URL set in environment variable `AWS_CONTAINER_CREDENTIALS_FULL_URI` to obtain AWS credentials and will (optionally) also set the `Authorization` header to the value of environment variable `AWS_CONTAINER_AUTHORIZATION_TOKEN`. Example --- ``` use std::time::Duration; use rusoto_credential::ContainerProvider; let mut provider = ContainerProvider::new(); // you can overwrite the default timeout like this: provider.set_timeout(Duration::from_secs(60)); ``` Implementations --- source### impl ContainerProvider source#### pub fn new() -> Self Create a new provider with the given handle. source#### pub fn set_timeout(&mut self, timeout: Duration) Set the timeout on the provider to the specified duration. Trait Implementations --- source### impl Clone for ContainerProvider source#### fn clone(&self) -> ContainerProvider Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for ContainerProvider source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Default for ContainerProvider Default: create a new provider with the given handle. source#### fn default() -> Self Returns the “default value” for a type. Read more source### impl ProvideAwsCredentials for ContainerProvider source#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Auto Trait Implementations --- ### impl !RefUnwindSafe for ContainerProvider ### impl Send for ContainerProvider ### impl Sync for ContainerProvider ### impl Unpin for ContainerProvider ### impl !UnwindSafe for ContainerProvider Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::CredentialsError === ``` pub struct CredentialsError { pub message: String, } ``` Represents an Error that has occured during the fetching Credentials Phase. This generally is an error message from one of our underlying libraries, however we wrap it up with this type so we can export one single error type. Fields --- `message: String`The underlying error message for the credentials error. Implementations --- source### impl CredentialsError source#### pub fn new<S>(message: S) -> CredentialsError where    S: ToString, Creates a new Credentials Error. * `message` - The Error message for this CredentialsError. Trait Implementations --- source### impl Clone for CredentialsError source#### fn clone(&self) -> CredentialsError Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for CredentialsError source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Display for CredentialsError source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Error for CredentialsError 1.30.0 · source#### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more source#### fn backtrace(&self) -> Option<&Backtrace🔬 This is a nightly-only experimental API. (`backtrace`)Returns a stack backtrace, if available, of where this error occurred. Read more 1.0.0 · source#### fn description(&self) -> &str 👎 Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎 Deprecated since 1.33.0: replaced by Error::source, which can support downcasting source### impl From<Error> for CredentialsError source#### fn from(err: IoError) -> CredentialsError Converts to this type from the input type. source### impl From<Error> for CredentialsError source#### fn from(err: HyperError) -> CredentialsError Converts to this type from the input type. source### impl From<Error> for CredentialsError source#### fn from(err: Error) -> CredentialsError Converts to this type from the input type. source### impl From<FromUtf8Error> for CredentialsError source#### fn from(err: FromUtf8Error) -> CredentialsError Converts to this type from the input type. source### impl From<ParseError> for CredentialsError source#### fn from(err: ParseError) -> CredentialsError Converts to this type from the input type. source### impl From<VarError> for CredentialsError source#### fn from(err: VarError) -> CredentialsError Converts to this type from the input type. source### impl PartialEq<CredentialsError> for CredentialsError source#### fn eq(&self, other: &CredentialsError) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more source#### fn ne(&self, other: &CredentialsError) -> bool This method tests for `!=`. source### impl StructuralPartialEq for CredentialsError Auto Trait Implementations --- ### impl RefUnwindSafe for CredentialsError ### impl Send for CredentialsError ### impl Sync for CredentialsError ### impl Unpin for CredentialsError ### impl UnwindSafe for CredentialsError Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T> ToString for T where    T: Display + ?Sized, source#### default fn to_string(&self) -> String Converts the given value to a `String`. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::DefaultCredentialsProvider === ``` pub struct DefaultCredentialsProvider(_); ``` Wraps a `ChainProvider` in an `AutoRefreshingProvider`. The underlying `ChainProvider` checks multiple sources for credentials, and the `AutoRefreshingProvider` refreshes the credentials automatically when they expire. Warning --- This provider allows the `credential_process` option in the AWS config file (`~/.aws/config`), a method of sourcing credentials from an external process. This can potentially be dangerous, so proceed with caution. Other credential providers should be preferred if at all possible. If using this option, you should make sure that the config file is as locked down as possible using security best practices for your operating system. Implementations --- source### impl DefaultCredentialsProvider source#### pub fn new() -> Result<DefaultCredentialsProvider, CredentialsErrorCreates a new thread-safe `DefaultCredentialsProvider`. Trait Implementations --- source### impl Clone for DefaultCredentialsProvider source#### fn clone(&self) -> DefaultCredentialsProvider Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl ProvideAwsCredentials for DefaultCredentialsProvider source#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Auto Trait Implementations --- ### impl !RefUnwindSafe for DefaultCredentialsProvider ### impl Send for DefaultCredentialsProvider ### impl Sync for DefaultCredentialsProvider ### impl Unpin for DefaultCredentialsProvider ### impl !UnwindSafe for DefaultCredentialsProvider Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::EnvironmentProvider === ``` pub struct EnvironmentProvider { /* private fields */ } ``` Provides AWS credentials from environment variables. Available Environment Variables --- * `AWS_ACCESS_KEY_ID`: Access key ID * `AWS_SECRET_ACCESS_KEY`: Secret access key * `AWS_SESSION_TOKEN`: Session token * `AWS_CREDENTIAL_EXPIRATION`: Expiration time in RFC 3339 format (e.g. `1996-12-19T16:39:57-08:00`). If unset, credentials won’t expire. Example --- ``` use futures::future::Future; use rusoto_credential::{EnvironmentProvider, ProvideAwsCredentials}; use std::env; #[tokio::main] async fn main() { env::set_var("AWS_ACCESS_KEY_ID", "ANTN35UAENTS5UIAEATD"); env::set_var("AWS_SECRET_ACCESS_KEY", "TtnuieannGt2rGuie2t8Tt7urarg5nauedRndrur"); env::set_var("AWS_SESSION_TOKEN", "DfnGs8Td4rT8r4srxAg6Td4rT8r4srxAg6GtkTir"); let creds = EnvironmentProvider::default().credentials().await.unwrap(); assert_eq!(creds.aws_access_key_id(), "ANTN35UAENTS5UIAEATD"); assert_eq!(creds.aws_secret_access_key(), "TtnuieannGt2rGuie2t8Tt7urarg5nauedRndrur"); assert_eq!(creds.token(), &Some("DfnGs8Td4rT8r4srxAg6Td4rT8r4srxAg6GtkTir".to_string())); assert!(creds.expires_at().is_none()); // doesn't expire env::set_var("AWS_CREDENTIAL_EXPIRATION", "2018-04-21T01:13:02Z"); let creds = EnvironmentProvider::default().credentials().await.unwrap(); assert_eq!(creds.expires_at().unwrap().to_rfc3339(), "2018-04-21T01:13:02+00:00"); } ``` Implementations --- source### impl EnvironmentProvider source#### pub fn with_prefix(prefix: &str) -> Self Create an EnvironmentProvider with a non-standard variable prefix. ``` use std::future::Future; use rusoto_credential::{EnvironmentProvider, ProvideAwsCredentials}; use std::env; #[tokio::main] async fn main() -> () { env::set_var("MYAPP_ACCESS_KEY_ID", "ANTN35UAENTS5UIAEATD"); env::set_var("MYAPP_SECRET_ACCESS_KEY", "TtnuieannGt2rGuie2t8Tt7urarg5nauedRndrur"); env::set_var("MYAPP_SESSION_TOKEN", "DfnGs8Td4rT8r4srxAg6Td4rT8r4srxAg6GtkTir"); let creds = EnvironmentProvider::with_prefix("MYAPP").credentials().await.unwrap(); assert_eq!(creds.aws_access_key_id(), "ANTN35UAENTS5UIAEATD"); assert_eq!(creds.aws_secret_access_key(), "TtnuieannGt2rGuie2t8Tt7urarg5nauedRndrur"); assert_eq!(creds.token(), &Some("DfnGs8Td4rT8r4srxAg6Td4rT8r4srxAg6GtkTir".to_string())); assert!(creds.expires_at().is_none()); // doesn't expire env::set_var("MYAPP_CREDENTIAL_EXPIRATION", "2018-04-21T01:13:02Z"); let creds = EnvironmentProvider::with_prefix("MYAPP").credentials().await.unwrap(); assert_eq!(creds.expires_at().unwrap().to_rfc3339(), "2018-04-21T01:13:02+00:00"); } ``` Trait Implementations --- source### impl Clone for EnvironmentProvider source#### fn clone(&self) -> EnvironmentProvider Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for EnvironmentProvider source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Default for EnvironmentProvider source#### fn default() -> Self Returns the “default value” for a type. Read more source### impl ProvideAwsCredentials for EnvironmentProvider source#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Auto Trait Implementations --- ### impl RefUnwindSafe for EnvironmentProvider ### impl Send for EnvironmentProvider ### impl Sync for EnvironmentProvider ### impl Unpin for EnvironmentProvider ### impl UnwindSafe for EnvironmentProvider Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::InstanceMetadataProvider === ``` pub struct InstanceMetadataProvider { /* private fields */ } ``` Provides AWS credentials from a resource’s IAM role. The provider has a default timeout of 30 seconds. While it should work well for most setups, you can change the timeout using the `set_timeout` method. Examples --- ``` use std::time::Duration; use rusoto_credential::InstanceMetadataProvider; let mut provider = InstanceMetadataProvider::new(); // you can overwrite the default timeout like this: provider.set_timeout(Duration::from_secs(60)); ``` The source location can be changed from the default of 169.254.169.254: ``` use std::time::Duration; use rusoto_credential::InstanceMetadataProvider; let mut provider = InstanceMetadataProvider::new(); // you can overwrite the default endpoint like this: provider.set_ip_addr_with_port("127.0.0.1", "8080"); ``` Implementations --- source### impl InstanceMetadataProvider source#### pub fn new() -> Self Create a new provider with the given handle. source#### pub fn set_timeout(&mut self, timeout: Duration) Set the timeout on the provider to the specified duration. source#### pub fn set_ip_addr_with_port(&mut self, ip: &str, port: &str) Allow overriding host and port of instance metadata service. Trait Implementations --- source### impl Clone for InstanceMetadataProvider source#### fn clone(&self) -> InstanceMetadataProvider Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for InstanceMetadataProvider source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Default for InstanceMetadataProvider source#### fn default() -> Self Returns the “default value” for a type. Read more source### impl ProvideAwsCredentials for InstanceMetadataProvider source#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Auto Trait Implementations --- ### impl !RefUnwindSafe for InstanceMetadataProvider ### impl Send for InstanceMetadataProvider ### impl Sync for InstanceMetadataProvider ### impl Unpin for InstanceMetadataProvider ### impl !UnwindSafe for InstanceMetadataProvider Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::ProfileProvider === ``` pub struct ProfileProvider { /* private fields */ } ``` Provides AWS credentials from a profile in a credentials file, or from a credential process. Warning --- This provider allows the `credential_process` option, a method of sourcing credentials from an external process. This can potentially be dangerous, so proceed with caution. Other credential providers should be preferred if at all possible. If using this option, you should make sure that the config file is as locked down as possible using security best practices for your operating system. Implementations --- source### impl ProfileProvider source#### pub fn new() -> Result<ProfileProvider, CredentialsErrorCreate a new `ProfileProvider` for the default credentials file path and profile name. source#### pub fn with_configuration<F, P>(file_path: F, profile: P) -> ProfileProvider where    F: Into<PathBuf>,    P: Into<String>, Create a new `ProfileProvider` for the credentials file at the given path, using the given profile. source#### pub fn with_default_configuration<F>(file_path: F) -> ProfileProvider where    F: Into<PathBuf>, Create a new `ProfileProvider` for the credentials file at the given path, using the profile name from environment variable `AWS_PROFILE` or fall-back to `"default"` if `AWS_PROFILE` is not set. source#### pub fn with_default_credentials<P>(    profile: P) -> Result<ProfileProvider, CredentialsError> where    P: Into<String>, Create a new `ProfileProvider` for the default credentials file path using the given profile. source#### pub fn region() -> Result<Option<String>, CredentialsErrorAttempts to resolve a region value associated with the current default profile from `~/.aws/config` or the file associated with the `AWS_CONFIG_FILE` environment variable. As these fields do not require a region field to be defined, an `Option` type is returned For a the ful region resolution chain, use the `Default` impl for `rusoto_core::Region` source#### pub fn region_from_profile(&self) -> Result<Option<String>, CredentialsErrorAttempts to resolve the region value associated with the current `ProfileProvider`s config file path (`ProfileProvider.file_path`) and profile (`ProfileProvider.profile`). As these fields do not require a region field to be defined, an `Option` type is returned source#### pub fn file_path(&self) -> &Path Get a reference to the credentials file path. source#### pub fn profile(&self) -> &str Get a reference to the profile name. source#### pub fn set_file_path<F>(&mut self, file_path: F) where    F: Into<PathBuf>, Set the credentials file path. source#### pub fn set_profile<P>(&mut self, profile: P) where    P: Into<String>, Set the profile name. Trait Implementations --- source### impl Clone for ProfileProvider source#### fn clone(&self) -> ProfileProvider Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for ProfileProvider source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl ProvideAwsCredentials for ProfileProvider source#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Auto Trait Implementations --- ### impl RefUnwindSafe for ProfileProvider ### impl Send for ProfileProvider ### impl Sync for ProfileProvider ### impl Unpin for ProfileProvider ### impl UnwindSafe for ProfileProvider Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::Secret === ``` pub struct Secret(_); ``` Newtype (pattern) to protect secret credentials stored as Strings. Trait Implementations --- source### impl AsRef<str> for Secret Allow dereferencing Secrets as &str. ``` assert_eq!(Secret::from("hello".to_string()).as_ref(), "hello"); ``` source#### fn as_ref(&self) -> &str Converts this type into a shared reference of the (usually inferred) input type. source### impl Clone for Secret source#### fn clone(&self) -> Secret Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for Secret Secrets must not leak, so make sure they are not printed. ``` assert_eq!(format!("{:?}",Secret::from("hello".to_string())), "\"*******\""); ``` source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Display for Secret Secrets must not leak, so make sure they are not displayed. ``` assert_eq!(format!("{}",Secret::from("hello".to_string())), "*******"); ``` source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Drop for Secret source#### fn drop(&mut self) Executes the destructor for this type. Read more source### impl From<String> for Secret source#### fn from(s: String) -> Self Converts to this type from the input type. Auto Trait Implementations --- ### impl RefUnwindSafe for Secret ### impl Send for Secret ### impl Sync for Secret ### impl Unpin for Secret ### impl UnwindSafe for Secret Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T> ToString for T where    T: Display + ?Sized, source#### default fn to_string(&self) -> String Converts the given value to a `String`. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_credential::StaticProvider === ``` pub struct StaticProvider { /* private fields */ } ``` Provides AWS credentials from statically/programmatically provided strings. Implementations --- source### impl StaticProvider source#### pub fn new(    access_key: String,     secret_access_key: String,     token: Option<String>,     valid_for: Option<i64>) -> StaticProvider Creates a new Static Provider. This should be used when you want to statically, or programmatically provide access to AWS. `valid_for` is the number of seconds for which issued tokens are valid. source#### pub fn new_minimal(    access_key: String,     secret_access_key: String) -> StaticProvider Creates a new minimal Static Provider. This will set the token as optional none. source#### pub fn get_aws_access_key_id(&self) -> &str Gets the AWS Access Key ID for this Static Provider. source#### pub fn get_aws_secret_access_key(&self) -> &str Gets the AWS Secret Access Key for this Static Provider. source#### pub fn has_token(&self) -> bool Determines if this Static Provider was given a Token. source#### pub fn get_token(&self) -> &Option<StringGets The Token this Static Provider was given. source#### pub fn is_valid_for(&self) -> &Option<i64Returns the length in seconds this Static Provider will be valid for. Trait Implementations --- source### impl Clone for StaticProvider source#### fn clone(&self) -> StaticProvider Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for StaticProvider source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl From<AwsCredentials> for StaticProvider source#### fn from(credentials: AwsCredentials) -> Self Converts to this type from the input type. source### impl ProvideAwsCredentials for StaticProvider source#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Auto Trait Implementations --- ### impl RefUnwindSafe for StaticProvider ### impl Send for StaticProvider ### impl Sync for StaticProvider ### impl Unpin for StaticProvider ### impl UnwindSafe for StaticProvider Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Enum rusoto_credential::Variable === ``` pub enum Variable<T, E = CredentialsError> { Static(T), Dynamic(Arc<dyn Fn() -> Result<T, E> + Send + Sync>), Fallback(Box<Variable<T, E>>, Box<Variable<T, E>>), } ``` Variable is an abstraction over parameters to credential providers, allowing to abstract on how (source) and when (time) parameter values are resolved. A lot of credentials providers use external information sources such as environment variables or files to obtain parameter values needed to produce AWS credentials. Information Sources --- * In memory values (static) * Environment variables (dynamic) * Files (dynamic) * … Resolving Behaviour --- * Static variables always resolve to the same value. * Dynamic variables can resolve to different values over time. Most prominent examples for dynamic variables are parameters which read their value from environment variables or files. Variants --- ### `Static(T)` Static variable always resolving to the same given value. ### `Dynamic(Arc<dyn Fn() -> Result<T, E> + Send + Sync>)` Dynamic variable can resolve to different values over time. ### `Fallback(Box<Variable<T, E>>, Box<Variable<T, E>>)` Fallback try variables in given order returning the value of the first variable that does resolve. Implementations --- source### impl<T: Clone, E> Variable<T, Esource#### pub fn with_value<V: Into<T>>(value: V) -> Self Variable which statically resolves to a provided (in-memory) value. source#### pub fn resolve(&self) -> Result<T, EResolve the variable’s value. source#### pub fn or(self, other: Variable<T, E>) -> Self Combine this Variable with a fallback Variable. Resolving the variable’s value will be done lazily, stopping on the first Variable that successfuly resolves. ##### Example Usage ``` let primary: Variable<String> = Variable::from_env_var("AWS_SECRET_ACCESS_KEY"); let fallback = Variable::from_env_var("AWS_SECRET_KEY"); let aws_secret_access_key = primary.or(fallback); ``` source### impl<T: 'static, E: 'static> Variable<T, Esource#### pub fn dynamic(f: impl Fn() -> Result<T, E> + Send + Sync + 'static) -> Self Variable which dynamically resolves to the value returned from the provided closure. Use this constructor function to create dynamically resolving Variables with custom logic. source### impl<T, E> Variable<T, E> where    T: From<String> + 'static,    E: From<VarError> + 'static, source#### pub fn from_env_var<K: AsRef<OsStr>>(key: K) -> Self Variable which dynamically resolves to the value of a given environment variable. source### impl<T, E> Variable<Option<T>, E> where    T: From<String> + 'static,    E: From<VarError> + 'static, source#### pub fn from_env_var_optional<K: AsRef<OsStr>>(key: K) -> Self Variable which dynamically resolves to the value of a given environment variable. source### impl<T, E> Variable<T, E> where    T: From<String> + 'static,    E: From<Error> + From<FromUtf8Error> + 'static, source#### pub fn from_text_file<K: AsRef<Path>>(file: K) -> Self Variable which dynamically resolves to the value of an UTF-8 encoded text file (removing all leading and trailing whitespaces. source### impl<T, E> Variable<T, E> where    T: From<Vec<u8>> + 'static,    E: From<Error> + 'static, source#### pub fn from_binary_file<K: AsRef<Path>>(file: K) -> Self Variable which dynamically resolves to the value of a binary file. Trait Implementations --- source### impl<T: Clone, E> Clone for Variable<T, ECustom Clone implementation as type parameter E doesn’t have to be cloneable. source#### fn clone(&self) -> Self Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl<T: Debug, E> Debug for Variable<T, Esource#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl<E> From<&'_ str> for Variable<String, Esource#### fn from(value: &str) -> Self Converts to this type from the input type. source### impl<T, E> From<T> for Variable<T, E> where    T: Clone, source#### fn from(value: T) -> Self Converts to this type from the input type. Auto Trait Implementations --- ### impl<T, E = CredentialsError> !RefUnwindSafe for Variable<T, E### impl<T, E> Send for Variable<T, E> where    T: Send, ### impl<T, E> Sync for Variable<T, E> where    T: Sync, ### impl<T, E> Unpin for Variable<T, E> where    T: Unpin, ### impl<T, E = CredentialsError> !UnwindSafe for Variable<T, EBlanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<!> for T const: unstable · source#### fn from(t: !) -> T Converts to this type from the input type. source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Trait rusoto_credential::Anonymous === ``` pub trait Anonymous { fn is_anonymous(&self) -> bool; } ``` Representation of anonymity Required Methods --- source#### fn is_anonymous(&self) -> bool Return true if a type is anonymous, false otherwise Implementors --- source### impl Anonymous for AwsCredentials Trait rusoto_credential::ProvideAwsCredentials === ``` pub trait ProvideAwsCredentials { fn credentials<'life0, 'async_trait>(         &'life0 self     ) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>    where         'life0: 'async_trait,         Self: 'async_trait; } ``` A trait for types that produce `AwsCredentials`. Required Methods --- source#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Produce a new `AwsCredentials` future. Implementations on Foreign Types --- source### impl<P: ProvideAwsCredentials + Send + Sync> ProvideAwsCredentials for Arc<Psource#### fn credentials<'life0, 'async_trait>(    &'life0 self) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where    'life0: 'async_trait,    Self: 'async_trait, Implementors --- source### impl ProvideAwsCredentials for ChainProvider source### impl ProvideAwsCredentials for ContainerProvider source### impl ProvideAwsCredentials for DefaultCredentialsProvider source### impl ProvideAwsCredentials for EnvironmentProvider source### impl ProvideAwsCredentials for InstanceMetadataProvider source### impl ProvideAwsCredentials for ProfileProvider source### impl ProvideAwsCredentials for StaticProvider source### impl<P: ProvideAwsCredentials + Send + Sync + 'static> ProvideAwsCredentials for AutoRefreshingProvider<P>
RcppInt64
cran
R
Package ‘RcppInt64’ September 19, 2023 Type Package Title 'Rcpp'-Based Helper Functions to Pass 'Int64' and 'nanotime' Values Between 'R' and 'C++' Version 0.0.3 Date 2023-09-19 Description 'Int64' values can be created and accessed via the 'bit64' package and its 'integer64' class which package the 'int64' representation cleverly into a 'double'. The 'nanotime' packages builds on this to support nanosecond- resolution timestamps. This packages helps conversions between 'R' and 'C++' via several helper functions provided via a single header file. A complete example client package is included as an illustration. URL https://github.com/eddelbuettel/rcppint64 BugReports https://github.com/eddelbuettel/rcppint64/issues License GPL (>= 2) Imports Rcpp (>= 1.0.8) LinkingTo Rcpp Suggests tinytest, bit64, nanotime RoxygenNote 6.0.1 Encoding UTF-8 NeedsCompilation yes Author <NAME> [aut, cre] (<https://orcid.org/0000-0001-6419-907X>) Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2023-09-19 14:00:02 UTC R topics documented: RcppInt64-packag... 2 Int64toInt6... 2 NanotimeToNanotim... 3 RcppInt64-package ’Rcpp’-Based Helper Functions to Pass ’Int64’ and ’nanotime’ Values Between ’R’ and ’C++’ Description ’Int64’ values can be created and accessed via the ’bit64’ package and its ’integer64’ class which package the ’int64’ representation cleverly into a ’double’. The ’nanotime’ packages builds on this to support nanosecond-resolution timestamps. This packages helps conversions between ’R’ and ’C++’ via several helper functions provided via a single header file. A complete example client package is included as an illustration. Package Content Index of help topics: Int64toInt64 Integer64 to Integer64 round-trip demo NanotimeToNanotime nanotime to nanotime round-trip demo RcppInt64-package 'Rcpp'-Based Helper Functions to Pass 'Int64' and 'nanotime' Values Between 'R' and 'C++' Maintainer NA Author(s) NA Int64toInt64 Integer64 to Integer64 round-trip demo Description This function takes an integer64-valued input vector, converts it to the equivalent int64_t vector in C++, displays each element after first adding one, and returns the modified vector. Usage Int64toInt64(vec) Arguments vec An integer64-classed vector from R Value A modified integer64 vector where each element increased by one Examples # generate all powers of 10 fro 0 .. 18 if (requireNamespace("bit64", quietly=TRUE)) { v <- bit64::as.integer64(10^seq(0,18)) # pass them to function which will add one to each, print and return Int64toInt64(v) } NanotimeToNanotime nanotime to nanotime round-trip demo Description This function takes an nanotime-valued input vector, converts it to the equivalent int64_t vector in C++, displays each element after first adding one, and returns the modified vector. Usage NanotimeToNanotime(vec) Arguments vec A nanotime-classed vector from R Value A modified nanotime vector where each element increased by one Examples # generate all powers of 10 fro 0 .. 18 if (requireNamespace("nanotime", quietly=TRUE)) { v <- nanotime::as.nanotime(10^seq(0,18)) # pass them to function which will add one to each, print and return NanotimeToNanotime(v) }
mostly-adequate_gitbooks_io_mostly-adequate-guide_content
free_programming_book
Unknown
Date: 2021-02-08 Categories: Tags: This is a book on the functional paradigm in general. We'll use the world's most popular functional programming language: JavaScript. Some may feel this is a poor choice as it's against the grain of the current culture which, at the moment, feels predominately imperative. However, I believe it is the best way to learn FP for several reasons: * You likely use it every day at work.This makes it possible to practice and apply your acquired knowledge each day on real world programs rather than pet projects on nights and weekends in an esoteric FP language. * We don't have to learn everything up front to start writing programs.In a pure functional language, you cannot log a variable or read a DOM node without using monads. Here we can cheat a little as we learn to purify our codebase. It's also easier to get started in this language since it's mixed paradigm and you can fall back on your current practices while there are gaps in your knowledge. * The language is fully capable of writing top notch functional code.We have all the features we need to mimic a language like Scala or Haskell with the help of a tiny library or two. Object-oriented programming currently dominates the industry, but it's clearly awkward in JavaScript. It's akin to camping off of a highway or tap dancing in galoshes. We have to `bind` all over the place lest `this` change out from under us, we have various work arounds for the quirky behavior when the `new` keyword is forgotten, private members are only available via closures. To a lot of us, FP feels more natural anyways. That said, typed functional languages will, without a doubt, be the best place to code in the style presented by this book. JavaScript will be our means of learning a paradigm, where you apply it is up to you. Luckily, the interfaces are mathematical and, as such, ubiquitous. You'll find yourself at home with Swiftz, Scalaz, Haskell, PureScript, and other mathematically inclined environments. * Quick-access side-bar * In-browser exercises * In-depth examples To make the training efficient and not get too bored while I am telling you another story, make sure to play around with the concepts introduced in this book. Some can be tricky to catch at first and are better understood by getting your hands dirty. All functions and algebraic data-structures presented in the book are gathered in the appendixes. The corresponding code is also available as an npm module: $ npm i @mostly-adequate/support Alternatively, exercises of each chapter are runnable and can be completed in your editor! For example, complete the `exercise_*.js` in `exercises/ch04` and then run: $ npm run ch04 git clone https://github.com/MostlyAdequate/mostly-adequate-guide.git cd mostly-adequate-guide/ npm install npm run setup npm run generate-pdf npm run generate-epub > Note! To generate the ebook version you will need to install `ebook-convert` . Installation instructions. * Part 1 (chapters 1-7) is a guide to the basics. I'm updating as I find errors since this is the initial draft. Feel free to help! * Part 2 (chapters 8-13) address type classes like functors and monads all the way through to traversable. I hope to squeeze in transformers and a pure application. * Part 3 (chapters 14+) will start to dance the fine line between practical programming and academic absurdity. We'll look at comonads, f-algebras, free monads, yoneda, and other categorical constructs.
simpleplugins
readthedoc
Unknown
SimplePlugins Documentation Release 1.5.2-2 liketechnik Apr 23, 2018 Topics: 7.1 Setup SimplePlugin... 15 7.2 Commands with SimplePlugin... 17 7.3 Javado... 17 i ii SimplePlugins Documentation, Release 1.5.2-2 Create simple minecraft mods (Plugins) without setting up a complete forge development environment. SimplePlugins Documentation, Release 1.5.2-2 2 Topics: CHAPTER 1 Usage Clone the blueprint repo version matching the version of SimplePlugins you want to use or download the .zip-Archive of it and extract it (You can rename the directory containing the extracted files to anything you want). The link to the correct blueprint version and the download of the .zip-Archive can be found alongside every release of SimplePlugins. Inside the directory, run gradlew setupDecompWorkspace to initialize forge. Then, depending on the IDE you use, run gradlew eclipse or gradlew idea genIntellijRuns. You can now begin creating your plugin: • Adjust the build.gradle (group and archiveBaseName ) to your needs. • Either delete and start from scratch or rename the default plugin class • Enter the name into the manifest attributes Look at the documentation to get an idea of how achieve certain things. SimplePlugins Documentation, Release 1.5.2-2 4 Chapter 1. Usage CHAPTER 2 Bug Reports Please report any and all issues you encounter while using this mod on the issue tracker. It is important to include the SimplePlugins, Minecraft and Forge version you are using, in your reports/ideas/suggestions. SimplePlugins Documentation, Release 1.5.2-2 6 Chapter 2. Bug Reports CHAPTER 3 Documentation Many things are already documented right in the source code and the javadoc. For all other things and further research, the documentation of SimplePlugins is available at https://simpleplugins.readthedocs. io/en/latest. SimplePlugins Documentation, Release 1.5.2-2 8 Chapter 3. Documentation CHAPTER 4 Development Help with the development is highly appreciated, e. g. pull requests, writing missing documentation or adding ideas. SimplePlugins’s source code is hosted on GitHub at https://github.com/liketechnik/SimplePlugins. If you want to work on SimplePlugins, clone the repository from github and initialize the forge modding environment as described above. SimplePlugins Documentation, Release 1.5.2-2 10 Chapter 4. Development CHAPTER 5 Versioning scheme • The first number stands for the minecraft version: The first version 1.x was released for MC version 1.12, so version 3.x would refer to MC Version 1.14. • The second number stands for added features: For every added feature/release, the number gets increased, i. e the current version is x.0 and a new feature is added, the new version would be x.1. • The third number gets increased for every forge update (inside one MC version). • The number after the bullet point gets increased after bugfixes. • The numbers can only increase for the same MC version, after a new MC Version, all other numbers are reset to 0 SimplePlugins Documentation, Release 1.5.2-2 12 Chapter 5. Versioning scheme CHAPTER 6 Acknowledgements Thanks to the Forge project for creating a great framework for modding minecraft. Without forge, this would not be possible. I had the idea for this mod after I met the Canary project, a framework for creating server side plugins for minecraft. Sadly, the latest version was made for the minecraft version 1.8, which was one of the reasons for me to start this project. SimplePlugins Documentation, Release 1.5.2-2 14 Chapter 6. Acknowledgements CHAPTER 7 Documentation 7.1 Setup SimplePlugins In this part, you will learn how to setup your plugin. When you finished the setup, you can start looking at the other parts of the tutorial and play with MC. 7.1.1 Setup your plugin First download the blueprint .zip-Archive, which is marked with a b in front of the version, for your preferred version from the release page at github. Unpack the archive to a location where you want to work at your plugin, this place is going to be referred to as the project directory. You can rename the folder containing all the stuff to whatever you want to call your plugin. Next head over the forge setup tutorial and step over steps 1-3, because everything is ready to start with step 4 in your project directory. After you finished step 6, your ready to start customizing your plugin. 7.1.2 Make it yours Now you can start making your plugin truly yours: 1. First open the build.gradle file, this file contains information such as the name of your plugin. Change the values of the lines group and archivesBaseName to your liking (they can both have the same name), in our case this name will be demoPlugin. Then choose a name for the main class of the plugin, it is recommended to choose the same name you just used, so our main class will be called DemoPlugin. Your build.gradle file will then roughly look like this (the lines you should have changed are highlighted): Listing 7.1: build.gradle buildscript { repositories { jcenter() maven { url = "http://files.minecraftforge.net/maven" } SimplePlugins Documentation, Release 1.5.2-2 } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary ˓→things for Forge to be setup. version = "1.0" group = "demoPlugin" // http://maven.apache.org/guides/mini/guide-naming- ˓→conventions.html archivesBaseName = "demoPlugin" jar { manifest { attributes( 'Main-Class': 'DemoPlugin' ) } } sourceCompatibility = targetCompatibility = '1.8' // Need this here so ˓→eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = '1.8' } minecraft { version = "1.12.2-14.23.2.2618" runDir = "run" // the mappings can be changed at any time, and must be in the ˓→ following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP ˓→team. // Use non-default mappings at your own risk. they may not always work. // simply re-run your setup task after changing the mappings to update ˓→your workspace. mappings = "snapshot_20171003" // makeObfSourceJar = false // an Srg named sources jar is made by ˓→default. uncomment this to disable. } 2. Then go into the src/main/java folder where all your classes will reside. It contains a default class you can rename to the class name you chose in step 1. Then open up the file and change the class name and modify the string passed to the constructor of the superclass too. (You can also edit the author and date information of the javadoc or delete it, if you want). After this, your main class should look like this (changes are highlighted again): Listing 7.2: src/main/java/DemoPlugin.java import simplePlugins.plugins.api.Plugin; /** SimplePlugins Documentation, Release 1.5.2-2 * @author tutorial * @version 1.0 * @date 18 of Februar 2018 */ public class DemoPlugin extends Plugin { public DemoPlugin() { super("DemoPlugin"); } } Now you’re ready to create your first plugin. You have multiple options what you can start with: • Create your first commands. • React to events and modify the game. 7.2 Commands with SimplePlugins With commands you can make minecraft do something, everytime a player uses your command. In this part of the documentation, your are going to learn how to create commands with SimplePlugins. 7.2.1 Your first command If you have already setup your plugin, you are ready to create your first command now. If you did not setup your plugin yet and need help with it, take a look at Setup SimplePlugins. In this tutorial, we are going to explain the creation of the command steyp by step. In the tutorials that enlarge the topic commands, we will show you the whole command and only explain the new parts. To begin with the creation of your command, open your plugin’s main class. Add a method starting with the name of your command and ending with Command, that return nothing and takes a simplePlu- gins.plugins.api.wrappers.EntityPlayerWrapper: 7.3 Javadoc 7.3.1 simplePlugins.plugins.api EventListener public interface EventListener Author <NAME> Plugin public abstract class Plugin Author <NAME> SimplePlugins Documentation, Release 1.5.2-2 Fields logger public Logger logger Constructors Plugin public Plugin(String name) Methods getName public String getName() registerCommandClasses public void registerCommandClasses(FMLServerStartingEvent event) This is called during registration of commands. Allows the registration of own command classes via the net.minecraftforge.fml.common.event.FMLServerStartingEvent. registerServerCommand(ICommand) method. registerEventClasses public void registerEventClasses() This is called during registration of events. Allows the registration of own event classes via the net.minecraftforge.fml.common.eventhandler.EventBus. register(Object) method. Call this method on the following instance: net. minecraftforge.common.MinecraftForge.EVENT_BUS setLogger public void setLogger(Logger logger) 7.3.2 simplePlugins.plugins.api.annotations ParamCommand public @interface ParamCommand Author <NAME> SimplePlugins Documentation, Release 1.5.2-2 SimpleCommand public @interface SimpleCommand Author <NAME> 7.3.3 simplePlugins.plugins.api.commands ParamCommand public class ParamCommand extends SimpleCommand Author <NAME> Constructors ParamCommand public ParamCommand(String name, String usage, String[] paramsUsage, Method command, Plugin plugin) Methods execute public void execute(MinecraftServer server, ICommandSender sender, String[] args) getUsage public String getUsage(ICommandSender sender) SimpleCommand public class SimpleCommand extends CommandBase Author <NAME> Fields command protected Method command name protected String name SimplePlugins Documentation, Release 1.5.2-2 plugin protected Plugin plugin usage protected String usage Constructors SimpleCommand public SimpleCommand(String name, String usage, Method command, Plugin plugin) Methods execute public void execute(MinecraftServer server, ICommandSender sender, String[] args) getName public String getName() getPlugin public Plugin getPlugin() getUsage public String getUsage(ICommandSender sender) 7.3.4 simplePlugins.plugins.api.events EventWrapper public class EventWrapper Author <NAME> SimplePlugins Documentation, Release 1.5.2-2 Constructors EventWrapper public EventWrapper(Event event) Methods cancel public void cancel() getUnwrapped public Event getUnwrapped() 7.3.5 simplePlugins.plugins.api.events.entity EntityEventWrapper public class EntityEventWrapper extends EventWrapper Author <NAME> Constructors EntityEventWrapper public EntityEventWrapper(EntityEvent event) Methods getEntity public EntityWrapper getEntity() getUnwrapped public EntityEvent getUnwrapped() SimplePlugins Documentation, Release 1.5.2-2 7.3.6 simplePlugins.plugins.api.events.entity.living LivingEventWrapper public class LivingEventWrapper extends EntityEventWrapper Author <NAME> Constructors LivingEventWrapper public LivingEventWrapper(LivingEvent event) Methods getEntityLiving public EntityLivingBaseWrapper getEntityLiving() getUnwrapped public LivingEvent getUnwrapped() 7.3.7 simplePlugins.plugins.api.events.entity.player PlayerEventWrapper public class PlayerEventWrapper extends LivingEventWrapper Author <NAME> Constructors PlayerEventWrapper public PlayerEventWrapper(PlayerEvent event) Methods getEntityPlayer public EntityPlayerWrapper getEntityPlayer() SimplePlugins Documentation, Release 1.5.2-2 getUnwrapped public PlayerEvent getUnwrapped() PlayerInteractEventWrapper public class PlayerInteractEventWrapper extends PlayerEventWrapper Author <NAME> Fields event PlayerInteractEvent event Constructors PlayerInteractEventWrapper public PlayerInteractEventWrapper(PlayerInteractEvent event) Methods getUnwrapped public PlayerInteractEvent getUnwrapped() 7.3.8 simplePlugins.plugins.api.events.entity.player.itemUseEvent ItemUseEvent public class ItemUseEvent extends PlayerInteractEventWrapper Author <NAME> Constructors ItemUseEvent public ItemUseEvent(PlayerInteractEvent.RightClickItem event) SimplePlugins Documentation, Release 1.5.2-2 Methods getConverter public static Class<?> getConverter() getUnwrapped public PlayerInteractEvent.RightClickItem getUnwrapped() getWorld public WorldWrapper getWorld() ItemUseEventConverter public class ItemUseEventConverter Author <NAME> Constructors ItemUseEventConverter public ItemUseEventConverter(Method eventReceiver, Plugin plugin) Methods onItemUse public void onItemUse(PlayerInteractEvent.RightClickItem event) 7.3.9 simplePlugins.plugins.api.wrappers EntityPlayerWrapper public class EntityPlayerWrapper extends EntityLivingBaseWrapper Author <NAME> Constructors EntityPlayerWrapper public EntityPlayerWrapper(EntityPlayer player) SimplePlugins Documentation, Release 1.5.2-2 Methods getUnwrapped public EntityPlayer getUnwrapped() WorldWrapper public class WorldWrapper Author <NAME> Constructors WorldWrapper public WorldWrapper(World world) Methods attemptSetBlock public boolean attemptSetBlock(Block block, BlockPos pos) attemptSetBlock public boolean attemptSetBlock(Block block, double x, double y, double z) forceSetBlock public boolean forceSetBlock(Block block, BlockPos pos) forceSetBlock public boolean forceSetBlock(Block block, double x, double y, double z) getBlockAt public Block getBlockAt(BlockPos pos) getBlockAt public Block getBlockAt(double x, double y, double z) SimplePlugins Documentation, Release 1.5.2-2 getUnwrapped public World getUnwrapped() isBlockAt public boolean isBlockAt(BlockPos pos) isBlockAt public boolean isBlockAt(double x, double y, double z) removeBlockAt public boolean removeBlockAt(BlockPos pos) removeBlockAt public boolean removeBlockAt(double x, double y, double z) spawnEntity public boolean spawnEntity(Entity entity, double x, double y, double z) spawnEntity public boolean spawnEntity(Entity entity, BlockPos pos) 7.3.10 simplePlugins.plugins.api.wrappers.entity EntityLivingBaseWrapper public class EntityLivingBaseWrapper extends EntityWrapper Author <NAME> Constructors EntityLivingBaseWrapper public EntityLivingBaseWrapper(EntityLivingBase entity) SimplePlugins Documentation, Release 1.5.2-2 Methods addHealth public void addHealth(float amount) getUnwrapped public EntityLivingBase getUnwrapped() kill public void kill() EntityWrapper public class EntityWrapper Author <NAME> Constructors EntityWrapper public EntityWrapper(Entity entity) Methods forceTeleport public void forceTeleport(double x, double y, double z) forceTeleport public void forceTeleport(BlockPos pos) getUnwrapped public Entity getUnwrapped() getWorld public WorldWrapper getWorld() SimplePlugins Documentation, Release 1.5.2-2 sendMessageTo public void sendMessageTo(String message, TextFormatting color) sendMessageTo public void sendMessageTo(String message) CHAPTER 8 Indices and tables • genindex • modindex • search 29 SimplePlugins Documentation, Release 1.5.2-2 30 Chapter 8. Indices and tables
Twinkle
cocoapods
Objective-C
Twinkle === Welcome to the documentation for Twinkle, a powerful tool for iOS developers. Twinkle is a library that provides a variety of useful features and functionalities for enhancing your iOS app development. Navigation --- 1. [Getting Started](#getting-started) 2. [Installation](#installation) 3. [Features](#features) 4. [Usage](#usage) 5. [Examples](#examples) 6. [Community & Support](#community) 7. [License](#license) Getting Started --- To start using Twinkle, follow the installation instructions provided below. Installation --- To install Twinkle, you have two options: 1. Using CocoaPods: ``` pod 'Twinkle' ``` 3. Manually: ``` 1. Download the Twinkle repository. 2. Add the Twinkle files to your project. ``` Features --- Twinkle offers the following features: * **Feature 1:** Description of Feature 1. * **Feature 2:** Description of Feature 2. * **Feature 3:** Description of Feature 3. Usage --- To use Twinkle, follow these steps: 1. Import the Twinkle framework into your project. 2. Initialize Twinkle in the desired view controller. 3. Implement the necessary delegate methods. 4. Start utilizing the various Twinkle features in your app. Examples --- Here are a few examples of how you can use Twinkle in your iOS app: 1. Example 1: Description of example 1. 2. Example 2: Description of example 2. 3. Example 3: Description of example 3. Community & Support --- If you need any assistance, want to report a bug, or have suggestions for improvement, join the Twinkle community. * Community Forum: [Insert link to community forum] * Support Email: [Insert support email address] License --- Twinkle is released under the [Insert license type] license. See the LICENSE file for more details.
dispatchr
npm
JavaScript
Dispatchr === A [Flux](http://facebook.github.io/flux/docs/overview.html) dispatcher for applications that run on the server and the client. Usage --- For a more detailed example, see our [example applications](https://github.com/yahoo/fluxible/examples). ``` var ExampleStore = require('./stores/ExampleStore.js'); var dispatcher = require('dispatchr').createDispatcher({ stores: [ExampleStore] }); var contextOptions = {}; var dispatcherContext = dispatcher.createContext(contextOptions); dispatcherContext.dispatch('NAVIGATE', {}); // Action has been handled fully ``` Differences from [Facebook's Flux Dispatcher](https://github.com/facebook/flux/blob/master/src/Dispatcher.js) --- Dispatchr's main goal is to facilitate server-side rendering of Flux applications while also working on the client-side to encourage code reuse. In order to isolate stores between requests on the server-side, we have opted to instantiate the dispatcher and stores classes per request. In addition, action registration is done by stores as a unit rather than individual callbacks. This allows us to lazily instantiate stores as the events that they handle are dispatched. Since instantiation of stores is handled by the dispatcher, we can keep track of the stores that were used during a request and dehydrate their state to the client when the server has completed its execution. Lastly, we are able to enforce the Flux flow by restricting access to the dispatcher from stores. Instead of stores directly requiring a singleton dispatcher, we pass a dispatcher interface to the constructor of the stores to provide access to only the functions that should be available to it: `waitFor` and `getStore`. This prevents the stores from dispatching an entirely new action, which should only be done by action creators to enforce the unidirectional flow that is Flux. Helper Utilities --- These utilities make creating stores less verbose and provide some `change` related functions that are common amongst all store implementations. These store helpers also implement a basic `shouldDehydrate` function that returns true if `emitChange` has been called by the store and false otherwise. ### BaseStore `require('dispatchr/addons/BaseStore')` provides a base store class for extending. Provides `getContext`, `emitChange`, `addChangeListener`, and `removeChangeListener` functions. Example: ``` var inherits = require('inherits'); var BaseStore = require('dispatchr/addons/BaseStore'); var MyStore = function (dispatcherInterface) { BaseStore.apply(this, arguments); }; inherits(MyStore, BaseStore); MyStore.storeName = 'MyStore'; MyStore.handlers = { 'NAVIGATE': function (payload) { ... this.emitChange() ... } }; MyStore.prototype.getFoo = function () { var context = this.getContext(), ... } module.exports = MyStore; ``` ### createStore `require('dispatchr/addons/createStore')` provides a helper function for creating stores similar to React's `createClass` function. The created store class will extend BaseStore and have the same built-in functions. Example: ``` var createStore = require('dispatchr/addons/createStore'); var MyStore = createStore({ initialize: function () {}, // Called immediately after instantiation storeName: 'MyStore', handlers: { 'NAVIGATE': function (payload) { ... this.emitChange() ... } } foo: function () { ... } }); module.exports = MyStore; ``` APIs --- * [Dispatchr](https://github.com/yahoo/fluxible/blob/master/packages/dispatchr/docs/dispatchr.md) * [Store](https://github.com/yahoo/fluxible/blob/master/packages/dispatchr/docs/store.md) License --- This software is free to use under the Yahoo! Inc. BSD license. See the [LICENSE file](https://github.com/yahoo/fluxible/blob/master/LICENSE.md) for license text and copyright information. Readme --- ### Keywords * yahoo * flux * react * dispatcher
kas-theme
rust
Rust
Crate kas_theme === KAS theme support This crate provides the `Theme` trait, `MultiTheme` adapter, color schemes, some supporting items, and the themes `FlatTheme` and `ShadedTheme`. Custom themes may be built over this crate, optionally including custom draw routines (e.g. `DrawShaded`), provided that the shell implements support. Alternatively this crate may be skipped altogether, especially for a minimal shell with a custom fixed theme. Structs --- ColorsProvides standard theme coloursConfigEvent handling configurationFlatThemeA theme with flat (unshaded) renderingInputStateInput and highlighting state of a widgetMultiThemeWrapper around mutliple themes, supporting run-time switchingMultiThemeBuilderBuilder for `MultiTheme`RasterConfigFont raster settingsShadedThemeA theme using simple shading to give apparent depth to elementsSimpleThemeA simple themeEnums --- MaybeBoxedAn optionally-owning (boxed) referenceTraits --- DrawShadedExtension trait providing shaded drawing over `DrawIface`ThemeA *theme* provides widget sizing and drawing implementations.ThemeConfigRequirements on theme config (with `config` feature)ThemeDstAs `Theme`, but without associated typesWindowPer-window storage for the themeType Definitions --- ColorsLinear`Colors` parameterised for graphics usageColorsSrgb`Colors` parameterised for reading and writing using sRGB Crate kas_theme === KAS theme support This crate provides the `Theme` trait, `MultiTheme` adapter, color schemes, some supporting items, and the themes `FlatTheme` and `ShadedTheme`. Custom themes may be built over this crate, optionally including custom draw routines (e.g. `DrawShaded`), provided that the shell implements support. Alternatively this crate may be skipped altogether, especially for a minimal shell with a custom fixed theme. Structs --- ColorsProvides standard theme coloursConfigEvent handling configurationFlatThemeA theme with flat (unshaded) renderingInputStateInput and highlighting state of a widgetMultiThemeWrapper around mutliple themes, supporting run-time switchingMultiThemeBuilderBuilder for `MultiTheme`RasterConfigFont raster settingsShadedThemeA theme using simple shading to give apparent depth to elementsSimpleThemeA simple themeEnums --- MaybeBoxedAn optionally-owning (boxed) referenceTraits --- DrawShadedExtension trait providing shaded drawing over `DrawIface`ThemeA *theme* provides widget sizing and drawing implementations.ThemeConfigRequirements on theme config (with `config` feature)ThemeDstAs `Theme`, but without associated typesWindowPer-window storage for the themeType Definitions --- ColorsLinear`Colors` parameterised for graphics usageColorsSrgb`Colors` parameterised for reading and writing using sRGB Trait kas_theme::Theme === ``` pub trait Theme<DS: DrawSharedImpl>: ThemeControl { type Config: ThemeConfig; type Window: Window; type Draw<'a>: ThemeDraw     where         DS: 'a,         Self: 'a; fn config(&self) -> Cow<'_, Self::Config>; fn apply_config(&mut self, config: &Self::Config) -> TkAction; fn init(&mut self, shared: &mut SharedState<DS>); fn new_window(&self, dpi_factor: f32) -> Self::Window; fn update_window(&self, window: &mut Self::Window, dpi_factor: f32); fn draw<'a>(         &'a self,         draw: DrawIface<'a, DS>,         ev: &'a mut EventState,         window: &'a mut Self::Window     ) -> Self::Draw<'a>; fn clear_color(&self) -> Rgba; } ``` A *theme* provides widget sizing and drawing implementations. The theme is generic over some `DrawIface`. Objects of this type are copied within each window’s data structure. For large resources (e.g. fonts and icons) consider using external storage. Required Associated Types --- #### type Config: ThemeConfig The associated config type #### type Window: Window The associated `Window` implementation. #### type Draw<'a>: ThemeDrawwhere    DS: 'a,    Self: 'a The associated [`ThemeDraw`] implementation. Required Methods --- #### fn config(&self) -> Cow<'_, Self::ConfigGet current configuration #### fn apply_config(&mut self, config: &Self::Config) -> TkAction Apply/set the passed config #### fn init(&mut self, shared: &mut SharedState<DS>) Theme initialisation The toolkit must call this method before `Theme::new_window` to allow initialisation specific to the `DrawIface`. At a minimum, a theme must load a font to [`kas::text::fonts`]. The first font loaded (by any theme) becomes the default font. #### fn new_window(&self, dpi_factor: f32) -> Self::Window Construct per-window storage On “standard” monitors, the `dpi_factor` is 1. High-DPI screens may have a factor of 2 or higher. The factor may not be an integer; e.g. `9/8 = 1.125` works well with many 1440p screens. It is recommended to round dimensions to the nearest integer, and cache the result: ``` self.margin = i32::conv_nearest(MARGIN * factor); ``` A reference to the draw backend is provided allowing configuration. #### fn update_window(&self, window: &mut Self::Window, dpi_factor: f32) Update a window created by `Theme::new_window` This is called when the DPI factor changes or theme dimensions change. #### fn draw<'a>(    &'a self,    draw: DrawIface<'a, DS>,    ev: &'a mut EventState,    window: &'a mut Self::Window) -> Self::Draw<'aPrepare to draw and construct a [`ThemeDraw`] object This is called once per window per frame and should do any necessary preparation such as loading fonts and textures which are loaded on demand. Drawing via this [`ThemeDraw`] object is restricted to the specified `rect`. The `window` is guaranteed to be one created by a call to `Theme::new_window` on `self`. #### fn clear_color(&self) -> Rgba Background colour Implementations on Foreign Types --- ### impl<T: Theme<DS>, DS: DrawSharedImpl> Theme<DS> for Box<T#### type Window = <T as Theme<DS>>::Window #### type Config = <T as Theme<DS>>::Config #### type Draw<'a>where    T: 'a = <T as Theme<DS>>::Draw<'a#### fn config(&self) -> Cow<'_, Self::Config#### fn apply_config(&mut self, config: &Self::Config) -> TkAction #### fn init(&mut self, shared: &mut SharedState<DS>) #### fn new_window(&self, dpi_factor: f32) -> Self::Window #### fn update_window(&self, window: &mut Self::Window, dpi_factor: f32) #### fn draw<'a>(    &'a self,    draw: DrawIface<'a, DS>,    ev: &'a mut EventState,    window: &'a mut Self::Window) -> Self::Draw<'a#### fn clear_color(&self) -> Rgba Implementors --- ### impl<DS: DrawSharedImpl> Theme<DS> for FlatThemewhere    DS::Draw: DrawRoundedImpl, #### type Config = Config #### type Window = Window<<DS as DrawSharedImpl>::Draw#### type Draw<'a> = DrawHandle<'a, DS### impl<DS: DrawSharedImpl> Theme<DS> for MultiTheme<DS#### type Config = Config #### type Window = Box<dyn Window + 'static, Global#### type Draw<'a> = Box<dyn ThemeDraw + 'a, Global### impl<DS: DrawSharedImpl> Theme<DS> for ShadedThemewhere    DS::Draw: DrawRoundedImpl + DrawShadedImpl, #### type Config = Config #### type Window = Window<<DS as DrawSharedImpl>::Draw#### type Draw<'a> = DrawHandle<'a, DS### impl<DS: DrawSharedImpl> Theme<DS> for SimpleThemewhere    DS::Draw: DrawRoundedImpl, #### type Config = Config #### type Window = Window<<DS as DrawSharedImpl>::Draw#### type Draw<'a> = DrawHandle<'a, DSStruct kas_theme::MultiTheme === ``` pub struct MultiTheme<DS> { /* private fields */ } ``` Wrapper around mutliple themes, supporting run-time switching Implementations --- ### impl<DS> MultiTheme<DS#### pub fn builder() -> MultiThemeBuilder<DSConstruct with builder pattern Trait Implementations --- ### impl<DS: DrawSharedImpl> Theme<DS> for MultiTheme<DS#### type Config = Config The associated config type#### type Window = Box<dyn Window + 'static, GlobalThe associated `Window` implementation.#### type Draw<'a> = Box<dyn ThemeDraw + 'a, GlobalThe associated [`ThemeDraw`] implementation.#### fn config(&self) -> Cow<'_, Self::ConfigGet current configuration#### fn apply_config(&mut self, config: &Self::Config) -> TkAction Apply/set the passed config#### fn init(&mut self, shared: &mut SharedState<DS>) Theme initialisation Construct per-window storage Update a window created by `Theme::new_window` Background colour### impl<DS> ThemeControl for MultiTheme<DS#### fn set_font_size(&mut self, size: f32) -> TkAction Set font size Change the colour scheme Switch the theme Read moreAuto Trait Implementations --- ### impl<DS> !RefUnwindSafe for MultiTheme<DS### impl<DS> !Send for MultiTheme<DS### impl<DS> !Sync for MultiTheme<DS### impl<DS> Unpin for MultiTheme<DS### impl<DS> !UnwindSafe for MultiTheme<DSBlanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct kas_theme::FlatTheme === ``` pub struct FlatTheme { /* private fields */ } ``` A theme with flat (unshaded) rendering Implementations --- ### impl FlatTheme #### pub fn new() -> Self Construct #### pub fn with_font_size(self, pt_size: f32) -> Self Set font size Units: Points per Em (standard unit of font size) #### pub fn with_colours(self, scheme: &str) -> Self Set the colour scheme If no scheme by this name is found the scheme is left unchanged. Trait Implementations --- ### impl Clone for FlatTheme #### fn clone(&self) -> FlatTheme Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### type Config = Config The associated config type#### type Window = Window<<DS as DrawSharedImpl>::DrawThe associated `Window` implementation.#### type Draw<'a> = DrawHandle<'a, DSThe associated [`ThemeDraw`] implementation.#### fn config(&self) -> Cow<'_, Self::ConfigGet current configuration#### fn apply_config(&mut self, config: &Self::Config) -> TkAction Apply/set the passed config#### fn init(&mut self, shared: &mut SharedState<DS>) Theme initialisation Construct per-window storage Update a window created by `Theme::new_window` Background colour### impl ThemeControl for FlatTheme #### fn set_font_size(&mut self, pt_size: f32) -> TkAction Set font size Change the colour scheme Switch the theme Read moreAuto Trait Implementations --- ### impl RefUnwindSafe for FlatTheme ### impl !Send for FlatTheme ### impl !Sync for FlatTheme ### impl Unpin for FlatTheme ### impl UnwindSafe for FlatTheme Blanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere    T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct kas_theme::ShadedTheme === ``` pub struct ShadedTheme { /* private fields */ } ``` A theme using simple shading to give apparent depth to elements Implementations --- ### impl ShadedTheme #### pub fn new() -> Self Construct #### pub fn with_font_size(self, pt_size: f32) -> Self Set font size Units: Points per Em (standard unit of font size) #### pub fn with_colours(self, scheme: &str) -> Self Set the colour scheme If no scheme by this name is found the scheme is left unchanged. Trait Implementations --- ### impl Clone for ShadedTheme #### fn clone(&self) -> ShadedTheme Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### type Config = Config The associated config type#### type Window = Window<<DS as DrawSharedImpl>::DrawThe associated `Window` implementation.#### type Draw<'a> = DrawHandle<'a, DSThe associated [`ThemeDraw`] implementation.#### fn config(&self) -> Cow<'_, Self::ConfigGet current configuration#### fn apply_config(&mut self, config: &Self::Config) -> TkAction Apply/set the passed config#### fn init(&mut self, shared: &mut SharedState<DS>) Theme initialisation Construct per-window storage Update a window created by `Theme::new_window` Background colour### impl ThemeControl for ShadedTheme #### fn set_font_size(&mut self, pt_size: f32) -> TkAction Set font size Change the colour scheme Switch the theme Read moreAuto Trait Implementations --- ### impl RefUnwindSafe for ShadedTheme ### impl !Send for ShadedTheme ### impl !Sync for ShadedTheme ### impl Unpin for ShadedTheme ### impl UnwindSafe for ShadedTheme Blanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere    T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Trait kas_theme::DrawShaded === ``` pub trait DrawShaded { fn shaded_square(&mut self, rect: Quad, norm: (f32, f32), col: Rgba); fn shaded_circle(&mut self, rect: Quad, norm: (f32, f32), col: Rgba); fn shaded_square_frame(         &mut self,         outer: Quad,         inner: Quad,         norm: (f32, f32),         outer_col: Rgba,         inner_col: Rgba     ); fn shaded_round_frame(         &mut self,         outer: Quad,         inner: Quad,         norm: (f32, f32),         col: Rgba     ); } ``` Extension trait providing shaded drawing over `DrawIface` All methods draw some feature. Methods are parameterised via a pair of normals, `(inner, outer)`, which specify the surface normal direction at inner and outer edges of the feature respectively (with interpolation between these edges). These have values from the closed range `[-1, 1]`, where -1 points towards the inside of the feature, 1 points away from the feature, and 0 is perpendicular to the screen towards the viewer. Required Methods --- #### fn shaded_square(&mut self, rect: Quad, norm: (f32, f32), col: Rgba) Add a shaded square to the draw buffer For shading purposes, the mid-point is considered the inner edge. #### fn shaded_circle(&mut self, rect: Quad, norm: (f32, f32), col: Rgba) Add a shaded circle to the draw buffer For shading purposes, the mid-point is considered the inner edge. #### fn shaded_square_frame(    &mut self,    outer: Quad,    inner: Quad,    norm: (f32, f32),    outer_col: Rgba,    inner_col: Rgba) Add a shaded frame with square corners to the draw buffer #### fn shaded_round_frame(    &mut self,    outer: Quad,    inner: Quad,    norm: (f32, f32),    col: Rgba) Add a shaded frame with rounded corners to the draw buffer Implementations on Foreign Types --- ### impl<'a, DS: DrawSharedImpl> DrawShaded for DrawIface<'a, DS>where    DS::Draw: DrawShadedImpl, #### fn shaded_square(&mut self, rect: Quad, norm: (f32, f32), col: Rgba) #### fn shaded_circle(&mut self, rect: Quad, norm: (f32, f32), col: Rgba) #### fn shaded_square_frame(    &mut self,    outer: Quad,    inner: Quad,    norm: (f32, f32),    outer_col: Rgba,    inner_col: Rgba) #### fn shaded_round_frame(    &mut self,    outer: Quad,    inner: Quad,    norm: (f32, f32),    col: Rgba) Implementors --- Struct kas_theme::Colors === ``` pub struct Colors<C> { pub is_dark: bool, pub background: C, pub frame: C, pub edit_bg: C, pub edit_bg_disabled: C, pub edit_bg_error: C, pub accent: C, pub accent_soft: C, pub nav_focus: C, pub text: C, pub text_invert: C, pub text_disabled: C, pub text_sel_bg: C, } ``` Provides standard theme colours Fields --- `is_dark: bool`True if this is a dark theme `background: C`Background colour `frame: C`Colour for frames (not always used) `edit_bg: C`Background colour of `EditBox` `edit_bg_disabled: C`Background colour of `EditBox` (disabled state) `edit_bg_error: C`Background colour of `EditBox` (error state) `accent: C`Theme accent This should be a bold colour, used for small details. `accent_soft: C`Soft version of accent A softer version of the accent colour, used for block elements in some themes. `nav_focus: C`Highlight colour for keyboard navigation This may be the same as `accent`. It should contrast well with `accent_soft`. Themes should use `nav_focus` over `accent` where a strong contrast is required. `text: C`Normal text colour (over background) `text_invert: C`Opposing text colour (e.g. white if `text` is black) `text_disabled: C`Disabled text colour `text_sel_bg: C`Selected text background colour This may be the same as `accent_soft`. Implementations --- ### impl Colors<Rgba8Srgb#### pub fn light() -> Self Default “light” scheme #### pub fn dark() -> Self Dark scheme #### pub fn blue() -> Self Blue scheme ### impl Colors<Rgba#### pub fn adjust_for_state(col: Rgba, state: InputState) -> Rgba Adjust a colour depending on state #### pub fn from_bg(    &self,    bg: Background,    state: InputState,    force_accent: bool) -> Rgba Extract from `Background` #### pub fn from_edit_bg(&self, bg: Background, state: InputState) -> Rgba Get colour of a text area, depending on state #### pub fn nav_region(&self, state: InputState) -> Option<RgbaGet colour for navigation highlight region, if any #### pub fn accent_state(&self, state: InputState) -> Rgba Get accent colour, adjusted for state #### pub fn accent_soft_state(&self, state: InputState) -> Rgba Get soft accent colour, adjusted for state #### pub fn check_mark_state(&self, state: InputState) -> Rgba Get colour for a check box mark, depending on state #### pub fn menu_entry(&self, state: InputState) -> Option<RgbaGet background highlight colour of a menu entry, if any #### pub fn text_over(&self, bg: Rgba) -> Rgba Get appropriate text colour over the given background Trait Implementations --- ### impl<C: Clone> Clone for Colors<C#### fn clone(&self) -> Colors<CReturns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Formats the value using the given formatter. #### fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where    __D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. #### fn from(col: ColorsLinear) -> Self Converts to this type from the input type.### impl From<Colors<Rgba8Srgb>> for ColorsLinear #### fn from(col: ColorsSrgb) -> Self Converts to this type from the input type.### impl<C: PartialEq> PartialEq<Colors<C>> for Colors<C#### fn eq(&self, other: &Colors<C>) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason. #### fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where    __S: Serializer, Serialize this value into the given Serde serializer. --- ### impl<C> RefUnwindSafe for Colors<C>where    C: RefUnwindSafe, ### impl<C> Send for Colors<C>where    C: Send, ### impl<C> Sync for Colors<C>where    C: Sync, ### impl<C> Unpin for Colors<C>where    C: Unpin, ### impl<C> UnwindSafe for Colors<C>where    C: UnwindSafe, Blanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere    T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<T> DeserializeOwned for Twhere    T: for<'de> Deserialize<'de>, Struct kas_theme::Config === ``` pub struct Config { /* private fields */ } ``` Event handling configuration Implementations --- ### impl Config Getters #### pub fn font_size(&self) -> f32 Standard font size Units: points per Em. Pixel size depends on the screen’s scale factor. #### pub fn active_scheme(&self) -> &str Active colour scheme (name) An empty string will resolve the default colour scheme. #### pub fn color_schemes_iter(&self) -> impl Iterator<Item = (&str, &ColorsSrgb)Iterate over all colour schemes #### pub fn get_color_scheme(&self, name: &str) -> Option<ColorsSrgbGet a colour scheme by name #### pub fn get_active_scheme(&self) -> Option<ColorsSrgbGet the active colour scheme Even this one isn’t guaranteed to exist. #### pub fn iter_fonts(    &self) -> impl Iterator<Item = (&TextClass, &FontSelector<'static>)Get an iterator over font mappings #### pub fn cursor_blink_rate(&self) -> Duration Get the cursor blink rate (delay) #### pub fn transition_fade_duration(&self) -> Duration Get the fade duration used in transition animations ### impl Config Setters #### pub fn set_font_size(&mut self, pt_size: f32) Set font size #### pub fn set_active_scheme(&mut self, scheme: impl ToString) Set colour scheme ### impl Config Other functions #### pub fn apply_config(&mut self, other: &Config) -> TkAction Currently this is just “set”. Later, maybe some type of merge. Trait Implementations --- ### impl Clone for Config #### fn clone(&self) -> Config Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where    __D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. #### fn eq(&self, other: &Config) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason. #### fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where    __S: Serializer, Serialize this value into the given Serde serializer. #### fn apply_startup(&self) Apply config effects which only happen on startup #### fn raster(&self) -> &RasterConfig Get raster config #### fn is_dirty(&self) -> bool Has the config ever been updated?### impl StructuralPartialEq for Config Auto Trait Implementations --- ### impl RefUnwindSafe for Config ### impl Send for Config ### impl Sync for Config ### impl Unpin for Config ### impl UnwindSafe for Config Blanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere    T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<T> DeserializeOwned for Twhere    T: for<'de> Deserialize<'de>, Struct kas_theme::InputState === ``` pub struct InputState { /* private fields */ } ``` Input and highlighting state of a widget This is mostly an implementation detail used to control the appearance of theme-drawn elements. Implementations --- ### impl InputState #### pub const DISABLED: Self = _ Disabled widgets are not responsive to input and usually drawn in grey. All other states should be ignored when disabled. #### pub const HOVER: Self = _ “Hover” is true if the mouse is over this element #### pub const DEPRESS: Self = _ Elements such as buttons, handles and menu entries may be depressed (visually pushed) by a click or touch event or an accelerator key. This is often visualised by a darker colour and/or by offsetting graphics. The `hover` state should be ignored when depressed. #### pub const NAV_FOCUS: Self = _ Keyboard navigation of UIs moves a “focus” from widget to widget. #### pub const CHAR_FOCUS: Self = _ “Character focus” implies this widget is ready to receive text input (e.g. typing into an input field). #### pub const SEL_FOCUS: Self = _ “Selection focus” allows things such as text to be selected. Selection focus implies that the widget also has character focus. #### pub const fn empty() -> Self Returns an empty set of flags. #### pub const fn all() -> Self Returns the set containing all flags. #### pub const fn bits(&self) -> u8 Returns the raw value of the flags currently stored. #### pub const fn from_bits(bits: u8) -> Option<SelfConvert from underlying bit representation, unless that representation contains bits that do not correspond to a flag. #### pub const fn from_bits_truncate(bits: u8) -> Self Convert from underlying bit representation, dropping any bits that do not correspond to flags. #### pub const unsafe fn from_bits_unchecked(bits: u8) -> Self Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag). ##### Safety The caller of the `bitflags!` macro can chose to allow or disallow extra bits for their bitflags type. The caller of `from_bits_unchecked()` has to ensure that all bits correspond to a defined flag or that extra bits are valid for this bitflags type. #### pub const fn is_empty(&self) -> bool Returns `true` if no flags are currently stored. #### pub const fn is_all(&self) -> bool Returns `true` if all flags are currently set. #### pub const fn intersects(&self, other: Self) -> bool Returns `true` if there are flags common to both `self` and `other`. #### pub const fn contains(&self, other: Self) -> bool Returns `true` if all of the flags in `other` are contained within `self`. #### pub fn insert(&mut self, other: Self) Inserts the specified flags in-place. #### pub fn remove(&mut self, other: Self) Removes the specified flags in-place. #### pub fn toggle(&mut self, other: Self) Toggles the specified flags in-place. #### pub fn set(&mut self, other: Self, value: bool) Inserts or removes the specified flags depending on the passed value. #### pub const fn intersection(self, other: Self) -> Self Returns the intersection between the flags in `self` and `other`. Specifically, the returned set contains only the flags which are present in *both* `self` *and* `other`. This is equivalent to using the `&` operator (e.g. `ops::BitAnd`), as in `flags & other`. #### pub const fn union(self, other: Self) -> Self Returns the union of between the flags in `self` and `other`. Specifically, the returned set contains all flags which are present in *either* `self` *or* `other`, including any which are present in both (see `Self::symmetric_difference` if that is undesirable). This is equivalent to using the `|` operator (e.g. `ops::BitOr`), as in `flags | other`. #### pub const fn difference(self, other: Self) -> Self Returns the difference between the flags in `self` and `other`. Specifically, the returned set contains all flags present in `self`, except for the ones present in `other`. It is also conceptually equivalent to the “bit-clear” operation: `flags & !other` (and this syntax is also supported). This is equivalent to using the `-` operator (e.g. `ops::Sub`), as in `flags - other`. #### pub const fn symmetric_difference(self, other: Self) -> Self Returns the symmetric difference between the flags in `self` and `other`. Specifically, the returned set contains the flags present which are present in `self` or `other`, but that are not present in both. Equivalently, it contains the flags present in *exactly one* of the sets `self` and `other`. This is equivalent to using the `^` operator (e.g. `ops::BitXor`), as in `flags ^ other`. #### pub const fn complement(self) -> Self Returns the complement of this set of flags. Specifically, the returned set contains all the flags which are not set in `self`, but which are allowed for this type. Alternatively, it can be thought of as the set difference between `Self::all()` and `self` (e.g. `Self::all() - self`) This is equivalent to using the `!` operator (e.g. `ops::Not`), as in `!flags`. ### impl InputState #### pub fn new_all(ev: &EventState, id: &WidgetId) -> Self Construct, setting all components #### pub fn new_except_depress(ev: &EventState, id: &WidgetId) -> Self Construct, setting all but depress status #### pub fn new2(ev: &EventState, id: &WidgetId, id2: &WidgetId) -> Self Construct, setting all components, also setting hover from `id2` #### pub fn disabled(self) -> bool Extract `DISABLED` bit #### pub fn hover(self) -> bool Extract `HOVER` bit #### pub fn depress(self) -> bool Extract `DEPRESS` bit #### pub fn nav_focus(self) -> bool Extract `NAV_FOCUS` bit #### pub fn char_focus(self) -> bool Extract `CHAR_FOCUS` bit #### pub fn sel_focus(self) -> bool Extract `SEL_FOCUS` bit Trait Implementations --- ### impl Binary for InputState #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter.### impl BitAnd<InputState> for InputState #### fn bitand(self, other: Self) -> Self Returns the intersection between the two sets of flags. #### type Output = InputState The resulting type after applying the `&` operator.### impl BitAndAssign<InputState> for InputState #### fn bitand_assign(&mut self, other: Self) Disables all flags disabled in the set. ### impl BitOr<InputState> for InputState #### fn bitor(self, other: InputState) -> Self Returns the union of the two sets of flags. #### type Output = InputState The resulting type after applying the `|` operator.### impl BitOrAssign<InputState> for InputState #### fn bitor_assign(&mut self, other: Self) Adds the set of flags. ### impl BitXor<InputState> for InputState #### fn bitxor(self, other: Self) -> Self Returns the left flags, but with all the right flags toggled. #### type Output = InputState The resulting type after applying the `^` operator.### impl BitXorAssign<InputState> for InputState #### fn bitxor_assign(&mut self, other: Self) Toggles the set of flags. ### impl Clone for InputState #### fn clone(&self) -> InputState Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> InputState Returns the “default value” for a type. #### fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T) Extends a collection with the contents of an iterator. 🔬This is a nightly-only experimental API. (`extend_one`)Extends a collection with exactly one element.#### fn extend_reserve(&mut self, additional: usize) 🔬This is a nightly-only experimental API. (`extend_one`)Reserves capacity in a collection for the given number of additional elements. #### fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self Creates a value from an iterator. #### fn hash<__H: Hasher>(&self, state: &mut__H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mutH)where    H: Hasher,    Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter.### impl Not for InputState #### fn not(self) -> Self Returns the complement of this set of flags. #### type Output = InputState The resulting type after applying the `!` operator.### impl Octal for InputState #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter.### impl Ord for InputState #### fn cmp(&self, other: &InputState) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere    Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere    Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere    Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &InputState) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason. #### fn partial_cmp(&self, other: &InputState) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn sub(self, other: Self) -> Self Returns the set difference of the two sets of flags. #### type Output = InputState The resulting type after applying the `-` operator.### impl SubAssign<InputState> for InputState #### fn sub_assign(&mut self, other: Self) Disables all flags enabled in the set. ### impl UpperHex for InputState #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter.### impl Copy for InputState ### impl Eq for InputState ### impl StructuralEq for InputState ### impl StructuralPartialEq for InputState Auto Trait Implementations --- ### impl RefUnwindSafe for InputState ### impl Send for InputState ### impl Sync for InputState ### impl Unpin for InputState ### impl UnwindSafe for InputState Blanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere    T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<Key> DataKey for Keywhere    Key: 'static + Clone + Debug + PartialEq<Key> + Eq, Struct kas_theme::MultiThemeBuilder === ``` pub struct MultiThemeBuilder<DS> { /* private fields */ } ``` Builder for `MultiTheme` Construct via `MultiTheme::builder`. Implementations --- ### impl<DS> MultiThemeBuilder<DS#### pub fn add<S: ToString, T>(self, name: S, theme: T) -> Selfwhere    DS: DrawSharedImpl,    T: ThemeDst<DS> + 'static, Add a theme #### pub fn try_build(self) -> Option<MultiTheme<DS>Build Returns `None` if no themes were added. #### pub fn build(self) -> MultiTheme<DSBuild Panics if no themes were added. Auto Trait Implementations --- ### impl<DS> !RefUnwindSafe for MultiThemeBuilder<DS### impl<DS> !Send for MultiThemeBuilder<DS### impl<DS> !Sync for MultiThemeBuilder<DS### impl<DS> Unpin for MultiThemeBuilder<DS### impl<DS> !UnwindSafe for MultiThemeBuilder<DSBlanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct kas_theme::RasterConfig === ``` pub struct RasterConfig { pub mode: u8, pub scale_steps: u8, pub subpixel_threshold: u8, pub subpixel_steps: u8, } ``` Font raster settings These are not used by the theme, but passed through to the rendering backend. Fields --- `mode: u8``scale_steps: u8`Scale multiplier for fixed-precision This should be an integer `n >= 1`, e.g. `n = 4` provides four sub-pixel steps of precision. It is also required that `n * h < (1 << 24)` where `h` is the text height in pixels. `subpixel_threshold: u8`Subpixel positioning threshold Text with height `h` less than this threshold will use sub-pixel positioning, which should make letter spacing more accurate for small fonts (though exact behaviour depends on the font; it may be worse). This may make rendering worse by breaking pixel alignment. Note: this feature may not be available, depending on the backend and the mode. See also sub-pixel positioning steps. `subpixel_steps: u8`Subpixel steps The number of sub-pixel positioning steps to use. 1 is the minimum and equivalent to no sub-pixel positioning. 16 is the maximum. Note that since this applies to horizontal and vertical positioning, the maximum number of rastered glyphs is multiplied by the square of this value, though this maxmimum may not be reached in practice. Since this feature is usually only used for small fonts this likely acceptable. Trait Implementations --- ### impl Clone for RasterConfig #### fn clone(&self) -> RasterConfig Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where    __D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. #### fn eq(&self, other: &RasterConfig) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason. #### fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where    __S: Serializer, Serialize this value into the given Serde serializer. ### impl StructuralEq for RasterConfig ### impl StructuralPartialEq for RasterConfig Auto Trait Implementations --- ### impl RefUnwindSafe for RasterConfig ### impl Send for RasterConfig ### impl Sync for RasterConfig ### impl Unpin for RasterConfig ### impl UnwindSafe for RasterConfig Blanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere    T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<Key> DataKey for Keywhere    Key: 'static + Clone + Debug + PartialEq<Key> + Eq, ### impl<T> DeserializeOwned for Twhere    T: for<'de> Deserialize<'de>, Struct kas_theme::SimpleTheme === ``` pub struct SimpleTheme { /* private fields */ } ``` A simple theme Implementations --- ### impl SimpleTheme #### pub fn new() -> Self Construct #### pub fn with_font_size(self, pt_size: f32) -> Self Set font size Units: Points per Em (standard unit of font size) #### pub fn with_colours(self, name: &str) -> Self Set the colour scheme If no scheme by this name is found the scheme is left unchanged. #### pub fn set_colors(&mut self, cols: ColorsLinear) -> TkAction Trait Implementations --- ### impl Clone for SimpleTheme #### fn clone(&self) -> SimpleTheme Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### type Config = Config The associated config type#### type Window = Window<<DS as DrawSharedImpl>::DrawThe associated `Window` implementation.#### type Draw<'a> = DrawHandle<'a, DSThe associated [`ThemeDraw`] implementation.#### fn config(&self) -> Cow<'_, Self::ConfigGet current configuration#### fn apply_config(&mut self, config: &Self::Config) -> TkAction Apply/set the passed config#### fn init(&mut self, _shared: &mut SharedState<DS>) Theme initialisation Construct per-window storage Update a window created by `Theme::new_window` Background colour### impl ThemeControl for SimpleTheme #### fn set_font_size(&mut self, pt_size: f32) -> TkAction Set font size Change the colour scheme Switch the theme Read moreAuto Trait Implementations --- ### impl RefUnwindSafe for SimpleTheme ### impl !Send for SimpleTheme ### impl !Sync for SimpleTheme ### impl Unpin for SimpleTheme ### impl UnwindSafe for SimpleTheme Blanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere    T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum kas_theme::MaybeBoxed === ``` pub enum MaybeBoxed<'a, B: 'a + ?Sized> { Borrowed(&'aB), Boxed(Box<B>), } ``` An optionally-owning (boxed) reference This is related but not identical to `Cow`. Variants --- ### Borrowed(&'aB) ### Boxed(Box<B>) Trait Implementations --- ### impl<T: ?Sized> AsRef<T> for MaybeBoxed<'_, T#### fn as_ref(&self) -> &T Converts this type into a shared reference of the (usually inferred) input type.Auto Trait Implementations --- ### impl<'a, B: ?Sized> RefUnwindSafe for MaybeBoxed<'a, B>where    B: RefUnwindSafe, ### impl<'a, B: ?Sized> Send for MaybeBoxed<'a, B>where    B: Send + Sync, ### impl<'a, B: ?Sized> Sync for MaybeBoxed<'a, B>where    B: Sync, ### impl<'a, B: ?Sized> Unpin for MaybeBoxed<'a, B### impl<'a, B: ?Sized> UnwindSafe for MaybeBoxed<'a, B>where    B: UnwindSafe + RefUnwindSafe, Blanket Implementations --- ### impl<T> Any for Twhere    T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. #### fn cast(self) -> T Cast from `Self` to `T` #### fn try_cast_approx(self) -> Result<T, ErrorTry approximate conversion from `Self` to `T` Cast approximately from `Self` to `T` #### fn cast_trunc(self) -> T Cast to integer, truncating Cast to the nearest integer Cast the floor to an integer Cast the ceiling to an integer const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Trait kas_theme::ThemeConfig === ``` pub trait ThemeConfig: Clone + Debug + 'static + for<'a> Deserialize<'a> + Serialize { fn is_dirty(&self) -> bool; fn apply_startup(&self); fn raster(&self) -> &RasterConfig; } ``` Requirements on theme config (with `config` feature) Required Methods --- #### fn is_dirty(&self) -> bool Has the config ever been updated? #### fn apply_startup(&self) Apply startup effects #### fn raster(&self) -> &RasterConfig Get raster config Implementors --- ### impl ThemeConfig for Config Trait kas_theme::ThemeDst === ``` pub trait ThemeDst<DS: DrawSharedImpl>: ThemeControl { fn config(&self) -> MaybeBoxed<'_, dyn Any>; fn apply_config(&mut self, config: &dyn Any) -> TkAction; fn init(&mut self, shared: &mut SharedState<DS>); fn new_window(&self, dpi_factor: f32) -> Box<dyn Window>; fn update_window(&self, window: &mut dyn Window, dpi_factor: f32); fn draw<'a>(         &'a self,         draw: DrawIface<'a, DS>,         ev: &'a mut EventState,         window: &'a mut dyn Window     ) -> Box<dyn ThemeDraw + 'a>; fn clear_color(&self) -> Rgba; } ``` As `Theme`, but without associated types This trait is implemented automatically for all implementations of `Theme`. It is intended only for use where a less parameterised trait is required. Required Methods --- #### fn config(&self) -> MaybeBoxed<'_, dyn AnyGet current configuration #### fn apply_config(&mut self, config: &dyn Any) -> TkAction Apply/set the passed config #### fn init(&mut self, shared: &mut SharedState<DS>) Theme initialisation See also `Theme::init`. #### fn new_window(&self, dpi_factor: f32) -> Box<dyn WindowConstruct per-window storage See also `Theme::new_window`. #### fn update_window(&self, window: &mut dyn Window, dpi_factor: f32) Update a window created by `Theme::new_window` See also `Theme::update_window`. #### fn draw<'a>(    &'a self,    draw: DrawIface<'a, DS>,    ev: &'a mut EventState,    window: &'a mut dyn Window) -> Box<dyn ThemeDraw + 'a#### fn clear_color(&self) -> Rgba Background colour See also `Theme::clear_color`. Implementors --- ### impl<DS: DrawSharedImpl, T: Theme<DS>> ThemeDst<DS> for T Trait kas_theme::Window === ``` pub trait Window: 'static { fn size(&self) -> &dyn ThemeSize; fn as_any_mut(&mut self) -> &mut dyn Any; } ``` Per-window storage for the theme Constructed via `Theme::new_window`. The main reason for this separation is to allow proper handling of multi-window applications across screens with differing DPIs. Required Methods --- #### fn size(&self) -> &dyn ThemeSize Construct a [`ThemeSize`] object #### fn as_any_mut(&mut self) -> &mut dyn Any Trait Implementations --- ### impl Window for Box<dyn Window#### fn size(&self) -> &dyn ThemeSize Construct a [`ThemeSize`] object#### fn as_any_mut(&mut self) -> &mut dyn Any Implementations on Foreign Types --- ### impl Window for Box<dyn Window#### fn size(&self) -> &dyn ThemeSize #### fn as_any_mut(&mut self) -> &mut dyn Any ### impl<T: Window> Window for Box<T#### fn size(&self) -> &dyn ThemeSize #### fn as_any_mut(&mut self) -> &mut dyn Any Implementors --- Type Definition kas_theme::ColorsLinear === ``` pub type ColorsLinear = Colors<Rgba>; ``` `Colors` parameterised for graphics usage Implementations --- ### impl ColorsLinear #### pub fn adjust_for_state(col: Rgba, state: InputState) -> Rgba Adjust a colour depending on state #### pub fn from_bg(    &self,    bg: Background,    state: InputState,    force_accent: bool) -> Rgba Extract from `Background` #### pub fn from_edit_bg(&self, bg: Background, state: InputState) -> Rgba Get colour of a text area, depending on state #### pub fn nav_region(&self, state: InputState) -> Option<RgbaGet colour for navigation highlight region, if any #### pub fn accent_state(&self, state: InputState) -> Rgba Get accent colour, adjusted for state #### pub fn accent_soft_state(&self, state: InputState) -> Rgba Get soft accent colour, adjusted for state #### pub fn check_mark_state(&self, state: InputState) -> Rgba Get colour for a check box mark, depending on state #### pub fn menu_entry(&self, state: InputState) -> Option<RgbaGet background highlight colour of a menu entry, if any #### pub fn text_over(&self, bg: Rgba) -> Rgba Get appropriate text colour over the given background Trait Implementations --- ### impl Default for ColorsLinear #### fn default() -> Self Returns the “default value” for a type. #### fn from(col: ColorsSrgb) -> Self Converts to this type from the input type. Type Definition kas_theme::ColorsSrgb === ``` pub type ColorsSrgb = Colors<Rgba8Srgb>; ``` `Colors` parameterised for reading and writing using sRGB Implementations --- ### impl ColorsSrgb #### pub fn light() -> Self Default “light” scheme #### pub fn dark() -> Self Dark scheme #### pub fn blue() -> Self Blue scheme Trait Implementations --- ### impl Default for ColorsSrgb #### fn default() -> Self Returns the “default value” for a type. #### fn from(col: ColorsLinear) -> Self Converts to this type from the input type.
ggetho
cran
R
Package ‘ggetho’ November 24, 2022 Title Visualisation of High-Throughput Behavioural (i.e. Ethomics) Data Date 2022-11-17 Version 0.3.7 Description Extension of 'ggplot2' providing layers, scales and preprocessing functions useful to represent behavioural variables that are recorded over multiple animals and days. This package is part of the 'rethomics' framework <https://rethomics.github.io/>. Depends R (>= 3.00), ggplot2, behavr Imports data.table, stringr, scales, labeling, rlang, cli Suggests testthat, covr, knitr, zeitgebr License GPL-3 Encoding UTF-8 URL https://github.com/rethomics/ggetho BugReports https://github.com/rethomics/ggetho/issues RoxygenNote 7.2.2 NeedsCompilation no Author <NAME> [aut, cre] Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2022-11-24 09:40:08 UTC R topics documented: geom_pea... 2 ggeth... 4 ggperi... 6 ggspectr... 8 id_labelle... 9 stat_bar_tile_eth... 10 stat_ld_annotation... 12 stat_pop_eth... 14 time_scale... 17 geom_peak Visualise peaks in a power spectrum or periodogram Description This function draws points on the x-y coordinates of selected peaks and write their (y) value on the bottom of the plot. Usage geom_peak( mapping = NULL, data = NULL, stat = "identity", position = "identity", ..., na.rm = TRUE, show.legend = NA, inherit.aes = TRUE, peak_rank = 1, conversion = hours ) Arguments mapping Set of aesthetic mappings created by aes(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping. data The data to be displayed in this layer. There are three options: If NULL, the default, the data is inherited from the plot data as specified in the call to ggplot(). A data.frame, or other object, will override the plot data. All objects will be fortified to produce a data frame. See fortify() for which variables will be created. A function will be called with a single argument, the plot data. The return value must be a data.frame, and will be used as the layer data. A function can be created from a formula (e.g. ~ head(.x, 10)). stat The statistical transformation to use on the data for this layer, either as a ggproto Geom subclass or as a string naming the stat stripped of the stat_ prefix (e.g. "count" rather than "stat_count") position Position adjustment, either as a string naming the adjustment (e.g. "jitter" to use position_jitter), or the result of a call to a position adjustment function. Use the latter if you need to change the settings of the adjustment. ... Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat. na.rm If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed. show.legend logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display. inherit.aes If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn’t inherit behaviour from the default plot specification, e.g. borders(). peak_rank numerical vector specifying the rank(s) of peak(s) to draw conversion function to convert values of x to a specific unit. The default, hours, will write x (time) in decimal hours. Details In the input data, peaks are encoded as an additional column/aesthetic with values corresponding to peak ranks (and 0 when the point is not a peak). In other word, the mapping must provide x, y and peak. Only peaks matching peak_rank will be drawn (see example). Value A ggplot layer. References • The relevant rethomic tutorial section See Also • ggperio to create a periodogram • zeitgebr::find_peaks to automatically add a peak column on periodogram data Other layers: stat_bar_tile_etho(), stat_ld_annotations(), stat_pop_etho() Examples # We make a data frame by hand with five rows # There are two peaks: in position 4 and 2 df <- data.frame(x = hours(1:5), y = c(1, 2, 0, 4, 1), peak = c(0, 2, 0, 1, 0)) # We draw the plot as a line pl <- ggplot(df, aes(x, y, peak = peak)) + geom_line() + scale_x_hours() pl # Now we could add the peak values as an extra layer: # The first peak pl + geom_peak() # The first ans second peak pl + geom_peak(peak_rank = 1:2) # The second only pl + geom_peak(peak_rank = 2) # Just like with other geoms, # we can change colour, size, alpha, shape, ... : pl + geom_peak(colour = "red", size = 10, alpha = .5, shape = 20) ## In the context of circadian analysis, # Using the zeitgebr package: require(zeitgebr) # We make toy data metadata <- data.table(id = sprintf("toy_experiment|%02d", 1:40), region_id = 1:40, condition = c("A", "B"), sex = c("M", "M", "F", "F")) dt <- toy_activity_data(metadata, seed = 107) # We shift period of the group "A" by 0.01 dt[, t := ifelse(xmv(condition) == "A", t, t * 1.01)] # We compute a periodogram for each individual per_dt <- periodogram(moving, dt, FUN = chi_sq_periodogram) per_dt <- find_peaks(per_dt) out <- ggperio(per_dt, aes(y = power - signif_threshold, colour = condition, peak = peak)) + stat_pop_etho() + facet_wrap( ~ id, labeller = id_labeller) out out + geom_peak(colour="black") ggetho Prepare a ggplot object to represent behavioural data Description This function summarises a variable of interest (y or z axis) in order to subsequently represent it over time (x axis) (using layers provided either by ggplot2 or ggetho). Usage ggetho( data, mapping, summary_FUN = mean, summary_time_window = mins(30), time_wrap = NULL, time_offset = 0, multiplot = NULL, multiplot_period = hours(24), ... ) Arguments data behavr::behavr table containing the data and metadata mapping default list of aesthetic mappings to use for plot summary_FUN method (function) used to summarise variable over time (typically, the mean) summary_time_window width (in seconds) of the time window to compute a summary on time_wrap time (in seconds) used to wrap the data (see details) time_offset time offset (i.e. phase, in seconds) when using time_wrap multiplot integer, greater than two, or NULL, the default (see details) multiplot_period the duration of the period when mutiplotting (see details) ... additional arguments to be passed to ggplot2::ggplot() Details time_wrap is typically used to express time relatively to the start of the the day. In other words, it can help be used to pull all days together in one representative day. In this case, time_wrap = hours(24). Instead of representing data from the start of the day, it can be done from any offset, using time_offset. For instance, time_offset = hours(12) puts the circadian reference (ZT0) in the middle of the plot. Multiplotting is a generalisation of double-plotting, triple-plotting... This type or representation is useful to understand periodic behaviours. When multiplot is not NULL, data is repeated as many time as its value, along the x axis. The y axis is then the period (typically the day) onset. It is possible to set duration of the period, which is typically 24 h to arbitrary values using the multiplot_period argument. Value An initial ggplot object that can be further edited. References • The relevant rethomic tutorial section See Also • stat_pop_etho to show population trend by aggregating individuals over time • stat_tile_etho to show variable of interest as colour intensity • stat_ld_annotations to show light and dark phases on the plot Examples # We start by making a dataset with 4 animals metadata <- data.table(id = sprintf("toy_experiment|%02d", 1:4), condition = c("A", "B")) dt <- toy_activity_data(metadata, 3) # We build a plot object with **nothing inside** (just the axis) # we want to show proportion of time sleeping on the y axis: pl <- ggetho(dt, aes(y = asleep)) pl # Sometimes, the variable of interest in not on the y axis, but on z axis (colour scale). # When we do not provide a y axis, # ggetho will make an ID fo each animal and display them on separate rows ## Not run: pl <- ggetho(dt, aes(z = asleep)) pl # this one is the same type, but it groups the animals by condition pl <- ggetho(dt, aes(z = asleep, y = condition)) pl # sorting with paste pl <- ggetho(dt, aes(z = asleep,y = paste(condition, id))) pl # we want to summarise (wrap) data along a circadian day: pl <- ggetho(dt, aes(y = asleep), time_wrap = hours(24)) pl # double-plotted actogram: pl <- ggetho(dt, aes(z = moving), multiplot = 2, multiplot_period = hours(24)) pl # then use `+ stat_tile_etho()` , or `+ stat_bar_tile_etho()` ## End(Not run) ggperio Prepare a ggplot object to represent periodogram data Description This function summarises periodogram data (containing periodograms of multiple individual), to show period on the x axis, and power (or equivalent) on the y axis. Usage ggperio(data, mapping = aes(x = period, y = power), ...) Arguments data behavr::behavr table containing the data and metadata mapping default list of aesthetic mappings to use for plot ... additional arguments to be passed to ggplot2::ggplot() Value An initial ggplot object that can be further edited. References • The relevant rethomic tutorial section See Also • ggetho to plot time series • geom_peak to draw peaks on a periodogram • zeitgebr::periodogram to compute periodograms in a first place • ggspectro to visualise spectrograms Examples require(zeitgebr) # We make toy data metadata <- data.table(id = sprintf("toy_experiment|%02d", 1:40), region_id = 1:40, condition = c("A", "B"), sex = c("M", "M", "F", "F")) dt <- toy_activity_data(metadata, seed = 107) # We shift period of the group "A" by 0.01 dt[, t := ifelse(xmv(condition) == "A", t, t * 1.01)] # We compute a periodogram for each individual per_dt <- periodogram(moving, dt, FUN = chi_sq_periodogram) # Then we display them as an average out <- ggperio(per_dt, aes(y = power, colour = condition)) out + stat_pop_etho() out <- ggperio(per_dt, aes(y = power - signif_threshold, colour = condition)) out + stat_pop_etho() out <- ggperio(per_dt, aes(y = power - signif_threshold, colour = condition)) out + stat_pop_etho() + facet_wrap( ~ id, labeller = id_labeller) ggspectro Prepare a ggplot object to represent spectrogram data Description This function summarises spectrogram data (containing spectrograms of multiple individual), to show period on the y axis, time on the x axis and power on the z axis (e.g. as a colour). Usage ggspectro( data, mapping = aes(), summary_FUN = mean, summary_time_window = mins(30), time_wrap = NULL, time_offset = 0, ... ) Arguments data behavr::behavr table containing the data and metadata mapping default list of aesthetic mappings to use for plot summary_FUN method (function) used to summarise variable over time (typically, the mean) summary_time_window width (in seconds) of the time window to compute a summary on time_wrap time (in seconds) used to wrap the data (see details) time_offset time offset (i.e. phase, in seconds) when using time_wrap ... additional arguments to be passed to ggplot2::ggplot() Value An initial ggplot object that can be further edited. References • The relevant rethomic tutorial section See Also • ggperio to visualise periodograms Examples library(zeitgebr) data(dams_sample) dt <- dams_sample spect_dt <- spectrogram(activity, dt) pl <- ggspectro(spect_dt,time_wrap = hours(24)) + stat_tile_etho() + scale_y_hours(log=TRUE) + stat_ld_annotations(ld_colours = c("grey","black")) pl + facet_grid(period_group ~ .) pl + facet_wrap(~ id) id_labeller A facet labeller for id Description This function returns a ggplot2::labeller that displays the id on several lines to improve readability. Usage id_labeller(labels) Arguments labels Data frame of labels. Usually contains only one element, but faceting over mul- tiple factors entails multiple label variables. See Also ggplot2::labeller, to make your own labellers Examples library(behavr) metadata <- data.frame( id = sprintf("2017-09-01 20:00:12|toy_experiment_a_very_long_name|%02d", 1:20), condition = c("A", "B")) dt <- toy_activity_data(metadata, duration = hours(2)) pl <- ggetho(dt, aes(y = asleep)) + stat_pop_etho() ## Without labelling pl + facet_wrap( ~ id) ## With labeller pl + facet_wrap( ~ id, labeller = id_labeller) stat_bar_tile_etho Display a variable of interest either as a colour intensity value or as a bar height Description These functions show the temporal trend (time on the x axis) of a variable of interest (z axis) as either colour intensity (stat_tile_etho) or using the hight of the tiles (stat_bar_tile_etho). In both cases, the y axis is a discrete variable such as a treatment or the id of individuals. Usage stat_bar_tile_etho( mapping = NULL, data = NULL, geom = "bar_tile", position = "identity", ..., method = mean, method.args = list(), na.rm = FALSE, show.legend = NA, inherit.aes = TRUE ) stat_tile_etho( mapping = NULL, data = NULL, geom = "raster", position = "identity", ..., method = mean, method.args = list(), na.rm = FALSE, show.legend = NA, inherit.aes = TRUE ) Arguments mapping Set of aesthetic mappings created by aes(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping. data The data to be displayed in this layer. There are three options: If NULL, the default, the data is inherited from the plot data as specified in the call to ggplot(). A data.frame, or other object, will override the plot data. All objects will be fortified to produce a data frame. See fortify() for which variables will be created. A function will be called with a single argument, the plot data. The return value must be a data.frame, and will be used as the layer data. A function can be created from a formula (e.g. ~ head(.x, 10)). geom The geometric object to use to display the data, either as a ggproto Geom sub- class or as a string naming the geom stripped of the geom_ prefix (e.g. "point" rather than "geom_point") position Position adjustment, either as a string naming the adjustment (e.g. "jitter" to use position_jitter), or the result of a call to a position adjustment function. Use the latter if you need to change the settings of the adjustment. ... Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat. method function used to compute the aggregate, when/if grouping several individuals on the same row. The default is fucntion is mean. median, min, max are examples of alternatives. method.args List of additional arguments passed on to the modelling function defined by method. na.rm If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed. show.legend logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display. inherit.aes If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn’t inherit behaviour from the default plot specification, e.g. borders(). Value A ggplot layer. • The relevant rethomic tutorial section See Also • ggetho to generate a plot object • stat_pop_etho to show population trend by aggregating individuals over time • stat_ld_annotations to show light and dark phases on the plot Other layers: geom_peak(), stat_ld_annotations(), stat_pop_etho() Examples # We start by making a to dataset with 20 animals metadata <- data.frame(id = sprintf("toy_experiment | %02d", 1:20), age = c(1, 5, 10, 20), condition = c("A", "B")) print(metadata) dt <- toy_activity_data(metadata, 3) # We build a plot object pl <- ggetho(dt, aes(z = asleep)) # A standard plot one row per animal: pl + stat_tile_etho() # We can also group animals per condition and calculate the average sleep pl <- ggetho(dt, aes(z = asleep, y = condition)) pl + stat_tile_etho() # We can sort by adding condition AND id on the y axis: pl <- ggetho(dt, aes(z = asleep, y = interaction(id, condition))) pl + stat_tile_etho() # Same if we want to sort by age pl <- ggetho(dt, aes(z = asleep, y = interaction(id, age))) pl + stat_tile_etho() # Instead, of the average, maybe we want to show the highest (max) # posible value of sleep for any time point pl + stat_tile_etho(method = max) # We can also use stat_bar_tile as an alternative pl + stat_bar_tile_etho() stat_ld_annotations Compute and display light/dark annotations onto a plot object Description This function is used to show light and dark (L and D) phases as boxes on top a plot. Usage stat_ld_annotations( mapping = NULL, data = NULL, position = "identity", ld_colours = c("white", "black"), ypos = "bottom", height = 0.03, period = hours(24), phase = 0, l_duration = hours(12), outline = "black", x_limits = c(NA, NA), ..., na.rm = FALSE, show.legend = FALSE, inherit.aes = TRUE ) Arguments mapping Set of aesthetic mappings created by aes(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping. data The data to be displayed in this layer. There are three options: If NULL, the default, the data is inherited from the plot data as specified in the call to ggplot(). A data.frame, or other object, will override the plot data. All objects will be fortified to produce a data frame. See fortify() for which variables will be created. A function will be called with a single argument, the plot data. The return value must be a data.frame, and will be used as the layer data. A function can be created from a formula (e.g. ~ head(.x, 10)). position Position adjustment, either as a string naming the adjustment (e.g. "jitter" to use position_jitter), or the result of a call to a position adjustment function. Use the latter if you need to change the settings of the adjustment. ld_colours character vector of length two setting the colours for light and dark phases, re- spectively. The default is c("white", "black"). ypos position and height of the annotation on the y axis. It can be either "top" or "bottom". The default, "bottom" will put the labels below any data. height relative height of the rectangles. The default is 3 percent (0.03). period, phase, l_duration period, phase and duration of the L phase (in seconds) of the LD cycle. outline colour of the border of the rectangles. A value of NA draws no border. x_limits numerical vector of length 2 for the start and end of the annotations (in seconds). The default, c(NA, NA), uses the full range of the plotted data. ... Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat. na.rm If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed. show.legend logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display. inherit.aes If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn’t inherit behaviour from the default plot specification, e.g. borders(). Value A ggplot layer. References • The relevant rethomic tutorial section See Also • ggetho to generate a plot object Other layers: geom_peak(), stat_bar_tile_etho(), stat_pop_etho() Examples library(behavr) # We start by making a to dataset with 4 animals metadata <- data.frame(id = sprintf("toy_experiment | %02d", 1:4), condition = c("A", "B")) dt <- toy_activity_data(metadata, 3) # We build a plot object pl <- ggetho(dt, aes(y = asleep)) + stat_pop_etho() pl + stat_ld_annotations() # We can also put the annotations in the background: pl <- ggetho(dt, aes(y = asleep)) + stat_ld_annotations(outline = NA) + stat_pop_etho() pl # Different colours (e.g. DD) pl + stat_ld_annotations(ld_colour = c("grey", "black")) # Shorter period pl + stat_ld_annotations(period = hours(22), phase = hours(3)) # On a tile plot: pl <- ggetho(dt, aes(z = asleep)) + stat_tile_etho() pl + stat_ld_annotations() stat_pop_etho Compute and display a population aggregate for a variable of interest Description This function displays the temporal (time on the x axis) trend of variable of interest, on the y axis as a line with confidence interval as a shaded area. Usage stat_pop_etho( mapping = NULL, data = NULL, geom = "smooth", position = "identity", ..., method = mean_se, method.args = list(), show.legend = NA, inherit.aes = TRUE ) Arguments mapping Set of aesthetic mappings created by aes(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping. data The data to be displayed in this layer. There are three options: If NULL, the default, the data is inherited from the plot data as specified in the call to ggplot(). A data.frame, or other object, will override the plot data. All objects will be fortified to produce a data frame. See fortify() for which variables will be created. A function will be called with a single argument, the plot data. The return value must be a data.frame, and will be used as the layer data. A function can be created from a formula (e.g. ~ head(.x, 10)). geom The geometric object to use to display the data, either as a ggproto Geom sub- class or as a string naming the geom stripped of the geom_ prefix (e.g. "point" rather than "geom_point") position Position adjustment, either as a string naming the adjustment (e.g. "jitter" to use position_jitter), or the result of a call to a position adjustment function. Use the latter if you need to change the settings of the adjustment. ... Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat. method function used to compute the aggregate and confidence intervals. It should return (y, ymin and ymax). The default is ggplot2::mean_se, which computes the mean + or - standard error. ggplot2::mean_cl_boot can be used instead to generate bootstrap confidence interval instead. method.args List of additional arguments passed on to the modelling function defined by method. show.legend logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display. inherit.aes If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn’t inherit behaviour from the default plot specification, e.g. borders(). Value A ggplot layer. References • The relevant rethomic tutorial section See Also • ggetho to generate a plot object • stat_tile_etho to show variable of interest as colour intensity • stat_ld_annotations to show light and dark phases on the plot • ggplot2::stat_smooth to understand how to change the type of confidence interval, line colour and so forth Other layers: geom_peak(), stat_bar_tile_etho(), stat_ld_annotations() Examples library(behavr) metadata <- data.frame(id = sprintf("toy_experiment | %02d", 1:4), age=c(1, 5, 10, 20), condition=c("A", "B")) dt <- toy_activity_data(metadata, 3) # We build a plot object pl <- ggetho(dt, aes(y = asleep)) # A standard plot of the whole population: pl + stat_pop_etho() # We can also split by condition, and display the two population on different facets: pl + stat_pop_etho() + facet_grid(condition ~ .) ## Not run: # Instead, we can use different colour for separate conditions: pl <- ggetho(dt, aes(y = asleep, colour = condition)) pl + stat_pop_etho() # Sometimes, we also have numeric condition (e.g. age) pl <- ggetho(dt, aes(y = asleep, colour = age)) pl + stat_pop_etho() # We could want to aggregate several days of data to one circadian day (i.e. time wrapping) # here, we also plot the invert of moving (!moving) pl <- ggetho(dt, aes(y = !moving), time_wrap = hours(24)) pl + stat_pop_etho() ## End(Not run) time_scales Scales for durations Description A set of scales used to represent experimental durations. Usage scale_x_days( name = "Time", breaks = waiver(), minor_breaks = waiver(), labels = waiver(), limits = NULL, expand = waiver(), oob = scales::censor, na.value = NA_real_, position = "bottom", time_wrap = NULL, unit = "day", log = FALSE ) scale_y_days( name = "Time", breaks = waiver(), minor_breaks = waiver(), labels = waiver(), limits = NULL, expand = waiver(), oob = scales::censor, na.value = NA_real_, position = "left", time_wrap = NULL, unit = "day", log = FALSE ) scale_x_hours( name = "Time", breaks = waiver(), minor_breaks = waiver(), labels = waiver(), limits = NULL, expand = waiver(), oob = scales::censor, 18 time_scales na.value = NA_real_, position = "bottom", time_wrap = NULL, unit = "h", log = FALSE ) scale_y_hours( name = "Time", breaks = waiver(), minor_breaks = waiver(), labels = waiver(), limits = NULL, expand = waiver(), oob = scales::censor, na.value = NA_real_, position = "left", time_wrap = NULL, unit = "h", log = FALSE ) scale_x_seconds( name = "Time", breaks = waiver(), minor_breaks = waiver(), labels = waiver(), limits = NULL, expand = waiver(), oob = scales::censor, na.value = NA_real_, position = "bottom", time_wrap = NULL, unit = "s", log = FALSE ) scale_y_seconds( name = "Time", breaks = waiver(), minor_breaks = waiver(), labels = waiver(), limits = NULL, expand = waiver(), oob = scales::censor, na.value = NA_real_, position = "left", time_wrap = NULL, unit = "s", log = FALSE ) Arguments name The name of the scale. Used as the axis or legend title. If waiver(), the default, the name of the scale is taken from the first mapping used for that aesthetic. If NULL, the legend title will be omitted. breaks One of: • NULL for no breaks • waiver() for the breaks specified by date_breaks • A Date/POSIXct vector giving positions of breaks • A function that takes the limits as input and returns breaks as output minor_breaks One of: • NULL for no breaks • waiver() for the breaks specified by date_minor_breaks • A Date/POSIXct vector giving positions of minor breaks • A function that takes the limits as input and returns minor breaks as output labels One of: • NULL for no labels • waiver() for the default labels computed by the transformation object • A character vector giving labels (must be same length as breaks) • An expression vector (must be the same length as breaks). See ?plotmath for details. • A function that takes the breaks as input and returns labels as output. Also accepts rlang lambda function notation. limits One of: • NULL to use the default scale range • A numeric vector of length two providing limits of the scale. Use NA to refer to the existing minimum or maximum • A function that accepts the existing (automatic) limits and returns new limits. Also accepts rlang lambda function notation. Note that setting limits on positional scales will remove data outside of the limits. If the purpose is to zoom, use the limit argument in the coordinate system (see coord_cartesian()). expand Vector of range expansion constants used to add some padding around the data, to ensure that they are placed some distance away from the axes. Use the con- venience function ggplot2::expand_scale() to generate the values for the expand argument. The defaults are to expand the scale by 5\ 0.6 units on each side for discrete variables. oob One of: • Function that handles limits outside of the scale limits (out of bounds). Also accepts rlang lambda function notation. • The default (scales::censor()) replaces out of bounds values with NA. • scales::squish() for squishing out of bounds values into range. • scales::squish_infinite() for squishing infinite values into range. na.value Missing values will be replaced with this value. position For position scales, The position of the axis. left or right for y axes, top or bottom for x axes. time_wrap duration (in seconds) used to wrap the labels of the time axis unit the name of unit (string) to be used in the label (e.g. one could use "second" instead of "s") log logical, whether axis should be on a log-transformed Details time_wrap is useful, for instance, to express time within a day (ZT), instead of absolute time. Value A ggplot scale. References • The relevant rethomic tutorial section See Also • ggetho to generate a plot object • ggplot2::scale_x_continuous, the defaut ggplot scale, to understand limits, breaks, labels and name Examples # We generate some data metadata <- data.frame(id = sprintf("toy_experiment | %02d", 1:20), condition = c("A","B")) dt <- toy_activity_data(metadata, 3) # Then, a simple plot pl <- ggetho(dt, aes(y = asleep)) + stat_pop_etho() pl + scale_x_hours(breaks = days(c(1, 2))) pl + scale_x_hours() pl + scale_x_days(breaks = days(c(1, 2))) pl + scale_x_days() # To express time modulus `time_wrap` # e.g. time n the day pl + scale_x_hours(time_wrap = hours(24)) + coord_cartesian(xlim=c(0, days(2))) # On a shorter time scale pl <- ggetho(dt[t < hours(5)], aes(z = asleep)) + stat_tile_etho() time_scales 21 pl + scale_x_hours() pl + scale_x_hours(breaks = hours(1:4)) pl + scale_x_seconds(breaks = hours(1:4))
oceanspy
readthedoc
Unknown
## OceanDataset ### Import ### Attributes ### Set ### Methods ### Shortcuts ## Opening ## Subsampling ## Computing ### Smart-name Computed variables are dynamically named. Names depend on input and operation. ### Fixed-name Computed variables have a hard-coded name. ## Plotting ## Animating ## Utilities ## LLC-transformation ### Class ## Using Git and GitHub Git is the distributed version control system used to develop OceanSpy, while GitHub is the website hosting the `oceanspy/` repository. Go to GitHub: If you don’t have an account yet, Sign up. Otherwise, Sign in. * Go to the OceanSpy GitHub repository, then fork the project using the fork button. Move to your terminal: Set your GitHub username and email address using the following commands: > $ git config --global user.email "<EMAIL>" $ git config --global user.name "<NAME>" * Create a local clone: > $ git clone https://github.com/your_username_here/oceanspy.git * Move into your local clone directory, then set up a remote that points to the original: > $ cd oceanspy $ git remote add upstream https://github.com/hainegroup/oceanspy.git * Make a new branch from `upstream/main` : > $ git fetch upstream $ git checkout -b name_of_your_new_branch * Make sure that your new branch is up-to-date: > $ git merge upstream/main * Edit and/or add new files: * To stage files ready for a commit, use the following command: > $ git add . * To save changes, use the following command: > $ git commit -m "Message describing your edits" You can repeat `git add` and `git commit` multiple times before pushing the branch online. To push the branch online, use the following command: > $ git push -u origin name_of_your_branch Go to your OceanSpy fork on GitHub (https://github.com/your_username_here/oceanspy) and click on `Compare and Pull` . * Finally, click on `Send pull request` button to finish creating the pull request. ## Contributing to the Documentation The documentation is built with Sphinx and hosted by Read the Docs. It is written in reStructuredText. Move into the directory containing the documentation: > $ cd oceanspy/docs * In order to build the documentation, you need to create a Conda environment: > $ conda config --set channel_priority strict $ conda config --prepend channels conda-forge $ conda env create -f environment.yml * Activate the `ospy_docs` environment: > $ conda activate ospy_docs To build the documentation, use the following command: > $ make html If you want to start from a clean build, run `make clean` before `make html` . * You can find the HTML output in ``` oceanspy/docs/_build/html ``` . * ## Contributing to the Code Continuous Integration and Test Coverage links: If you are not already into your local clone directory, move there: > $ cd oceanspy * Create a test environment: > $ conda config --set channel_priority strict $ conda config --prepend channels conda-forge $ conda env create -f ci/environment.yml * Activate the test environment: > $ conda activate ospy_tests * Install OceanSpy in development mode: > $ pip install -e . * Make sure that the code is well tested by adding or improving tests in the `oceanspy/tests` repository. The python package used to test OceanSpy is pytest. Use the following command to run the test and measure the code coverage: > $ py.test oceanspy -v --cov=oceanspy --cov-config .coveragerc --cov-report term-missing * You can install and use pytest-html to produce a test report in html format. * Make sure that the code follows the style guide using the following commands: > $ conda install -c conda-forge pre-commit $ pre-commit run --all Note Run the following command to automatically run black and flake8 each time git commit is used: $ pre-commit install ## Deploying Update `HISTORY.rst` * Issue a new release on GitHub * The release on PyPI is done automatically * Merge the oceanspy-feedstock PR automatically opened by conda-forge <NAME> | | --- | <NAME> | <NAME> | <NAME> | <NAME> | <NAME> | <NAME> | Date: 2019-07-06 Categories: Tags: ## v0.3.4 (2022-04-03) Fixed issues 322 (PR 325), 324 (PR 328), 332 (PR 324), and 312 (PR 337). Additional grid files and removing (for the day) access to velocity LLC4320 data (PR 326) and update environment (PR 335). All by <NAME>. Add daily mean ecco dataset to catalog (PR 333) by <NAME>. ## v0.3.3 (2022-02-07) Update binder environment, add llc4320 forcing files to catalog, fixed issue243, replace deprecated cartopy property on notebook, Rename to Temp and S by, set persist as option via argument, all by <NAME>. Fix toml prettifier by <NAME>. ## v0.3.2 (2022-12-29) The new grid of the transformed dataset always has inner and outer as grid_coordinates. Improved documentation (api) for llc_rearrange and associated functions and classes. Unpins xesmf, improve functionality to `viewer_to_range()` . Improved (and fix) how vector fields are rotated from logical to geographical (lat-lon) coordinates. By <NAME>. ## v0.3.1 (2022-12-14) Fix tarball and wheel for new release (PR 295 by <NAME>). ## v0.3.0 (2022-12-12) Migrated master to main (PR 239 by <NAME>). Allow oceandataset to have dict-style access to variables (PR 262 by Wenrui Jiang). Enhancement of oceanspy functionality to sample ocean data defined on llc-grids (PRs 214, 268 and 272, 284 by <NAME>). Integration with Poseidon viewer in Sciserver (PR 284 by <NAME>). HyCOM data can be accessed through SciServer (PR 206 by <NAME>). Bug and other fixes (by <NAME>, <NAME>, <NAME>, <NAME> and <NAME>). See release notes for a full list of changes. ## v0.2.0 (2020-10-17) Integration with LLC grid such as the ECCO data and the family of LLC simulations, while preserving the original (native) grid. This allows for the calculation (closure) of budgets. This new functionality was developed by <NAME>. ## v0.1.0 (2019-07-06) Initial release published in the Journal of Open Source Software. <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> <NAME> contributed to the development.
My
cran
R
Package ‘My.stepwise’ October 12, 2022 Type Package Title Stepwise Variable Selection Procedures for Regression Analysis Version 0.1.0 Author International-Harvard Statistical Consulting Company <<EMAIL>> Maintainer <NAME> <<EMAIL>> Description The stepwise variable selection procedure (with iterations between the 'forward' and 'backward' steps) can be used to obtain the best candidate final regression model in regression analysis. All the relevant covariates are put on the 'variable list' to be selected. The significance levels for entry (SLE) and for stay (SLS) are usually set to 0.15 (or larger) for being conservative. Then, with the aid of substantive knowledge, the best candidate final regression model is identified manually by dropping the covariates with p value > 0.05 one at a time until all regression coefficients are significantly different from 0 at the chosen alpha level of 0.05. License GPL (>= 3) Encoding UTF-8 LazyData True Depends R (>= 3.3.3) Imports car, lmtest, survival, stats RoxygenNote 6.0.1 NeedsCompilation no Repository CRAN Date/Publication 2017-06-29 09:13:47 UTC R topics documented: My.stepwise.coxp... 2 My.stepwise.gl... 4 My.stepwise.l... 5 My.stepwise.coxph Stepwise Variable Selection Procedure for Cox’s Proportional Haz- ards Model and Cox’s Model Description This stepwise variable selection procedure (with iterations between the ’forward’ and ’backward’ steps) can be applied to obtain the best candidate final Cox’s proportional hazards model or Cox’s proportional hazards model with time-dependent covariates (called the Cox’s model). Usage My.stepwise.coxph(Time = NULL, T1 = NULL, T2 = NULL, Status = NULL, variable.list, in.variable = "NULL", data, sle = 0.15, sls = 0.15, vif.threshold = 999) Arguments Time The ’Time’ (time to an event) for the sepcified Cox’s proportional hazards model as in coxph(). T1 The ’T1’ (Start) of the long-form data for the sepcified Cox’s model as in coxph(). T2 The ’T2’ (Stop) of the long-form data for the sepcified Cox’s model as in coxph(). Status The ’Status’ (event indicator) for the sepcified Cox’s proportional hazards model as in coxph(). variable.list A list of covariates to be selected. in.variable A list of covariate(s) to be always included in the regression model. data The data to be analyzed. sle The chosen significance level for entry (SLE). sls The chosen significance level for stay (SLS). vif.threshold The chosen threshold value of variance inflating factor (VIF). Details The goal of regression analysis is to find one or a few parsimonious regression models that fit the observed data well for effect estimation and/or outcome prediction. To ensure a good quality of analysis, the model-fitting techniques for (1) variable selection, (2) goodness-of-fit assessment, and (3) regression diagnostics and remedies should be used in regression analysis. The stepwise variable selection procedure (with iterations between the ’forward’ and ’backward’ steps) is one of the best ways to obtaining the best candidate final regression model. All the bivariate significant and non-significant relevant covariates and some of their interaction terms (or moderators) are put on the ’variable list’ to be selected. The significance levels for entry (SLE) and for stay (SLS) are suggested to be set at 0.15 or larger for being conservative. Then, with the aid of substantive knowledge, the best candidate final regression model is identified manually by dropping the covariates with p value > 0.05 one at a time until all regression coefficients are significantly different from 0 at the chosen alpha level of 0.05. Since the statistical testing at each step of the stepwise variable selection procedure is conditioning on the other covariates in the regression model, the multiple testing problem is not of concern. Any discrepancy between the results of bivariate analysis and regression analysis is likely due to the confounding effects of uncontrolled covariates in bivariate analysis or the masking effects of intermediate variables (or mediators) in regression analysis. Value A model object representing the identified "Stepwise Final Model" with the values of variance inflating factor (VIF) for all included covarites is displayed. Warning The value of variance inflating factor (VIF) is bigger than 10 in continuous covariates or VIF is bigger than 2.5 in categorical covariates indicate the occurrence of multicollinearity problem among some of the covariates in the fitted regression model. See Also My.stepwise.lm My.stepwise.glm Examples ## Not run: The data 'lung' is available in the 'survival' package. ## End(Not run) if (requireNamespace("survival", quietly = TRUE)) { lung <- survival::lung } names(lung) dim(lung) my.data <- na.omit(lung) dim(my.data) head(my.data) my.data$status1 <- ifelse(my.data$status==2,1,0) my.variable.list <- c("inst", "age", "sex", "ph.ecog", "ph.karno", "pat.karno") My.stepwise.coxph(Time = "time", Status = "status1", variable.list = my.variable.list, in.variable = c("meal.cal", "wt.loss"), data = my.data) my.variable.list <- c("inst", "age", "sex", "ph.ecog", "ph.karno", "pat.karno", "meal.cal", "wt.loss") My.stepwise.coxph(Time = "time", Status = "status1", variable.list = my.variable.list, data = my.data, sle = 0.25, sls = 0.25) My.stepwise.glm Stepwise Variable Selection Procedure for Generalized Linear Models Description This stepwise variable selection procedure (with iterations between the ’forward’ and ’backward’ steps) can be applied to obtain the best candidate final generalized linear model. Usage My.stepwise.glm(Y, variable.list, in.variable = "NULL", data, sle = 0.15, sls = 0.15, myfamily, myoffset = "NULL") Arguments Y The response variable. variable.list A list of covariates to be selected. in.variable A list of covariate(s) to be always included in the regression model. data The data to be analyzed. sle The chosen significance level for entry (SLE). sls The chosen significance level for stay (SLS). myfamily The ’family’ for the sepcified generalized linear model as in glm(). myoffset The ’offset’ for the sepcified generalized linear model as in glm(). Details The goal of regression analysis is to find one or a few parsimonious regression models that fit the observed data well for effect estimation and/or outcome prediction. To ensure a good quality of analysis, the model-fitting techniques for (1) variable selection, (2) goodness-of-fit assessment, and (3) regression diagnostics and remedies should be used in regression analysis. The stepwise variable selection procedure (with iterations between the ’forward’ and ’backward’ steps) is one of the best ways to obtaining the best candidate final regression model. All the bivariate significant and non-significant relevant covariates and some of their interaction terms (or moderators) are put on the ’variable list’ to be selected. The significance levels for entry (SLE) and for stay (SLS) are suggested to be set at 0.15 or larger for being conservative. Then, with the aid of substantive knowledge, the best candidate final regression model is identified manually by dropping the covariates with p value > 0.05 one at a time until all regression coefficients are significantly different from 0 at the chosen alpha level of 0.05. Since the statistical testing at each step of the stepwise variable selection procedure is conditioning on the other covariates in the regression model, the multiple testing problem is not of concern. Any discrepancy between the results of bivariate analysis and regression analysis is likely due to the confounding effects of uncontrolled covariates in bivariate analysis or the masking effects of intermediate variables (or mediators) in regression analysis. Value A model object representing the identified "Stepwise Final Model" with the values of variance inflating factor (VIF) for all included covarites is displayed. Warning The value of variance inflating factor (VIF) is bigger than 10 in continuous covariates or VIF is bigger than 2.5 in categorical covariates indicate the occurrence of multicollinearity problem among some of the covariates in the fitted regression model. See Also My.stepwise.lm My.stepwise.coxph Examples data("iris") names(iris) my.data <- iris[51:150, ] my.data$Width <- (my.data$Sepal.Width + my.data$Petal.Width)/2 names(my.data) dim(my.data) my.data$Species1 <- ifelse(my.data$Species == "virginica", 1, 0) my.variable.list <- c("Sepal.Length", "Petal.Length") My.stepwise.glm(Y = "Species1", variable.list = my.variable.list, in.variable = c("Width"), data = my.data, myfamily = "binomial") my.variable.list <- c("Sepal.Length", "Sepal.Width", "Width") My.stepwise.glm(Y = "Species1", variable.list = my.variable.list, data = my.data, sle = 0.25, sls = 0.25, myfamily = "binomial") My.stepwise.lm Stepwise Variable Selection Procedure for Linear Regression Model Description This stepwise variable selection procedure (with iterations between the ’forward’ and ’backward’ steps) can be applied to obtain the best candidate final linear regression model. Usage My.stepwise.lm(Y, variable.list, in.variable = "NULL", data, sle = 0.15, sls = 0.15) Arguments Y The response variable. variable.list A list of covariates to be selected. in.variable A list of covariate(s) to be always included in the regression model. data The data to be analyzed. sle The chosen significance level for entry (SLE). sls The chosen significance level for stay (SLS). Details The goal of regression analysis is to find one or a few parsimonious regression models that fit the observed data well for effect estimation and/or outcome prediction. To ensure a good quality of analysis, the model-fitting techniques for (1) variable selection, (2) goodness-of-fit assessment, and (3) regression diagnostics and remedies should be used in regression analysis. The stepwise variable selection procedure (with iterations between the ’forward’ and ’backward’ steps) is one of the best ways to obtaining the best candidate final regression model. All the bivariate significant and non-significant relevant covariates and some of their interaction terms (or moderators) are put on the ’variable list’ to be selected. The significance levels for entry (SLE) and for stay (SLS) are suggested to be set at 0.15 or larger for being conservative. Then, with the aid of substantive knowledge, the best candidate final regression model is identified manually by dropping the covariates with p value > 0.05 one at a time until all regression coefficients are significantly different from 0 at the chosen alpha level of 0.05. Since the statistical testing at each step of the stepwise variable selection procedure is conditioning on the other covariates in the regression model, the multiple testing problem is not of concern. Any discrepancy between the results of bivariate analysis and regression analysis is likely due to the confounding effects of uncontrolled covariates in bivariate analysis or the masking effects of intermediate variables (or mediators) in regression analysis. Value A model object representing the identified "Stepwise Final Model" with the values of variance inflating factor (VIF) for all included covarites is displayed. Warning The value of variance inflating factor (VIF) is bigger than 10 in continuous covariates or VIF is bigger than 2.5 in categorical covariates indicate the occurrence of multicollinearity problem among some of the covariates in the fitted regression model. See Also My.stepwise.glm My.stepwise.coxph Examples data("LifeCycleSavings") names(LifeCycleSavings) dim(LifeCycleSavings) my.variable.list <- c("pop15", "pop75", "dpi") My.stepwise.lm(Y = "sr", variable.list = my.variable.list, in.variable = c("ddpi"), data = LifeCycleSavings) my.variable.list <- c("pop15", "pop75", "dpi", "ddpi") My.stepwise.lm(Y = "sr", variable.list = my.variable.list, data = LifeCycleSavings, sle = 0.25, sls = 0.25)
github.com/hajimehoshi/ebiten/v2
go
Go
README [¶](#section-readme) --- ### Ebitengine (v2) [![Go Reference](https://pkg.go.dev/badge/github.com/hajimehoshi/ebiten/v2.svg)](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2) [![Build Status](https://github.com/hajimehoshi/ebiten/actions/workflows/test.yml/badge.svg)](https://github.com/hajimehoshi/ebiten/actions?query=workflow%3Atest) **A dead simple 2D game engine for Go** Ebitengine (formerly known as Ebiten) is an open source game engine for the Go programming language. Ebitengine's simple API allows you to quickly and easily develop 2D games that can be deployed across multiple platforms. * [Website (ebitengine.org)](https://ebitengine.org) * [API Reference](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2) * [Cheat Sheet](https://ebitengine.org/en/documents/cheatsheet.html) * [Awesome Ebitengine](https://github.com/sedyh/awesome-ebitengine) ![Overview](https://ebitengine.org/images/overview2.png) #### Platforms * [Windows](https://ebitengine.org/en/documents/install.html?os=windows) (No Cgo required!) * [macOS](https://ebitengine.org/en/documents/install.html?os=darwin) * [Linux](https://ebitengine.org/en/documents/install.html?os=linux) * [FreeBSD](https://ebitengine.org/en/documents/install.html?os=freebsd) * [Android](https://ebitengine.org/en/documents/mobile.html) * [iOS](https://ebitengine.org/en/documents/mobile.html) * [WebAssembly](https://ebitengine.org/en/documents/webassembly.html) * Nintendo Switch * Xbox For installation on desktops, see [the installation instruction](https://ebitengine.org/en/documents/install.html). #### Features * 2D Graphics (Geometry and color transformation by matrices, Various composition modes, Offscreen rendering, Text rendering, Automatic batches, Automatic texture atlas, Custom shaders) * Input (Mouse, Keyboard, Gamepads, Touches) * Audio (Ogg/Vorbis, MP3, WAV, PCM) #### Packages * [ebiten](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2) + [audio](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/audio) - [mp3](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/audio/mp3) - [vorbis](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/audio/vorbis) - [wav](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/audio/wav) + [colorm](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/colorm) + [ebitenutil](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/ebitenutil) + [inpututil](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/inpututil) + [mobile](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/mobile) + [text](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/text) + [vector](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/vector) #### Community * [Discord](https://discord.gg/3tVdM5H8cC) * `#ebitengine` channel in [Gophers Slack](https://blog.gopheracademy.com/gophers-slack-community/) * [GitHub Discussion](https://github.com/hajimehoshi/ebiten/discussions) * [`r/ebitengine` in Reddit](https://www.reddit.com/r/ebitengine/) #### License Ebitengine is licensed under Apache license version 2.0. See [LICENSE](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/LICENSE) file. [The Ebitengine logo](https://ebitengine.org/images/logo.png) by <NAME> is licensed under [the Creative Commons Attribution-NoDerivatives 4.0](https://creativecommons.org/licenses/by-nd/4.0/). Documentation [¶](#section-documentation) --- ### Overview [¶](#pkg-overview) * [Environment variables](#hdr-Environment_variables) * [Build tags](#hdr-Build_tags) Package ebiten provides graphics and input API to develop a 2D game. You can start the game by calling the function RunGame. ``` // Game implements ebiten.Game interface. type Game struct{} // Update proceeds the game state. // Update is called every tick (1/60 [s] by default). func (g *Game) Update() error { // Write your game's logical update. return nil } // Draw draws the game screen. // Draw is called every frame (typically 1/60[s] for 60Hz display). func (g *Game) Draw(screen *ebiten.Image) { // Write your game's rendering. } // Layout takes the outside size (e.g., the window size) and returns the (logical) screen size. // If you don't have to adjust the screen size with the outside size, just return a fixed size. func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) { return 320, 240 } func main() { game := &Game{} // Specify the window size as you like. Here, a doubled size is specified. ebiten.SetWindowSize(640, 480) ebiten.SetWindowTitle("Your game's title") // Call ebiten.RunGame to start your game loop. if err := ebiten.RunGame(game); err != nil { log.Fatal(err) } } ``` In the API document, 'the main thread' means the goroutine in init(), main() and their callees without 'go' statement. It is assured that 'the main thread' runs on the OS main thread. There are some Ebitengine functions (e.g., DeviceScaleFactor) that must be called on the main thread under some conditions (typically, before ebiten.RunGame is called). #### Environment variables [¶](#hdr-Environment_variables) `EBITENGINE_SCREENSHOT_KEY` environment variable specifies the key to take a screenshot. For example, if you run your game with `EBITENGINE_SCREENSHOT_KEY=q`, you can take a game screen's screenshot by pressing Q key. This works only on desktops and browsers. `EBITENGINE_INTERNAL_IMAGES_KEY` environment variable specifies the key to dump all the internal images. This is valid only when the build tag 'ebitenginedebug' is specified. This works only on desktops and browsers. `EBITENGINE_GRAPHICS_LIBRARY` environment variable specifies the graphics library. If the specified graphics library is not available, RunGame returns an error. This environment variable works when RunGame is called or RunGameWithOptions is called with GraphicsLibraryAuto. This can take one of the following value: ``` "auto": Ebitengine chooses the graphics library automatically. This is the default value. "opengl": OpenGL, OpenGL ES, or WebGL. "directx": DirectX. This works only on Windows. "metal": Metal. This works only on macOS or iOS. ``` `EBITENGINE_DIRECTX` environment variable specifies various parameters for DirectX. You can specify multiple values separated by a comma. The default value is empty (i.e. no parameters). ``` "debug": Use a debug layer. "warp": Use WARP (i.e. software rendering). "version=VERSION": Specify a DirectX version (e.g. 11). "featurelevel=FEATURE_LEVEL": Specify a feature level (e.g. 11_0). This is for DirectX 12. ``` The options taking arguments are exclusive, and if multiples are specified, the lastly specified value is adopted. The possible values for the option "version" are "11" and "12". If the version is not specified, the default version 11 is adopted. On Xbox, the "version" option is ignored and DirectX 12 is always adopted. The option "featurelevel" is valid only for DirectX 12. The possible values are "11_0", "11_1", "12_0", "12_1", and "12_2". The default value is "11_0". `EBITENGINE_OPENGL` environment variable specifies various parameters for OpenGL. You can specify multiple values separated by a comma. The default value is empty (i.e. no parameters). ``` "es": Use OpenGL ES. Without this, OpenGL and OpenGL ES are automatically chosen. ``` #### Build tags [¶](#hdr-Build_tags) `ebitenginedebug` outputs a log of graphics commands. This is useful to know what happens in Ebitengine. In general, the number of graphics commands affects the performance of your game. `ebitenginegldebug` enables a debug mode for OpenGL. This is valid only when the graphics library is OpenGL. This affects performance very much. `ebitenginesinglethread` disables Ebitengine's thread safety to unlock maximum performance. If you use this you will have to manage threads yourself. Functions like IsKeyPressed will no longer be concurrent-safe with this build tag. They must be called from the main thread or the same goroutine as the given game's callback functions like Update to RunGame. `ebitenginesinglethread` works only with desktops. `microsoftgdk` is for Microsoft GDK (e.g. Xbox). `nintendosdk` is for NintendoSDK (e.g. Nintendo Switch). `nintendosdkprofile` enables a profiler for NintendoSDK. ### Index [¶](#pkg-index) * [Constants](#pkg-constants) * [Variables](#pkg-variables) * [func ActualFPS() float64](#ActualFPS) * [func ActualTPS() float64](#ActualTPS) * [func AppendInputChars(runes []rune) []rune](#AppendInputChars) * [func CurrentFPS() float64](#CurrentFPS)deprecated * [func CurrentTPS() float64](#CurrentTPS)deprecated * [func CursorPosition() (x, y int)](#CursorPosition) * [func DeviceScaleFactor() float64](#DeviceScaleFactor) * [func DroppedFiles() fs.FS](#DroppedFiles) * [func GamepadAxis(id GamepadID, axis int) float64](#GamepadAxis)deprecated * [func GamepadAxisCount(id GamepadID) int](#GamepadAxisCount) * [func GamepadAxisNum(id GamepadID) int](#GamepadAxisNum)deprecated * [func GamepadAxisValue(id GamepadID, axis int) float64](#GamepadAxisValue) * [func GamepadButtonCount(id GamepadID) int](#GamepadButtonCount) * [func GamepadButtonNum(id GamepadID) int](#GamepadButtonNum)deprecated * [func GamepadName(id GamepadID) string](#GamepadName) * [func GamepadSDLID(id GamepadID) string](#GamepadSDLID) * [func InputChars() []rune](#InputChars)deprecated * [func IsFocused() bool](#IsFocused) * [func IsFullscreen() bool](#IsFullscreen) * [func IsGamepadButtonPressed(id GamepadID, button GamepadButton) bool](#IsGamepadButtonPressed) * [func IsKeyPressed(key Key) bool](#IsKeyPressed) * [func IsMouseButtonPressed(mouseButton MouseButton) bool](#IsMouseButtonPressed) * [func IsRunnableOnUnfocused() bool](#IsRunnableOnUnfocused) * [func IsScreenClearedEveryFrame() bool](#IsScreenClearedEveryFrame) * [func IsScreenFilterEnabled() bool](#IsScreenFilterEnabled)deprecated * [func IsScreenTransparent() bool](#IsScreenTransparent)deprecated * [func IsStandardGamepadAxisAvailable(id GamepadID, axis StandardGamepadAxis) bool](#IsStandardGamepadAxisAvailable) * [func IsStandardGamepadButtonAvailable(id GamepadID, button StandardGamepadButton) bool](#IsStandardGamepadButtonAvailable) * [func IsStandardGamepadButtonPressed(id GamepadID, button StandardGamepadButton) bool](#IsStandardGamepadButtonPressed) * [func IsStandardGamepadLayoutAvailable(id GamepadID) bool](#IsStandardGamepadLayoutAvailable) * [func IsVsyncEnabled() bool](#IsVsyncEnabled) * [func IsWindowBeingClosed() bool](#IsWindowBeingClosed) * [func IsWindowClosingHandled() bool](#IsWindowClosingHandled) * [func IsWindowDecorated() bool](#IsWindowDecorated) * [func IsWindowFloating() bool](#IsWindowFloating) * [func IsWindowMaximized() bool](#IsWindowMaximized) * [func IsWindowMinimized() bool](#IsWindowMinimized) * [func IsWindowMousePassthrough() bool](#IsWindowMousePassthrough) * [func IsWindowResizable() bool](#IsWindowResizable)deprecated * [func KeyName(key Key) string](#KeyName) * [func MaxTPS() int](#MaxTPS)deprecated * [func MaximizeWindow()](#MaximizeWindow) * [func MinimizeWindow()](#MinimizeWindow) * [func ReadDebugInfo(d *DebugInfo)](#ReadDebugInfo) * [func RestoreWindow()](#RestoreWindow) * [func RunGame(game Game) error](#RunGame) * [func RunGameWithOptions(game Game, options *RunGameOptions) error](#RunGameWithOptions) * [func ScheduleFrame()](#ScheduleFrame)deprecated * [func ScreenSizeInFullscreen() (int, int)](#ScreenSizeInFullscreen) * [func SetCursorMode(mode CursorModeType)](#SetCursorMode) * [func SetCursorShape(shape CursorShapeType)](#SetCursorShape) * [func SetFPSMode(mode FPSModeType)](#SetFPSMode)deprecated * [func SetFullscreen(fullscreen bool)](#SetFullscreen) * [func SetInitFocused(focused bool)](#SetInitFocused)deprecated * [func SetMaxTPS(tps int)](#SetMaxTPS)deprecated * [func SetMonitor(monitor *MonitorType)](#SetMonitor) * [func SetRunnableOnUnfocused(runnableOnUnfocused bool)](#SetRunnableOnUnfocused) * [func SetScreenClearedEveryFrame(cleared bool)](#SetScreenClearedEveryFrame) * [func SetScreenFilterEnabled(enabled bool)](#SetScreenFilterEnabled)deprecated * [func SetScreenTransparent(transparent bool)](#SetScreenTransparent)deprecated * [func SetTPS(tps int)](#SetTPS) * [func SetVsyncEnabled(enabled bool)](#SetVsyncEnabled) * [func SetWindowClosingHandled(handled bool)](#SetWindowClosingHandled) * [func SetWindowDecorated(decorated bool)](#SetWindowDecorated) * [func SetWindowFloating(float bool)](#SetWindowFloating) * [func SetWindowIcon(iconImages []image.Image)](#SetWindowIcon) * [func SetWindowMousePassthrough(enabled bool)](#SetWindowMousePassthrough) * [func SetWindowPosition(x, y int)](#SetWindowPosition) * [func SetWindowResizable(resizable bool)](#SetWindowResizable)deprecated * [func SetWindowResizingMode(mode WindowResizingModeType)](#SetWindowResizingMode) * [func SetWindowSize(width, height int)](#SetWindowSize) * [func SetWindowSizeLimits(minw, minh, maxw, maxh int)](#SetWindowSizeLimits) * [func SetWindowTitle(title string)](#SetWindowTitle) * [func StandardGamepadAxisValue(id GamepadID, axis StandardGamepadAxis) float64](#StandardGamepadAxisValue) * [func StandardGamepadButtonValue(id GamepadID, button StandardGamepadButton) float64](#StandardGamepadButtonValue) * [func TPS() int](#TPS) * [func TouchPosition(id TouchID) (int, int)](#TouchPosition) * [func UpdateStandardGamepadLayoutMappings(mappings string) (bool, error)](#UpdateStandardGamepadLayoutMappings) * [func Vibrate(options *VibrateOptions)](#Vibrate) * [func VibrateGamepad(gamepadID GamepadID, options *VibrateGamepadOptions)](#VibrateGamepad) * [func Wheel() (xoff, yoff float64)](#Wheel) * [func WindowPosition() (x, y int)](#WindowPosition) * [func WindowSize() (int, int)](#WindowSize) * [func WindowSizeLimits() (minw, minh, maxw, maxh int)](#WindowSizeLimits) * [type Address](#Address) * [type Blend](#Blend) * [type BlendFactor](#BlendFactor) * [type BlendOperation](#BlendOperation) * [type ColorM](#ColorM)deprecated * + [func (c *ColorM) Apply(clr color.Color) color.Color](#ColorM.Apply)deprecated + [func (c *ColorM) ChangeHSV(hueTheta float64, saturationScale float64, valueScale float64)](#ColorM.ChangeHSV)deprecated + [func (c *ColorM) Concat(other ColorM)](#ColorM.Concat)deprecated + [func (c *ColorM) Element(i, j int) float64](#ColorM.Element)deprecated + [func (c *ColorM) Invert()](#ColorM.Invert)deprecated + [func (c *ColorM) IsInvertible() bool](#ColorM.IsInvertible)deprecated + [func (c *ColorM) Reset()](#ColorM.Reset)deprecated + [func (c *ColorM) RotateHue(theta float64)](#ColorM.RotateHue)deprecated + [func (c *ColorM) Scale(r, g, b, a float64)](#ColorM.Scale)deprecated + [func (c *ColorM) ScaleWithColor(clr color.Color)](#ColorM.ScaleWithColor)deprecated + [func (c *ColorM) SetElement(i, j int, element float64)](#ColorM.SetElement)deprecated + [func (c *ColorM) String() string](#ColorM.String)deprecated + [func (c *ColorM) Translate(r, g, b, a float64)](#ColorM.Translate)deprecated * [type ColorScale](#ColorScale) * + [func (c *ColorScale) A() float32](#ColorScale.A) + [func (c *ColorScale) B() float32](#ColorScale.B) + [func (c *ColorScale) G() float32](#ColorScale.G) + [func (c *ColorScale) R() float32](#ColorScale.R) + [func (c *ColorScale) Reset()](#ColorScale.Reset) + [func (c *ColorScale) Scale(r, g, b, a float32)](#ColorScale.Scale) + [func (c *ColorScale) ScaleAlpha(a float32)](#ColorScale.ScaleAlpha) + [func (c *ColorScale) ScaleWithColor(clr color.Color)](#ColorScale.ScaleWithColor) + [func (c *ColorScale) ScaleWithColorScale(colorScale ColorScale)](#ColorScale.ScaleWithColorScale) + [func (c *ColorScale) SetA(a float32)](#ColorScale.SetA) + [func (c *ColorScale) SetB(b float32)](#ColorScale.SetB) + [func (c *ColorScale) SetG(g float32)](#ColorScale.SetG) + [func (c *ColorScale) SetR(r float32)](#ColorScale.SetR) + [func (c *ColorScale) String() string](#ColorScale.String) * [type ColorScaleMode](#ColorScaleMode) * [type CompositeMode](#CompositeMode)deprecated * [type CursorModeType](#CursorModeType) * + [func CursorMode() CursorModeType](#CursorMode) * [type CursorShapeType](#CursorShapeType) * + [func CursorShape() CursorShapeType](#CursorShape) * [type DebugInfo](#DebugInfo) * [type DrawImageOptions](#DrawImageOptions) * [type DrawRectShaderOptions](#DrawRectShaderOptions) * [type DrawTrianglesOptions](#DrawTrianglesOptions) * [type DrawTrianglesShaderOptions](#DrawTrianglesShaderOptions) * [type FPSModeType](#FPSModeType)deprecated * + [func FPSMode() FPSModeType](#FPSMode)deprecated * [type FillRule](#FillRule) * [type Filter](#Filter) * [type FinalScreen](#FinalScreen) * [type FinalScreenDrawer](#FinalScreenDrawer) * [type Game](#Game) * [type GamepadButton](#GamepadButton) * [type GamepadID](#GamepadID) * + [func AppendGamepadIDs(gamepadIDs []GamepadID) []GamepadID](#AppendGamepadIDs) + [func GamepadIDs() []GamepadID](#GamepadIDs)deprecated * [type GeoM](#GeoM) * + [func (g *GeoM) Apply(x, y float64) (float64, float64)](#GeoM.Apply) + [func (g *GeoM) Concat(other GeoM)](#GeoM.Concat) + [func (g *GeoM) Element(i, j int) float64](#GeoM.Element) + [func (g *GeoM) Invert()](#GeoM.Invert) + [func (g *GeoM) IsInvertible() bool](#GeoM.IsInvertible) + [func (g *GeoM) Reset()](#GeoM.Reset) + [func (g *GeoM) Rotate(theta float64)](#GeoM.Rotate) + [func (g *GeoM) Scale(x, y float64)](#GeoM.Scale) + [func (g *GeoM) SetElement(i, j int, element float64)](#GeoM.SetElement) + [func (g *GeoM) Skew(skewX, skewY float64)](#GeoM.Skew) + [func (g *GeoM) String() string](#GeoM.String) + [func (g *GeoM) Translate(tx, ty float64)](#GeoM.Translate) * [type GraphicsLibrary](#GraphicsLibrary) * + [func (g GraphicsLibrary) String() string](#GraphicsLibrary.String) * [type Image](#Image) * + [func NewImage(width, height int) *Image](#NewImage) + [func NewImageFromImage(source image.Image) *Image](#NewImageFromImage) + [func NewImageFromImageWithOptions(source image.Image, options *NewImageFromImageOptions) *Image](#NewImageFromImageWithOptions) + [func NewImageWithOptions(bounds image.Rectangle, options *NewImageOptions) *Image](#NewImageWithOptions) * + [func (i *Image) At(x, y int) color.Color](#Image.At) + [func (i *Image) Bounds() image.Rectangle](#Image.Bounds) + [func (i *Image) Clear()](#Image.Clear) + [func (i *Image) ColorModel() color.Model](#Image.ColorModel) + [func (i *Image) Dispose()](#Image.Dispose) + [func (i *Image) DrawImage(img *Image, options *DrawImageOptions)](#Image.DrawImage) + [func (i *Image) DrawRectShader(width, height int, shader *Shader, options *DrawRectShaderOptions)](#Image.DrawRectShader) + [func (i *Image) DrawTriangles(vertices []Vertex, indices []uint16, img *Image, options *DrawTrianglesOptions)](#Image.DrawTriangles) + [func (i *Image) DrawTrianglesShader(vertices []Vertex, indices []uint16, shader *Shader, ...)](#Image.DrawTrianglesShader) + [func (i *Image) Fill(clr color.Color)](#Image.Fill) + [func (i *Image) RGBA64At(x, y int) color.RGBA64](#Image.RGBA64At) + [func (i *Image) ReadPixels(pixels []byte)](#Image.ReadPixels) + [func (i *Image) ReplacePixels(pixels []byte)](#Image.ReplacePixels)deprecated + [func (i *Image) Set(x, y int, clr color.Color)](#Image.Set) + [func (i *Image) Size() (width, height int)](#Image.Size)deprecated + [func (i *Image) SubImage(r image.Rectangle) image.Image](#Image.SubImage) + [func (i *Image) WritePixels(pixels []byte)](#Image.WritePixels) * [type Key](#Key) * + [func (k Key) MarshalText() ([]byte, error)](#Key.MarshalText) + [func (k Key) String() string](#Key.String) + [func (k *Key) UnmarshalText(text []byte) error](#Key.UnmarshalText) * [type LayoutFer](#LayoutFer) * [type MonitorType](#MonitorType) * + [func AppendMonitors(monitors []*MonitorType) []*MonitorType](#AppendMonitors) + [func Monitor() *MonitorType](#Monitor) * + [func (m *MonitorType) Name() string](#MonitorType.Name) * [type MouseButton](#MouseButton) * [type NewImageFromImageOptions](#NewImageFromImageOptions) * [type NewImageOptions](#NewImageOptions) * [type RunGameOptions](#RunGameOptions) * [type Shader](#Shader) * + [func NewShader(src []byte) (*Shader, error)](#NewShader) * + [func (s *Shader) Dispose()](#Shader.Dispose) * [type StandardGamepadAxis](#StandardGamepadAxis) * [type StandardGamepadButton](#StandardGamepadButton) * [type TouchID](#TouchID) * + [func AppendTouchIDs(touches []TouchID) []TouchID](#AppendTouchIDs) + [func TouchIDs() []TouchID](#TouchIDs)deprecated * [type Vertex](#Vertex) * [type VibrateGamepadOptions](#VibrateGamepadOptions) * [type VibrateOptions](#VibrateOptions) * [type WindowResizingModeType](#WindowResizingModeType) * + [func WindowResizingMode() WindowResizingModeType](#WindowResizingMode) ### Constants [¶](#pkg-constants) ``` const ColorMDim = [affine](/github.com/hajimehoshi/ebiten/[email protected]/internal/affine).[ColorMDim](/github.com/hajimehoshi/ebiten/[email protected]/internal/affine#ColorMDim) ``` ColorMDim is a dimension of a ColorM. Deprecated: as of v2.5. Use the colorm package instead. ``` const DefaultTPS = [clock](/github.com/hajimehoshi/ebiten/[email protected]/internal/clock).[DefaultTPS](/github.com/hajimehoshi/ebiten/[email protected]/internal/clock#DefaultTPS) ``` DefaultTPS represents a default ticks per second, that represents how many times game updating happens in a second. ``` const GeoMDim = 3 ``` GeoMDim is a dimension of a GeoM. ``` const MaxIndicesCount = (1 << 16) / 3 * 3 ``` MaxIndicesCount is the maximum number of indices for DrawTriangles and DrawTrianglesShader. Deprecated: as of v2.6. This constant is no longer used. ``` const MaxIndicesNum = [MaxIndicesCount](#MaxIndicesCount) ``` MaxIndicesNum is the maximum number of indices for DrawTriangles and DrawTrianglesShader. Deprecated: as of v2.4. This constant is no longer used. ``` const MaxVerticesCount = [graphics](/github.com/hajimehoshi/ebiten/[email protected]/internal/graphics).[MaxVerticesCount](/github.com/hajimehoshi/ebiten/[email protected]/internal/graphics#MaxVerticesCount) ``` MaxVerticesCount is the maximum number of vertices for DrawTriangles and DrawTrianglesShader. ``` const SyncWithFPS = [clock](/github.com/hajimehoshi/ebiten/[email protected]/internal/clock).[SyncWithFPS](/github.com/hajimehoshi/ebiten/[email protected]/internal/clock#SyncWithFPS) ``` SyncWithFPS is a special TPS value that means TPS syncs with FPS. ``` const UncappedTPS = [SyncWithFPS](#SyncWithFPS) ``` UncappedTPS is a special TPS value that means TPS syncs with FPS. Deprecated: as of v2.2. Use SyncWithFPS instead. ### Variables [¶](#pkg-variables) ``` var ( // BlendSourceOver is a preset Blend for the regular alpha blending. // // c_out = c_src + c_dst × (1 - α_src) // α_out = α_src + α_dst × (1 - α_src) BlendSourceOver = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorOne](#BlendFactorOne), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorOne](#BlendFactorOne), BlendFactorDestinationRGB: [BlendFactorOneMinusSourceAlpha](#BlendFactorOneMinusSourceAlpha), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorOneMinusSourceAlpha](#BlendFactorOneMinusSourceAlpha), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendClear is a preset Blend for Porter Duff's 'clear'. // // c_out = 0 // α_out = 0 BlendClear = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorZero](#BlendFactorZero), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorZero](#BlendFactorZero), BlendFactorDestinationRGB: [BlendFactorZero](#BlendFactorZero), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorZero](#BlendFactorZero), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendCopy is a preset Blend for Porter Duff's 'copy'. // // c_out = c_src // α_out = α_src BlendCopy = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorOne](#BlendFactorOne), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorOne](#BlendFactorOne), BlendFactorDestinationRGB: [BlendFactorZero](#BlendFactorZero), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorZero](#BlendFactorZero), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendDestination is a preset Blend for Porter Duff's 'destination'. // // c_out = c_dst // α_out = α_dst BlendDestination = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorZero](#BlendFactorZero), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorZero](#BlendFactorZero), BlendFactorDestinationRGB: [BlendFactorOne](#BlendFactorOne), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorOne](#BlendFactorOne), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendDestinationOver is a preset Blend for Porter Duff's 'destination-over'. // // c_out = c_src × (1 - α_dst) + c_dst // α_out = α_src × (1 - α_dst) + α_dst BlendDestinationOver = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorOneMinusDestinationAlpha](#BlendFactorOneMinusDestinationAlpha), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorOneMinusDestinationAlpha](#BlendFactorOneMinusDestinationAlpha), BlendFactorDestinationRGB: [BlendFactorOne](#BlendFactorOne), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorOne](#BlendFactorOne), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendSourceIn is a preset Blend for Porter Duff's 'source-in'. // // c_out = c_src × α_dst // α_out = α_src × α_dst BlendSourceIn = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha), BlendFactorDestinationRGB: [BlendFactorZero](#BlendFactorZero), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorZero](#BlendFactorZero), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendDestinationIn is a preset Blend for Porter Duff's 'destination-in'. // // c_out = c_dst × α_src // α_out = α_dst × α_src BlendDestinationIn = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorZero](#BlendFactorZero), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorZero](#BlendFactorZero), BlendFactorDestinationRGB: [BlendFactorSourceAlpha](#BlendFactorSourceAlpha), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorSourceAlpha](#BlendFactorSourceAlpha), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendSourceOut is a preset Blend for Porter Duff's 'source-out'. // // c_out = c_src × (1 - α_dst) // α_out = α_src × (1 - α_dst) BlendSourceOut = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorOneMinusDestinationAlpha](#BlendFactorOneMinusDestinationAlpha), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorOneMinusDestinationAlpha](#BlendFactorOneMinusDestinationAlpha), BlendFactorDestinationRGB: [BlendFactorZero](#BlendFactorZero), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorZero](#BlendFactorZero), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendDestinationOut is a preset Blend for Porter Duff's 'destination-out'. // // c_out = c_dst × (1 - α_src) // α_out = α_dst × (1 - α_src) BlendDestinationOut = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorZero](#BlendFactorZero), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorZero](#BlendFactorZero), BlendFactorDestinationRGB: [BlendFactorOneMinusSourceAlpha](#BlendFactorOneMinusSourceAlpha), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorOneMinusSourceAlpha](#BlendFactorOneMinusSourceAlpha), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendSourceAtop is a preset Blend for Porter Duff's 'source-atop'. // // c_out = c_src × α_dst + c_dst × (1 - α_src) // α_out = α_src × α_dst + α_dst × (1 - α_src) BlendSourceAtop = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha), BlendFactorDestinationRGB: [BlendFactorOneMinusSourceAlpha](#BlendFactorOneMinusSourceAlpha), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorOneMinusSourceAlpha](#BlendFactorOneMinusSourceAlpha), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendDestinationAtop is a preset Blend for Porter Duff's 'destination-atop'. // // c_out = c_src × (1 - α_dst) + c_dst × α_src // α_out = α_src × (1 - α_dst) + α_dst × α_src BlendDestinationAtop = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorOneMinusDestinationAlpha](#BlendFactorOneMinusDestinationAlpha), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorOneMinusDestinationAlpha](#BlendFactorOneMinusDestinationAlpha), BlendFactorDestinationRGB: [BlendFactorSourceAlpha](#BlendFactorSourceAlpha), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorSourceAlpha](#BlendFactorSourceAlpha), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendXor is a preset Blend for Porter Duff's 'xor'. // // c_out = c_src × (1 - α_dst) + c_dst × (1 - α_src) // α_out = α_src × (1 - α_dst) + α_dst × (1 - α_src) BlendXor = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorOneMinusDestinationAlpha](#BlendFactorOneMinusDestinationAlpha), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorOneMinusDestinationAlpha](#BlendFactorOneMinusDestinationAlpha), BlendFactorDestinationRGB: [BlendFactorOneMinusSourceAlpha](#BlendFactorOneMinusSourceAlpha), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorOneMinusSourceAlpha](#BlendFactorOneMinusSourceAlpha), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } // BlendLighter is a preset Blend for Porter Duff's 'lighter'. // This is sum of source and destination (a.k.a. 'plus' or 'additive') // // c_out = c_src + c_dst // α_out = α_src + α_dst BlendLighter = [Blend](#Blend){ BlendFactorSourceRGB: [BlendFactorOne](#BlendFactorOne), [BlendFactorSourceAlpha](#BlendFactorSourceAlpha): [BlendFactorOne](#BlendFactorOne), BlendFactorDestinationRGB: [BlendFactorOne](#BlendFactorOne), [BlendFactorDestinationAlpha](#BlendFactorDestinationAlpha): [BlendFactorOne](#BlendFactorOne), BlendOperationRGB: [BlendOperationAdd](#BlendOperationAdd), BlendOperationAlpha: [BlendOperationAdd](#BlendOperationAdd), } ) ``` This name convention follows CSS compositing: <https://drafts.fxtf.org/compositing-2/>. In the comments, c_src, c_dst and c_out represent alpha-premultiplied RGB values of source, destination and output respectively. α_src and α_dst represent alpha values of source and destination respectively. ``` var Termination = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[RegularTermination](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#RegularTermination) ``` Termination is a special error which indicates Game termination without error. ### Functions [¶](#pkg-functions) #### func [ActualFPS](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L139) [¶](#ActualFPS) added in v2.4.0 ``` func ActualFPS() [float64](/builtin#float64) ``` ActualFPS returns the current number of FPS (frames per second), that represents how many swapping buffer happens per second. On some environments, ActualFPS doesn't return a reliable value since vsync doesn't work well there. If you want to measure the application's speed, Use ActualTPS. This value is for measurement and/or debug, and your game logic should not rely on this value. ActualFPS is concurrent-safe. #### func [ActualTPS](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L572) [¶](#ActualTPS) added in v2.4.0 ``` func ActualTPS() [float64](/builtin#float64) ``` ActualTPS returns the current TPS (ticks per second), that represents how many Update function is called in a second. This value is for measurement and/or debug, and your game logic should not rely on this value. ActualTPS is concurrent-safe. #### func [AppendInputChars](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L38) [¶](#AppendInputChars) added in v2.2.0 ``` func AppendInputChars(runes [][rune](/builtin#rune)) [][rune](/builtin#rune) ``` AppendInputChars appends "printable" runes, read from the keyboard at the time Update is called, to runes, and returns the extended buffer. Giving a slice that already has enough capacity works efficiently. AppendInputChars represents the environment's locale-dependent translation of keyboard input to Unicode characters. On the other hand, Key represents a physical key of US keyboard layout "Control" and modifier keys should be handled with IsKeyPressed. AppendInputChars is concurrent-safe. On Android (ebitenmobile), EbitenView must be focusable to enable to handle keyboard keys. #### func [CurrentFPS](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L147) deprecated ``` func CurrentFPS() [float64](/builtin#float64) ``` CurrentFPS returns the current number of FPS (frames per second), that represents how many swapping buffer happens per second. Deprecated: as of v2.4. Use ActualFPS instead. #### func [CurrentTPS](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L580) deprecated ``` func CurrentTPS() [float64](/builtin#float64) ``` CurrentTPS returns the current TPS (ticks per second), that represents how many Update function is called in a second. Deprecated: as of v2.4. Use ActualTPS instead. #### func [CursorPosition](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L90) [¶](#CursorPosition) ``` func CursorPosition() (x, y [int](/builtin#int)) ``` CursorPosition returns a position of a mouse cursor relative to the game screen (window). The cursor position is 'logical' position and this considers the scale of the screen. CursorPosition returns (0, 0) before the main loop on desktops and browsers. CursorPosition always returns (0, 0) on mobiles. CursorPosition is concurrent-safe. #### func [DeviceScaleFactor](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L466) [¶](#DeviceScaleFactor) ``` func DeviceScaleFactor() [float64](/builtin#float64) ``` DeviceScaleFactor returns a device scale factor value of the current monitor which the window belongs to. DeviceScaleFactor returns a meaningful value on high-DPI display environment, otherwise DeviceScaleFactor returns 1. DeviceScaleFactor might panic on init function on some devices like Android. Then, it is not recommended to call DeviceScaleFactor from init functions. DeviceScaleFactor must be called on the main thread before the main loop, and is concurrent-safe after the main loop. DeviceScaleFactor is concurrent-safe. BUG: DeviceScaleFactor value is not affected by SetWindowPosition before RunGame (#1575). #### func [DroppedFiles](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L684) [¶](#DroppedFiles) added in v2.5.0 ``` func DroppedFiles() [fs](/io/fs).[FS](/io/fs#FS) ``` DroppedFiles returns a virtual file system that includes only dropped files and/or directories at its root directory, at the time Update is called. DroppedFiles works on desktops and browsers. DroppedFiles is concurrent-safe. #### func [GamepadAxis](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L194) deprecated ``` func GamepadAxis(id [GamepadID](#GamepadID), axis [int](/builtin#int)) [float64](/builtin#float64) ``` GamepadAxis returns a float value [-1.0 - 1.0] of the given gamepad (id)'s axis (axis). Deprecated: as of v2.2. Use GamepadAxisValue instead. #### func [GamepadAxisCount](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L165) [¶](#GamepadAxisCount) added in v2.4.0 ``` func GamepadAxisCount(id [GamepadID](#GamepadID)) [int](/builtin#int) ``` GamepadAxisCount returns the number of axes of the gamepad (id). GamepadAxisCount is concurrent-safe. #### func [GamepadAxisNum](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L176) deprecated ``` func GamepadAxisNum(id [GamepadID](#GamepadID)) [int](/builtin#int) ``` GamepadAxisNum returns the number of axes of the gamepad (id). Deprecated: as of v2.4. Use GamepadAxisCount instead. #### func [GamepadAxisValue](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L183) [¶](#GamepadAxisValue) added in v2.2.0 ``` func GamepadAxisValue(id [GamepadID](#GamepadID), axis [int](/builtin#int)) [float64](/builtin#float64) ``` GamepadAxisValue returns a float value [-1.0 - 1.0] of the given gamepad (id)'s axis (axis). GamepadAxisValue is concurrent-safe. #### func [GamepadButtonCount](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L201) [¶](#GamepadButtonCount) added in v2.4.0 ``` func GamepadButtonCount(id [GamepadID](#GamepadID)) [int](/builtin#int) ``` GamepadButtonCount returns the number of the buttons of the given gamepad (id). GamepadButtonCount is concurrent-safe. #### func [GamepadButtonNum](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L214) deprecated ``` func GamepadButtonNum(id [GamepadID](#GamepadID)) [int](/builtin#int) ``` GamepadButtonNum returns the number of the buttons of the given gamepad (id). Deprecated: as of v2.4. Use GamepadButtonCount instead. #### func [GamepadName](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L139) [¶](#GamepadName) ``` func GamepadName(id [GamepadID](#GamepadID)) [string](/builtin#string) ``` GamepadName returns a string with the name. This function may vary in how it returns descriptions for the same device across platforms. for example the following drivers/platforms see an Xbox One controller as the following: * Windows: "Xbox Controller" * Chrome: "Xbox 360 Controller (XInput STANDARD GAMEPAD)" * Firefox: "xinput" GamepadName is concurrent-safe. #### func [GamepadSDLID](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L122) [¶](#GamepadSDLID) ``` func GamepadSDLID(id [GamepadID](#GamepadID)) [string](/builtin#string) ``` GamepadSDLID returns a string with the GUID generated in the same way as SDL. To detect devices, see also the community project of gamepad devices database: <https://github.com/gabomdq/SDL_GameControllerDBGamepadSDLID always returns an empty string on browsers and mobiles. GamepadSDLID is concurrent-safe. #### func [InputChars](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L45) deprecated ``` func InputChars() [][rune](/builtin#rune) ``` InputChars return "printable" runes read from the keyboard at the time Update is called. Deprecated: as of v2.2. Use AppendInputChars instead. #### func [IsFocused](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L425) [¶](#IsFocused) ``` func IsFocused() [bool](/builtin#bool) ``` IsFocused returns a boolean value indicating whether the game is in focus or in the foreground. IsFocused will only return true if IsRunnableOnUnfocused is false. IsFocused is concurrent-safe. #### func [IsFullscreen](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L393) [¶](#IsFullscreen) ``` func IsFullscreen() [bool](/builtin#bool) ``` IsFullscreen reports whether the current mode is fullscreen or not. IsFullscreen always returns false on mobiles. IsFullscreen is concurrent-safe. #### func [IsGamepadButtonPressed](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L227) [¶](#IsGamepadButtonPressed) ``` func IsGamepadButtonPressed(id [GamepadID](#GamepadID), button [GamepadButton](#GamepadButton)) [bool](/builtin#bool) ``` IsGamepadButtonPressed reports whether the given button of the gamepad (id) is pressed or not. If you want to know whether the given button of gamepad (id) started being pressed in the current tick, use inpututil.IsGamepadButtonJustPressed IsGamepadButtonPressed is concurrent-safe. The relationships between physical buttons and button IDs depend on environments. There can be differences even between Chrome and Firefox. #### func [IsKeyPressed](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L65) [¶](#IsKeyPressed) ``` func IsKeyPressed(key [Key](#Key)) [bool](/builtin#bool) ``` IsKeyPressed returns a boolean indicating whether key is pressed. If you want to know whether the key started being pressed in the current tick, use inpututil.IsKeyJustPressed Note that a Key represents a physical key of US keyboard layout. For example, KeyQ represents Q key on US keyboards and ' (quote) key on Dvorak keyboards. Known issue: On Edge browser, some keys don't work well: * KeyKPEnter and KeyKPEqual are recognized as KeyEnter and KeyEqual. * KeyPrintScreen is only treated at keyup event. IsKeyPressed is concurrent-safe. On Android (ebitenmobile), EbitenView must be focusable to enable to handle keyboard keys. #### func [IsMouseButtonPressed](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L109) [¶](#IsMouseButtonPressed) ``` func IsMouseButtonPressed(mouseButton [MouseButton](#MouseButton)) [bool](/builtin#bool) ``` IsMouseButtonPressed returns a boolean indicating whether mouseButton is pressed. If you want to know whether the mouseButton started being pressed in the current tick, use inpututil.IsMouseButtonJustPressed IsMouseButtonPressed is concurrent-safe. #### func [IsRunnableOnUnfocused](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L433) [¶](#IsRunnableOnUnfocused) ``` func IsRunnableOnUnfocused() [bool](/builtin#bool) ``` IsRunnableOnUnfocused returns a boolean value indicating whether the game runs even in background. IsRunnableOnUnfocused is concurrent-safe. #### func [IsScreenClearedEveryFrame](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L166) [¶](#IsScreenClearedEveryFrame) ``` func IsScreenClearedEveryFrame() [bool](/builtin#bool) ``` IsScreenClearedEveryFrame returns true if the frame isn't cleared at the beginning. IsScreenClearedEveryFrame is concurrent-safe. #### func [IsScreenFilterEnabled](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L190) deprecated added in v2.3.0 ``` func IsScreenFilterEnabled() [bool](/builtin#bool) ``` IsScreenFilterEnabled returns true if Ebitengine's "screen" filter is enabled. IsScreenFilterEnabled is concurrent-safe. Deprecated: as of v2.5. #### func [IsScreenTransparent](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L617) deprecated ``` func IsScreenTransparent() [bool](/builtin#bool) ``` IsScreenTransparent reports whether the window is transparent. IsScreenTransparent is concurrent-safe. Deprecated: as of v2.5. #### func [IsStandardGamepadAxisAvailable](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L300) [¶](#IsStandardGamepadAxisAvailable) added in v2.4.0 ``` func IsStandardGamepadAxisAvailable(id [GamepadID](#GamepadID), axis [StandardGamepadAxis](#StandardGamepadAxis)) [bool](/builtin#bool) ``` IsStandardGamepadAxisAvailable reports whether the standard gamepad axis is available on the gamepad (id). IsStandardGamepadAxisAvailable is concurrent-safe. #### func [IsStandardGamepadButtonAvailable](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L311) [¶](#IsStandardGamepadButtonAvailable) added in v2.4.0 ``` func IsStandardGamepadButtonAvailable(id [GamepadID](#GamepadID), button [StandardGamepadButton](#StandardGamepadButton)) [bool](/builtin#bool) ``` IsStandardGamepadButtonAvailable reports whether the standard gamepad button is available on the gamepad (id). IsStandardGamepadButtonAvailable is concurrent-safe. #### func [IsStandardGamepadButtonPressed](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L278) [¶](#IsStandardGamepadButtonPressed) added in v2.2.0 ``` func IsStandardGamepadButtonPressed(id [GamepadID](#GamepadID), button [StandardGamepadButton](#StandardGamepadButton)) [bool](/builtin#bool) ``` IsStandardGamepadButtonPressed reports whether the given gamepad (id)'s standard gamepad button (button) is pressed. IsStandardGamepadButtonPressed returns false when the gamepad doesn't have a standard gamepad layout mapping. IsStandardGamepadButtonPressed is concurrent safe. #### func [IsStandardGamepadLayoutAvailable](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L289) [¶](#IsStandardGamepadLayoutAvailable) added in v2.2.0 ``` func IsStandardGamepadLayoutAvailable(id [GamepadID](#GamepadID)) [bool](/builtin#bool) ``` IsStandardGamepadLayoutAvailable reports whether the gamepad (id) has a standard gamepad layout mapping. IsStandardGamepadLayoutAvailable is concurrent-safe. #### func [IsVsyncEnabled](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L472) [¶](#IsVsyncEnabled) ``` func IsVsyncEnabled() [bool](/builtin#bool) ``` IsVsyncEnabled returns a boolean value indicating whether the game uses the display's vsync. #### func [IsWindowBeingClosed](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L295) [¶](#IsWindowBeingClosed) added in v2.2.0 ``` func IsWindowBeingClosed() [bool](/builtin#bool) ``` IsWindowBeingClosed returns true when the user is trying to close the window on desktops. As the window is closed immediately by default, you might want to call SetWindowClosingHandled(true) to prevent the window is automatically closed. IsWindowBeingClosed always returns false if the platform is not a desktop. IsWindowBeingClosed is concurrent-safe. #### func [IsWindowClosingHandled](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L319) [¶](#IsWindowClosingHandled) added in v2.2.0 ``` func IsWindowClosingHandled() [bool](/builtin#bool) ``` IsWindowClosingHandled reports whether the window closing is handled or not on desktops by SetWindowClosingHandled. IsWindowClosingHandled always returns false if the platform is not a desktop. IsWindowClosingHandled is concurrent-safe. #### func [IsWindowDecorated](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L48) [¶](#IsWindowDecorated) ``` func IsWindowDecorated() [bool](/builtin#bool) ``` IsWindowDecorated reports whether the window is decorated. IsWindowDecorated is concurrent-safe. #### func [IsWindowFloating](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L221) [¶](#IsWindowFloating) ``` func IsWindowFloating() [bool](/builtin#bool) ``` IsWindowFloating reports whether the window is always shown above all the other windows. IsWindowFloating returns false if the platform is not a desktop. IsWindowFloating is concurrent-safe. #### func [IsWindowMaximized](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L252) [¶](#IsWindowMaximized) ``` func IsWindowMaximized() [bool](/builtin#bool) ``` IsWindowMaximized reports whether the window is maximized or not. IsWindowMaximized returns false when the window is not resizable (WindowResizingModeEnabled). IsWindowMaximized always returns false if the platform is not a desktop. IsWindowMaximized is concurrent-safe. #### func [IsWindowMinimized](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L272) [¶](#IsWindowMinimized) ``` func IsWindowMinimized() [bool](/builtin#bool) ``` IsWindowMinimized reports whether the window is minimized or not. IsWindowMinimized always returns false if the platform is not a desktop. IsWindowMinimized is concurrent-safe. #### func [IsWindowMousePassthrough](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L341) [¶](#IsWindowMousePassthrough) added in v2.6.0 ``` func IsWindowMousePassthrough() [bool](/builtin#bool) ``` IsWindowMousePassthrough reports whether a mouse cursor passthroughs the window or not on desktops. IsWindowMousePassthrough alaywas returns false if the platform is not a desktop. IsWindowMousePassthrough is concurrent-safe. #### func [IsWindowResizable](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L84) deprecated ``` func IsWindowResizable() [bool](/builtin#bool) ``` IsWindowResizable reports whether the window is resizable by the user's dragging on desktops. On the other environments, IsWindowResizable always returns false. Deprecated: as of v2.3. Use WindowResizingMode instead. #### func [KeyName](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L78) [¶](#KeyName) added in v2.5.0 ``` func KeyName(key [Key](#Key)) [string](/builtin#string) ``` KeyName returns a key name for the current keyboard layout. For example, KeyName(KeyQ) returns 'q' for a QWERTY keyboard, and returns 'a' for an AZERTY keyboard. KeyName returns an empty string if 1) the key doesn't have a physical key name, 2) the platform doesn't support KeyName, or 3) the main loop doesn't start yet. KeyName is supported by desktops and browsers. KeyName is concurrent-safe. #### func [MaxTPS](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L562) deprecated ``` func MaxTPS() [int](/builtin#int) ``` MaxTPS returns the current maximum TPS. Deprecated: as of v2.4. Use TPS instead. #### func [MaximizeWindow](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L241) [¶](#MaximizeWindow) ``` func MaximizeWindow() ``` MaximizeWindow maximizes the window. MaximizeWindow does nothing when the window is not resizable (WindowResizingModeEnabled). MaximizeWindow does nothing if the platform is not a desktop. MaximizeWindow is concurrent-safe. #### func [MinimizeWindow](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L263) [¶](#MinimizeWindow) ``` func MinimizeWindow() ``` MinimizeWindow minimizes the window. If the main loop does not start yet, MinimizeWindow does nothing. MinimizeWindow does nothing if the platform is not a desktop. MinimizeWindow is concurrent-safe. #### func [ReadDebugInfo](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/graphics.go#L68) [¶](#ReadDebugInfo) added in v2.4.0 ``` func ReadDebugInfo(d *[DebugInfo](#DebugInfo)) ``` ReadDebugInfo writes debug info (e.g. current graphics library) into a provided struct. #### func [RestoreWindow](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L281) [¶](#RestoreWindow) ``` func RestoreWindow() ``` RestoreWindow restores the window from its maximized or minimized state. RestoreWindow panics when the window is not maximized nor minimized. RestoreWindow is concurrent-safe. #### func [RunGame](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L228) [¶](#RunGame) ``` func RunGame(game [Game](#Game)) [error](/builtin#error) ``` RunGame starts the main loop and runs the game. game's Update function is called every tick to update the game logic. game's Draw function is called every frame to draw the screen. game's Layout function is called when necessary, and you can specify the logical screen size by the function. If game implements FinalScreenDrawer, its DrawFinalScreen is called after Draw. The argument screen represents the final screen. The argument offscreen is an offscreen modified at Draw. If game does not implement FinalScreenDrawer, the default rendering for the final screen is used. game's functions are called on the same goroutine. On browsers, it is strongly recommended to use iframe if you embed an Ebitengine application in your website. RunGame must be called on the main thread. Note that Ebitengine bounds the main goroutine to the main OS thread by runtime.LockOSThread. Ebitengine tries to call game's Update function 60 times a second by default. In other words, TPS (ticks per second) is 60 by default. This is not related to framerate (display's refresh rate). RunGame returns error when 1) an error happens in the underlying graphics driver, 2) an audio error happens or 3) Update returns an error. In the case of 3), RunGame returns the same error so far, but it is recommended to use errors.Is when you check the returned error is the error you want, rather than comparing the values with == or != directly. If you want to terminate a game on desktops, it is recommended to return Termination at Update, which will halt execution without returning an error value from RunGame. The size unit is device-independent pixel. Don't call RunGame or RunGameWithOptions twice or more in one process. #### func [RunGameWithOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L291) [¶](#RunGameWithOptions) added in v2.5.0 ``` func RunGameWithOptions(game [Game](#Game), options *[RunGameOptions](#RunGameOptions)) [error](/builtin#error) ``` RunGameWithOptions starts the main loop and runs the game with the specified options. game's Update function is called every tick to update the game logic. game's Draw function is called every frame to draw the screen. game's Layout function is called when necessary, and you can specify the logical screen size by the function. options can be nil. In this case, the default options are used. If game implements FinalScreenDrawer, its DrawFinalScreen is called after Draw. The argument screen represents the final screen. The argument offscreen is an offscreen modified at Draw. If game does not implement FinalScreenDrawer, the default rendering for the final screen is used. game's functions are called on the same goroutine. On browsers, it is strongly recommended to use iframe if you embed an Ebitengine application in your website. RunGameWithOptions must be called on the main thread. Note that Ebitengine bounds the main goroutine to the main OS thread by runtime.LockOSThread. Ebitengine tries to call game's Update function 60 times a second by default. In other words, TPS (ticks per second) is 60 by default. This is not related to framerate (display's refresh rate). RunGameWithOptions returns error when 1) an error happens in the underlying graphics driver, 2) an audio error happens or 3) Update returns an error. In the case of 3), RunGameWithOptions returns the same error so far, but it is recommended to use errors.Is when you check the returned error is the error you want, rather than comparing the values with == or != directly. If you want to terminate a game on desktops, it is recommended to return Termination at Update, which will halt execution without returning an error value from RunGameWithOptions. The size unit is device-independent pixel. Don't call RunGame or RunGameWithOptions twice or more in one process. #### func [ScheduleFrame](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L548) deprecated added in v2.2.0 ``` func ScheduleFrame() ``` ScheduleFrame schedules a next frame when the current FPS mode is FPSModeVsyncOffMinimum. ScheduleFrame is concurrent-safe. Deprecated: as of v2.5. Use SetScreenClearedEveryFrame(false) instead. See examples/skipdraw for GPU optimization with SetScreenClearedEveryFrame(false). #### func [ScreenSizeInFullscreen](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L335) [¶](#ScreenSizeInFullscreen) ``` func ScreenSizeInFullscreen() ([int](/builtin#int), [int](/builtin#int)) ``` ScreenSizeInFullscreen returns the size in device-independent pixels when the game is fullscreen. The adopted monitor is the 'current' monitor which the window belongs to. The returned value can be given to SetSize function if the perfectly fit fullscreen is needed. On browsers, ScreenSizeInFullscreen returns the 'window' (global object) size, not 'screen' size. ScreenSizeInFullscreen's returning value is different from the actual screen size and this is a known issue (#2145). For browsers, it is recommended to use Screen API (<https://developer.mozilla.org/en-US/docs/Web/API/Screen>) if needed. On mobiles, ScreenSizeInFullscreen returns (0, 0) so far. ScreenSizeInFullscreen's use cases are limited. If you are making a fullscreen application, you can use RunGame and the Game interface's Layout function instead. If you are making a not-fullscreen application but the application's behavior depends on the monitor size, ScreenSizeInFullscreen is useful. ScreenSizeInFullscreen must be called on the main thread before ebiten.RunGame, and is concurrent-safe after ebiten.RunGame. #### func [SetCursorMode](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L366) [¶](#SetCursorMode) ``` func SetCursorMode(mode [CursorModeType](#CursorModeType)) ``` SetCursorMode sets the render and capture mode of the mouse cursor. CursorModeVisible sets the cursor to always be visible. CursorModeHidden hides the system cursor when over the window. CursorModeCaptured hides the system cursor and locks it to the window. CursorModeCaptured also works on browsers. When the user exits the captured mode not by SetCursorMode but by the UI (e.g., pressing ESC), the previous cursor mode is set automatically. On browsers, setting CursorModeCaptured might be delayed especially just after escaping from a capture. On browsers, capturing a cursor requires a user gesture, otherwise SetCursorMode does nothing but leave an error message in console. This behavior varies across browser implementations. Check a user interaction before calling capturing a cursor e.g. by IsMouseButtonPressed or IsKeyPressed. SetCursorMode does nothing on mobiles. SetCursorMode is concurrent-safe. #### func [SetCursorShape](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L384) [¶](#SetCursorShape) added in v2.1.0 ``` func SetCursorShape(shape [CursorShapeType](#CursorShapeType)) ``` SetCursorShape sets the cursor shape. If the platform doesn't implement the given shape, the default cursor shape is used. SetCursorShape is concurrent-safe. #### func [SetFPSMode](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L538) deprecated added in v2.2.0 ``` func SetFPSMode(mode [FPSModeType](#FPSModeType)) ``` SetFPSMode sets the FPS mode. The default FPS mode is FPSModeVsyncOn. SetFPSMode is concurrent-safe. Deprecated: as of v2.5. Use SetVsyncEnabled instead. #### func [SetFullscreen](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L415) [¶](#SetFullscreen) ``` func SetFullscreen(fullscreen [bool](/builtin#bool)) ``` SetFullscreen changes the current mode to fullscreen or not on desktops and browsers. In fullscreen mode, the game screen is automatically enlarged to fit with the monitor. The current scale value is ignored. On desktops, Ebitengine uses 'windowed' fullscreen mode, which doesn't change your monitor's resolution. On browsers, triggering fullscreen requires a user gesture, otherwise SetFullscreen does nothing but leave an error message in console. This behavior varies across browser implementations. Check a user interaction before triggering fullscreen e.g. by IsMouseButtonPressed or IsKeyPressed. SetFullscreen does nothing on mobiles. SetFullscreen does nothing on macOS when the window is fullscreened natively by the macOS desktop instead of SetFullscreen(true). SetFullscreen is concurrent-safe. #### func [SetInitFocused](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L653) deprecated ``` func SetInitFocused(focused [bool](/builtin#bool)) ``` SetInitFocused sets whether the application is focused on show. The default value is true, i.e., the application is focused. SetInitFocused does nothing on mobile. SetInitFocused panics if this is called after the main loop. SetInitFocused is concurrent-safe. Deprecated: as of v2.5. Use RunGameWithOptions instead. #### func [SetMaxTPS](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L608) deprecated ``` func SetMaxTPS(tps [int](/builtin#int)) ``` SetMaxTPS sets the maximum TPS (ticks per second), that represents how many updating function is called per second. Deprecated: as of v2.4. Use SetTPS instead. #### func [SetMonitor](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/monitor.go#L40) [¶](#SetMonitor) added in v2.6.0 ``` func SetMonitor(monitor *[MonitorType](#MonitorType)) ``` SetMonitor sets the monitor that the window should be on. This can be called before or after Run. #### func [SetRunnableOnUnfocused](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L448) [¶](#SetRunnableOnUnfocused) ``` func SetRunnableOnUnfocused(runnableOnUnfocused [bool](/builtin#bool)) ``` SetRunnableOnUnfocused sets the state if the game runs even in background. If the given value is true, the game runs even in background e.g. when losing focus. The initial state is true. Known issue: On browsers, even if the state is on, the game doesn't run in background tabs. This is because browsers throttles background tabs not to often update. SetRunnableOnUnfocused does nothing on mobiles so far. SetRunnableOnUnfocused is concurrent-safe. #### func [SetScreenClearedEveryFrame](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L159) [¶](#SetScreenClearedEveryFrame) ``` func SetScreenClearedEveryFrame(cleared [bool](/builtin#bool)) ``` SetScreenClearedEveryFrame enables or disables the clearing of the screen at the beginning of each frame. The default value is true and the screen is cleared each frame by default. SetScreenClearedEveryFrame is concurrent-safe. #### func [SetScreenFilterEnabled](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L181) deprecated added in v2.3.0 ``` func SetScreenFilterEnabled(enabled [bool](/builtin#bool)) ``` SetScreenFilterEnabled enables/disables the use of the "screen" filter Ebitengine uses. The "screen" filter is a box filter from game to display resolution. If disabled, nearest-neighbor filtering will be used for scaling instead. The default state is true. SetScreenFilterEnabled is concurrent-safe, but takes effect only at the next Draw call. Deprecated: as of v2.5. Use FinalScreenDrawer instead. #### func [SetScreenTransparent](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L633) deprecated ``` func SetScreenTransparent(transparent [bool](/builtin#bool)) ``` SetScreenTransparent sets the state if the window is transparent. SetScreenTransparent panics if SetScreenTransparent is called after the main loop. SetScreenTransparent does nothing on mobiles. SetScreenTransparent is concurrent-safe. Deprecated: as of v2.5. Use RunGameWithOptions instead. #### func [SetTPS](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L600) [¶](#SetTPS) added in v2.4.0 ``` func SetTPS(tps [int](/builtin#int)) ``` SetTPS sets the maximum TPS (ticks per second), that represents how many updating function is called per second. The initial value is 60. If tps is SyncWithFPS, TPS is uncapped and the game is updated per frame. If tps is negative but not SyncWithFPS, SetTPS panics. SetTPS is concurrent-safe. #### func [SetVsyncEnabled](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L478) [¶](#SetVsyncEnabled) ``` func SetVsyncEnabled(enabled [bool](/builtin#bool)) ``` SetVsyncEnabled sets a boolean value indicating whether the game uses the display's vsync. #### func [SetWindowClosingHandled](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L310) [¶](#SetWindowClosingHandled) added in v2.2.0 ``` func SetWindowClosingHandled(handled [bool](/builtin#bool)) ``` SetWindowClosingHandled sets whether the window closing is handled or not on desktops. The default state is false. If the window closing is handled, the window is not closed immediately and the game can know whether the window is being closed or not by IsWindowBeingClosed. In this case, the window is not closed automatically. To end the game, you have to return an error value at the Game's Update function. SetWindowClosingHandled works only on desktops. SetWindowClosingHandled does nothing if the platform is not a desktop. SetWindowClosingHandled is concurrent-safe. #### func [SetWindowDecorated](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L60) [¶](#SetWindowDecorated) ``` func SetWindowDecorated(decorated [bool](/builtin#bool)) ``` SetWindowDecorated sets the state if the window is decorated. The window is decorated by default. SetWindowDecorated works only on desktops. SetWindowDecorated does nothing if the platform is not a desktop. SetWindowDecorated is concurrent-safe. #### func [SetWindowFloating](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L230) [¶](#SetWindowFloating) ``` func SetWindowFloating(float [bool](/builtin#bool)) ``` SetWindowFloating sets the state whether the window is always shown above all the other windows. SetWindowFloating does nothing if the platform is not a desktop. SetWindowFloating is concurrent-safe. #### func [SetWindowIcon](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L129) [¶](#SetWindowIcon) ``` func SetWindowIcon(iconImages [][image](/image).[Image](/image#Image)) ``` SetWindowIcon sets the icon of the game window. If len(iconImages) is 0, SetWindowIcon reverts the icon to the default one. For desktops, see the document of glfwSetWindowIcon of GLFW 3.2: ``` This function sets the icon of the specified window. If passed an array of candidate images, those of or closest to the sizes desired by the system are selected. If no images are specified, the window reverts to its default icon. The desired image sizes varies depending on platform and system settings. The selected images will be rescaled as needed. Good sizes include 16x16, 32x32 and 48x48. ``` As macOS windows don't have icons, SetWindowIcon doesn't work on macOS. SetWindowIcon doesn't work if the platform is not a desktop. SetWindowIcon is concurrent-safe. #### func [SetWindowMousePassthrough](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L332) [¶](#SetWindowMousePassthrough) added in v2.6.0 ``` func SetWindowMousePassthrough(enabled [bool](/builtin#bool)) ``` SetWindowMousePassthrough sets whether a mouse cursor passthroughs the window or not on desktops. The default state is false. Even if this is set true, some platforms might requrie a window to be undecorated in order to make the mouse cursor passthrough the window. SetWindowMousePassthrough works only on desktops. SetWindowMousePassthrough does nothing if the platform is not a desktop. SetWindowMousePassthrough is concurrent-safe. #### func [SetWindowPosition](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L157) [¶](#SetWindowPosition) ``` func SetWindowPosition(x, y [int](/builtin#int)) ``` SetWindowPosition sets the window position. The origin position is the upper-left corner of the current monitor. The unit is device-independent pixels. SetWindowPosition sets the original window position in fullscreen mode. SetWindowPosition does nothing if the platform is not a desktop. SetWindowPosition is concurrent-safe. #### func [SetWindowResizable](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L92) deprecated ``` func SetWindowResizable(resizable [bool](/builtin#bool)) ``` SetWindowResizable sets whether the window is resizable by the user's dragging on desktops. On the other environments, SetWindowResizable does nothing. Deprecated: as of v2.3, Use SetWindowResizingMode instead. #### func [SetWindowResizingMode](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L76) [¶](#SetWindowResizingMode) added in v2.3.0 ``` func SetWindowResizingMode(mode [WindowResizingModeType](#WindowResizingModeType)) ``` SetWindowResizingMode sets the mode in which a user resizes the window. SetWindowResizingMode is concurrent-safe. #### func [SetWindowSize](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L193) [¶](#SetWindowSize) ``` func SetWindowSize(width, height [int](/builtin#int)) ``` SetWindowSize sets the window size on desktops. SetWindowSize does nothing on other environments. Even if the application is in fullscreen mode, SetWindowSize sets the original window size. SetWindowSize panics if width or height is not a positive number. SetWindowSize is concurrent-safe. #### func [SetWindowSizeLimits](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L212) [¶](#SetWindowSizeLimits) added in v2.1.0 ``` func SetWindowSizeLimits(minw, minh, maxw, maxh [int](/builtin#int)) ``` SetWindowSizeLimits sets the limitation of the window size on desktops. A negative value indicates the size is not limited. SetWindowSizeLimits is concurrent-safe. #### func [SetWindowTitle](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L105) [¶](#SetWindowTitle) ``` func SetWindowTitle(title [string](/builtin#string)) ``` SetWindowTitle sets the title of the window. SetWindowTitle does nothing if the platform is not a desktop. SetWindowTitle is concurrent-safe. #### func [StandardGamepadAxisValue](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L252) [¶](#StandardGamepadAxisValue) added in v2.2.0 ``` func StandardGamepadAxisValue(id [GamepadID](#GamepadID), axis [StandardGamepadAxis](#StandardGamepadAxis)) [float64](/builtin#float64) ``` StandardGamepadAxisValue returns a float value [-1.0 - 1.0] of the given gamepad (id)'s standard axis (axis). StandardGamepadAxisValue returns 0 when the gamepad doesn't have a standard gamepad layout mapping. StandardGamepadAxisValue is concurrent safe. #### func [StandardGamepadButtonValue](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L265) [¶](#StandardGamepadButtonValue) added in v2.2.0 ``` func StandardGamepadButtonValue(id [GamepadID](#GamepadID), button [StandardGamepadButton](#StandardGamepadButton)) [float64](/builtin#float64) ``` StandardGamepadButtonValue returns a float value [0.0 - 1.0] of the given gamepad (id)'s standard button (button). StandardGamepadButtonValue returns 0 when the gamepad doesn't have a standard gamepad layout mapping. StandardGamepadButtonValue is concurrent safe. #### func [TPS](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L555) [¶](#TPS) added in v2.4.0 ``` func TPS() [int](/builtin#int) ``` TPS returns the current maximum TPS. TPS is concurrent-safe. #### func [TouchPosition](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L386) [¶](#TouchPosition) ``` func TouchPosition(id [TouchID](#TouchID)) ([int](/builtin#int), [int](/builtin#int)) ``` TouchPosition returns the position for the touch of the specified ID. If the touch of the specified ID is not present, TouchPosition returns (0, 0). TouchPosition is concurrent-safe. #### func [UpdateStandardGamepadLayoutMappings](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L350) [¶](#UpdateStandardGamepadLayoutMappings) added in v2.2.0 ``` func UpdateStandardGamepadLayoutMappings(mappings [string](/builtin#string)) ([bool](/builtin#bool), [error](/builtin#error)) ``` UpdateStandardGamepadLayoutMappings parses the specified string mappings in SDL_GameControllerDB format and updates the gamepad layout definitions. UpdateStandardGamepadLayoutMappings reports whether the mappings were applied, and returns an error in case any occurred while parsing the mappings. One or more input definitions can be provided separated by newlines. In particular, it is valid to pass an entire gamecontrollerdb.txt file. Note though that Ebitengine already includes its own copy of this file, so this call should only be necessary to add mappings for hardware not supported yet; ideally games using the StandardGamepad* functions should allow the user to provide mappings and then call this function if provided. When using this facility to support new hardware, please also send a pull request to <https://github.com/gabomdq/SDL_GameControllerDB> to make your mapping available to everyone else. A platform field in a line corresponds with a GOOS like the following: ``` "Windows": GOOS=windows "Mac OS X": GOOS=darwin (not ios) "Linux": GOOS=linux (not android) "Android": GOOS=android "iOS": GOOS=ios "": Any GOOS ``` On platforms where gamepad mappings are not managed by Ebitengine, this always returns false and nil. UpdateStandardGamepadLayoutMappings is concurrent-safe. UpdateStandardGamepadLayoutMappings mappings take effect immediately even for already connected gamepads. UpdateStandardGamepadLayoutMappings works atomically. If an error happens, nothing is updated. #### func [Vibrate](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/vibrate.go#L53) [¶](#Vibrate) added in v2.3.0 ``` func Vibrate(options *[VibrateOptions](#VibrateOptions)) ``` Vibrate vibrates the device with the specified options. Vibrate works on mobiles and browsers. On browsers, Magnitude in the options is ignored. On Android, this line is required in the manifest setting to use Vibrate: ``` <uses-permission android:name="android.permission.VIBRATE"/> ``` On Android, Magnitude in the options is recognized only when the API Level is 26 or newer. Otherwise, Magnitude is ignored. On iOS, CoreHaptics.framework is required to use Vibrate. On iOS, Vibrate works only when iOS version is 13.0 or newer. Otherwise, Vibrate does nothing. Vibrate is concurrent-safe. #### func [VibrateGamepad](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/vibrate.go#L76) [¶](#VibrateGamepad) added in v2.3.0 ``` func VibrateGamepad(gamepadID [GamepadID](#GamepadID), options *[VibrateGamepadOptions](#VibrateGamepadOptions)) ``` VibrateGamepad vibrates the specified gamepad with the specified options. VibrateGamepad works only on browsers and Nintendo Switch so far. VibrateGamepad is concurrent-safe. #### func [Wheel](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L99) [¶](#Wheel) ``` func Wheel() (xoff, yoff [float64](/builtin#float64)) ``` Wheel returns x and y offsets of the mouse wheel or touchpad scroll. It returns 0 if the wheel isn't being rolled. Wheel is concurrent-safe. #### func [WindowPosition](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L144) [¶](#WindowPosition) ``` func WindowPosition() (x, y [int](/builtin#int)) ``` WindowPosition returns the window position. The origin position is the upper-left corner of the current monitor. The unit is device-independent pixels. WindowPosition panics if the main loop does not start yet. WindowPosition returns the original window position in fullscreen mode. WindowPosition returns (0, 0) if the platform is not a desktop. WindowPosition is concurrent-safe. #### func [WindowSize](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L181) [¶](#WindowSize) ``` func WindowSize() ([int](/builtin#int), [int](/builtin#int)) ``` WindowSize returns the window size on desktops. WindowSize returns (0, 0) on other environments. Even if the application is in fullscreen mode, WindowSize returns the original window size If you need the fullscreen dimensions, see ScreenSizeInFullscreen instead. WindowSize is concurrent-safe. #### func [WindowSizeLimits](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L204) [¶](#WindowSizeLimits) added in v2.1.0 ``` func WindowSizeLimits() (minw, minh, maxw, maxh [int](/builtin#int)) ``` WindowSizeLimits returns the limitation of the window size on desktops. A negative value indicates the size is not limited. WindowSizeLimits is concurrent-safe. ### Types [¶](#pkg-types) #### type [Address](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L307) [¶](#Address) ``` type Address [int](/builtin#int) ``` Address represents a sampler address mode. ``` const ( // AddressUnsafe means there is no guarantee when the texture coordinates are out of range. AddressUnsafe [Address](#Address) = [Address](#Address)([builtinshader](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader).[AddressUnsafe](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader#AddressUnsafe)) // AddressClampToZero means that out-of-range texture coordinates return 0 (transparent). AddressClampToZero [Address](#Address) = [Address](#Address)([builtinshader](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader).[AddressClampToZero](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader#AddressClampToZero)) // AddressRepeat means that texture coordinates wrap to the other side of the texture. AddressRepeat [Address](#Address) = [Address](#Address)([builtinshader](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader).[AddressRepeat](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader#AddressRepeat)) ) ``` #### type [Blend](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/blend.go#L42) [¶](#Blend) added in v2.5.0 ``` type Blend struct { // BlendFactorSourceRGB is a factor for source RGB values. BlendFactorSourceRGB [BlendFactor](#BlendFactor) // BlendFactorSourceAlpha is a factor for source alpha values. BlendFactorSourceAlpha [BlendFactor](#BlendFactor) // BlendFactorDestinationRGB is a factor for destination RGB values. BlendFactorDestinationRGB [BlendFactor](#BlendFactor) // BlendFactorDestinationAlpha is a factor for destination apha values. BlendFactorDestinationAlpha [BlendFactor](#BlendFactor) // BlendOperationRGB is an operation for source and destination RGB values. BlendOperationRGB [BlendOperation](#BlendOperation) // BlendOperationAlpha is an operation for source and destination alpha values. BlendOperationAlpha [BlendOperation](#BlendOperation) } ``` Blend is a blending way of the source color and the destination color. The final color is calculated like this: ``` c_src: source RGB values c_dst: destination RGB values c_out: result RGB values α_src: source alpha values α_dst: destination alpha values α_out: result alpha values c_out = BlendOperationRGB((BlendFactorSourceRGB) × c_src, (BlendFactorDestinationRGB) × c_dst) α_out = BlendOperationAlpha((BlendFactorSourceAlpha) × α_src, (BlendFactorDestinationAlpha) × α_dst) ``` A blend factor is a factor for source and color destination color values. The default is source-over (regular alpha blending). A blend operation is a binary operator of a source color and a destination color. The default is adding. #### type [BlendFactor](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/blend.go#L89) [¶](#BlendFactor) added in v2.5.0 ``` type BlendFactor [byte](/builtin#byte) ``` BlendFactor is a factor for source and destination color values. ``` const ( // BlendFactorDefault is the default factor value. // The actual value depends on which source or destination this value is used. BlendFactorDefault [BlendFactor](#BlendFactor) = [iota](/builtin#iota) // BlendFactorZero is a factor: // // 0 BlendFactorZero // BlendFactorOne is a factor: // // 1 BlendFactorOne // BlendFactorSourceColor is a factor: // // (source RGBA) BlendFactorSourceColor // BlendFactorOneMinusSourceColor is a factor: // // 1 - (source color) BlendFactorOneMinusSourceColor // BlendFactorSourceAlpha is a factor: // // (source alpha) BlendFactorSourceAlpha // BlendFactorOneMinusSourceAlpha is a factor: // // 1 - (source alpha) BlendFactorOneMinusSourceAlpha // BlendFactorDestinationColor is a factor: // // (destination RGBA) BlendFactorDestinationColor // BlendFactorOneMinusDestinationColor is a factor: // // 1 - (destination RGBA) BlendFactorOneMinusDestinationColor // BlendFactorDestinationAlpha is a factor: // // (destination alpha) BlendFactorDestinationAlpha // BlendFactorOneMinusDestinationAlpha is a factor: // // 1 - (destination alpha) BlendFactorOneMinusDestinationAlpha ) ``` #### type [BlendOperation](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/blend.go#L183) [¶](#BlendOperation) added in v2.5.0 ``` type BlendOperation [byte](/builtin#byte) ``` BlendOperation is an operation for source and destination color values. ``` const ( // BlendOperationAdd represents adding the source and destination color. // // c_out = (BlendFactorSourceRGB) × c_src + (BlendFactorDestinationRGB) × c_dst // α_out = (BlendFactorSourceAlpha) × α_src + (BlendFactorDestinationAlpha) × α_dst BlendOperationAdd [BlendOperation](#BlendOperation) = [iota](/builtin#iota) // BlendOperationSubtract represents subtracting the source and destination color. // // c_out = (BlendFactorSourceRGB) × c_src - (BlendFactorDestinationRGB) × c_dst // α_out = (BlendFactorSourceAlpha) × α_src - (BlendFactorDestinationAlpha) × α_dst BlendOperationSubtract // BlendOperationReverseSubtract represents subtracting the source and destination color in a reversed order. // // c_out = (BlendFactorDestinationRGB) × c_dst - (BlendFactorSourceRGB) × c_src // α_out = (BlendFactorDestinationAlpha) × α_dst - (BlendFactorSourceAlpha) × α_src BlendOperationReverseSubtract ) ``` #### type [ColorM](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L38) deprecated ``` type ColorM struct { // contains filtered or unexported fields } ``` A ColorM represents a matrix to transform coloring when rendering an image. A ColorM is applied to the straight alpha color while an Image's pixels' format is alpha premultiplied. Before applying a matrix, a color is un-multiplied, and after applying the matrix, the color is multiplied again. The initial value is identity. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [Apply](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L70) deprecated ``` func (c *[ColorM](#ColorM)) Apply(clr [color](/image/color).[Color](/image/color#Color)) [color](/image/color).[Color](/image/color#Color) ``` Apply pre-multiplies a vector (r, g, b, a, 1) by the matrix where r, g, b, and a are clr's values in straight-alpha format. In other words, Apply calculates ColorM * (r, g, b, a, 1)^T. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [ChangeHSV](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L128) deprecated ``` func (c *[ColorM](#ColorM)) ChangeHSV(hueTheta [float64](/builtin#float64), saturationScale [float64](/builtin#float64), valueScale [float64](/builtin#float64)) ``` ChangeHSV changes HSV (Hue-Saturation-Value) values. hueTheta is a radian value to rotate hue. saturationScale is a value to scale saturation. valueScale is a value to scale value (a.k.a. brightness). This conversion uses RGB to/from YCrCb conversion. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [Concat](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L78) deprecated ``` func (c *[ColorM](#ColorM)) Concat(other [ColorM](#ColorM)) ``` Concat multiplies a color matrix with the other color matrix. This is same as muptiplying the matrix other and the matrix c in this order. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [Element](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L135) deprecated ``` func (c *[ColorM](#ColorM)) Element(i, j [int](/builtin#int)) [float64](/builtin#float64) ``` Element returns a value of a matrix at (i, j). Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [Invert](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L158) deprecated ``` func (c *[ColorM](#ColorM)) Invert() ``` Invert inverts the matrix. If c is not invertible, Invert panics. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [IsInvertible](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L150) deprecated ``` func (c *[ColorM](#ColorM)) IsInvertible() [bool](/builtin#bool) ``` IsInvertible returns a boolean value indicating whether the matrix c is invertible or not. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [Reset](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L61) deprecated ``` func (c *[ColorM](#ColorM)) Reset() ``` Reset resets the ColorM as identity. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [RotateHue](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L116) deprecated ``` func (c *[ColorM](#ColorM)) RotateHue(theta [float64](/builtin#float64)) ``` RotateHue rotates the hue. theta represents rotating angle in radian. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [Scale](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L89) deprecated ``` func (c *[ColorM](#ColorM)) Scale(r, g, b, a [float64](/builtin#float64)) ``` Scale scales the matrix by (r, g, b, a). Deprecated: as of v2.5. Use ColorScale or the colorm package instead. #### func (*ColorM) [ScaleWithColor](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L96) deprecated added in v2.3.0 ``` func (c *[ColorM](#ColorM)) ScaleWithColor(clr [color](/image/color).[Color](/image/color#Color)) ``` ScaleWithColor scales the matrix by clr. Deprecated: as of v2.5. Use ColorScale or the colorm package instead. #### func (*ColorM) [SetElement](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L142) deprecated ``` func (c *[ColorM](#ColorM)) SetElement(i, j [int](/builtin#int), element [float64](/builtin#float64)) ``` SetElement sets an element at (i, j). Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [String](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L54) deprecated ``` func (c *[ColorM](#ColorM)) String() [string](/builtin#string) ``` String returns a string representation of ColorM. Deprecated: as of v2.5. Use the colorm package instead. #### func (*ColorM) [Translate](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorm.go#L108) deprecated ``` func (c *[ColorM](#ColorM)) Translate(r, g, b, a [float64](/builtin#float64)) ``` Translate translates the matrix by (r, g, b, a). Deprecated: as of v2.5. Use the colorm package instead. #### type [ColorScale](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L26) [¶](#ColorScale) added in v2.5.0 ``` type ColorScale struct { // contains filtered or unexported fields } ``` ColorScale represents a scale of RGBA color. ColorScale is intended to be applied to a premultiplied-alpha color value. The initial (zero) value of ColorScale is an identity scale (1, 1, 1, 1). #### func (*ColorScale) [A](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L61) [¶](#ColorScale.A) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) A() [float32](/builtin#float32) ``` A returns the alpha scale. #### func (*ColorScale) [B](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L56) [¶](#ColorScale.B) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) B() [float32](/builtin#float32) ``` B returns the blue scale. #### func (*ColorScale) [G](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L51) [¶](#ColorScale.G) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) G() [float32](/builtin#float32) ``` G returns the green scale. #### func (*ColorScale) [R](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L46) [¶](#ColorScale.R) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) R() [float32](/builtin#float32) ``` R returns the red scale. #### func (*ColorScale) [Reset](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L38) [¶](#ColorScale.Reset) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) Reset() ``` Reset resets the ColorScale as identity. #### func (*ColorScale) [Scale](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L94) [¶](#ColorScale.Scale) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) Scale(r, g, b, a [float32](/builtin#float32)) ``` Scale multiplies the given values to the current scale. Scale is slightly different from colorm.ColorM's Scale in terms of alphas. ColorScale is applied to premultiplied-alpha colors, while colorm.ColorM is applied to straight-alpha colors. Thus, ColorM.Scale(r, g, b, a) equals to ColorScale.Scale(r*a, g*a, b*a, a). #### func (*ColorScale) [ScaleAlpha](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L102) [¶](#ColorScale.ScaleAlpha) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) ScaleAlpha(a [float32](/builtin#float32)) ``` ScaleAlpha multiplies the given alpha value to the current scale. #### func (*ColorScale) [ScaleWithColor](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L110) [¶](#ColorScale.ScaleWithColor) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) ScaleWithColor(clr [color](/image/color).[Color](/image/color#Color)) ``` ScaleWithColor multiplies the given color values to the current scale. #### func (*ColorScale) [ScaleWithColorScale](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L116) [¶](#ColorScale.ScaleWithColorScale) added in v2.6.0 ``` func (c *[ColorScale](#ColorScale)) ScaleWithColorScale(colorScale [ColorScale](#ColorScale)) ``` ScaleWithColorScale multiplies the given color scale values to the current scale. #### func (*ColorScale) [SetA](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L85) [¶](#ColorScale.SetA) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) SetA(a [float32](/builtin#float32)) ``` SetA overwrites the current alpha value with a. #### func (*ColorScale) [SetB](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L80) [¶](#ColorScale.SetB) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) SetB(b [float32](/builtin#float32)) ``` SetB overwrites the current blue value with b. #### func (*ColorScale) [SetG](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L75) [¶](#ColorScale.SetG) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) SetG(g [float32](/builtin#float32)) ``` SetG overwrites the current green value with g. #### func (*ColorScale) [SetR](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L70) [¶](#ColorScale.SetR) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) SetR(r [float32](/builtin#float32)) ``` SetR overwrites the current red value with r. #### func (*ColorScale) [String](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/colorscale.go#L33) [¶](#ColorScale.String) added in v2.5.0 ``` func (c *[ColorScale](#ColorScale)) String() [string](/builtin#string) ``` String returns a string representing the color scale. #### type [ColorScaleMode](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L333) [¶](#ColorScaleMode) added in v2.5.0 ``` type ColorScaleMode [int](/builtin#int) ``` ColorScaleMode is the mode of color scales in vertices. ``` const ( // ColorScaleModeStraightAlpha indicates color scales in vertices are // straight-alpha encoded color multiplier. ColorScaleModeStraightAlpha [ColorScaleMode](#ColorScaleMode) = [iota](/builtin#iota) // ColorScaleModePremultipliedAlpha indicates color scales in vertices are // premultiplied-alpha encoded color multiplier. ColorScaleModePremultipliedAlpha ) ``` #### type [CompositeMode](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/compositemode.go#L24) deprecated ``` type CompositeMode [int](/builtin#int) ``` CompositeMode represents Porter-Duff composition mode. Deprecated: as of v2.5. Use Blend instead. ``` const ( // CompositeModeCustom indicates to refer Blend. CompositeModeCustom [CompositeMode](#CompositeMode) = [iota](/builtin#iota) // Deprecated: as of v2.5. Use BlendSourceOver instead. CompositeModeSourceOver // Deprecated: as of v2.5. Use BlendClear instead. CompositeModeClear // Deprecated: as of v2.5. Use BlendCopy instead. CompositeModeCopy // Deprecated: as of v2.5. Use BlendDestination instead. CompositeModeDestination // Deprecated: as of v2.5. Use BlendDestinationOver instead. CompositeModeDestinationOver // Deprecated: as of v2.5. Use BlendSourceIn instead. CompositeModeSourceIn // Deprecated: as of v2.5. Use BlendDestinationIn instead. CompositeModeDestinationIn // Deprecated: as of v2.5. Use BlendSourceOut instead. CompositeModeSourceOut // Deprecated: as of v2.5. Use BlendDestinationOut instead. CompositeModeDestinationOut // Deprecated: as of v2.5. Use BlendSourceAtop instead. CompositeModeSourceAtop // Deprecated: as of v2.5. Use BlendDestinationAtop instead. CompositeModeDestinationAtop // Deprecated: as of v2.5. Use BlendXor instead. CompositeModeXor // Deprecated: as of v2.5. Use BlendLighter instead. CompositeModeLighter // Deprecated: as of v2.5. Use Blend with BlendFactorDestinationColor and BlendFactorZero instead. CompositeModeMultiply ) ``` #### type [CursorModeType](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/cursor.go#L22) [¶](#CursorModeType) ``` type CursorModeType = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorMode](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorMode) ``` CursorModeType represents a render and coordinate mode of a mouse cursor. ``` const ( CursorModeVisible [CursorModeType](#CursorModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorModeVisible](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorModeVisible) CursorModeHidden [CursorModeType](#CursorModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorModeHidden](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorModeHidden) CursorModeCaptured [CursorModeType](#CursorModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorModeCaptured](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorModeCaptured) ) ``` CursorModeTypes #### func [CursorMode](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L344) [¶](#CursorMode) ``` func CursorMode() [CursorModeType](#CursorModeType) ``` CursorMode returns the current cursor mode. CursorMode returns CursorModeHidden on mobiles. CursorMode is concurrent-safe. #### type [CursorShapeType](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/cursor.go#L32) [¶](#CursorShapeType) added in v2.1.0 ``` type CursorShapeType = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShape](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShape) ``` CursorShapeType represents a shape of a mouse cursor. ``` const ( CursorShapeDefault [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeDefault](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeDefault)) CursorShapeText [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeText](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeText)) CursorShapeCrosshair [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeCrosshair](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeCrosshair)) CursorShapePointer [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapePointer](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapePointer)) CursorShapeEWResize [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeEWResize](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeEWResize)) CursorShapeNSResize [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeNSResize](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeNSResize)) CursorShapeNESWResize [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeNESWResize](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeNESWResize)) CursorShapeNWSEResize [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeNWSEResize](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeNWSEResize)) CursorShapeMove [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeMove](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeMove)) CursorShapeNotAllowed [CursorShapeType](#CursorShapeType) = [CursorShapeType](#CursorShapeType)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[CursorShapeNotAllowed](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#CursorShapeNotAllowed)) ) ``` CursorShapeTypes #### func [CursorShape](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L375) [¶](#CursorShape) added in v2.1.0 ``` func CursorShape() [CursorShapeType](#CursorShapeType) ``` CursorShape returns the current cursor shape. CursorShape returns CursorShapeDefault on mobiles. CursorShape is concurrent-safe. #### type [DebugInfo](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/graphics.go#L62) [¶](#DebugInfo) added in v2.4.0 ``` type DebugInfo struct { // GraphicsLibrary represents the graphics library currently in use. GraphicsLibrary [GraphicsLibrary](#GraphicsLibrary) } ``` DebugInfo is a struct to store debug info about the graphics. #### type [DrawImageOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L107) [¶](#DrawImageOptions) ``` type DrawImageOptions struct { // GeoM is a geometry matrix to draw. // The default (zero) value is identity, which draws the image at (0, 0). GeoM [GeoM](#GeoM) // ColorScale is a scale of color. // // ColorScale is slightly different from colorm.ColorM's Scale in terms of alphas. // ColorScale is applied to premultiplied-alpha colors, while colorm.ColorM is applied to straight-alpha colors. // Thus, ColorM.Scale(r, g, b, a) equals to ColorScale.Scale(r*a, g*a, b*a, a). // // The default (zero) value is identity, which is (1, 1, 1, 1). ColorScale [ColorScale](#ColorScale) // ColorM is a color matrix to draw. // The default (zero) value is identity, which doesn't change any color. // // Deprecated: as of v2.5. Use ColorScale or the package colorm instead. ColorM [ColorM](#ColorM) // CompositeMode is a composite mode to draw. // The default (zero) value is CompositeModeCustom (Blend is used). // // Deprecated: as of v2.5. Use Blend instead. CompositeMode [CompositeMode](#CompositeMode) // Blend is a blending way of the source color and the destination color. // Blend is used only when CompositeMode is CompositeModeCustom. // The default (zero) value is the regular alpha blending. Blend [Blend](#Blend) // Filter is a type of texture filter. // The default (zero) value is FilterNearest. Filter [Filter](#Filter) } ``` DrawImageOptions represents options for DrawImage. #### type [DrawRectShaderOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L685) [¶](#DrawRectShaderOptions) ``` type DrawRectShaderOptions struct { // GeoM is a geometry matrix to draw. // The default (zero) value is identity, which draws the rectangle at (0, 0). GeoM [GeoM](#GeoM) // ColorScale is a scale of color. // This scaling values are passed to the `color vec4` argument of the Fragment function in a Kage program. // The default (zero) value is identity, which is (1, 1, 1, 1). ColorScale [ColorScale](#ColorScale) // CompositeMode is a composite mode to draw. // The default (zero) value is CompositeModeCustom (Blend is used). // // Deprecated: as of v2.5. Use Blend instead. CompositeMode [CompositeMode](#CompositeMode) // Blend is a blending way of the source color and the destination color. // Blend is used only when CompositeMode is CompositeModeCustom. // The default (zero) value is the regular alpha blending. Blend [Blend](#Blend) // Uniforms is a set of uniform variables for the shader. // The keys are the names of the uniform variables. // The values must be a numeric type, or a slice or an array of a numeric type. // If the uniform variable type is an array, a vector or a matrix, // you have to specify linearly flattened values as a slice or an array. // For example, if the uniform variable type is [4]vec4, the length will be 16. // // If a uniform variable's name doesn't exist in Uniforms, this is treated as if zero values are specified. Uniforms map[[string](/builtin#string)][any](/builtin#any) // Images is a set of the source images. // All the images' sizes must be the same. Images [4]*[Image](#Image) } ``` DrawRectShaderOptions represents options for DrawRectShader. #### type [DrawTrianglesOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L346) [¶](#DrawTrianglesOptions) ``` type DrawTrianglesOptions struct { // ColorM is a color matrix to draw. // The default (zero) value is identity, which doesn't change any color. // ColorM is applied before vertex color scale is applied. // // Deprecated: as of v2.5. Use the package colorm instead. ColorM [ColorM](#ColorM) // ColorScaleMode is the mode of color scales in vertices. // ColorScaleMode affects the color calculation with vertex colors, but doesn't affect with a color matrix. // The default (zero) value is ColorScaleModeStraightAlpha. ColorScaleMode [ColorScaleMode](#ColorScaleMode) // CompositeMode is a composite mode to draw. // The default (zero) value is CompositeModeCustom (Blend is used). // // Deprecated: as of v2.5. Use Blend instead. CompositeMode [CompositeMode](#CompositeMode) // Blend is a blending way of the source color and the destination color. // Blend is used only when CompositeMode is CompositeModeCustom. // The default (zero) value is the regular alpha blending. Blend [Blend](#Blend) // Filter is a type of texture filter. // The default (zero) value is FilterNearest. Filter [Filter](#Filter) // Address is a sampler address mode. // The default (zero) value is AddressUnsafe. Address [Address](#Address) // FillRule indicates the rule how an overlapped region is rendered. // // The rule EvenOdd is useful when you want to render a complex polygon. // A complex polygon is a non-convex polygon like a concave polygon, a polygon with holes, or a self-intersecting polygon. // See examples/vector for actual usages. // // The default (zero) value is FillAll. FillRule [FillRule](#FillRule) // AntiAlias indicates whether the rendering uses anti-alias or not. // AntiAlias is useful especially when you pass vertices from the vector package. // // AntiAlias increases internal draw calls and might affect performance. // Use the build tag `ebitenginedebug` to check the number of draw calls if you care. // // The default (zero) value is false. AntiAlias [bool](/builtin#bool) } ``` DrawTrianglesOptions represents options for DrawTriangles. #### type [DrawTrianglesShaderOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L524) [¶](#DrawTrianglesShaderOptions) ``` type DrawTrianglesShaderOptions struct { // CompositeMode is a composite mode to draw. // The default (zero) value is CompositeModeCustom (Blend is used). // // Deprecated: as of v2.5. Use Blend instead. CompositeMode [CompositeMode](#CompositeMode) // Blend is a blending way of the source color and the destination color. // Blend is used only when CompositeMode is CompositeModeCustom. // The default (zero) value is the regular alpha blending. Blend [Blend](#Blend) // Uniforms is a set of uniform variables for the shader. // The keys are the names of the uniform variables. // The values must be a numeric type, or a slice or an array of a numeric type. // If the uniform variable type is an array, a vector or a matrix, // you have to specify linearly flattened values as a slice or an array. // For example, if the uniform variable type is [4]vec4, the length will be 16. // // If a uniform variable's name doesn't exist in Uniforms, this is treated as if zero values are specified. Uniforms map[[string](/builtin#string)][any](/builtin#any) // Images is a set of the source images. // All the images' sizes must be the same. Images [4]*[Image](#Image) // FillRule indicates the rule how an overlapped region is rendered. // // The rule EvenOdd is useful when you want to render a complex polygon. // A complex polygon is a non-convex polygon like a concave polygon, a polygon with holes, or a self-intersecting polygon. // See examples/vector for actual usages. // // The default (zero) value is FillAll. FillRule [FillRule](#FillRule) // AntiAlias indicates whether the rendering uses anti-alias or not. // AntiAlias is useful especially when you pass vertices from the vector package. // // AntiAlias increases internal draw calls and might affect performance. // Use the build tag `ebitenginedebug` to check the number of draw calls if you care. // // The default (zero) value is false. AntiAlias [bool](/builtin#bool) } ``` DrawTrianglesShaderOptions represents options for DrawTrianglesShader. #### type [FPSModeType](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L489) deprecated added in v2.2.0 ``` type FPSModeType = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[FPSModeType](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#FPSModeType) ``` FPSModeType is a type of FPS modes. Deprecated: as of v2.5. Use SetVsyncEnabled instead. ``` const ( // FPSModeVsyncOn indicates that the game tries to sync the display's refresh rate. // FPSModeVsyncOn is the default mode. // // Deprecated: as of v2.5. Use SetVsyncEnabled(true) instead. FPSModeVsyncOn [FPSModeType](#FPSModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[FPSModeVsyncOn](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#FPSModeVsyncOn) // FPSModeVsyncOffMaximum indicates that the game doesn't sync with vsync, and // the game is updated whenever possible. // // Be careful that FPSModeVsyncOffMaximum might consume a lot of battery power. // // In FPSModeVsyncOffMaximum, the game's Draw is called almost without sleeping. // The game's Update is called based on the specified TPS. // // Deprecated: as of v2.5. Use SetVsyncEnabled(false) instead. FPSModeVsyncOffMaximum [FPSModeType](#FPSModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[FPSModeVsyncOffMaximum](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#FPSModeVsyncOffMaximum) // FPSModeVsyncOffMinimum indicates that the game doesn't sync with vsync, and // the game is updated only when necessary. // // FPSModeVsyncOffMinimum is useful for relatively static applications to save battery power. // // In FPSModeVsyncOffMinimum, the game's Update and Draw are called only when // 1) new inputting except for gamepads is detected, or 2) ScheduleFrame is called. // In FPSModeVsyncOffMinimum, TPS is SyncWithFPS no matter what TPS is specified at SetTPS. // // Deprecated: as of v2.5. Use SetScreenClearedEveryFrame(false) instead. // See examples/skipdraw for GPU optimization with SetScreenClearedEveryFrame(false). FPSModeVsyncOffMinimum [FPSModeType](#FPSModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[FPSModeVsyncOffMinimum](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#FPSModeVsyncOffMinimum) ) ``` #### func [FPSMode](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L528) deprecated added in v2.2.0 ``` func FPSMode() [FPSModeType](#FPSModeType) ``` FPSMode returns the current FPS mode. FPSMode is concurrent-safe. Deprecated: as of v2.5. Use SetVsyncEnabled instead. #### type [FillRule](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L321) [¶](#FillRule) added in v2.2.0 ``` type FillRule [int](/builtin#int) ``` FillRule is the rule whether an overlapped region is rendered with DrawTriangles(Shader). ``` const ( // FillAll indicates all the triangles are rendered regardless of overlaps. FillAll [FillRule](#FillRule) = [iota](/builtin#iota) // EvenOdd means that triangles are rendered based on the even-odd rule. // If and only if the number of overlaps is odd, the region is rendered. EvenOdd ) ``` #### type [Filter](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/graphics.go#L23) [¶](#Filter) ``` type Filter [int](/builtin#int) ``` Filter represents the type of texture filter to be used when an image is magnified or minified. ``` const ( // FilterNearest represents nearest (crisp-edged) filter FilterNearest [Filter](#Filter) = [Filter](#Filter)([builtinshader](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader).[FilterNearest](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader#FilterNearest)) // FilterLinear represents linear filter FilterLinear [Filter](#Filter) = [Filter](#Filter)([builtinshader](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader).[FilterLinear](/github.com/hajimehoshi/ebiten/[email protected]/internal/builtinshader#FilterLinear)) ) ``` #### type [FinalScreen](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L98) [¶](#FinalScreen) added in v2.5.0 ``` type FinalScreen interface { Bounds() [image](/image).[Rectangle](/image#Rectangle) DrawImage(img *[Image](#Image), options *[DrawImageOptions](#DrawImageOptions)) DrawTriangles(vertices [][Vertex](#Vertex), indices [][uint16](/builtin#uint16), img *[Image](#Image), options *[DrawTrianglesOptions](#DrawTrianglesOptions)) DrawRectShader(width, height [int](/builtin#int), shader *[Shader](#Shader), options *[DrawRectShaderOptions](#DrawRectShaderOptions)) DrawTrianglesShader(vertices [][Vertex](#Vertex), indices [][uint16](/builtin#uint16), shader *[Shader](#Shader), options *[DrawTrianglesShaderOptions](#DrawTrianglesShaderOptions)) Clear() Fill(clr [color](/image/color).[Color](/image/color#Color)) // contains filtered or unexported methods } ``` FinalScreen represents the final screen image. FinalScreen implements a part of Image functions. #### type [FinalScreenDrawer](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L116) [¶](#FinalScreenDrawer) added in v2.5.0 ``` type FinalScreenDrawer interface { // DrawFinalScreen draws the final screen. // If a game implementing FinalScreenDrawer is passed to RunGame, DrawFinalScreen is called after Draw. // screen is the final screen. offscreen is the offscreen modified at Draw. // // geoM is the default geometry matrix to render the offscreen onto the final screen. // geoM scales the offscreen to fit the final screen without changing the aspect ratio, and // translates the offscreen to put it in the center of the final screen. DrawFinalScreen(screen [FinalScreen](#FinalScreen), offscreen *[Image](#Image), geoM [GeoM](#GeoM)) } ``` FinalScreenDrawer is an interface for a custom function to render the final screen. For an actual usage, see examples/flappy. #### type [Game](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L29) [¶](#Game) ``` type Game interface { // Update updates a game by one tick. The given argument represents a screen image. // // Update updates only the game logic and Draw draws the screen. // // You can assume that Update is always called TPS-times per second (60 by default), and you can assume // that the time delta between two Updates is always 1 / TPS [s] (1/60[s] by default). As Ebitengine already // adjusts the number of Update calls, you don't have to measure time deltas in Update by e.g. OS timers. // // An actual TPS is available by ActualTPS(), and the result might slightly differ from your expected TPS, // but still, your game logic should stick to the fixed time delta and should not rely on ActualTPS() value. // This API is for just measurement and/or debugging. In the long run, the number of Update calls should be // adjusted based on the set TPS on average. // // An actual time delta between two Updates might be bigger than expected. In this case, your game's // Update or Draw takes longer than they should. In this case, there is nothing other than optimizing // your game implementation. // // In the first frame, it is ensured that Update is called at least once before Draw. You can use Update // to initialize the game state. // // After the first frame, Update might not be called or might be called once // or more for one frame. The frequency is determined by the current TPS (tick-per-second). // // If the error returned is nil, game execution proceeds normally. // If the error returned is Termination, game execution halts, but does not return an error from RunGame. // If the error returned is any other non-nil value, game execution halts and the error is returned from RunGame. Update() [error](/builtin#error) // Draw draws the game screen by one frame. // // The give argument represents a screen image. The updated content is adopted as the game screen. // // The frequency of Draw calls depends on the user's environment, especially the monitors refresh rate. // For portability, you should not put your game logic in Draw in general. Draw(screen *[Image](#Image)) // Layout accepts a native outside size in device-independent pixels and returns the game's logical screen // size. // // On desktops, the outside is a window or a monitor (fullscreen mode). On browsers, the outside is a body // element. On mobiles, the outside is the view's size. // // Even though the outside size and the screen size differ, the rendering scale is automatically adjusted to // fit with the outside. // // Layout is called almost every frame. // // It is ensured that Layout is invoked before Update is called in the first frame. // // If Layout returns non-positive numbers, the caller can panic. // // You can return a fixed screen size if you don't care, or you can also return a calculated screen size // adjusted with the given outside size. // // If the game implements the interface LayoutFer, Layout is never called and LayoutF is called instead. Layout(outsideWidth, outsideHeight [int](/builtin#int)) (screenWidth, screenHeight [int](/builtin#int)) } ``` Game defines necessary functions for a game. #### type [GamepadButton](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/gamepad.go#L23) [¶](#GamepadButton) ``` type GamepadButton = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button) ``` GamepadButton represents a gamepad button. ``` const ( GamepadButton0 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button0](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button0) GamepadButton1 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button1](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button1) GamepadButton2 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button2](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button2) GamepadButton3 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button3](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button3) GamepadButton4 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button4](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button4) GamepadButton5 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button5](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button5) GamepadButton6 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button6](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button6) GamepadButton7 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button7](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button7) GamepadButton8 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button8](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button8) GamepadButton9 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button9](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button9) GamepadButton10 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button10](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button10) GamepadButton11 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button11](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button11) GamepadButton12 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button12](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button12) GamepadButton13 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button13](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button13) GamepadButton14 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button14](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button14) GamepadButton15 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button15](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button15) GamepadButton16 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button16](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button16) GamepadButton17 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button17](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button17) GamepadButton18 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button18](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button18) GamepadButton19 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button19](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button19) GamepadButton20 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button20](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button20) GamepadButton21 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button21](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button21) GamepadButton22 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button22](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button22) GamepadButton23 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button23](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button23) GamepadButton24 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button24](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button24) GamepadButton25 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button25](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button25) GamepadButton26 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button26](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button26) GamepadButton27 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button27](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button27) GamepadButton28 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button28](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button28) GamepadButton29 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button29](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button29) GamepadButton30 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button30](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button30) GamepadButton31 [GamepadButton](#GamepadButton) = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[Button31](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#Button31) GamepadButtonMax [GamepadButton](#GamepadButton) = [GamepadButton31](#GamepadButton31) ) ``` GamepadButtons #### type [GamepadID](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L114) [¶](#GamepadID) ``` type GamepadID = [gamepad](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad).[ID](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepad#ID) ``` GamepadID represents a gamepad identifier. #### func [AppendGamepadIDs](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L151) [¶](#AppendGamepadIDs) added in v2.2.0 ``` func AppendGamepadIDs(gamepadIDs [][GamepadID](#GamepadID)) [][GamepadID](#GamepadID) ``` AppendGamepadIDs appends available gamepad IDs to gamepadIDs, and returns the extended buffer. Giving a slice that already has enough capacity works efficiently. AppendGamepadIDs is concurrent-safe. #### func [GamepadIDs](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L158) deprecated ``` func GamepadIDs() [][GamepadID](#GamepadID) ``` GamepadIDs returns a slice indicating available gamepad IDs. Deprecated: as of v2.2. Use AppendGamepadIDs instead. #### type [GeoM](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L28) [¶](#GeoM) ``` type GeoM struct { // contains filtered or unexported fields } ``` A GeoM represents a matrix to transform geometry when rendering an image. The initial value is identity. #### func (*GeoM) [Apply](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L55) [¶](#GeoM.Apply) ``` func (g *[GeoM](#GeoM)) Apply(x, y [float64](/builtin#float64)) ([float64](/builtin#float64), [float64](/builtin#float64)) ``` Apply pre-multiplies a vector (x, y, 1) by the matrix. In other words, Apply calculates GeoM * (x, y, 1)^T. The return value is x and y values of the result vector. #### func (*GeoM) [Concat](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L85) [¶](#GeoM.Concat) ``` func (g *[GeoM](#GeoM)) Concat(other [GeoM](#GeoM)) ``` Concat multiplies a geometry matrix with the other geometry matrix. This is same as multiplying the matrix other and the matrix g in this order. #### func (*GeoM) [Element](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L64) [¶](#GeoM.Element) ``` func (g *[GeoM](#GeoM)) Element(i, j [int](/builtin#int)) [float64](/builtin#float64) ``` Element returns a value of a matrix at (i, j). #### func (*GeoM) [Invert](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L180) [¶](#GeoM.Invert) ``` func (g *[GeoM](#GeoM)) Invert() ``` Invert inverts the matrix. If g is not invertible, Invert panics. #### func (*GeoM) [IsInvertible](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L174) [¶](#GeoM.IsInvertible) ``` func (g *[GeoM](#GeoM)) IsInvertible() [bool](/builtin#bool) ``` IsInvertible returns a boolean value indicating whether the matrix g is invertible or not. #### func (*GeoM) [Reset](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L43) [¶](#GeoM.Reset) ``` func (g *[GeoM](#GeoM)) Reset() ``` Reset resets the GeoM as identity. #### func (*GeoM) [Rotate](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L126) [¶](#GeoM.Rotate) ``` func (g *[GeoM](#GeoM)) Rotate(theta [float64](/builtin#float64)) ``` Rotate rotates the matrix by theta. The unit is radian. #### func (*GeoM) [Scale](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L102) [¶](#GeoM.Scale) ``` func (g *[GeoM](#GeoM)) Scale(x, y [float64](/builtin#float64)) ``` Scale scales the matrix by (x, y). #### func (*GeoM) [SetElement](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L202) [¶](#GeoM.SetElement) ``` func (g *[GeoM](#GeoM)) SetElement(i, j [int](/builtin#int), element [float64](/builtin#float64)) ``` SetElement sets an element at (i, j). #### func (*GeoM) [Skew](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L149) [¶](#GeoM.Skew) ``` func (g *[GeoM](#GeoM)) Skew(skewX, skewY [float64](/builtin#float64)) ``` Skew skews the matrix by (skewX, skewY). The unit is radian. #### func (*GeoM) [String](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L38) [¶](#GeoM.String) ``` func (g *[GeoM](#GeoM)) String() [string](/builtin#string) ``` String returns a string representation of GeoM. #### func (*GeoM) [Translate](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/geom.go#L119) [¶](#GeoM.Translate) ``` func (g *[GeoM](#GeoM)) Translate(tx, ty [float64](/builtin#float64)) ``` Translate translates the matrix by (tx, ty). #### type [GraphicsLibrary](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/graphics.go#L34) [¶](#GraphicsLibrary) added in v2.4.0 ``` type GraphicsLibrary [int](/builtin#int) ``` GraphicsLibrary represents graphics libraries supported by the engine. ``` const ( GraphicsLibraryAuto [GraphicsLibrary](#GraphicsLibrary) = [GraphicsLibrary](#GraphicsLibrary)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[GraphicsLibraryAuto](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#GraphicsLibraryAuto)) // GraphicsLibraryUnknown represents the state at which graphics library cannot be determined, // e.g. hasn't loaded yet or failed to initialize. GraphicsLibraryUnknown [GraphicsLibrary](#GraphicsLibrary) = [GraphicsLibrary](#GraphicsLibrary)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[GraphicsLibraryUnknown](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#GraphicsLibraryUnknown)) // GraphicsLibraryOpenGL represents the graphics library OpenGL. GraphicsLibraryOpenGL [GraphicsLibrary](#GraphicsLibrary) = [GraphicsLibrary](#GraphicsLibrary)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[GraphicsLibraryOpenGL](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#GraphicsLibraryOpenGL)) // GraphicsLibraryDirectX represents the graphics library Microsoft DirectX. GraphicsLibraryDirectX [GraphicsLibrary](#GraphicsLibrary) = [GraphicsLibrary](#GraphicsLibrary)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[GraphicsLibraryDirectX](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#GraphicsLibraryDirectX)) // GraphicsLibraryMetal represents the graphics library Apple's Metal. GraphicsLibraryMetal [GraphicsLibrary](#GraphicsLibrary) = [GraphicsLibrary](#GraphicsLibrary)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[GraphicsLibraryMetal](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#GraphicsLibraryMetal)) ) ``` #### func (GraphicsLibrary) [String](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/graphics.go#L54) [¶](#GraphicsLibrary.String) added in v2.5.0 ``` func (g [GraphicsLibrary](#GraphicsLibrary)) String() [string](/builtin#string) ``` String returns a string representing the graphics library. #### type [Image](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L34) [¶](#Image) ``` type Image struct { // contains filtered or unexported fields } ``` Image represents a rectangle set of pixels. The pixel format is alpha-premultiplied RGBA. Image implements the standard image.Image and draw.Image interfaces. #### func [NewImage](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L1030) [¶](#NewImage) ``` func NewImage(width, height [int](/builtin#int)) *[Image](#Image) ``` NewImage returns an empty image. If width or height is less than 1 or more than device-dependent maximum size, NewImage panics. NewImage should be called only when necessary. For example, you should avoid to call NewImage every Update or Draw call. Reusing the same image by Clear is much more efficient than creating a new image. NewImage panics if RunGame already finishes. #### func [NewImageFromImage](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L1100) [¶](#NewImageFromImage) ``` func NewImageFromImage(source [image](/image).[Image](/image#Image)) *[Image](#Image) ``` NewImageFromImage creates a new image with the given image (source). If source's width or height is less than 1 or more than device-dependent maximum size, NewImageFromImage panics. NewImageFromImage should be called only when necessary. For example, you should avoid to call NewImageFromImage every Update or Draw call. Reusing the same image by Clear and WritePixels is much more efficient than creating a new image. NewImageFromImage panics if RunGame already finishes. The returned image's upper-left position is always (0, 0). The source's bounds are not respected. #### func [NewImageFromImageWithOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L1130) [¶](#NewImageFromImageWithOptions) added in v2.4.0 ``` func NewImageFromImageWithOptions(source [image](/image).[Image](/image#Image), options *[NewImageFromImageOptions](#NewImageFromImageOptions)) *[Image](#Image) ``` NewImageFromImageWithOptions creates a new image with the given image (source) with the given options. If source's width or height is less than 1 or more than device-dependent maximum size, NewImageFromImageWithOptions panics. If options is nil, the default setting is used. NewImageFromImageWithOptions should be called only when necessary. For example, you should avoid to call NewImageFromImageWithOptions every Update or Draw call. Reusing the same image by Clear and WritePixels is much more efficient than creating a new image. NewImageFromImageWithOptions panics if RunGame already finishes. #### func [NewImageWithOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L1060) [¶](#NewImageWithOptions) added in v2.4.0 ``` func NewImageWithOptions(bounds [image](/image).[Rectangle](/image#Rectangle), options *[NewImageOptions](#NewImageOptions)) *[Image](#Image) ``` NewImageWithOptions returns an empty image with the given bounds and the options. If width or height is less than 1 or more than device-dependent maximum size, NewImageWithOptions panics. The rendering origin position is (0, 0) of the given bounds. If DrawImage is called on a new image created by NewImageOptions, for example, the center of scaling and rotating is (0, 0), that might not be an upper-left position. If options is nil, the default setting is used. NewImageWithOptions should be called only when necessary. For example, you should avoid to call NewImageWithOptions every Update or Draw call. Reusing the same image by Clear is much more efficient than creating a new image. NewImageWithOptions panics if RunGame already finishes. #### func (*Image) [At](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L912) [¶](#Image.At) ``` func (i *[Image](#Image)) At(x, y [int](/builtin#int)) [color](/image/color).[Color](/image/color#Color) ``` At returns the color of the image at (x, y). At implements the standard image.Image's At. At loads pixels from GPU to system memory if necessary, which means that At can be slow. At always returns a transparent color if the image is disposed. Note that an important logic should not rely on values returned by At, since the returned values can include very slight differences between some machines. At can't be called outside the main loop (ebiten.Run's updating function) starts. #### func (*Image) [Bounds](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L853) [¶](#Image.Bounds) ``` func (i *[Image](#Image)) Bounds() [image](/image).[Rectangle](/image#Rectangle) ``` Bounds returns the bounds of the image. Bounds implements the standard image.Image's Bounds. #### func (*Image) [Clear](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L77) [¶](#Image.Clear) ``` func (i *[Image](#Image)) Clear() ``` Clear resets the pixels of the image into 0. When the image is disposed, Clear does nothing. #### func (*Image) [ColorModel](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L863) [¶](#Image.ColorModel) ``` func (i *[Image](#Image)) ColorModel() [color](/image/color).[Model](/image/color#Model) ``` ColorModel returns the color model of the image. ColorModel implements the standard image.Image's ColorModel. #### func (*Image) [Dispose](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L978) [¶](#Image.Dispose) ``` func (i *[Image](#Image)) Dispose() ``` Dispose disposes the image data. After disposing, most of the image functions do nothing and returns meaningless values. Calling Dispose is not mandatory. GC automatically collects internal resources that no objects refer to. However, calling Dispose explicitly is helpful if memory usage matters. If the image is a sub-image, Dispose does nothing. When the image is disposed, Dispose does nothing. #### func (*Image) [DrawImage](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L223) [¶](#Image.DrawImage) ``` func (i *[Image](#Image)) DrawImage(img *[Image](#Image), options *[DrawImageOptions](#DrawImageOptions)) ``` DrawImage draws the given image on the image i. DrawImage accepts the options. For details, see the document of DrawImageOptions. For drawing, the pixels of the argument image at the time of this call is adopted. Even if the argument image is mutated after this call, the drawing result is never affected. When the image i is disposed, DrawImage does nothing. When the given image img is disposed, DrawImage panics. When the given image is as same as i, DrawImage panics. DrawImage works more efficiently as batches when the successive calls of DrawImages satisfy the below conditions: * All render targets are the same (A in A.DrawImage(B, op)) * All Blend values are the same * All Filter values are the same A whole image and its sub-image are considered to be the same, but some environments like browsers might not work efficiently (#2471). Even when all the above conditions are satisfied, multiple draw commands can be used in really rare cases. Ebitengine images usually share an internal automatic texture atlas, but when you consume the atlas, or you create a huge image, those images cannot be on the same texture atlas. In this case, draw commands are separated. Another case is when you use an offscreen as a render source. An offscreen doesn't share the texture atlas with high probability. For more performance tips, see <https://ebitengine.org/en/documents/performancetips.html#### func (*Image) [DrawRectShader](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L744) [¶](#Image.DrawRectShader) ``` func (i *[Image](#Image)) DrawRectShader(width, height [int](/builtin#int), shader *[Shader](#Shader), options *[DrawRectShaderOptions](#DrawRectShaderOptions)) ``` DrawRectShader draws a rectangle with the specified width and height with the specified shader. For the details about the shader, see <https://ebitengine.org/en/documents/shader.html>. When one of the specified image is non-nil and its size is different from (width, height), DrawRectShader panics. When one of the specified image is non-nil and is disposed, DrawRectShader panics. If a specified uniform variable's length or type doesn't match with an expected one, DrawRectShader panics. In a shader, texCoord in Fragment represents a position in a source image. If no source images are specified, texCoord represents the position from (0, 0) to (width, height) in pixels. If the unit is pixels by a compiler directive `//kage:unit pixelss`, texCoord values are valid. If the unit is texels (default), texCoord values still take from (0, 0) to (width, height), but these are invalid since texCoord is expected to be in texels in the texel-unit mode. This behavior is preserved for backward compatibility. It is recommended to use the pixel-unit mode to avoid confusion. If no source images are specified, imageSrc0Size returns a valid size only when the unit is pixels, but always returns 0 when the unit is texels (default). When the image i is disposed, DrawRectShader does nothing. #### func (*Image) [DrawTriangles](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L431) [¶](#Image.DrawTriangles) ``` func (i *[Image](#Image)) DrawTriangles(vertices [][Vertex](#Vertex), indices [][uint16](/builtin#uint16), img *[Image](#Image), options *[DrawTrianglesOptions](#DrawTrianglesOptions)) ``` DrawTriangles draws triangles with the specified vertices and their indices. img is used as a source image. img cannot be nil. If you want to draw triangles with a solid color, use a small white image and adjust the color elements in the vertices. For an actual implementation, see the example 'vector'. Vertex contains color values, which are interpreted as straight-alpha colors by default. This depends on the option's ColorScaleMode. If len(vertices) is more than MaxVerticesCount, the exceeding part is ignored. If len(indices) is not multiple of 3, DrawTriangles panics. If a value in indices is out of range of vertices, or not less than MaxVerticesCount, DrawTriangles panics. The rule in which DrawTriangles works effectively is same as DrawImage's. When the given image is disposed, DrawTriangles panics. When the image i is disposed, DrawTriangles does nothing. #### func (*Image) [DrawTrianglesShader](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L593) [¶](#Image.DrawTrianglesShader) ``` func (i *[Image](#Image)) DrawTrianglesShader(vertices [][Vertex](#Vertex), indices [][uint16](/builtin#uint16), shader *[Shader](#Shader), options *[DrawTrianglesShaderOptions](#DrawTrianglesShaderOptions)) ``` DrawTrianglesShader draws triangles with the specified vertices and their indices with the specified shader. Vertex contains color values, which can be interpreted for any purpose by the shader. For the details about the shader, see <https://ebitengine.org/en/documents/shader.html>. If the shader unit is texels, one of the specified image is non-nil and its size is different from (width, height), DrawTrianglesShader panics. If one of the specified image is non-nil and is disposed, DrawTrianglesShader panics. If len(vertices) is more than MaxVerticesCount, the exceeding part is ignored. If len(indices) is not multiple of 3, DrawTrianglesShader panics. If a value in indices is out of range of vertices, or not less than MaxVerticesCount, DrawTrianglesShader panics. When a specified image is non-nil and is disposed, DrawTrianglesShader panics. If a specified uniform variable's length or type doesn't match with an expected one, DrawTrianglesShader panics. When the image i is disposed, DrawTrianglesShader does nothing. #### func (*Image) [Fill](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L84) [¶](#Image.Fill) ``` func (i *[Image](#Image)) Fill(clr [color](/image/color).[Color](/image/color#Color)) ``` Fill fills the image with a solid color. When the image is disposed, Fill does nothing. #### func (*Image) [RGBA64At](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L928) [¶](#Image.RGBA64At) added in v2.2.0 ``` func (i *[Image](#Image)) RGBA64At(x, y [int](/builtin#int)) [color](/image/color).[RGBA64](/image/color#RGBA64) ``` RGBA64At implements the standard image.RGBA64Image's RGBA64At. RGBA64At loads pixels from GPU to system memory if necessary, which means that RGBA64At can be slow. RGBA64At always returns a transparent color if the image is disposed. Note that an important logic should not rely on values returned by RGBA64At, since the returned values can include very slight differences between some machines. RGBA64At can't be called outside the main loop (ebiten.Run's updating function) starts. #### func (*Image) [ReadPixels](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L884) [¶](#Image.ReadPixels) added in v2.4.0 ``` func (i *[Image](#Image)) ReadPixels(pixels [][byte](/builtin#byte)) ``` ReadPixels reads the image's pixels from the image. The given pixels represent RGBA pre-multiplied alpha values. ReadPixels loads pixels from GPU to system memory if necessary, which means that ReadPixels can be slow. ReadPixels always sets a transparent color if the image is disposed. len(pixels) must be 4 * (bounds width) * (bounds height). If len(pixels) is not correct, ReadPixels panics. ReadPixels also works on a sub-image. Note that an important logic should not rely on values returned by ReadPixels, since the returned values can include very slight differences between some machines. ReadPixels can't be called outside the main loop (ebiten.Run's updating function) starts. #### func (*Image) [ReplacePixels](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L1017) deprecated ``` func (i *[Image](#Image)) ReplacePixels(pixels [][byte](/builtin#byte)) ``` ReplacePixels replaces the pixels of the image. Deprecated: as of v2.4. Use WritePixels instead. #### func (*Image) [Set](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L952) [¶](#Image.Set) ``` func (i *[Image](#Image)) Set(x, y [int](/builtin#int), clr [color](/image/color).[Color](/image/color#Color)) ``` Set sets the color at (x, y). Set implements the standard draw.Image's Set. If the image is disposed, Set does nothing. #### func (*Image) [Size](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L61) deprecated ``` func (i *[Image](#Image)) Size() (width, height [int](/builtin#int)) ``` Size returns the size of the image. Deprecated: as of v2.5. Use Bounds().Dx() and Bounds().Dy() or Bounds().Size() instead. #### func (*Image) [SubImage](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L823) [¶](#Image.SubImage) ``` func (i *[Image](#Image)) SubImage(r [image](/image).[Rectangle](/image#Rectangle)) [image](/image).[Image](/image#Image) ``` SubImage returns an image representing the portion of the image p visible through r. The returned value shares pixels with the original image. The returned value is always *ebiten.Image. If the image is disposed, SubImage returns nil. A sub-image returned by SubImage can be used as a rendering source and a rendering destination. If a sub-image is used as a rendering source, the image is used as if it is a small image. If a sub-image is used as a rendering destination, the region being rendered is clipped. Successive uses of multiple various regions as rendering destination is still efficient when all the underlying images are the same, but some platforms like browsers might not work efficiently. #### func (*Image) [WritePixels](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L1001) [¶](#Image.WritePixels) added in v2.4.0 ``` func (i *[Image](#Image)) WritePixels(pixels [][byte](/builtin#byte)) ``` WritePixels replaces the pixels of the image. The given pixels are treated as RGBA pre-multiplied alpha values. len(pix) must be 4 * (bounds width) * (bounds height). If len(pix) is not correct, WritePixels panics. WritePixels also works on a sub-image. When the image is disposed, WritePixels does nothing. #### type [Key](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/keys.go#L29) [¶](#Key) ``` type Key [int](/builtin#int) ``` A Key represents a keyboard key. These keys represent physical keys of US keyboard. For example, KeyQ represents Q key on US keyboards and ' (quote) key on Dvorak keyboards. ``` const ( KeyA [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyA](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyA)) KeyB [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyB](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyB)) KeyC [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyC](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyC)) KeyD [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyD](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyD)) KeyE [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyE](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyE)) KeyF [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF)) KeyG [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyG](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyG)) KeyH [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyH](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyH)) KeyI [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyI](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyI)) KeyJ [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyJ](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyJ)) KeyK [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyK](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyK)) KeyL [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyL](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyL)) KeyM [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyM](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyM)) KeyN [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyN](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyN)) KeyO [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyO](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyO)) KeyP [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyP](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyP)) KeyQ [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyQ](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyQ)) KeyR [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyR](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyR)) KeyS [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyS](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyS)) KeyT [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyT](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyT)) KeyU [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyU](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyU)) KeyV [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyV](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyV)) KeyW [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyW](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyW)) KeyX [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyX](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyX)) KeyY [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyY](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyY)) KeyZ [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyZ](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyZ)) KeyAltLeft [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyAltLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyAltLeft)) KeyAltRight [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyAltRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyAltRight)) KeyArrowDown [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyArrowDown](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyArrowDown)) KeyArrowLeft [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyArrowLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyArrowLeft)) KeyArrowRight [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyArrowRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyArrowRight)) KeyArrowUp [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyArrowUp](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyArrowUp)) KeyBackquote [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyBackquote](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyBackquote)) KeyBackslash [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyBackslash](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyBackslash)) KeyBackspace [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyBackspace](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyBackspace)) KeyBracketLeft [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyBracketLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyBracketLeft)) KeyBracketRight [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyBracketRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyBracketRight)) KeyCapsLock [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyCapsLock](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyCapsLock)) KeyComma [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyComma](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyComma)) KeyContextMenu [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyContextMenu](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyContextMenu)) KeyControlLeft [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyControlLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyControlLeft)) KeyControlRight [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyControlRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyControlRight)) KeyDelete [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDelete](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDelete)) KeyDigit0 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit0](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit0)) KeyDigit1 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit1](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit1)) KeyDigit2 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit2](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit2)) KeyDigit3 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit3](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit3)) KeyDigit4 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit4](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit4)) KeyDigit5 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit5](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit5)) KeyDigit6 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit6](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit6)) KeyDigit7 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit7](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit7)) KeyDigit8 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit8](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit8)) KeyDigit9 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit9](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit9)) KeyEnd [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyEnd](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyEnd)) KeyEnter [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyEnter](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyEnter)) KeyEqual [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyEqual](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyEqual)) KeyEscape [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyEscape](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyEscape)) KeyF1 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF1](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF1)) KeyF2 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF2](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF2)) KeyF3 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF3](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF3)) KeyF4 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF4](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF4)) KeyF5 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF5](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF5)) KeyF6 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF6](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF6)) KeyF7 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF7](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF7)) KeyF8 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF8](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF8)) KeyF9 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF9](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF9)) KeyF10 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF10](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF10)) KeyF11 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF11](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF11)) KeyF12 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyF12](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyF12)) KeyHome [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyHome](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyHome)) KeyInsert [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyInsert](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyInsert)) KeyMetaLeft [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyMetaLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyMetaLeft)) KeyMetaRight [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyMetaRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyMetaRight)) KeyMinus [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyMinus](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyMinus)) KeyNumLock [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumLock](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumLock)) KeyNumpad0 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad0](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad0)) KeyNumpad1 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad1](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad1)) KeyNumpad2 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad2](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad2)) KeyNumpad3 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad3](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad3)) KeyNumpad4 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad4](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad4)) KeyNumpad5 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad5](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad5)) KeyNumpad6 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad6](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad6)) KeyNumpad7 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad7](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad7)) KeyNumpad8 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad8](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad8)) KeyNumpad9 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad9](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad9)) KeyNumpadAdd [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadAdd](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadAdd)) KeyNumpadDecimal [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadDecimal](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadDecimal)) KeyNumpadDivide [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadDivide](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadDivide)) KeyNumpadEnter [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadEnter](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadEnter)) KeyNumpadEqual [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadEqual](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadEqual)) KeyNumpadMultiply [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadMultiply](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadMultiply)) KeyNumpadSubtract [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadSubtract](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadSubtract)) KeyPageDown [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyPageDown](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyPageDown)) KeyPageUp [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyPageUp](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyPageUp)) KeyPause [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyPause](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyPause)) KeyPeriod [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyPeriod](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyPeriod)) KeyPrintScreen [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyPrintScreen](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyPrintScreen)) KeyQuote [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyQuote](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyQuote)) KeyScrollLock [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyScrollLock](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyScrollLock)) KeySemicolon [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeySemicolon](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeySemicolon)) KeyShiftLeft [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyShiftLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyShiftLeft)) KeyShiftRight [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyShiftRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyShiftRight)) KeySlash [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeySlash](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeySlash)) KeySpace [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeySpace](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeySpace)) KeyTab [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyTab](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyTab)) KeyAlt [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyReserved0](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyReserved0)) KeyControl [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyReserved1](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyReserved1)) KeyShift [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyReserved2](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyReserved2)) KeyMeta [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyReserved3](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyReserved3)) KeyMax [Key](#Key) = [KeyMeta](#KeyMeta) // Keys for backward compatibility. // Deprecated: as of v2.1. Key0 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit0](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit0)) Key1 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit1](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit1)) Key2 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit2](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit2)) Key3 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit3](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit3)) Key4 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit4](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit4)) Key5 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit5](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit5)) Key6 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit6](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit6)) Key7 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit7](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit7)) Key8 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit8](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit8)) Key9 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyDigit9](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyDigit9)) KeyApostrophe [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyQuote](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyQuote)) KeyDown [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyArrowDown](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyArrowDown)) KeyGraveAccent [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyBackquote](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyBackquote)) KeyKP0 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad0](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad0)) KeyKP1 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad1](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad1)) KeyKP2 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad2](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad2)) KeyKP3 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad3](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad3)) KeyKP4 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad4](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad4)) KeyKP5 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad5](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad5)) KeyKP6 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad6](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad6)) KeyKP7 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad7](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad7)) KeyKP8 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad8](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad8)) KeyKP9 [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpad9](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpad9)) KeyKPAdd [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadAdd](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadAdd)) KeyKPDecimal [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadDecimal](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadDecimal)) KeyKPDivide [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadDivide](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadDivide)) KeyKPEnter [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadEnter](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadEnter)) KeyKPEqual [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadEqual](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadEqual)) KeyKPMultiply [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadMultiply](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadMultiply)) KeyKPSubtract [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyNumpadSubtract](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyNumpadSubtract)) KeyLeft [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyArrowLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyArrowLeft)) KeyLeftBracket [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyBracketLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyBracketLeft)) KeyMenu [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyContextMenu](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyContextMenu)) KeyRight [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyArrowRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyArrowRight)) KeyRightBracket [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyBracketRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyBracketRight)) KeyUp [Key](#Key) = [Key](#Key)([ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[KeyArrowUp](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#KeyArrowUp)) ) ``` Keys. #### func (Key) [MarshalText](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/keys.go#L934) [¶](#Key.MarshalText) added in v2.4.0 ``` func (k [Key](#Key)) MarshalText() ([][byte](/builtin#byte), [error](/builtin#error)) ``` MarshalText implements encoding.TextMarshaler. #### func (Key) [String](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/keys.go#L413) [¶](#Key.String) ``` func (k [Key](#Key)) String() [string](/builtin#string) ``` String returns a string representing the key. If k is an undefined key, String returns an empty string. #### func (*Key) [UnmarshalText](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/keys.go#L939) [¶](#Key.UnmarshalText) added in v2.4.0 ``` func (k *[Key](#Key)) UnmarshalText(text [][byte](/builtin#byte)) [error](/builtin#error) ``` UnmarshalText implements encoding.TextUnmarshaler #### type [LayoutFer](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L89) [¶](#LayoutFer) added in v2.5.0 ``` type LayoutFer interface { // LayoutF is the float version of Game.Layout. // // If the game implements this interface, Layout is never called and LayoutF is called instead. LayoutF(outsideWidth, outsideHeight [float64](/builtin#float64)) (screenWidth, screenHeight [float64](/builtin#float64)) } ``` LayoutFer is an interface for the float version of Game.Layout. #### type [MonitorType](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/monitor.go#L22) [¶](#MonitorType) added in v2.6.0 ``` type MonitorType [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[Monitor](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#Monitor) ``` MonitorType represents a monitor available to the system. #### func [AppendMonitors](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/monitor.go#L47) [¶](#AppendMonitors) added in v2.6.0 ``` func AppendMonitors(monitors []*[MonitorType](#MonitorType)) []*[MonitorType](#MonitorType) ``` AppendMonitors returns the monitors reported by the system. On desktop platforms, there will always be at least one monitor appended and the first monitor in the slice will be the primary monitor. Any monitors added or removed will show up with subsequent calls to this function. #### func [Monitor](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/monitor.go#L31) [¶](#Monitor) added in v2.6.0 ``` func Monitor() *[MonitorType](#MonitorType) ``` Monitor returns the current monitor. #### func (*MonitorType) [Name](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/monitor.go#L26) [¶](#MonitorType.Name) added in v2.6.0 ``` func (m *[MonitorType](#MonitorType)) Name() [string](/builtin#string) ``` Name returns the monitor's name. On Linux, this reports the monitors in xrandr format. On Windows, this reports "Generic PnP Monitor" for all monitors. #### type [MouseButton](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/mousebuttons.go#L22) [¶](#MouseButton) ``` type MouseButton = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[MouseButton](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#MouseButton) ``` A MouseButton represents a mouse button. ``` const ( MouseButtonLeft [MouseButton](#MouseButton) = [MouseButton0](#MouseButton0) MouseButtonMiddle [MouseButton](#MouseButton) = [MouseButton1](#MouseButton1) MouseButtonRight [MouseButton](#MouseButton) = [MouseButton2](#MouseButton2) MouseButton0 [MouseButton](#MouseButton) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[MouseButton0](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#MouseButton0) MouseButton1 [MouseButton](#MouseButton) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[MouseButton1](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#MouseButton1) MouseButton2 [MouseButton](#MouseButton) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[MouseButton2](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#MouseButton2) MouseButton3 [MouseButton](#MouseButton) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[MouseButton3](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#MouseButton3) MouseButton4 [MouseButton](#MouseButton) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[MouseButton4](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#MouseButton4) MouseButtonMax [MouseButton](#MouseButton) = [MouseButton4](#MouseButton4) ) ``` MouseButtons #### type [NewImageFromImageOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L1105) [¶](#NewImageFromImageOptions) added in v2.4.0 ``` type NewImageFromImageOptions struct { // Unmanaged represents whether the image is unmanaged or not. // The default (zero) value is false, that means the image is managed. // // An unmanaged image is never on an internal automatic texture atlas. // A regular image is a part of an internal texture atlas, and locating them is done automatically in Ebitengine. // Unmanaged is useful when you want finer controls over the image for performance and memory reasons. Unmanaged [bool](/builtin#bool) // PreserveBounds represents whether the new image's bounds are the same as the given image. // The default (zero) value is false, that means the new image's upper-left position is adjusted to (0, 0). PreserveBounds [bool](/builtin#bool) } ``` NewImageFromImageOptions represents options for NewImageFromImage. #### type [NewImageOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L1035) [¶](#NewImageOptions) added in v2.4.0 ``` type NewImageOptions struct { // Unmanaged represents whether the image is unmanaged or not. // The default (zero) value is false, that means the image is managed. // // An unmanaged image is never on an internal automatic texture atlas. // A regular image is a part of an internal texture atlas, and locating them is done automatically in Ebitengine. // Unmanaged is useful when you want finer controls over the image for performance and memory reasons. Unmanaged [bool](/builtin#bool) } ``` NewImageOptions represents options for NewImage. #### type [RunGameOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/run.go#L233) [¶](#RunGameOptions) added in v2.5.0 ``` type RunGameOptions struct { // GraphicsLibrary is a graphics library Ebitengine will use. // // The default (zero) value is GraphicsLibraryAuto, which lets Ebitengine choose the graphics library. GraphicsLibrary [GraphicsLibrary](#GraphicsLibrary) // InitUnfocused indicates whether the window is unfocused or not on launching. // InitUnfocused is valid on desktops and browsers. // // The default (zero) value is false, which means that the window is focused. InitUnfocused [bool](/builtin#bool) // ScreenTransparent indicates whether the window is transparent or not. // ScreenTransparent is valid on desktops and browsers. // // The default (zero) value is false, which means that the window is not transparent. ScreenTransparent [bool](/builtin#bool) // SkipTaskbar indicates whether an application icon is shown on a taskbar or not. // SkipTaskbar is valid only on Windows. // // The default (zero) value is false, which means that an icon is shown on a taskbar. SkipTaskbar [bool](/builtin#bool) } ``` RunGameOptions represents options for RunGameWithOptions. #### type [Shader](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/shader.go#L30) [¶](#Shader) ``` type Shader struct { // contains filtered or unexported fields } ``` Shader represents a compiled shader program. For the details about the shader, see <https://ebitengine.org/en/documents/shader.html>. #### func [NewShader](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/shader.go#L40) [¶](#NewShader) ``` func NewShader(src [][byte](/builtin#byte)) (*[Shader](#Shader), [error](/builtin#error)) ``` NewShader compiles a shader program in the shading language Kage, and returns the result. If the compilation fails, NewShader returns an error. For the details about the shader, see <https://ebitengine.org/en/documents/shader.html>. #### func (*Shader) [Dispose](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/shader.go#L53) [¶](#Shader.Dispose) ``` func (s *[Shader](#Shader)) Dispose() ``` Dispose disposes the shader program. After disposing, the shader is no longer available. #### type [StandardGamepadAxis](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/gamepad.go#L94) [¶](#StandardGamepadAxis) added in v2.2.0 ``` type StandardGamepadAxis = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardAxis](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardAxis) ``` StandardGamepadAxis represents a gamepad axis in the standard layout. The layout and the button values are based on the web standard. See <https://www.w3.org/TR/gamepad/#remapping>. ``` const ( StandardGamepadAxisLeftStickHorizontal [StandardGamepadAxis](#StandardGamepadAxis) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardAxisLeftStickHorizontal](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardAxisLeftStickHorizontal) StandardGamepadAxisLeftStickVertical [StandardGamepadAxis](#StandardGamepadAxis) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardAxisLeftStickVertical](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardAxisLeftStickVertical) StandardGamepadAxisRightStickHorizontal [StandardGamepadAxis](#StandardGamepadAxis) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardAxisRightStickHorizontal](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardAxisRightStickHorizontal) StandardGamepadAxisRightStickVertical [StandardGamepadAxis](#StandardGamepadAxis) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardAxisRightStickVertical](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardAxisRightStickVertical) StandardGamepadAxisMax [StandardGamepadAxis](#StandardGamepadAxis) = [StandardGamepadAxisRightStickVertical](#StandardGamepadAxisRightStickVertical) ) ``` StandardGamepadAxes #### type [StandardGamepadButton](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/gamepad.go#L66) [¶](#StandardGamepadButton) added in v2.2.0 ``` type StandardGamepadButton = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButton](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButton) ``` StandardGamepadButton represents a gamepad button in the standard layout. The layout and the button values are based on the web standard. See <https://www.w3.org/TR/gamepad/#remapping>. ``` const ( StandardGamepadButtonRightBottom [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonRightBottom](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonRightBottom) StandardGamepadButtonRightRight [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonRightRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonRightRight) StandardGamepadButtonRightLeft [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonRightLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonRightLeft) StandardGamepadButtonRightTop [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonRightTop](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonRightTop) StandardGamepadButtonFrontTopLeft [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonFrontTopLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonFrontTopLeft) StandardGamepadButtonFrontTopRight [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonFrontTopRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonFrontTopRight) StandardGamepadButtonFrontBottomLeft [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonFrontBottomLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonFrontBottomLeft) StandardGamepadButtonFrontBottomRight [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonFrontBottomRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonFrontBottomRight) StandardGamepadButtonCenterLeft [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonCenterLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonCenterLeft) StandardGamepadButtonCenterRight [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonCenterRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonCenterRight) StandardGamepadButtonLeftStick [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonLeftStick](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonLeftStick) StandardGamepadButtonRightStick [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonRightStick](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonRightStick) StandardGamepadButtonLeftTop [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonLeftTop](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonLeftTop) StandardGamepadButtonLeftBottom [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonLeftBottom](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonLeftBottom) StandardGamepadButtonLeftLeft [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonLeftLeft](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonLeftLeft) StandardGamepadButtonLeftRight [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonLeftRight](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonLeftRight) StandardGamepadButtonCenterCenter [StandardGamepadButton](#StandardGamepadButton) = [gamepaddb](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb).[StandardButtonCenterCenter](/github.com/hajimehoshi/ebiten/[email protected]/internal/gamepaddb#StandardButtonCenterCenter) StandardGamepadButtonMax [StandardGamepadButton](#StandardGamepadButton) = [StandardGamepadButtonCenterCenter](#StandardGamepadButtonCenterCenter) ) ``` StandardGamepadButtons #### type [TouchID](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L358) [¶](#TouchID) ``` type TouchID = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[TouchID](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#TouchID) ``` TouchID represents a touch's identifier. #### func [AppendTouchIDs](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L370) [¶](#AppendTouchIDs) added in v2.2.0 ``` func AppendTouchIDs(touches [][TouchID](#TouchID)) [][TouchID](#TouchID) ``` AppendTouchIDs appends the current touch states to touches, and returns the extended buffer. Giving a slice that already has enough capacity works efficiently. If you want to know whether a touch started being pressed in the current tick, use inpututil.JustPressedTouchIDs AppendTouchIDs doesn't append anything when there are no touches. AppendTouchIDs always does nothing on desktops. AppendTouchIDs is concurrent-safe. #### func [TouchIDs](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/input.go#L377) deprecated ``` func TouchIDs() [][TouchID](#TouchID) ``` TouchIDs returns the current touch states. Deprecated: as of v2.2. Use AppendTouchIDs instead. #### type [Vertex](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/image.go#L279) [¶](#Vertex) ``` type Vertex struct { // DstX and DstY represents a point on a destination image. DstX [float32](/builtin#float32) DstY [float32](/builtin#float32) // SrcX and SrcY represents a point on a source image. // Be careful that SrcX/SrcY coordinates are on the image's bounds. // This means that an upper-left point of a sub-image might not be (0, 0). SrcX [float32](/builtin#float32) SrcY [float32](/builtin#float32) // ColorR/ColorG/ColorB/ColorA represents color scaling values. // Their interpretation depends on the concrete draw call used: // - DrawTriangles: straight-alpha or premultiplied-alpha encoded color multiplier. // The format is determined by ColorScaleMode in DrawTrianglesOptions. // If ColorA is 0, the vertex is fully transparent and color is ignored. // If ColorA is 1, the vertex has the color (ColorR, ColorG, ColorB). // Vertex colors are converted to premultiplied-alpha internally and // interpolated linearly respecting alpha. // - DrawTrianglesShader: arbitrary floating point values sent to the shader. // These are interpolated linearly and independently of each other. ColorR [float32](/builtin#float32) ColorG [float32](/builtin#float32) ColorB [float32](/builtin#float32) ColorA [float32](/builtin#float32) } ``` Vertex represents a vertex passed to DrawTriangles. #### type [VibrateGamepadOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/vibrate.go#L58) [¶](#VibrateGamepadOptions) added in v2.3.0 ``` type VibrateGamepadOptions struct { // Duration is the time duration of the effect. Duration [time](/time).[Duration](/time#Duration) // StrongMagnitude is the rumble intensity of a low-frequency rumble motor. // The value is in between 0 and 1. StrongMagnitude [float64](/builtin#float64) // WeakMagnitude is the rumble intensity of a high-frequency rumble motor. // The value is in between 0 and 1. WeakMagnitude [float64](/builtin#float64) } ``` VibrateGamepadOptions represents the options for gamepad vibration. #### type [VibrateOptions](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/vibrate.go#L25) [¶](#VibrateOptions) added in v2.3.0 ``` type VibrateOptions struct { // Duration is the time duration of the effect. Duration [time](/time).[Duration](/time#Duration) // Magnitude is the strength of the device vibration. // The value is in between 0 and 1. Magnitude [float64](/builtin#float64) } ``` VibrateOptions represents the options for device vibration. #### type [WindowResizingModeType](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L28) [¶](#WindowResizingModeType) added in v2.3.0 ``` type WindowResizingModeType = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[WindowResizingMode](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#WindowResizingMode) ``` WindowResizingModeType represents a mode in which a user resizes the window. Regardless of the resizing mode, an Ebitengine application can still change the window size or make the window fullscreen by calling Ebitengine functions. ``` const ( // WindowResizingModeDisabled indicates the mode to disallow resizing the window by a user. WindowResizingModeDisabled [WindowResizingModeType](#WindowResizingModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[WindowResizingModeDisabled](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#WindowResizingModeDisabled) // WindowResizingModeOnlyFullscreenEnabled indicates the mode to disallow resizing the window, // but allow to make the window fullscreen by a user. // This works only on macOS so far. // On the other platforms, this is the same as WindowResizingModeDisabled. WindowResizingModeOnlyFullscreenEnabled [WindowResizingModeType](#WindowResizingModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[WindowResizingModeOnlyFullscreenEnabled](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#WindowResizingModeOnlyFullscreenEnabled) // WindowResizingModeEnabled indicates the mode to allow resizing the window by a user. WindowResizingModeEnabled [WindowResizingModeType](#WindowResizingModeType) = [ui](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui).[WindowResizingModeEnabled](/github.com/hajimehoshi/ebiten/[email protected]/internal/ui#WindowResizingModeEnabled) ) ``` WindowResizingModeTypes #### func [WindowResizingMode](https://github.com/hajimehoshi/ebiten/blob/v2.6.2/window.go#L69) [¶](#WindowResizingMode) added in v2.3.0 ``` func WindowResizingMode() [WindowResizingModeType](#WindowResizingModeType) ``` WindowResizingMode returns the current mode in which a user resizes the window. The default mode is WindowResizingModeDisabled. WindowResizingMode is concurrent-safe.
django-modelqueryform
readthedoc
Python
django-modelqueryform 3.0 documentation [django-modelqueryform](index.html#document-index) --- django-modelqueryform[¶](#django-modelqueryform) === **django-modelqueryform** is a flexible app that helps you build Q object generating forms. It is a great tool if you want you users to be able to do filtered searches against your models. Project[¶](#project) --- The project can be found at <https://github.com/ckirby/django-modelqueryformDocumentation[¶](#documentation) --- The full documentation is at <https://django-modelqueryform.readthedocs.org>. Requirements[¶](#requirements) --- * Django 1.11+ * Python 3.4+ Features[¶](#features) --- * Useable default FormFields for ModelFields that: > + Have .choices defined or are inherently made of choices (ie. BooleanField and NullBooleanField) > + Are represented as numeric types (eg. IntegerField, FloatField, etc.) > + Text backed fields need code written to handle them. That is easy though, because: > * Creation of FormFields, Q objects, and User readable query terms are completely customizable. You can target ModelFields: > + By name (If the field has specific requirements) > + By field type (Use the same widget or Q object builder for all CharFields) > * Can follow Model relationships or treat relationship fields as .choices * Provides a new Field and Widget (RangeField, RangeWidget). These allow users to generate a __gte, __lte pair for the orm, optionally also including an __isnull > + RangeField > > > > - Dynamically generates min and max boundaries. (Aggregate Min and Max on the model field) > > - If null=True on the ModelField allows user to indicate if they want to include null values in the query > > > + RangeWidget > > > > - Returns a MultiWidget with 2 NumberInput widgets (with min and max attributes) > > Contents[¶](#contents) --- ### Installation[¶](#installation) Install django-modelqueryform using pip: ``` pip install django-modelqueryform ``` Add modelqueryform to your INSTALLED_APPS setting: ``` INSTALLED_APPS = ( ... 'modelqueryform', ) ``` ### Usage[¶](#usage) For these examples we will use the following models: ``` class MyModel(models.Model): age = models.IntegerField() employed = models.NullBooleanField()#Yes,No,Unknown degree = models.CharField(max_length = 2, choices = [["HS", "High School"], ["C", "College"], ["G", "Graduate"], ["PG", "Post Graduate"]] ) class MyInstitution(models.Model): name = models.CharField(max_length=50) accredited = models.BooleanField() def __str__(self): return "%s" % self.name ``` To use **django-modelqueryform** in a project import it into forms.py: ``` import modelqueryform ``` Then we can use it as a Base class for your forms: ``` class MyModelQueryForm(modelqueryform.ModelQueryForm): model = MyModel inclue = ['age','employed','degree'] ``` Thats it! Instantiating MyModelQueryForm gives us a form with 3 widgets * Age ([RangeField](index.html#rangefield) using a [RangeWidget](index.html#rangewidget)) * Employed (MultipleChoiceField using a CheckboxSelectMultiple widget) * Degree (MultipleChoiceField using a CheckboxSelectMultiple widget) Once the form is POSTed to the view it is used to filter your model: ``` query_form = MyModelQueryForm(request.POST) my_models = query_form.process() ``` process([data_set=None]) generates a Q object which is a logical AND of the Q objects generated for each widget. It uses the resulting Q object to filter the associated model class. Note process() optionally accepts a QuerySet of a model class ‘x’ where isinstance(x, ‘form model class’) is True If no QuerySet is passed, the Q object will run against model.objects.all() Using pretty_print_query() you get a dict() of the form {str(field.label): str(field values)} to parse into a template: ``` query_form = MyModelQueryForm(request.POST) query_parameters = query_form.pretty_print_query() ``` pretty_print_query() also accepts an argument fields_to_print, a list of names that must be a subset of self.changed_data. #### Working with Relations[¶](#working-with-relations) **django-modelqueryform** can work with realtionship fields in two different ways, either following the relation or using the relationship field as a choice field. Let’s add a new field to MyModel from the example above: ``` class MyModel(models.Model): ... institution = models.ForeignKey('MyInstitution') ``` If we want our users to be able to select for (non)-accredited institions we would instantiate the form like so: ``` class MyModelQueryForm(modelqueryform.ModelQueryForm): model = MyModel inclue = ['age','employed','degree', 'institution__accredited'] traverse_fields = ['institution',] ``` Alternatively we can use the relationship field as a MultipleChoiceField: ``` class MyModelQueryForm(modelqueryform.ModelQueryForm): model = MyModel inclue = ['age','employed','degree', 'institution'] ``` Warning To make the choices for a relationship field, **django-modelqueryform** does an objects.distinct() call. Be aware of the size of the resulting QuerySet #### Defaults[¶](#defaults) **djagno-modelqueryform** tries to provide meaningful default where it can. Default widgets, Q objects, and print representation exist for model fields that are stored as numeric values or have choices (either defined or by default, ie. BooleanField(s)) Note See [Customization](index.html#document-customization) for how to handle field type that don’t have defaults **Default Fields** | Model Field | Form Field/Widget | Q Object | Print Representation | | --- | --- | --- | --- | | AutoField | [RangeField](index.html#rangefield) / [RangeWidget](index.html#rangewidget) | AND([field__gte=min],[field__lte=max]), OR(field__isnull=True) | ‘MIN - MAX [(include empty values)]’ | | BigIntegerField | [RangeField](index.html#rangefield) / [RangeWidget](index.html#rangewidget) | AND([field__gte=min],[field__lte=max]), OR(field__isnull=True) | ‘MIN - MAX [(include empty values)]’ | | BinaryField | | | | | BooleanField | MultipleChoiceField / CheckboxSelectMultiple | OR([field=value],…) | ‘CHOICE1,CHOICE2,…CHOICEn’ | | CharField | | | | | CommaSeparatedIntegerField | | | | | DateField | | | | | DateTimeField | | | | | DecimalField | [RangeField](index.html#rangefield) / [RangeWidget](index.html#rangewidget) | AND([field__gte=min],[field__lte=max]), OR(field__isnull=True) | ‘MIN - MAX [(include empty values)]’ | | EmailField | | | | | FileField | | | | | FilePathField | | | | | FloatField | [RangeField](index.html#rangefield) / [RangeWidget](index.html#rangewidget) | AND([field__gte=min],[field__lte=max]), OR(field__isnull=True) | ‘MIN - MAX [(include empty values)]’ | | ImageField | | | | | IntegerField | [RangeField](index.html#rangefield) / [RangeWidget](index.html#rangewidget) | AND([field__gte=min],[field__lte=max]), OR(field__isnull=True) | ‘MIN - MAX [(include empty values)]’ | | IPAddressField | | | | | GenericIPAddressField | | | | | NullBooleanField | MultipleChoiceField / CheckboxSelectMultiple | OR([field=value],…) | ‘CHOICE1,CHOICE2,…CHOICEn’ | | PositiveIntegerField | [RangeField](index.html#rangefield) / [RangeWidget](index.html#rangewidget) | AND([field__gte=min],[field__lte=max]), OR(field__isnull=True) | ‘MIN - MAX [(include empty values)]’ | | PositiveSmallIntegerField | [RangeField](index.html#rangefield) / [RangeWidget](index.html#rangewidget) | AND([field__gte=min],[field__lte=max]), OR(field__isnull=True) | ‘MIN - MAX [(include empty values)]’ | | SlugField | | | | | SmallIntegerField | [RangeField](index.html#rangefield) / [RangeWidget](index.html#rangewidget) | AND([field__gte=min],[field__lte=max]), OR(field__isnull=True) | ‘MIN - MAX [(include empty values)]’ | | TextField | | | | | TimeField | | | | | URLField | | | | | ForeignKey | MultipleChoiceField / CheckboxSelectMultiple | OR([field=value],…) | ‘CHOICE1,CHOICE2,…CHOICEn’ | | ManyToManyField | MultipleChoiceField / CheckboxSelectMultiple | OR([field=value],…) | ‘CHOICE1,CHOICE2,…CHOICEn’ | | OneToOneField | MultipleChoiceField / CheckboxSelectMultiple | OR([field=value],…) | ‘CHOICE1,CHOICE2,…CHOICEn’ | ### Customization[¶](#customization) Customization is neccessary in **django-modelqueryform** in instances where the default FormField and filters are insufficient or not avilable for model fields that you want to expose to querying Note There are no defaults for Model fields that are represented as text and have no choices You can customize three different aspects of **django-modelqueryform** Each of these aspects can be customized either by Model Field or Model Field type 1. Form field builder * build_FIELD(model_field) * build_type_FIELDTYPE(model_field) 2. Filter builder * filter_FIELD(field_name, values) * filter_type_FIELDTYPE(field_name, values) 3. Pretty Print builder * print_FIELD(field_name, values) * print_type_FIELDTYPE(field_name, values) Warning For fields that have no default you must implement a field builder and a filter builder For these examples we will use the following Model: ``` class MyModel(models.Model): first_name = models.CharField(max_length=15) last_name = models.CharField(max_length=15) ``` And the following ModelQueryForm: ``` class MyModelQueryForm(modelqueryform.ModelQueryForm): model = MyModel inclue = ['first_name','last_name'] ``` #### Form Field Builder[¶](#form-field-builder) This should return a form field object. By Name: ``` def build_first_name(model_field): return CharField(label=model_field.verbose_name, max_length=model_field.max_length, required=False ) ``` Note If this is all we customize for the example MyModelQueryForm it will raise a NotImplementedError because last_name does not have a field builder By Type: ``` def build_type_charfield(model_field): return CharField(label=model_field.verbose_name, max_length=model_field.max_length, required=False ) ``` Note No NotImplementedError because this covers the type for both first_name and last_name If there is a name based builder and a type based builder for a field the named builder takes precedence #### Filter Builder[¶](#filter-builder) This should return a Q object. By Name: ``` def filter_first_name(field_name, values): return Q(**{field_name + '__iexact': values}) ``` By Type: ``` def filter_type_charfield(field_name, values): return Q(**{field_name + '__contains': values}) ``` #### Pretty Print Builder[¶](#pretty-print-builder) By Name: ``` def print_first_name(field_name, values): return "Matches %s" % values ``` By Type: ``` def print_type_charfield(field_name, values): return "Contains %s" % values ``` ### Reference[¶](#reference) #### ModelQueryField[¶](#module-modelqueryform.forms) *class* `modelqueryform.forms.``ModelQueryForm`(**args*, ***kwargs*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm)[¶](#modelqueryform.forms.ModelQueryForm) ModelQueryForm builds a django form that allows complex filtering against a model. | Variables: | * [**model**](index.html#modelqueryform.forms.ModelQueryForm.model) (*Model*) – Model to be filtered * [**include**](index.html#modelqueryform.forms.ModelQueryForm.include) (*list*) – Field names to be included using the standard orm naming | | Raises: | **ImproperlyConfigured** – If model is missing | `_build_form`(*model*, *field_prepend=None*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm._build_form)[¶](#modelqueryform.forms.ModelQueryForm._build_form) Iterates through model fields to generate modelqueryform fields matching self.include Recursively called to correctly build relationship spanning form fields | Parameters: | * **model** (*django.db.model*) – Current model to inspect. Alwasy starts with self.model * **field_prepend** (*str*) – Relation field name if using self.traverse | `_build_form_field`(*model_field*, *name*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm._build_form_field)[¶](#modelqueryform.forms.ModelQueryForm._build_form_field) Build a form field for a given model field | Parameters: | * **model_field** (*django.db.models.fields*) – field that the resulting form field will filter * **name** (*String*) – The name for the form field (will match a value in self.include) | They type of FormField built is determined in the following order: 1. build_FIELD(model_field) (FIELD is the ModelField name) 2. build_type_FIELD(model_field) (FIELD is the ModelField type .lower() eg. ‘integerfield’, charfield’, etc.) 3. [`modelqueryform.utils.get_multiplechoice_field()`](#modelqueryform.utils.get_multiplechoice_field) if model_field has .choices 4. [`modelqueryform.utils.get_range_field()`](#modelqueryform.utils.get_range_field) if the ModelField type is in self.numeric_fields() 5. [`modelqueryform.utils.get_multiplechoice_field()`](#modelqueryform.utils.get_multiplechoice_field) if the ModelField type is in self.choice_fields() 6. [`modelqueryform.utils.get_multiplechoice_field()`](#modelqueryform.utils.get_multiplechoice_field) if the ModelField type is in self.rel_fields() Warning You must define either build_FIELD(model_field) or build_type_FIELD(model_field) for ModelFields that do not use a RangeField or MultipleChoiceField | Returns: | FormField | | Raises: | **NotImplementedError** – For fields that do not have a default ModelQueryForm field builder and no custom field builder can be found | `_test_filter_func_is_Q`(*filter_func*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm._test_filter_func_is_Q)[¶](#modelqueryform.forms.ModelQueryForm._test_filter_func_is_Q) Make sure that a filter is a Q object | Parameters: | **filter_func** (*Q*) – Object to test | | Raises: | **TypeError** – if filter is not a Q object | `build_query_from_filters`(*filters*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.build_query_from_filters)[¶](#modelqueryform.forms.ModelQueryForm.build_query_from_filters) Generate a Q object that is a logical AND of a list of Q objects Note Override this method to build a more complex Q object than AND(filters.values()) | Parameters: | **filters** (*dict*) – Dict of {Form field name: Q object,…} | | Returns Q: | AND(filters.values()) | | Raises: | **TypeError** – if any value in the filters dict is not a Q object | `choice_fields`()[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.choice_fields)[¶](#modelqueryform.forms.ModelQueryForm.choice_fields) Get a list of model fields backed by choice values (Boolean types) | Returns list: | Model Field types that are backed by a boolean | `get_filters`()[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.get_filters)[¶](#modelqueryform.forms.ModelQueryForm.get_filters) Get a dict of the POSTed form values as Q objects Form fields will be evaluated in the following order to generate a Q object: 1. filter_FIELD(field_name, values) (FIELD is the ModelField name) 2. filter_type_FIELD(field_name, values) (FIELD is the ModelField type .lower() eg. ‘integerfield’, charfield’, etc.) 3. [`modelqueryform.utils.get_range_field_filter()`](#modelqueryform.utils.get_range_field_filter) if the FormField is a RangeField 4. [`modelqueryform.utils.get_multiplechoice_field_filter()`](#modelqueryform.utils.get_multiplechoice_field_filter) if the FormField is a MultipleChoiceField Warning You must define either filter_FIELD(field, values) or filter_type_FIELD(field, values) for ModelFields that do not use a RangeField or MultipleChoiceField | Returns Dict: | {Form field name: Q object,…} | | Raises: | **NotImplementedError** – For fields that do not have a default ModelQueryForm filter builder and no custom filter builder can be found | `get_multichoice_field_print`(*form_field*, *cleaned_field_data*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.get_multichoice_field_print)[¶](#modelqueryform.forms.ModelQueryForm.get_multichoice_field_print) Default string representation of multichoice field | Parameters: | * **form_field** – FormField * **cleaned_field_data** (*dict*) – the cleaned_data for the field | | Returns str: | Comma delimited get_display_FIELD() for selected choices | `get_range_field_print`(*form_field*, *cleaned_field_data*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.get_range_field_print)[¶](#modelqueryform.forms.ModelQueryForm.get_range_field_print) Default string representation of multichoice field | Parameters: | * **form_field** – FormField (Unused) * **cleaned_field_data** (*dict*) – the cleaned_data for the field | | Returns str: | “MIN - MAX [(include empty values)]” | `get_related_choices`(*model_field*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.get_related_choices)[¶](#modelqueryform.forms.ModelQueryForm.get_related_choices) Make choices from a related | Parameters: | **model_field** (*ForeignKey**,* *OneToOneField**,* *ManyToManyField*) – Field to generate choices from | | Returns list: | [[field.pk, field.__str__()],…] | | Raises: | **TypeError** – If model_field is not a relationship type | `numeric_fields`()[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.numeric_fields)[¶](#modelqueryform.forms.ModelQueryForm.numeric_fields) Get a list of model fields backed by numeric values | Returns list: | Model Field types that are backed by a numeric | `pretty_print_query`(*fields_to_print=None*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.pretty_print_query)[¶](#modelqueryform.forms.ModelQueryForm.pretty_print_query) Get an OrderedDict to facilitate printing of generated filter | Parameters: | **fields_to_print** (*list*) – List of names in changed_data | Note If fields_to_print == None, self.changed_data is used | Returns dict: | {form field name: string representation of filter,…} | | Raises: | * **NotImplementedError** – For fields that do not have a default print builder and no custom print builder can be found * **ValueError** – if any name in the field_to_print is not in self.changed_data | `process`(*data_set=None*)[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.process)[¶](#modelqueryform.forms.ModelQueryForm.process) Filter a QuerySet with the POSTed form values | Parameters: | **data_set** (*QuerySet* *(**Same Model class as self.model**)*) – QuerySet to filter against | Note If data_set == None, self.model.objects.all() is used | Returns QuerySet: | | --- | | | data_set.filter(Q object) | | Raises: | * **ImproperlyConfigured** – No data_set to filter * **TypeError** – data_set is not an instance (using isinstance()) of self.model | `query_hash`()[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.query_hash)[¶](#modelqueryform.forms.ModelQueryForm.query_hash) Get an md5 hexdigest of the pretty_print_query(). Note Useful for caching results of a given query | Returns str: | 32 char md5.hexdigest() | `rel_fields`()[[source]](_modules/modelqueryform/forms.html#ModelQueryForm.rel_fields)[¶](#modelqueryform.forms.ModelQueryForm.rel_fields) Get a list of related model fields | Returns list: | Model Field types that are relationships | #### RangeField[¶](#rangefield) *class* `modelqueryform.widgets.``RangeField`(*model*, *field*, **args*, ***kwargs*)[[source]](_modules/modelqueryform/widgets.html#RangeField)[¶](#modelqueryform.widgets.RangeField) #### RangeWidget[¶](#rangewidget) *class* `modelqueryform.widgets.``RangeWidget`(*allow_null=False*, *attrs=None*, *mode=0*)[[source]](_modules/modelqueryform/widgets.html#RangeWidget)[¶](#modelqueryform.widgets.RangeWidget) Build a MultiWidget with 3 fields: TextInput with a “min” attribute TextInput with a “max” attribute Checkbox to include/exclude None values #### Utils[¶](#module-modelqueryform.utils) `modelqueryform.utils.``get_choices_from_distinct`(*model*, *field*)[[source]](_modules/modelqueryform/utils.html#get_choices_from_distinct)[¶](#modelqueryform.utils.get_choices_from_distinct) Generate a list of choices from a distinct() call. | Parameters: | * **model** (*django.db.models.Model*) – Model to use * **field** (*django Model Field*) – Field whose .distinct values you want | | Returns: | list – the distinct values of the field in the model | `modelqueryform.utils.``get_multiplechoice_field`(*field*, *choices*)[[source]](_modules/modelqueryform/utils.html#get_multiplechoice_field)[¶](#modelqueryform.utils.get_multiplechoice_field) Generate a MultipleChoiceField form element | Parameters: | * **field** (*django model field*) – Model Field to use * **choices** (*iterable*) – List of choices for form field | | Returns: | MultipleChoiceField | | Raises: | ValueError | `modelqueryform.utils.``get_multiplechoice_field_filter`(*field*, *values*)[[source]](_modules/modelqueryform/utils.html#get_multiplechoice_field_filter)[¶](#modelqueryform.utils.get_multiplechoice_field_filter) Generate a model filter from a POSTed MultipleChoiceField | Parameters: | * **field** (*string*) – orm field name * **values** (*list*) – Selected values | | Returns: | Q – (OR(field: value),…) | `modelqueryform.utils.``get_range_field`(*model*, *field*, *name*)[[source]](_modules/modelqueryform/utils.html#get_range_field)[¶](#modelqueryform.utils.get_range_field) Generate a RangeField form element | Parameters: | * **model** (*django.db.models.Model*) – Model to generate a form element for * **field** (*django model field*) – Model Field to use * **name** – Name to use for the form field * **name** – string | | Returns: | RangeField | `modelqueryform.utils.``get_range_field_filter`(*field*, *values*)[[source]](_modules/modelqueryform/utils.html#get_range_field_filter)[¶](#modelqueryform.utils.get_range_field_filter) Generate a model filter from a POSTed RangeField | Parameters: | * **field** (*string*) – orm field name * **values** (*dict*) – RangeField values dict | | Returns: | Q – AND(OR(field__gte: min, field__lte: max),(field__isnull: allow_empty) | `modelqueryform.utils.``traverse_related_to_field`(*field_name*, *model*)[[source]](_modules/modelqueryform/utils.html#traverse_related_to_field)[¶](#modelqueryform.utils.traverse_related_to_field) Given an orm relational representation ‘relational_field__field_name’ and the base model of the relation, return the actual terminal Field ### Contributing[¶](#contributing) Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: #### Types of Contributions[¶](#types-of-contributions) ##### Report Bugs[¶](#report-bugs) Report bugs at <https://github.com/ckirby/django-modelqueryform/issues>. If you are reporting a bug, please include: * Your operating system name and version. * Any details about your local setup that might be helpful in troubleshooting. * Detailed steps to reproduce the bug. ##### Fix Bugs[¶](#fix-bugs) Look through the GitHub issues for bugs. Anything tagged with “bug” is open to whoever wants to implement it. ##### Implement Features[¶](#implement-features) Look through the GitHub issues for features. Anything tagged with “feature” is open to whoever wants to implement it. ##### Write Documentation[¶](#write-documentation) django-modelqueryform could always use more documentation, whether as part of the official django-modelqueryform docs, in docstrings, or even on the web in blog posts, articles, and such. ##### Submit Feedback[¶](#submit-feedback) The best way to send feedback is to file an issue at <https://github.com/ckirby/django-modelqueryform/issues>. If you are proposing a feature: * Explain in detail how it would work. * Keep the scope as narrow as possible, to make it easier to implement. * Remember that this is a volunteer-driven project, and that contributions are welcome :) #### Get Started![¶](#get-started) Ready to contribute? Here’s how to set up django-modelqueryform for local development. 1. Fork the django-modelqueryform repo on GitHub. 2. Clone your fork locally: ``` $ git clone [email protected]:your_name_here/django-modelqueryform.git ``` 3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development: ``` $ mkvirtualenv django-modelqueryform $ cd django-modelqueryform/ $ python setup.py develop ``` 4. Create a branch for local development: ``` $ git checkout -b name-of-your-bugfix-or-feature ``` Now you can make your changes locally. 5. When you’re done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox: ``` $ flake8 modelqueryform tests $ python setup.py test $ tox ``` To get flake8 and tox, just pip install them into your virtualenv. 6. Commit your changes and push your branch to GitHub: ``` $ git add . $ git commit -m "Your detailed description of your changes." $ git push origin name-of-your-bugfix-or-feature ``` 7. Submit a pull request through the GitHub website. #### Pull Request Guidelines[¶](#pull-request-guidelines) Before you submit a pull request, check that it meets these guidelines: 1. The pull request should include tests. 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst. 3. The pull request should work for Python 2.7, and 3.4, and for PyPy. Check <https://travis-ci.org/ckirby/django-modelqueryform/pull_requests> and make sure that the tests pass for all supported Python versions. #### Tips[¶](#tips) To run a subset of tests: ``` $ python -m unittest tests.test_modelqueryform ``` ### Credits[¶](#credits) #### Development Lead[¶](#development-lead) * <NAME> <[<EMAIL>](mailto:chaim.kirby%40gmail.com)#### Contributors[¶](#contributors) None yet. Why not be the first?
pyautocad
readthedoc
Python
pyautocad 0.2.0 documentation [pyautocad](index.html#document-index) --- Welcome to pyautocad’s documentation![¶](#welcome-to-pyautocad-s-documentation) === [pyautocad](http://pypi.python.org/pypi/pyautocad/) - library aimed to simplify writing [ActiveX](http://wikipedia.org/wiki/ActiveX) [Automation](http://en.wikipedia.org/wiki/OLE_Automation) scripts for [AutoCAD](http://wikipedia.org/wiki/AutoCAD) with Python Contents:[¶](#contents) === Getting started[¶](#getting-started) --- ### Installation[¶](#installation) If you have [pip](http://pypi.python.org/pypi/pip/) or [easy_install](http://pypi.python.org/pypi/setuptools), you can just: ``` pip install --upgrade pyautocad ``` or: ``` easy_install -U pyautocad ``` Also, you can download Windows installer from PyPI [pyautocad](http://pypi.python.org/pypi/pyautocad/) page. ### Requirements[¶](#requirements) * [comtypes](http://pypi.python.org/pypi/comtypes/) Note If you are using [pip](http://pypi.python.org/pypi/pip/) or [easy_install](http://pypi.python.org/pypi/setuptools), then it will be installed automatically. Otherwise you should install [comtypes](http://pypi.python.org/pypi/comtypes/) package manually. * Optional: [xlrd](http://pypi.python.org/pypi/xlrd) and [tablib](http://pypi.python.org/pypi/tablib) for working with tables ### Retrieving AutoCAD ActiveX documentation[¶](#retrieving-autocad-activex-documentation) A copy of the AutoCAD ActiveX guide and reference can be found in the `help` directory of your AutoCAD install. * `acad_aag.chm` - ActiveX and VBA Developer’s Guide * `acadauto.chm` - ActiveX and VBA Reference Reference can also be found in `C:\Program Files\Common Files\Autodesk Shared\acadauto.chm` ### What’s next?[¶](#what-s-next) Read the [*Usage*](index.html#document-usage) section, or look for real applications in [examples](https://github.com/reclosedev/pyautocad/tree/master/examples) folder of source distribution. Note Applications in [examples](https://github.com/reclosedev/pyautocad/tree/master/examples) are Russian engineering specific, but anyway I hope you’ll find something interesting in that code. For more info on features see [*API*](index.html#document-api) documentation and [sources](https://github.com/reclosedev/pyautocad). Usage[¶](#usage) --- ### Main interface and types[¶](#main-interface-and-types) For our first example, we will use [`Autocad`](index.html#pyautocad.api.Autocad) (main Automation object) and [`pyautocad.types.APoint`](index.html#pyautocad.types.APoint) for operations with coordinates ``` from pyautocad import Autocad, APoint ``` Let’s create AutoCAD application or connect to already running application: ``` acad = Autocad(create_if_not_exists=True) acad.prompt("Hello, Autocad from Python\n") print acad.doc.Name ``` To work with AutoCAD documents and objects we can use ActiveX interface, [`Autocad`](index.html#pyautocad.api.Autocad) (from pyautocad) contains some methods to simplify common Automation tasks, such as object iteration and searching, getting objects from user’s selection, printing messages. There are shortcuts for current `ActiveDocument` - [`Autocad.doc`](index.html#pyautocad.api.Autocad.doc) and `ActiveDocument.ModelSpace` - [`Autocad.model`](index.html#pyautocad.api.Autocad.model) Let’s add some objects to document: ``` p1 = APoint(0, 0) p2 = APoint(50, 25) for i in range(5): text = acad.model.AddText(u'Hi %s!' % i, p1, 2.5) acad.model.AddLine(p1, p2) acad.model.AddCircle(p1, 10) p1.y += 10 ``` Now our document contains some `Texts`, `Lines` and `Circles`, let’s iterate them all: ``` for obj in acad.iter_objects(): print obj.ObjectName ``` Wea can also iterate objects of concrete type: ``` for text in acad.iter_objects('Text'): print text.TextString, text.InsertionPoint ``` Note Object name can be partial and case insensitive, e.g. `acad.iter_objects('tex')` will return `AcDbText` and `AcDbMText` objects Or multiple types: ``` for obj in acad.iter_objects(['Text', 'Line']): print obj.ObjectName ``` Also we can find first object with some conditions. For example, let’s find first text item which contains `3`: ``` def text_contains_3(text_obj): return '3' in text_obj.TextString text = acad.find_one('Text', predicate=text_contains_3) print text.TextString ``` To modify objects in document, we need to find interesting objects and change its properties. Some properties are described with constants, e.g. text alignment. These constants can be accessed through [`ACAD`](index.html#pyautocad.api.ACAD). Let’s change all text objects text alignment: ``` from pyautocad import ACAD for text in acad.iter_objects('Text'): old_insertion_point = APoint(text.InsertionPoint) text.Alignment = ACAD.acAlignmentRight text.TextAlignmentPoint = old_insertion_point ``` In previous code we have converted `text.InsertionPoint` to [`APoint`](index.html#pyautocad.types.APoint) because we can’t just use default `tuple` when setting another properties such as `text.TextAlignmentPoint`. If wee need to change position of some object, we should use [`APoint`](index.html#pyautocad.types.APoint), for example let’s change lines end position: ``` for line in acad.iter_objects('Line'): p1 = APoint(line.StartPoint) line.EndPoint = p1 - APoint(20, 0) ``` ### Working with tables[¶](#working-with-tables) Note To work with tables, [xlrd](http://pypi.python.org/pypi/xlrd) and [tablib](http://pypi.python.org/pypi/tablib) should be installed. To simplify importing and exporting data there is [`Table`](index.html#pyautocad.contrib.tables.Table) class exist. It allows you to read and write tabular data in popular formats: * csv * xls * xlsx (write only) * json Let’s try to solve some basic task. We need to save text and position from all text objects to Excel file, and then load it back. First we need to add some objects to AutoCAD: ``` from pyautocad import Autocad, APoint from pyautocad.contrib.tables import Table acad = Autocad() p1 = APoint(0, 0) for i in range(5): obj = acad.model.AddText(u'Hi %s!' % i, p1, 2.5) p1.y += 10 ``` Now we can iterate this objects and save them to Excel table: ``` table = Table() for obj in acad.iter_objects('Text'): x, y, z = obj.InsertionPoint table.writerow([obj.TextString, x, y, z]) table.save('data.xls', 'xls') ``` After saving this data to ‘data.xls’ and probably changing it with some table processor software (e.g. Microsoft Office Excel) we can retrieve our data from file: ``` data = Table.data_from_file('data.xls') ``` `data` will contain: ``` [[u'Hi 0!', 0.0, 0.0, 0.0], [u'Hi 1!', 0.0, 10.0, 0.0], [u'Hi 2!', 0.0, 20.0, 0.0], [u'Hi 3!', 0.0, 30.0, 0.0], [u'Hi 4!', 0.0, 40.0, 0.0]] ``` See also Example of working with AutoCAD table objects at [examples/dev_get_table_info.py](https://github.com/reclosedev/pyautocad/blob/master/examples/dev_get_table_info.py) ### Improve speed[¶](#improve-speed) * ActiveX technology is quite slow. When you are accessing object attributes like position, text, etc, every time call is passed to AutoCAD. It can slowdown execution time. For example if you have program, which combines single line text based on its relative positions, you probably need to get each text position several times. To speed this up, you can cache objects attributes using the [`pyautocad.cache.Cached`](index.html#pyautocad.cache.Cached) proxy (see example in class documentation) * To improve speed of AutoCAD table manipulations, you can use `Table.RegenerateTableSuppressed = True` or handy context manager [`suppressed_regeneration_of(table)`](index.html#pyautocad.utils.suppressed_regeneration_of): ``` table = acad.model.AddTable(pos, rows, columns, row_height, col_width) with suppressed_regeneration_of(table): table.SetAlignment(ACAD.acDataRow, ACAD.acMiddleCenter) for row in range(rows): for col in range(columns): table.SetText(row, col, '%s %s' % (row, col)) ``` ### Utility functions[¶](#utility-functions) There is also some utility functions for work with AutoCAD text objects and more. See [`pyautocad.utils`](index.html#module-pyautocad.utils) documentation. API[¶](#api) --- This part of the documentation covers all the interfaces of pyautocad ### `api` - Main Autocad interface[¶](#module-pyautocad.api) *class* `pyautocad.api.``Autocad`(*create_if_not_exists=False*, *visible=True*)[[source]](_modules/pyautocad/api.html#Autocad)[¶](#pyautocad.api.Autocad) Main AutoCAD Automation object | Parameters: | * **create_if_not_exists** – if AutoCAD doesn’t run, then new instanse will be crated * **visible** – new AutoCAD instance will be visible if True (default) | `app`[¶](#pyautocad.api.Autocad.app) Returns active `AutoCAD.Application` if [`Autocad`](#pyautocad.api.Autocad) was created with `create_if_not_exists=True`, it will create `AutoCAD.Application` if there is no active one `doc`[¶](#pyautocad.api.Autocad.doc) Returns ActiveDocument of current [`Application`](#pyautocad.api.Autocad.Application) `ActiveDocument`[¶](#pyautocad.api.Autocad.ActiveDocument) Same as [`doc`](#pyautocad.api.Autocad.doc) `Application`[¶](#pyautocad.api.Autocad.Application) Same as [`app`](#pyautocad.api.Autocad.app) `model`[¶](#pyautocad.api.Autocad.model) ModelSpace from active document `iter_layouts`(*doc=None*, *skip_model=True*)[[source]](_modules/pyautocad/api.html#Autocad.iter_layouts)[¶](#pyautocad.api.Autocad.iter_layouts) Iterate layouts from *doc* | Parameters: | * **doc** – document to iterate layouts from if doc=None (default), [`ActiveDocument`](#pyautocad.api.Autocad.ActiveDocument) is used * **skip_model** – don’t include `ModelSpace` if True | `iter_objects`(*object_name_or_list=None*, *block=None*, *limit=None*, *dont_cast=False*)[[source]](_modules/pyautocad/api.html#Autocad.iter_objects)[¶](#pyautocad.api.Autocad.iter_objects) Iterate objects from block | Parameters: | * **object_name_or_list** – part of object type name, or list of it * **block** – Autocad block, default - `ActiveDocument.ActiveLayout.Block` * **limit** – max number of objects to return, default infinite * **dont_cast** – don’t retrieve best interface for object, may speedup iteration. Returned objects should be casted by caller | `iter_objects_fast`(*object_name_or_list=None*, *container=None*, *limit=None*)[[source]](_modules/pyautocad/api.html#Autocad.iter_objects_fast)[¶](#pyautocad.api.Autocad.iter_objects_fast) Shortcut for iter_objects(dont_cast=True) Shouldn’t be used in normal situations `find_one`(*object_name_or_list*, *container=None*, *predicate=None*)[[source]](_modules/pyautocad/api.html#Autocad.find_one)[¶](#pyautocad.api.Autocad.find_one) Returns first occurance of object which match predicate | Parameters: | * **object_name_or_list** – like in [`iter_objects()`](#pyautocad.api.Autocad.iter_objects) * **container** – like in [`iter_objects()`](#pyautocad.api.Autocad.iter_objects) * **predicate** – callable, which accepts object as argument and returns True or False | | Returns: | Object if found, else None | `best_interface`(*obj*)[[source]](_modules/pyautocad/api.html#Autocad.best_interface)[¶](#pyautocad.api.Autocad.best_interface) Retrieve best interface for object `prompt`(*text*)[[source]](_modules/pyautocad/api.html#Autocad.prompt)[¶](#pyautocad.api.Autocad.prompt) Prints text in console and in AutoCAD prompt `get_selection`(*text='Select objects'*)[[source]](_modules/pyautocad/api.html#Autocad.get_selection)[¶](#pyautocad.api.Autocad.get_selection) Asks user to select objects | Parameters: | **text** – prompt for selection | *static* `aDouble`(**seq*)[¶](#pyautocad.api.Autocad.aDouble) shortcut for [`pyautocad.types.aDouble()`](#pyautocad.types.aDouble) *static* `aInt`(**seq*)[¶](#pyautocad.api.Autocad.aInt) shortcut for [`pyautocad.types.aInt()`](#pyautocad.types.aInt) *static* `aShort`(**seq*)[¶](#pyautocad.api.Autocad.aShort) shortcut for [`pyautocad.types.aShort()`](#pyautocad.types.aShort) `pyautocad.api.``ACAD`[¶](#pyautocad.api.ACAD) Constants from AutoCAD type library, for example: ``` text.Alignment = ACAD.acAlignmentRight ``` --- ### `types` - 3D Point and other AutoCAD data types[¶](#module-pyautocad.types) *class* `pyautocad.types.``APoint`[[source]](_modules/pyautocad/types.html#APoint)[¶](#pyautocad.types.APoint) 3D point with basic geometric operations and support for passing as a parameter for AutoCAD Automation functions Usage: ``` >>> p1 = APoint(10, 10) >>> p2 = APoint(20, 20) >>> p1 + p2 APoint(30.00, 30.00, 0.00) ``` Also it supports iterable as parameter: ``` >>> APoint([10, 20, 30]) APoint(10.00, 20.00, 30.00) >>> APoint(range(3)) APoint(0.00, 1.00, 2.00) ``` Supported math operations: +, -, *, /, +=, -=, *=, /=: ``` >>> p = APoint(10, 10) >>> p + p APoint(20.00, 20.00, 0.00) >>> p + 10 APoint(20.00, 20.00, 10.00) >>> p * 2 APoint(20.00, 20.00, 0.00) >>> p -= 1 >>> p APoint(9.00, 9.00, -1.00) ``` It can be converted to tuple or list: ``` >>> tuple(APoint(1, 1, 1)) (1.0, 1.0, 1.0) ``` `x`[¶](#pyautocad.types.APoint.x) x coordinate of 3D point `y`[¶](#pyautocad.types.APoint.y) y coordinate of 3D point `z`[¶](#pyautocad.types.APoint.z) z coordinate of 3D point `distance_to`(*other*)[[source]](_modules/pyautocad/types.html#APoint.distance_to)[¶](#pyautocad.types.APoint.distance_to) Returns distance to other point | Parameters: | **other** – [`APoint`](#pyautocad.types.APoint) instance or any sequence of 3 coordinates | `pyautocad.types.``distance`(*p1*, *p2*)[[source]](_modules/pyautocad/types.html#distance)[¶](#pyautocad.types.distance) Returns distance between two points p1 and p2 `pyautocad.types.``aDouble`(**seq*)[[source]](_modules/pyautocad/types.html#aDouble)[¶](#pyautocad.types.aDouble) Returns `array.array` of doubles (‘d’ code) for passing to AutoCAD For 3D points use [`APoint`](#pyautocad.types.APoint) instead. `pyautocad.types.``aInt`(**seq*)[[source]](_modules/pyautocad/types.html#aInt)[¶](#pyautocad.types.aInt) Returns `array.array` of ints (‘l’ code) for passing to AutoCAD `pyautocad.types.``aShort`(**seq*)[[source]](_modules/pyautocad/types.html#aShort)[¶](#pyautocad.types.aShort) Returns `array.array` of shorts (‘h’ code) for passing to AutoCAD --- ### `utils` - Utility functions[¶](#module-pyautocad.utils) `pyautocad.utils.``timing`(*message*)[[source]](_modules/pyautocad/utils.html#timing)[¶](#pyautocad.utils.timing) Context manager for timing execution | Parameters: | **message** – message to print | Usage: ``` with timing('some operation'): do_some_actions() ``` Will print: ``` some operation: 1.000 s # where 1.000 is actual execution time ``` `pyautocad.utils.``suppressed_regeneration_of`(*table*)[[source]](_modules/pyautocad/utils.html#suppressed_regeneration_of)[¶](#pyautocad.utils.suppressed_regeneration_of) New in version 0.1.2. Context manager. Suppresses table regeneration to dramatically speedup table operations | Parameters: | **table** – table object | ``` with suppressed_regeneration_of(table): populate(table) # or change its properties ``` `pyautocad.utils.``unformat_mtext`(*s*, *exclude_list=('P'*, *'S')*)[[source]](_modules/pyautocad/utils.html#unformat_mtext)[¶](#pyautocad.utils.unformat_mtext) Returns string with removed format information | Parameters: | * **s** – string with multitext * **exclude_list** – don’t touch tags from this list. Default (‘P’, ‘S’) for newline and fractions | ``` >>> text = ur'{\fGOST type A|b0|i0|c204|p34;TEST\fGOST type A|b0|i0|c0|p34;123}' >>> unformat_mtext(text) u'TEST123' ``` `pyautocad.utils.``mtext_to_string`(*s*)[[source]](_modules/pyautocad/utils.html#mtext_to_string)[¶](#pyautocad.utils.mtext_to_string) Returns string with removed format innformation as [`unformat_mtext()`](#pyautocad.utils.unformat_mtext) and P (paragraphs) replaced with newlines ``` >>> text = ur'{\fGOST type A|b0|i0|c204|p34;TEST\fGOST type A|b0|i0|c0|p34;123}\Ptest321' >>> mtext_to_string(text) u'TEST123\ntest321' ``` `pyautocad.utils.``string_to_mtext`(*s*)[[source]](_modules/pyautocad/utils.html#string_to_mtext)[¶](#pyautocad.utils.string_to_mtext) Returns string in Autocad multitext format Replaces newllines \n with \P, etc. `pyautocad.utils.``text_width`(*text_item*)[[source]](_modules/pyautocad/utils.html#text_width)[¶](#pyautocad.utils.text_width) Returns width of Autocad Text or MultiText object `pyautocad.utils.``dynamic_print`(*text*)[[source]](_modules/pyautocad/utils.html#dynamic_print)[¶](#pyautocad.utils.dynamic_print) Prints text dynamically in one line Used for printing something like animations, or progress --- ### `contrib.tables` - Import and export tabular data from popular formats[¶](#module-pyautocad.contrib.tables) *class* `pyautocad.contrib.tables.``Table`[[source]](_modules/pyautocad/contrib/tables.html#Table)[¶](#pyautocad.contrib.tables.Table) Represents table with ability to import and export data to following formats: * csv * xls * xlsx (write only) * json When you need to store some data, it can be done as follows: ``` table = Table() for i in range(5): table.writerow([i, i, i]) table.save('data.xls', 'xls') ``` To import data from file, use [`data_from_file()`](#pyautocad.contrib.tables.Table.data_from_file): ``` data = Table.data_from_file('data.xls') ``` `writerow`(*row*)[[source]](_modules/pyautocad/contrib/tables.html#Table.writerow)[¶](#pyautocad.contrib.tables.Table.writerow) Add row to table | Parameters: | **row** (*list or tuple*) – row to add | `append`(*row*)[[source]](_modules/pyautocad/contrib/tables.html#Table.append)[¶](#pyautocad.contrib.tables.Table.append) Synonym for [`writerow()`](#pyautocad.contrib.tables.Table.writerow) `clear`()[[source]](_modules/pyautocad/contrib/tables.html#Table.clear)[¶](#pyautocad.contrib.tables.Table.clear) Clear current table `save`(*filename*, *fmt*, *encoding='cp1251'*)[[source]](_modules/pyautocad/contrib/tables.html#Table.save)[¶](#pyautocad.contrib.tables.Table.save) Save data to file | Parameters: | * **filename** – path to file * **fmt** – data format (one of supported, e.g. ‘xls’, ‘csv’ * **encoding** – encoding for ‘csv’ format | `convert`(*fmt*)[[source]](_modules/pyautocad/contrib/tables.html#Table.convert)[¶](#pyautocad.contrib.tables.Table.convert) Return data, converted to format | Parameters: | **fmt** – desirable format of data | **Note**: to convert to csv format, use [`to_csv()`](#pyautocad.contrib.tables.Table.to_csv) See also `available_write_formats()` `to_csv`(*stream*, *encoding='cp1251'*, *delimiter=';'*, ***kwargs*)[[source]](_modules/pyautocad/contrib/tables.html#Table.to_csv)[¶](#pyautocad.contrib.tables.Table.to_csv) Writes data in csv format to stream | Parameters: | * **stream** – stream to write data to * **encoding** – output encoding * **delimiter** – csv delimiter * **kwargs** – additional parameters for `csv.writer` | *static* `data_from_file`(*filename*, *fmt=None*, *csv_encoding='cp1251'*, *csv_delimiter=';'*)[[source]](_modules/pyautocad/contrib/tables.html#Table.data_from_file)[¶](#pyautocad.contrib.tables.Table.data_from_file) Returns data in desired format from file | Parameters: | * **filename** – path to file with data * **fmt** – format of file, if it’s None, then it tries to guess format from filename extension * **csv_encoding** – encoding for csv data * **csv_delimiter** – delimiter for csv data | Format should be in `available_read_formats()` --- ### `cache` - Cache all object’s attributes[¶](#cache-cache-all-object-s-attributes) New in version 0.1.2. *class* `pyautocad.cache.``Cached`(*instance*)[[source]](_modules/pyautocad/cache.html#Cached)[¶](#pyautocad.cache.Cached) Proxy for caching object attributes. Consider external class Foo with expensive property (we can’t change its code): ``` class Foo(object): @property def x(self): print 'consuming time' time.sleep(1) return 42 ``` Cache all attributes and test access: ``` foo = Foo() cached_foo = Cached(foo) for i in range(10): print cached_foo.x ``` Output: ``` consuming time 42 42 42 42 42 ``` It’s possible to switch caching off with [`switch_caching()`](#pyautocad.cache.Cached.switch_caching) and retrieve original instance with [`get_original()`](#pyautocad.cache.Cached.get_original) `get_original`()[[source]](_modules/pyautocad/cache.html#Cached.get_original)[¶](#pyautocad.cache.Cached.get_original) Returns original instance `switch_caching`(*is_enabled*)[[source]](_modules/pyautocad/cache.html#Cached.switch_caching)[¶](#pyautocad.cache.Cached.switch_caching) Switch caching on or off | Parameters: | **is_enabled** (*bool*) – caching status True or False | Indices and tables[¶](#indices-and-tables) === * [Index](genindex.html) * [Module Index](py-modindex.html) * [Search Page](search.html)
nfcpy
readthedoc
Python
nfcpy 1.0.4 documentation [nfcpy](index.html#document-index) --- Python module for near field communication[¶](#python-module-for-near-field-communication) === > This documentation covers the ‘1.0.4’ version of > **nfcpy**. There are also other [versions](https://readthedocs.org/projects/nfcpy/versions). The **nfcpy** module implements [NFC Forum](http://nfc-forum.org/) specifications for wireless short-range data exchange with NFC devices and tags. It is written in [Python](https://www.python.org) and aims to provide an easy-to-use yet powerful framework for applications integrating NFC. The source code is licensed under the [EUPL](http://ec.europa.eu/idabc/eupl) and hosted at [GitHub](https://github.com/nfcpy/nfcpy). The latest release version can be installed from [PyPI](https://pypi.python.org/pypi/nfcpy) with `pip install -U nfcpy`. To send a web link to a smartphone: ``` import nfc import ndef from threading import Thread def beam(llc): snep_client = nfc.snep.SnepClient(llc) snep_client.put_records([ndef.UriRecord('http://nfcpy.org')]) def connected(llc): Thread(target=beam, args=(llc,)).start() return True with nfc.ContactlessFrontend('usb') as clf: clf.connect(llcp={'on-connect': connected}) ``` There are also a number of [Example Programs](index.html#document-examples/index) that can be used from the command line: ``` $ examples/beam.py send link http://nfcpy.org ``` Overview[¶](#overview) --- ### Requirements[¶](#requirements) * [Python](https://www.python.org) version 2.7 or 3.5 or newer * Python [usb1](https://github.com/vpelletier/python-libusb1) module to access USB devices through [libusb](http://libusb.info) * Python [serial](http://pythonhosted.org/pyserial/) module to access serial (incl. FTDI) devices * Python [docopt](https://github.com/docopt/docopt) module for some of the example programs ### Supported Devices[¶](#supported-devices) The contactless devices known to be working with *nfcpy* are listed below with the device path column showing the full *path* argument for the [`nfc.clf.ContactlessFrontend.open()`](index.html#nfc.clf.ContactlessFrontend.open) method or the `--device` option that most example programs support. The testbed column shows the devices that are regularly tested with *nfcpy*. | Manufacturer | Product | NFC Chip | Device Path | Testbed | Notes | | --- | --- | --- | --- | --- | --- | | Sony | RC-S330 | RC-S956 | usb:054c:02e1 | Yes | [[1]](#hw1) | | Sony | RC-S360 | RC-S956 | usb:054c:02e1 | Yes | [[1]](#hw1) | | Sony | RC-S370 | RC-S956 | usb:054c:02e1 | No | [[1]](#hw1) | | Sony | RC-S380/S | Port100 | usb:054c:06c1 | Yes | [[2]](#hw2) | | Sony | RC-S380/P | Port100 | usb:054c:06c3 | No | [[2]](#hw2) | | Sony | Board | PN531v4.2 | usb:054c:0193 | Yes | [[3]](#hw3) | | Philips/NXP | Board | PN531v4.2 | usb:04cc:0531 | Yes | [[3]](#hw3) | | Identive | SCL3710 | PN531 | usb:04cc:0531 | No | [[4]](#hw4) | | ACS | ACR122U | PN532v1.4 | usb:072f:2200 | Yes | [[5]](#hw5) | | ACS | ACR122U | PN532v1.6 | usb:072f:2200 | Yes | [[5]](#hw5) | | Stollmann | Reader | PN532v1.4 | tty:USB0:pn532 | Yes | [[6]](#hw6) | | Adafruit | Board | PN532v1.6 | tty:AMA0:pn532 | Yes | [[7]](#hw7) | | Identive | SCL3711 | PN533v2.7 | usb:04e6:5591 | Yes | [[8]](#hw8) | | Identive | SCL3712 | PN533 | usb:04e6:5593 | No | [[9]](#hw9) | | SensorID | StickID | PN533v2.7 | usb:04cc:2533 | Yes | [[10]](#hw10) | | Arygon | ADRA | PN531v4.2 | tty:USB0:arygon | Yes | | | [1] | *([1](#id1), [2](#id2), [3](#id3))* The Sony RC-S330, RC-S360, and RC-S370 are in fact identical devicess, the difference is only in size and thus antenna. | | [2] | *([1](#id4), [2](#id5))* The only known difference between RC-S380/S and RC-S380/P is that the RC-380/S has the CE and FCC certification marks for sales in Europe and US. | | [3] | *([1](#id6), [2](#id7))* This is a reference board that was once designed by Philips and Sony and has a hardware switch to select either the Philips or Sony USB Vendor/Product ID. The chip can only handle Type A and Type F technology. | | [[4]](#id8) | This device is supported as a standard PN531. It has been reported to work as expected but is not part of regular testing. | | [5] | *([1](#id9), [2](#id10))* While the ACR122U internally uses a PN532 contactless chip the functionality provided by a PN532 can not be fully used due to an additional controller that implements a USB-CCID interface (for PC/SC) towards the host. It is possible using PCSC_Escape commands to unleash some functionality but this this is not equivalent to directly accessing a PN532. **It is not recommended to buy this device for use with nfcpy.** | | [[6]](#id11) | The path shown is for Ubuntu Linux in case the reader is the first UART/USB bridge found by the OS. Also on Windows OS the path is slightly different (`com:COM1:pn532`). | | [[7]](#id12) | This is sold by Adafruit as “PN532 NFC/RFID Controller Breakout Board” and can directly be connected to a serial port of, for example, a Raspberry Pi (the device path shown is for the Raspberry Pi’s UART, when using a USB/UART bridge it would be `usb:USB0:pn532`). Note that the serial link speed is only 115200 baud when connected at /dev/ttyAMA0 while with a USB/UART bridge it may be up to 921600 baud (on Linux the driver tries to figure this out). | | [[8]](#id13) | The SCL3711 has a relatively small antenna that winds around the circuitry and may be the reason for less superior performance when operating as a target in passive communication mode (where the external field must be modulated). | | [[9]](#id14) | The SCL3712 has been reported to work but is not available for regular testing. | | [[10]](#id15) | The SensorID USB stick is a native PN533. It has no EEPROM attached and thus uses the default NXP Vendor/Product IDs from the ROM code. Absence of an EEPROM also means that the firmware uses default RF settings. | #### Functional Support[¶](#functional-support) The following table summarizes the functional support level of the supported devices. Identical devices are aggregated under one of the product names. Only testbed devices are covered. In the table an `x` means that the function is supported by hardware and software while an `o` means that the hardware would support but but the software not yet implemented. More information about individual driver / hardware restrictions can be found in the [`nfc.clf`](index.html#module-nfc.clf) documentation. | | Tag Read/Write | Tag Emulation | Peer2Peer | | --- | --- | --- | --- | | | 1 | 2 | 3 | 4A | 4B | 1 | 2 | 3 | 4A | 4B | I | T | ac | | RC-S380 | x | x | x | x | x | | o | x | o | | x | x | | | RC-S956 | | x | x | x | x | | o | | o | | x | x | | | PN533 | x | x | x | x | x | | o | x | o | | x | x | x | | PN532 | x | x | x | x | x | | o | x | o | | x | x | x | | PN531 | | x | x | x | | | o | | o | | x | x | x | | ACR122U | | x | x | x | x | | | | | | x | | | #### General Notes[¶](#general-notes) * Testbed devices are verified to work with the latest stable nfcpy release. Test platforms are Ubuntu Linux (usually the latest version), Raspbian (with Raspberry Pi 2 Model B), and Windows (currently a Windows 7 virtual machine). No tests are done for MAC OS X because of lack of hardware. * All device architectures with a PN532 or PN533 suffer from a firmware bug concerning Type 1 Tags with dynamic memory layout (e.g. the Topaz 512). With *nfcpy* version 0.10 this restriction could be removed by directly adressing the Contactless Interface Unit (CIU) within the chip. * The ACR122U is not supported as P2P Target because the listen time can not be set to less than 5 seconds. It can not be overstated that the ACR122U is not a good choice for *nfcpy*. ### Implementation Status[¶](#implementation-status) | Specification | Status | | --- | --- | | TS NFC Digital Protocol 1.1 | implemented | | TS NFC Activity 1.1 | implemented | | TS Type 1 Tag Operation 1.2 | implemented | | TS Type 2 Tag Operation 1.2 | implemented | | TS Type 3 Tag Operation 1.2 | implemented | | TS Type 4 Tag Operation 3.0 | implemented | | TS NFC Data Exchange Format 1.0 | except chunking | | TS NFC Record Type Definition 1.0 | implemented | | TS Text Record Type 1.0 | implemented | | TS URI Record Type 1.0 | implemented | | TS Smart Poster Record Type 1.0 | implemented | | TS Signature Record Type | not implemented | | TS Logical Link Control Protocol 1.3 | implemented | | TS Simple NDEF Exchange Protocol 1.0 | implemented | | TS Connection Handover 1.2 | implemented | | TS Personal Health Communication 1.0 | implemented | | AD Bluetooth Secure Simple Pairing | implemented | ### References[¶](#references) * NFC Forum Specifications: <http://nfc-forum.org/our-work/specifications-and-application-documents/Getting started[¶](#getting-started) --- ### Installation[¶](#installation) NFCPy requires the library [libusb](http://libusb.info/) for generic access to USB devices. **Install libusb (Linux)** Linux distributions usually have this installed, otherwise it should be available through the standard package manager (beware not to choose the old version `0.x`). **Install libusb (Windows)** Windows users will have to manually install [WinUSB](https://msdn.microsoft.com/en-us/library/ff540196.aspx) and [libusb](http://libusb.info/). Microsoft provides instructions to install [WinUSB](https://msdn.microsoft.com/en-us/library/ff540196.aspx) but a much simpler approach is to use [Zadig](http://zadig.akeo.ie/) (a driver installation helper application). * Download [Zadig](http://zadig.akeo.ie/) * Connect your NFC device * Run the downloaded executable * Click Options -> List All Devices * Select your NFC reading/writing device from the list * Select the WinUSB driver from the other drop down and install it Then, install libusb: * Download [libusb](http://libusb.info/) (Downloads -> Latest Windows Binaries). * Unpack the 7z archive (you may use [7zip](https://www.7-zip.org/download.html)). * For 32-bit Windows: + Copy `MS32\dll\libusb-1.0.dll` to `C:\Windows\System32`. * For 64-bit Windows: + Copy `MS64\dll\libusb-1.0.dll` to `C:\Windows\System32`. + Copy `MS32\dll\libusb-1.0.dll` to `C:\Windows\SysWOW64`. **Install Python and nfcpy** Download and install [Python](https://www.python.org/downloads/) (2.7 or 3.5 or later). Note Python may already be installed on your system if you are a Linux user. Once Python is installed use [pip](https://pip.pypa.io/en/stable/) to install the latest stable version of *nfcpy*. This will also install the required `libusb1` and `pyserial` Python modules. ``` $ pip install -U nfcpy ``` Windows users will want to ensure they have configured their environment’s PATH correctly, otherwise they will not be able to access `pip` on the command line. It is usually located at `C:\Python27\Scripts\pip.exe` so they must ensure `C:\Python27\Scripts\` is on their PATH.) **Verify installation** Check if everything installed correctly and that *nfcpy* is able to find your contactless reader. ``` $ python -m nfc ``` If all goes well the output should tell that your your reader was found, below is an example of how it may look with an SCL3711: ``` This is the latest version of nfcpy run in Python 2.7.12 on Linux-4.4.0-47-generic-x86_64-with-Ubuntu-16.04-xenial I'm now searching your system for contactless devices ** found SCM Micro SCL3711-NFC&RW PN533v2.7 at usb:002:024 I'm not trying serial devices because you haven't told me -- add the option '--search-tty' to have me looking -- but beware that this may break existing connections ``` Common problems on Linux (access rights or other drivers claiming the device) should be reported with a possible solution: ``` This is the latest version of nfcpy run in Python 2.7.12 on Linux-4.4.0-47-generic-x86_64-with-Ubuntu-16.04-xenial I'm now searching your system for contactless devices ** found usb:04e6:5591 at usb:002:025 but access is denied -- the device is owned by 'root' but you are 'stephen' -- also members of the 'root' group would be permitted -- you could use 'sudo' but this is not recommended -- it's better to add the device to the 'plugdev' group sudo sh -c 'echo SUBSYSTEM==\"usb\", ACTION==\"add\", ATTRS{idVendor}==\"04e6\", ATTRS{idProduct}==\"5591\", GROUP=\"plugdev\" >> /etc/udev/rules.d/nfcdev.rules' sudo udevadm control -R # then re-attach device I'm not trying serial devices because you haven't told me -- add the option '--search-tty' to have me looking -- but beware that this may break other serial devs Sorry, but I couldn't find any contactless device ``` ### Open a local device[¶](#open-a-local-device) Any data exchange with a remote NFC device needs a contactless frontend attached and opened for communication. Most commercial devices (also called NFC Reader) are physically attached through USB and either provide a native USB interface or a virtual serial port. The [`nfc.ContactlessFrontend`](index.html#nfc.ContactlessFrontend) manages all communication with a local device. The [`open`](index.html#nfc.clf.ContactlessFrontend.open) method tries to find and open a device and returns True for success. The string argument determines the device with a sequence of components separated by colon. The first component determines where the device is attached (usb, tty, or udp) and what the further components may be. This is best explained by example. Suppose a FeliCa S330 Reader is attached to a Linux computer on USB bus number 3 and got device number 9 (note that device numbers always increment when a device is connected): ``` $ lsusb ... Bus 003 Device 009: ID 054c:02e1 Sony Corp. FeliCa S330 [PaSoRi] ... ``` ``` >>> import nfc >>> clf = nfc.ContactlessFrontend() >>> assert clf.open('usb:003:009') is True # open device 9 on bus 3 >>> assert clf.open('usb:054c:02e1') is True # open first PaSoRi 330 >>> assert clf.open('usb:003') is True # open first Reader on bus 3 >>> assert clf.open('usb:054c') is True # open first Sony Reader >>> assert clf.open('usb') is True # open first USB Reader >>> clf.close() # previous open calls implicitly closed the device ``` Some devices, especially for embedded projects, have a UART interface that may be connected either directly or through a USB UART adapter. Below is an example of a Raspberry Pi 3 which has two UART ports (ttyAMA0, ttyS0) and one reader is connected with a USB UART adapter (ttyUSB0). On a Raspberry Pi 3 the UART linked from /dev/serial1 is available on the GPIO header (the other one is used for Bluetooth connectivity). On a Raspberry Pi 2 it is always ttyAMA0. ``` pi@raspberrypi ~ $ ls -l /dev/tty[ASU]* /dev/serial? lrwxrwxrwx 1 root root 5 Dez 21 18:11 /dev/serial0 -> ttyS0 lrwxrwxrwx 1 root root 7 Dez 21 18:11 /dev/serial1 -> ttyAMA0 crw-rw--- 1 root dialout 204, 64 Dez 21 18:11 /dev/ttyAMA0 crw-rw--- 1 root dialout 4, 64 Dez 21 18:11 /dev/ttyS0 crw-rw--- 1 root dialout 188, 0 Feb 24 12:17 /dev/ttyUSB0 ``` ``` >>> import nfc >>> clf = nfc.ContactlessFrontend() >>> assert clf.open('tty:USB0:arygon') is True # open /dev/ttyUSB0 with arygon driver >>> assert clf.open('tty:USB0:pn532') is True # open /dev/ttyUSB0 with pn532 driver >>> assert clf.open('tty:AMA0') is True # try different drivers on /dev/ttyAMA0 >>> assert clf.open('tty') is True # try all serial ports and drivers >>> clf.close() # previous open calls implicitly closed the device ``` A special kind of device bus that does not require any physical hardware is provided for testing and application prototyping. It works by sending NFC communication frames across a UDP/IP connection and can be used to connect two processes running an *nfcpy* application either locally or remote. In the following example the device path is supplied as an init argument. This would raise an `exceptions.IOError` with [`errno.ENODEV`](https://docs.python.org/3/library/errno.html#errno.ENODEV) if it fails to open. The example also demonstrates the use of a [`with`](https://docs.python.org/3/reference/compound_stmts.html#with) statement for automatic close when leaving the context. ``` >>> import nfc >>> with nfc.ContactlessFrontend('udp') as clf: ... print(clf) ... Linux IP-Stack on udp:localhost:54321 ``` ### Read and write tags[¶](#read-and-write-tags) NFC Tag Devices are tiny electronics devices with a comparatively large (some square centimeters) antenna that serves as both an inductive power receiver and for communication. The energy is provided by the NFC Reader Device for as long as it wishes to communicate with the Tag. Most Tags are embedded in plastics or paper and can store data in persistent memory. NFC Tags as defined by the NFC Forum have standardized memory format and command set to store NFC Data Exchange Format (NDEF) records. Most commercial NFC Tags also provide vendor-specific commands for special applications, some of those can be used with *nfcpy*. A rather new class of NFC Interface Tags is targeted towards providing NFC communication for embedded devices where the information exchange is through NFC with the microcontroller of the embedded device. Tip It is quite easy to make an NFC field detector. Just a few turns of copper wire around three fingers and the ends soldered to an LED will do the job. Here’s a [video](https://www.youtube.com/watch?v=dTv4U5fotM0). NFC Tags are simple slave devices that wait unconditionally for any reader command to respond. This makes it easy to interact with them from within a Python interpreter session using the local contactless frontend. ``` >>> import nfc >>> clf = nfc.ContactlessFrontend('usb') ``` The [`clf.sense()`](index.html#nfc.clf.ContactlessFrontend.sense) method can now be used to search for a proximity target with arguments set for the desired communication technologies. The example shows the result of a Type F card response for which the `nfc.tag.activate()` function then returns a [`Type3Tag`](index.html#nfc.tag.tt3.Type3Tag) instance. ``` >>> from nfc.clf import RemoteTarget >>> target = clf.sense(RemoteTarget('106A'), RemoteTarget('106B'), RemoteTarget('212F')) >>> print(target) 212F sensf_res=0101010701260CCA020F0D23042F7783FF12FC >>> tag = nfc.tag.activate(clf, target) >>> print(tag) Type3Tag 'FeliCa Standard (RC-S960)' ID=01010701260CCA02 PMM=0F0D23042F7783FF SYS=12FC ``` The same [`Type3Tag`](index.html#nfc.tag.tt3.Type3Tag) instance can also be acquired with the [`clf.connect()`](index.html#nfc.clf.ContactlessFrontend.connect) method. This is the generally preferred way to discover and activate contactless targets of any supported type. When configured with the *rdwr* dictionary argument the [`clf.connect()`](index.html#nfc.clf.ContactlessFrontend.connect) method will use Reader/Writer mode to discover NFC Tags. When a Tag is found and activated, the `on-connect` callback function returning `False` means that the tag presence loop shall not be run but the [`nfc.tag.Tag`](index.html#nfc.tag.Tag) object returned immediately. A more useful callback function could do something with the *tag* and return `True` for requesting a presence loop that makes [`clf.connect()`](index.html#nfc.clf.ContactlessFrontend.connect) return only after the tag is gone. ``` >>> tag = clf.connect(rdwr={'on-connect': lambda tag: False}) >>> print(tag) Type3Tag 'FeliCa Standard (RC-S960)' ID=01010701260CCA02 PMM=0F0D23042F7783FF SYS=12FC ``` An NFC Forum Tag can store NFC Data Exchange Format (NDEF) Records in a specifically formatted memory region. NDEF data is found automatically and wrapped into an [`NDEF`](index.html#nfc.tag.Tag.NDEF) object accessible through the [`tag.ndef`](index.html#nfc.tag.Tag.ndef) attribute. When NDEF data is not present the attribute is simply `None`. ``` >>> assert tag.ndef is not None >>> for record in tag.ndef.records: ... print(record) ... NDEF Uri Record ID '' Resource 'http://nfcpy.org' ``` The [`tag.ndef.records`](index.html#nfc.tag.Tag.NDEF.records) attribute contains a list of NDEF Records decoded from [`tag.ndef.octets`](index.html#nfc.tag.Tag.NDEF.octets) with the [ndeflib](http://ndeflib.readthedocs.io/en/stable/) package. Each record has common and type-specific methods and attributes for content access. ``` >>> record = tag.ndef.records[0] >>> print(record.type) urn:nfc:wkt:U >>> print(record.uri) http://nfcpy.org ``` A list of NDEF Records assigned to [`tag.ndef.records`](index.html#nfc.tag.Tag.NDEF.records) gets encoded and then written to the Tag (internally the bytes are assigned to [`tag.ndef.octets`](index.html#nfc.tag.Tag.NDEF.octets) to trigger the update). ``` >>> import ndef >>> uri, title = 'http://nfcpy.org', 'nfcpy project' >>> tag.ndef.records = [ndef.SmartposterRecord(uri, title)] ``` When NDEF data bytes are written to a Memory Tag then the [`tag.ndef`](index.html#nfc.tag.Tag.ndef) object matches the stored data. In case of an Interface Tag this may not be true because the write commands may be handled differently by the device. The only way to find out is read back the data and compare. This is the logic behind [`tag.ndef.has_changed`](index.html#nfc.tag.Tag.NDEF.has_changed), which should be `False` for a Memory Tag. ``` >>> assert tag.ndef.has_changed is False ``` An NFC Interface Tag may be used to realize a device that presents dynamically changing NDEF data depending on internal state, for example a sensor device returning the current temperature. ``` >>> tag = clf.connect(rdwr={'on-connect': lambda tag: False}) >>> print(tag) Type3Tag 'FeliCa Link (RC-S730) Plug Mode' ID=03FEFFFFFFFFFFFF PMM=00E1000000FFFF00 SYS=12FC >>> assert tag.ndef is not None and tag.ndef.length > 0 >>> assert tag.ndef.records[0].type == 'urn:nfc:wkt:T' >>> print('Temperature 0: {}'.format(tag.ndef.records[0].text)) Temperature 0: +21.3 C >>> for count in range(1, 4): ... while not tag.ndef.has_changed: time.sleep(1) ... print('Temperature {}: {}'.format(count, tag.ndef.records[0].text)) ... Temperature 1: +21.0 C Temperature 2: +20.5 C Temperature 3: +20.1 C ``` Finally the contactless frontend should be closed. ``` >>> clf.close() ``` Documentation of all available Tag classes as well as NDEF class methods and attributes can be found in the [`nfc.tag`](index.html#module-nfc.tag) module reference. For NDEF Record class types, methods and attributes consult the [ndeflib](http://ndeflib.readthedocs.io/en/stable/) documentation. ### Emulate a card[¶](#emulate-a-card) It is possible to emulate a card (NFC Tag) with *nfcpy* but unfortunately this only works with some NFC devices and is limited to Type 3 Tag emulation. The RC-S380 fully supports Type 3 Tag emulation. Devices based on PN532, PN533, or RC-S956 chipset can also be used but an internal frame size limit of 64 byte only allows read/write operations with up to 3 data blocks. Below is an example of an NDEF formatted Type 3 Tag. The first 16 byte (first data block) contain the attribute data by which the reader will learn the NDEF version, the number of data blocks that can be read or written in a single command, the total capacity and the write permission state. Bytes 11 to 13 contain the current NDEF message length, initialized to zero. The example is made to specifically open only an RC-S380 contactless frontend (otherwise the number of blocks that may be read or written should not be more than 3). ``` import nfc import struct ndef_data_area = bytearray(64 * 16) ndef_data_area[0] = 0x10 # NDEF mapping version '1.0' ndef_data_area[1] = 12 # Number of blocks that may be read at once ndef_data_area[2] = 8 # Number of blocks that may be written at once ndef_data_area[4] = 63 # Number of blocks available for NDEF data ndef_data_area[10] = 1 # NDEF read and write operations are allowed ndef_data_area[14:16] = struct.pack('>H', sum(ndef_data_area[0:14])) # Checksum def ndef_read(block_number, rb, re): if block_number < len(ndef_data_area) / 16: first, last = block_number*16, (block_number+1)*16 block_data = ndef_data_area[first:last] return block_data def ndef_write(block_number, block_data, wb, we): global ndef_data_area if block_number < len(ndef_data_area) / 16: first, last = block_number*16, (block_number+1)*16 ndef_data_area[first:last] = block_data return True def on_startup(target): idm, pmm, sys = '03FEFFE011223344', '01E0000000FFFF00', '12FC' target.sensf_res = bytearray.fromhex('01' + idm + pmm + sys) target.brty = "212F" return target def on_connect(tag): print("tag activated") tag.add_service(0x0009, ndef_read, ndef_write) tag.add_service(0x000B, ndef_read, lambda: False) return True with nfc.ContactlessFrontend('usb:054c:06c1') as clf: while clf.connect(card={'on-startup': on_startup, 'on-connect': on_connect}): print("tag released") ``` This is a fully functional NFC Forum Type 3 Tag. With a separate reader or Android apps such as [NXP Tag Info](https://play.google.com/store/apps/details?id=com.nxp.taginfolite) and [NXP Tag Writer](https://play.google.com/store/apps/details?id=com.nxp.nfc.tagwriter), NDEF data can now be written into the **ndef_data_area** and read back until the loop is terminated with `Control-C`. ### Work with a peer[¶](#work-with-a-peer) The best part of NFC comes when the limitations of a single master controlling a humble servant are overcome. This is achieved by the NFC Forum Logical Link Control Protocol (LLCP), which allows multiplexed communications between two NFC Forum Devices with either peer able to send protocol data units at any time and no restriction to a single application run in one direction. An LLCP link between two NFC devices is requested with the **llcp** argument to [`clf.connect()`](index.html#nfc.clf.ContactlessFrontend.connect). ``` >>> import nfc >>> clf = ContactlessFrontend('usb') >>> clf.connect(llcp={}) # now touch a phone True ``` When the first example got LLCP running there is actually just symmetry packets exchanged back and forth until the link is broken. We have to use callback functions to add some useful stuff. ``` >>> def on_connect(llc): ... print llc; return True ... >>> clf.connect(llcp={'on-connect': connected}) LLC: Local(MIU=128, LTO=100ms) Remote(MIU=1024, LTO=500ms) True ``` The on_connect function receives a single argument **llc**, which is the [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController) instance coordinates aal data exchange with the remote peer. With this we can add client applications but they must be run in a separate execution context to have on_connect return fast. Only after on_connect returns, the **llc** can start running the symmetry loop (the LLCP heartbeat) with the remote peer and generally receive and dispatch protocol and service data units. When using the interactive interpreter it is less convinient to program in the callback functions so we will start a thread in the callback to execute the *llc.run** loop and return with False. This tells [`clf.connect()`](index.html#nfc.clf.ContactlessFrontend.connect) to return immediately with the **llc** instance). ``` >>> import threading >>> def on_connect(llc): ... threading.Thread(target=llc.run).start(); return False ... >>> llc = clf.connect(llcp={'on-connect': on_connect}) >>> print llc LLC: Local(MIU=128, LTO=100ms) Remote(MIU=1024, LTO=500ms) ``` Application code is not supposed to work directly with the **llc** object but use it to create [`Socket`](index.html#nfc.llcp.Socket) objects for the actual communication. Two types of regular sockets can be created with either `nfc.llcp.LOGICAL_DATA_LINK` for a connection-less socket or `nfc.llcp.DATA_LINK_CONNECTION` for a connection-mode socket. A connection-less socket does not guarantee that application data is delivered to the remote application (although *nfcpy* makes sure that it’s been delivered to the remote device). A connection-mode socket cares about reliability, unless the other implementation is buggy data you send is guaranteed to make it to the receiving application - error-free and in order. What can be done with an Android phone as the peer device is for example to send to its default SNEP Server. SNEP is the NFC Forum Simple NDEF Exchange Protocol and a default SNEP Server is built into Android under the name of Android Beam. SNEP messages are exchanged over an LLCP data link connection so we create a connection mode socket, connect to the server with the service name known from the [NFC Forum Assigned Numbers Register](http://members.nfc-forum.org/specs/nfc_forum_assigned_numbers_register) and then send a SNEP PUT request with a web link to open. ``` >>> import ndef >>> socket = nfc.llcp.Socket(llc, nfc.llcp.DATA_LINK_CONNECTION) >>> socket.connect('urn:nfc:sn:snep') >>> records = [ndef.UriRecord("http://nfcpy.org")] >>> message = b''.join(ndef.message_encoder(records)) >>> socket.send(b"\x10\x02\x00\x00\x00" + chr(len(message)) + message) >>> socket.recv() '\x10\x81\x00\x00\x00\x00' >>> socket.close() ``` The phone should now have opened the <http://nfcpy.org> web page. The code can be simplified by using the [`SnepClient`](index.html#nfc.snep.SnepClient) from the [`nfc.snep`](index.html#module-nfc.snep) package. ``` >>> import nfc.snep >>> snep = nfc.snep.SnepClient(llc) >>> snep.put_records([ndef.UriRecord("http://nfcpy.org")]) True ``` The `put()` method is smart enough to temporarily connect to `urn:nfc.sn:snep` for sending. There are also methods to open and close the connection explicitely and maybe use a different service name. Note The [Logical Link Control Protocol](index.html#llcp-tutorial) tutorial has more information on LLCP in general and how its used with *nfcpy*. The [`nfc.llcp`](index.html#module-nfc.llcp) package documentation contains describes all the API classes and methods that are available. Logical Link Control Protocol[¶](#logical-link-control-protocol) --- The Logical Link Control Protocol allows multiplexed communications between two NFC Forum Peer Devices where either peer can send protocol data units at any time (asynchronous balanced mode). The communication endpoints are called Service Access Points (SAP) and are addressed by a 6 bit numerical identifier. Protocol data units are exchanged between exactly two service access points, from a source SAP (SSAP) to a destination SAP (DSAP). The service access point address space is split into 3 parts: an address between 0 and 15 identifies a well-known service, an address between 16 and 31 identifies a service that is registered in the local service environment, and addresses between 32 and 63 are unregistered and normally used as a source address by client applications that send or connect to peer services. The interface to realize LLCP client and server applications in nfcpy is implemented by the [`nfc.llcp.Socket`](index.html#nfc.llcp.Socket) class. A socket is created with a [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController) instance and the *socket type* as arguments to the [`Socket`](index.html#nfc.llcp.Socket) constructor. The `nfc.ContactlessFrontend.connect()` method accepts callback functions that will receive the active [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController) instance as argument. ``` import nfc import nfc.llcp def client(socket): socket.sendto("message", addr=16) def connected(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.LOGICAL_DATA_LINK) Thread(target=client, args=(socket,)).start() return True clf = nfc.ContactlessFrontend() clf.connect(llcp={'on-connect': connected}) ``` Although service access points are generally identified by a numerical address, the LLCP service discovery component allows SAPs to be associated with a globally unique service name and become discoverable by remote applications. A service name may represent either an NFC Forum well-known or an externally defined service name. * The format `urn:nfc:sn:<servicename>` represents a well-known service name, for example the service name `urn:nfc:sn:snep` identifies the NFC Forum Simple NDEF Data Exchange (SNEP) default server. * The format `urn:nfc:xsn:<domain>:<servicename>` represents a service name that is defined by the *domain* owner, for example the service name `urn:nfc:xsn:nfc-forum.org:snep-validation` is the service name of a special SNEP server used by the NFC Forum during validation of the SNEP secification. In nfcpy a service name can be registered with [`Socket.bind()`](index.html#nfc.llcp.Socket.bind) and a service name string as the address parameter. The allocated service access point address number can then be retrived with [`getsockname()`](index.html#nfc.llcp.Socket.getsockname). A remote service name can be resolved into a service access point address number with [`resolve()`](index.html#nfc.llcp.Socket.resolve). ``` def server(socket): message, address = socket.recvfrom() socket.sendto("It's me!", address) def client(socket): address = socket.resolve( 'urn:nfc:xsn:nfcpy.org:test-service' ) socket.sendto("Hi there!", address) message, address = socket.recvfrom() print("SAP {0} said: {1}".format(address, message)) def startup(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.LOGICAL_DATA_LINK) socket.bind( 'urn:nfc:xsn:nfcpy.org:test-service' ) print("server bound to SAP {0}".format(socket.getsockname())) Thread(target=server, args=(socket,)).start() return llc def connected(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.LOGICAL_DATA_LINK) Thread(target=client, args=(socket,)).start() return True clf = nfc.ContactlessFrontend() clf.connect(llcp={'on-startup': startup, 'on-connect': connected}) ``` Connection-mode sockets must be connected before data can be exchanged. For a server socket this involves calls to [`bind()`](index.html#nfc.llcp.Socket.bind), [`listen()`](index.html#nfc.llcp.Socket.listen) and [`accept()`](index.html#nfc.llcp.Socket.accept), and for a client socket to call [`resolve()`](index.html#nfc.llcp.Socket.resolve) and [`connect()`](index.html#nfc.llcp.Socket.connect) with the address returned by [`resolve()`](index.html#nfc.llcp.Socket.resolve) or to simply call [`connect()`](index.html#nfc.llcp.Socket.connect) with the service name as *address* (note that [`resolve()`](index.html#nfc.llcp.Socket.resolve) becomes more efficient when queries for multiple service names are needed). ``` def server(socket): # note that this server only accepts one connection # for multiple connections spawn a thread per accept while True: client = socket.accept() while True: message = client.recv() print("Client said: {0}".format(message)) client.send("It's me!") def client(socket): socket.connect( 'urn:nfc:xsn:nfcpy.org:test-service' ) socket.send("Hi there!") message = socket.recv() print("Server said: {0}".format(message)) def startup(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.DATA_LINK_CONNECTION) socket.bind( 'urn:nfc:xsn:nfcpy.org:test-service' ) print("server bound to SAP {0}".format(socket.getsockname())) socket.listen() Thread(target=server, args=(socket,)).start() return llc def connected(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.DATA_LINK_CONNECTION) Thread(target=client, args=(socket,)).start() return True clf = nfc.ContactlessFrontend() clf.connect(llcp={'on-startup': startup, 'on-connect': connected}) ``` Data can be send and received with [`sendto()`](index.html#nfc.llcp.Socket.sendto) and [`recvfrom()`](index.html#nfc.llcp.Socket.recvfrom) on connection-less sockets and [`send()`](index.html#nfc.llcp.Socket.send) and [`recv()`](index.html#nfc.llcp.Socket.recv) on connection-mode sockets. Send data is guaranteed to be delivered to the remote device when the send methods return (although not necessarily to the remote service access point - only for a connection-mode socket this can be safely assumed but note that even then data may not yet have been arrived at the service user). Receiving data with either [`recv()`](index.html#nfc.llcp.Socket.recv) or [`recvfrom()`](index.html#nfc.llcp.Socket.recvfrom) blocks until some data has become available or all LLCP communication has been terminated (if either one peer intentionally closes the LLCP Link or the devices are moved out of communication range). To implement a communication timeout during normal operation, the [`poll()`](index.html#nfc.llcp.Socket.poll) method can be used to waI will “fix” this bug by adding to the documentationI will “fix” this bug by adding to the documentationit for a ‘recv’ event with a given timeout. ``` def client(socket): socket.connect( 'urn:nfc:xsn:nfcpy.org:test-service' ) socket.send("Hi there!") if socket.poll('recv', timeout=1.0): message = socket.recv() print("Server said: {0}".format(message)) else: print("Server said nothing within 1 second") ``` Sockets of type `nfc.llcp.LOGICAL_DATA_LINK`, `DATA_LINK_CONNECTION` and `RAW_ACCESS_POINT` (which should normally not be used) do not provide fragmentation for messages that do not fit into a single protocol data unit but raise an `nfc.llcp.Error` exception with `errno.EMSGSIZE`. An application can learn the maximum nuber of bytes for sending or receiving by calling [`getsockopt()`](index.html#nfc.llcp.Socket.getsockopt) with option `nfc.llcp.SO_SNDMIU` or `nfc.llcp.SO_RCVMIU`. ``` send_miu = socket.getsockopt(nfc.llcp.SO_SNDMIU) recv_miu = socket.getsockopt(nfc.llcp.SO_RCVMIU) ``` When opening or accepting a data link connection an application may specify the maximum number of octets to receive with the `nfc.llcp.SO_RCVMIU` option in [`setsockopt()`](index.html#nfc.llcp.Socket.setsockopt). The value must be between 128 and 2176, inclusively. If the RCVMIU is not explicitely set for a data link connection the default value applied by the peer is 128 octets. On connection-mode sockets options `nfc.llcp.SO_SNDBUF` and `nfc.llcp.SO_RCVBUF` can be used to learn the local and remote receive window values established during connection setup. The local receive window can also be set with [`setsockopt()`](index.html#nfc.llcp.Socket.setsockopt) before the socket gets connected. ``` def server(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.DATA_LINK_CONNECTION) socket.setsockopt(nfc.llcp.SO_RCVMIU, 1000) socket.setsockopt(nfc.llcp.SO_RCVBUF, 2) socket.bind( "urn:nfc:sn:snep" ) socket.listen() socket.accept() ... def client(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.DATA_LINK_CONNECTION) socket.setsockopt(nfc.llcp.SO_RCVMIU, 1000) socket.setsockopt(nfc.llcp.SO_RCVBUF, 2) socket.connect( "urn:nfc:sn:snep" ) ... ``` LLCP data link connections use sliding window flow-control. The receive window set with `nfc.llcp.SO_RCVBUF` dictates the number of connection-oriented information PDUs that the remote side of the data link connection may have outstanding (sent but not acknowledged) at any time. A connection-mode socket is able to receive and buffer that number of packets. Whenever the service user (the application) retrieves one or more messages from the socket, reception of the messages will be acknowledged to the remote SAP. A common application architecture is that messages are received in a dedicated thread and then added to a message queue that the application will query for data to process at a later time. Unless the message queue can grow indefinitely it may happen that the receive thread is unable to add more data to the queue because the application is not consuming data for some reason. For such situations LLCP provides a mechanism to convey a *busy* indication to the remote service user. In nfcpy an application uses [`setsockopt()`](index.html#nfc.llcp.Socket.setsockopt) with option `nfc.llcp.SO_RCVBSY` and value `True` to set the *busy* state or value `False` to clear the *busy* state. An application can use [`getsockopt()`](index.html#nfc.llcp.Socket.getsockopt) with option `nfc.llcp.SO_RCVBSSY` to learn it’s own *busy* state and `nfc.llcp.SO_SNDBSY` to learn the remote application’s *busy* state. Simple NDEF Exchange Protocol[¶](#simple-ndef-exchange-protocol) --- The NFC Forum Simple NDEF Exchange Protocol (SNEP) allows two NFC devices to exchange NDEF Messages. It is implemented in many smartphones and typically used to push phonebook contacts or web page URLs to another phone. SNEP is a stateless request/response protocol. The client sends a request to the server, the server processes that request and returns a response. On the protocol level both the request and response have no consequences for further request/response exchanges. Information units transmitted through SNEP are NDEF messages. The client may use a SNEP PUT request to send an NDEF message and a SNEP GET request to retrieve an NDEF message. The message to retrieve with a GET request depends on an NDEF message sent with the GET request but the rules to determine equivalence are an application layer contract and not specified by SNEP. NDEF messages can easily be larger than the maximum information unit (MIU) supported by the LLCP data link connection that a SNEP client establishes with a SNEP server. The SNEP layer handles fragmentation and reassembly so that an application must not be concerned. To avoid exhaustion of the limited NFC bandwidth if an NDEF message would exceed the SNEP receiver’s capabilities, the receiver must acknowledge the first fragment of an NDEF message that can not be transmitted in a single MIU. The acknowledge can be either the request/response codes CONTINUE or REJECT. If CONTINUE is received, the SNEP sender shall transmit all further fragments without further acknowledgement (the LLCP data link connection guarantees successful transmission). If REJECT isreceived, the SNEP sender shall abort tranmsission. Fragmentation and reassembly are handled transparently by the [`nfc.snep.SnepClient`](index.html#nfc.snep.SnepClient) and [`nfc.snep.SnepServer`](index.html#nfc.snep.SnepServer) implementation and only a REJECT would be visible to the user. A SNEP server may return other response codes depending on the result of a request: * A SUCCESS response indicates that the request has succeeded. For a GET request the response will include an NDEF message. For a PUT request the response is empty. * A NOT FOUND response says that the server has not found anything matching the request. This may be a temporary of permanent situation, i.e. the same request send later could yield a different response. * An EXCESS DATA response may be received if the server has found a matching response but sending it would exhaust the SNEP client’s receive capabilities. * A BAD REQUEST response indicates that the server detected a syntax error in the client’s request. This should almost never be seen. * The NOT IMPLEMENTED response will be returned if the client sent a request that the server has not implemented. It applies to existing as well as yet undefined (future) request codes. The client can learn the difference from the version field transmitted withnthe response, but in reality it doesn’t matter - it’s just not supported. * With UNSUPPORTED VERSION the server reacts to a SNEP version number sent with the request that it doesn’t support or refuses to support. This should be seen only if the client sends with a higher major version number than the server has implemented. It could be received also if the client sends with a lower major version number but SNEP servers are likely to support historic major versions if that ever happens (the current SNEP version is 1.0). Besides the protocol layer the SNEP specification also defines a *Default SNEP Server* with the well-known LLCP service access point address 4 and service name `urn:nfc:sn:snep`. Certified NFC Forum Devices must have the *Default SNEP Server* implemented. Due to that requirement the feature set and guarantees of the *Default SNEP Server* are quite limited - it only implements the PUT request and the NDEF message to put could be rejected if it is more than 1024 octets, though smartphones generally seem to support more. ### Default Server[¶](#default-server) A basic *Default SNEP Server* can be built with *nfcpy* like in the following example (where all error and exception handling has been sacrified for brevity). ``` import nfc import nfc.snep class DefaultSnepServer(nfc.snep.SnepServer): def __init__(self, llc): nfc.snep.SnepServer.__init__(self, llc, "urn:nfc:sn:snep") def process_put_request(self, ndef_message): print("client has put an NDEF message") for record in ndef_message: print(record) return nfc.snep.Success def startup(llc): global my_snep_server my_snep_server = DefaultSnepServer(llc) return llc def connected(llc): my_snep_server.start() return True my_snep_server = None clf = nfc.ContactlessFrontend("usb") clf.connect(llcp={'on-startup': startup, 'on-connect': connected}) ``` This server will accept PUT requests with NDEF messages up to 1024 octets and return NOT IMPLEMENTED for any GET request. To increase the size of NDEF messages that can be received, the *max_ndef_message_recv_size* parameter can be passed to the [`nfc.snep.SnepServer`](index.html#nfc.snep.SnepServer) class. ``` class DefaultSnepServer(nfc.snep.SnepServer): def __init__(self, llc): nfc.snep.SnepServer.__init__(self, llc, "urn:nfc:sn:snep", 10*1024) ``` ### Using SNEP Put[¶](#using-snep-put) The [`nfc.snep.SnepClient`](index.html#nfc.snep.SnepClient) provides two methods to send an NDEF message to the *Default SNEP Server*. A list of [`ndef.Record`](https://ndeflib.readthedocs.io/en/stable/ndef.html#ndef.Record) objects can be send with [`nfc.snep.SnepClient.put_records()`](index.html#nfc.snep.SnepClient.put_records). This encodes the records into a sequence of octets that are then send with [`nfc.snep.SnepClient.put_octets()`](index.html#nfc.snep.SnepClient.put_octets). The example below shows how the function to send the NDEF message is started as a separate thread - it cannot be directly called in `connected()` because the main thread context is used to operate the LLCP link. ``` import nfc import nfc.snep import threading def send_ndef_message(llc): sp = ndef.SmartposterRecord('http://nfcpy.org', 'nfcpy home') nfc.snep.SnepClient(llc).put_records( [sp] ) def connected(llc): threading.Thread(target=send_ndef_message, args=(llc,)).start() return True clf = nfc.ContactlessFrontend("usb") clf.connect(llcp={'on-connect': connected}) ``` Some phones require that a SNEP be present even if they are not going to send anything (Windows Phone 8 is such example). The solution is to also run a SNEP server on `urn:nfc:sn:snep` which will accept but discard SNEP Put requests from the peer device. ``` import nfc import nfc.snep import threading server = None def send_ndef_message(llc): sp_record = ndef.SmartposterRecord('http://nfcpy.org', 'nfcpy home') nfc.snep.SnepClient(llc).put_records( [sp_record] ) def startup(clf, llc): global server server = nfc.snep.SnepServer(llc, "urn:nfc:sn:snep") return llc def connected(llc): server.start() threading.Thread(target=send_ndef_message, args=(llc,)).start() return True clf = nfc.ContactlessFrontend("usb") clf.connect(llcp={'on-startup': startup, 'on-connect': connected}) ``` ### Private Servers[¶](#private-servers) The SNEP protocol can be used for other, non-standard, communication between a server and client component. A private server can be run on a dynamically assigned service access point if a private service name is used. A private server may also implement the GET request if it defines what a GET shall mean other than to return something. Below is an example of a private SNEP server that implements bot PUT and GET with the simple contract that whatever is put to the server will be returned for a GET request that requests the same or empty NDEF type and name values (for anything else the answer is NOT FOUND). ``` import nfc import nfc.snep class PrivateSnepServer(nfc.snep.SnepServer): def __init__(self, llc): self.ndef_message = [ndef.Record()] service_name = "urn:nfc:xsn:nfcpy.org:x-snep" nfc.snep.SnepServer.__init__(self, llc, service_name, 2048) def process_put_request(self, ndef_message): print("client has put an NDEF message") self.ndef_message = ndef_message return nfc.snep.Success def process_get_request(self, ndef_message): print("client requests an NDEF message") if ndef_message[0].type and ndef_message[0].type != self.ndef_message[0].type: return nfc.snep.NotFound if ndef_message[0].name and ndef_message[0].name != self.ndef_message[0].name: return nfc.snep.NotFound return self.ndef_message def startup(clf, llc): global my_snep_server my_snep_server = PrivateSnepServer(llc) return llc def connected(llc): my_snep_server.start() return True my_snep_server = None clf = nfc.ContactlessFrontend("usb") clf.connect(llcp={'on-startup': startup, 'on-connect': connected}) ``` A client application knowing the private server above may then use PUT and GET to set an NDEF message on the server and retrieve it back. The example code below also shows how results other than SUCCESS must be catched in try-except clauses. Note that *max_ndef_msg_recv_size* parameter is a policy sent to the SNEP server with every GET request. ``` import nfc import nfc.snep import threading def send_ndef_message(llc): sp_record = ndef.SmartposterRecord('http://nfcpy.org', 'nfcpy home') snep = nfc.snep.SnepClient(llc, max_ndef_msg_recv_size=2048) snep.connect("urn:nfc:xsn:nfcpy.org:x-snep") snep.put( [sp_record] ) print("*** get whatever the server has ***") print(snep.get_records( [ndef.Record()] )) print("*** get a smart poster record ***") print(snep.get( [ndef.Record("urn:nfc:wkt:Sp")] )) print("*** get something that isn't there ***") try: snep.get( [ndef.Record("urn:nfc:wkt:Uri")] ) except nfc.snep.SnepError as error: print(repr(error)) def connected(llc): threading.Thread(target=send_ndef_message, args=(llc,)).start() return True clf = nfc.ContactlessFrontend("usb") clf.connect(llcp={'on-connect': connected}) ``` Example Programs[¶](#example-programs) --- [tagtool.py](index.html#document-examples/tagtool) Read or write or format tags for NDEF use. [beam.py](index.html#document-examples/beam) Exchange NDEF data with a smartphone. [sense.py](index.html#document-examples/sense) Sense for contactless targets. [listen.py](index.html#document-examples/listen) Listen as contactless target. [rfstate.py](index.html#document-examples/rfstate) Observe the RF field presence. ### tagtool.py[¶](#tagtool-py) The **tagtool.py** example program can be used to read or write NFC Forum Tags. For some tags, currently Type 3 Tags only, **tagtool** can also be used to format for NDEF use. ``` $ tagtool.py [-h|--help] [options] command ``` * [Options](#options) * [Commands](#commands) + [show](#show) + [dump](#dump) + [load](#load) + [format](#format) + [protect](#protect) + [emulate](#emulate) * [Examples](#examples) #### [Options](#id1)[¶](#options) `--loop``,` `-l`[¶](#cmdoption-tagtool-py-loop) Repeat the command endlessly, use Control-C to abort. `--wait`[¶](#cmdoption-tagtool-py-wait) After reading or writing a tag, wait until it is removed before returning. This option is implicit when the option `--loop` is set. `--technology` `{A,B,F}`[¶](#cmdoption-tagtool-py-technology) Poll only for tags of a specific technology. The technologies NFC-A, NFC-B, and NFC-F are defined in the NFC Forum Digital Specification. The technology indicator is case insensitive. The default is to poll for all technologies. `-q`[¶](#cmdoption-tagtool-py-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-tagtool-py-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-tagtool-py-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-tagtool-py-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-tagtool-py-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. `-p` `PASSWORD`[¶](#cmdoption-tagtool-py-p) Use PASSWORD to authentication with a tag that supports password protection. This would be the same password as used in [`tagtool.py protect -p`](#cmdoption-tagtool-py-protect-p) to set a password. #### [Commands](#id2)[¶](#commands) Available commands are listed below. The default if no command is specified is to invoke **tagtool.py show**. ##### [show](#id3)[¶](#show) The **show** command prints information about a tag, including NDEF data if present.: ``` $ tagtool.py [options] show [-h] [-v] ``` `-v`[¶](#cmdoption-tagtool-py-show-v) Print verbose information about the tag found. The amount of additional information depends on the tag type. ##### [dump](#id4)[¶](#dump) The **dump** command dumps tag data to the console or into a file. Data written to the console is a hexadecimal string. Data written to a file is raw bytes. ``` $ tagtool.py [options] dump [-h] [-o FILE] ``` `-o` `FILE`[¶](#cmdoption-tagtool-py-dump-o) Write data to FILE. Data format is plain bytes. ##### [load](#id5)[¶](#load) The **load** command writes data to a tag. Data may be plain bytes or a hex string, as generated by the **dump** command or with the **ndeftool**. ``` $ tagtool.py [options] load [-h] FILE ``` `FILE`[¶](#cmdoption-tagtool-py-load-arg-file) Load NDEF data to write from **FILE** which must exist and be readable. The file may contain NDEF data in either raw bytes or a hexadecimal string which gets converted to bytes. If **FILE** is specified as a single dash `-` data is read from **stdin**. ##### [format](#id6)[¶](#format) The **format** command writes NDEF capability information for an empty NDEF memory area on NFC Forum compliant tags. A tag type may be specified to give further options. ``` $ tagtool.py [options] format [-h] [options] {tt1,tt2,tt3,tt4} ... ``` `--version` `x.y`[¶](#cmdoption-tagtool-py-load-version) The format of the management information that describes the NDEF data area on the tag, as defined in the NFC Forum tag specifications. Only defined version numbers are acceptable. The version must be expressed as a version string of the form `<major>.<minor>`, where each component is an integer between 0 and 15, inclusively. For example, `--version 1.3` denotes major version 1 and minor version 3. If `--version` is not provided, the highest possible version number is used. `--wipe` `BYTE`[¶](#cmdoption-tagtool-py-load-wipe) When formatting a tag the NDEF message data itself is usually not touched and could be easily recovered. The `--wipe` options instructs the formatter to overwrite the complete data area with the given 8-bit integer value. Depending on the tag type and size this may take a couple of seconds. ###### format tt1[¶](#format-tt1) The **format tt1** command formats the NDEF partition on a Type 1 Tag. ``` $ tagtool.py [options] format tt1 [-h] ``` `--magic` `BYTE`[¶](#cmdoption-tagtool-py-format-tt1-magic) The value to use as the NDEF magic byte. This option can be used to set an invalid magic byte. `--ver` `x.y`[¶](#cmdoption-tagtool-py-format-tt1-ver) Type 1 Tag NDEF mapping version number, specified as a version string in the same way as for to the `--version` argument. The difference is that this version number will be written regardless of whether it constitutes a valid version number. `--tms` `BYTE`[¶](#cmdoption-tagtool-py-format-tt1-tms) Value to write into the tag memory size byte. `--rwa` `BYTE`[¶](#cmdoption-tagtool-py-format-tt1-rwa) Value to write into the read/write access byte. ###### format tt2[¶](#format-tt2) The **format tt2** command formats the NDEF partition on a Type 2 Tag. ``` $ tagtool.py [options] format tt2 [-h] ``` ###### format tt3[¶](#format-tt3) The **format tt3** command formats the NDEF partition on a Type 3 Tag. With no additional options it does format for the maximum capacity. With further options it is possible to create any kind of weird tag formats for testing reader implementations. Note that none of these options is verified, except for the possible value range to fit the destination field. None of the options is necessary to create a correct format. ``` $ tagtool.py [options] format tt3 [-h] [--ver STR] [--nbr INT] [--nbw INT] [--max INT] [--rfu INT] [--wf INT] [--rw INT] [--len INT] [--crc INT] ``` `--ver` `x.y`[¶](#cmdoption-tagtool-py-format-tt3-ver) Type 3 Tag NDEF mapping version number, specified as a version string in the same way as for to the `--version` argument. The difference is that this version number will be written regardless of whether it constitutes a valid version number. `--nbr` `N`[¶](#cmdoption-tagtool-py-format-tt3-nbr) Type 3 Tag attribute block *Nbr* field value, the number of blocks that can be read at once. Must be an 8-bit integer in decimal or hexadecimal notation. `--nbw` `N`[¶](#cmdoption-tagtool-py-format-tt3-nbw) Type 3 Tag attribute block *Nbw* field value, the number of blocks that can be written at once. Must be an 8-bit integer in decimal or hexadecimal notation. `--max` `N`[¶](#cmdoption-tagtool-py-format-tt3-max) Type 3 Tag attribute block *Nmaxb* field value, which is the maximum number of blocks available for NDEF data. Must be a 16-bit integer in decimal or hexadecimal notation. `--rfu` `N`[¶](#cmdoption-tagtool-py-format-tt3-rfu) Type 3 Tag attribute block *reserved* field value. Must be an 8-bit integer in decimal or hexadecimal notation. `--wf` `N`[¶](#cmdoption-tagtool-py-format-tt3-wf) Type 3 Tag attribute block *WriteF* field value. Must be an 8-bit integer in decimal or hexadecimal notation. `--rw` `N`[¶](#cmdoption-tagtool-py-format-tt3-rw) Type 3 Tag attribute block *RW Flag* field value. Must be an 8-bit integer in decimal or hexadecimal notation. `--len` `N`[¶](#cmdoption-tagtool-py-format-tt3-len) Type 3 Tag attribute block *Ln* field value that specifies the actual size of the NDEF data stored. Must be a 24-bit integer in decimal or hexadecimal notation. `--crc` `N`[¶](#cmdoption-tagtool-py-format-tt3-crc) Type 3 Tag attribute block *Checksum* field value. Must be a 16-bit integer in decimal or hexadecimal notation. If not specified, the checksum is computed to be correct. ###### format tt4[¶](#format-tt4) The **format tt4** command formats the NDEF partition on a Type 4 Tag. ``` $ tagtool.py [options] format tt4 [-h] ``` ##### [protect](#id7)[¶](#protect) The **protect** command attempts to protect the tag against write modifications, optionally also against unauthorized read access. Support for protection depends on the tag type and product. Without options the the default attempt is protect with lock bits, be warned that this can not be undone. Lock bits are only available for type 1 and type 2 tags. With option `-p` the protection will be based on a password and further modifications are possible for anyone in posession of the password. Password protection works on NXP NTAG 21x type 2 tags and Sony FeliCa Lite-S type 3 tags. ``` $ tagtool.py protect [-h] [-p PASSWORD] [--from BLOCK] [--unreadable] ``` `-p` `PASSWORD`[¶](#cmdoption-tagtool-py-protect-p) Protect the tag with the given PASSWORD. This works only for the NXP NTAG 21x type 2 tags and Sony FeliCa Lite-S type 3 tags. The password string is used as a key to compute an HMAC-SHA256 with the tag identifier (UID or IDm) as the message. The final password is the leftmost number of octets as needed for the tag product, 6 octets for an NTAG 21x and 16 octets for a FeliCa Lite-S. A password protected tag can then be unlocked with [`tagtool.py -p`](#cmdoption-tagtool-py-p). ``` $ tagtool.py protect -p "my secret password" $ tagtool.py -p "my secret password" protect -p "new secret" ``` `--from` `BLOCK`[¶](#cmdoption-tagtool-py-protect-from) Start protecting data from a given block number. This option does only make sense on tags that organize memory in blocks or pages (Type 1, 2 and 3 Tags). A block corresponds to 4 byte of memory (a page) on Type 1 and 2 Tags, and 16 byte of memory on Type 3 Tags. If the tag has fewer blocks than specified, the value is silently adjusted to the largest possible. `--unreadable`[¶](#cmdoption-tagtool-py-protect-unreadable) This option can only be used with password based protection. The result is that the tag will become unreadable without a password, i.e. the content is completely hidden. Further reads must then use the password option before the command. ``` $ tagtool.py -p "secret password" show ``` ##### [emulate](#id8)[¶](#emulate) The **emulate** command emulates an NDEF tag if the hardware and driver support that functionality. The tag type must be specified following the optional parameters. The only currently supported tag type it **tt3**. ``` $ tagtool.py emulate [-h] [-l] [-k] [-s SIZE] [-p FILE] [FILE] {tt3} ... ``` `FILE`[¶](#cmdoption-tagtool-py-emulate-arg-file) Initialize the tag with NDEF data read from **FILE**. If not specified the tag will be just empty. `-l``,` `--loop`[¶](#cmdoption-tagtool-py-emulate-l) Automatically restart after the tag has been released by the Initiator. `-k``,` `--keep`[¶](#cmdoption-tagtool-py-emulate-k) If the `--loop` option is set, keep the same memory content after tag relase for the next tag activation. Without the `-k` option the tag memory is initialized from the command options for every activation. `-s` `SIZE`[¶](#cmdoption-tagtool-py-emulate-s) The minimum size for NDEF data. Depending on the tag type this may be rounded up to the nearest multiple of the tag storage granularity. If NDEF data is provided the size may be adjusted to fit the length of the data. `-p` `FILE`[¶](#cmdoption-tagtool-py-emulate-p) Preserve memory content in **FILE** after the tag is relased by the Initiator. The file is created if it does not exist and otherwise overwritten. ###### emulate tt3[¶](#emulate-tt3) The **emulate tt3** command emulates an NFC Forum Type 3 Tag. ``` $ tagtool.py [options] emulate [options] tt3 [-h] [--idm HEX] [--pmm HEX] [--sys HEX] [--bitrate {212,424}] ``` `--idm` `HEX`[¶](#cmdoption-tagtool-py-format-idm) The Manufacture Identifier to use in the polling response. Specified as a hexadecimal string. Defaults to `03FEFFE011223344`. `--pmm` `HEX`[¶](#cmdoption-tagtool-py-format-pmm) The Manufacture Parameter to use in the polling response. Specified as a hexadecimal string. Defaults to `01E0000000FFFF00`. `--sys` `HEX``,` `--sc` `HEX`[¶](#cmdoption-tagtool-py-format-sys) The system code use in the polling response if requested. Specified as a hexadecimal string. Defaults to `12FC`. `--bitrate` `{212,424}`[¶](#cmdoption-tagtool-py-format-bitrate) The bitrate to listen for and respond with. Must be either 212 or 424. Defaults to 212 kbps. #### [Examples](#id9)[¶](#examples) Copy NDEF from one tag to another: ``` $ tagtool.py dump -o /tmp/tag.ndef && tagtool load /tmp/tag.ndef ``` Copy NDEF from one tag to many others: ``` $ tagtool.py dump -o /tmp/tag.ndef && tagtool --loop load /tmp/tag.ndef ``` ### beam.py[¶](#beam-py) The **beam.py** example program uses the Simple NDEF Exchange Protocol (SNEP) to send or receive NDEF messages to or from a peer device, in most cases this will be a smartphone. The name *beam* is inspired by *Android Beam* and thus **beam.py** will be able to receive most content sent through *Android Beam*. It will not work for data that *Android Beam* sends with connection handover to Bluetooth or Wi-Fi, this may become a feature in a later version. Despite it’s name, **beam.py** works not only with Android phones but any NFC enabled phone that implements the NFC Forum Default SNEP Server, such as Blackberry and Windows Phone 8. ``` $ beam.py [-h|--help] [OPTIONS] {send|recv} [-h] [OPTIONS] ``` * [Options](#options) * [Commands](#commands) + [send](#send) - [send link](#send-link) - [send text](#send-text) - [send file](#send-file) - [send ndef](#send-ndef) + [recv](#recv) - [recv print](#recv-print) - [recv save](#recv-save) - [recv echo](#recv-echo) - [recv send](#recv-send) * [Examples](#examples) #### [Options](#id1)[¶](#options) `--loop``,` `-l`[¶](#cmdoption-beam-py-loop) Repeat the command endlessly, use Control-C to abort. `--mode` `{t,i}`[¶](#cmdoption-beam-py-mode) Restrict the choice of NFC-DEP connection setup role to either `Target` (only listen) or `Initiator` (only poll). If this option is not given the dafault is to alternate between both roles with a randomized listen time. `--miu` `INT`[¶](#cmdoption-beam-py-miu) Set a specific value for the LLCP Link MIU. The dafault value is 2175 octets. `--lto` `INT`[¶](#cmdoption-beam-py-lto) Set a specific LLCP Link Timeout value. The default link timeout is 500 milliseconds. `--listen-time` `INT`[¶](#cmdoption-beam-py-listen-time) Set the time to listen for initialization command from an NFC-DEP Initiator. The default listen time is 250 milliseconds. `--no-aggregation`[¶](#cmdoption-beam-py-no-aggregation) Disable outbound packet aggregation for LLCP, i.e. do not generate LLCP AGF PDUs if multiple packets are waiting to be send. This is mostly to achieve communication with some older/buggy implementations. `-q`[¶](#cmdoption-beam-py-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-beam-py-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-beam-py-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-beam-py-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-beam-py-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. #### [Commands](#id2)[¶](#commands) ##### [send](#id3)[¶](#send) Send an NDEF message to the peer device. The message depends on the positional argument that follows the *send* command and additional data. ``` $ beam.py send [--timeit] {link,text,file,ndef} [-h] [OPTIONS] ``` `--timeit`[¶](#cmdoption-beam-py-send-timeit) Measure and print the time that was needed to send the message. ###### [send link](#id4)[¶](#send-link) Send a hyperlink embedded into a smartposter record. ``` $ beam.py send link URI [TITLE] ``` `URI`[¶](#cmdoption-beam-py-send-link-arg-uri) The resource identifier, for example `http://nfcpy.org`. `TITLE`[¶](#cmdoption-beam-py-send-link-arg-title) The smartposter title, for example `"nfcpy project home"`. ###### [send text](#id5)[¶](#send-text) Send plain text embedded into an NDEF Text Record. The default language identifier `en` can be changed with the `--lang` flag. ``` $ beam.py send text TEXT [OPTIONS] ``` `TEXT`[¶](#cmdoption-beam-py-send-text-arg-text) The text string to send. `--lang` `STRING`[¶](#cmdoption-beam-py-send-text-lang) The language code to use when constructing the NDEF Text Record. ###### [send file](#id6)[¶](#send-file) Send a data file. This will construct a single NDEF record with *type* and *name* set to the file’s mime type and path name, and the payload containing the file content. Both record type and name can also be explicitly set with the options `-t` and `-n`, respectively. ``` $ beam.py send file FILE [OPTIONS] ``` `FILE`[¶](#cmdoption-beam-py-send-file-arg-file) The file to send. `-t` `STRING`[¶](#cmdoption-beam-py-send-file-t) Set the record type. See the [ndeflib](https://ndeflib.readthedocs.io/en/stable/ndef.html#record-class) for how to specify record types in *nfcpy*. `-n` `STRING`[¶](#cmdoption-beam-py-send-file-n) Set the record name (identifier). ###### [send ndef](#id7)[¶](#send-ndef) Send an NDEF message read from file. The file may contain multiple messages and if it does, then the strategy to select a specific message for sending can be specified with the `--select STRATEGY` option. For strategies that select a different message per touch beam.py must be called with the `--loop` flag. The strategies `first`, `last` and `random` select the first, or last, or a random message from FILE. The strategies `next` and `cycle` start with the first message and then count up, the difference is that `next` stops at the last message while `cycle` continues with the first. ``` $ beam.py send ndef FILE [OPTIONS] ``` `FILE`[¶](#cmdoption-beam-py-send-ndef-arg-file) The file from which to read NDEF messages. `--select` `STRATEGY`[¶](#cmdoption-beam-py-send-ndef-select) The strategy for NDEF message selection, it may be one of `first`, `last`, `next`, `cycle`, `random`. ##### [recv](#id8)[¶](#recv) Receive an NDEF message from the peer device. The next positional argument determines what is done with the received message. ``` $ beam.py [OPTIONS] recv {print,save,echo,send} [-h] [OPTIONS] ``` ###### [recv print](#id9)[¶](#recv-print) Print the received message to the standard output stream. ``` $ beam.py recv print ``` ###### [recv save](#id10)[¶](#recv-save) Save the received message into a file. If the file already exists the message is appended. ``` $ beam.py recv save FILE ``` `FILE`[¶](#cmdoption-beam-py-recv-file-arg-file) Name of the file to save messages received from the remote peer. If the file exists any new messages are appended. ###### [recv echo](#id11)[¶](#recv-echo) Receive a message and send it back to the peer device. ``` $ beam.py recv echo ``` ###### [recv send](#id12)[¶](#recv-send) Receive a message and send back a corresponding message if such is found in the *translations* file. The *translations* file must contain an even number of NDEF messages which are sequentially read into inbound/outbound pairs to form a translation table. If the receved message corresponds to any of the translation table inbound messages the corresponding outbound message is then sent back. ``` $ beam.py [OPTIONS] recv send [-h] TRANSLATIONS ``` `TRANSLATIONS`[¶](#cmdoption-beam-py-recv-send-arg-translations) A file with a sequence of NDEF messages. #### [Examples](#id13)[¶](#examples) Get a smartphone to open the nfcpy project page (which in fact just points to the code repository and documentation). ``` $ beam.py send link http://nfcpy.org "nfcpy project home" ``` Send the source file `beam.py`. On an Android phone this should pop up the “new tag collected” screen and show that a `text/x-python` media type has been received. ``` $ beam.py send file beam.py ``` The file `beam.py` is about 11 KB and may take some time to transfer, depending on the phone hardware and software. With a Google Nexus 10 it takes as little as 500 milliseconds while a Nexus 4 won’t do it under 2.5 seconds. ``` $ beam.py send --timeit file beam.py ``` Receive a single NDEF message from the peer device and save it to *message.ndef* (note that if *message.ndef* exists the received data will be appended): ``` $ beam.py recv save message.ndef ``` With the `--loop` option it gets easy to collect messages into a single file. ``` $ beam.py --loop recv save collected.ndef ``` A file that contains a sequence of request/response message pairs can be used to send a specific response message whenever the associated request message was received. ``` $ echo -n "this is a request message" > request.txt $ ndeftool.py pack -n '' request.txt -o request.ndef $ echo -n "this is my reponse message" > response.txt $ ndeftool.py pack -n '' response.txt -o response.ndef $ cat request.ndef response.ndef > translation.ndef $ beam.py recv send translation.ndef ``` ### sense.py[¶](#sense-py) The **sense** example demonstrates the use of the [`nfc.clf.ContactlessFrontend.sense()`](index.html#nfc.clf.ContactlessFrontend.sense) method to discover contactless targets. ``` $ sense.py [target [target ...]] [options] ``` The *target* arguments define the type, bitrate and optional attributes for the contactless targets that may be discovered in a single sense loop. An empty loop (no targets) is allowed but is only useful to verify the [`nfc.clf.ContactlessFrontend.sense()`](index.html#nfc.clf.ContactlessFrontend.sense) method behavior. Optional arguments allow to set an iteration count and interval, continously repeat the (iterated) loop after a wait time, activate standard or verbose debug logs, and to specify the local device to use. A *target* is specified by bitrate and a type identifier `A`, `B`, `F`. The following example would first sense for a DEP Target at 106kbps (in active communication mode), then for a Type A Target at 106 kbps, a Type B Target at 106kbps and a Type F Target at 212kbps. ``` $ sense.py 106A 106B 212F ``` Additional parameters can be supplied as comma-delimited name=value pairs in brackets. The example below searches for a 106 kbps DEP Target (in active communication mode) and then changes communication speed to 424 kbps. ``` $ sense.py '106A(atr_req=d400FFFFFFFFFFFFFFFF62260000003246666d010110)' $ sense.py 106A --atr d400FFFFFFFFFFFFFFFF62260000003246666d010110 ``` #### Options[¶](#options) `-h``,` `--help`[¶](#cmdoption-h) Show a help message and exit. `--dep` `params`[¶](#cmdoption-dep) Attempt a DEP Target activation in passive communication mode when an appropriate Type A or Type F Target was discovered in in the main sense loop. The *params* argument defines optional attributes for the `nfc.clf.DEP` target object. The example below would try a DEP Target activation (in passive communication mode) with a parameter change to 424 kbps after 106 kbps Type A Target discovery. ``` $ sense.py 106A --dep 'psl_req=D404001203' ``` `-i` `number`[¶](#cmdoption-i) Specifies the number of iterations to run (default is 1 iteration). Each iteration is a sense for all the targets given as positional arguments. `-t` `seconds`[¶](#cmdoption-t) The time between two iterations (default is 0.2 sec). It is measured from the start of one iteration to the start of the next iteration, effectively it will thus never be shorter than the execution time of an iteration. `-r``,` `--repeat`[¶](#cmdoption-r) Forever repeat the sense loop (including the number of iterations). Execution can be terminated with Ctrl-C. `-w` `seconds`[¶](#cmdoption-w) Wait the specified number of seconds between repetitions (the default wait time is 0.1 sec). `-d``,` `--debug`[¶](#cmdoption-d) Activate debug log messages on standard error output. `-v``,` `--verbose`[¶](#cmdoption-v) Activate more debug log messages, most notably all commands send to the local device will be logged as well as their responses. `--device` `path`[¶](#cmdoption-device) Specify a local device search path (the default is `usb`). For device path construction rules see [`nfc.clf.ContactlessFrontend.open()`](index.html#nfc.clf.ContactlessFrontend.open). ### listen.py[¶](#module-examples.listen) Listen as Target for activation requests from a remote Initiator. **Usage:** ``` listen.py tt2 [options] [--uid UID] listen.py tt3 [options] [--idm <idm>] [--pmm <pmm>] [--sys <sys>] listen.py tt4 [options] [--uid <uid>] listen.py dep [options] [--id3 <id3>] [--gbt <gbt>] [--hce] listen.py -h | --help ``` As the Target selected with the first positional argument listen.py waits ‘–time T’ seconds for activation by a remote device and prints the local target configuration if not timed out. The listen period is repeated after ‘–wait T’ seconds if the ‘–repeat’ flag is given. Without the ‘–repeat’ flag, the exit status is 0 when activated and 1 if timed out, with the ‘–repeat’ flag it is 0 for termination by keyboard interrupt (Ctrl-C). For argument errors and unsupported targets listen.py exits with 2. If a local device is not found or was removed listen.py exits with 3. **Options:** > | `-h, --help` | show this help message and exit | > | `-t, --time T` | listen time in seconds [default: 2.5] | > | `-w, --wait T` | time between repetations [default: 1.0] | > | `-r, --repeat` | repeat forever (cancel with Ctrl-C) | > | `-d, --debug` | output debug log messages to stderr | > | `-v, --verbose` | print and log more information | > | `--device PATH` | local device search path [default: usb] | > | `--bitrate BR` | set bitrate (default is 106 for A/B and 212 for F) | > | `--uid UID` | tt2/tt4 identifier [default: 08010203] | > | `--idm IDM` | tt3 identifier [default: 02FE010203040506] | > | `--pmm PMM` | tt3 parameters [default: FFFFFFFFFFFFFFFF] | > | `--sys SYS` | tt3 system code [default: 12FC] | > | `--id3 ID3` | dep nfcid3 [default: 01FE0102030405060708] | > | `--gbt GBT` | dep general bytes [default: 46666D010111] | > | `--hce` | announce dep and tt4 support for Type A | **Examples:** ``` listen.py tt2 --uid 08ABCDEF # listen as Type 2 Tag with this UID listen.py tt3 --bitrate 424 # listen as Type 3 Tag at 424 kbps listen.py tt3 --sys 0003 # use the Suica system code for FeliCa listen.py dep --gbt '' # send ATR response without general bytes listen.py dep --hce # offer NFC-DEP Protocol and Type 4A Tag ``` **Source:** ``` #!/usr/bin/env python # -*- coding: latin-1 -*- # --- # Copyright 2015 <NAME> <<EMAIL>> # # Licensed under the EUPL, Version 1.1 or - as soon they # will be approved by the European Commission - subsequent # versions of the EUPL (the "Licence"); # You may not use this work except in compliance with the # Licence. # You may obtain a copy of the Licence at: # # https://joinup.ec.europa.eu/software/page/eupl # # Unless required by applicable law or agreed to in # writing, software distributed under the Licence is # distributed on an "AS IS" basis, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either # express or implied. # See the Licence for the specific language governing # permissions and limitations under the Licence. # --- """Listen as Target for activation requests from a remote Initiator. **Usage:** :: listen.py tt2 [options] [--uid UID] listen.py tt3 [options] [--idm <idm>] [--pmm <pmm>] [--sys <sys>] listen.py tt4 [options] [--uid <uid>] listen.py dep [options] [--id3 <id3>] [--gbt <gbt>] [--hce] listen.py -h | --help As the Target selected with the first positional argument listen.py waits '--time T' seconds for activation by a remote device and prints the local target configuration if not timed out. The listen period is repeated after '--wait T' seconds if the '--repeat' flag is given. Without the '--repeat' flag, the exit status is 0 when activated and 1 if timed out, with the '--repeat' flag it is 0 for termination by keyboard interrupt (Ctrl-C). For argument errors and unsupported targets listen.py exits with 2. If a local device is not found or was removed listen.py exits with 3. **Options:** -h, --help show this help message and exit -t, --time T listen time in seconds [default: 2.5] -w, --wait T time between repetations [default: 1.0] -r, --repeat repeat forever (cancel with Ctrl-C) -d, --debug output debug log messages to stderr -v, --verbose print and log more information --device PATH local device search path [default: usb] --bitrate BR set bitrate (default is 106 for A/B and 212 for F) --uid UID tt2/tt4 identifier [default: 08010203] --idm IDM tt3 identifier [default: 02FE010203040506] --pmm PMM tt3 parameters [default: FFFFFFFFFFFFFFFF] --sys SYS tt3 system code [default: 12FC] --id3 ID3 dep nfcid3 [default: 01FE0102030405060708] --gbt GBT dep general bytes [default: 46666D010111] --hce announce dep and tt4 support for Type A **Examples:** :: listen.py tt2 --uid 08ABCDEF # listen as Type 2 Tag with this UID listen.py tt3 --bitrate 424 # listen as Type 3 Tag at 424 kbps listen.py tt3 --sys 0003 # use the Suica system code for FeliCa listen.py dep --gbt '' # send ATR response without general bytes listen.py dep --hce # offer NFC-DEP Protocol and Type 4A Tag """ from __future__ import print_function import os import re import sys import struct import time import errno import logging from binascii import hexlify import nfc import nfc.clf def main(args): if args['--debug']: loglevel = logging.DEBUG - (1 if args['--verbose'] else 0) logging.getLogger("nfc.clf").setLevel(loglevel) logging.getLogger().setLevel(loglevel) try: try: waittime = float(args['--wait']) except ValueError: assert 0, "the '--wait T' argument must be a number" assert waittime >= 0, "the '--wait T' argument must be positive" try: timeout = float(args['--time']) except ValueError: assert 0, "the '--time T' argument must be a number" assert timeout >= 0, "the '--time T' argument must be positive" except AssertionError as error: print(str(error), file=sys.stderr) return 2 try: clf = nfc.ContactlessFrontend(args['--device']) except IOError: print("no device found on path %r" % args['--device'], file=sys.stderr) return 3 try: while True: target = None try: if args['tt2']: target = listen_tta(timeout, clf, args) if args['tt3']: target = listen_ttf(timeout, clf, args) if args['tt4']: target = listen_tta(timeout, clf, args) if args['dep']: target = listen_dep(timeout, clf, args) if target: print("{0} {1}".format(time.strftime("%X"), target)) except nfc.clf.CommunicationError as error: if args['--verbose']: logging.error("%r", error) except AssertionError as error: print(str(error), file=sys.stderr) return 2 if args['--repeat']: time.sleep(waittime) else: return 0 if target is not None else 1 except nfc.clf.UnsupportedTargetError as error: logging.error("%r", error) return 2 except IOError as error: if error.errno != errno.EIO: logging.error("%r", error) else: logging.error("lost connection to local device") return 3 except KeyboardInterrupt: pass finally: clf.close() def listen_tta(timeout, clf, args): try: bitrate = (int(args['--bitrate']) if args['--bitrate'] else 106) except ValueError: assert 0, "the '--bitrate' argument must be an integer" assert bitrate >= 0, "the '--bitrate' argument must be a positive integer" try: uid = bytearray.fromhex(args['--uid']) except ValueError: assert 0, "the '--uid' argument must be hexadecimal" assert len(uid) in (4, 7, 10), "the '--uid' must be 4, 7, or 10 bytes" target = nfc.clf.LocalTarget(str(bitrate) + 'A') target.sens_res = bytearray(b"\x01\x01") target.sdd_res = uid target.sel_res = bytearray(b"\x00" if args['tt2'] else b"\x20") target = clf.listen(target, timeout) if target and target.tt2_cmd: logging.debug("rcvd TT2_CMD %s", hexlify(target.tt2_cmd).decode()) # Verify that we can send a response. if target.tt2_cmd == b"\x30\x00": data = bytearray.fromhex("046FD536 11127A00 79C80000 E110060F") elif target.tt2_cmd[0] == 0x30: data = bytearray(16) else: logging.warning("communication not verified") return target try: clf.exchange(data, timeout=1) return target except nfc.clf.CommunicationError: logging.error("communication failure after activation") if target and target.tt4_cmd: logging.debug("rcvd TT4_CMD %s", hexlify(target.tt4_cmd).decode()) logging.warning("communication not verified") return target def listen_ttf(timeout, clf, args): try: bitrate = (int(args['--bitrate']) if args['--bitrate'] else 212) except ValueError: assert 0, "the '--bitrate' argument must be an integer" assert bitrate >= 0, "the '--bitrate' argument must be a positive integer" try: idm = bytearray.fromhex(args['--idm'][0:16]) except ValueError: assert 0, "the '--idm' argument must be hexadecimal" idm += os.urandom(8 - len(idm)) try: pmm = bytearray.fromhex(args['--pmm'][0:16]) except ValueError: assert 0, "the '--pmm' argument must be hexadecimal" pmm += (8 - len(pmm)) * b"\xFF" try: _sys = bytearray.fromhex(args['--sys'][0:4]) except ValueError: assert 0, "the '--sys' argument must be hexadecimal" _sys += (2 - len(_sys)) * b"\xFF" target = nfc.clf.LocalTarget(str(bitrate) + 'F') target.sensf_res = b"\x01" + idm + pmm + _sys target = clf.listen(target, timeout) if target and target.tt3_cmd: if target.tt3_cmd[0] == 0x06: response = struct.pack("B", 29) + b"\7" + idm + b"\0\0\1" + \ bytearray(16) clf.exchange(response, timeout=0) elif target.tt3_cmd[0] == 0x0C: response = struct.pack("B", 13) + b"\x0D" + idm + b"\x01" + _sys else: logging.warning("communication not verified") return target try: clf.exchange(response, timeout=1) return target except nfc.clf.CommunicationError: logging.error("communication failure after activation") def listen_dep(timeout, clf, args): try: id3 = bytearray.fromhex(args['--id3'][0:20]) except ValueError: assert 0, "the '--id3' argument must be hexadecimal" id3 += os.urandom(10 - len(id3)) try: gbt = bytearray.fromhex(args['--gbt']) except ValueError: assert 0, "the '--gbt' argument must be hexadecimal" target = nfc.clf.LocalTarget() target.sensf_res = bytearray.fromhex("01") + id3[0:8] + bytearray(10) target.sens_res = bytearray.fromhex("0101") target.sdd_res = bytearray.fromhex("08") + id3[-3:] target.sel_res = bytearray.fromhex("60" if args['--hce'] else "40") target.atr_res = b"\xD5\x01" + id3 + b"\0\0\0\x08" + ( b"\x32" if gbt else b"\0") + gbt target = clf.listen(target, timeout) if target and target.dep_req: logging.debug("rcvd DEP_REQ %s", hexlify(target.dep_req).decode()) # Verify that we can indeed send a response. Note that we do # not handle a DID, but nobody is sending them anyway. Further # note that target.dep_req is without the frame length byte # but exchange() works on frames and so it has to be added. if target.dep_req.startswith(b"\xD4\x06\x80"): # older phones start with attention dep_res = bytearray.fromhex("04 D5 07 80") elif target.dep_req.startswith(b"\xD4\x06\x00"): # newer phones send information packet dep_res = bytearray.fromhex("06 D5 07 00 00 00") else: logging.warning("communication not verified") return target logging.debug("send DEP_RES %s", hexlify(memoryview(dep_res)[1:]).decode()) try: data = clf.exchange(dep_res, timeout=1) assert data and data[0] == len(data) except (nfc.clf.CommunicationError, AssertionError): logging.error("communication failure after activation") return None logging.debug("rcvd DEP_REQ %s", hexlify(memoryview(data)[1:]).decode()) mode = "passive" if target.sens_res or target.sensf_res else "active" logging.debug("activated in %s communication mode", mode) return target if __name__ == '__main__': logging.basicConfig(format='%(relativeCreated)d ms [%(name)s] %(message)s') try: from docopt import docopt except ImportError: sys.exit("the 'docopt' module is needed to execute this program") # remove restructured text formatting before input to docopt usage = re.sub(r'(?<=\n)\*\*(\w+:)\*\*.*\n', r'\1', __doc__) sys.exit(main(docopt(usage))) ``` ### rfstate.py[¶](#module-examples.rfstate) Observe the state of an external RF field. **Usage:** ``` rfstate.py [options] ``` This is a simple utility to observe when a remote device activates and deactivates the 13.56 MHz carrier frequency. For each state change a message is printed with timestamp, the transition and time elapsed since the previous state change. This only works with some devices based on PN53x and uses nfcpy internal interfaces. **Options:** > | `-h, --help` | show this help message and exit | > | `-t, --time T` | listen time in seconds [default: 2.5] | > | `-d, --debug` | output debug log messages to stderr | > | `-v, --verbose` | print and log more information | > | `--device PATH` | local device search path [default: usb] | **Source:** ``` #!/usr/bin/env python # -*- coding: latin-1 -*- # --- # Copyright 2015 <NAME> <<EMAIL>> # # Licensed under the EUPL, Version 1.1 or - as soon they # will be approved by the European Commission - subsequent # versions of the EUPL (the "Licence"); # You may not use this work except in compliance with the # Licence. # You may obtain a copy of the Licence at: # # https://joinup.ec.europa.eu/software/page/eupl # # Unless required by applicable law or agreed to in # writing, software distributed under the Licence is # distributed on an "AS IS" basis, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either # express or implied. # See the Licence for the specific language governing # permissions and limitations under the Licence. # --- """Observe the state of an external RF field. **Usage:** :: rfstate.py [options] This is a simple utility to observe when a remote device activates and deactivates the 13.56 MHz carrier frequency. For each state change a message is printed with timestamp, the transition and time elapsed since the previous state change. This only works with some devices based on PN53x and uses nfcpy internal interfaces. **Options:** -h, --help show this help message and exit -t, --time T listen time in seconds [default: 2.5] -d, --debug output debug log messages to stderr -v, --verbose print and log more information --device PATH local device search path [default: usb] """ from __future__ import print_function import re import sys import time import errno import logging import nfc import nfc.clf import nfc.clf.pn53x def main(args): if args["--debug"]: loglevel = logging.DEBUG - (1 if args["--verbose"] else 0) logging.getLogger("nfc.clf").setLevel(loglevel) try: time_to_return = time.time() + float(args['--time']) except ValueError as e: logging.error("while parsing '--time' " + str(e)) sys.exit(-1) clf = nfc.ContactlessFrontend() if clf.open(args['--device']): try: assert isinstance(clf.device, nfc.clf.pn53x.Device), \ "rfstate.py does only work with PN53x based devices" chipset = clf.device.chipset regs = [("CIU_FIFOLevel", 0b10000000)] # clear fifo regs.extend(zip(25 * ["CIU_FIFOData"], bytearray(25))) regs.extend([ ("CIU_Command", 0b00000001), # Configure command ("CIU_Control", 0b00000000), # act as target (b4=0) ("CIU_TxControl", 0b10000000), # disable output on TX1/TX2 ("CIU_TxAuto", 0b00100000), # wake up when rf level detected ("CIU_CommIRq", 0b01111111), # clear interrupt request bits ("CIU_DivIRq", 0b01111111), # clear interrupt request bits ]) chipset.write_register(*regs) if args["--verbose"]: time_t0 = time.time() chipset.read_register("CIU_Status1", "CIU_Status2") delta_t = time.time() - time_t0 print("approx. %d samples/s" % int(1 / delta_t)) status = chipset.read_register("CIU_Status1", "CIU_Status2") rfstate = "ON" if status[1] & 0b00100000 else "OFF" time_t0 = time.time() print("%.6f RF %s" % (time_t0, rfstate)) while time.time() < time_to_return: status = chipset.read_register("CIU_Status1", "CIU_Status2") if rfstate == "OFF" and status[1] & 0x20 == 0x20: rfstate = "ON" time_t1 = time.time() delta_t = time_t1 - time_t0 print("%.6f RF ON after %.6f" % (time_t1, delta_t)) time_t0 = time_t1 if rfstate == "ON" and status[1] & 0x20 == 0x00: rfstate = "OFF" time_t1 = time.time() delta_t = time_t1 - time_t0 print("%.6f RF OFF after %.6f" % (time_t1, delta_t)) time_t0 = time_t1 except nfc.clf.UnsupportedTargetError as error: print(repr(error)) except IOError as error: if error.errno == errno.EIO: print("lost connection to local device") else: print(repr(error)) except (NotImplementedError, AssertionError) as error: print(str(error)) except KeyboardInterrupt: pass finally: clf.close() if __name__ == '__main__': logging.basicConfig(format='%(relativeCreated)d ms [%(name)s] %(message)s') try: from docopt import docopt except ImportError: sys.exit("the 'docopt' module is needed to execute this program") # remove restructured text formatting before input to docopt usage = re.sub(r'(?<=\n)\*\*(\w+:)\*\*.*\n', r'\1', __doc__) sys.exit(main(docopt(usage))) ``` Interoperability Tests[¶](#interoperability-tests) --- ### Logical Link Control Protocol[¶](#logical-link-control-protocol) #### llcp-test-server.py[¶](#llcp-test-server-py) The LLCP test server program implements an NFC device that provides three distinct server applications: 1. A **connection-less echo server** that accepts connection-less transport mode PDUs. Service data units may have any size between zero and the maximum information unit size announced with the LLCP Link MIU parameter. Inbound service data units enter a linear buffer of service data units. The buffer has a capacity of two service data units. The first service data unit entering the buffer starts a delay timer of 2 seconds (echo delay). Expiration of the delay timer causes service data units in the buffer to be sent back to the original sender, which may be different for each service data unit, until the buffer is completely emptied. The buffer empty condition then re-enables the delay timer start event for the next service data unit. 2. A **connection-mode echo server** that waits for a connect request and then accepts and processes connection-oriented transport mode PDUs. Further connect requests will be rejected until termination of the data link connection. When accepting the connect request, the receive window parameter is transmitted with a value of 2. The connection-oriented mode echo service stores inbound service data units in a linear buffer of service data units. The buffer has a capacity of three service data units. The first service data unit entering the buffer starts a delay timer of 2 seconds (echo delay). Expiration of the delay timer causes service data units in the buffer to be sent back to the orignal sender until the buffer is completely emptied. The buffer empty condition then re-enables the delay timer start event for the next service data unit. The echo service determines itself as busy if it is unable to accept further incoming service data units. 3. A **connection-mode dump server** that accepts connections and then accepts and forgets all data received on a data link connection. This is mostly useful to measure transfer speed under load conditions. **Usage** ``` $ llcp-test-server.py [-h|--help] [OPTION]... ``` **Options** `--loop``,` `-l`[¶](#cmdoption-llcp-test-server-py-loop) Repeat the command endlessly, use Control-C to abort. `--mode` `{t,i}`[¶](#cmdoption-llcp-test-server-py-mode) Restrict the choice of NFC-DEP connection setup role to either `Target` (only listen) or `Initiator` (only poll). If this option is not given the dafault is to alternate between both roles with a randomized listen time. `--miu` `INT`[¶](#cmdoption-llcp-test-server-py-miu) Set a specific value for the LLCP Link MIU. The dafault value is 2175 octets. `--lto` `INT`[¶](#cmdoption-llcp-test-server-py-lto) Set a specific LLCP Link Timeout value. The default link timeout is 500 milliseconds. `--listen-time` `INT`[¶](#cmdoption-llcp-test-server-py-listen-time) Set the time to listen for initialization command from an NFC-DEP Initiator. The default listen time is 250 milliseconds. `--no-aggregation`[¶](#cmdoption-llcp-test-server-py-no-aggregation) Disable outbound packet aggregation for LLCP, i.e. do not generate LLCP AGF PDUs if multiple packets are waiting to be send. This is mostly to achieve communication with some older/buggy implementations. `-q`[¶](#cmdoption-llcp-test-server-py-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-llcp-test-server-py-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-llcp-test-server-py-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-llcp-test-server-py-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-llcp-test-server-py-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. #### llcp-test-client.py[¶](#llcp-test-client-py) **Usage** ``` $ llcp-test-client.py [-h|--help] [OPTION]... ``` **Options** `-t` `N``,` `--test` `N`[¶](#cmdoption-llcp-test-client-py-t) Run test number *N*. May be set more than once. `-T``,` `--test-all`[¶](#cmdoption-llcp-test-client-py-test-all) Run all tests. `--cl-echo` `SAP`[¶](#cmdoption-llcp-test-client-py-cl-echo) Service access point address of the connection-less mode echo server. `--co-echo` `SAP`[¶](#cmdoption-llcp-test-client-py-co-echo) Service access point address of the connection-oriented mode echo server. `--loop``,` `-l`[¶](#cmdoption-llcp-test-client-py-loop) Repeat the command endlessly, use Control-C to abort. `--mode` `{t,i}`[¶](#cmdoption-llcp-test-client-py-mode) Restrict the choice of NFC-DEP connection setup role to either `Target` (only listen) or `Initiator` (only poll). If this option is not given the dafault is to alternate between both roles with a randomized listen time. `--miu` `INT`[¶](#cmdoption-llcp-test-client-py-miu) Set a specific value for the LLCP Link MIU. The dafault value is 2175 octets. `--lto` `INT`[¶](#cmdoption-llcp-test-client-py-lto) Set a specific LLCP Link Timeout value. The default link timeout is 500 milliseconds. `--listen-time` `INT`[¶](#cmdoption-llcp-test-client-py-listen-time) Set the time to listen for initialization command from an NFC-DEP Initiator. The default listen time is 250 milliseconds. `--no-aggregation`[¶](#cmdoption-llcp-test-client-py-no-aggregation) Disable outbound packet aggregation for LLCP, i.e. do not generate LLCP AGF PDUs if multiple packets are waiting to be send. This is mostly to achieve communication with some older/buggy implementations. `-q`[¶](#cmdoption-llcp-test-client-py-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-llcp-test-client-py-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-llcp-test-client-py-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-llcp-test-client-py-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-llcp-test-client-py-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. ##### Test Scenarios[¶](#test-scenarios) ###### Link activation, symmetry and deactivation[¶](#link-activation-symmetry-and-deactivation) ``` $ llcp-test-client.py -t 1 ``` Verify that the LLCP Link can be activated successfully, that the symmetry procedure is performed and the link can be intentionally deactivated. 1. Start the MAC link activation procedure on two implementations and verify that the version number parameter is received and version number agreement is achieved. 2. Verify for a duration of 5 seconds that SYMM PDUs are exchanged within the Link Timout values provided by the implementations. 3. Perform intentional link deactivation by sending a DISC PDU to the remote Link Management component. Verify that SYMM PDUs are no longer exchanged. ###### Connection-less information transfer[¶](#connection-less-information-transfer) ``` $ llcp-test-client.py -t 2 ``` Verify that the source and destination access point address fields are correctly interpreted, the content of the information field is extracted as the service data unit and the service data unit can take any length between zero and the announced Link MIU. The LLCP Link must be activated prior to running this scenario and the Link MIU of the peer implementation must have been determined. In this scenario, sending of a service data unit (SDU) means that the SDU is carried within the information field of a UI PDU. 1. Send a service data unit of 128 octets length to the connection-less mode echo service and verify that the same SDU is sent back after the echo delay time. 2. Send within echo delay time with a time interval of at least 0.5 second two consecutive service data units of 128 octets length to the connection-less mode echo service and verify that both SDUs are sent back correctly. 3. Send within echo delay time with a time interval of at least 0.5 second three consecutive service data units of 128 octets length to the connection-less mode echo service and verify that the first two SDUs are sent back correctly and the third SDU is discarded. 4. Send a service data unit of zero octets length to the connection-less mode echo service and verify that the same zero length SDU is sent back after the echo delay time. 5. Send a service data unit of maximum octets length to the connection-less mode echo service and verify that the same SDU is sent back after the echo delay time. Note that the maximum length here must be the smaller value of both implementations Link MIU. ###### Connection-oriented information transfer[¶](#connection-oriented-information-transfer) ``` $ llcp-test-client.py -t 3 ``` Verify that a data link connection can be established, a service data unit is received and sent back correctly and the data link connection can be terminated. The LLCP Link must be activated prior to running this scenario and the connection-oriented mode echo service must be in the unconnected state. In this scenario, sending of a service data unit (SDU) means that the SDU is carried within the information field of an I PDU. 1. Send a CONNECT PDU to the connection-oriented mode echo service and verify that the connection request is acknowledged with a CC PDU. The CONNECT PDU shall encode the RW parameter with a value of 2. Verify that the CC PDU encodes the RW parameter with a value of 2 (as specified for the echo server). 2. Send a single service data unit of 128 octets length over the data link connection and verify that the echo service sends an RR PDU before returning the same SDU after the echo delay time. 3. Send a DISC PDU to terminate the data link connection and verify that the echo service responds with a correct DM PDU. ###### Send and receive sequence number handling[¶](#send-and-receive-sequence-number-handling) ``` $ llcp-test-client.py -t 4 ``` Verify that a sequence of service data units that causes the send and receive sequence numbers to take all possible values is received and sent back correctly. The LLCP Link must be activated prior to running this scenario and the connection-oriented mode echo service must be in the unconnected state. In this scenario, sending of a service data unit (SDU) means that the SDU is carried within the information field of an I PDU. 1. Send a CONNECT PDU to the connection-oriented mode echo service and verify that the connection request is acknowledged with a CC PDU. The CONNECT PDU shall encode the RW parameter with a value of 2. Verify that the CC PDU encodes the RW parameter with a value of 2 (as specified for the echo server). 2. Send a sequence of at least 16 data units of each 128 octets length over the data link connection and verify that all SDUs are sent back correctly. 3. Send a DISC PDU to terminate the data link connection and verify that the echo service responds with a correct DM PDU. ###### Handling of receiver busy condition[¶](#handling-of-receiver-busy-condition) ``` $ llcp-test-client.py -t 5 ``` Verify the handling of a busy condition. The LLCP Link must be activated prior to running this scenario and the connection-oriented mode echo service must be in the unconnected state. In this scenario, sending of a service data unit (SDU) shall mean that the SDU is carried within the information field of an I PDU. 1. Send a CONNECT PDU to the connection-oriented mode echo service and verify that the connect request is acknowledged with a CC PDU. The CONNECT PDU shall encode the RW parameter with a value of 0. Verify that the CC PDU encodes the RW parameter with a value of 2 (as specified for the echo server). 2. Send four service data units of 128 octets length over the data link connection and verify that the echo service enters the busy state when acknowledging the last packet. 3. Send a DISC PDU to terminate the data link connection and verify that the echo service responds with a correct DM PDU. ###### Rejection of connect request[¶](#rejection-of-connect-request) ``` $ llcp-test-client.py -t 6 ``` Verify that an attempt to establish a second connection with the connection-oriented mode echo service is rejected. The LLCP Link must be activated prior to running this scenario. 1. Send a first CONNECT PDU to the connection-oriented mode echo service and verify that the connect request is acknowledged with a CC PDU. 2. Send a second CONNECT PDU to the connection-oriented mode echo service and verify that the connect request is rejected with a DM PDU and appropriate reason code. 3. Send a service data unit of 128 octets length over the data link connection and verify that the echo service returns the same SDU after the echo delay time. 4. Send a DISC PDU to terminate the data link connection and verify that the echo service responds with a correct DM PDU. ###### Connect by service name[¶](#connect-by-service-name) ``` $ llcp-test-client.py -t 7 ``` Verify that a data link connection can be established by specifying a service name. The LLCP Link must be activated prior to running this scenario and the connection-oriented mode echo service must be in the unconnected state. 1. Send a CONNECT PDU with an SN parameter that encodes the value “<urn:nfc:sn:co-echo>” to the service discovery service access point address and verify that the connect request is acknowledged with a CC PDU. 2. Send a service data unit over the data link connection and verify that it is sent back correctly. 3. Send a DISC PDU to terminate the data link connection and verify that the echo service responds with a correct DM PDU. ###### Aggregation and disaggregation[¶](#aggregation-and-disaggregation) ``` $ llcp-test-client.py -t 8 ``` Verify that the aggregation procedure is performed correctly. The LLCP Link must be activated prior to running this scenario. In this scenario, sending of a service data unit (SDU) shall mean that the SDU is carried within the information field of a UI PDU. 1. Send two service data units of 50 octets length to the connection-less mode echo service such that the two resulting UI PDUs will be aggregated into a single AGF PDU by the LLC sublayer. Verify that both SDUs are sent back correctly and in the same order. 2. Send three service data units of 50 octets length to the connection-less mode echo service such that the three resulting UI PDUs will be aggregated into a single AGF PDU by the LLC sublayer. Verify that the two first SDUs are sent back correctly and the third SDU is discarded. ###### Service name lookup[¶](#service-name-lookup) ``` $ llcp-test-client.py -t 9 ``` Verify that a service name is correctly resolved into a service access point address by the remote LLC. The LLCP Link must be activated prior to running this scenario. In this scenario, sending of a service data unit (SDU) shall mean that the SDU is carried within the information field of a UI PDU. 1. Send an SNL PDU with an SDREQ parameter in the information field that encodes the value “<urn:nfc:sn:sdp>” to the service discovery service access point address and verify that the request is responded with an SNL PDU that contains an SDRES parameter with the SAP value ‘1’ and a TID value that is the same as the value encoded in the antecedently transmitted SDREQ parameter. 2. Send an SNL PDU with an SDREQ parameter in the information field that encodes the value “<urn:nfc:sn:cl-echo>” to the service discovery service access point address and verify that the request is responded with an SNL PDU that contains an SDRES parameter with a SAP value other than ‘0’ and a TID value that is the same as the value encoded in the antecedently transmitted SDREQ parameter. 3. Send a service data unit of 128 octets length to the service access point address received in step 2 and verify that the same SDU is sent back after the echo delay time. 4. Send an SNL PDU with an SDREQ parameter in the information field that encodes the value “<urn:nfc:sn:sdp-test>” to the service discovery service access point address and verify that the request is responded with an SNL PDU that contains an SDRES parameter with the SAP value ‘0’ and a TID value that is the same as the value encoded in the antecedently transmitted SDREQ parameter. ###### Send more data than allowed[¶](#send-more-data-than-allowed) ``` $ llcp-test-client.py -t 10 ``` ###### Use invalid send sequence number[¶](#use-invalid-send-sequence-number) ``` $ llcp-test-client.py -t 11 ``` ###### Use maximum data size on data link connection[¶](#use-maximum-data-size-on-data-link-connection) ``` $ llcp-test-client.py -t 12 ``` ###### Connect, release and connect again[¶](#connect-release-and-connect-again) ``` $ llcp-test-client.py -t 13 ``` ###### Connect to unknown service name[¶](#connect-to-unknown-service-name) ``` $ llcp-test-client.py -t 14 ``` Verify that a data link connection can be established by specifying a service name. The LLCP Link must be activated prior to running this scenario and the connection-oriented mode echo service must be in the unconnected state. 1. Send a CONNECT PDU with an SN parameter that encodes the value “<urn:nfc:sn:co-echo-unknown>” to the service discovery service access point address and verify that the connect request is rejected. ### Simple NDEF Exchange Protocol[¶](#simple-ndef-exchange-protocol) #### snep-test-server.py[¶](#snep-test-server-py) The SNEP test server program implements an NFC device that provides two SNEP servers: 1. A **Default SNEP Server** that is compliant with the NFC Forum Default SNEP Server defined in section 6 of the SNEP specification. 2. A **Validation SNEP Server** that accepts SNEP Put and Get requests. A Put request causes the server to store the NDEF message transmitted with the request. A Get request causes the server to attempt to return a previously stored NDEF message of the same NDEF message type and identifier as transmitted with the request. The server will keep any number of distinct NDEF messages received with Put request until the client terminates the data link connection. The Validation SNEP Server uses the service name `urn:nfc:xsn:nfc-forum.org:snep-validation`, assigned for the purpose of validating the SNEP candidate specification prior to adoption. **Usage** ``` $ snep-test-server.py [-h|--help] [OPTION]... ``` **Options** `--loop``,` `-l`[¶](#cmdoption-snep-test-server-py-loop) Repeat the command endlessly, use Control-C to abort. `--mode` `{t,i}`[¶](#cmdoption-snep-test-server-py-mode) Restrict the choice of NFC-DEP connection setup role to either `Target` (only listen) or `Initiator` (only poll). If this option is not given the dafault is to alternate between both roles with a randomized listen time. `--miu` `INT`[¶](#cmdoption-snep-test-server-py-miu) Set a specific value for the LLCP Link MIU. The dafault value is 2175 octets. `--lto` `INT`[¶](#cmdoption-snep-test-server-py-lto) Set a specific LLCP Link Timeout value. The default link timeout is 500 milliseconds. `--listen-time` `INT`[¶](#cmdoption-snep-test-server-py-listen-time) Set the time to listen for initialization command from an NFC-DEP Initiator. The default listen time is 250 milliseconds. `--no-aggregation`[¶](#cmdoption-snep-test-server-py-no-aggregation) Disable outbound packet aggregation for LLCP, i.e. do not generate LLCP AGF PDUs if multiple packets are waiting to be send. This is mostly to achieve communication with some older/buggy implementations. `-q`[¶](#cmdoption-snep-test-server-py-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-snep-test-server-py-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-snep-test-server-py-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-snep-test-server-py-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-snep-test-server-py-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. #### snep-test-client.py[¶](#snep-test-client-py) **Usage** ``` $ snep-test-client.py [-h|--help] [OPTION]... ``` **Options** `-t` `N``,` `--test` `N`[¶](#cmdoption-snep-test-client-py-t) Run test number *N*. May be set more than once. `-T``,` `--test-all`[¶](#cmdoption-snep-test-client-py-test-all) Run all tests. `--loop``,` `-l`[¶](#cmdoption-snep-test-client-py-loop) Repeat the command endlessly, use Control-C to abort. `--mode` `{t,i}`[¶](#cmdoption-snep-test-client-py-mode) Restrict the choice of NFC-DEP connection setup role to either `Target` (only listen) or `Initiator` (only poll). If this option is not given the dafault is to alternate between both roles with a randomized listen time. `--miu` `INT`[¶](#cmdoption-snep-test-client-py-miu) Set a specific value for the LLCP Link MIU. The dafault value is 2175 octets. `--lto` `INT`[¶](#cmdoption-snep-test-client-py-lto) Set a specific LLCP Link Timeout value. The default link timeout is 500 milliseconds. `--listen-time` `INT`[¶](#cmdoption-snep-test-client-py-listen-time) Set the time to listen for initialization command from an NFC-DEP Initiator. The default listen time is 250 milliseconds. `--no-aggregation`[¶](#cmdoption-snep-test-client-py-no-aggregation) Disable outbound packet aggregation for LLCP, i.e. do not generate LLCP AGF PDUs if multiple packets are waiting to be send. This is mostly to achieve communication with some older/buggy implementations. `-q`[¶](#cmdoption-snep-test-client-py-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-snep-test-client-py-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-snep-test-client-py-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-snep-test-client-py-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-snep-test-client-py-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. ##### Test Scenarios[¶](#test-scenarios) ###### Connect and terminate[¶](#connect-and-terminate) ``` $ snep-test-client.py -t 1 ``` Verify that a data link connection with the remote validation server can be established and terminated gracefully and that the server returns to a connectable state. 1. Establish a data link connection with the Validation Server. 2. Verify that the data link connection was established successfully. 3. Close the data link connection with the Validation Server. 4. Establish a new data link connection with the Validation Server. 5. Verify that the data link connection was established successfully. 6. Close the data link connection with the Validation Server. ###### Unfragmented message exchange[¶](#unfragmented-message-exchange) ``` $ snep-test-client.py -t 2 ``` Verify that the remote validation server is able to receive unfragmented SNEP messages. 1. Establish a data link connection with the Validation Server. 2. Send a Put request with an NDEF message of no more than 122 octets total length. 3. Verify that the Validation Server accepted the Put request. 4. Send a Get request that identifies the NDEF message sent in step 2 to be retrieved. 5. Verify that the retrieved NDEF message is identical to the one transmitted in step 2. 6. Close the data link connection. ###### Fragmented message exchange[¶](#fragmented-message-exchange) ``` $ snep-test-client.py -t 3 ``` Verify that the remote validation server is able to receive fragmented SNEP messages. 1. Establish a data link connection with the Validation Server. 2. Send a Put request with an NDEF message of more than 2170 octets total length. 3. Verify that the Validation Server accepted the Put request. 4. Send a Get request that identifies the NDEF message sent in step 2 to be retrieved. 5. Verify that the retrieved NDEF message is identical to the one transmitted in step 2. 6. Close the data link connection. ###### Multiple ndef messages[¶](#multiple-ndef-messages) ``` $ snep-test-client.py -t 4 ``` Verify that the remote validation server accepts more than a single NDEF message on the same data link connection. 1. Establish a data link connection with the Validation Server. 2. Send a Put request with an NDEF message that differs from the NDEF message to be send in step 3. 3. Send a Put request with an NDEF message that differs from the NDEF message that has been send send in step 2. 4. Send a Get request that identifies the NDEF message sent in step 2 to be retrieved. 5. Send a Get request that identifies the NDEF message sent in step 3 to be retrieved. 6. Verify that the retrieved NDEF messages are identical to the NDEF messages transmitted in steps 2 and 3. 7. Close the data link connection. ###### Undeliverable resource[¶](#undeliverable-resource) ``` $ snep-test-client.py -t 5 ``` Verify verify that the remote validation server responds appropriately if the client requests an NDEF message that exceeds the maximum acceptable length specified by the request. 1. Establish a data link connection with the Validation Server. 2. Send a Put request with an NDEF message of total lenght N. 3. Verify that the Validation Server accepted the Put request. 4. Send a Get request with the maximum acceptable lenght field set to *N − 1* and an NDEF message that identifies the NDEF message sent in step 2 to be retrieved. 5. Verify that the server replies with the appropriate response message. 6. Close the data link connection. ###### Unavailable resource[¶](#unavailable-resource) ``` $ snep-test-client.py -t 6 ``` Verify that the remote validation server responds appropriately if the client requests an NDEF message that is not available. 1. Establish a data link connection with the Validation Server. 2. Send a Get request that identifies an arbitrary NDEF message to be retrieved. 3. Verify that the server replies with the appropriate response message. 4. Close the data link connection. ###### Default server limits[¶](#default-server-limits) ``` $ snep-test-client.py -t 7 ``` Verify verify that the remote default server accepts a Put request with an information field of up to 1024 octets, and that it rejects a Get request. 1. Establish a data link connection with the Default Server. 2. Send a Put request with an NDEF message of up to 1024 octets total length. 3. Verify that the Default Server replies with a Success response message. 4. Send a Get request with an NDEF message of arbitrary type and identifier. 5. Verify that the Default Server replies with a Not Implemented response message. 6. Close the data link connection. ### Connection Handover[¶](#connection-handover) The **handover-test-server.py** and **handover-test-client.py** programs provide a test facility for the NFC Forum Connection Handover 1.2 specification. #### handover-test-server.py[¶](#handover-test-server-py) Usage: ``` $ handover-test-server.py [-h|--help] [OPTION]... [CARRIER]... ``` The handover test server implements the handover selector role. A handover client can connect to the server with the well-known service name `urn:nfc:sn:handover` and send handover request messages. The server replies with handover select messages populated with carriers provided through *CARRIER* arguments and matching the a carrier in the received handover request carrier list. Each *CARRIER* argument must provide an NDEF message file, which may be a handover select message with one or more alternative carriers (including auxiliary data) or an alternative carrier record optionally followed by one or more auxiliary data records. Note that only the handover select message format allows to specify the carrier power state. All carriers including power state information and auxiliary data records are accumulated into a list of selectable carriers, ordered by argument position and carrier sequence within a handover select message. Unless the `--skip-local` option is given, the server attempts to include carriers that are locally available on the host device. Local carriers are always added after all *CARRIER* arguments. Note Local carrier detection currently requires a Linux OS with the bluez Bluetooth stack and D-Bus. This is true for many Linux distributions, but has so far only be tested on Ubuntu. Options: `--skip-local`[¶](#cmdoption-handover-test-server-py-skip-local) Skip the local carrier detection. Without this option the handover test server tries to discover locally available carriers and consider them in the selection process. Local carriers are considered after all carriers provided manually. `--select` `NUM`[¶](#cmdoption-handover-test-server-py-select) Return at most *NUM* carriers with the handover select message. The default is to return all matching carriers. `--delay` `INT`[¶](#cmdoption-handover-test-server-py-delay) Delay the handover response for the number of milliseconds specified as INT. The handover specification says that the server should answer within 1 second and if it doesn’t the client may assume a processing error. `--recv-miu` `INT`[¶](#cmdoption-handover-test-server-py-recv-miu) Set the maximum information unit size for inbound LLCP packets on the data link connection between the server and the remote client. This value is transmitted with the CC PDU to the remote client. `--recv-buf` `INT`[¶](#cmdoption-handover-test-server-py-recv-buf) Set the receive window size for inbound LLCP packets on the data link connection between the server and the remote client. This value is transmitted with the CC PDU to the remote client. `--quirks`[¶](#cmdoption-handover-test-server-py-quirks) This option causes the handover test server to try support non-compliant implementations if possible and as known. Currently implemented work-arounds are: * a ‘<urn:nfc:sn:snep>’ server is enabled and accepts the GET request with a handover request message that was implemented in Android Jelly Bean * the version of the handover request message sent by Android Jelly Bean is changed to 1.1 to accomodate the missing collision resolution record that is required for version 1.2. * the incorrect type-name-format encoding in handover carrier records sent by some Sony Xperia phones is corrected to mime-type. ##### Test Scenarios[¶](#test-scenarios) ###### Empty handover select response[¶](#empty-handover-select-response) ``` $ handover-test-server.py --select 0 ``` Verify that the remote handover client accepts a handover select message that has no alternative carriers. ###### A carrier that is being activated[¶](#a-carrier-that-is-being-activated) ``` $ ndeftool.py make btcfg 01:02:03:04:05:06 --activating | handover-test-server --skip-local - ``` Verify that the remote handover client understands and tries to connect to a Bluetooth carrier that is in the process of activation. ###### Delayed handover select response[¶](#delayed-handover-select-response) ``` $ examples/handover-test-server.py --delay 10000 ``` Check hot the remote handover implementation behaves if the handover select response is delayed for about 10 seconds. This test intends to help identify user interface issues. #### handover-test-client.py[¶](#handover-test-client-py) **Usage** ``` $ handover-test-client.py [-h|--help] [OPTION]... [CARRIER]... ``` The handover test client implements the handover requester role. The handover client connects to the remote server with well-known service name `urn:nfc:sn:handover` and sends handover request messages populated with carriers provided through one or more *CARRIER* arguments or implicitly if tests from the test suite are executed. The client expects the server to reply with handover select messages that list carriers matching one or more of the carriers sent with the handover request carrier list. Each *CARRIER* argument must provide an NDEF message file which may be a handover message with one or more alternative carriers (including auxiliary data) or an alternative carrier record followed by zero or more auxiliary data records. Note that only the handover message format allows to specify the carrier power state. All carriers, including power state information and auxiliary data records, are accumulated into a list of requestable carriers ordered by argument position and carrier sequence within a handover message. **Options** `-t` `N``,` `--test` `N`[¶](#cmdoption-handover-test-client-py-t) Run test number *N* from the test suite. Multiple tests can be specified. `--relax`[¶](#cmdoption-handover-test-client-py-relax) The `--relax` option affects how missing optional, but highly recommended, handover data is handled when running test scenarios. Without `--relax` any missing data is regarded as a test error that terminates test execution. With the `--relax` option set only a warning message is logged. `--recv-miu` `INT`[¶](#cmdoption-handover-test-client-py-recv-miu) Set the maximum information unit size for inbound LLCP packets on the data link connection between the client and the remote server. This value is transmitted with the CONNECT PDU to the remote server. `--recv-buf` `INT`[¶](#cmdoption-handover-test-client-py-recv-buf) Set the receive window size for inbound LLCP packets on the data link connection between the client and the remote server. This value is transmitted with the CONNECT PDU to the remote server. `--quirks`[¶](#cmdoption-handover-test-client-py-quirks) This option causes the handover test client to try support non-compliant implementations as much as possible, including and beyond the `--relax` behavor. The modifications activated with `--quirks` are: * After test procedures are completed the client does not terminate the LLCP link but waits until the link is disrupted to prevent the NFC stack segfault and recovery on pre 4.1 Android devices. * Try sending the handover request message with a SNEP GET request to the remote default SNEP server if the `urn:nfc:sn:handover` service is not available. ##### Test Scenarios[¶](#id1) ###### Presence and connectivity[¶](#presence-and-connectivity) ``` $ handover-test-client.py -t 1 ``` Verify that the remote device has the connection handover service active and that the client can open, close and re-open a connection with the server. 1. Connect to the remote handover service. 2. Close the data link conection. 3. Connect to the remote handover service. 4. Close the data link conection. ###### Empty carrier list[¶](#empty-carrier-list) ``` $ handover-test-client.py -t 2 ``` Verify that the handover server responds to a handover request without alternative carriers with a handover select message that also has no alternative carriers. 1. Connect to the remote handover service. 2. Send a handover request message containing zero alternative carriers. 3. Verify that the server returns a handover select message within no more than 3 seconds; and that the message contains zero alternative carriers. 4. Close the data link conection. ###### Version handling[¶](#version-handling) ``` $ handover-test-client.py -t 3 ``` Verify that the remote handover server handles historic and future handover request version numbers. This test is run as a series of steps where for each step the connection to the server is established and closed after completion. For all steps the configuration sent is a Bluetooth carrier for device address `01:02:03:04:05:06`. 1. Connect to the remote handover service. 2. Send a handover request message with version `1.2`. 3. Verify that the server replies with version `1.2`. 4. Close the data link conection. 5. Connect to the remote handover service. 6. Send a handover request message with version `1.1`. 7. Verify that the server replies with version `1.2`. 8. Close the data link conection. 9. Connect to the remote handover service. 10. Send a handover request message with version `1.15`. 11. Verify that the server replies with version `1.2`. 12. Close the data link conection. 13. Connect to the remote handover service. 14. Send a handover request message with version `15.0`. 15. Verify that the server replies with version `1.2`. 16. Close the data link conection. ###### Bluetooth just-works pairing[¶](#bluetooth-just-works-pairing) ``` $ handover-test-client.py -t 4 ``` Verify that the `application/vnd.bluetooth.ep.oob` alternative carrier is correctly evaluated and replied. This test is only applicable if the peer device does have Bluetooth connectivity. 1. Connect to the remote handover service. 2. Send a handover request message with a single alternative carrier of type `application/vnd.bluetooth.ep.oob` and power state `active`. Secure pairing hash and randomizer are not provided with the Bluetooth configuration. 3. Verify that the server returns a handover select message within no more than 3 seconds; that the message contains exactly one alternative carrier with type `application/vnd.bluetooth.ep.oob` and power state `active` or `activating`; that the Bluetooth local device name is transmitted; and that secure simple pairing hash and randomizer are not transmitted. Issues a warning if class of device/service or service class UUID attributes are not transmitted. 4. Close the data link conection. ###### Bluetooth secure pairing[¶](#bluetooth-secure-pairing) ``` $ handover-test-client.py -t 5 ``` Verify that the `application/vnd.bluetooth.ep.oob` alternative carrier is correctly evaluated and replied. This test is only applicable if the peer device does have Bluetooth connectivity. 1. Connect to the remote handover service. 2. Send a handover request message with a single alternative carrier of type `application/vnd.bluetooth.ep.oob` and power state `active`. Secure pairing hash and randomizer are transmitted with the Bluetooth configuration. 3. Verify that the server returns a handover select message within no more than 3 seconds; that the message contains exactly one alternative carrier with type `application/vnd.bluetooth.ep.oob` and power state `active` or `activating`; that the Bluetooth local device name is transmitted; and that secure simple pairing hash and randomizer are transmitted. Issues a warning if class of device/service or service class UUID attributes are not transmitted. 4. Close the data link conection. ###### Unknown carrier type[¶](#unknown-carrier-type) ``` $ handover-test-client.py -t 6 ``` Verify that the remote handover server returns a select message without alternative carriers if a single carrier of unknown type was sent with the handover request. 1. Connect to the remote handover service. 2. Send a handover request message with a single alternative carrier of type `urn:nfc:ext:nfcpy.org:unknown-carrier-type`. 3. Verify that the server returns a handover select message with an empty alternative carrier selection. 4. Close the data link conection. ###### Two handover requests[¶](#two-handover-requests) ``` $ handover-test-client.py -t 7 ``` Verify that the remote handover server does not close the data link connection after the first handover request message. 1. Connect to the remote handover service. 2. Send a handover request with a single carrier of unknown type 3. Send a handover request with a single Bluetooth carrier 4. Close the data link conection. ###### Reserved-future-use check[¶](#reserved-future-use-check) ``` $ handover-test-client.py -t 8 ``` Verify that reserved bits are set to zero and optional reserved bytes are not present in the payload of the alternative carrier record. This test requires that the remote server selects a Bluetooth alternative carrier if present in the request. 1. Connect to the remote handover service. 2. Send a handover request with a single Bluetooth carrier 3. Verify that an alternative carrier record is present; that reserved bits in the first octet are zero; and that the record payload ends with the last auxiliary data reference. 4. Close the data link conection. ###### Skip meaningless records[¶](#skip-meaningless-records) ``` $ handover-test-client.py -t 9 ``` Verify that records that have no defined meaning in the payload of a handover request record are ignored. This test assumes that the remote server selects a Bluetooth alternative carrier if present in the request. 1. Connect to the remote handover service. 2. Send a handover request with a single Bluetooth carrier and a meaningless text record as the first record of the handover request record payload. 3. Verify that an Bluetooth alternative carrier record is returned. 4. Close the data link conection. ### Personal Health Device Communication[¶](#personal-health-device-communication) #### phdc-test-manager.py[¶](#phdc-test-manager-py) This program implements an NFC device that provides a PHDC manager with the well-known service name `urn:nfc:sn:phdc` and a non-standard PHDC manager with the experimental service name `urn:nfc:xsn:nfc-forum.org:phdc-validation`. **Usage** ``` $ phdc-test-manager.py [-h|--help] [OPTION]... ``` **Options** `--loop``,` `-l`[¶](#cmdoption-phdc-test-manager-py-loop) Repeat the command endlessly, use Control-C to abort. `--mode` `{t,i}`[¶](#cmdoption-phdc-test-manager-py-mode) Restrict the choice of NFC-DEP connection setup role to either `Target` (only listen) or `Initiator` (only poll). If this option is not given the dafault is to alternate between both roles with a randomized listen time. `--miu` `INT`[¶](#cmdoption-phdc-test-manager-py-miu) Set a specific value for the LLCP Link MIU. The dafault value is 2175 octets. `--lto` `INT`[¶](#cmdoption-phdc-test-manager-py-lto) Set a specific LLCP Link Timeout value. The default link timeout is 500 milliseconds. `--listen-time` `INT`[¶](#cmdoption-phdc-test-manager-py-listen-time) Set the time to listen for initialization command from an NFC-DEP Initiator. The default listen time is 250 milliseconds. `--no-aggregation`[¶](#cmdoption-phdc-test-manager-py-no-aggregation) Disable outbound packet aggregation for LLCP, i.e. do not generate LLCP AGF PDUs if multiple packets are waiting to be send. This is mostly to achieve communication with some older/buggy implementations. `--wait`[¶](#cmdoption-phdc-test-manager-py-wait) After reading or writing a tag, wait until it is removed before returning. This option is implicit when the option `--loop` is set. `--technology` `{A,B,F}`[¶](#cmdoption-phdc-test-manager-py-technology) Poll only for tags of a specific technology. The technologies NFC-A, NFC-B, and NFC-F are defined in the NFC Forum Digital Specification. The technology indicator is case insensitive. The default is to poll for all technologies. `-q`[¶](#cmdoption-phdc-test-manager-py-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-phdc-test-manager-py-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-phdc-test-manager-py-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-phdc-test-manager-py-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-phdc-test-manager-py-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. #### phdc-test-agent.py p2p[¶](#phdc-test-agent-py-p2p) **Usage** ``` $ phdc-test-agent.py p2p [-h|--help] [OPTION]... ``` **Options** `-t` `N``,` `--test` `N`[¶](#cmdoption-phdc-test-agent-py-p2p-t) Run test number *N*. May be set more than once. `-T``,` `--test-all`[¶](#cmdoption-phdc-test-agent-py-p2p-test-all) Run all tests. `--loop``,` `-l`[¶](#cmdoption-phdc-test-agent-py-p2p-loop) Repeat the command endlessly, use Control-C to abort. `--mode` `{t,i}`[¶](#cmdoption-phdc-test-agent-py-p2p-mode) Restrict the choice of NFC-DEP connection setup role to either `Target` (only listen) or `Initiator` (only poll). If this option is not given the dafault is to alternate between both roles with a randomized listen time. `--miu` `INT`[¶](#cmdoption-phdc-test-agent-py-p2p-miu) Set a specific value for the LLCP Link MIU. The dafault value is 2175 octets. `--lto` `INT`[¶](#cmdoption-phdc-test-agent-py-p2p-lto) Set a specific LLCP Link Timeout value. The default link timeout is 500 milliseconds. `--listen-time` `INT`[¶](#cmdoption-phdc-test-agent-py-p2p-listen-time) Set the time to listen for initialization command from an NFC-DEP Initiator. The default listen time is 250 milliseconds. `--no-aggregation`[¶](#cmdoption-phdc-test-agent-py-p2p-no-aggregation) Disable outbound packet aggregation for LLCP, i.e. do not generate LLCP AGF PDUs if multiple packets are waiting to be send. This is mostly to achieve communication with some older/buggy implementations. `-q`[¶](#cmdoption-phdc-test-agent-py-p2p-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-phdc-test-agent-py-p2p-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-phdc-test-agent-py-p2p-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-phdc-test-agent-py-p2p-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-phdc-test-agent-py-p2p-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. ##### Test Scenarios[¶](#test-scenarios) ###### Connect, Associate and Release[¶](#connect-associate-and-release) ``` $ phdc-test-agent.py p2p -t 1 ``` Verify that the Agent can connect to the PHDC Manager, associate with the IEEE Manager and finally release the association. 1. Establish communication distance between the Thermometer Peer Agent and the Manager device. 2. Connect to the `urn:nfc:sn:phdc` service. 3. Send a Thermometer Association Request. 4. Verify that the Manager sends a Thermometer Association Response. 5. Wait 3 seconds not sending any IEEE APDU, then send an Association Release Request. 6. Verify that the Manager sends an Association Release Response 7. Disconnect from the `urn:nfc:sn:phdc` service. 8. Move Agent and Manager device out of communication range. ###### Association after Release[¶](#association-after-release) ``` $ phdc-test-agent.py p2p -t 2 ``` Verify that the Agent can again associate with the Manager after a first association has been established and released. 1. Establish communication distance between the Thermometer Peer Agent and the Manager device. 2. Connect to the `urn:nfc:sn:phdc` service. 3. Send a Thermometer Association Request. 4. Verify that the Manager sends a Thermometer Association Response. 5. Disconnect from the `urn:nfc:sn:phdc` service. 6. Connect to the `urn:nfc:sn:phdc` service. 7. Send a Thermometer Association Request. 8. Verify that the Manager sends a Thermometer Association Response. 9. Send a Association Release Request. 10. Verify that the Manager sends a Association Release Response. 11. Disconnect from the `urn:nfc:sn:phdc` service. 12. Move Agent and Manager device out of communication range. ###### PHDC PDU Fragmentation and Reassembly[¶](#phdc-pdu-fragmentation-and-reassembly) ``` $ phdc-test-agent.py p2p -t 3 ``` Verify that large PHDC PDUs are correctly fragmented and reassembled. 1. Establish communication distance between the Validation Agent and the Manager device. 2. Connect to the `urn:nfc:xsn:nfc-forum.org:phdc-validation` service. 3. Send a PHDC PDU with an Information field of 2176 random octets. 4. Verify to receive an PHDC PDU that contains the same random octets in reversed order. 5. Disconnect from the `urn:nfc:xsn:nfc-forum.org:phdc-validation` service. 6. Move Agent and Manager device out of communication range. #### phdc-test-agent.py tag[¶](#phdc-test-agent-py-tag) **Usage** ``` $ phdc-test-agent.py tag [-h|--help] [OPTION]... ``` **Options** `-t` `N``,` `--test` `N`[¶](#cmdoption-phdc-test-agent-py-tag-t) Run test number *N*. May be set more than once. `-T``,` `--test-all`[¶](#cmdoption-phdc-test-agent-py-tag-test-all) Run all tests. `--loop``,` `-l`[¶](#cmdoption-phdc-test-agent-py-tag-loop) Repeat the command endlessly, use Control-C to abort. `-q`[¶](#cmdoption-phdc-test-agent-py-tag-q) Do not print log messages except for errors and warnings. `-d` `MODULE`[¶](#cmdoption-phdc-test-agent-py-tag-d) Output debug messages for MODULE to the log facility. Logs are written to <stderr> unless a log file is set with `-f`. MODULE is a string that corresponds to an *nfcpy* module or individual file, with dots between path components. For example, `-d nfc` enables all *nfcpy* debug logs, `-d nfc.tag` enables debug logs for all tag types, and `-d nfc.tag.tt3` enables debug logs only for type 3 tags. This option may be given multiple times to enable debug logs for several modules. `-f` `LOGFILE`[¶](#cmdoption-phdc-test-agent-py-tag-f) Write debug log messages to <LOGFILE> instead of <stderr>. Info, warning and error logs will still be printed to <stderr> unless `-q` is set to supress info messages on <stderr>. `--nolog-symm`[¶](#cmdoption-phdc-test-agent-py-tag-nolog-symm) When operating in peer mode this option prevents logging of LLCP Symmetry PDUs from the `nfc.llcp.llc` module. Symmetry PDUs are exchanged regularly and quite frequently over an LLCP Link and are logged by default if debug output is enabled for the llcp module. `--device` `PATH`[¶](#cmdoption-phdc-test-agent-py-tag-device) Use a specific reader or search only for a subset of readers. The syntax for PATH is: * `usb[:vendor[:product]]` with optional *vendor* and *product* as four digit hexadecimal numbers, like `usb:054c:06c3` would open the first Sony RC-S380 reader and `usb:054c` the first Sony reader. * `usb[:bus[:device]]` with optional *bus* and *device* number as three-digit decimal numbers, like `usb:001:023` would specifically mean the usb device with bus number 1 and device id 23 whereas `usb:001` would mean to use the first available reader on bus number 1. * `tty:port:driver` with mandatory *port* and *driver* name should be used on Posix systems to open the serial port at device node `/dev/tty<port>` and load the driver from module `nfc/dev/<driver>.py`. A typical example would be `tty:USB0:arygon` for the Arygon APPx/ADRx at `/dev/ttyUSB0`. * `com:port:driver` with mandatory *port* and *driver* name should be used on Windows systems to open the serial port `COM<port>` and load the `nfc/dev/<driver>.py` driver module. * `udp[:host][:port]` with optional *host* name or address and *port* number will use a fake communication channel over UDP/IP. Either value may be omitted in which case *host* defaults to ‘localhost’ and *port* defaults to 54321. ##### Test Scenarios[¶](#id1) ###### Discovery, Association and Release[¶](#discovery-association-and-release) ``` $ phdc-test-agent.py tag -t 1 ``` Verify that a PHDC Tag Agent is discovered by a PHDC Manager and IEEE APDU exchange is successful. 1. Establish communication distance between the Thermometer Tag Agent and the Manager. 2. Send a Thermometer Association Request. 3. Verify that the Manager sends a Thermometer Association Response. 4. Wait 3 seconds not sending any IEEE APDU, then send an Association Release Request. 5. Verify that the Manager sends a Association Release Response. 6. Move Thermometer Tag Agent and Manager out of communication range. ###### Association after Release[¶](#id2) ``` $ phdc-test-agent.py tag -t 2 ``` Verify that a Tag Agent can again associate with the Manager after a first association has been established and released. 1. Establish communication distance between the Thermometer Tag Agent and the Manager. 2. Send a Thermometer Association Request. 3. Verify that the Manager sends a Thermometer Association Response. 4. Send an Association Release Request. 5. Verify that the Manager sends a Association Release Response. 6. Wait 3 seconds not sending any IEEE APDU, then send a Thermometer Association Request. 7. Verify that the Manager sends a Thermometer Association Response. 8. Move Thermometer Tag Agent and Manager out of communication range. ###### Activation with invalid settings[¶](#activation-with-invalid-settings) ``` $ phdc-test-agent.py tag -t 3 ``` Verify that a PHDC Manager refuses communication with a Tag Agent that presents an invalid PHDC record payload during activation. 1. Establish communication distance between the Tag Agent and the Manager. 2. Send the first PHDC PDU with invalid settings in one or any of the MC, LC or MD fields. 3. Verify that the Manager stops further PHDC communication with the Tag Agent. ###### Activation with invalid RFU value[¶](#activation-with-invalid-rfu-value) ``` $ phdc-test-agent.py tag -t 4 ``` Verify that a PHDC Manager communicates with a Tag Agent that presents a PHDC record payload with an invalid RFU value during activation. 1. Establish communication distance between the Tag Agent and the Manager. 2. Send the first PHDC PDU with an invalid value in the RFU field. 3. Verify that the Manager continues PHDC communication with the Tag Agent. ### Generate Test Tags[¶](#generate-test-tags) This page contains instructions to generate tags for testing reader compliance with NFC Forum Tag Type, NDEF and RTD specifications. The tools used are in the `examples` directory. #### Type 3 Tags[¶](#type-3-tags) ##### Attribute Block Tests[¶](#attribute-block-tests) This is a collection of tags to test processing of the the Type 3 Tag attribute information block. These can be used to verify if the NFC device correctly reads or writes tags with different attribute information, both valid and invalid. Below figure (from the NFC Forum Type 3 Tag Operation Specification) shows the Attribute Information Format. ###### TT3_READ_BV_001[¶](#tt3-read-bv-001) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation hosted on readthedocs" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 80 --max 5 --rw 0 ``` * Settings: Len = Nmaxb * 16, RWFlag = 0x00 * Expected: Fully used tag. Read all data stored (Len) ###### TT3_READ_BV_002[¶](#tt3-read-bv-002) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 58 --rw 0 --nbr 1 ``` * Settings: Nbr = 1, RWFlag = 0x00 * Expected: Identify as „Read Only“ (normal read-only tag, read only 1 block at a time) ###### TT3_READ_BV_003[¶](#tt3-read-bv-003) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 58 --rw 0 --max 3 ``` * Nbr > Nbmax, RWFlag = 0x00 * Read Nbmax blocks (NOT read Nbr blocks) ###### TT3_READ_BV_004[¶](#tt3-read-bv-004) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 58 --rw 0 --wf 15 ``` * WriteFlag = 0x0F, RWFlag = 0x00 * Identify as „corrupted data“ (previous write interrupted) ###### TT3_READ_BV_005[¶](#tt3-read-bv-005) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 58 --rw 0 --max 3 ``` * Nmaxb * 16 < Len, RWFlag = 0x00 * Identify as „Corrupted data“ (invalid length) ###### TT3_READ_BV_006[¶](#tt3-read-bv-006) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t `python -c 'print(810*"nfcpy")'` | ./tagtool.py load - $ ./tagtool.py format tt3 --len 4495 --rw 0 ``` * Nmaxb > 255, Len > 255, RWFlag = 0x00 * Read all data. Identify as „Read Only“. Write prohibited. (normal read-only tag) * Requires a tag with more than 4 kbyte NDEF capacity ###### TT3_READ_BI_001[¶](#tt3-read-bi-001) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 58 --rw 0 --nbr 0 --nbw 0 ``` * Nbr = 0, Nbw = 0, RWFlag = 0x00 * Identify as „Corrupted data“ (invalid attribute information block) ###### TT3_READ_BI_002[¶](#tt3-read-bi-002) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 58 --rw 0 --crc 4660 ``` * Checksum invalid, RWFlag = 0x00 * Identify as „Corrupted data“ (invalid attribute information block) ###### TT3_READ_BI_003[¶](#tt3-read-bi-003) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 58 --rw 0 --ver 2.0 ``` * Version = 2.0, RWFlag = 0x00 * Identify as unknown version ###### TT3_READ_BI_004[¶](#tt3-read-bi-004) ``` $ ./tagtool.py format $ ./ndeftool.py make smartposter http://nfcpy.readthedocs.org/ -t "nfcpy documentation" | ./tagtool.py load - $ ./tagtool.py format tt3 --len 58 --rw 0 --rfu 255 ``` * All unused bytes in attribute block = 0xFF * Ignore when reading RWFlag = 0x00 ###### TT3_WRITE_BV_001[¶](#tt3-write-bv-001) ``` $ ./tagtool.py format tt3 --rw 0 ``` * RWFlag = 0x00, no content * Identify as „Read Only“. Write prohibited. (normal read-only tag) ###### TT3_WRITE_BV_002[¶](#tt3-write-bv-002) ``` $ ./tagtool.py format tt3 --rw 1 ``` * RWFlag = 0x01, no content * Identify as „Read/Write“. Write permitted. (normal writtable tag) ###### TT3_WRITE_BV_003[¶](#tt3-write-bv-003) ``` $ ./tagtool.py format tt3 --rw 0 --max 4 ``` * Nbw > Nbmax, RWFlag = 0x01 * Write Nbmax blocks (**not** write Nbw blocks) Module Reference[¶](#module-reference) --- ### nfc[¶](#nfc) #### nfc.ContactlessFrontend[¶](#nfc-contactlessfrontend) *class* `nfc.``ContactlessFrontend`[¶](#nfc.ContactlessFrontend) Shorthand for [`nfc.clf.ContactlessFrontend`](index.html#nfc.clf.ContactlessFrontend). ### nfc.clf[¶](#nfc-clf) * [Contactless Frontend](#contactless-frontend) * [Technology Types](#technology-types) * [Exceptions](#exceptions) * [Driver Interface](#module-nfc.clf.device) * [Device Drivers](#device-drivers) + [rcs380](#module-nfc.clf.rcs380) + [pn531](#module-nfc.clf.pn531) + [pn532](#module-nfc.clf.pn532) + [pn533](#module-nfc.clf.pn533) + [rcs956](#module-nfc.clf.rcs956) + [acr122](#module-nfc.clf.acr122) + [udp](#module-nfc.clf.udp) *class* `nfc.clf.``ContactlessFrontend`(*path=None*)[¶](#nfc.clf.ContactlessFrontend) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) This class is the main interface for working with contactless devices. The [`connect()`](#nfc.clf.ContactlessFrontend.connect) method provides easy access to the contactless functionality through automated discovery of remote cards and devices and activation of appropiate upper level protocols for further interaction. The [`sense()`](#nfc.clf.ContactlessFrontend.sense), [`listen()`](#nfc.clf.ContactlessFrontend.listen) and [`exchange()`](#nfc.clf.ContactlessFrontend.exchange) methods provide a low-level interface for more specialized tasks. An instance of the [`ContactlessFrontend`](#nfc.clf.ContactlessFrontend) class manages a single contactless device locally connect through either USB, TTY or COM port. A special UDP port driver allows for emulation of a contactless device that connects through UDP to another emulated contactless device for test and development of higher layer functions. A locally connected contactless device can be opened by either supplying a *path* argument when an an instance of the contactless frontend class is created or by calling [`open()`](#nfc.clf.ContactlessFrontend.open) at a later time. In either case the *path* argument must be constructed as described in [`open()`](#nfc.clf.ContactlessFrontend.open) and the same exceptions may occur. The difference is that [`open()`](#nfc.clf.ContactlessFrontend.open) returns False if a device could not be found whereas the initialization method raises `IOError` with [`errno.ENODEV`](https://docs.python.org/3/library/errno.html#errno.ENODEV). The methods of the [`ContactlessFrontend`](#nfc.clf.ContactlessFrontend) class are thread-safe. `open`(*path*)[¶](#nfc.clf.ContactlessFrontend.open) Open a contactless reader identified by the search *path*. The [`open()`](#nfc.clf.ContactlessFrontend.open) method searches and then opens a contactless reader device for further communication. The *path* argument can be flexibly constructed to identify more or less precisely the device to open. A *path* that only partially identifies a device is completed by search. The first device that is found and successfully opened causes [`open()`](#nfc.clf.ContactlessFrontend.open) to return True. If no device is found return value is False. If a device was found but could not be opened then [`open()`](#nfc.clf.ContactlessFrontend.open) returns False if *path* was partial or raise `IOError` if *path* was fully qualified. Typical I/O error reasons are [`errno.EACCES`](https://docs.python.org/3/library/errno.html#errno.EACCES) if the calling process has insufficient access rights or [`errno.EBUSY`](https://docs.python.org/3/library/errno.html#errno.EBUSY) if the device is used by another process. A path is constructed as follows: `usb[:vendor[:product]]` > with optional *vendor* and *product* as four digit > hexadecimal numbers. For example, `usb:054c:06c3` would > open the first Sony RC-S380 reader while `usb:054c` would > open the first Sony reader found on USB. `usb[:bus[:device]]` > with optional *bus* and *device* number as three-digit > decimals. For example, `usb:001:023` would open the > device enumerated as number 23 on bus 1 while `usb:001` > would open the first device found on bust 1. Note that a > new device number is generated every time the device is > plugged into USB. Bus and device numbers are shown by > `lsusb`. `tty:port:driver` > with mandatory *port* and *driver* name. This is for Posix > systems to open the serial port `/dev/tty<port>` and use > the driver module `nfc/dev/<driver>.py` for access. For > example, `tty:USB0:arygon` would open `/dev/ttyUSB0` > and load the Arygon APPx/ADRx driver. `com:port:driver` > with mandatory *port* and *driver* name. This is for > Windows systems to open the serial port `COM<port>` and > use the driver module `nfc/dev/<driver>.py` for access. `udp[:host][:port]` > with optional *host* name or address and *port* > number. This will emulate a communication channel over > UDP/IP. The defaults for *host* and *port* are > `localhost:54321`. `close`()[¶](#nfc.clf.ContactlessFrontend.close) Close the contacless reader device. `connect`(***options*)[¶](#nfc.clf.ContactlessFrontend.connect) Connect with a Target or Initiator The calling thread is blocked until a single activation and deactivation has completed or a callback function supplied as the keyword argument `terminate` returns a true value. The example below makes [`connect()`](#nfc.clf.ContactlessFrontend.connect) return after 5 seconds, regardless of whether a peer device was connected or not. ``` >>> import nfc, time >>> clf = nfc.ContactlessFrontend('usb') >>> after5s = lambda: time.time() - started > 5 >>> started = time.time(); clf.connect(llcp={}, terminate=after5s) ``` Connect options are given as keyword arguments with dictionary values. Possible options are: * `rdwr={key: value, ...}` - options for reader/writer * `llcp={key: value, ...}` - options for peer to peer * `card={key: value, ...}` - options for card emulation **Reader/Writer Options** ‘targets’ : iterable A list of bitrate and technology type strings that will produce the [`RemoteTarget`](#nfc.clf.RemoteTarget) objects to discover. The default is `('106A', '106B', '212F')`. ‘on-startup’ : function(targets) This function is called before any attempt to discover a remote card. The *targets* argument provides a list of [`RemoteTarget`](#nfc.clf.RemoteTarget) objects prepared from the ‘targets’ bitrate and technology type strings. The function must return a list of of those [`RemoteTarget`](#nfc.clf.RemoteTarget) objects that shall be finally used for discovery, those targets may have additional attributes. An empty list or anything else that evaluates false will remove the ‘rdwr’ option completely. ‘on-discover’ : function(target) This function is called when a [`RemoteTarget`](#nfc.clf.RemoteTarget) has been discovered. The *target* argument contains the technology type specific discovery responses and should be evaluated for multi-protocol support. The target will be further activated only if this function returns a true value. The default function depends on the ‘llcp’ option, if present then the function returns True only if the target does not indicate peer to peer protocol support, otherwise it returns True for all targets. ‘on-connect’ : function(tag) This function is called when a remote tag has been activated. The *tag* argument is an instance of class [`nfc.tag.Tag`](index.html#nfc.tag.Tag) and can be used for tag reading and writing within the callback or in a separate thread. Any true return value instructs [`connect()`](#nfc.clf.ContactlessFrontend.connect) to wait until the tag is no longer present and then return True, any false return value implies immediate return of the [`nfc.tag.Tag`](index.html#nfc.tag.Tag) object. ‘on-release’ : function(tag) This function is called when the presence check was run (the ‘on-connect’ function returned a true value) and determined that communication with the *tag* has become impossible, or when the ‘terminate’ function returned a true value. The *tag* object may be used for cleanup actions but not for communication. ‘iterations’ : integer This determines the number of sense cycles performed between calls to the terminate function. Each iteration searches once for all specified targets. The default value is 5 iterations and between each iteration is a waiting time determined by the ‘interval’ option described below. As an effect of math there will be no waiting time if iterations is set to 1. ‘interval’ : float This determines the waiting time between iterations. The default value of 0.5 seconds is considered a sensible tradeoff between responsiveness in terms of tag discovery and power consumption. It should be clear that changing this value will impair one or the other. There is no free beer. ‘beep-on-connect’: boolean If the device supports beeping or flashing an LED, automatically perform this functionality when a tag is successfully detected AND the ‘on-connect’ function returns a true value. Defaults to True. ``` import nfc def on_startup(targets): for target in targets: target.sensf_req = bytearray.fromhex("0012FC0000") return targets def on_connect(tag): print(tag) rdwr_options = { 'targets': ['212F', '424F'], 'on-startup': on_startup, 'on-connect': on_connect, } with nfc.ContactlessFrontend('usb') as clf: tag = clf.connect(rdwr=rdwr_options) if tag.ndef: print(tag.ndef.message.pretty()) ``` **Peer To Peer Options** ‘on-startup’ : function(llc) This function is called before any attempt to establish peer to peer communication. The *llc* argument provides the [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController) that may be used to allocate and bind listen sockets for local services. The function should return the *llc* object if activation shall continue. Any other value removes the ‘llcp’ option. ‘on-connect’ : function(llc) This function is called when peer to peer communication is successfully established. The *llc* argument provides the now activated [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController) ready for allocation of client communication sockets and data exchange in separate work threads. The function should a true value return more or less immediately, unless it wishes to handle the logical link controller run loop by itself and anytime later return a false value. ‘on-release’ : function(llc) This function is called when the symmetry loop was run (the ‘on-connect’ function returned a true value) and determined that communication with the remote peer has become impossible, or when the ‘terminate’ function returned a true value. The *llc* object may be used for cleanup actions but not for communication. ‘role’ : string This attribute determines whether the local device will restrict itself to either `'initiator'` or `'target'` mode of operation. As Initiator the local device will try to discover a remote device. As Target it waits for being discovered. The default is to alternate between both roles. ‘miu’ : integer This attribute sets the maximum information unit size that is announced to the remote device during link activation. The default and also smallest possible value is 128 bytes. ‘lto’ : integer This attribute sets the link timeout value (given in milliseconds) that is announced to the remote device during link activation. It informs the remote device that if the local device does not return a protocol data unit before the timeout expires, the communication link is broken and can not be recovered. The *lto* is an important part of the user experience, it ultimately tells when the user should no longer expect communication to continue. The default value is 500 millisecond. ‘agf’ : boolean Some early phone implementations did not properly handle aggregated protocol data units. This attribute allows to disable the use af aggregation at the cost of efficiency. Aggregation is disabled with a false value. The default is to use aggregation. ‘brs’ : integer For the local device in Initiator role the bit rate selector determines the the bitrate to negotiate with the remote Target. The value may be 0, 1, or 2 for 106, 212, or 424 kbps, respectively. The default is to negotiate 424 kbps. ‘acm’ : boolean For the local device in Initiator role this attribute determines whether a remote Target may also be activated in active communication mode. In active communication mode both peer devices mutually generate a radio field when sending. The default is to use passive communication mode. ‘rwt’ : float For the local device in Target role this attribute sets the response waiting time announced during link activation. The response waiting time is a medium access layer (NFC-DEP) value that indicates when the remote Initiator shall attempt error recovery after missing a Target response. The value is the waiting time index *wt* that determines the effective response waiting time by the formula `rwt = 4096/13.56E6 * pow(2, wt)`. The value shall not be greater than 14. The default value is 8 and yields an effective response waiting time of 77.33 ms. ‘lri’ : integer For the local device in Initiator role this attribute sets the length reduction for medium access layer (NFC-DEP) information frames. The value may be 0, 1, 2, or 3 for a maximum payload size of 64, 128, 192, or 254 bytes, respectively. The default value is 3. ‘lrt’ : integer For the local device in Target role this attribute sets the length reduction for medium access layer (NFC-DEP) information frames. The value may be 0, 1, 2, or 3 for a maximum payload size of 64, 128, 192, or 254 bytes, respectively. The default value is 3. ``` import nfc import nfc.llcp import threading def server(socket): message, address = socket.recvfrom() socket.sendto("It's me!", address) socket.close() def client(socket): socket.sendto("Hi there!", address=32) socket.close() def on_startup(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.LOGICAL_DATA_LINK) socket.bind(address=32) threading.Thread(target=server, args=(socket,)).start() return llc def on_connect(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.LOGICAL_DATA_LINK) threading.Thread(target=client, args=(socket,)).start() return True llcp_options = { 'on-startup': on_startup, 'on-connect': on_connect, } with nfc.ContactlessFrontend('usb') as clf: clf.connect(llcp=llcp_options) print("link terminated") ``` **Card Emulation Options** ‘on-startup’ : function(target) This function is called to prepare a local target for discovery. The input argument is a fresh instance of an unspecific [`LocalTarget`](#nfc.clf.LocalTarget) that can be set to the desired bitrate and modulation type and populated with the type specific discovery responses (see [`listen()`](#nfc.clf.ContactlessFrontend.listen) for response data that is needed). The fully specified target object must then be returned. ‘on-discover’ : function(target) This function is called when the [`LocalTarget`](#nfc.clf.LocalTarget) has been discovered. The *target* argument contains the technology type specific discovery commands. The target will be further activated only if this function returns a true value. The default function always returns True. ‘on-connect’ : function(tag) This function is called when the local target was discovered and a [`nfc.tag.TagEmulation`](index.html#nfc.tag.TagEmulation) object successfully initialized. The function receives the emulated *tag* object which stores the first command received after inialization as `tag.cmd`. The function should return a true value if the tag.process_command() and tag.send_response() methods shall be called repeatedly until either the remote device terminates communication or the ‘terminate’ function returns a true value. The function should return a false value if the [`connect()`](#nfc.clf.ContactlessFrontend.connect) method shall return immediately with the emulated *tag* object. ‘on-release’ : function(tag) This function is called when the Target was released by the Initiator or simply moved away, or if the terminate callback function has returned a true value. The emulated *tag* object may be used for cleanup actions but not for communication. ``` import nfc def on_startup(target): idm = bytearray.fromhex("01010501b00ac30b") pmm = bytearray.fromhex("03014b024f4993ff") sys = bytearray.fromhex("1234") target.brty = "212F" target.sensf_res = chr(1) + idm + pmm + sys return target def on_connect(tag): print("discovered by remote reader") return True def on_release(tag): print("remote reader is gone") return True card_options = { 'on-startup': on_startup, 'on-connect': on_connect, 'on-release': on_release, } with nfc.ContactlessFrontend('usb') as clf: clf.connect(card=card_options) ``` **Return Value** The [`connect()`](#nfc.clf.ContactlessFrontend.connect) method returns `None` if there were no options left after the ‘on-startup’ functions have been executed or when the ‘terminate’ function returned a true value. It returns `False` when terminated by any of the following exceptions: `KeyboardInterrupt`, `IOError`, [`UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError). The [`connect()`](#nfc.clf.ContactlessFrontend.connect) method returns a [`Tag`](index.html#nfc.tag.Tag), [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController), or [`TagEmulation`](index.html#nfc.tag.TagEmulation) object if the associated ‘on-connect’ function returned a false value to indicate that it will handle presence check, peer to peer symmetry loop, or command/response processing by itself. `sense`(**targets*, ***options*)[¶](#nfc.clf.ContactlessFrontend.sense) Discover a contactless card or listening device. Note The [`sense()`](#nfc.clf.ContactlessFrontend.sense) method is intended for experts with a good understanding of the commands and responses exchanged during target activation (the notion used for commands and responses follows the NFC Forum Digital Specification). If the greater level of control is not needed it is recommended to use the [`connect()`](#nfc.clf.ContactlessFrontend.connect) method. All positional arguments build the list of potential *targets* to discover and must be of type [`RemoteTarget`](#nfc.clf.RemoteTarget). Keyword argument *options* may be the number of `iterations` of the sense loop set by *targets* and the `interval` between iterations. The return value is either a [`RemoteTarget`](#nfc.clf.RemoteTarget) instance or `None`. ``` >>> import nfc, nfc.clf >>> from binascii import hexlify >>> clf = nfc.ContactlessFrontend("usb") >>> target1 = nfc.clf.RemoteTarget("106A") >>> target2 = nfc.clf.RemoteTarget("212F") >>> print(clf.sense(target1, target2, iterations=5, interval=0.2)) 106A(sdd_res=04497622D93881, sel_res=00, sens_res=4400) ``` A **Type A Target** is specified with the technology letter `A` following the bitrate to be used for the SENS_REQ command (almost always must the bitrate be 106 kbps). To discover only a specific Type A target, the NFCID1 (UID) can be set with a 4, 7, or 10 byte `sel_req` attribute (cascade tags are handled internally). ``` >>> target = nfc.clf.RemoteTarget("106A") >>> print(clf.sense(target)) 106A sdd_res=04497622D93881 sel_res=00 sens_res=4400 >>> target.sel_req = bytearray.fromhex("04497622D93881") >>> print(clf.sense(target)) 106A sdd_res=04497622D93881 sel_res=00 sens_res=4400 >>> target.sel_req = bytearray.fromhex("04497622") >>> print(clf.sense(target)) None ``` A **Type B Target** is specified with the technology letter `B` following the bitrate to be used for the SENSB_REQ command (almost always must the bitrate be 106 kbps). A specific application family identifier can be set with the first byte of a `sensb_req` attribute (the second byte PARAM is ignored when it can not be set to local device, 00h is a safe value in all cases). ``` >>> target = nfc.clf.RemoteTarget("106B") >>> print(clf.sense(target)) 106B sens_res=50E5DD3DC900000011008185 >>> target.sensb_req = bytearray.fromhex("0000") >>> print(clf.sense(target)) 106B sens_res=50E5DD3DC900000011008185 >>> target.sensb_req = bytearray.fromhex("FF00") >>> print(clf.sense(target)) None ``` A **Type F Target** is specified with the technology letter `F` following the bitrate to be used for the SENSF_REQ command (the typically supported bitrates are 212 and 424 kbps). The default SENSF_REQ command allows all targets to answer, requests system code information, and selects a single time slot for the SENSF_RES response. This can be changed with the `sensf_req` attribute. ``` >>> target = nfc.clf.RemoteTarget("212F") >>> print(clf.sense(target)) 212F sensf_res=0101010601B00ADE0B03014B024F4993FF12FC >>> target.sensf_req = bytearray.fromhex("0012FC0000") >>> print(clf.sense(target)) 212F sensf_res=0101010601B00ADE0B03014B024F4993FF >>> target.sensf_req = bytearray.fromhex("00ABCD0000") >>> print(clf.sense(target)) None ``` An **Active Communication Mode P2P Target** search is selected with an `atr_req` attribute. The choice of bitrate and modulation type is 106A, 212F, and 424F. ``` >>> atr = bytearray.fromhex("D4000102030405060708091000000030") >>> target = clf.sense(nfc.clf.RemoteTarget("106A", atr_req=atr)) >>> if target and target.atr_res: >>> print(hexlify(target.atr_res).decode()) d501c023cae6b3182afe3dee0000000e3246666d01011103020013040196 >>> target = clf.sense(nfc.clf.RemoteTarget("424F", atr_req=atr)) >>> if target and target.atr_res: >>> print(hexlify(target.atr_res).decode()) d501dc0104f04584e15769700000000e3246666d01011103020013040196 ``` Some drivers must modify the ATR_REQ to cope with hardware limitations, for example change length reduction value to reduce the maximum size of target responses. The ATR_REQ that has been send is given by the `atr_req` attribute of the returned RemoteTarget object. A **Passive Communication Mode P2P Target** responds to 106A discovery with bit 6 of SEL_RES set to 1, and to 212F/424F discovery (when the request code RC is 0 in the SENSF_REQ command) with an NFCID2 that starts with 01FEh in the SENSF_RES response. Responses below are from a Nexus 5 configured for NFC-DEP Protocol (SEL_RES bit 6 is set) and Type 4A Tag (SEL_RES bit 5 is set). ``` >>> print(clf.sense(nfc.clf.RemoteTarget("106A"))) 106A sdd_res=08796BEB sel_res=60 sens_res=0400 >>> sensf_req = bytearray.fromhex("00FFFF0000") >>> print(clf.sense(nfc.clf.RemoteTarget("424F", sensf_req=sensf_req))) 424F sensf_res=0101FE1444EFB88FD50000000000000000 ``` Errors found in the *targets* argument list raise exceptions only if exactly one target is given. If multiple targets are provided, any target that is not supported or has invalid attributes is just ignored (but is logged as a debug message). **Exceptions** * `IOError` (ENODEV) when a local contacless communication device has not been opened or communication with the local device is no longer possible. * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) if the single target supplied as input is not supported by the active driver. This exception is never raised when [`sense()`](#nfc.clf.ContactlessFrontend.sense) is called with multiple targets, those unsupported are then silently ignored. `listen`(*target*, *timeout*)[¶](#nfc.clf.ContactlessFrontend.listen) Listen *timeout* seconds to become activated as *target*. Note The [`listen()`](#nfc.clf.ContactlessFrontend.listen) method is intended for experts with a good understanding of the commands and responses exchanged during target activation (the notion used for commands and responses follows the NFC Forum Digital Specification). If the greater level of control is not needed it is recommended to use the [`connect()`](#nfc.clf.ContactlessFrontend.connect) method. The *target* argument is a [`LocalTarget`](#nfc.clf.LocalTarget) object that provides bitrate, technology type and response data attributes. The return value is either a [`LocalTarget`](#nfc.clf.LocalTarget) object with bitrate, technology type and request/response data attributes or `None`. An **P2P Target** is selected when the `atr_res` attribute is set. The bitrate and technology type are decided by the Initiator and do not need to be specified. The `sens_res`, `sdd_res` and `sel_res` attributes for Type A technology as well as the `sensf_res` attribute for Type F technolgy must all be set. When activated, the bitrate and type are set to the current communication values, the `atr_req` attribute contains the ATR_REQ received from the Initiator and the `dep_req` attribute contains the first DEP_REQ received after activation. If the Initiator has changed communication parameters, the `psl_req` attribute holds the PSL_REQ that was received. The `atr_res` (and the `psl_res` if transmitted) are also made available. If the local target was activated in passive communication mode either the Type A response (`sens_res`, `sdd_res`, `sel_res`) or Type F response (`sensf_res`) attributes will be present. With a Nexus 5 on a reader connected via USB the following code should be working and produce similar output (the Nexus 5 prioritizes active communication mode): ``` >>> import nfc, nfc.clf >>> clf = nfc.ContactlessFrontend("usb") >>> atr_res = "d50101fe0102030405060708000000083246666d010110" >>> target = nfc.clf.LocalTarget() >>> target.sensf_res = bytearray.fromhex("0101FE"+16*"FF") >>> target.sens_res = bytearray.fromhex("0101") >>> target.sdd_res = bytearray.fromhex("08010203") >>> target.sel_res = bytearray.fromhex("40") >>> target.atr_res = bytearray.fromhex(atr_res) >>> print(clf.listen(target, timeout=2.5)) 424F atr_res=D50101FE0102030405060708000000083246666D010110 ... ``` A **Type A Target** is selected when `atr_res` is not present and the technology type is `A`. The bitrate should be set to 106 kbps, even if a driver supports higher bitrates they would need to be set after activation. The `sens_res`, `sdd_res` and `sel_res` attributes must all be provided. ``` >>> target = nfc.clf.Localtarget("106A") >>> target.sens_res = bytearray.fromhex("0101")) >>> target.sdd_res = bytearray.fromhex("08010203") >>> target.sel_res = bytearray.fromhex("00") >>> print(clf.listen(target, timeout=2.5)) 106A sdd_res=08010203 sel_res=00 sens_res=0101 tt2_cmd=3000 ``` A **Type B Target** is selected when `atr_res` is not present and the technology type is `B`. Unfortunately none of the supported devices supports Type B technology for listen and an [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) exception will be the only result. ``` >>> target = nfc.clf.LocalTarget("106B") >>> try: clf.listen(target, 2.5) ... except nfc.clf.UnsupportedTargetError: print("sorry") ... sorry ``` A **Type F Target** is selected when `atr_res` is not present and the technology type is `F`. The bitrate may be 212 or 424 kbps. The `sensf_res` attribute must be provided. ``` >>> idm, pmm, sys = "02FE010203040506", "FFFFFFFFFFFFFFFF", "12FC" >>> target = nfc.clf.LocalTarget("212F") >>> target.sensf_res = bytearray.fromhex("01" + idm + pmm + sys) >>> print(clf.listen(target, 2.5)) 212F sensf_req=00FFFF0003 tt3_cmd=0C02FE010203040506 ... ``` **Exceptions** * `IOError` (ENODEV) when a local contacless communication device has not been opened or communication with the local device is no longer possible. * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) if the single target supplied as input is not supported by the active driver. This exception is never raised when [`sense()`](#nfc.clf.ContactlessFrontend.sense) is called with multiple targets, those unsupported are then silently ignored. `exchange`(*send_data*, *timeout*)[¶](#nfc.clf.ContactlessFrontend.exchange) Exchange data with an activated target (*send_data* is a command frame) or as an activated target (*send_data* is a response frame). Returns a target response frame (if data is send to an activated target) or a next command frame (if data is send from an activated target). Returns None if the communication link broke during exchange (if data is sent as a target). The timeout is the number of seconds to wait for data to return, if the timeout expires an nfc.clf.TimeoutException is raised. Other nfc.clf.CommunicationError exceptions may be raised if an error is detected during communication. `max_send_data_size`[¶](#nfc.clf.ContactlessFrontend.max_send_data_size) The maximum number of octets that can be send with the [`exchange()`](#nfc.clf.ContactlessFrontend.exchange) method in the established operating mode. `max_recv_data_size`[¶](#nfc.clf.ContactlessFrontend.max_recv_data_size) The maximum number of octets that can be received with the [`exchange()`](#nfc.clf.ContactlessFrontend.exchange) method in the established operating mode. *class* `nfc.clf.``RemoteTarget`(*brty*, ***kwargs*)[¶](#nfc.clf.RemoteTarget) Bases: `nfc.clf.Target` A RemoteTarget instance provides bitrate and technology type and command/response data of a remote card or device that, when input to `sense()`, shall be attempted to discover and, when returned by `sense()`, has been discovered by the local device. Command/response data attributes, whatever name, default to None. `brty`[¶](#nfc.clf.RemoteTarget.brty) A string that combines bitrate and technology type, e.g. ‘106A’. *class* `nfc.clf.``LocalTarget`(*brty='106A'*, ***kwargs*)[¶](#nfc.clf.LocalTarget) Bases: `nfc.clf.Target` A LocalTarget instance provides bitrate and technology type and command/response data of the local card or device that, when input to `listen()`, shall be made available for discovery and, when returned by `listen()`, has been discovered by a remote device. Command/response data attributes, whatever name, default to None. `brty`[¶](#nfc.clf.LocalTarget.brty) A string that combines bitrate and technology type, e.g. ‘106A’. *exception* `nfc.clf.``Error`[¶](#nfc.clf.Error) Bases: [`Exception`](https://docs.python.org/3/library/exceptions.html#Exception) Base class for exceptions specific to the contacless frontend module. * UnsupportedTargetError * CommunicationError + ProtocolError + TransmissionError + TimeoutError + BrokenLinkError *exception* `nfc.clf.``UnsupportedTargetError`[¶](#nfc.clf.UnsupportedTargetError) Bases: [`nfc.clf.Error`](#nfc.clf.Error) The [`RemoteTarget`](#nfc.clf.RemoteTarget) input to [`ContactlessFrontend.sense()`](#nfc.clf.ContactlessFrontend.sense) or [`LocalTarget`](#nfc.clf.LocalTarget) input to [`ContactlessFrontend.listen()`](#nfc.clf.ContactlessFrontend.listen) is not supported by the local device. *exception* `nfc.clf.``CommunicationError`[¶](#nfc.clf.CommunicationError) Bases: [`nfc.clf.Error`](#nfc.clf.Error) Base class for communication errors. *exception* `nfc.clf.``ProtocolError`[¶](#nfc.clf.ProtocolError) Bases: [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) Raised when an NFC Forum Digital Specification protocol error occured. *exception* `nfc.clf.``TransmissionError`[¶](#nfc.clf.TransmissionError) Bases: [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) Raised when an NFC Forum Digital Specification transmission error occured. *exception* `nfc.clf.``TimeoutError`[¶](#nfc.clf.TimeoutError) Bases: [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) Raised when an NFC Forum Digital Specification timeout error occured. *exception* `nfc.clf.``BrokenLinkError`[¶](#nfc.clf.BrokenLinkError) Bases: [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) The remote device (Reader/Writer or P2P Device) has deactivated the RF field or is no longer within communication distance. #### [Contactless Frontend](#id1)[¶](#contactless-frontend) Note The contactless frontend defined in this module is also available as [`nfc.ContactlessFrontend`](index.html#nfc.ContactlessFrontend). *class* `nfc.clf.``ContactlessFrontend`(*path=None*) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) This class is the main interface for working with contactless devices. The [`connect()`](#nfc.clf.ContactlessFrontend.connect) method provides easy access to the contactless functionality through automated discovery of remote cards and devices and activation of appropiate upper level protocols for further interaction. The [`sense()`](#nfc.clf.ContactlessFrontend.sense), [`listen()`](#nfc.clf.ContactlessFrontend.listen) and [`exchange()`](#nfc.clf.ContactlessFrontend.exchange) methods provide a low-level interface for more specialized tasks. An instance of the [`ContactlessFrontend`](#nfc.clf.ContactlessFrontend) class manages a single contactless device locally connect through either USB, TTY or COM port. A special UDP port driver allows for emulation of a contactless device that connects through UDP to another emulated contactless device for test and development of higher layer functions. A locally connected contactless device can be opened by either supplying a *path* argument when an an instance of the contactless frontend class is created or by calling [`open()`](#nfc.clf.ContactlessFrontend.open) at a later time. In either case the *path* argument must be constructed as described in [`open()`](#nfc.clf.ContactlessFrontend.open) and the same exceptions may occur. The difference is that [`open()`](#nfc.clf.ContactlessFrontend.open) returns False if a device could not be found whereas the initialization method raises `IOError` with [`errno.ENODEV`](https://docs.python.org/3/library/errno.html#errno.ENODEV). The methods of the [`ContactlessFrontend`](#nfc.clf.ContactlessFrontend) class are thread-safe. `open`(*path*) Open a contactless reader identified by the search *path*. The [`open()`](#nfc.clf.ContactlessFrontend.open) method searches and then opens a contactless reader device for further communication. The *path* argument can be flexibly constructed to identify more or less precisely the device to open. A *path* that only partially identifies a device is completed by search. The first device that is found and successfully opened causes [`open()`](#nfc.clf.ContactlessFrontend.open) to return True. If no device is found return value is False. If a device was found but could not be opened then [`open()`](#nfc.clf.ContactlessFrontend.open) returns False if *path* was partial or raise `IOError` if *path* was fully qualified. Typical I/O error reasons are [`errno.EACCES`](https://docs.python.org/3/library/errno.html#errno.EACCES) if the calling process has insufficient access rights or [`errno.EBUSY`](https://docs.python.org/3/library/errno.html#errno.EBUSY) if the device is used by another process. A path is constructed as follows: `usb[:vendor[:product]]` > with optional *vendor* and *product* as four digit > hexadecimal numbers. For example, `usb:054c:06c3` would > open the first Sony RC-S380 reader while `usb:054c` would > open the first Sony reader found on USB. `usb[:bus[:device]]` > with optional *bus* and *device* number as three-digit > decimals. For example, `usb:001:023` would open the > device enumerated as number 23 on bus 1 while `usb:001` > would open the first device found on bust 1. Note that a > new device number is generated every time the device is > plugged into USB. Bus and device numbers are shown by > `lsusb`. `tty:port:driver` > with mandatory *port* and *driver* name. This is for Posix > systems to open the serial port `/dev/tty<port>` and use > the driver module `nfc/dev/<driver>.py` for access. For > example, `tty:USB0:arygon` would open `/dev/ttyUSB0` > and load the Arygon APPx/ADRx driver. `com:port:driver` > with mandatory *port* and *driver* name. This is for > Windows systems to open the serial port `COM<port>` and > use the driver module `nfc/dev/<driver>.py` for access. `udp[:host][:port]` > with optional *host* name or address and *port* > number. This will emulate a communication channel over > UDP/IP. The defaults for *host* and *port* are > `localhost:54321`. `close`() Close the contacless reader device. `connect`(***options*) Connect with a Target or Initiator The calling thread is blocked until a single activation and deactivation has completed or a callback function supplied as the keyword argument `terminate` returns a true value. The example below makes [`connect()`](#nfc.clf.ContactlessFrontend.connect) return after 5 seconds, regardless of whether a peer device was connected or not. ``` >>> import nfc, time >>> clf = nfc.ContactlessFrontend('usb') >>> after5s = lambda: time.time() - started > 5 >>> started = time.time(); clf.connect(llcp={}, terminate=after5s) ``` Connect options are given as keyword arguments with dictionary values. Possible options are: * `rdwr={key: value, ...}` - options for reader/writer * `llcp={key: value, ...}` - options for peer to peer * `card={key: value, ...}` - options for card emulation **Reader/Writer Options** ‘targets’ : iterable A list of bitrate and technology type strings that will produce the [`RemoteTarget`](#nfc.clf.RemoteTarget) objects to discover. The default is `('106A', '106B', '212F')`. ‘on-startup’ : function(targets) This function is called before any attempt to discover a remote card. The *targets* argument provides a list of [`RemoteTarget`](#nfc.clf.RemoteTarget) objects prepared from the ‘targets’ bitrate and technology type strings. The function must return a list of of those [`RemoteTarget`](#nfc.clf.RemoteTarget) objects that shall be finally used for discovery, those targets may have additional attributes. An empty list or anything else that evaluates false will remove the ‘rdwr’ option completely. ‘on-discover’ : function(target) This function is called when a [`RemoteTarget`](#nfc.clf.RemoteTarget) has been discovered. The *target* argument contains the technology type specific discovery responses and should be evaluated for multi-protocol support. The target will be further activated only if this function returns a true value. The default function depends on the ‘llcp’ option, if present then the function returns True only if the target does not indicate peer to peer protocol support, otherwise it returns True for all targets. ‘on-connect’ : function(tag) This function is called when a remote tag has been activated. The *tag* argument is an instance of class [`nfc.tag.Tag`](index.html#nfc.tag.Tag) and can be used for tag reading and writing within the callback or in a separate thread. Any true return value instructs [`connect()`](#nfc.clf.ContactlessFrontend.connect) to wait until the tag is no longer present and then return True, any false return value implies immediate return of the [`nfc.tag.Tag`](index.html#nfc.tag.Tag) object. ‘on-release’ : function(tag) This function is called when the presence check was run (the ‘on-connect’ function returned a true value) and determined that communication with the *tag* has become impossible, or when the ‘terminate’ function returned a true value. The *tag* object may be used for cleanup actions but not for communication. ‘iterations’ : integer This determines the number of sense cycles performed between calls to the terminate function. Each iteration searches once for all specified targets. The default value is 5 iterations and between each iteration is a waiting time determined by the ‘interval’ option described below. As an effect of math there will be no waiting time if iterations is set to 1. ‘interval’ : float This determines the waiting time between iterations. The default value of 0.5 seconds is considered a sensible tradeoff between responsiveness in terms of tag discovery and power consumption. It should be clear that changing this value will impair one or the other. There is no free beer. ‘beep-on-connect’: boolean If the device supports beeping or flashing an LED, automatically perform this functionality when a tag is successfully detected AND the ‘on-connect’ function returns a true value. Defaults to True. ``` import nfc def on_startup(targets): for target in targets: target.sensf_req = bytearray.fromhex("0012FC0000") return targets def on_connect(tag): print(tag) rdwr_options = { 'targets': ['212F', '424F'], 'on-startup': on_startup, 'on-connect': on_connect, } with nfc.ContactlessFrontend('usb') as clf: tag = clf.connect(rdwr=rdwr_options) if tag.ndef: print(tag.ndef.message.pretty()) ``` **Peer To Peer Options** ‘on-startup’ : function(llc) This function is called before any attempt to establish peer to peer communication. The *llc* argument provides the [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController) that may be used to allocate and bind listen sockets for local services. The function should return the *llc* object if activation shall continue. Any other value removes the ‘llcp’ option. ‘on-connect’ : function(llc) This function is called when peer to peer communication is successfully established. The *llc* argument provides the now activated [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController) ready for allocation of client communication sockets and data exchange in separate work threads. The function should a true value return more or less immediately, unless it wishes to handle the logical link controller run loop by itself and anytime later return a false value. ‘on-release’ : function(llc) This function is called when the symmetry loop was run (the ‘on-connect’ function returned a true value) and determined that communication with the remote peer has become impossible, or when the ‘terminate’ function returned a true value. The *llc* object may be used for cleanup actions but not for communication. ‘role’ : string This attribute determines whether the local device will restrict itself to either `'initiator'` or `'target'` mode of operation. As Initiator the local device will try to discover a remote device. As Target it waits for being discovered. The default is to alternate between both roles. ‘miu’ : integer This attribute sets the maximum information unit size that is announced to the remote device during link activation. The default and also smallest possible value is 128 bytes. ‘lto’ : integer This attribute sets the link timeout value (given in milliseconds) that is announced to the remote device during link activation. It informs the remote device that if the local device does not return a protocol data unit before the timeout expires, the communication link is broken and can not be recovered. The *lto* is an important part of the user experience, it ultimately tells when the user should no longer expect communication to continue. The default value is 500 millisecond. ‘agf’ : boolean Some early phone implementations did not properly handle aggregated protocol data units. This attribute allows to disable the use af aggregation at the cost of efficiency. Aggregation is disabled with a false value. The default is to use aggregation. ‘brs’ : integer For the local device in Initiator role the bit rate selector determines the the bitrate to negotiate with the remote Target. The value may be 0, 1, or 2 for 106, 212, or 424 kbps, respectively. The default is to negotiate 424 kbps. ‘acm’ : boolean For the local device in Initiator role this attribute determines whether a remote Target may also be activated in active communication mode. In active communication mode both peer devices mutually generate a radio field when sending. The default is to use passive communication mode. ‘rwt’ : float For the local device in Target role this attribute sets the response waiting time announced during link activation. The response waiting time is a medium access layer (NFC-DEP) value that indicates when the remote Initiator shall attempt error recovery after missing a Target response. The value is the waiting time index *wt* that determines the effective response waiting time by the formula `rwt = 4096/13.56E6 * pow(2, wt)`. The value shall not be greater than 14. The default value is 8 and yields an effective response waiting time of 77.33 ms. ‘lri’ : integer For the local device in Initiator role this attribute sets the length reduction for medium access layer (NFC-DEP) information frames. The value may be 0, 1, 2, or 3 for a maximum payload size of 64, 128, 192, or 254 bytes, respectively. The default value is 3. ‘lrt’ : integer For the local device in Target role this attribute sets the length reduction for medium access layer (NFC-DEP) information frames. The value may be 0, 1, 2, or 3 for a maximum payload size of 64, 128, 192, or 254 bytes, respectively. The default value is 3. ``` import nfc import nfc.llcp import threading def server(socket): message, address = socket.recvfrom() socket.sendto("It's me!", address) socket.close() def client(socket): socket.sendto("Hi there!", address=32) socket.close() def on_startup(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.LOGICAL_DATA_LINK) socket.bind(address=32) threading.Thread(target=server, args=(socket,)).start() return llc def on_connect(llc): socket = nfc.llcp.Socket(llc, nfc.llcp.LOGICAL_DATA_LINK) threading.Thread(target=client, args=(socket,)).start() return True llcp_options = { 'on-startup': on_startup, 'on-connect': on_connect, } with nfc.ContactlessFrontend('usb') as clf: clf.connect(llcp=llcp_options) print("link terminated") ``` **Card Emulation Options** ‘on-startup’ : function(target) This function is called to prepare a local target for discovery. The input argument is a fresh instance of an unspecific [`LocalTarget`](#nfc.clf.LocalTarget) that can be set to the desired bitrate and modulation type and populated with the type specific discovery responses (see [`listen()`](#nfc.clf.ContactlessFrontend.listen) for response data that is needed). The fully specified target object must then be returned. ‘on-discover’ : function(target) This function is called when the [`LocalTarget`](#nfc.clf.LocalTarget) has been discovered. The *target* argument contains the technology type specific discovery commands. The target will be further activated only if this function returns a true value. The default function always returns True. ‘on-connect’ : function(tag) This function is called when the local target was discovered and a [`nfc.tag.TagEmulation`](index.html#nfc.tag.TagEmulation) object successfully initialized. The function receives the emulated *tag* object which stores the first command received after inialization as `tag.cmd`. The function should return a true value if the tag.process_command() and tag.send_response() methods shall be called repeatedly until either the remote device terminates communication or the ‘terminate’ function returns a true value. The function should return a false value if the [`connect()`](#nfc.clf.ContactlessFrontend.connect) method shall return immediately with the emulated *tag* object. ‘on-release’ : function(tag) This function is called when the Target was released by the Initiator or simply moved away, or if the terminate callback function has returned a true value. The emulated *tag* object may be used for cleanup actions but not for communication. ``` import nfc def on_startup(target): idm = bytearray.fromhex("01010501b00ac30b") pmm = bytearray.fromhex("03014b024f4993ff") sys = bytearray.fromhex("1234") target.brty = "212F" target.sensf_res = chr(1) + idm + pmm + sys return target def on_connect(tag): print("discovered by remote reader") return True def on_release(tag): print("remote reader is gone") return True card_options = { 'on-startup': on_startup, 'on-connect': on_connect, 'on-release': on_release, } with nfc.ContactlessFrontend('usb') as clf: clf.connect(card=card_options) ``` **Return Value** The [`connect()`](#nfc.clf.ContactlessFrontend.connect) method returns `None` if there were no options left after the ‘on-startup’ functions have been executed or when the ‘terminate’ function returned a true value. It returns `False` when terminated by any of the following exceptions: `KeyboardInterrupt`, `IOError`, [`UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError). The [`connect()`](#nfc.clf.ContactlessFrontend.connect) method returns a [`Tag`](index.html#nfc.tag.Tag), [`LogicalLinkController`](index.html#nfc.llcp.llc.LogicalLinkController), or [`TagEmulation`](index.html#nfc.tag.TagEmulation) object if the associated ‘on-connect’ function returned a false value to indicate that it will handle presence check, peer to peer symmetry loop, or command/response processing by itself. `sense`(**targets*, ***options*) Discover a contactless card or listening device. Note The [`sense()`](#nfc.clf.ContactlessFrontend.sense) method is intended for experts with a good understanding of the commands and responses exchanged during target activation (the notion used for commands and responses follows the NFC Forum Digital Specification). If the greater level of control is not needed it is recommended to use the [`connect()`](#nfc.clf.ContactlessFrontend.connect) method. All positional arguments build the list of potential *targets* to discover and must be of type [`RemoteTarget`](#nfc.clf.RemoteTarget). Keyword argument *options* may be the number of `iterations` of the sense loop set by *targets* and the `interval` between iterations. The return value is either a [`RemoteTarget`](#nfc.clf.RemoteTarget) instance or `None`. ``` >>> import nfc, nfc.clf >>> from binascii import hexlify >>> clf = nfc.ContactlessFrontend("usb") >>> target1 = nfc.clf.RemoteTarget("106A") >>> target2 = nfc.clf.RemoteTarget("212F") >>> print(clf.sense(target1, target2, iterations=5, interval=0.2)) 106A(sdd_res=04497622D93881, sel_res=00, sens_res=4400) ``` A **Type A Target** is specified with the technology letter `A` following the bitrate to be used for the SENS_REQ command (almost always must the bitrate be 106 kbps). To discover only a specific Type A target, the NFCID1 (UID) can be set with a 4, 7, or 10 byte `sel_req` attribute (cascade tags are handled internally). ``` >>> target = nfc.clf.RemoteTarget("106A") >>> print(clf.sense(target)) 106A sdd_res=04497622D93881 sel_res=00 sens_res=4400 >>> target.sel_req = bytearray.fromhex("04497622D93881") >>> print(clf.sense(target)) 106A sdd_res=04497622D93881 sel_res=00 sens_res=4400 >>> target.sel_req = bytearray.fromhex("04497622") >>> print(clf.sense(target)) None ``` A **Type B Target** is specified with the technology letter `B` following the bitrate to be used for the SENSB_REQ command (almost always must the bitrate be 106 kbps). A specific application family identifier can be set with the first byte of a `sensb_req` attribute (the second byte PARAM is ignored when it can not be set to local device, 00h is a safe value in all cases). ``` >>> target = nfc.clf.RemoteTarget("106B") >>> print(clf.sense(target)) 106B sens_res=50E5DD3DC900000011008185 >>> target.sensb_req = bytearray.fromhex("0000") >>> print(clf.sense(target)) 106B sens_res=50E5DD3DC900000011008185 >>> target.sensb_req = bytearray.fromhex("FF00") >>> print(clf.sense(target)) None ``` A **Type F Target** is specified with the technology letter `F` following the bitrate to be used for the SENSF_REQ command (the typically supported bitrates are 212 and 424 kbps). The default SENSF_REQ command allows all targets to answer, requests system code information, and selects a single time slot for the SENSF_RES response. This can be changed with the `sensf_req` attribute. ``` >>> target = nfc.clf.RemoteTarget("212F") >>> print(clf.sense(target)) 212F sensf_res=0101010601B00ADE0B03014B024F4993FF12FC >>> target.sensf_req = bytearray.fromhex("0012FC0000") >>> print(clf.sense(target)) 212F sensf_res=0101010601B00ADE0B03014B024F4993FF >>> target.sensf_req = bytearray.fromhex("00ABCD0000") >>> print(clf.sense(target)) None ``` An **Active Communication Mode P2P Target** search is selected with an `atr_req` attribute. The choice of bitrate and modulation type is 106A, 212F, and 424F. ``` >>> atr = bytearray.fromhex("D4000102030405060708091000000030") >>> target = clf.sense(nfc.clf.RemoteTarget("106A", atr_req=atr)) >>> if target and target.atr_res: >>> print(hexlify(target.atr_res).decode()) d501c023cae6b3182afe3dee0000000e3246666d01011103020013040196 >>> target = clf.sense(nfc.clf.RemoteTarget("424F", atr_req=atr)) >>> if target and target.atr_res: >>> print(hexlify(target.atr_res).decode()) d501dc0104f04584e15769700000000e3246666d01011103020013040196 ``` Some drivers must modify the ATR_REQ to cope with hardware limitations, for example change length reduction value to reduce the maximum size of target responses. The ATR_REQ that has been send is given by the `atr_req` attribute of the returned RemoteTarget object. A **Passive Communication Mode P2P Target** responds to 106A discovery with bit 6 of SEL_RES set to 1, and to 212F/424F discovery (when the request code RC is 0 in the SENSF_REQ command) with an NFCID2 that starts with 01FEh in the SENSF_RES response. Responses below are from a Nexus 5 configured for NFC-DEP Protocol (SEL_RES bit 6 is set) and Type 4A Tag (SEL_RES bit 5 is set). ``` >>> print(clf.sense(nfc.clf.RemoteTarget("106A"))) 106A sdd_res=08796BEB sel_res=60 sens_res=0400 >>> sensf_req = bytearray.fromhex("00FFFF0000") >>> print(clf.sense(nfc.clf.RemoteTarget("424F", sensf_req=sensf_req))) 424F sensf_res=0101FE1444EFB88FD50000000000000000 ``` Errors found in the *targets* argument list raise exceptions only if exactly one target is given. If multiple targets are provided, any target that is not supported or has invalid attributes is just ignored (but is logged as a debug message). **Exceptions** * `IOError` (ENODEV) when a local contacless communication device has not been opened or communication with the local device is no longer possible. * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) if the single target supplied as input is not supported by the active driver. This exception is never raised when [`sense()`](#nfc.clf.ContactlessFrontend.sense) is called with multiple targets, those unsupported are then silently ignored. `listen`(*target*, *timeout*) Listen *timeout* seconds to become activated as *target*. Note The [`listen()`](#nfc.clf.ContactlessFrontend.listen) method is intended for experts with a good understanding of the commands and responses exchanged during target activation (the notion used for commands and responses follows the NFC Forum Digital Specification). If the greater level of control is not needed it is recommended to use the [`connect()`](#nfc.clf.ContactlessFrontend.connect) method. The *target* argument is a [`LocalTarget`](#nfc.clf.LocalTarget) object that provides bitrate, technology type and response data attributes. The return value is either a [`LocalTarget`](#nfc.clf.LocalTarget) object with bitrate, technology type and request/response data attributes or `None`. An **P2P Target** is selected when the `atr_res` attribute is set. The bitrate and technology type are decided by the Initiator and do not need to be specified. The `sens_res`, `sdd_res` and `sel_res` attributes for Type A technology as well as the `sensf_res` attribute for Type F technolgy must all be set. When activated, the bitrate and type are set to the current communication values, the `atr_req` attribute contains the ATR_REQ received from the Initiator and the `dep_req` attribute contains the first DEP_REQ received after activation. If the Initiator has changed communication parameters, the `psl_req` attribute holds the PSL_REQ that was received. The `atr_res` (and the `psl_res` if transmitted) are also made available. If the local target was activated in passive communication mode either the Type A response (`sens_res`, `sdd_res`, `sel_res`) or Type F response (`sensf_res`) attributes will be present. With a Nexus 5 on a reader connected via USB the following code should be working and produce similar output (the Nexus 5 prioritizes active communication mode): ``` >>> import nfc, nfc.clf >>> clf = nfc.ContactlessFrontend("usb") >>> atr_res = "d50101fe0102030405060708000000083246666d010110" >>> target = nfc.clf.LocalTarget() >>> target.sensf_res = bytearray.fromhex("0101FE"+16*"FF") >>> target.sens_res = bytearray.fromhex("0101") >>> target.sdd_res = bytearray.fromhex("08010203") >>> target.sel_res = bytearray.fromhex("40") >>> target.atr_res = bytearray.fromhex(atr_res) >>> print(clf.listen(target, timeout=2.5)) 424F atr_res=D50101FE0102030405060708000000083246666D010110 ... ``` A **Type A Target** is selected when `atr_res` is not present and the technology type is `A`. The bitrate should be set to 106 kbps, even if a driver supports higher bitrates they would need to be set after activation. The `sens_res`, `sdd_res` and `sel_res` attributes must all be provided. ``` >>> target = nfc.clf.Localtarget("106A") >>> target.sens_res = bytearray.fromhex("0101")) >>> target.sdd_res = bytearray.fromhex("08010203") >>> target.sel_res = bytearray.fromhex("00") >>> print(clf.listen(target, timeout=2.5)) 106A sdd_res=08010203 sel_res=00 sens_res=0101 tt2_cmd=3000 ``` A **Type B Target** is selected when `atr_res` is not present and the technology type is `B`. Unfortunately none of the supported devices supports Type B technology for listen and an [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) exception will be the only result. ``` >>> target = nfc.clf.LocalTarget("106B") >>> try: clf.listen(target, 2.5) ... except nfc.clf.UnsupportedTargetError: print("sorry") ... sorry ``` A **Type F Target** is selected when `atr_res` is not present and the technology type is `F`. The bitrate may be 212 or 424 kbps. The `sensf_res` attribute must be provided. ``` >>> idm, pmm, sys = "02FE010203040506", "FFFFFFFFFFFFFFFF", "12FC" >>> target = nfc.clf.LocalTarget("212F") >>> target.sensf_res = bytearray.fromhex("01" + idm + pmm + sys) >>> print(clf.listen(target, 2.5)) 212F sensf_req=00FFFF0003 tt3_cmd=0C02FE010203040506 ... ``` **Exceptions** * `IOError` (ENODEV) when a local contacless communication device has not been opened or communication with the local device is no longer possible. * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) if the single target supplied as input is not supported by the active driver. This exception is never raised when [`sense()`](#nfc.clf.ContactlessFrontend.sense) is called with multiple targets, those unsupported are then silently ignored. `exchange`(*send_data*, *timeout*) Exchange data with an activated target (*send_data* is a command frame) or as an activated target (*send_data* is a response frame). Returns a target response frame (if data is send to an activated target) or a next command frame (if data is send from an activated target). Returns None if the communication link broke during exchange (if data is sent as a target). The timeout is the number of seconds to wait for data to return, if the timeout expires an nfc.clf.TimeoutException is raised. Other nfc.clf.CommunicationError exceptions may be raised if an error is detected during communication. `max_send_data_size` The maximum number of octets that can be send with the [`exchange()`](#nfc.clf.ContactlessFrontend.exchange) method in the established operating mode. `max_recv_data_size` The maximum number of octets that can be received with the [`exchange()`](#nfc.clf.ContactlessFrontend.exchange) method in the established operating mode. #### [Technology Types](#id2)[¶](#technology-types) *class* `nfc.clf.``RemoteTarget`(*brty*, ***kwargs*) Bases: `nfc.clf.Target` A RemoteTarget instance provides bitrate and technology type and command/response data of a remote card or device that, when input to `sense()`, shall be attempted to discover and, when returned by `sense()`, has been discovered by the local device. Command/response data attributes, whatever name, default to None. `brty` A string that combines bitrate and technology type, e.g. ‘106A’. *class* `nfc.clf.``LocalTarget`(*brty='106A'*, ***kwargs*) Bases: `nfc.clf.Target` A LocalTarget instance provides bitrate and technology type and command/response data of the local card or device that, when input to `listen()`, shall be made available for discovery and, when returned by `listen()`, has been discovered by a remote device. Command/response data attributes, whatever name, default to None. `brty` A string that combines bitrate and technology type, e.g. ‘106A’. #### [Exceptions](#id3)[¶](#exceptions) *exception* `nfc.clf.``Error` Bases: [`Exception`](https://docs.python.org/3/library/exceptions.html#Exception) Base class for exceptions specific to the contacless frontend module. * UnsupportedTargetError * CommunicationError + ProtocolError + TransmissionError + TimeoutError + BrokenLinkError *exception* `nfc.clf.``UnsupportedTargetError` Bases: [`nfc.clf.Error`](#nfc.clf.Error) The [`RemoteTarget`](#nfc.clf.RemoteTarget) input to [`ContactlessFrontend.sense()`](#nfc.clf.ContactlessFrontend.sense) or [`LocalTarget`](#nfc.clf.LocalTarget) input to [`ContactlessFrontend.listen()`](#nfc.clf.ContactlessFrontend.listen) is not supported by the local device. *exception* `nfc.clf.``CommunicationError` Bases: [`nfc.clf.Error`](#nfc.clf.Error) Base class for communication errors. *exception* `nfc.clf.``ProtocolError` Bases: [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) Raised when an NFC Forum Digital Specification protocol error occured. *exception* `nfc.clf.``TransmissionError` Bases: [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) Raised when an NFC Forum Digital Specification transmission error occured. *exception* `nfc.clf.``TimeoutError` Bases: [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) Raised when an NFC Forum Digital Specification timeout error occured. *exception* `nfc.clf.``BrokenLinkError` Bases: [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) The remote device (Reader/Writer or P2P Device) has deactivated the RF field or is no longer within communication distance. #### [Driver Interface](#id4)[¶](#module-nfc.clf.device) All contactless drivers must implement the interface defined in [`Device`](#nfc.clf.device.Device). Unsupported target discovery or target emulation methods raise [`UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError). The interface is used internally by [`ContactlessFrontend`](#nfc.clf.ContactlessFrontend) and is not intended as an application programming interface. Device driver methods are not thread-safe and do not necessarily check input arguments when they are supposed to be valid. The interface may change without notice at any time. `nfc.clf.device.``connect`(*path*)[¶](#nfc.clf.device.connect) Connect to a local device identified by *path* and load the appropriate device driver. The *path* argument is documented at [`nfc.clf.ContactlessFrontend.open()`](#nfc.clf.ContactlessFrontend.open). The return value is either a [`Device`](#nfc.clf.device.Device) instance or `None`. Note that not all drivers can be autodetected, specifically for serial devices *path* must usually also specify the driver. *class* `nfc.clf.device.``Device`(**args*, ***kwargs*)[¶](#nfc.clf.device.Device) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) All device drivers inherit from the [`Device`](#nfc.clf.device.Device) class and must implement it’s methods. `vendor_name`[¶](#nfc.clf.device.Device.vendor_name) The device vendor name. An empty string if the vendor name could not be determined. `product_name`[¶](#nfc.clf.device.Device.product_name) The device product name. An empty string if the product name could not be determined. `chipset_name`[¶](#nfc.clf.device.Device.chipset_name) The name of the chipset embedded in the device. `mute`()[¶](#nfc.clf.device.Device.mute) Mutes all existing communication, most notably the device will no longer generate a 13.56 MHz carrier signal when operating as Initiator. `sense_tta`(*target*)[¶](#nfc.clf.device.Device.sense_tta) Discover a Type A Target. Activates the 13.56 MHz carrier signal and sends a SENS_REQ command at the bitrate set by **target.brty**. If a response is received, sends an RID_CMD for a Type 1 Tag or SDD_REQ and SEL_REQ for a Type 2/4 Tag and returns the responses. | Parameters: | **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – Supplies bitrate and optional command data for the target discovery. The only sensible command to set is **sel_req** populated with a UID to find only that specific target. | | Returns: | Response data received from a remote target if found. This includes at least **sens_res** and either **rid_res** (for a Type 1 Tag) or **sdd_res** and **sel_res** (for a Type 2/4 Tag). | | Return type: | [nfc.clf.RemoteTarget](index.html#nfc.clf.RemoteTarget) | | Raises: | [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). | `sense_ttb`(*target*)[¶](#nfc.clf.device.Device.sense_ttb) Discover a Type B Target. Activates the 13.56 MHz carrier signal and sends a SENSB_REQ command at the bitrate set by **target.brty**. If a SENSB_RES is received, returns a target object with the **sensb_res** attribute. Note that the firmware of some devices (least all those based on PN53x) automatically sends an ATTRIB command with varying but always unfortunate communication settings. The drivers correct that situation by sending S(DESELECT) and WUPB before return. | Parameters: | **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – Supplies bitrate and the optional **sensb_req** for target discovery. Most drivers do no not allow a fully customized SENSB_REQ, the only parameter that can always be changed is the AFI byte, others may be ignored. | | Returns: | Response data received from a remote target if found. The only response data attribute is **sensb_res**. | | Return type: | [nfc.clf.RemoteTarget](index.html#nfc.clf.RemoteTarget) | | Raises: | [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). | `sense_ttf`(*target*)[¶](#nfc.clf.device.Device.sense_ttf) Discover a Type F Target. Activates the 13.56 MHz carrier signal and sends a SENSF_REQ command at the bitrate set by **target.brty**. If a SENSF_RES is received, returns a target object with the **sensf_res** attribute. | Parameters: | **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – Supplies bitrate and the optional **sensf_req** for target discovery. The default SENSF_REQ invites all targets to respond and requests the system code information bytes. | | Returns: | Response data received from a remote target if found. The only response data attribute is **sensf_res**. | | Return type: | [nfc.clf.RemoteTarget](index.html#nfc.clf.RemoteTarget) | | Raises: | [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). | `sense_dep`(*target*)[¶](#nfc.clf.device.Device.sense_dep) Discover a NFC-DEP Target in active communication mode. Activates the 13.56 MHz carrier signal and sends an ATR_REQ command at the bitrate set by **target.brty**. If an ATR_RES is received, returns a target object with the **atr_res** attribute. Note that some drivers (like pn531) may modify the transport data bytes length reduction value in ATR_REQ and ATR_RES due to hardware limitations. | Parameters: | **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – Supplies bitrate and the mandatory **atr_req** for target discovery. The bitrate may be one of ‘106A’, ‘212F’, or ‘424F’. | | Returns: | Response data received from a remote target if found. The only response data attribute is **atr_res**. The actually sent and potentially modified ATR_REQ is also included as **atr_req** attribute. | | Return type: | [nfc.clf.RemoteTarget](index.html#nfc.clf.RemoteTarget) | | Raises: | [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). | `listen_tta`(*target*, *timeout*)[¶](#nfc.clf.device.Device.listen_tta) Listen as Type A Target. Waits to receive a SENS_REQ command at the bitrate set by **target.brty** and sends the **target.sens_res** response. Depending on the SENS_RES bytes, the Initiator then sends an RID_CMD (SENS_RES coded for a Type 1 Tag) or SDD_REQ and SEL_REQ (SENS_RES coded for a Type 2/4 Tag). Responses are then generated from the **rid_res** or **sdd_res** and **sel_res** attributes in *target*. Note that none of the currently supported hardware can actually receive an RID_CMD, thus Type 1 Tag emulation is impossible. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies bitrate and mandatory response data to reply when being discovered. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as one of the **tt1_cmd**, **tt2_cmd** or **tt4_cmd** attribute (note that unset attributes are always None). | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `listen_ttb`(*target*, *timeout*)[¶](#nfc.clf.device.Device.listen_ttb) Listen as Type A Target. Waits to receive a SENSB_REQ command at the bitrate set by **target.brty** and sends the **target.sensb_res** response. Note that none of the currently supported hardware can actually listen as Type B target. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies bitrate and mandatory response data to reply when being discovered. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as **tt4_cmd** attribute. | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `listen_ttf`(*target*, *timeout*)[¶](#nfc.clf.device.Device.listen_ttf) Listen as Type A Target. Waits to receive a SENSF_REQ command at the bitrate set by **target.brty** and sends the **target.sensf_res** response. Then waits for a first command that is not a SENSF_REQ and returns this as the **tt3_cmd** attribute. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies bitrate and mandatory response data to reply when being discovered. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as **tt3_cmd** attribute. | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `listen_dep`(*target*, *timeout*)[¶](#nfc.clf.device.Device.listen_dep) Listen as NFC-DEP Target. Waits to receive an ATR_REQ (if the local device supports active communication mode) or a Type A or F Target activation followed by an ATR_REQ in passive communication mode. The ATR_REQ is replied with **target.atr_res**. The first DEP_REQ command is returned as the **dep_req** attribute along with **atr_req** and **atr_res**. The **psl_req** and **psl_res** attributes are returned when the has Initiator performed a parameter selection. The **sens_res** or **sensf_res** attributes are returned when activation was in passive communication mode. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies mandatory response data to reply when being discovered. All of **sens_res**, **sdd_res**, **sel_res**, **sensf_res**, and **atr_res** must be provided. The bitrate does not need to be set, an NFC-DEP Target always accepts discovery at ‘106A’, ‘212F and ‘424F’. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as **dep_req** attribute. | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported by the local hardware. * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `send_cmd_recv_rsp`(*target*, *data*, *timeout*)[¶](#nfc.clf.device.Device.send_cmd_recv_rsp) Exchange data with a remote Target Sends command *data* to the remote *target* discovered in the most recent call to one of the sense_xxx() methods. Note that *target* becomes invalid with any call to mute(), sense_xxx() or listen_xxx() | Parameters: | * **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – The target returned by the last successful call of a sense_xxx() method. * **data** ([*bytearray*](https://docs.python.org/3/library/stdtypes.html#bytearray)) – The binary data to send to the remote device. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for response data from the remote device. | | Returns: | Response data received from the remote device. | | Return type: | [bytearray](https://docs.python.org/3/library/stdtypes.html#bytearray) | | Raises: | [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) – When no data was received. | `send_rsp_recv_cmd`(*target*, *data*, *timeout=None*)[¶](#nfc.clf.device.Device.send_rsp_recv_cmd) Exchange data with a remote Initiator Sends response *data* as the local *target* being discovered in the most recent call to one of the listen_xxx() methods. Note that *target* becomes invalid with any call to mute(), sense_xxx() or listen_xxx() | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – The target returned by the last successful call of a listen_xxx() method. * **data** ([*bytearray*](https://docs.python.org/3/library/stdtypes.html#bytearray)) – The binary data to send to the remote device. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for command data from the remote device. | | Returns: | Command data received from the remote device. | | Return type: | [bytearray](https://docs.python.org/3/library/stdtypes.html#bytearray) | | Raises: | [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) – When no data was received. | `get_max_send_data_size`(*target*)[¶](#nfc.clf.device.Device.get_max_send_data_size) Returns the maximum number of data bytes for sending. The maximum number of data bytes acceptable for sending with either [`send_cmd_recv_rsp()`](#nfc.clf.device.Device.send_cmd_recv_rsp) or [`send_rsp_recv_cmd()`](#nfc.clf.device.Device.send_rsp_recv_cmd). The value reflects the local device capabilities for sending in the mode determined by *target*. It does not relate to any protocol capabilities and negotiations. | Parameters: | **target** (*nfc.clf.Target*) – The current local or remote communication target. | | Returns: | Maximum number of data bytes supported for sending. | | Return type: | [int](https://docs.python.org/3/library/functions.html#int) | `get_max_recv_data_size`(*target*)[¶](#nfc.clf.device.Device.get_max_recv_data_size) Returns the maximum number of data bytes for receiving. The maximum number of data bytes acceptable for receiving with either [`send_cmd_recv_rsp()`](#nfc.clf.device.Device.send_cmd_recv_rsp) or [`send_rsp_recv_cmd()`](#nfc.clf.device.Device.send_rsp_recv_cmd). The value reflects the local device capabilities for receiving in the mode determined by *target*. It does not relate to any protocol capabilities and negotiations. | Parameters: | **target** (*nfc.clf.Target*) – The current local or remote communication target. | | Returns: | Maximum number of data bytes supported for receiving. | | Return type: | [int](https://docs.python.org/3/library/functions.html#int) | `turn_on_led_and_buzzer`()[¶](#nfc.clf.device.Device.turn_on_led_and_buzzer) If a device has an LED and/or a buzzer, this method can be implemented to turn those indicators to the ON state. `turn_off_led_and_buzzer`()[¶](#nfc.clf.device.Device.turn_off_led_and_buzzer) If a device has an LED and/or a buzzer, this method can be implemented to turn those indicators to the OFF state. #### [Device Drivers](#id5)[¶](#device-drivers) ##### [rcs380](#id6)[¶](#module-nfc.clf.rcs380) Driver module for contactless devices based on the Sony NFC Port-100 chipset. The only product known to use this chipset is the PaSoRi RC-S380. The RC-S380 connects to the host as a native USB device. The RC-S380 has been the first NFC Forum certified device. It supports reading and writing of all NFC Forum tags as well as peer-to-peer mode. In addition, the NFC Port-100 also supports card emulation Type A and Type F Technology. A notable restriction is that peer-to-peer active communication mode (not required for NFC Forum certification) is not supported. | function | support | remarks | | --- | --- | --- | | sense_tta | yes | | | sense_ttb | yes | | | sense_ttf | yes | | | sense_dep | no | | | listen_tta | yes | Type F responses can not be disabled | | listen_ttb | no | | | listen_ttf | yes | | | listen_dep | yes | Only passive communication mode | *exception* `nfc.clf.rcs380.``CommunicationError`(*status_bytes*)[¶](#nfc.clf.rcs380.CommunicationError) Bases: [`Exception`](https://docs.python.org/3/library/exceptions.html#Exception) *exception* `nfc.clf.rcs380.``StatusError`(*status*)[¶](#nfc.clf.rcs380.StatusError) Bases: [`Exception`](https://docs.python.org/3/library/exceptions.html#Exception) *class* `nfc.clf.rcs380.``Device`(*chipset*, *logger*)[¶](#nfc.clf.rcs380.Device) Bases: [`nfc.clf.device.Device`](#nfc.clf.device.Device) `mute`()[¶](#nfc.clf.rcs380.Device.mute) Mutes all existing communication, most notably the device will no longer generate a 13.56 MHz carrier signal when operating as Initiator. `sense_tta`(*target*)[¶](#nfc.clf.rcs380.Device.sense_tta) Sense for a Type A Target is supported for 106, 212 and 424 kbps. However, there may not be any target that understands the activation commands in other than 106 kbps. `sense_ttb`(*target*)[¶](#nfc.clf.rcs380.Device.sense_ttb) Sense for a Type B Target is supported for 106, 212 and 424 kbps. However, there may not be any target that understands the activation command in other than 106 kbps. `sense_ttf`(*target*)[¶](#nfc.clf.rcs380.Device.sense_ttf) Sense for a Type F Target is supported for 212 and 424 kbps. `sense_dep`(*target*)[¶](#nfc.clf.rcs380.Device.sense_dep) Sense for an active DEP Target is not supported. The device only supports passive activation via sense_tta/sense_ttf. `listen_tta`(*target*, *timeout*)[¶](#nfc.clf.rcs380.Device.listen_tta) Listen as Type A Target in 106 kbps. Restrictions: * It is not possible to send short frames that are required for ACK and NAK responses. This means that a Type 2 Tag emulation can only implement a single sector memory model. * It can not be avoided that the chipset responds to SENSF_REQ commands. The driver configures the SENSF_RES response to all zero and ignores all Type F communication but eventually it depends on the remote device whether Type A Target activation will still be attempted. `listen_ttb`(*target*, *timeout*)[¶](#nfc.clf.rcs380.Device.listen_ttb) Listen as Type B Target is not supported. `listen_ttf`(*target*, *timeout*)[¶](#nfc.clf.rcs380.Device.listen_ttf) Listen as Type F Target is supported for either 212 or 424 kbps. `listen_dep`(*target*, *timeout*)[¶](#nfc.clf.rcs380.Device.listen_dep) Listen as NFC-DEP Target. Waits to receive an ATR_REQ (if the local device supports active communication mode) or a Type A or F Target activation followed by an ATR_REQ in passive communication mode. The ATR_REQ is replied with **target.atr_res**. The first DEP_REQ command is returned as the **dep_req** attribute along with **atr_req** and **atr_res**. The **psl_req** and **psl_res** attributes are returned when the has Initiator performed a parameter selection. The **sens_res** or **sensf_res** attributes are returned when activation was in passive communication mode. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies mandatory response data to reply when being discovered. All of **sens_res**, **sdd_res**, **sel_res**, **sensf_res**, and **atr_res** must be provided. The bitrate does not need to be set, an NFC-DEP Target always accepts discovery at ‘106A’, ‘212F and ‘424F’. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as **dep_req** attribute. | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported by the local hardware. * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `get_max_send_data_size`(*target*)[¶](#nfc.clf.rcs380.Device.get_max_send_data_size) Returns the maximum number of data bytes for sending. The maximum number of data bytes acceptable for sending with either [`send_cmd_recv_rsp()`](#nfc.clf.rcs380.Device.send_cmd_recv_rsp) or [`send_rsp_recv_cmd()`](#nfc.clf.rcs380.Device.send_rsp_recv_cmd). The value reflects the local device capabilities for sending in the mode determined by *target*. It does not relate to any protocol capabilities and negotiations. | Parameters: | **target** (*nfc.clf.Target*) – The current local or remote communication target. | | Returns: | Maximum number of data bytes supported for sending. | | Return type: | [int](https://docs.python.org/3/library/functions.html#int) | `get_max_recv_data_size`(*target*)[¶](#nfc.clf.rcs380.Device.get_max_recv_data_size) Returns the maximum number of data bytes for receiving. The maximum number of data bytes acceptable for receiving with either [`send_cmd_recv_rsp()`](#nfc.clf.rcs380.Device.send_cmd_recv_rsp) or [`send_rsp_recv_cmd()`](#nfc.clf.rcs380.Device.send_rsp_recv_cmd). The value reflects the local device capabilities for receiving in the mode determined by *target*. It does not relate to any protocol capabilities and negotiations. | Parameters: | **target** (*nfc.clf.Target*) – The current local or remote communication target. | | Returns: | Maximum number of data bytes supported for receiving. | | Return type: | [int](https://docs.python.org/3/library/functions.html#int) | `send_cmd_recv_rsp`(*target*, *data*, *timeout*)[¶](#nfc.clf.rcs380.Device.send_cmd_recv_rsp) Exchange data with a remote Target Sends command *data* to the remote *target* discovered in the most recent call to one of the sense_xxx() methods. Note that *target* becomes invalid with any call to mute(), sense_xxx() or listen_xxx() | Parameters: | * **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – The target returned by the last successful call of a sense_xxx() method. * **data** ([*bytearray*](https://docs.python.org/3/library/stdtypes.html#bytearray)) – The binary data to send to the remote device. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for response data from the remote device. | | Returns: | Response data received from the remote device. | | Return type: | [bytearray](https://docs.python.org/3/library/stdtypes.html#bytearray) | | Raises: | [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) – When no data was received. | `send_rsp_recv_cmd`(*target*, *data*, *timeout*)[¶](#nfc.clf.rcs380.Device.send_rsp_recv_cmd) Exchange data with a remote Initiator Sends response *data* as the local *target* being discovered in the most recent call to one of the listen_xxx() methods. Note that *target* becomes invalid with any call to mute(), sense_xxx() or listen_xxx() | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – The target returned by the last successful call of a listen_xxx() method. * **data** ([*bytearray*](https://docs.python.org/3/library/stdtypes.html#bytearray)) – The binary data to send to the remote device. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for command data from the remote device. | | Returns: | Command data received from the remote device. | | Return type: | [bytearray](https://docs.python.org/3/library/stdtypes.html#bytearray) | | Raises: | [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) – When no data was received. | ##### [pn531](#id7)[¶](#module-nfc.clf.pn531) Driver module for contactless devices based on the NXP PN531 chipset. This was once a (sort of) joint development between Philips and Sony to supply hardware capable of running the ISO/IEC 18092 Data Exchange Protocol. The chip has selectable UART, I2C, SPI, or USB host interfaces, For USB the vendor and product ID can be switched by a hardware pin to either Philips or Sony. The internal chipset architecture comprises a small 8-bit MCU and a Contactless Interface Unit CIU that is basically a PN511. The CIU implements the analog and digital part of communication (modulation and framing) while the MCU handles the protocol parts and host communication. The PN511 and hence the PN531 does not support Type B Technology and can not handle the specific Jewel/Topaz (Type 1 Tag) communication. Compared to PN532/PN533 the host frame structure does not allow maximum size ISO/IEC 18092 packets to be transferred. The driver handles this restriction by modifying the initialization commands (ATR, PSL) when needed. | function | support | remarks | | --- | --- | --- | | sense_tta | yes | Type 1 Tag is not supported | | sense_ttb | no | | | sense_ttf | yes | | | sense_dep | yes | Reduced transport data byte length (max 192) | | listen_tta | yes | | | listen_ttb | no | | | listen_ttf | yes | Maximimum frame size is 64 byte | | listen_dep | yes | | *class* `nfc.clf.pn531.``Device`(*chipset*, *logger*)[¶](#nfc.clf.pn531.Device) Bases: `nfc.clf.pn53x.Device` `sense_tta`(*target*)[¶](#nfc.clf.pn531.Device.sense_tta) Activate the RF field and probe for a Type A Target. The PN531 can discover some Type A Targets (Type 2 Tag and Type 4A Tag) at 106 kbps. Type 1 Tags (Jewel/Topaz) are completely unsupported. Because the firmware does not evaluate the SENS_RES before sending SDD_REQ, it may be that a warning message about missing Type 1 Tag support is logged even if a Type 2 or 4A Tag was present. This typically happens when the SDD_RES or SEL_RES are lost due to communication errors (normally when the tag is moved away). `sense_ttb`(*target*)[¶](#nfc.clf.pn531.Device.sense_ttb) Sense for a Type B Target is not supported. `sense_ttf`(*target*)[¶](#nfc.clf.pn531.Device.sense_ttf) Activate the RF field and probe for a Type F Target. `sense_dep`(*target*)[¶](#nfc.clf.pn531.Device.sense_dep) Search for a DEP Target in active communication mode. Because the PN531 does not implement the extended frame syntax for host controller communication, it can not support the maximum payload size of 254 byte. The driver handles this by modifying the length-reduction values in atr_req and atr_res. `listen_tta`(*target*, *timeout*)[¶](#nfc.clf.pn531.Device.listen_tta) Listen *timeout* seconds for a Type A activation at 106 kbps. The `sens_res`, `sdd_res`, and `sel_res` response data must be provided and `sdd_res` must be a 4 byte UID that starts with `08h`. Depending on `sel_res` an activation may return a target with a `tt2_cmd`, `tt4_cmd` or `atr_req` attribute. The default RATS response sent for a Type 4 Tag activation can be replaced with a `rats_res` attribute. `listen_ttb`(*target*, *timeout*)[¶](#nfc.clf.pn531.Device.listen_ttb) Listen as Type B Target is not supported. `listen_ttf`(*target*, *timeout*)[¶](#nfc.clf.pn531.Device.listen_ttf) Listen *timeout* seconds for a Type F card activation. The target `brty` must be set to either 212F or 424F and `sensf_res` provide 19 byte response data (response code + 8 byte IDm + 8 byte PMm + 2 byte system code). Note that the maximum command an response frame length is 64 bytes only (including the frame length byte), because the driver must directly program the contactless interface unit within the PN533. `listen_dep`(*target*, *timeout*)[¶](#nfc.clf.pn531.Device.listen_dep) Listen *timeout* seconds to become initialized as a DEP Target. The PN531 can be set to listen as a DEP Target for passive and active communication mode. ##### [pn532](#id8)[¶](#module-nfc.clf.pn532) Driver module for contactless devices based on the NXP PN532 chipset. This successor of the PN531 can additionally handle Type B Technology (type 4B Tags) and Type 1 Tag communication. It also supports an extended frame syntax for host communication that allows larger packets to be transferred. The chip has selectable UART, I2C or SPI host interfaces. A speciality of the PN532 is that it can manage two targets (cards) simultanously, although this is not used by *nfcpy*. The internal chipset architecture comprises a small 8-bit MCU and a Contactless Interface Unit CIU that is basically a PN512. The CIU implements the analog and digital part of communication (modulation and framing) while the MCU handles the protocol parts and host communication. Almost all PN532 firmware limitations (or bugs) can be avoided by directly programming the CIU. Type F Target mode for card emulation is completely implemented with the CIU and limited to 64 byte frame exchanges by the CIU’s FIFO size. Type B Target mode is not possible. | function | support | remarks | | --- | --- | --- | | sense_tta | yes | | | sense_ttb | yes | | | sense_ttf | yes | | | sense_dep | yes | | | listen_tta | yes | | | listen_ttb | no | | | listen_ttf | yes | Maximimum frame size is 64 byte | | listen_dep | yes | | *class* `nfc.clf.pn532.``Device`(*chipset*, *logger*)[¶](#nfc.clf.pn532.Device) Bases: `nfc.clf.pn53x.Device` `sense_tta`(*target*)[¶](#nfc.clf.pn532.Device.sense_tta) Search for a Type A Target. The PN532 can discover all kinds of Type A Targets (Type 1 Tag, Type 2 Tag, and Type 4A Tag) at 106 kbps. `sense_ttb`(*target*)[¶](#nfc.clf.pn532.Device.sense_ttb) Search for a Type B Target. The PN532 can discover Type B Targets (Type 4B Tag) at 106 kbps. For a Type 4B Tag the firmware automatically sends an ATTRIB command that configures the use of DID and 64 byte maximum frame size. The driver reverts this configuration with a DESELECT and WUPB command to return the target prepared for activation (which nfcpy does in the tag activation code). `sense_ttf`(*target*)[¶](#nfc.clf.pn532.Device.sense_ttf) Search for a Type F Target. The PN532 can discover Type F Targets (Type 3 Tag) at 212 and 424 kbps. The driver uses the default polling command `06FFFF0000` if no `target.sens_req` is supplied. `sense_dep`(*target*)[¶](#nfc.clf.pn532.Device.sense_dep) Search for a DEP Target in active communication mode. `listen_tta`(*target*, *timeout*)[¶](#nfc.clf.pn532.Device.listen_tta) Listen *timeout* seconds for a Type A activation at 106 kbps. The `sens_res`, `sdd_res`, and `sel_res` response data must be provided and `sdd_res` must be a 4 byte UID that starts with `08h`. Depending on `sel_res` an activation may return a target with a `tt2_cmd`, `tt4_cmd` or `atr_req` attribute. The default RATS response sent for a Type 4 Tag activation can be replaced with a `rats_res` attribute. `listen_ttb`(*target*, *timeout*)[¶](#nfc.clf.pn532.Device.listen_ttb) Listen as Type B Target is not supported. `listen_ttf`(*target*, *timeout*)[¶](#nfc.clf.pn532.Device.listen_ttf) Listen *timeout* seconds for a Type F card activation. The target `brty` must be set to either 212F or 424F and `sensf_res` provide 19 byte response data (response code + 8 byte IDm + 8 byte PMm + 2 byte system code). Note that the maximum command an response frame length is 64 bytes only (including the frame length byte), because the driver must directly program the contactless interface unit within the PN533. `listen_dep`(*target*, *timeout*)[¶](#nfc.clf.pn532.Device.listen_dep) Listen *timeout* seconds to become initialized as a DEP Target. The PN532 can be set to listen as a DEP Target for passive and active communication mode. ##### [pn533](#id9)[¶](#module-nfc.clf.pn533) Driver module for contactless devices based on the NXP PN533 chipset. The PN533 is pretty similar to the PN532 except that it also has a USB host interface option and, probably due to the resources needed for USB, does not support two simultaneous targets. Anything else said about PN532 also applies to PN533. | function | support | remarks | | --- | --- | --- | | sense_tta | yes | | | sense_ttb | yes | | | sense_ttf | yes | | | sense_dep | yes | | | listen_tta | yes | | | listen_ttb | no | | | listen_ttf | yes | Maximimum frame size is 64 byte | | listen_dep | yes | | *class* `nfc.clf.pn533.``Device`(*chipset*, *logger*)[¶](#nfc.clf.pn533.Device) Bases: `nfc.clf.pn53x.Device` `sense_tta`(*target*)[¶](#nfc.clf.pn533.Device.sense_tta) Activate the RF field and probe for a Type A Target. The PN533 can discover all kinds of Type A Targets (Type 1 Tag, Type 2 Tag, and Type 4A Tag) at 106 kbps. `sense_ttb`(*target*)[¶](#nfc.clf.pn533.Device.sense_ttb) Activate the RF field and probe for a Type B Target. The PN533 can discover Type B Targets (Type 4B Tag) at 106, 212, 424, and 848 kbps. The PN533 automatically sends an ATTRIB command that configures a 64 byte maximum frame size. The driver reverts this configuration with a DESELECT and WUPB command to return the target prepared for activation. `sense_ttf`(*target*)[¶](#nfc.clf.pn533.Device.sense_ttf) Activate the RF field and probe for a Type F Target. The PN533 can discover Type F Targets (Type 3 Tag) at 212 and 424 kbps. `sense_dep`(*target*)[¶](#nfc.clf.pn533.Device.sense_dep) Search for a DEP Target in active communication mode. `send_cmd_recv_rsp`(*target*, *data*, *timeout*)[¶](#nfc.clf.pn533.Device.send_cmd_recv_rsp) Send command *data* to the remote *target* and return the response data if received within *timeout* seconds. `listen_tta`(*target*, *timeout*)[¶](#nfc.clf.pn533.Device.listen_tta) Listen *timeout* seconds for a Type A activation at 106 kbps. The `sens_res`, `sdd_res`, and `sel_res` response data must be provided and `sdd_res` must be a 4 byte UID that starts with `08h`. Depending on `sel_res` an activation may return a target with a `tt2_cmd`, `tt4_cmd` or `atr_req` attribute. The default RATS response sent for a Type 4 Tag activation can be replaced with a `rats_res` attribute. `listen_ttb`(*target*, *timeout*)[¶](#nfc.clf.pn533.Device.listen_ttb) Listen as Type B Target is not supported. `listen_ttf`(*target*, *timeout*)[¶](#nfc.clf.pn533.Device.listen_ttf) Listen *timeout* seconds for a Type F card activation. The target `brty` must be set to either 212F or 424F and `sensf_res` provide 19 byte response data (response code + 8 byte IDm + 8 byte PMm + 2 byte system code). Note that the maximum command an response frame length is 64 bytes only (including the frame length byte), because the driver must directly program the contactless interface unit within the PN533. `listen_dep`(*target*, *timeout*)[¶](#nfc.clf.pn533.Device.listen_dep) Listen *timeout* seconds to become initialized as a DEP Target. The PN533 can be set to listen as a DEP Target for passive and active communication mode. `send_rsp_recv_cmd`(*target*, *data*, *timeout*)[¶](#nfc.clf.pn533.Device.send_rsp_recv_cmd) While operating as *target* send response *data* to the remote device and return new command data if received within *timeout* seconds. ##### [rcs956](#id10)[¶](#module-nfc.clf.rcs956) Driver for contacless devices based on the Sony RC-S956 chipset. Products known to use this chipset are the PaSoRi RC-S330, RC-S360, and RC-S370. The RC-S956 connects to the host as a native USB device. The RC-S956 has the same hardware architecture as the NXP PN53x family, i.e. it has a PN512 Contactless Interface Unit (CIU) coupled with a 80C51 microcontroller and uses the same frame structure for host communication and mostly the same commands. However, the firmware that runs on the 80C51 is different and the most notable difference is a much stricter state machine. The state machine restricts allowed commands to certain modes. While direct access to the CIU registers is possible, some of the things that can be done with a PN53x are unfortunately prevented by the stricter state machine. | function | support | remarks | | --- | --- | --- | | sense_tta | yes | Only Type 1 Tags up to 128 byte (Topaz-96) | | sense_ttb | yes | ATTRIB by firmware voided with S(DESELECT) | | sense_ttf | yes | | | sense_dep | yes | | | listen_tta | yes | Only DEP and Type 2 Target | | listen_ttb | no | | | listen_ttf | no | | | listen_dep | yes | Only passive communication mode | *class* `nfc.clf.rcs956.``Device`(*chipset*, *logger*)[¶](#nfc.clf.rcs956.Device) Bases: `nfc.clf.pn53x.Device` `mute`()[¶](#nfc.clf.rcs956.Device.mute) Mutes all existing communication, most notably the device will no longer generate a 13.56 MHz carrier signal when operating as Initiator. `sense_tta`(*target*)[¶](#nfc.clf.rcs956.Device.sense_tta) Activate the RF field and probe for a Type A Target. The RC-S956 can discover all Type A Targets (Type 1 Tag, Type 2 Tag, and Type 4A Tag) at 106 kbps. Due to firmware restrictions it is not possible to read a Type 1 Tag with dynamic memory layout (more than 128 byte memory). `sense_ttb`(*target*)[¶](#nfc.clf.rcs956.Device.sense_ttb) Activate the RF field and probe for a Type B Target. The RC-S956 can discover Type B Targets (Type 4B Tag) at 106 kbps. For a Type 4B Tag the firmware automatically sends an ATTRIB command that configures the use of DID and 64 byte maximum frame size. The driver reverts this configuration with a DESELECT and WUPB command to return the target prepared for activation (which nfcpy does in the tag activation code). `sense_ttf`(*target*)[¶](#nfc.clf.rcs956.Device.sense_ttf) Activate the RF field and probe for a Type F Target. `sense_dep`(*target*)[¶](#nfc.clf.rcs956.Device.sense_dep) Search for a DEP Target in active or passive communication mode. `listen_tta`(*target*, *timeout*)[¶](#nfc.clf.rcs956.Device.listen_tta) Listen *timeout* seconds for a Type A activation at 106 kbps. The `sens_res`, `sdd_res`, and `sel_res` response data must be provided and `sdd_res` must be a 4 byte UID that starts with `08h`. Depending on `sel_res` an activation may return a target with `tt2_cmd` or `atr_req` attribute. A Type 4A Tag activation is not supported. `listen_ttb`(*target*, *timeout*)[¶](#nfc.clf.rcs956.Device.listen_ttb) Listen as Type B Target is not supported. `listen_ttf`(*target*, *timeout*)[¶](#nfc.clf.rcs956.Device.listen_ttf) Listen as Type F Target is not supported. `listen_dep`(*target*, *timeout*)[¶](#nfc.clf.rcs956.Device.listen_dep) Listen *timeout* seconds to become initialized as a DEP Target. The RC-S956 can be set to listen as a DEP Target for passive communication mode. Target active communication mode is disabled by the driver due to performance issues. It is also not possible to fully control the ATR_RES response, only the response waiting time (TO byte of ATR_RES) and the general bytes can be set by the driver. Because the TO value must be set before calling the hardware listen function, it can not be different for the Type A of Type F passive initalization (the driver uses the higher value if they are different). ##### [acr122](#id11)[¶](#module-nfc.clf.acr122) Device driver for the Arygon ACR122U contactless reader. The Arygon ACR122U is a PC/SC compliant contactless reader that connects via USB and uses the USB CCID profile. It is normally intented to be used with a PC/SC stack but this driver interfaces directly with the inbuilt PN532 chipset by tunneling commands through the PC/SC Escape command. The driver is limited in functionality because the embedded microprocessor (that implements the PC/SC stack) also operates the PN532; it does not allow all commands to pass as desired and reacts on chip responses with its own (legitimate) interpretation of state. | function | support | remarks | | --- | --- | --- | | sense_tta | yes | Type 1 (Topaz) Tags are not supported | | sense_ttb | yes | ATTRIB by firmware voided with S(DESELECT) | | sense_ttf | yes | | | sense_dep | yes | | | listen_tta | no | | | listen_ttb | no | | | listen_ttf | no | | | listen_dep | no | | *class* `nfc.clf.acr122.``Device`(*chipset*)[¶](#nfc.clf.acr122.Device) Bases: [`nfc.clf.pn532.Device`](#nfc.clf.pn532.Device) `sense_tta`(*target*)[¶](#nfc.clf.acr122.Device.sense_tta) Activate the RF field and probe for a Type A Target at 106 kbps. Other bitrates are not supported. Type 1 Tags are not supported because the device does not allow to send the correct RID command (even though the PN532 does). `sense_ttb`(*target*)[¶](#nfc.clf.acr122.Device.sense_ttb) Activate the RF field and probe for a Type B Target. The RC-S956 can discover Type B Targets (Type 4B Tag) at 106 kbps. For a Type 4B Tag the firmware automatically sends an ATTRIB command that configures the use of DID and 64 byte maximum frame size. The driver reverts this configuration with a DESELECT and WUPB command to return the target prepared for activation (which nfcpy does in the tag activation code). `sense_ttf`(*target*)[¶](#nfc.clf.acr122.Device.sense_ttf) Activate the RF field and probe for a Type F Target. Bitrates 212 and 424 kpbs are supported. `sense_dep`(*target*)[¶](#nfc.clf.acr122.Device.sense_dep) Search for a DEP Target. Both passive and passive communication mode are supported. `listen_tta`(*target*, *timeout*)[¶](#nfc.clf.acr122.Device.listen_tta) Listen as Type A Target is not supported. `listen_ttb`(*target*, *timeout*)[¶](#nfc.clf.acr122.Device.listen_ttb) Listen as Type B Target is not supported. `listen_ttf`(*target*, *timeout*)[¶](#nfc.clf.acr122.Device.listen_ttf) Listen as Type F Target is not supported. `listen_dep`(*target*, *timeout*)[¶](#nfc.clf.acr122.Device.listen_dep) Listen as DEP Target is not supported. `turn_on_led_and_buzzer`()[¶](#nfc.clf.acr122.Device.turn_on_led_and_buzzer) Buzz and turn red. `turn_off_led_and_buzzer`()[¶](#nfc.clf.acr122.Device.turn_off_led_and_buzzer) Back to green. ##### [udp](#id12)[¶](#module-nfc.clf.udp) Driver module for simulated contactless communication over UDP/IP. It can be activated with the device path `udp:<host>:<port>` where the optional *host* may be the IP address or name of the node where the targeted communication partner is listening on *port*. The default values for *host* and *port* are `localhost:54321`. The driver implements almost all communication modes, with the current exception of active communication mode data exchange protocol. | function | support | remarks | | --- | --- | --- | | sense_tta | yes | | | sense_ttb | yes | | | sense_ttf | yes | | | sense_dep | no | | | listen_tta | yes | | | listen_ttb | yes | | | listen_ttf | yes | | | listen_dep | yes | | *class* `nfc.clf.udp.``Device`(*host*, *port*)[¶](#nfc.clf.udp.Device) Bases: [`nfc.clf.device.Device`](#nfc.clf.device.Device) `mute`()[¶](#nfc.clf.udp.Device.mute) Mutes all existing communication, most notably the device will no longer generate a 13.56 MHz carrier signal when operating as Initiator. `sense_tta`(*target*)[¶](#nfc.clf.udp.Device.sense_tta) Discover a Type A Target. Activates the 13.56 MHz carrier signal and sends a SENS_REQ command at the bitrate set by **target.brty**. If a response is received, sends an RID_CMD for a Type 1 Tag or SDD_REQ and SEL_REQ for a Type 2/4 Tag and returns the responses. | Parameters: | **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – Supplies bitrate and optional command data for the target discovery. The only sensible command to set is **sel_req** populated with a UID to find only that specific target. | | Returns: | Response data received from a remote target if found. This includes at least **sens_res** and either **rid_res** (for a Type 1 Tag) or **sdd_res** and **sel_res** (for a Type 2/4 Tag). | | Return type: | [nfc.clf.RemoteTarget](index.html#nfc.clf.RemoteTarget) | | Raises: | [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). | `sense_ttb`(*target*)[¶](#nfc.clf.udp.Device.sense_ttb) Discover a Type B Target. Activates the 13.56 MHz carrier signal and sends a SENSB_REQ command at the bitrate set by **target.brty**. If a SENSB_RES is received, returns a target object with the **sensb_res** attribute. Note that the firmware of some devices (least all those based on PN53x) automatically sends an ATTRIB command with varying but always unfortunate communication settings. The drivers correct that situation by sending S(DESELECT) and WUPB before return. | Parameters: | **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – Supplies bitrate and the optional **sensb_req** for target discovery. Most drivers do no not allow a fully customized SENSB_REQ, the only parameter that can always be changed is the AFI byte, others may be ignored. | | Returns: | Response data received from a remote target if found. The only response data attribute is **sensb_res**. | | Return type: | [nfc.clf.RemoteTarget](index.html#nfc.clf.RemoteTarget) | | Raises: | [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). | `sense_ttf`(*target*)[¶](#nfc.clf.udp.Device.sense_ttf) Discover a Type F Target. Activates the 13.56 MHz carrier signal and sends a SENSF_REQ command at the bitrate set by **target.brty**. If a SENSF_RES is received, returns a target object with the **sensf_res** attribute. | Parameters: | **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – Supplies bitrate and the optional **sensf_req** for target discovery. The default SENSF_REQ invites all targets to respond and requests the system code information bytes. | | Returns: | Response data received from a remote target if found. The only response data attribute is **sensf_res**. | | Return type: | [nfc.clf.RemoteTarget](index.html#nfc.clf.RemoteTarget) | | Raises: | [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). | `sense_dep`(*target*)[¶](#nfc.clf.udp.Device.sense_dep) Discover a NFC-DEP Target in active communication mode. Activates the 13.56 MHz carrier signal and sends an ATR_REQ command at the bitrate set by **target.brty**. If an ATR_RES is received, returns a target object with the **atr_res** attribute. Note that some drivers (like pn531) may modify the transport data bytes length reduction value in ATR_REQ and ATR_RES due to hardware limitations. | Parameters: | **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – Supplies bitrate and the mandatory **atr_req** for target discovery. The bitrate may be one of ‘106A’, ‘212F’, or ‘424F’. | | Returns: | Response data received from a remote target if found. The only response data attribute is **atr_res**. The actually sent and potentially modified ATR_REQ is also included as **atr_req** attribute. | | Return type: | [nfc.clf.RemoteTarget](index.html#nfc.clf.RemoteTarget) | | Raises: | [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). | `listen_tta`(*target*, *timeout*)[¶](#nfc.clf.udp.Device.listen_tta) Listen as Type A Target. Waits to receive a SENS_REQ command at the bitrate set by **target.brty** and sends the **target.sens_res** response. Depending on the SENS_RES bytes, the Initiator then sends an RID_CMD (SENS_RES coded for a Type 1 Tag) or SDD_REQ and SEL_REQ (SENS_RES coded for a Type 2/4 Tag). Responses are then generated from the **rid_res** or **sdd_res** and **sel_res** attributes in *target*. Note that none of the currently supported hardware can actually receive an RID_CMD, thus Type 1 Tag emulation is impossible. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies bitrate and mandatory response data to reply when being discovered. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as one of the **tt1_cmd**, **tt2_cmd** or **tt4_cmd** attribute (note that unset attributes are always None). | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `listen_ttb`(*target*, *timeout*)[¶](#nfc.clf.udp.Device.listen_ttb) Listen as Type A Target. Waits to receive a SENSB_REQ command at the bitrate set by **target.brty** and sends the **target.sensb_res** response. Note that none of the currently supported hardware can actually listen as Type B target. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies bitrate and mandatory response data to reply when being discovered. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as **tt4_cmd** attribute. | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `listen_ttf`(*target*, *timeout*)[¶](#nfc.clf.udp.Device.listen_ttf) Listen as Type A Target. Waits to receive a SENSF_REQ command at the bitrate set by **target.brty** and sends the **target.sensf_res** response. Then waits for a first command that is not a SENSF_REQ and returns this as the **tt3_cmd** attribute. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies bitrate and mandatory response data to reply when being discovered. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as **tt3_cmd** attribute. | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported or the *target* argument requested an unsupported bitrate (or has a wrong technology type identifier). * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `listen_dep`(*target*, *timeout*)[¶](#nfc.clf.udp.Device.listen_dep) Listen as NFC-DEP Target. Waits to receive an ATR_REQ (if the local device supports active communication mode) or a Type A or F Target activation followed by an ATR_REQ in passive communication mode. The ATR_REQ is replied with **target.atr_res**. The first DEP_REQ command is returned as the **dep_req** attribute along with **atr_req** and **atr_res**. The **psl_req** and **psl_res** attributes are returned when the has Initiator performed a parameter selection. The **sens_res** or **sensf_res** attributes are returned when activation was in passive communication mode. | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – Supplies mandatory response data to reply when being discovered. All of **sens_res**, **sdd_res**, **sel_res**, **sensf_res**, and **atr_res** must be provided. The bitrate does not need to be set, an NFC-DEP Target always accepts discovery at ‘106A’, ‘212F and ‘424F’. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for a discovery command. | | Returns: | Command data received from the remote Initiator if being discovered and to the extent supported by the device. The first command received after discovery is returned as **dep_req** attribute. | | Return type: | [nfc.clf.LocalTarget](index.html#nfc.clf.LocalTarget) | | Raises: | * [`nfc.clf.UnsupportedTargetError`](#nfc.clf.UnsupportedTargetError) – The method is not supported by the local hardware. * `ValueError` – A required target response attribute is not present or does not supply the number of bytes expected. | `send_cmd_recv_rsp`(*target*, *data*, *timeout*)[¶](#nfc.clf.udp.Device.send_cmd_recv_rsp) Exchange data with a remote Target Sends command *data* to the remote *target* discovered in the most recent call to one of the sense_xxx() methods. Note that *target* becomes invalid with any call to mute(), sense_xxx() or listen_xxx() | Parameters: | * **target** ([*nfc.clf.RemoteTarget*](index.html#nfc.clf.RemoteTarget)) – The target returned by the last successful call of a sense_xxx() method. * **data** ([*bytearray*](https://docs.python.org/3/library/stdtypes.html#bytearray)) – The binary data to send to the remote device. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for response data from the remote device. | | Returns: | Response data received from the remote device. | | Return type: | [bytearray](https://docs.python.org/3/library/stdtypes.html#bytearray) | | Raises: | [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) – When no data was received. | `send_rsp_recv_cmd`(*target*, *data*, *timeout*)[¶](#nfc.clf.udp.Device.send_rsp_recv_cmd) Exchange data with a remote Initiator Sends response *data* as the local *target* being discovered in the most recent call to one of the listen_xxx() methods. Note that *target* becomes invalid with any call to mute(), sense_xxx() or listen_xxx() | Parameters: | * **target** ([*nfc.clf.LocalTarget*](index.html#nfc.clf.LocalTarget)) – The target returned by the last successful call of a listen_xxx() method. * **data** ([*bytearray*](https://docs.python.org/3/library/stdtypes.html#bytearray)) – The binary data to send to the remote device. * **timeout** ([*float*](https://docs.python.org/3/library/functions.html#float)) – The maximum number of seconds to wait for command data from the remote device. | | Returns: | Command data received from the remote device. | | Return type: | [bytearray](https://docs.python.org/3/library/stdtypes.html#bytearray) | | Raises: | [`nfc.clf.CommunicationError`](#nfc.clf.CommunicationError) – When no data was received. | `get_max_send_data_size`(*target*)[¶](#nfc.clf.udp.Device.get_max_send_data_size) Returns the maximum number of data bytes for sending. The maximum number of data bytes acceptable for sending with either [`send_cmd_recv_rsp()`](#nfc.clf.udp.Device.send_cmd_recv_rsp) or [`send_rsp_recv_cmd()`](#nfc.clf.udp.Device.send_rsp_recv_cmd). The value reflects the local device capabilities for sending in the mode determined by *target*. It does not relate to any protocol capabilities and negotiations. | Parameters: | **target** (*nfc.clf.Target*) – The current local or remote communication target. | | Returns: | Maximum number of data bytes supported for sending. | | Return type: | [int](https://docs.python.org/3/library/functions.html#int) | `get_max_recv_data_size`(*target*)[¶](#nfc.clf.udp.Device.get_max_recv_data_size) Returns the maximum number of data bytes for receiving. The maximum number of data bytes acceptable for receiving with either [`send_cmd_recv_rsp()`](#nfc.clf.udp.Device.send_cmd_recv_rsp) or [`send_rsp_recv_cmd()`](#nfc.clf.udp.Device.send_rsp_recv_cmd). The value reflects the local device capabilities for receiving in the mode determined by *target*. It does not relate to any protocol capabilities and negotiations. | Parameters: | **target** (*nfc.clf.Target*) – The current local or remote communication target. | | Returns: | Maximum number of data bytes supported for receiving. | | Return type: | [int](https://docs.python.org/3/library/functions.html#int) | ### nfc.tag[¶](#nfc-tag) * [Type 1 Tag](#module-nfc.tag.tt1) * [Type 2 Tag](#module-nfc.tag.tt2) * [Type 3 Tag](#module-nfc.tag.tt3) * [Type 4 Tag](#module-nfc.tag.tt4) *class* `nfc.tag.``Tag`(*clf*, *target*)[¶](#nfc.tag.Tag) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) The base class for all NFC Tags/Cards. The methods and attributes defined here are commonly available but some may, depending on the tag product, also return a `None` value is support is not available. Direct subclasses are the NFC Forum tag types: [`Type1Tag`](#nfc.tag.tt1.Type1Tag), [`Type2Tag`](#nfc.tag.tt2.Type2Tag), [`Type3Tag`](#nfc.tag.tt3.Type3Tag), [`Type4Tag`](#nfc.tag.tt4.Type4Tag). Some of them are further specialized in vendor/product specific classes. *class* `NDEF`(*tag*)[¶](#nfc.tag.Tag.NDEF) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) The NDEF object type that may be read from [`Tag.ndef`](#nfc.tag.Tag.ndef). This class presents the NDEF management information and the actual NDEF message by a couple of attributes. It is normally accessed from a [`Tag`](#nfc.tag.Tag) instance (further named *tag*) through the [`Tag.ndef`](#nfc.tag.Tag.ndef) attribute for reading or writing NDEF records. ``` if tag.ndef is not None: for record in tag.ndef.records: print(record) if tag.ndef.is_writeable: from ndef import TextRecord tag.ndef.records = [TextRecord("Hello World")] ``` `tag`[¶](#nfc.tag.Tag.NDEF.tag) A readonly reference to the underlying tag object. `length`[¶](#nfc.tag.Tag.NDEF.length) Length of the current NDEF message in bytes. `capacity`[¶](#nfc.tag.Tag.NDEF.capacity) Maximum number of bytes for an NDEF message. `is_readable`[¶](#nfc.tag.Tag.NDEF.is_readable) `True` if the NDEF data are is readable. `is_writeable`[¶](#nfc.tag.Tag.NDEF.is_writeable) `True` if the NDEF data area is writeable. `has_changed`[¶](#nfc.tag.Tag.NDEF.has_changed) The boolean attribute [`has_changed`](#nfc.tag.Tag.NDEF.has_changed) allows to determine whether the NDEF message on the tag is different from the message that was read or written at an earlier time in the session. This may for example be the case if the tag is build to dynamically present different content depending on some state. Note that reading this attribute involves a complete update of the [`Tag.NDEF`](#nfc.tag.Tag.NDEF) instance and it is possible that [`Tag.ndef`](#nfc.tag.Tag.ndef) is `None` after the update (e.g. tag gone during read or a dynamic tag that failed). A robust implementation should always verify the value of the [`Tag.ndef`](#nfc.tag.Tag.ndef) attribute. ``` if tag.ndef.has_changed and tag.ndef is not None: for record in tag.ndef.records: print(record) ``` The [`has_changed`](#nfc.tag.Tag.NDEF.has_changed) attribute can also be used to verify that NDEF records written to the tag are identical to the NDEF records stored on the tag. ``` from ndef import TextRecord tag.ndef.records = [TextRecord("Hello World")] if tag.ndef.has_changed: print("the tag data differs from what was written") ``` `records`[¶](#nfc.tag.Tag.NDEF.records) Read or write a list of NDEF Records. New in version 0.12. This attribute is a convinience wrapper for decoding and encoding of the NDEF message data [`octets`](#nfc.tag.Tag.NDEF.octets). It uses the [ndeflib](https://ndeflib.readthedocs.io) module to return the list of [`ndef.Record`](https://ndeflib.readthedocs.io/en/stable/ndef.html#ndef.Record) instances decoded from the NDEF message data or set the message data from a list of records. ``` from ndef import TextRecord if tag.ndef is not None: for record in tag.ndef.records: print(record) try: tag.ndef.records = [TextRecord('Hello World')] except nfc.tag.TagCommandError as err: print("NDEF write failed: " + str(err)) ``` Decoding is performed with a relaxed error handling strategy that ignores minor errors in the NDEF data. The [ndeflib](https://ndeflib.readthedocs.io) does also support ‘strict’ and ‘ignore’ error handling which may be used like so: ``` from ndef import message_decoder, message_encoder records = message_decoder(tag.ndef.octets, errors='strict') tag.ndef.octets = b''.join(message_encoder(records)) ``` `octets`[¶](#nfc.tag.Tag.NDEF.octets) Read or write NDEF message data octets. New in version 0.12. The *octets* attribute returns the NDEF message data octets as bytes. A bytes or bytearray sequence assigned to *octets* is immediately written to the NDEF message data area, unless the Tag memory is write protected or to small. ``` if tag.ndef is not None: print(hexlify(tag.ndef.octets).decode()) ``` `identifier`[¶](#nfc.tag.Tag.identifier) The unique tag identifier. `ndef`[¶](#nfc.tag.Tag.ndef) An [`NDEF`](#nfc.tag.Tag.NDEF) object if found, otherwise `None`. `is_present`[¶](#nfc.tag.Tag.is_present) True if the tag is within communication range. `is_authenticated`[¶](#nfc.tag.Tag.is_authenticated) True if the tag was successfully authenticated. `dump`()[¶](#nfc.tag.Tag.dump) The dump() method returns a list of strings describing the memory structure of the tag, suitable for printing with join(). The list format makes custom indentation a bit easier. ``` print("\n".join(["\t" + line for line in tag.dump()])) ``` `format`(*version=None*, *wipe=None*)[¶](#nfc.tag.Tag.format) Format the tag to make it NDEF compatible or erase content. The [`format()`](#nfc.tag.Tag.format) method is highly dependent on the tag type, product and present status, for example a tag that has been made read-only with lock bits can no longer be formatted or erased. [`format()`](#nfc.tag.Tag.format) creates the management information defined by the NFC Forum to describes the NDEF data area on the tag, this is also called NDEF mapping. The mapping may differ between versions of the tag specifications, the mapping to apply can be specified with the *version* argument as an 8-bit integer composed of a major version number in the most significant 4 bit and the minor version number in the least significant 4 bit. If *version* is not specified then the highest possible mapping version is used. If formatting of the tag is possible, the default behavior of [`format()`](#nfc.tag.Tag.format) is to update only the management information required to make the tag appear as NDEF compatible and empty, previously existing data could still be read. If existing data shall be overwritten, the *wipe* argument can be set to an 8-bit integer that will be written to all available bytes. The [`format()`](#nfc.tag.Tag.format) method returns `True` if formatting was successful, `False` if it failed for some reason, or `None` if the present tag can not be formatted either because the tag does not support formatting or it is not implemented in nfcpy. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.Tag.protect) Protect a tag against future write or read access. [`protect()`](#nfc.tag.Tag.protect) attempts to make a tag readonly for all readers if *password* is `None`, writeable only after authentication if a *password* is provided, and readable only after authentication if a *password* is provided and the *read_protect* flag is set. The *password* must be a byte or character sequence that provides sufficient key material for the tag specific protect function (this is documented separately for the individual tag types). As a special case, if *password* is set to an empty string the [`protect()`](#nfc.tag.Tag.protect) method uses a default manufacturer value if such is known. The *protect_from* argument sets the first memory unit to be protected. Memory units are tag type specific, for a Type 1 or Type 2 Tag a memory unit is 4 byte, for a Type 3 Tag it is 16 byte, and for a Type 4 Tag it is the complete NDEF data area. Note that the effect of protecting a tag without password can normally not be reversed. The return value of [`protect()`](#nfc.tag.Tag.protect) is either `True` or `False` depending on whether the operation was successful or not, or `None` if the tag does not support custom protection (or it is not implemented). `authenticate`(*password*)[¶](#nfc.tag.Tag.authenticate) Authenticate a tag with a *password*. A tag that was once protected with a password requires authentication before write, potentially also read, operations may be performed. The *password* must be the same as the password provided to [`protect()`](#nfc.tag.Tag.protect). The return value indicates authentication success with `True` or `False`. For a tag that does not support authentication the return value is `None`. *exception* `nfc.tag.``TagCommandError`(*errno*)[¶](#nfc.tag.TagCommandError) Bases: [`Exception`](https://docs.python.org/3/library/exceptions.html#Exception) The base class for exceptions that are raised when a tag command has not returned the expected result or a a lower stack error was raised. The [`errno`](#nfc.tag.TagCommandError.errno) attribute holds a reason code for why the command has failed. Error numbers greater than zero indicate a tag type specific error from one of the exception classes derived from [`TagCommandError`](#nfc.tag.TagCommandError) (per tag type module). Error numbers below and including zero indicate general errors: ``` nfc.tag.TIMEOUT_ERROR => unrecoverable timeout error nfc.tag.RECEIVE_ERROR => unrecoverable transmission error nfc.tag.PROTOCOL_ERROR => unrecoverable protocol error ``` The [`TagCommandError`](#nfc.tag.TagCommandError) exception populates the *message* attribute of the general exception class with the appropriate error description. `errno`[¶](#nfc.tag.TagCommandError.errno) Holds the error reason code. *class* `nfc.tag.``TagEmulation`[¶](#nfc.tag.TagEmulation) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) Base class for tag emulation classes. #### [Type 1 Tag](#id2)[¶](#module-nfc.tag.tt1) *exception* `nfc.tag.tt1.``Type1TagCommandError`(*errno*)[¶](#nfc.tag.tt1.Type1TagCommandError) Bases: [`nfc.tag.TagCommandError`](#nfc.tag.TagCommandError) Type 1 Tag specific exceptions. Sets [`errno`](#nfc.tag.TagCommandError.errno) to one of: 1 - CHECKSUM_ERROR 2 - RESPONSE_ERROR 3 - WRITE_ERROR *class* `nfc.tag.tt1.``Type1Tag`(*clf*, *target*)[¶](#nfc.tag.tt1.Type1Tag) Bases: [`nfc.tag.Tag`](#nfc.tag.Tag) Implementation of the NFC Forum Type 1 Tag Operation specification. The NFC Forum Type 1 Tag is based on the ISO 14443 Type A technology for frame structure and anticollision (detection) commands, and the Innovision (now Broadcom) Jewel/Topaz commands for accessing the tag memory. *class* `NDEF`(*tag*)[¶](#nfc.tag.tt1.Type1Tag.NDEF) Bases: `nfc.tag.NDEF` `dump`()[¶](#nfc.tag.tt1.Type1Tag.dump) Returns the tag memory blocks as a list of formatted strings. [`dump()`](#nfc.tag.tt1.Type1Tag.dump) iterates over all tag memory blocks (8 bytes each) from block zero until the physical end of memory and produces a list of strings that is intended for line by line printing. Multiple consecutive memory block of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory blocks present. Warning For tags with more than 120 byte memory, the dump() method first overwrites the data block to verify that it is backed by physical memory, then restores the original data. This is necessary because Type 1 Tags do not indicate an error when reading beyond the physical memory space. Be cautious to not remove a tag from the reader when using dump() as otherwise your data may be corrupted. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt1.Type1Tag.protect) The implementation of [`nfc.tag.Tag.protect()`](#nfc.tag.Tag.protect) for a generic type 1 tag is limited to setting the NDEF data read-only for tags that are already NDEF formatted. `read_id`()[¶](#nfc.tag.tt1.Type1Tag.read_id) Returns the 2 byte Header ROM and 4 byte UID. `read_all`()[¶](#nfc.tag.tt1.Type1Tag.read_all) Returns the 2 byte Header ROM and all 120 byte static memory. `read_byte`(*addr*)[¶](#nfc.tag.tt1.Type1Tag.read_byte) Read a single byte from static memory area (blocks 0-14). `read_block`(*block*)[¶](#nfc.tag.tt1.Type1Tag.read_block) Read an 8-byte data block at address (block * 8). `read_segment`(*segment*)[¶](#nfc.tag.tt1.Type1Tag.read_segment) Read one memory segment (128 byte). `write_byte`(*addr*, *data*, *erase=True*)[¶](#nfc.tag.tt1.Type1Tag.write_byte) Write a single byte to static memory area (blocks 0-14). The target byte is zero’d first if *erase* is True. `write_block`(*block*, *data*, *erase=True*)[¶](#nfc.tag.tt1.Type1Tag.write_block) Write an 8-byte data block at address (block * 8). The target bytes are zero’d first if *erase* is True. *class* `nfc.tag.tt1_broadcom.``Topaz`(*clf*, *target*)[¶](#nfc.tag.tt1_broadcom.Topaz) Bases: [`nfc.tag.tt1.Type1Tag`](#nfc.tag.tt1.Type1Tag) The Broadcom Topaz is a small memory tag that can hold up to 94 byte ndef message data. `dump`()[¶](#nfc.tag.tt1_broadcom.Topaz.dump) Returns the tag memory blocks as a list of formatted strings. [`dump()`](#nfc.tag.tt1_broadcom.Topaz.dump) iterates over all tag memory blocks (8 bytes each) from block zero until the physical end of memory and produces a list of strings that is intended for line by line printing. Multiple consecutive memory block of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory blocks present. Warning For tags with more than 120 byte memory, the dump() method first overwrites the data block to verify that it is backed by physical memory, then restores the original data. This is necessary because Type 1 Tags do not indicate an error when reading beyond the physical memory space. Be cautious to not remove a tag from the reader when using dump() as otherwise your data may be corrupted. `format`(*version=None*, *wipe=None*)[¶](#nfc.tag.tt1_broadcom.Topaz.format) Format a Topaz tag for NDEF use. The implementation of [`nfc.tag.Tag.format()`](#nfc.tag.Tag.format) for a Topaz tag creates a capability container and an NDEF TLV with length zero. Data bytes of the NDEF data area are left untouched unless the wipe argument is set. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt1_broadcom.Topaz.protect) In addtion to [`nfc.tag.tt1.Type1Tag.protect()`](#nfc.tag.tt1.Type1Tag.protect) this method tries to set the lock bits to irreversibly protect the tag memory. However, it appears that tags sold have the lock bytes write protected, so this additional effort most likely doesn’t have any effect. *class* `nfc.tag.tt1_broadcom.``Topaz512`(*clf*, *target*)[¶](#nfc.tag.tt1_broadcom.Topaz512) Bases: [`nfc.tag.tt1.Type1Tag`](#nfc.tag.tt1.Type1Tag) The Broadcom Topaz-512 is a memory enhanced version that can hold up to 462 byte ndef message data. `dump`()[¶](#nfc.tag.tt1_broadcom.Topaz512.dump) Returns the tag memory blocks as a list of formatted strings. [`dump()`](#nfc.tag.tt1_broadcom.Topaz512.dump) iterates over all tag memory blocks (8 bytes each) from block zero until the physical end of memory and produces a list of strings that is intended for line by line printing. Multiple consecutive memory block of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory blocks present. Warning For tags with more than 120 byte memory, the dump() method first overwrites the data block to verify that it is backed by physical memory, then restores the original data. This is necessary because Type 1 Tags do not indicate an error when reading beyond the physical memory space. Be cautious to not remove a tag from the reader when using dump() as otherwise your data may be corrupted. `format`(*version=None*, *wipe=None*)[¶](#nfc.tag.tt1_broadcom.Topaz512.format) Format a Topaz-512 tag for NDEF use. The implementation of [`nfc.tag.Tag.format()`](#nfc.tag.Tag.format) for a Topaz-512 tag creates a capability container, a Lock Control and a Memory Control TLV, and an NDEF TLV with length zero. Data bytes of the NDEF data area are left untouched unless the wipe argument is set. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt1_broadcom.Topaz512.protect) In addtion to [`nfc.tag.tt1.Type1Tag.protect()`](#nfc.tag.tt1.Type1Tag.protect) this method tries to set the lock bits to irreversibly protect the tag memory. However, it appears that tags sold have the lock bytes write protected, so this additional effort most likely doesn’t have any effect. #### [Type 2 Tag](#id3)[¶](#module-nfc.tag.tt2) *exception* `nfc.tag.tt2.``Type2TagCommandError`(*errno*)[¶](#nfc.tag.tt2.Type2TagCommandError) Bases: [`nfc.tag.TagCommandError`](#nfc.tag.TagCommandError) Type 2 Tag specific exceptions. Sets [`errno`](#nfc.tag.TagCommandError.errno) to one of: 1 - INVALID_SECTOR_ERROR 2 - INVALID_PAGE_ERROR 3 - INVALID_RESPONSE_ERROR *class* `nfc.tag.tt2.``Type2Tag`(*clf*, *target*)[¶](#nfc.tag.tt2.Type2Tag) Bases: [`nfc.tag.Tag`](#nfc.tag.Tag) Implementation of the NFC Forum Type 2 Tag Operation specification. The NFC Forum Type 2 Tag is based on the ISO 14443 Type A technology for frame structure and anticollision (detection) commands, and the NXP Mifare commands for accessing the tag memory. *class* `NDEF`(*tag*)[¶](#nfc.tag.tt2.Type2Tag.NDEF) Bases: `nfc.tag.NDEF` `dump`()[¶](#nfc.tag.tt2.Type2Tag.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2.Type2Tag.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. `format`(*version=None*, *wipe=None*)[¶](#nfc.tag.tt2.Type2Tag.format) Erase the NDEF message on a Type 2 Tag. The [`format()`](#nfc.tag.tt2.Type2Tag.format) method will reset the length of the NDEF message on a type 2 tag to zero, thus the tag will appear to be empty. Additionally, if the *wipe* argument is set to some integer then [`format()`](#nfc.tag.tt2.Type2Tag.format) will overwrite all user date that follows the NDEF message TLV with that integer (mod 256). If an NDEF message TLV is not present it will be created with a length of zero. Despite it’s name, the [`format()`](#nfc.tag.tt2.Type2Tag.format) method can not format a blank tag to make it NDEF compatible. This is because the user data are of a type 2 tag can not be safely determined, also reading all memory pages until an error response yields only the total memory size which includes an undetermined number of special pages at the end of memory. It is also not possible to change the NDEF mapping version, located in a one-time-programmable area of the tag memory. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt2.Type2Tag.protect) Protect the tag against write access, i.e. make it read-only. [`Type2Tag.protect()`](#nfc.tag.tt2.Type2Tag.protect) switches an NFC Forum Type 2 Tag to read-only state by setting all lock bits to 1. This operation can not be reversed. If the tag is not an NFC Forum Tag, i.e. it is not formatted with an NDEF Capability Container, the [`protect()`](#nfc.tag.tt2.Type2Tag.protect) method simply returns `False`. A generic Type 2 Tag can not be protected with a password. If the *password* argument is provided, the [`protect()`](#nfc.tag.tt2.Type2Tag.protect) method does nothing else than return `False`. The *read_protect* and *protect_from* arguments are safely ignored. `read`(*page*)[¶](#nfc.tag.tt2.Type2Tag.read) Send a READ command to retrieve data from the tag. The *page* argument specifies the offset in multiples of 4 bytes (i.e. page number 1 will return bytes 4 to 19). The data returned is a byte array of length 16 or None if the block is outside the readable memory range. Command execution errors raise [`Type2TagCommandError`](#nfc.tag.tt2.Type2TagCommandError). `write`(*page*, *data*)[¶](#nfc.tag.tt2.Type2Tag.write) Send a WRITE command to store data on the tag. The *page* argument specifies the offset in multiples of 4 bytes. The *data* argument must be a string or bytearray of length 4. Command execution errors raise [`Type2TagCommandError`](#nfc.tag.tt2.Type2TagCommandError). `sector_select`(*sector*)[¶](#nfc.tag.tt2.Type2Tag.sector_select) Send a SECTOR_SELECT command to switch the 1K address sector. The command is only send to the tag if the *sector* number is different from the currently selected sector number (set to 0 when the tag instance is created). If the command was successful, the currently selected sector number is updated and further [`read()`](#nfc.tag.tt2.Type2Tag.read) and [`write()`](#nfc.tag.tt2.Type2Tag.write) commands will be relative to that sector. Command execution errors raise [`Type2TagCommandError`](#nfc.tag.tt2.Type2TagCommandError). `transceive`(*data*, *timeout=0.1*, *retries=2*)[¶](#nfc.tag.tt2.Type2Tag.transceive) Send a Type 2 Tag command and receive the response. [`transceive()`](#nfc.tag.tt2.Type2Tag.transceive) is a type 2 tag specific wrapper around the `nfc.ContactlessFrontend.exchange()` method. It can be used to send custom commands as a sequence of *data* bytes to the tag and receive the response data bytes. If *timeout* seconds pass without a response, the operation is aborted and [`TagCommandError`](#nfc.tag.TagCommandError) raised with the TIMEOUT_ERROR error code. Command execution errors raise [`Type2TagCommandError`](#nfc.tag.tt2.Type2TagCommandError). *class* `nfc.tag.tt2.``Type2TagMemoryReader`(*tag*)[¶](#nfc.tag.tt2.Type2TagMemoryReader) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) The memory reader provides a convenient way to read and write [`Type2Tag`](#nfc.tag.tt2.Type2Tag) memory. Once instantiated with a proper type 2 *tag* object the tag memory can then be accessed as a linear sequence of bytes, without any considerations of sector or page boundaries. Modified bytes can be written to tag memory with [`synchronize()`](#nfc.tag.tt2.Type2TagMemoryReader.synchronize). ``` clf = nfc.ContactlessFrontend(...) tag = clf.connect(rdwr={'on-connect': None}) if isinstance(tag, nfc.tag.tt2.Type2Tag): tag_memory = nfc.tag.tt2.Type2TagMemoryReader(tag) tag_memory[16:19] = [0x03, 0x00, 0xFE] tag_memory.synchronize() ``` `synchronize`()[¶](#nfc.tag.tt2.Type2TagMemoryReader.synchronize) Write pages that contain modified data back to tag memory. *class* `nfc.tag.tt2_nxp.``MifareUltralight`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.MifareUltralight) Bases: [`nfc.tag.tt2.Type2Tag`](#nfc.tag.tt2.Type2Tag) Mifare Ultralight is a simple type 2 tag with no specific features. It can store up to 46 byte NDEF message data. This class does not do much more than to provide the known memory size. `dump`()[¶](#nfc.tag.tt2_nxp.MifareUltralight.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.MifareUltralight.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``MifareUltralightC`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.MifareUltralightC) Bases: [`nfc.tag.tt2.Type2Tag`](#nfc.tag.tt2.Type2Tag) Mifare Ultralight C provides more memory, to store up to 142 byte NDEF message data, and can be password protected. *class* `NDEF`(*tag*)[¶](#nfc.tag.tt2_nxp.MifareUltralightC.NDEF) Bases: `nfc.tag.tt2.NDEF` `dump`()[¶](#nfc.tag.tt2_nxp.MifareUltralightC.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.MifareUltralightC.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt2_nxp.MifareUltralightC.protect) Protect a Mifare Ultralight C Tag. A Mifare Ultrlight C Tag can be provisioned with a custom password (or the default manufacturer key if the password is an empty string or bytearray). A non-empty *password* must provide at least 128 bit key material, in other words it must be a string or bytearray of length 16 or more. If *password* is not None, the first protected memory page can be specified with the *protect_from* integer argument. A memory page is 4 byte and the total number of pages is 48. A *protect_from* argument of 48 effectively disables memory protection. A *protect_from* argument of 3 protects all user data pages including the bitwise one-time-programmable page 3. Any value less than 3 or more than 48 is accepted but to the same effect as if 3 or 48 were specified. If effective protection starts at page 3 and the tag is formatted for NDEF, the [`protect()`](#nfc.tag.tt2_nxp.MifareUltralightC.protect) method does also modify the NDEF read/write capability byte. If *password* is not None and *read_protect* is True then the tag memory content will also be protected against read access, i.e. successful authentication will be required to read protected pages. The [`protect()`](#nfc.tag.tt2_nxp.MifareUltralightC.protect) method verifies a password change by authenticating with the new *password* after all modifications were made and returns the result of [`authenticate()`](#nfc.tag.tt2_nxp.MifareUltralightC.authenticate). Warning If protect is called without a password, the default Type 2 Tag protection method will set the lock bits to readonly. This process is not reversible. `authenticate`(*password*)[¶](#nfc.tag.tt2_nxp.MifareUltralightC.authenticate) Authenticate with a Mifare Ultralight C Tag. `autenticate()` executes the Mifare Ultralight C mutual authentication protocol to verify that the *password* argument matches the key that is stored in the card. A new card key can be set with [`protect()`](#nfc.tag.tt2_nxp.MifareUltralightC.protect). The *password* argument must be a string with either 0 or at least 16 bytes. A zero length password string indicates that the factory default card key be used. From a password with 16 or more bytes the first 16 byte are taken as card key, remaining bytes are ignored. A password length between 1 and 15 generates a ValueError exception. The authentication result is True if the password was confirmed and False if not. *class* `nfc.tag.tt2_nxp.``NTAG203`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NTAG203) Bases: [`nfc.tag.tt2.Type2Tag`](#nfc.tag.tt2.Type2Tag) The NTAG203 is a plain memory Tag with 144 bytes user data memory plus a 16-bit one-way counter. It does not have any security features beyond the standard lock bit mechanism that permanently disables write access. `dump`()[¶](#nfc.tag.tt2_nxp.NTAG203.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.NTAG203.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt2_nxp.NTAG203.protect) Set lock bits to disable future memory modifications. If *password* is None, all memory pages except the 16-bit counter in page 41 are protected by setting the relevant lock bits (note that lock bits can not be reset). If valid NDEF management data is found in page 4, protect() also sets the NDEF write flag to read-only. The NTAG203 can not be password protected. If a *password* argument is provided, the protect() method always returns False. *class* `nfc.tag.tt2_nxp.``NTAG21x`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NTAG21x) Bases: [`nfc.tag.tt2.Type2Tag`](#nfc.tag.tt2.Type2Tag) Base class for the NTAG21x family (210/212/213/215/216). The methods and attributes documented here are supported for all NTAG21x products. All NTAG21x products support a simple password protection scheme that can be configured to restrict write as well as read access to memory starting from a selected page address. A factory programmed ECC signature allows to verify the tag unique identifier. *class* `NDEF`(*tag*)[¶](#nfc.tag.tt2_nxp.NTAG21x.NDEF) Bases: `nfc.tag.tt2.NDEF` `signature`[¶](#nfc.tag.tt2_nxp.NTAG21x.signature) The 32-byte ECC tag signature programmed at chip production. The signature is provided as a string and can only be read. The signature attribute is always loaded from the tag when it is accessed, i.e. it is not cached. If communication with the tag fails for some reason the signature attribute is set to a 32-byte string of all zeros. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt2_nxp.NTAG21x.protect) Set password protection or permanent lock bits. If the *password* argument is None, all memory pages will be protected by setting the relevant lock bits (note that lock bits can not be reset). If valid NDEF management data is found, protect() also sets the NDEF write flag to read-only. All Tags of the NTAG21x family can alternatively be protected by password. If a *password* argument is provided, the protect() method writes the first 4 byte of the *password* string into the Tag’s password (PWD) memory bytes and the following 2 byte of the *password* string into the password acknowledge (PACK) memory bytes. Factory default values are used if the *password* argument is an empty string. Lock bits are not set for password protection. The *read_protect* and *protect_from* arguments are only evaluated if *password* is not None. If *read_protect* is True, the memory protection bit (PROT) is set to require password verification also for reading of protected memory pages. The value of *protect_from* determines the first password protected memory page (one page is 4 byte) with the exception that the smallest set value is page 3 even if *protect_from* is smaller. `authenticate`(*password*)[¶](#nfc.tag.tt2_nxp.NTAG21x.authenticate) Authenticate with password to access protected memory. An NTAG21x implements a simple password protection scheme. The reader proofs possession of a share secret by sending a 4-byte password and the tag proofs possession of a shared secret by returning a 2-byte password acknowledge. Because password and password acknowledge are transmitted in plain text special considerations should be given to under which conditions authentication is performed. If, for example, an attacker is able to mount a relay attack both secret values are easily lost. The *password* argument must be a string of length zero or at least 6 byte characters. If the *password* length is zero, authentication is performed with factory default values. If the *password* contains at least 6 bytes, the first 4 byte are send to the tag as the password secret and the following 2 byte are compared against the password acknowledge that is received from the tag. The authentication result is True if the password was confirmed and False if not. *class* `nfc.tag.tt2_nxp.``NTAG210`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NTAG210) Bases: [`nfc.tag.tt2_nxp.NTAG21x`](#nfc.tag.tt2_nxp.NTAG21x) The NTAG210 provides 48 bytes user data memory, password protection, originality signature and a UID mirror function. `dump`()[¶](#nfc.tag.tt2_nxp.NTAG210.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.NTAG210.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``NTAG212`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NTAG212) Bases: [`nfc.tag.tt2_nxp.NTAG21x`](#nfc.tag.tt2_nxp.NTAG21x) The NTAG212 provides 128 bytes user data memory, password protection, originality signature and a UID mirror function. `dump`()[¶](#nfc.tag.tt2_nxp.NTAG212.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.NTAG212.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``NTAG213`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NTAG213) Bases: [`nfc.tag.tt2_nxp.NTAG21x`](#nfc.tag.tt2_nxp.NTAG21x) The NTAG213 provides 144 bytes user data memory, password protection, originality signature, a tag read counter and a mirror function for the tag unique identifier and the read counter. `dump`()[¶](#nfc.tag.tt2_nxp.NTAG213.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.NTAG213.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``NTAG215`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NTAG215) Bases: [`nfc.tag.tt2_nxp.NTAG21x`](#nfc.tag.tt2_nxp.NTAG21x) The NTAG215 provides 504 bytes user data memory, password protection, originality signature, a tag read counter and a mirror function for the tag unique identifier and the read counter. `dump`()[¶](#nfc.tag.tt2_nxp.NTAG215.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.NTAG215.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``NTAG216`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NTAG216) Bases: [`nfc.tag.tt2_nxp.NTAG21x`](#nfc.tag.tt2_nxp.NTAG21x) The NTAG216 provides 888 bytes user data memory, password protection, originality signature, a tag read counter and a mirror function for the tag unique identifier and the read counter. `dump`()[¶](#nfc.tag.tt2_nxp.NTAG216.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.NTAG216.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``MifareUltralightEV1`(*clf*, *target*, *product*)[¶](#nfc.tag.tt2_nxp.MifareUltralightEV1) Bases: [`nfc.tag.tt2_nxp.NTAG21x`](#nfc.tag.tt2_nxp.NTAG21x) Mifare Ultralight EV1 *class* `nfc.tag.tt2_nxp.``MF0UL11`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.MF0UL11) Bases: [`nfc.tag.tt2_nxp.MifareUltralightEV1`](#nfc.tag.tt2_nxp.MifareUltralightEV1) `dump`()[¶](#nfc.tag.tt2_nxp.MF0UL11.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.MF0UL11.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``MF0ULH11`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.MF0ULH11) Bases: [`nfc.tag.tt2_nxp.MifareUltralightEV1`](#nfc.tag.tt2_nxp.MifareUltralightEV1) `dump`()[¶](#nfc.tag.tt2_nxp.MF0ULH11.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.MF0ULH11.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``MF0UL21`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.MF0UL21) Bases: [`nfc.tag.tt2_nxp.MifareUltralightEV1`](#nfc.tag.tt2_nxp.MifareUltralightEV1) `dump`()[¶](#nfc.tag.tt2_nxp.MF0UL21.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.MF0UL21.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``MF0ULH21`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.MF0ULH21) Bases: [`nfc.tag.tt2_nxp.MifareUltralightEV1`](#nfc.tag.tt2_nxp.MifareUltralightEV1) `dump`()[¶](#nfc.tag.tt2_nxp.MF0ULH21.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.MF0ULH21.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``NTAGI2C`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NTAGI2C) Bases: [`nfc.tag.tt2.Type2Tag`](#nfc.tag.tt2.Type2Tag) *class* `nfc.tag.tt2_nxp.``NT3H1101`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NT3H1101) Bases: [`nfc.tag.tt2_nxp.NTAGI2C`](#nfc.tag.tt2_nxp.NTAGI2C) NTAG I2C 1K. `dump`()[¶](#nfc.tag.tt2_nxp.NT3H1101.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.NT3H1101.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. *class* `nfc.tag.tt2_nxp.``NT3H1201`(*clf*, *target*)[¶](#nfc.tag.tt2_nxp.NT3H1201) Bases: [`nfc.tag.tt2_nxp.NTAGI2C`](#nfc.tag.tt2_nxp.NTAGI2C) NTAG I2C 2K. `dump`()[¶](#nfc.tag.tt2_nxp.NT3H1201.dump) Returns the tag memory pages as a list of formatted strings. [`dump()`](#nfc.tag.tt2_nxp.NT3H1201.dump) iterates over all tag memory pages (4 bytes each) from page zero until an error response is received and produces a list of strings that is intended for line by line printing. Note that multiple consecutive memory pages of identical content may be reduced to fewer lines of output, so the number of lines returned does not necessarily correspond to the number of memory pages. #### [Type 3 Tag](#id4)[¶](#module-nfc.tag.tt3) *exception* `nfc.tag.tt3.``Type3TagCommandError`(*errno*)[¶](#nfc.tag.tt3.Type3TagCommandError) Bases: [`nfc.tag.TagCommandError`](#nfc.tag.TagCommandError) *class* `nfc.tag.tt3.``ServiceCode`(*number*, *attribute*)[¶](#nfc.tag.tt3.ServiceCode) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) A service code provides access to a group of data blocks located on the card file system. A service code is a 16-bit structure composed of a 10-bit service number and a 6-bit service attribute. The service attribute determines the service type and whether authentication is required. `pack`()[¶](#nfc.tag.tt3.ServiceCode.pack) Pack the service code for transmission. Returns a 2 byte string. *classmethod* `unpack`(*s*)[¶](#nfc.tag.tt3.ServiceCode.unpack) Unpack and return a ServiceCode from a byte string. *class* `nfc.tag.tt3.``BlockCode`(*number*, *access=0*, *service=0*)[¶](#nfc.tag.tt3.BlockCode) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) A block code indicates a data block within a service. A block code is a 16-bit or 24-bit structure composed of a length bit (1b if the block number is less than 256), a 3-bit access mode, a 4-bit service list index and an 8-bit or 16-bit block number. `pack`()[¶](#nfc.tag.tt3.BlockCode.pack) Pack the block code for transmission. Returns a 2-3 byte string. *class* `nfc.tag.tt3.``Type3Tag`(*clf*, *target*)[¶](#nfc.tag.tt3.Type3Tag) Bases: [`nfc.tag.Tag`](#nfc.tag.Tag) Implementation of the NFC Forum Type 3 Tag specification. The NFC Forum Type 3 Tag is based on the Sony FeliCa protocol and command specification. An NFC Forum compliant Type 3 Tag responds to a FeliCa polling command with system code 0x12FC and was configured to support service code 0x000B for NDEF data read and service code 0x0009 for NDEF data write (the latter may not be present if the tag is read-only) without encryption. *class* `NDEF`(*tag*)[¶](#nfc.tag.tt3.Type3Tag.NDEF) Bases: `nfc.tag.NDEF` `dump`()[¶](#nfc.tag.tt3.Type3Tag.dump) Read all data blocks of an NFC Forum Tag. For an NFC Forum Tag (system code 0x12FC) [`dump()`](#nfc.tag.tt3.Type3Tag.dump) reads all data blocks from service 0x000B (NDEF read service) and returns a list of strings suitable for printing. The number of strings returned does not necessarily reflect the number of data blocks because a range of data blocks with equal content is reduced to fewer lines of output. `dump_service`(*sc*)[¶](#nfc.tag.tt3.Type3Tag.dump_service) Read all data blocks of a given service. [`dump_service()`](#nfc.tag.tt3.Type3Tag.dump_service) reads all data blocks from the service with service code *sc* and returns a list of strings suitable for printing. The number of strings returned does not necessarily reflect the number of data blocks because a range of data blocks with equal content is reduced to fewer lines of output. `format`(*version=None*, *wipe=None*)[¶](#nfc.tag.tt3.Type3Tag.format) Format and blank an NFC Forum Type 3 Tag. A generic NFC Forum Type 3 Tag can be (re)formatted if it is in either one of blank, initialized or readwrite state. By formatting, all contents of the attribute information block is overwritten with values determined. The number of user data blocks is determined by reading all memory until an error response. Similarily, the maximum number of data block that can be read or written with a single command is determined by sending successively increased read and write commands. The current data length is set to zero. The NDEF mapping version is set to the latest known version number (1.0), unless the *version* argument is provided and it’s major version number corresponds to one of the known major version numbers. By default, no data other than the attribute block is modified. To overwrite user data the *wipe* argument must be set to an integer value. The lower 8 bits of that value are written to all data bytes that follow the attribute block. `polling`(*system_code=65535*, *request_code=0*, *time_slots=0*)[¶](#nfc.tag.tt3.Type3Tag.polling) Aquire and identify a card. The Polling command is used to detect the Type 3 Tags in the field. It is also used for initialization and anti-collision. The *system_code* identifies the card system to acquire. A card can have multiple systems. The first system that matches *system_code* will be activated. A value of 0xff for any of the two bytes works as a wildcard, thus 0xffff activates the very first system in the card. The card identification data returned are the Manufacture ID (IDm) and Manufacture Parameter (PMm). The *request_code* tells the card whether it should return additional information. The default value 0 requests no additional information. Request code 1 means that the card shall also return the system code, so polling for system code 0xffff with request code 1 can be used to identify the first system on the card. Request code 2 asks for communication performance data, more precisely a bitmap of possible communication speeds. Not all cards provide that information. The number of *time_slots* determines whether there’s a chance to receive a response if multiple Type 3 Tags are in the field. For the reader the number of time slots determines the amount of time to wait for a response. Any Type 3 Tag in the field, i.e. powered by the field, will choose a random time slot to respond. With the default *time_slots* value 0 there will only be one time slot available for all responses and multiple responses would produce a collision. More time slots reduce the chance of collisions (but may result in an application working with a tag that was just accidentially close enough). Only specific values should be used for *time_slots*, those are 0, 1, 3, 7, and 15. Other values may produce unexpected results depending on the tag product. [`polling()`](#nfc.tag.tt3.Type3Tag.polling) returns either the tuple (IDm, PMm) or the tuple (IDm, PMm, *additional information*) depending on the response lengt, all as bytearrays. Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `read_without_encryption`(*service_list*, *block_list*)[¶](#nfc.tag.tt3.Type3Tag.read_without_encryption) Read data blocks from unencrypted services. This method sends a Read Without Encryption command to the tag. The data blocks to read are indicated by a sequence of [`BlockCode`](#nfc.tag.tt3.BlockCode) objects in *block_list*. Each block code must reference a [`ServiceCode`](#nfc.tag.tt3.ServiceCode) object from the iterable *service_list*. If any of the blocks and services do not exist, the tag will stop processing at that point and return a two byte error status. The status bytes become the [`errno`](#nfc.tag.TagCommandError.errno) value of the [`TagCommandError`](#nfc.tag.TagCommandError) exception. As an example, the following code reads block 5 from service 16 (service type ‘random read-write w/o key’) and blocks 0 to 1 from service 80 (service type ‘random read-only w/o key’): ``` sc1 = nfc.tag.tt3.ServiceCode(16, 0x09) sc2 = nfc.tag.tt3.ServiceCode(80, 0x0B) bc1 = nfc.tag.tt3.BlockCode(5, service=0) bc2 = nfc.tag.tt3.BlockCode(0, service=1) bc3 = nfc.tag.tt3.BlockCode(1, service=1) try: data = tag.read_without_encryption([sc1, sc2], [bc1, bc2, bc3]) except nfc.tag.TagCommandError as e: if e.errno > 0x00FF: print("the tag returned an error status") else: print("command failed with some other error") ``` Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `read_from_ndef_service`(**blocks*)[¶](#nfc.tag.tt3.Type3Tag.read_from_ndef_service) Read block data from an NDEF compatible tag. This is a convinience method to read block data from a tag that has system code 0x12FC (NDEF). For other tags this method simply returns `None`. All arguments are block numbers to read. To actually pass a list of block numbers requires unpacking. The following example calls would have the same effect of reading 32 byte data from from blocks 1 and 8.: ``` data = tag.read_from_ndef_service(1, 8) data = tag.read_from_ndef_service(*list(1, 8)) ``` Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `write_without_encryption`(*service_list*, *block_list*, *data*)[¶](#nfc.tag.tt3.Type3Tag.write_without_encryption) Write data blocks to unencrypted services. This method sends a Write Without Encryption command to the tag. The data blocks to overwrite are indicated by a sequence of [`BlockCode`](#nfc.tag.tt3.BlockCode) objects in the parameter *block_list*. Each block code must reference one of the [`ServiceCode`](#nfc.tag.tt3.ServiceCode) objects in the iterable *service_list*. If any of the blocks or services do not exist, the tag will stop processing at that point and return a two byte error status. The status bytes become the [`errno`](#nfc.tag.TagCommandError.errno) value of the [`TagCommandError`](#nfc.tag.TagCommandError) exception. The *data* to write must be a byte string or array of length `16 * len(block_list)`. As an example, the following code writes `16 * "\xAA"` to block 5 of service 16, `16 * "\xBB"` to block 0 of service 80 and `16 * "\xCC"` to block 1 of service 80 (all services are writeable without key): ``` sc1 = nfc.tag.tt3.ServiceCode(16, 0x09) sc2 = nfc.tag.tt3.ServiceCode(80, 0x09) bc1 = nfc.tag.tt3.BlockCode(5, service=0) bc2 = nfc.tag.tt3.BlockCode(0, service=1) bc3 = nfc.tag.tt3.BlockCode(1, service=1) sc_list = [sc1, sc2] bc_list = [bc1, bc2, bc3] data = 16 * "\xAA" + 16 * "\xBB" + 16 * "\xCC" try: data = tag.write_without_encryption(sc_list, bc_list, data) except nfc.tag.TagCommandError as e: if e.errno > 0x00FF: print("the tag returned an error status") else: print("command failed with some other error") ``` Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `write_to_ndef_service`(*data*, **blocks*)[¶](#nfc.tag.tt3.Type3Tag.write_to_ndef_service) Write block data to an NDEF compatible tag. This is a convinience method to write block data to a tag that has system code 0x12FC (NDEF). For other tags this method simply does nothing. The *data* to write must be a string or bytearray with length equal `16 * len(blocks)`. All parameters following *data* are interpreted as block numbers to write. To actually pass a list of block numbers requires unpacking. The following example calls would have the same effect of writing 32 byte zeros into blocks 1 and 8.: ``` tag.write_to_ndef_service(32 * "\0", 1, 8) tag.write_to_ndef_service(32 * "\0", *list(1, 8)) ``` Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `send_cmd_recv_rsp`(*cmd_code*, *cmd_data*, *timeout*, *send_idm=True*, *check_status=True*)[¶](#nfc.tag.tt3.Type3Tag.send_cmd_recv_rsp) Send a command and receive a response. This low level method sends an arbitrary command with the 8-bit integer *cmd_code*, followed by the captured tag identifier (IDm) if *send_idm* is `True` and the byte string or bytearray *cmd_data*. It then waits *timeout* seconds for a response, verifies that the response is correctly formatted and, if *check_status* is `True`, that the status flags do not indicate an error. All errors raise a [`TagCommandError`](#nfc.tag.TagCommandError) exception. Errors from response status flags produce an [`errno`](#nfc.tag.TagCommandError.errno) that is greater than 255, all other errors are below 256. *class* `nfc.tag.tt3.``Type3TagEmulation`(*clf*, *target*)[¶](#nfc.tag.tt3.Type3TagEmulation) Bases: [`nfc.tag.TagEmulation`](#nfc.tag.TagEmulation) Framework for Type 3 Tag emulation. *class* `nfc.tag.tt3_sony.``FelicaStandard`(*clf*, *target*)[¶](#nfc.tag.tt3_sony.FelicaStandard) Bases: [`nfc.tag.tt3.Type3Tag`](#nfc.tag.tt3.Type3Tag) Standard FeliCa is a range of FeliCa OS based card products with a flexible file system that supports multiple applications and services on the same card. Services can individually be protected with a card key and all communication with protected services is encrypted. `dump`()[¶](#nfc.tag.tt3_sony.FelicaStandard.dump) Read all data blocks of an NFC Forum Tag. For an NFC Forum Tag (system code 0x12FC) [`dump()`](#nfc.tag.tt3_sony.FelicaStandard.dump) reads all data blocks from service 0x000B (NDEF read service) and returns a list of strings suitable for printing. The number of strings returned does not necessarily reflect the number of data blocks because a range of data blocks with equal content is reduced to fewer lines of output. `request_service`(*service_list*)[¶](#nfc.tag.tt3_sony.FelicaStandard.request_service) Verify existence of a service (or area) and get the key version. Each service (or area) to verify must be given as a [`ServiceCode`](#nfc.tag.tt3.ServiceCode) in the iterable *service_list*. The key versions are returned as a list of 16-bit integers, in the order requested. If a specified service (or area) does not exist, the key version will be 0xFFFF. Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `request_response`()[¶](#nfc.tag.tt3_sony.FelicaStandard.request_response) Verify that a card is still present and get its operating mode. The Request Response command returns the current operating state of the card. The operating state changes with the authentication process, a card is in Mode 0 after power-up or a Polling command, transitions to Mode 1 with Authentication1, to Mode 2 with Authentication2, and Mode 3 with any of the card issuance commands. The [`request_response()`](#nfc.tag.tt3_sony.FelicaStandard.request_response) method returns the mode as an integer. Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `search_service_code`(*service_index*)[¶](#nfc.tag.tt3_sony.FelicaStandard.search_service_code) Search for a service code that corresponds to an index. The Search Service Code command provides access to the iterable list of services and areas within the activated system. The *service_index* argument may be any value from 0 to 0xffff. As long as there is a service or area found for a given *service_index*, the information returned is a tuple with either one or two 16-bit integer elements. Two integers are returned for an area definition, the first is the area code and the second is the largest possible service index for the area. One integer, the service code, is returned for a service definition. The return value is `None` if the *service_index* was not found. For example, to print all services and areas of the active system: ``` for i in xrange(0x10000): area_or_service = tag.search_service_code(i) if area_or_service is None: break elif len(area_or_service) == 1: sc = area_or_service[0] print(nfc.tag.tt3.ServiceCode(sc >> 6, sc & 0x3f)) elif len(area_or_service) == 2: area_code, area_last = area_or_service print("Area {0:04x}--{0:04x}".format(area_code, area_last)) ``` Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `request_system_code`()[¶](#nfc.tag.tt3_sony.FelicaStandard.request_system_code) Return all system codes that are registered in the card. A card has one or more system codes that correspond to logical partitions (systems). Each system has a system code that could be used in a polling command to activate that system. The system codes responded by the card are returned as a list of 16-bit integers. ``` for system_code in tag.request_system_code(): print("System {0:04X}".format(system_code)) ``` Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). *class* `nfc.tag.tt3_sony.``FelicaMobile`(*clf*, *target*)[¶](#nfc.tag.tt3_sony.FelicaMobile) Bases: [`nfc.tag.tt3_sony.FelicaStandard`](#nfc.tag.tt3_sony.FelicaStandard) Mobile FeliCa is a modification of FeliCa for use in mobile phones. This class does currently not implement anything specific beyond recognition of the Mobile FeliCa OS version. *class* `nfc.tag.tt3_sony.``FelicaLite`(*clf*, *target*)[¶](#nfc.tag.tt3_sony.FelicaLite) Bases: [`nfc.tag.tt3.Type3Tag`](#nfc.tag.tt3.Type3Tag) FeliCa Lite is a version of FeliCa with simplified file system and security functions. The usable memory is 13 blocks (one block has 16 byte) plus a one block subtraction register. The tag can be configured with a card key to authenticate the tag and protect integrity of data reads. *class* `NDEF`(*tag*)[¶](#nfc.tag.tt3_sony.FelicaLite.NDEF) Bases: `nfc.tag.tt3.NDEF` `dump`()[¶](#nfc.tag.tt3_sony.FelicaLite.dump) Read all data blocks of an NFC Forum Tag. For an NFC Forum Tag (system code 0x12FC) [`dump()`](#nfc.tag.tt3_sony.FelicaLite.dump) reads all data blocks from service 0x000B (NDEF read service) and returns a list of strings suitable for printing. The number of strings returned does not necessarily reflect the number of data blocks because a range of data blocks with equal content is reduced to fewer lines of output. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt3_sony.FelicaLite.protect) Protect a FeliCa Lite Tag. A FeliCa Lite Tag can be provisioned with a custom password (or the default manufacturer key if the password is an empty string or bytearray) to ensure that data retrieved by future read operations, after authentication, is genuine. Read protection is not supported. A non-empty *password* must provide at least 128 bit key material, in other words it must be a string or bytearray of length 16 or more. The memory unit for the value of *protect_from* is 16 byte, thus with `protect_from=2` bytes 0 to 31 are not protected. If *protect_from* is zero (the default value) and the Tag has valid NDEF management data, the NDEF RW Flag is set to read only. `authenticate`(*password*)[¶](#nfc.tag.tt3_sony.FelicaLite.authenticate) Authenticate a FeliCa Lite Tag. A FeliCa Lite Tag is authenticated by a procedure that allows both the reader and the tag to calculate a session key from a random challenge send by the reader and a key that is securely stored on the tag and provided to [`authenticate()`](#nfc.tag.tt3_sony.FelicaLite.authenticate) as the *password* argument. If the tag was protected with an earlier call to [`protect()`](#nfc.tag.tt3_sony.FelicaLite.protect) then the same password should successfully authenticate. After authentication the [`read_with_mac()`](#nfc.tag.tt3_sony.FelicaLite.read_with_mac) method can be used to read data such that it can not be falsified on transmission. `format`(*version=16*, *wipe=None*)[¶](#nfc.tag.tt3_sony.FelicaLite.format) Format a FeliCa Lite Tag for NDEF. `read_without_mac`(**blocks*)[¶](#nfc.tag.tt3_sony.FelicaLite.read_without_mac) Read a number of data blocks without integrity check. This method accepts a variable number of integer arguments as the block numbers to read. The blocks are read with service code 0x000B (NDEF). Tag command errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `read_with_mac`(**blocks*)[¶](#nfc.tag.tt3_sony.FelicaLite.read_with_mac) Read a number of data blocks with integrity check. This method accepts a variable number of integer arguments as the block numbers to read. The blocks are read with service code 0x000B (NDEF). Along with the requested block data the tag returns a message authentication code that is verified before data is returned. If verification fails the return value of [`read_with_mac()`](#nfc.tag.tt3_sony.FelicaLite.read_with_mac) is None. A [`RuntimeError`](https://docs.python.org/3/library/exceptions.html#RuntimeError) exception is raised if the tag was not authenticated before calling this method. Tag command errors raise [`TagCommandError`](#nfc.tag.TagCommandError). `write_without_mac`(*data*, *block*)[¶](#nfc.tag.tt3_sony.FelicaLite.write_without_mac) Write a data block without integrity check. This is the standard write method for a FeliCa Lite. The 16-byte string or bytearray *data* is written to the numbered *block* in service 0x0009 (NDEF write service). ``` data = bytearray(range(16)) # 0x00, 0x01, ... 0x0F try: tag.write_without_mac(data, 5) # write block 5 except nfc.tag.TagCommandError: print("something went wrong") ``` Tag command errors raise [`TagCommandError`](#nfc.tag.TagCommandError). *class* `nfc.tag.tt3_sony.``FelicaLiteS`(*clf*, *target*)[¶](#nfc.tag.tt3_sony.FelicaLiteS) Bases: [`nfc.tag.tt3_sony.FelicaLite`](#nfc.tag.tt3_sony.FelicaLite) FeliCa Lite-S is a version of FeliCa Lite with enhanced security functions. It provides mutual authentication were both the tag and the reader must demonstrate posession of the card key before data writes can be made. It is also possible to require mutual authentication for data reads. *class* `NDEF`(*tag*)[¶](#nfc.tag.tt3_sony.FelicaLiteS.NDEF) Bases: `nfc.tag.tt3_sony.NDEF` `dump`()[¶](#nfc.tag.tt3_sony.FelicaLiteS.dump) Read all data blocks of an NFC Forum Tag. For an NFC Forum Tag (system code 0x12FC) [`dump()`](#nfc.tag.tt3_sony.FelicaLiteS.dump) reads all data blocks from service 0x000B (NDEF read service) and returns a list of strings suitable for printing. The number of strings returned does not necessarily reflect the number of data blocks because a range of data blocks with equal content is reduced to fewer lines of output. `protect`(*password=None*, *read_protect=False*, *protect_from=0*)[¶](#nfc.tag.tt3_sony.FelicaLiteS.protect) Protect a FeliCa Lite-S Tag. A FeliCa Lite-S Tag can be write and read protected with a custom password (or the default manufacturer key if the password is an empty string or bytearray). Note that the *read_protect* flag is only evaluated when a *password* is provided. A non-empty *password* must provide at least 128 bit key material, in other words it must be a string or bytearray of length 16 or more. The memory unit for the value of *protect_from* is 16 byte, thus with `protect_from=2` bytes 0 to 31 are not protected. If *protect_from* is zero (the default value) and the Tag has valid NDEF management data, the NDEF RW Flag is set to read only. `authenticate`(*password*)[¶](#nfc.tag.tt3_sony.FelicaLiteS.authenticate) Mutually authenticate with a FeliCa Lite-S Tag. FeliCa Lite-S supports enhanced security functions, one of them is the mutual authentication performed by this method. The first part of mutual authentication is to authenticate the tag with [`FelicaLite.authenticate()`](#nfc.tag.tt3_sony.FelicaLite.authenticate). If successful, the shared session key is used to generate the integrity check value for write operation to update a specific memory block. If that was successful then the tag is ensured that the reader has the correct card key. After successful authentication the [`read_with_mac()`](#nfc.tag.tt3_sony.FelicaLite.read_with_mac) and [`write_with_mac()`](#nfc.tag.tt3_sony.FelicaLiteS.write_with_mac) methods can be used to read and write data such that it can not be falsified on transmission. `write_with_mac`(*data*, *block*)[¶](#nfc.tag.tt3_sony.FelicaLiteS.write_with_mac) Write one data block with additional integrity check. If prior to calling this method the tag was not authenticated, a [`RuntimeError`](https://docs.python.org/3/library/exceptions.html#RuntimeError) exception is raised. Command execution errors raise [`TagCommandError`](#nfc.tag.TagCommandError). *class* `nfc.tag.tt3_sony.``FelicaPlug`(*clf*, *target*)[¶](#nfc.tag.tt3_sony.FelicaPlug) Bases: [`nfc.tag.tt3.Type3Tag`](#nfc.tag.tt3.Type3Tag) FeliCa Plug is a contactless communication interface module for microcontrollers. #### [Type 4 Tag](#id5)[¶](#module-nfc.tag.tt4) *exception* `nfc.tag.tt4.``Type4TagCommandError`(*errno*)[¶](#nfc.tag.tt4.Type4TagCommandError) Bases: [`nfc.tag.TagCommandError`](#nfc.tag.TagCommandError) Type 4 Tag exception class. Beyond the generic error values from [`TagCommandError`](#nfc.tag.TagCommandError) this class covers ISO 7816-4 response APDU error codes. *class* `nfc.tag.tt4.``Type4Tag`(*clf*, *target*)[¶](#nfc.tag.tt4.Type4Tag) Bases: [`nfc.tag.Tag`](#nfc.tag.Tag) Implementation of the NFC Forum Type 4 Tag operation specification. The NFC Forum Type 4 Tag is based on ISO/IEC 14443 DEP protocol for Type A and B modulation and uses ISO/IEC 7816-4 command and response APDUs. *class* `NDEF`(*tag*)[¶](#nfc.tag.tt4.Type4Tag.NDEF) Bases: `nfc.tag.NDEF` `dump`()[¶](#nfc.tag.tt4.Type4Tag.dump) Returns tag data as a list of formatted strings. The [`dump()`](#nfc.tag.tt4.Type4Tag.dump) method provides useful output only for NDEF formatted Type 4 Tags. Each line that is returned contains a hexdump of 16 octets from the NDEF data file. `format`(*version=None*, *wipe=None*)[¶](#nfc.tag.tt4.Type4Tag.format) Erase the NDEF message on a Type 4 Tag. The [`format()`](#nfc.tag.tt4.Type4Tag.format) method writes the length of the NDEF message on a Type 4 Tag to zero, thus the tag will appear to be empty. If the *wipe* argument is set to some integer then [`format()`](#nfc.tag.tt4.Type4Tag.format) will also overwrite all user data with that integer (mod 256). Despite it’s name, the [`format()`](#nfc.tag.tt4.Type4Tag.format) method can not format a blank tag to make it NDEF compatible; this requires proprietary information from the manufacturer. `transceive`(*data*, *timeout=None*)[¶](#nfc.tag.tt4.Type4Tag.transceive) Transmit arbitrary data and receive the response. This is a low level method to send arbitrary data to the tag. While it should almost always be better to use [`send_apdu()`](#nfc.tag.tt4.Type4Tag.send_apdu) this is the only way to force a specific timeout value (which is otherwise derived from the Tag’s answer to select). The *timeout* value is expected as a float specifying the seconds to wait. `send_apdu`(*cla*, *ins*, *p1*, *p2*, *data=None*, *mrl=0*, *check_status=True*)[¶](#nfc.tag.tt4.Type4Tag.send_apdu) Send an ISO/IEC 7816-4 APDU to the Type 4 Tag. The 4 byte APDU header (class, instruction, parameter 1 and 2) is constructed from the first four parameters (cla, ins, p1, p2) without interpretation. The byte string *data* argument represents the APDU command data field. It is encoded as a short or extended length field followed by the *data* bytes. The length field is not transmitted if *data* is None or an empty string. The maximum acceptable number of response data bytes is given with the max-response-length *mrl* argument. The value of *mrl* is transmitted as the 7816-4 APDU Le field after appropriate conversion. By default, the response is returned as a byte array not including the status word, a [`Type4TagCommandError`](#nfc.tag.tt4.Type4TagCommandError) exception is raised for any status word other than 9000h. Response status verification can be disabled with *check_status* set to False, the byte array will then include the response status word at the last two positions. Transmission errors always raise a [`Type4TagCommandError`](#nfc.tag.tt4.Type4TagCommandError) exception. *class* `nfc.tag.tt4.``Type4ATag`(*clf*, *target*)[¶](#nfc.tag.tt4.Type4ATag) Bases: [`nfc.tag.tt4.Type4Tag`](#nfc.tag.tt4.Type4Tag) *class* `nfc.tag.tt4.``Type4BTag`(*clf*, *target*)[¶](#nfc.tag.tt4.Type4BTag) Bases: [`nfc.tag.tt4.Type4Tag`](#nfc.tag.tt4.Type4Tag) ### nfc.llcp[¶](#module-nfc.llcp) The nfc.llcp module implements the NFC Forum Logical Link Control Protocol (LLCP) specification and provides a socket interface to use the connection-less and connection-mode transport facilities of LLCP. #### nfc.llcp.Socket[¶](#nfc-llcp-socket) *class* `nfc.llcp.``Socket`(*llc*, *sock_type*)[¶](#nfc.llcp.Socket) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) Create a new LLCP socket with the given socket type. The socket type should be one of: * `nfc.llcp.LOGICAL_DATA_LINK` for best-effort communication using LLCP connection-less PDU exchange * `nfc.llcp.DATA_LINK_CONNECTION` for reliable communication using LLCP connection-mode PDU exchange * `nfc.llcp.llc.RAW_ACCESS_POINT` for unregulated LLCP PDU exchange (useful to implement test programs) `llc`[¶](#nfc.llcp.Socket.llc) The `LogicalLinkController` instance to which this socket belongs. This attribute is read-only. `resolve`(*name*)[¶](#nfc.llcp.Socket.resolve) Resolve a service name into an address. This may involve conversation with the remote service discovery component if the name is hasn’t yet been resolved. The return value is the service access point address for the service name bound at the remote device. The address value 0 indicates that the remote device does not have a service with the requested name. The address value 1 indicates that the remote device has a data link connection service with the requested name that can only be connected by service name. The return value is None when communication with the peer device terminated while waiting for a response. `setsockopt`(*option*, *value*)[¶](#nfc.llcp.Socket.setsockopt) Set the value of the given socket option and return the current value which may have been corrected if it was out of bounds. `getsockopt`(*option*)[¶](#nfc.llcp.Socket.getsockopt) Return the value of the given socket option. `bind`(*address=None*)[¶](#nfc.llcp.Socket.bind) Bind the socket to address. The socket must not already be bound. The address may be a service name string, a service access point number, or it may be omitted. If address is a well-known service name the socket will be bound to the corresponding service access point address, otherwise the socket will be bound to the next available service access point address between 16 and 31 (inclusively). If address is a number between 32 and 63 (inclusively) the socket will be bound to that service access point address. If the address argument is omitted the socket will be bound to the next available service access point address between 32 and 63. `connect`(*address*)[¶](#nfc.llcp.Socket.connect) Connect to a remote socket at address. Address may be a service name string or a service access point number. `listen`(*backlog*)[¶](#nfc.llcp.Socket.listen) Mark a socket as a socket that will be used to accept incoming connection requests using accept(). The *backlog* defines the maximum length to which the queue of pending connections for the socket may grow. A backlog of zero disables queuing of connection requests. `accept`()[¶](#nfc.llcp.Socket.accept) Accept a connection. The socket must be bound to an address and listening for connections. The return value is a new socket object usable to send and receive data on the connection. `send`(*data*, *flags=0*)[¶](#nfc.llcp.Socket.send) Send data to the socket. The socket must be connected to a remote socket. Returns a boolean value that indicates success or failure. A false value is typically an indication that the socket or connection was closed. `sendto`(*data*, *addr*, *flags=0*)[¶](#nfc.llcp.Socket.sendto) Send data to the socket. The socket should not be connected to a remote socket, since the destination socket is specified by addr. Returns a boolean value that indicates success or failure. Failure to send is generally an indication that the socket was closed. `recv`()[¶](#nfc.llcp.Socket.recv) Receive data from the socket. The return value is a bytes object representing the data received. The maximum amount of data that may be returned is determined by the link or connection maximum information unit size. `recvfrom`()[¶](#nfc.llcp.Socket.recvfrom) Receive data from the socket. The return value is a pair (bytes, address) where string is a string representing the data received and address is the address of the socket sending the data. `poll`(*event*, *timeout=None*)[¶](#nfc.llcp.Socket.poll) Wait for a socket event. Posssible *event* values are the strings “recv”, “send” and “acks”. Whent the timeout is present and not `None`, it should be a floating point number specifying the timeout for the operation in seconds (or fractions thereof). For “recv” or “send” the [`poll()`](#nfc.llcp.Socket.poll) method returns `True` if a next [`recv()`](#nfc.llcp.Socket.recv) or [`send()`](#nfc.llcp.Socket.send) operation would be non-blocking. The “acks” event may only be used with a data-link-connection type socket; the call then returns `True` if the counter of received acknowledgements was greater than zero and decrements the counter by one. `getsockname`()[¶](#nfc.llcp.Socket.getsockname) Obtain the address to which the socket is bound. For an unbound socket the returned value is None. `getpeername`()[¶](#nfc.llcp.Socket.getpeername) Obtain the address of the peer connected on the socket. For an unconnected socket the returned value is None. `close`()[¶](#nfc.llcp.Socket.close) Close the socket. All future operations on the socket object will fail. The remote end will receive no more data Sockets are automatically closed when the logical link controller terminates (gracefully or by link disruption). A connection-mode socket will attempt to disconnect the data link connection (if in connected state). #### nfc.llcp.llc.LogicalLinkController[¶](#nfc-llcp-llc-logicallinkcontroller) *class* `nfc.llcp.llc.``LogicalLinkController`(***options*)[¶](#nfc.llcp.llc.LogicalLinkController) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) ### nfc.snep[¶](#module-nfc.snep) The nfc.snep module implements the NFC Forum Simple NDEF Exchange Protocol (SNEP) specification and provides a server and client class for applications to easily send or receive SNEP messages. #### nfc.snep.SnepServer[¶](#nfc-snep-snepserver) *class* `nfc.snep.``SnepServer`(*llc*, *service_name='urn:nfc:sn:snep'*, *max_acceptable_length=1048576*, *recv_miu=1984*, *recv_buf=15*)[¶](#nfc.snep.SnepServer) Bases: [`threading.Thread`](https://docs.python.org/3/library/threading.html#threading.Thread) NFC Forum Simple NDEF Exchange Protocol server `process_get_request`(*ndef_message*)[¶](#nfc.snep.SnepServer.process_get_request) Handle Get requests. This method should be overwritten by a subclass of SnepServer to customize it’s behavior. The default implementation simply returns nfc.snep.NotImplemented. `process_put_request`(*ndef_message*)[¶](#nfc.snep.SnepServer.process_put_request) Process a SNEP Put request. This method should be overwritten by a subclass of SnepServer to customize it’s behavior. The default implementation simply returns nfc.snep.Success. #### nfc.snep.SnepClient[¶](#nfc-snep-snepclient) *class* `nfc.snep.``SnepClient`(*llc*, *max_ndef_msg_recv_size=1024*)[¶](#nfc.snep.SnepClient) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) Simple NDEF exchange protocol - client implementation `connect`(*service_name*)[¶](#nfc.snep.SnepClient.connect) Connect to a SNEP server. This needs only be called to connect to a server other than the Default SNEP Server at `urn:nfc:sn:snep` or if the client wants to send multiple requests with a single connection. `close`()[¶](#nfc.snep.SnepClient.close) Close the data link connection with the SNEP server. `get_records`(*records=None*, *timeout=1.0*)[¶](#nfc.snep.SnepClient.get_records) Get NDEF message records from a SNEP Server. New in version 0.13. The [`ndef.Record`](https://ndeflib.readthedocs.io/en/stable/ndef.html#ndef.Record) list given by *records* is encoded as the request message octets input to [`get_octets()`](#nfc.snep.SnepClient.get_octets). The return value is an [`ndef.Record`](https://ndeflib.readthedocs.io/en/stable/ndef.html#ndef.Record) list decoded from the response message octets returned by [`get_octets()`](#nfc.snep.SnepClient.get_octets). Same as: ``` import ndef send_octets = ndef.message_encoder(records) rcvd_octets = snep_client.get_octets(send_octets, timeout) records = list(ndef.message_decoder(rcvd_octets)) ``` `get_octets`(*octets=None*, *timeout=1.0*)[¶](#nfc.snep.SnepClient.get_octets) Get NDEF message octets from a SNEP Server. New in version 0.13. If the client has not yet a data link connection with a SNEP Server, it temporarily connects to the default SNEP Server, sends the message octets, disconnects after the server response, and returns the received message octets. `put_records`(*records*, *timeout=1.0*)[¶](#nfc.snep.SnepClient.put_records) Send NDEF message records to a SNEP Server. New in version 0.13. The [`ndef.Record`](https://ndeflib.readthedocs.io/en/stable/ndef.html#ndef.Record) list given by *records* is encoded and then send via [`put_octets()`](#nfc.snep.SnepClient.put_octets). Same as: ``` import ndef octets = ndef.message_encoder(records) snep_client.put_octets(octets, timeout) ``` `put_octets`(*octets*, *timeout=1.0*)[¶](#nfc.snep.SnepClient.put_octets) Send NDEF message octets to a SNEP Server. New in version 0.13. If the client has not yet a data link connection with a SNEP Server, it temporarily connects to the default SNEP Server, sends the message octets and disconnects after the server response. ### nfc.handover[¶](#module-nfc.handover) The nfc.handover module implements the NFC Forum Connection Handover 1.2 protocol as a server and client class that simplify realization of handover selector and requester functionality. #### nfc.handover.HandoverServer[¶](#nfc-handover-handoverserver) *class* `nfc.handover.``HandoverServer`(*llc*, *request_size_limit=65536*, *recv_miu=1984*, *recv_buf=15*)[¶](#nfc.handover.HandoverServer) Bases: [`threading.Thread`](https://docs.python.org/3/library/threading.html#threading.Thread) NFC Forum Connection Handover server `process_handover_request_message`(*records*)[¶](#nfc.handover.HandoverServer.process_handover_request_message) Process a handover request message. The *records* argument holds a list of [`ndef.Record`](https://ndeflib.readthedocs.io/en/stable/ndef.html#ndef.Record) objects decoded from the received handover request message octets, where the first record type is `urn:nfc:wkt:Hr`. The method returns a list of [`ndef.Record`](https://ndeflib.readthedocs.io/en/stable/ndef.html#ndef.Record) objects with the first record typ `urn:nfc:wkt:Hs`. This method should be overwritten by a subclass to customize it’s behavior. The default implementation returns a [`ndef.HandoverSelectRecord`](https://ndeflib.readthedocs.io/en/stable/records/handover.html#ndef.HandoverSelectRecord) with version `1.2` and no alternative carriers. #### nfc.handover.HandoverClient[¶](#nfc-handover-handoverclient) *class* `nfc.handover.``HandoverClient`(*llc*)[¶](#nfc.handover.HandoverClient) Bases: [`object`](https://docs.python.org/3/library/functions.html#object) NFC Forum Connection Handover client `connect`(*recv_miu=248*, *recv_buf=2*)[¶](#nfc.handover.HandoverClient.connect) Connect to the remote handover server if available. Raises `nfc.llcp.ConnectRefused` if the remote device does not have a handover service or the service does not accept any more connections. `close`()[¶](#nfc.handover.HandoverClient.close) Disconnect from the remote handover server. `send_records`(*records*)[¶](#nfc.handover.HandoverClient.send_records) Send handover request message records to the remote server. `recv_records`(*timeout=None*)[¶](#nfc.handover.HandoverClient.recv_records) Receive a handover select message from the remote server.
rcheology
cran
R
Package ‘rcheology’ June 29, 2023 Version 4.3.1.0 Title Data on Base Packages for Current and Previous Versions of R Description Provides a dataset of functions in all base packages of R versions 1.0.1 onwards. License CC0 URL https://github.com/hughjonesd/rcheology BugReports https://github.com/hughjonesd/rcheology/issues Depends R(>= 2.10) Encoding UTF-8 LazyData true ByteCompile true RoxygenNote 7.1.1 NeedsCompilation no Author <NAME> [aut, cre] Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2023-06-29 14:50:05 UTC R topics documented: rcheology-packag... 2 fun_change... 3 rcheolog... 3 Rversion... 4 rcheology-package Data on base packages from current and previous versions of R Description rcheology is a data package providing two data frames: Details • rcheology lists objects in all versions of R from 1.0.1 onwards. • Rversions lists R versions and their release dates. NB: For a more complete and "canonical" solution, see the rversions package. The version of the rcheology package reflects the latest R version to be included in the data, e.g. 3.5.1.x contains data up to and including R 3.5.1. An online app for data exploration is available at https://hughjonesd.shinyapps.io/rcheology/. Where the data comes from: Versions 4.0.0 and up are installed from the CRAN apt repositories for Ubuntu Bionic. Versions 3.0.1 to 3.6.3 are installed from the CRAN apt repositories for Ubuntu Trusty Tahr. Version 3.5.0 and up use a special repository. Versions 2.5.1 to 3.0.0 are built from source on Ubuntu Lucid Lynx. Versions 1.2.3 to 2.4.1 are mostly built from source on Debian Sarge. Versions 1.0.1 to 1.2.2 (and a couple of later versions) are built from source on Debian Woody. Results are found from running ls on all installed packages from a minimal installation. Recom- mended packages are not included. The Rversions data frame lists versions of R and release dates. Limitations • Functions not built on the relevant platform - e.g. Windows functions - are not included. • Because data is collected using the original R version, it is subject to changes in the way R works. For example, before 2.5.0, args() didn’t work on Primitive functions, so those functions have no value in the args column. • I have failed to build tcltk on R versions 1.0.1-1.4.1 and 1.7.0/1, so there’s no tcltk data for these versions. If you can help, get in touch. fun_changed Check if a core R function changed between R versions Description Check if a core R function changed between R versions Usage fun_changed(fn, from = NULL, to = NULL, package = NULL) Arguments fn Character name of a function in a core R package. from Minimum R version (optional). to Maximum R version (optional). package Name of the package (optional). Value 0 if there was no change. 1 if the function’s arguments changed. 2 if the function was not present in all versions. If the function can’t be found or exists in multiple packages, throws an error. Examples fun_changed("debugonce") fun_changed("debugonce", "3.4.0", "3.4.3") fun_changed("debugonce", "3.3.0", "3.4.3") rcheology Data on objects from current and previous versions of R Description A data frame with every function (and other object) in versions of R from 1.0.1 onwards. Variables are: • package: package the object comes from • name: name of the object • Rversion: version of R as major.minor.patch • type: Result of calling typeof() on the object • class: class() of the object, separated by slashes if there are multiple classes. • exported: TRUE if the object name was found in getNamespaceExports(). True for anything in the "base" package. NA if the package does not have a namespace (e.g. "datasets" in early versions). • generic: TRUE if the object is an S4 generic according to methods::isGeneric() • args: the arguments of the function, or NA for non-functions Rversions Previous R versions with dates Description A data frame with 2 variables: • Rversion: version of R as major.minor.patch • date: date of release Details This goes back to 0.x releases. For 2.15.1-w, see here.
github.com/sozercan/kubectl-ai
go
Go
README [¶](#section-readme) --- ### Kubectl OpenAI plugin ✨ This project is a `kubectl` plugin to generate and apply Kubernetes manifests using OpenAI GPT. My main motivation is to avoid finding and collecting random manifests when dev/testing things. #### Demo [![asciicast](https://asciinema.org/a/MEXrlAqUjo7DMnfoyQearpVQ7.svg)](https://asciinema.org/a/MEXrlAqUjo7DMnfoyQearpVQ7) #### Installation ##### Homebrew Add to `brew` tap and install with: ``` brew tap sozercan/kubectl-ai https://github.com/sozercan/kubectl-ai brew install kubectl-ai ``` ##### Krew Add to `krew` index and install with: ``` kubectl krew index add kubectl-ai https://github.com/sozercan/kubectl-ai kubectl krew install kubectl-ai/kubectl-ai ``` ##### GitHub release * Download the binary from [GitHub releases](https://github.com/sozercan/kubectl-ai/releases). * If you want to use this as a [`kubectl` plugin](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/), then copy `kubectl-ai` binary to your `PATH`. If not, you can also use the binary standalone. #### Usage ##### Prerequisites `kubectl-ai` requires a valid Kubernetes configuration and one of the following: * [OpenAI API key](https://platform.openai.com/overview) * [Azure OpenAI Service](https://aka.ms/azure-openai) API key and endpoint * [Local AI](https://github.com/go-skynet/LocalAI) (see [getting started](https://localai.io/basics/getting_started/index.html)) For OpenAI, Azure OpenAI or LocalAI, you can use the following environment variables: ``` export OPENAI_API_KEY=<your OpenAI key> export OPENAI_DEPLOYMENT_NAME=<your OpenAI deployment/model name. defaults to "gpt-3.5-turbo-0301"> export OPENAI_ENDPOINT=<your OpenAI endpoint, like "https://my-aoi-endpoint.openai.azure.com" or "http://localhost:8080/v1"> ``` If `OPENAI_ENDPOINT` variable is set, then it will use the endpoint. Otherwise, it will use OpenAI API. Azure OpenAI service does not allow certain characters, such as `.`, in the deployment name. Consequently, `kubectl-ai` will automatically replace `gpt-3.5-turbo` to `gpt-35-turbo` for Azure. However, if you use an Azure OpenAI deployment name completely different from the model name, you can set `AZURE_OPENAI_MAP` environment variable to map the model name to the Azure OpenAI deployment name. For example: ``` export AZURE_OPENAI_MAP="gpt-3.5-turbo=my-deployment" ``` ##### Flags and environment variables * `--require-confirmation` flag or `REQUIRE_CONFIRMATION` environment varible can be set to prompt the user for confirmation before applying the manifest. Defaults to true. * `--temperature` flag or `TEMPERATURE` environment variable can be set between 0 and 1. Higher temperature will result in more creative completions. Lower temperature will result in more deterministic completions. Defaults to 0. * `--use-k8s-api` flag or `USE_K8S_API` environment variable can be set to use Kubernetes OpenAPI Spec to generate the manifest. This will result in very accurate completions including CRDs (if present in configured cluster). This setting will use more OpenAI API calls and it requires [function calling](https://openai.com/blog/function-calling-and-other-api-updates) which is available in `0613` or later models only. Defaults to false. However, this is recommended for accuracy and completeness. * `--k8s-openapi-url` flag or `K8S_OPENAPI_URL` environment variable can be set to use a custom Kubernetes OpenAPI Spec URL. This is only used if `--use-k8s-api` is set. By default, `kubectl-ai` will use the configured Kubernetes API Server to get the spec unless this setting is configured. You can use the [default Kubernetes OpenAPI Spec](https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json) or generate a custom spec for completions that includes custom resource definitions (CRDs). You can generate custom OpenAPI Spec by using `kubectl get --raw /openapi/v2 > swagger.json`. ##### Use with external editors If you want to use an external editor to edit the generated manifest, you can set the `--raw` flag and pipe to the editor of your choice. For example: ``` # Visual Studio Code $ kubectl ai "create a foo namespace" --raw | code - # Vim $ kubectl ai "create a foo namespace" --raw | vim - ``` #### Examples ##### Creating objects with specific values ``` $ kubectl ai "create an nginx deployment with 3 replicas" ✨ Attempting to apply the following manifest: apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 80 Use the arrow keys to navigate: ↓ ↑ → ← ? Would you like to apply this? [Reprompt/Apply/Don't Apply]: + Reprompt ▸ Apply Don't Apply ``` ##### Reprompt to refine your prompt ``` ... Reprompt: update to 5 replicas and port 8080 ✨ Attempting to apply the following manifest: apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 5 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 8080 Use the arrow keys to navigate: ↓ ↑ → ← ? Would you like to apply this? [Reprompt/Apply/Don't Apply]: + Reprompt ▸ Apply Don't Apply ``` ##### Multiple objects ``` $ kubectl ai "create a foo namespace then create nginx pod in that namespace" ✨ Attempting to apply the following manifest: apiVersion: v1 kind: Namespace metadata: name: foo --- apiVersion: v1 kind: Pod metadata: name: nginx namespace: foo spec: containers: - name: nginx image: nginx:latest Use the arrow keys to navigate: ↓ ↑ → ← ? Would you like to apply this? [Reprompt/Apply/Don't Apply]: + Reprompt ▸ Apply Don't Apply ``` ##### Optional `--require-confirmation` flag ``` $ kubectl ai "create a service with type LoadBalancer with selector as 'app:nginx'" --require-confirmation=false ✨ Attempting to apply the following manifest: apiVersion: v1 kind: Service metadata: name: nginx-service spec: selector: app: nginx ports: - port: 80 targetPort: 80 type: LoadBalancer ``` > Please note that the plugin does not know the current state of the cluster (yet?), so it will always generate the full manifest. Documentation [¶](#section-documentation) --- ![The Go Gopher](/static/shared/gopher/airplane-1200x945.svg) There is no documentation for this package.
KSPM
cran
R
Package ‘KSPM’ October 12, 2022 Title Kernel Semi-Parametric Models Version 0.2.1 Description To fit the kernel semi-parametric model and its extensions. It allows multiple ker- nels and unlimited interactions in the same model. Coefficients are estimated by maximiz- ing a penalized log-likelihood; penalization terms and hyperparameters are estimated by mini- mizing leave-one-out error. It includes predictions with confidence/prediction intervals, statisti- cal tests for the significance of each kernel, a procedure for variable selection and graphi- cal tools for diagnostics and interpretation of covariate effects. Currently it is imple- mented for continuous dependent variables. The package is based on the pa- per of Liu et al. (2007), <doi:10.1111/j.1541-0420.2007.00799.x>. Depends R (>= 3.5.0) License GPL-3 Encoding UTF-8 LazyData true RoxygenNote 6.1.1 Imports expm, CompQuadForm, DEoptim Suggests testthat, knitr, rmarkdown VignetteBuilder knitr NeedsCompilation no Author <NAME> [aut, cre], <NAME> [ctb], <NAME> [ctb] Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2020-08-10 13:32:11 UTC R topics documented: case.names.ksp... 2 coef.ksp... 3 confint.ksp... 4 cooks.distance.ksp... 5 cs... 6 derivative... 7 deviance.ksp... 8 energ... 9 extractAIC.ksp... 9 fitted.ksp... 11 flexible.summar... 12 get.parameter... 13 hypercoe... 14 info.ksp... 15 Kerne... 16 kernel.functio... 17 kernel.lis... 18 kernel.matri... 19 kernel.metho... 20 ksp... 21 kspmContro... 23 logLik.ksp... 25 lossFunction.loo... 26 nobs.ksp... 26 plot.derivative... 27 plot.ksp... 28 predict.ksp... 30 print.ksp... 31 residuals.ksp... 32 rstandard.ksp... 33 search.parameter... 33 sigma.ksp... 34 stepKSP... 35 summary.ksp... 36 test.functio... 38 variable.names.ksp... 39 case.names.kspm Case names of fitted models Description Simple utility returning names of cases involved in a kernel semi parametric model. Usage ## S3 method for class 'kspm' case.names(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Value a character vector. Author(s) <NAME>, <NAME>, <NAME> See Also kspm for fitting model, nobs.kspm, variable.names.kspm. coef.kspm Extract Model Coefficients Description Returns linear and kernel coefficients for a model of class "kspm". Usage ## S3 method for class 'kspm' coef(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Value Two matrices of coefficients. linear A vector of coefficients for linear part. One row is one variable. kernel A matrix of coefficients for linear part. One row is one subject, one column is one kernel part. Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. See Also kspm for fitting model. Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) coef(fit) confint.kspm Confidence interavls for linear part of model parameters Description Computes confidence intervals for one or more parameters in the linear part of a fitted model of class "kspm". Usage ## S3 method for class 'kspm' confint(object, parm = NULL, level = 0.95, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. parm a vector of names specifying which parameters are to be given confidence inter- vals. If missing, all parameters are considered. level the confidence level required. By default 0.95. ... additional optional argument (currently unused). Details For objects of class "kspm", the confidence interval is based on student distribution and effective degree of freedom of the model. Value A matrix with column giving lower and upper confidence limits for each parameter. These are labelled as 1−level 2 and 1 − 1−level 2 in percentage. Author(s) <NAME>, <NAME>, <NAME> See Also kspm for fitting model, summary.kspm. Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) confint(fit) cooks.distance.kspm Cook’s distance for a Kernel Semi Parametric Model Fit Description Computes the Cook’s distance method for an object of class "kspm". Usage ## S3 method for class 'kspm' cooks.distance(model, ...) Arguments model an model of class "kspm", usually, a result of a call to kspm. ... furter arguments passed to or from other methods (currently unused). Details i ii Cook’s distance values (Ci ) are computed as follows: Ci = σ̂2 tr(H)(1−h ii ) ual of subject i, h_ii is the i th diagonal element of Hat matrix H corresponding to the leverage associated with subject i and tr(H) is the trace of the Hat matrix H. Value A vector containing Cook’s distance values. Author(s) <NAME>, <NAME>, <NAME> See Also kspm for fitting model, residuals.kspm, rstandard.kspm, plot.kspm. csm Conventional and Social media features of 187 movies. Description A dataset containing the ratings and other attributes of 187 movies. Usage csm Format A data frame with 187 rows and 13 variables: Year year at which movies were projected on the screens Ratings ratings Genre genre of the movie Gross gross income in USD Budget budget in USD Screens number of screens in USA Sequel sequel Sentiment sentiment score Views number of views of movie trailer on Youtube Likes number of likes of movie trailer on Youtube Dislikes number of dislikes of movie trailer on Youtube Comments number of comments of movie trailer on Youtube Aggregate.Followers aggregate actor followers on Twitter Source https://archive.ics.uci.edu/ml/index.php References AHMED, Mehreen, JAHANGIR, Maham, AFZAL, Hammad, et al. Using Crowd-source based features from social media and Conventional features to predict the movies popularity. In : Smart City/SocialCom/SustainCom (SmartCity), 2015 IEEE International Conference on. IEEE, 2015. p. 273-278. derivatives Computing kernel function derivatives Description derivatives is a function for "kspm" object computing pointwise partial derivatives of h(Z) ac- croding to each Z variable. Usage derivatives(object) Arguments object an object of class "kspm", usually, a result of a call to kspm. Details derivatives are not computed for interactions. If a variable is included in several kernels, the user may obtain the corresponding pointwise derivatives by summing the pointwise derivatives associ- ated with each kernel. Value an object of class ’derivatives’ derivmat a list of n × d matrix (one for each kernel) where n is the number of subjects and d the number of variables included in the kernel rawmat a n × q matrix with all variables included in the kernel part of the model q the number of variables included in the whole kernel part scalemat scaled version of rawmat modelmat matrix of correspondance between variable and kernels Author(s) <NAME>, <NAME>, <NAME> References Kim, Choongrak, <NAME>, and <NAME>. "Influence diagnostics in semiparametric regression models." Statistics and probability letters 60.1 (2002): 49:58. See Also plot.derivatives deviance.kspm Model deviance Description Returns the deviance of a fitted model object of class "kspm". Usage ## S3 method for class 'kspm' deviance(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm, for which the deviance is desired. ... additional optional argument (currently unused). Details This function extracts deviance of a model fitted using kspm function. The returned deviance is the residual sum of square (RSS). Value The value of the deviance extracted from the object object. Author(s) <NAME>, <NAME>, <NAME> See Also kspm, extractAIC.kspm Examples x <- 1:15 y <- 3*x + rnorm(15, 0, 2) fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear")) deviance(fit) energy Energy consumption measuring hourly during 22 days Description A dataset containing the energy consumption and other attributes during 22 days. Usage energy Format A data frame with 504 rows and 7 variables: power energy consumption date date Temperature temperature P pression HR humidity rate hour hour (categorical) hour.num hour (numerical) Source https://iles-ponant-edf-sei.opendatasoft.com, https://www.infoclimat.fr extractAIC.kspm Extract AIC from a Kernel Semi Parametric Model Description Computes the Akaike Information Criterion (AIC) for a kspm fit. Usage ## S3 method for class 'kspm' extractAIC(fit, scale = NULL, k = 2, correction = FALSE, ...) Arguments fit fitted model, usually the result of kspm. scale option not available for kspm fit. k numeric specifying the ’weight’ of the effective degrees of freedom (edf) part in the AIC formula. See details. correction boolean indicating if the corrected AIC should be computed instead of standard AIC, may be TRUE only for k=2. See details. ... additional optional argument (currently unused). Details The criterion used is AIC = nlog(RSS) + k(n − edf ) where RSS is the residual sum of squares and edf is the effective degree of freedom of the model. k = 2 corresponds to the traditional AIC, using k = log(n) provides Bayesian Information Criterion (BIC) instead. For k=2, the corrected Akaike’s Information Criterion (AICc) is obtained by AICc = AIC + 2(n−edf )(n−edf +1) Value extractAIC.kspm returns a numeric value corresponding to AIC. Of note, the AIC obtained here differs from a constant to the AIC obtained with extractAIC applied to a lm object. If one wants to compare a kspm model with a lm model, it is preferrable to compute again the lm model using kspm function by specifying kernel = NULL and apply extractAIC method on this model. Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. See Also stepKSPM for variable selection procedure based on AIC. Examples x <- 1:15 y <- 3*x + rnorm(15, 0, 2) fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear")) extractAIC(fit) fitted.kspm Extract Model Fitted values Description Returns fitted values for a model of class "kspm". Usage ## S3 method for class 'kspm' fitted(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Value The vector of fitted values. Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. See Also kspm for fitting model, residuals.kspm, coef.kspm, nobs.kspm. Examples x <- 1:15 z <- runif(15, 1, 6) y <- 3*x + z^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(z, kernel.function = "polynomial", d = 2, rho = 1, gamma = 0)) fitted(fit) flexible.summary Summarizing Kernel Semi parametric Model Fits with flexible param- eters for Davies’ approximation method Description for flexibility in summary method for an object of class "summary.kspm" Usage flexible.summary(object, method = "davies", acc = 1e-06, lim = 10000) Arguments object an object of class "summary.kspm", usually, a result of a call to summary.kspm. method method to approximate the chi square distribution in p-value computation, de- fault is ’davies’, another possibility is ’imhof’. acc, lim see davies and imhof functions in CompQuadForm package. Details the description of the model, including coefficients for the linear part and if asked for, test(s) of variance components associated with kernel part. Value Computes and returns the followimg summary statistics of the fitted kernel semi parametric model given in object residuals residuals coefficients a p × 4 matrix with columns for the estimated coefficient, its standard error, t statistic and corresponding (two sided) p value for the linear part of the model. sigma the square root of the estimated variance of the random error σ 2 = RSS edf where RSS is the residual sum of squares and edf is the effective degree of freedom. edf effective degrees of freedom e r.squared R2 , the fraction of variance explained by the model, 1 − P(y −yi ∗ )2 where y ∗ i is the mean of yi if there is an intercept and zero otherwise. adj.r.squared the above R2 statistics, adjusted, penalizing for higher p. score.test a q × 3 matrix with colums for the estimated lambda, tau and p value for the q kernels for which a test should be performed. global.p.value p value from the score test for the global model. sample.size sample size (all: global sample size, inc: complete data sample size). Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. <NAME> al. "RL SKAT: an exact and efficient score test for heritability and set tests." Genetics (2017): genetics 300395. <NAME>, and <NAME>. "Gene centric gene gene interaction: A model based kernel machine method." The Annals of Applied Statistics 6.3 (2012): 1134:1161. See Also kspm for fitting model, predict.kspm for predictions, plot.kspm for diagnostics Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) summary.fit <- summary(fit) flexible.summary(summary.fit, acc = 0.000001, lim = 1000) get.parameters compute Kernel Semi Parametric model parameters Description internal function to compute model parameters Usage get.parameters(X = NULL, Y = NULL, kernelList = NULL, free.parameters = NULL, n = NULL, not.missing = NULL, compute.kernel = NULL) Arguments X X matrix Y response matrix kernelList list of kernels free.parameters free parameters n number of samples not.missing number of non missing samples compute.kernel boolean indicating if kernel should be computed Author(s) <NAME>, <NAME>, <NAME> hypercoef Extract Model Hyper-parameter Description Returns hyper-parameters for a model of class "kspm". Usage hypercoef(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Value A list of parameter. lambda A vector of penalisation arameters. kernel A vector of tunning parameters. Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. See Also kspm for fitting model. Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) hypercoef(fit) info.kspm Giving information about Kernel Semi parametric Model Fits Description gives information about Kernel Semi parametric Model Fits Usage info.kspm(object, print = TRUE) Arguments object an object of class "kspm", usually, a result of a call to kspm. print logical, if TRUE, table of information are printed. Value info.kspm returns a table of information whose each row corresponds to a kernel included in the model and columns are: type type of object used to define the kernel dim dimension of data used in the model type.predict type of object the user should provide in predict.kspm function dim.predict dimension of object the user should provide in predict.kspm function Author(s) <NAME>, <NAME>, <NAME> See Also kspm, predict.kspm Kernel Create a Kernel Object Description Create a kernel object, to use as variable in a model formula. Usage Kernel(x, kernel.function, scale = TRUE, rho = NULL, gamma = NULL, d = NULL) Arguments x a formula, a vector or a matrix of variables grouped in the same kernel. It could also be a symetric matrix representing the Gram matrix, associated to a kernel function, already computed by the user. kernel.function type of kernel. Possible values are "gaussian", "linear", "polynomial", "sigmoid", "inverse.quadratic" or "equality". See details below. If x is a Gram matrix, associated to a kernel function, already computed by the user, kernel.function should be equal to "gram.matrix". scale boolean indicating if variables should be scaled before computing the kernel. rho, gamma, d kernel function hyperparameters. See details below. Details To use inside kspm() function. Given two p−dimensional vectors x and y,  • the Gaussian kernel is defined as k(x, y) = exp − kx−yk ρ where k x − y k is the Euclidean distance between x and y and ρ > 0 is the bandwidth of the kernel, • the linear kernel is defined as k(x, y) = xT y, • the polynomial kernel is defined as k(x, y) = (ρxT y + γ)d with ρ > 0, d is the polynomial order. Of note, a linear kernel is a polynomial kernel with ρ = d = 1 and γ = 0, • the sigmoid kernel is defined as k(x, y) = tanh(ρxT y + γ) which is similar to the sigmoid function in logistic regression, • the inverse quadratic function defined as k(x, y) = √ 1 2 with γ > 0, kx−yk +γ  • the equality kernel defined as k(x, y) = . Of note, Gaussian, inverse quadratic and equality kernels are measures of similarity resulting to a matrix containing 1 along the diagonal. Value A Kernel object including all parameters needed in computation of the model Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. kernel.function Kernel Functions Description These functions transform a n × p matrix into a n × n kernel matrix. Usage kernel.gaussian(x, rho = ncol(x)) kernel.linear(x) kernel.polynomial(x, rho = 1, gamma = 0, d = 1) kernel.sigmoid(x, rho = 1, gamma = 1) kernel.inverse.quadratic(x, gamma = 1) kernel.equality(x) Arguments x a n × p matrix gamma, rho, d kernel hyperparameters (see details) Details Given two p−dimensional vectors x and y,  • the Gaussian kernel is defined as k(x, y) = exp − kx−yk ρ where k x − y k is the Euclidean distance between x and y and ρ > 0 is the bandwidth of the kernel, • the linear kernel is defined as k(x, y) = xT y, • the polynomial kernel is defined as k(x, y) = (ρxT y + γ)d with ρ > 0, d is the polynomial order. Of note, a linear kernel is a polynomial kernel with ρ = d = 1 and γ = 0, • the sigmoid kernel is defined as k(x, y) = tanh(ρxT y + γ) which is similar to the sigmoid function in logistic regression, • the inverse quadratic function defined as k(x, y) = √ with γ > 0,  • the equality kernel defined as k(x, y) = . Of note, Gaussian, inverse quadratic and equality kernels are measures of similarity resulting to a matrix containing 1 along the diagonal. Value A n × n matrix. Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. kernel.list List of kernel parts included in the kernel semi parametric model Description internal method for listing all kernel parts included in the model Usage kernel.list(formula, data, names) Arguments formula kernel part formula provided in the kspm function. data data provided in the kspm function. names row names of samples as they are evaluated in kspm function. Author(s) <NAME>, <NAME>, <NAME> kernel.matrix Kernel matrix Description These functions transform a n × p matrix into a n × n kernel matrix. Usage kernel.matrix(Z, whichkernel, rho = NULL, gamma = NULL, d = NULL) Arguments Z a n × p matrix whichkernel kernel function gamma, rho, d kernel hyperparameters (see details) Details Given a n × p matrix, this function returns a n × n matrix where each cell represents the similarity between two samples defined by two p−dimensional vectors x and y,  • the Gaussian kernel is defined as k(x, y) = exp − kx−yk ρ where k x − y k is the Euclidean distance between x and y and ρ > 0 is the bandwidth of the kernel, • the linear kernel is defined as k(x, y) = xT y, • the polynomial kernel is defined as k(x, y) = (ρxT y + γ)d with ρ > 0, d is the polynomial order. Of note, a linear kernel is a polynomial kernel with ρ = d = 1 and γ = 0, • the sigmoid kernel is defined as k(x, y) = tanh(ρxT y + γ) which is similar to the sigmoid function in logistic regression, • the inverse quadratic function defined as k(x, y) = √ 1 2 with γ > 0, kx−yk +γ  • the equality kernel defined as k(x, y) = . Value A n × n matrix. Author(s) <NAME>, <NAME>, <NAME> See Also kernel.gaussian, kernel.linear, kernel.polynomial, kernel.equality, kernel.sigmoid, kernel.inverse.quadratic. kernel.method some internal methods in computation of kernel semi parametric model Description internal methods Usage comb(x, ...) check.integer(N) asOneSidedFormula(object) splitFormula(form, sep = "/") computes.Kernel(x, ind, nameKernel, not.missing = NULL) computes.Kernel.interaction(x, ind, nameKernel, not.missing = NULL) computes.KernelALL(kernelList, not.missing = NULL) renames.Kernel(object, names) objects.Kernel(formula) Arguments x list of objects ... other arguments N numeric value object formula provided in the kernel part of kspm function form formula sep separator ind index value nameKernel name of kernel not.missing non missing values kernelList list of kernels names name of kernel formula formula Author(s) <NAME>, <NAME>, <NAME> kspm Fitting Kernel Semi Parametric model Description kspm is used to fit kernel semi parametric models. Usage kspm(response, linear = NULL, kernel = NULL, data = NULL, level = 1, control = kspmControl()) Arguments response a character with the name of the response variable or a vector containing the outcome or a matrix with outcome in the first column. linear an optional object of class "formula": a symbolic description of the linear part of the model to be fitted or a vector or a matrix containing covariates included in the linear part of the model. Default is intercept only. The details of model specification are given under ‘Details’. kernel an object of class "formula": a symbolic description of the kernel part of the model to be fitted. If missing a linear model is fitted using lm function. The details of model specification are given under ‘Details’. data an optional data frame containing the variables in the model. If NULL (default), data are taken from the workspace. level printed information about the model (0: no information, 1: information about kernels included in the model (default)) control see kspmControl. Details The kernel semi parametric model refers to the following equation Yi = Xi β + h(Zi ) + ei with i = 1..n where n is the sample size, Y is the univariate response, Xβ is the linear part, h(Z) is the kernel part and e are the residuals. The linear part is defined using the linear argument by specifying the covariates X. It could be either a formula, a vector of length n if only one variable is included in the linear part or a n×p design matrix containing the values of the p covariates included in the linear part (columns), for each individuals (rows). By default, an intercept is included. To remove the intercept term, use formula specification and add the term -1, as usual. Kernel part is defined using the kernel argument. It should be a formula of Kernel object(s). For a multiple kernel semi parametric model, Kernel objects are separated by the usual signs "+", "*" and ":" to specify addition and interaction between kernels. Specification formats of each Kernel object may be different. See Kernel for more information about their specification. Value kspm returns an object of class kspm. An object of class kspm is a list containing the following components: linear.coefficients matrix of coefficients associated with linear part, the number of coefficients is the number of terms included in linear part kernel.coefficients matrix of coefficients associated with kernel part, the number of rows is the sample size included in the analysis and the number of columns is the number of kernels included in the model lambda penalization parameter(s) fitted.values the fitted mean values residuals the residuals, that is response minus the fitted values sigma standard deviation of residuals Y vector of responses X design matrix for linear part K kernel matrices computed by the model n.total total sample size n sample size of the model (model is performed on complete data only) edf effective degree of freedom linear.formula formula corresponding to the linear part of the model kernel.info information about kernels included in the model such as matrices of covari- ates (Z), kernel function (type), values of hyperparameters (rho, gamma, d). A boolean indicates if covariates were scaled (kernel.scale) and if TRUE, kernel.mean, kernel.sd and Z.scale give information about scaling. kernel.formula indicates the formula of the kernel and free.parameters indicates the hyper- parameters that were estimated by the model. Hat The hat matrix H such that Ŷ = HY L P A matrix corresponding to I − ` M` according to our notations XLX_inv A matrix corresponding to (XLX)−1 GinvM A list of matrix, each corresponding to a kernel and equaling G−1 ` M` according to our notations control List of control parameters Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. <NAME>, <NAME>, and <NAME>. "Influence diagnostics in semiparametric regression models." Statistics and probability letters 60.1 (2002): 49:58. Oualkacha, Karim, et al. "Adjusted sequence kernel association test for rare variants controlling for cryptic and family relatedness." Genetic epidemiology 37.4 (2013): 366:376. See Also summary.kspm for summary, predict.kspm for predictions, plot.kspm for diagnostics Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) summary(fit) kspmControl Control various aspects of the optimisation problem Description Allow the user to set some characteristics of the optimisation algorithm Usage kspmControl(interval.upper = NA, interval.lower = NA, trace = FALSE, optimize.tol = .Machine$double.eps^0.25, NP = NA, itermax = 500, CR = 0.5, F = 0.8, initialpop = NULL, storepopfrom = itermax + 1, storepopfreq = 1, p = 0.2, c = 0, reltol = sqrt(.Machine$double.eps), steptol = itermax, parallel = FALSE) Arguments interval.upper integer or vetor of initial maximum value(s) allowed for parameter(s) interval.lower integer or vetor of initial maximum value(s) allowed for parameter(s) trace boolean. If TRUE parameters value at each iteration are displayed. optimize.tol if optimize function is used. See optimize NP if DEoptim function is used. See DEoptim.control itermax if DEoptim function is used. See DEoptim.control CR if DEoptim function is used. See DEoptim.control F if DEoptim function is used. See DEoptim.control initialpop if DEoptim function is used. See DEoptim.control storepopfrom if DEoptim function is used. See DEoptim.control storepopfreq if DEoptim function is used. See DEoptim.control p if DEoptim function is used. See DEoptim.control c if DEoptim function is used. See DEoptim.control reltol if DEoptim function is used. See DEoptim.control steptol if DEoptim function is used. See DEoptim.control parallel if DEoptim function is used. See DEoptim.control Details When only one hyperparameter should be estimated, the optimisation problem calls the optimize function from stats basic package. Otherwise, it calls the DEoptim function from the pack- age DEoptim. In both case, the parameters are choosen among the initial interval defined by interval.lower and interval.upper. Value search.parameters is an iterative algorithm estimating model parameters and returns the follow- ing components: lambda tuning parameters for penalization. beta vector of coefficients associated with linear part of the model, the size being the number of variable in linear part (including an intercept term). alpha vector of coefficients associated with kernel part of the model, the size being the sample size. Ginv a matrix used in several calculations. Ginv = (λI + K)−1 . Author(s) <NAME>, <NAME>, <NAME> See Also link get.parameters for computation of parameters at each iteration logLik.kspm Log Likelihood of a kspm Object Description Returns the Log Likelihood value of the kernel semi parametric model represented by obect eval- uated at the estimated coefficients. Usage ## S3 method for class 'kspm' logLik(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Details The function returns the Log Likelihood computed as follow: logLik = − 12 RSS where RSS is the residual sum of squares. Value logLik of kspm fit Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. See Also kspm, extractAIC.kspm, deviance.kspm Examples x <- 1:15 y <- 3*x + rnorm(15, 0, 2) fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear")) logLik(fit) lossFunction.looe Computation of the leave one out error (LOOE) in kernel semi para- metric model Description internal function to optimize model for estimating hyperparameters based on LOOE Usage lossFunction.looe(param. = NULL, Y. = NULL, X. = NULL, kernelList. = NULL, n. = NULL, not.missing. = NULL, compute.kernel. = NULL, print.lambda. = FALSE) Arguments param. initial parameter values. Y. response matrix. X. X matrix (linear part). kernelList. list of kernels (kernel part). n. nb of samples. not.missing. nb of non missing samples. compute.kernel. boolean. If TRUE, the kernel matrix is computed at each iteration. Should be TRUE when hyperparameters of kernel functions should be estimated by the model. print.lambda. boolean. If TRUE, values of tunning parameters (lambda) are printed at each iteration. Author(s) <NAME>, <NAME>, <NAME> nobs.kspm Extract the number of observations from a Kernel Semi parametric Model Fit Description Extract the number of observations use to estimate the model coefficients. This is principally in- tented to be used in computing BIC (see extractAIC.kspm). Usage ## S3 method for class 'kspm' nobs(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Value A single number (integer). Author(s) <NAME>, <NAME>, <NAME> See Also kspm for fitting model, extractAIC.kspm. Examples x <- 1:15 y <- 3*x + rnorm(15, 0, 2) fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear")) nobs(fit) plot.derivatives Plot derivatives of a kspm object Description Plot of derivatives for kernel part of a kspm model. Usage ## S3 method for class 'derivatives' plot(x, subset = NULL, xlab = NULL, ylab = NULL, ...) Arguments x an object of class "derivatives", usually, a result of a call to derivatives. subset if a subset of the plots is required, specify the names of the variable for which plot of derivatives is required. xlab x label ylab y label ... further arguments passed to or from other methods. Details X axis represents the raw data used as input in kernel part of the model. Y axis represents the pointwise derivative values i.e. the derivatives of fitted value according to the variable of interest. Author(s) <NAME>, <NAME>, <NAME> References Kim, Choongrak, <NAME>, and <NAME>. "Influence diagnostics in semiparametric regression models." Statistics and probability letters 60.1 (2002): 49:58. See Also derivatives Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) plot(derivatives(fit)) plot.kspm Plot Diagnostics for a kspm Object Description p which) are currently available: a plot of residuals against fitted values, a Five plots (selectable by scale Location plot of | residuals | against fitted values, a Normal Q Q plot for residuals, a plot of Cook’s distances versus row labels and a plot of residuals against leverages. By default, the first three and 5 are provided. Usage ## S3 method for class 'kspm' plot(x, which = c(1:3, 5), cook.levels = c(0.5, 1), id.n = 3, labels.id = names(x$residuals), cex.id = 0.75, col.id = "blue", ...) Arguments x an object of class "kspm", usually, a result of a call to kspm. which if a subset of the plots is required, specify a subset of the numbers 1:5. cook.levels levels of Cook’s distance at which to draw contours. id.n number of points to be labelled in each plot, starting with the most extreme. labels.id vector of labels, from which the labels for extreme points will be chosen. NULL uses names associated to response specified in kspm. cex.id size of point labels. col.id color of point labels. ... further arguments passed to or from other methods. Author(s) <NAME>, <NAME>, <NAME> References Kim, Choongrak, <NAME>, and <NAME>. "Influence diagnostics in semiparametric regression models." Statistics and probability letters 60.1 (2002): 49:58. See Also kspm for fitting the model, summary.kspm for summary Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) plot(fit) predict.kspm Predicting Kernel Semi parametric Model Fits Description predict method for class "kspm". Usage ## S3 method for class 'kspm' predict(object, newdata.linear = NULL, newdata.kernel = NULL, interval = "none", level = 0.95, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. newdata.linear should be a data frame or design matrix of variables used in the linear part newdata.kernel a list containing data frame or design matrix of variables used in each kernel part depending on the specification format of each kernel. When a kernel has been specified using kernel.function = "gram.matrix" in Kernel function, the user should also provide the Gram matrix associated to the new data points in newdata.kernel. The function info.kspm may help to correctly specify it. interval type of interval calculation. If "none" (default), no interval is computed, if "confidence", the confidence interval is computed, if "prediction", the pre- diction interval is computed. level confidence level. Default is level = 0.95 meaning 95% confidence/prediction interval. ... further arguments passed to or from other methods. Details predict.kspm produces predicted values. If a new dataset is not specified, it will return the fitted values from the original data (complete data used in the model specification). If predict.kspm is applied to a new dataset, all variables used in the original model should be provided in newdata.linear and newdata.kernel arguments but only complete data may be provided. Setting interval spec- ifies computation of confidence or prediction intervals at the specified level. Value predict.kspm returns a vector of predictions or a matrix containing the following components if interval is set: fit predictions. lwr lower bound of confidence/prediction intervals. upr upper bound of confidence/prediction intervals. Author(s) <NAME>, <NAME>, <NAME> See Also kspm, summary.kspm. Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) predict(fit, interval = "confidence") print.kspm Print results from a Kernel Semi parametric Model Fit Description print method for class "kspm". Usage ## S3 method for class 'kspm' print(x, ...) ## S3 method for class 'summary.kspm' print(x, ...) Arguments x an object used to select a method. Usually, a result of a call to kspm or a result from summary.kspm. ... additional optional argument (currently unused). Author(s) <NAME>, <NAME>, <NAME> See Also kspm for fitting model, summary.kspm residuals.kspm Extract residuals from a Kernel Semi Parametric Model Description Returns the vector of residuals for a model fit of class "kspm". Usage ## S3 method for class 'kspm' residuals(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Value A vector of residuals. The vector length is the number of observations used in model coefficients estimation (see nobs.kspm). Author(s) <NAME>, <NAME>, <NAME> See Also kspm for fitting model, nobs.kspm, rstandard.kspm. Examples x <- 1:15 y <- 3*x + rnorm(15, 0, 2) fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear")) residuals(fit) rstandard.kspm Standardized residuals for Kernel Semi parametric Model Fits Description computes standardized residuals for an object of class "kspm". Usage ## S3 method for class 'kspm' rstandard(model, ...) Arguments model an model of class "kspm", usually, a result of a call to kspm. ... furter arguments passed to or from other methods (currently unused). Details ei Standardized residuals ti are obtained by ti = σ̂√1−h where ei is the residual, σ̂ is the estimated ii standard deviation of the errors and hii is the leverage of subject i, i.e. the i th diagonal element of the Hat matrix. Value a vector containing the standardized residuals. Author(s) <NAME>, <NAME>, <NAME> See Also kspm for fitting model, residuals.kspm, cooks.distance.kspm, plot.kspm. search.parameters Optimisation to cumpute hyperparameter in Kernel Semi Parametric model Description internal function to optimize model for estimating hyperparameters Usage search.parameters(Y = NULL, X = NULL, kernelList = NULL, n = NULL, not.missing = NULL, compute.kernel = NULL, controlKspm = NULL) Arguments Y response matrix X X matrix kernelList of kernels n nb of samples not.missing nb of non missing samples compute.kernel boolean kernel computation controlKspm control parameters Author(s) <NAME>, <NAME>, <NAME> sigma.kspm Extract residuals standard deviation Description Returns the residuals standard deviation (sigma) for object of class "kspm". Usage ## S3 method for class 'kspm' sigma(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Details q RSS The value returned by the method is edf where RSS is the residual sum of squares and edf is the effective degree of freedom. Value typically a number, the estimated standard deviation of the errors ("residual standard deviation") Author(s) <NAME>, <NAME>, <NAME> See Also kspm for fitting model, summary.kspm, residuals.kspm, nobs.kspm, deviance.kspm. stepKSPM Choose a model by AIC or BIC in a Stepwise Algorithm Description Performs stepwise model selection for Kernel Semi Parametric Model by AIC or BIC. Usage stepKSPM(object, data = NULL, linear.lower = NULL, linear.upper = NULL, kernel.lower = NULL, kernel.upper = NULL, direction = "both", k = 2, kernel.param = "fixed", trace = TRUE) Arguments object an object of class "kspm" with only one kernel. data data. linear.lower one side formula corresponding to the smallest set of variables that should be included in the linear part of the model. linear.upper one side formula corresponding to the largest set of variables that may be in- cluded in the linear part of the model. kernel.lower one side formula corresponding to the smallest set of variables that should be included in the kernel part of the model. kernel.upper one side formula corresponding to the largest set of variables that may be in- cluded in the kernel part of the model. direction the mode of stepwise search, can be one of "both" (default), "backward", or "forward". k type of information criteria used for the variable selection. If k=2 AIC is used (default), if k=log(n), BIC is used instead. kernel.param define if hyperparameters should be fixed ("fixed") or reestimated at each iter- ation ("change"). Tu use the last option, hyperparameter of model provided in object should have been estimated by the model. trace integer. If positive, information is printed during the running of step.kspm. Larger values may give more information on the fitting process. Details This procedure may be done on kspm object defined with only one kernel part and for which a data frame including all variables was provided. Selection may be done on linear part only, on kernel part only or on both at the same time. To perform selection on linear (resp. kernel) part only, kernel.lower and kernel.upper (resp. linear.lower and linear.upper) should contain all the variables that should stay in the model for kernel (resp. linear) part. Value stepKSPM returns the selected model. Author(s) <NAME>, <NAME>, <NAME> See Also extractAIC.kspm Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 4) z3 <- rnorm(15, 6, 2) z4 <- runif(15, -10, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) dfrm <- data.frame(x = x, z1 = z1, z2 = z2, z3 = z3, z4 = z4, y = y) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2 + z3 + z4, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0), data = dfrm) stepKSPM(fit, k = 2, data = dfrm) summary.kspm Summarizing Kernel Semi parametric Model Fits Description summary method for an object of class "kspm" Usage ## S3 method for class 'kspm' summary(object, kernel.test = "all", global.test = FALSE, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. kernel.test vector of characters indicating for which kernel a test should be performed. De- fault is "all". If "none", no test will be performed. global.test logical, if TRUE, a global test for kernel part is computed. ... further arguments passed to or from other methods. Details the description of the model, including coefficients for the linear part and if asked for, test(s) of variance components associated with kernel part. Value Computes and returns the followimg summary statistics of the fitted kernel semi parametric model given in object residuals residuals coefficients a p × 4 matrix with columns for the estimated coefficient, its standard error, t statistic and corresponding (two sided) p value for the linear part of the model. sigma the square root of the estimated variance of the random error σ 2 = RSS edf where RSS is the residual sum of squares and edf is the effective degree of freedom. edf effective degrees of freedom e r.squared R2 , the fraction of variance explained by the model, 1 − P(y −yi ∗ )2 where y ∗ i is the mean of yi if there is an intercept and zero otherwise. adj.r.squared the above R2 statistics, adjusted, penalizing for higher p. score.test a q × 3 matrix with colums for the estimated lambda, tau and p value for the q kernels for which a test should be performed. global.p.value p value from the score test for the global model. sample.size sample size (all: global sample size, inc: complete data sample size). Author(s) <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., and <NAME>. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088. <NAME>, et al. "RL SKAT: an exact and efficient score test for heritability and set tests." Genetics (2017): genetics 300395. Li, Shaoyu, and <NAME>. "Gene centric gene gene interaction: A model based kernel machine method." The Annals of Applied Statistics 6.3 (2012): 1134:1161. See Also kspm for fitting model, predict.kspm for predictions, plot.kspm for diagnostics Examples x <- 1:15 z1 <- runif(15, 1, 6) z2 <- rnorm(15, 1, 2) y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2) fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2, kernel.function = "polynomial", d= 2, rho = 1, gamma = 0)) summary(fit) test.function Score Tests for kernel part in kernel semi parametric model Description Perform score tests for kernel part in kernel semi parametric model Usage test.1.kernel(object) test.global.kernel(object) test.k.kernel(object, kernel.name) Arguments object an object of class "kspm" kernel.name vector of character listing names of kernels for which test should be performed Value p values Author(s) <NAME>, <NAME>, <NAME> References Schweiger, Regev, et al. "RL SKAT: an exact and efficient score test for heritability and set tests." Genetics (2017): genetics 300395. Li, Shaoyu, and <NAME>. "Gene centric gene gene interaction: A model based kernel machine method." The Annals of Applied Statistics 6.3 (2012): 1134:1161. Oualkacha, Karim, et al. "Adjusted sequence kernel association test for rare variants controlling for cryptic and family relatedness." Genetic epidemiology 37.4 (2013): 366:376. Ge, Tian, et al. "A kernel machine method for detecting effects of interaction between multidimen- sional variable sets: An imaging genetics application." Neuroimage 109 (2015): 505:514. variable.names.kspm Variable names of fitted models Description Simple utility returning names of variables involved in a kernel semi parametric model. Usage ## S3 method for class 'kspm' variable.names(object, ...) Arguments object an object of class "kspm", usually, a result of a call to kspm. ... additional optional argument (currently unused). Value a list of character vectors. The first element correspond to the names of variables included in the linear part of the model. Then, a vector containing names of variables including in kernel part is provided for each kernel. Author(s) <NAME>, <NAME>, <NAME> See Also kspm, summary.kspm, case.names.kspm.
MBCbook
cran
R
Package ‘MBCbook’ October 12, 2022 Encoding UTF-8 Type Package Title Companion Package for the Book ``Model-Based Clustering and Classification for Data Science'' by Bouveyron et al. (2019, ISBN:9781108644181). Version 0.1.1 Date 2019-07-1 Author <NAME> and <NAME> and <NAME> and <NAME> Maintainer <NAME> <<EMAIL>> Depends R (>= 3.1.0), mclust, Rmixmod, MASS, mvtnorm Suggests network, jpeg Description The companion package provides all original data sets and func- tions that are used in the book ``Model-Based Clustering and Classification for Data Sci- ence'' by <NAME>, <NAME>, <NAME>- phy and <NAME> (2019, ISBN:9781108644181). License GPL (>= 2) NeedsCompilation no Repository CRAN Date/Publication 2019-07-02 07:00:03 UTC R topics documented: MBCbook-packag... 2 Advic... 3 AIDSBlog... 4 amazonFineFood... 5 constrE... 5 Coworke... 7 credi... 7 denoisePatche... 8 Frien... 9 imageToPatc... 9 imsho... 10 NI... 11 PoliticalBlog... 11 puffi... 12 reconstructImag... 13 rqd... 13 UScongres... 15 usps35... 15 varSelE... 16 velib2... 17 velibCoun... 18 wine2... 19 MBCbook-package Companion Package for the Book "Model-Based Clustering and Classification for Data Science" by Bouveyron et al. (2019, ISBN:9781108644181). Description The companion package provides all original data sets and functions that are used in the book "Model-Based Clustering and Classification for Data Science" by <NAME>, <NAME>, <NAME> and <NAME> (2019, ISBN:9781108644181). Details The DESCRIPTION file: Encoding: UTF-8 Package: MBCbook Type: Package Title: Companion Package for the Book "Model-Based Clustering and Classification for Data Science" by Bouveyro Version: 0.1.1 Date: 2019-07-1 Author: <NAME> and <NAME> and <NAME> and <NAME> Maintainer: <NAME> <<EMAIL>> Depends: R (>= 3.1.0), mclust, Rmixmod, MASS, mvtnorm Suggests: network, jpeg Description: The companion package provides all original data sets and functions that are used in the book "Model-Based C License: GPL (>= 2) Index of help topics: AIDSBlogs The AIDSBlogs data set Advice The Advice data set from Lazega (2001) Coworker The Coworker data set from Lazega (2001) Friend The Friend data set from Lazega (2001) MBCbook-package Companion Package for the Book "Model-Based Clustering and Classification for Data Science" by Bouveyron et al. (2019, ISBN:9781108644181). NIR The chemometrics near-infrared (NIR) data set PoliticalBlogs The political blog data set UScongress The US congress vote data set amazonFineFoods The Amazon Fine Foods data set constrEM Semi-supervised clustering with must-link constraints credit The Credit data set denoisePatches Denoising of image patches imageToPatch Transform an image into a collection of patches imshow Display an image puffin The puffin data set reconstructImage Reconstructing an image from a patch decomposition rqda Robust (quadratic) discriminant analysis usps358 The handwritten digits usps358 data set varSelEM A variable selection algorithm for clustering velib2D The bivariate Vélib data set velibCount The discrete version (count data) of the Vélib data set wine27 The (27-dimensional) Italian Wine data set Author(s) <NAME> and <NAME> and <NAME> and <NAME> Maintainer: <NAME> <<EMAIL>> References <NAME> and <NAME> and <NAME> and <NAME>, Model-Based Clustering and Classification for Data Science: with Applications in R, Cambridge University Press, 2019. Advice The Advice data set from Lazega (2001) Description Lazega (2001) <doi:10.2307/3556688> collected a network data set detailing interactions between a set of 71 lawyers in a corporate law firm in the USA. The data include measurements of the advice network, friendship network and co-worker network between the lawyers within the firm. Further covariates associated with each lawyer in the firm are also available including age, seniority, college education and office location. Usage data("Advice") Format A large network object, which can be managed with the network library, with 71 nodes. References Lazega, E., The Collegial Phenomenon: The Social Mechanisms of Cooperation Among Peers in a Corporate Law Partnership, Oxford University Press, 2001 <doi:10.2307/3556688>. Examples data(Advice) AIDSBlogs The AIDSBlogs data set Description The AIDS blog data set records the pattern of citation among 146 unique blogs related to AIDS pa- tients and their support networks. The data were originally collected by Gopal (2007) <doi:10.1007/1- 4020-5427-0_18> over a randomly selected three-day period in August 2005. The nodes in the network correspond to blogs and a directed edge from one blog to another indicates that the former had a link to the latter in their web page. Usage data("AIDSBlogs") Format A large network object, which can be managed with the network library, with 146 nodes. References <NAME>., The evolving social geography of blogs, in M<NAME>. (ed.), Societies and Cities in the Age of Instant Access, The GeoJournal Library, vol. 88., pp. 275–293, 2007 <doi:10.1007/1-4020- 5427-0_18>. Examples data(AIDSBlogs) amazonFineFoods The Amazon Fine Foods data set Description The Amazon Fine Foods data set has 1646 rows and 1735 columns, describing whether an user (row) has noted and reviewed a product (column) or not. Usage data("amazonFineFoods") Format A data frame with binary values indicating whether an user (row) has noted and reviewed a product (column) or not. Source https://snap.stanford.edu/data/web-FineFoods.html. Examples data(amazonFineFoods) constrEM Semi-supervised clustering with must-link constraints Description Semi-supervised clustering with must-link constraints allows to cluster data for which must-link constraints are available. This function implements the method described in Shental et al. (2003, ISBN:9781615679119). Usage constrEM(X, K, C, maxit = 30) Arguments X a data frame of observations, assuming the rows are the observations and the columns the variables. Note that NAs are not allowed. K the number of desired groups. C a vector encoding the must-link constraints through chuncklets. This vector has to be of the length of the number of observations. Two observations that have to be in the same group must be in the same chuncklet. For instance, the chuncklet vector (1,2,3,4,3,5) indicate that 3rd and the 5th observations have a must-link constraint. If there is no must-link constraints, this vector should be simply 1:nrow(X). maxit the maximum number of iterations. Value A list is returned with the following fields: cls a vector containg the group memberships of the observations. T the posterior probabilities that the observations belong to the K groups. prop the estimated mixture proportions. mu the estimated mixture means. S the estimated mixture covariance matrices. ll the log-likelihood value at convergence. Author(s) <NAME> References This function implements the method described in Shental, N., <NAME>., <NAME>., and Wein- <NAME>., Computing Gaussian mixture models with EM using equivalence constraints, Proceedings of the 16th International Conference on Neural Information Processing Systems, pages 465–472, 2003 (ISBN:9781615679119). Examples # Simulation of some data set.seed(123) n = 200 m1 = c(0,0); m2 = 4*c(1,1); m3 = 4*c(1,1) S1 = diag(2); S2 = rbind(c(1,0),c(0,0.05)) S3 = rbind(c(0.05,0),c(0,1)) X = rbind(mvrnorm(n,m1,S1),mvrnorm(n,m2,S2),mvrnorm(n,m3,S3)) cls = rep(1:3,c(n,n,n)) # Encoding the constraints through chunklets # Observations 397 and 408 are in the same chunklet a = 398 b = 430 C = c(1:(b-1),a,b:(nrow(X)-1)) # Clustering with constrEM res = constrEM(X,K=3,C,maxit=20) Coworker The Coworker data set from Lazega (2001) Description Lazega (2001) <doi:10.2307/3556688> collected a network data set detailing interactions between a set of 71 lawyers in a corporate law firm in the USA. The data include measurements of the advice network, friendship network and co-worker network between the lawyers within the firm. Further covariates associated with each lawyer in the firm are also available including age, seniority, college education and office location. Usage data("Coworker") Format A large network object, which can be managed with the network library, with 71 nodes. References <NAME>., The Collegial Phenomenon: The Social Mechanisms of Cooperation Among Peers in a Corporate Law Partnership, Oxford University Press, 2001 <doi:10.2307/3556688>. Examples data(Coworker) credit The Credit data set Description The Credit data set has 66 rows and 11 columns, describing customers who took out loans from a credit company described with 11 categorical or ordinal variables. Usage data("credit") Format A data frame with 66 observations and 11 categorical or ordinal variables. Source https://husson.github.io/data.html Examples data(credit) denoisePatches Denoising of image patches Description Denoising of image patches based on the clustering of patches. Usage denoisePatches(Y,out,P,sigma=10) Arguments Y a data frame containing as rows the image patches to denoise out the mixmodCluster object that contains mixture parameters P the posterior probabilities that patches belong to the clusters sigma the noise standard deviation Value A data fame of the denoised patches is returned. Note <NAME> & <NAME> Examples Im = diag(16) ImNoise = Im + rnorm(256,0,0.1) X = imageToPatch(ImNoise,4) out = mixmodCluster(X,10,model=mixmodGaussianModel(family=c("spherical"))) res = mixmodPredict(X,out@bestResult) Xdenoised = denoisePatches(X,out,P = res@proba,sigma = 0.1) ImRec = reconstructImage(Xdenoised,16,16) par(mfrow=c(1,3)); imshow(Im); imshow(ImNoise); imshow(ImRec) Friend The Friend data set from Lazega (2001) Description Lazega (2001) <doi:10.2307/3556688> collected a network data set detailing interactions between a set of 71 lawyers in a corporate law firm in the USA. The data include measurements of the advice network, friendship network and co-worker network between the lawyers within the firm. Further covariates associated with each lawyer in the firm are also available including age, seniority, college education and office location. Usage data("Friend") Format A large network object, which can be managed with the network library, with 71 nodes. References <NAME>., The Collegial Phenomenon: The Social Mechanisms of Cooperation Among Peers in a Corporate Law Partnership, Oxford University Press, 2001 <doi:10.2307/3556688>. Examples data(Friend) imageToPatch Transform an image into a collection of patches Description Transform an image into a collection of small images (patches) that cover the original image. Usage imageToPatch(Im,f) Arguments Im the image for which one wants to extract local patches. f the size of the desired patches (fxf). Value A data frame of all extracted patches is returned. Author(s) <NAME> & <NAME> Examples Im = diag(16) ImNoise = Im + rnorm(256,0,0.1) X = imageToPatch(ImNoise,4) out = mixmodCluster(X,10,model=mixmodGaussianModel(family=c("spherical"))) res = mixmodPredict(X,out@bestResult) Xdenoised = denoisePatches(X,out,P = res@proba,sigma = 0.1) ImRec = reconstructImage(Xdenoised,16,16) par(mfrow=c(1,3)); imshow(Im); imshow(ImNoise); imshow(ImRec) imshow Display an image Description A simple way of displaying an image, using the image function. Usage imshow(x,col=palette(gray(0:255/255)),useRaster = TRUE,...) Arguments x the image to display as a matrix. col the color palette to use when displaying the image. useRaster logical; if TRUE a bitmap raster is used to plot the image instead of polygons. The grid must be regular in that case, otherwise an error is raised. For the be- haviour when this is not specified, see the ‘Details’ section of the image func- tion. ... additionial arguments to provide to subfunctions. See Also image Examples Im = diag(16) imshow(Im) NIR The chemometrics near-infrared (NIR) data set Description The chemometrics near-infrared (NIR) data set has 202 observations and 2801 variables: 2800 near-infrared wavelength measures and 1 class variable. The data were obtained from the analysis of three types of textiles. The data set was first introduce in Devos et al. (2009) <doi:10.1016/j.chemolab.2008.11.005>. Usage data("velibCount") Format A data frame with 202 observations and 2801 variables. The first variable indicates the class- memberships of the observations. References <NAME>., <NAME>., <NAME>., <NAME>., and <NAME>.-P., Support vector ma- chines (SVM) in near infrared (NIR) spectroscopy: Focus on parameters optimization and model in- terpretation, Chemometrics and Intelligent Laboratory Systems, 96, 27–33, 2009 <doi:10.1016/j.chemolab.2008.11.005>. Examples data(NIR) matplot(t(NIR[,-1]),type='l',col=NIR[,1]) PoliticalBlogs The political blog data set Description The political blog data set shows the linking structure in online blogs which commentate on French political issues; the data were collected by Observatoire Presidentielle in October 2006. The data were first used by Latouche et al. (2011) <doi:10.1214/10-AOAS382>. Usage data("PoliticalBlogs") Format A large network object, which can be managed with the network library, with 196 nodes. References <NAME>, <NAME>, and <NAME>. "Overlapping stochastic block models with application to the French political blogosphere". In : Annals of Applied Statistics 5.1, p. 309-336, 2011 <doi:10.1214/10-AOAS382>. Examples data(PoliticalBlogs) # Visualization with the network library library(network) plot(PoliticalBlogs) puffin The puffin data set Description The puffin data set contains 69 individuals (birds) described by 5 categorical variables, in addition to class labels. Usage data("puffin") Format A data frame with 69 observations and 6 variables. class the class of the observations gender gender of the bird eyebrow gender of the bird collar gender of the bird sub.caudal gender of the bird border gender of the bird Source The data were provided by Bretagnolle, V., Museum d’Histoire Naturelle, Paris. Examples data(puffin) reconstructImage Reconstructing an image from a patch decomposition Description A simple way of reconstructing an image from a patch decomposition. Usage reconstructImage(X,nl,nc) Arguments X the matrix of patches to be used for reconstructing the image. nl the number of rows of the image. nc the number of columns of the image. Value an image is returned as a matrix object, that can be display with the imshow function. Author(s) <NAME> & <NAME> Examples Im = diag(16) ImNoise = Im + rnorm(256,0,0.1) X = imageToPatch(ImNoise,4) out = mixmodCluster(X,10,model=mixmodGaussianModel(family=c("spherical"))) res = mixmodPredict(X,out@bestResult) Xdenoised = denoisePatches(X,out,P = res@proba,sigma = 0.1) ImRec = reconstructImage(Xdenoised,16,16) par(mfrow=c(1,3)); imshow(Im); imshow(ImNoise); imshow(ImRec) rqda Robust (quadratic) discriminant analysis Description Robust (quadratic) discriminant analysis implements a discriminant analysis method which is robust to label noise. This function implements the method described in Lawrence and Scholkopf (2003, ISBN:1-55860-778-1). Usage rqda(X,lbl,Y,maxit=50,disp=FALSE,...) Arguments X a data frame containing the learning observations. lbl the class labels of the learning observations. Y a data frame containing the new observations to classify. maxit the maximum number of iterations. disp logical, if TRUE, several plots are displayed. ... additional arguments to provide to subfunctions. Value A list is returned with the following elements: nu the estimated class proportions. mu the estimated class means. S the estimated covariance matrices. gamma the estimated purity level of the labels. Ti the posterior probabilties of the labels knowing the observed labels for the learn- ing observations. Pi the class posterior probabilities of the observations to classify. cls the class assignments of the observations to classify. ll the log-likelihood value. Author(s) <NAME> References <NAME>., and <NAME>., Estimating a kernel Fisher discriminant in the presence of la- bel noise, Pages 306–313 of: Proceedings of the Eighteenth International Conference on Machine Learning. ICML’01. San Francisco, CA, USA, 2001 (ISBN:1-55860-778-1). Examples n = 50 m1 = c(0,0); m2 = 1.5*c(1,-1) S1 = 0.1*diag(2); S2 = 0.25 * diag(2) X = rbind(mvrnorm(n,m1,S1),mvrnorm(2*n,m2,S2)) cls = rep(1:2,c(n,2*n)) # Label perturbation ind = rbinom(3*n,1,0.4); lb = cls lb[ind==1 & cls==1] = 2 lb[ind==1 & cls==2] = 1 # Classification with RQDA res = rqda(X,lb,X) table(cls,res$cls) UScongress The US congress vote data set Description The US congress vote data set contains the votes (yes, no, abstained or absent) of 434 members of the 98th US Congress on 16 different key issues. This data set involves three-level categorical data. Usage data("UScongress") Format A data frame with 434 observations on 16 different key issues. The first variables indicates the political party of the congressmen. Source http://archive.ics.uci.edu/ml/datasets/Congressional+Voting+Records Examples data(UScongress) usps358 The handwritten digits usps358 data set Description The handwritten digits usps358 data set is a subset of the famous USPS data from UCI, which contains only the 1 756 images of the digits 3, 5 and 8. Usage data("usps358") Format A data frame with 1756 observations on the following 257 variables: cls is a numeric vector encoding the class of the digits, V1 to V256 are numeric vectors corresponding to the pixels ot the 8x8 images. Source The data set is a subset of the famous USPS data from UCI (https://archive.ics.uci.edu/ml/index.php). The usps358 data set contains only the 1 756 images of the digits 3, 5 and 8 which are the most difficult digits to discriminate. Examples data(usps358) varSelEM A variable selection algorithm for clustering Description A variable selection algorithm for clustering which implements the method described in Law et al. (2004) <doi:10.1109/TPAMI.2004.71>. Usage varSelEM(X,G,maxit=100,eps=1e-6) Arguments X a data frame containing the observations to cluster. G the expected number of groups (integer). maxit the maximum number of iterations (integer). The default value is 100. eps the convergence threshold. The default value is 1e-6. Value A list is returned with the following elements: mu the group means for relevant variables. sigma the group variances for relevant variables. lambda the group means for irrelevant variables alpha the group variances for irrelevant variables. rho the feature saliency. P the group posterior probabilities. cls the group memberships. ll the log-likelihood value. Author(s) <NAME> References <NAME>., <NAME>., and <NAME>., Simultaneous feature selection and clustering using mixture models, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 26, pp. 1154–1166, 2004 <doi:10.1109/TPAMI.2004.71>. Examples data(wine27) X = scale(wine27[,1:27]) cls = wine27$Type # Clustering and variable selection with VarSelEM res = varSelEM(X,G=3) # Clustering table table(cls,res$cls) velib2D The bivariate Vélib data set Description The bivariate Vélib data set contains data from the bike sharing system of Paris, called Vélib. The data are loading profiles and percentage of broken docks of the bike stations over one week. The data were collected every hour during the period Sunday 1st Sept. - Sunday 7th Sept., 2014. The data were first used in Bouveyron et al. (2015) <doi:10.1214/15-AOAS861>. Usage data("velib2D") Format The format is: - availableBikes: the loading profiles (nb of available bikes / nb of bike docks) of the 1189 stations at 181 time points. - brokenDockss: the percentage of broken docks of the 1189 stations at 181 time points. - position: the longitude and latitude of the 1189 bike stations. - dates: the download dates. - bonus: indicates if the station is on a hill (bonus = 1). - names: the names of the stations. Source The real time data are available at https://developer.jcdecaux.com/ (with an api key). References The data were first used in <NAME>, <NAME> and <NAME>, The discriminative functional mixture model for the analysis of bike sharing systems, The Annals of Applied Statistics, vol. 9 (4), pp. 1726-1760, 2015 <doi:10.1214/15-AOAS861>. Examples data(velib2D) velibCount The discrete version (count data) of the Vélib data set Description The discrete version (count data) of Vélib data set contains data from the bike sharing system of Paris, called Vélib. The data consist in the number of bikes at stations over one week. The data were collected every hour during the period Sunday 1st Sept. - Sunday 7th Sept., 2014. The data were first used in Bouveyron et al. (2015) <doi:10.1214/15-AOAS861>. Usage data("velibCount") Format The format is: - data: the nb of available bikes of the 1189 stations at 181 time points. - position: the longitude and latitude of the 1189 bike stations. - dates: the download dates. - bonus: indicates if the station is on a hill (bonus = 1). - names: the names of the stations. Source The real time data are available at https://developer.jcdecaux.com/ (with an api key). References The data were first used in <NAME>, <NAME> and <NAME>, The discriminative functional mixture model for the analysis of bike sharing systems, The Annals of Applied Statistics, vol. 9 (4), pp. 1726-1760, 2015 <doi:10.1214/15-AOAS861>. Examples data(velib2D) wine27 The (27-dimensional) Italian Wine data set Description The (27-dimensional) Italian Wine data set is the result of a chemical analysis of 178 wines grown in the same region in Italy but derived from three different cultivars. The analysis determined the quantities of 27 constituents found in each of the three types of wines. Usage data("wine27") Format A data frame with 178 observations on the following 29 variables. Alcohol a numeric vector Sugar.free_extract a numeric vector Fixed_acidity a numeric vector Tartaric_acid a numeric vector Malic_acid a numeric vector Uronic_acids a numeric vector pH a numeric vector Ash a numeric vector Alcalinity_of_ash a numeric vector Potassium a numeric vector Calcium a numeric vector Magnesium a numeric vector Phosphate a numeric vector Chloride a numeric vector Total_phenols a numeric vector Flavanoids a numeric vector Nonflavanoid_phenols a numeric vector Proanthocyanins a numeric vector Color_Intensity a numeric vector Hue a numeric vector OD280.OD315_of_diluted_wines a numeric vector OD280.OD315_of_flavanoids a numeric vector Glycerol a numeric vector X2.3.butanediol a numeric vector Total_nitrogen a numeric vector Proline a numeric vector Methanol a numeric vector Type a factor with levels Barbera, Barolo, Grignolino Year a numeric vector Details This data set is an expended version of the popular one from the UCI machine learning repository (http://archive.ics.uci.edu/ml/datasets/Wine). Examples data(wine27)
python-redis-lock
readthedoc
Python
redis-lock 4.0.0 documentation ### Navigation * [☰](#sidebar-anchor) * [redis-lock-4.0.0](index.html#document-index) » [Fork me on GitHub](https://github.com/ionelmc/python-redis-lock/) Contents[¶](#contents) === Overview[¶](#overview) --- | docs | | | tests | | | package | | Lock context manager implemented via redis SETNX/BLPOP. * Free software: BSD 2-Clause License Interface targeted to be exactly like [threading.Lock](https://docs.python.org/2/library/threading.html#threading.Lock). ### Usage[¶](#usage) Because we don’t want to require users to share the lock instance across processes you will have to give them names. ``` from redis import Redis conn = Redis() import redis_lock lock = redis_lock.Lock(conn, "name-of-the-lock") if lock.acquire(blocking=False): print("Got the lock.") lock.release() else: print("Someone else has the lock.") ``` ### Locks as Context Managers[¶](#locks-as-context-managers) ``` conn = StrictRedis() with redis_lock.Lock(conn, "name-of-the-lock"): print("Got the lock. Doing some work ...") time.sleep(5) ``` You can also associate an identifier along with the lock so that it can be retrieved later by the same process, or by a different one. This is useful in cases where the application needs to identify the lock owner (find out who currently owns the lock). ``` import socket host_id = "owned-by-%s" % socket.gethostname() lock = redis_lock.Lock(conn, "name-of-the-lock", id=host_id) if lock.acquire(blocking=False): assert lock.locked() is True print("Got the lock.") lock.release() else: if lock.get_owner_id() == host_id: print("I already acquired this in another process.") else: print("The lock is held on another machine.") ``` #### Avoid dogpile effect in django[¶](#avoid-dogpile-effect-in-django) The dogpile is also known as the thundering herd effect or cache stampede. Here’s a pattern to avoid the problem without serving stale data. The work will be performed a single time and every client will wait for the fresh data. To use this you will need [django-redis](https://github.com/jazzband/django-redis), however, `python-redis-lock` provides you a cache backend that has a cache method for your convenience. Just install `python-redis-lock` like this: ``` pip install "python-redis-lock[django]" ``` Now put something like this in your settings: ``` CACHES = { 'default': { 'BACKEND': 'redis_lock.django_cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1', 'OPTIONS': { 'CLIENT_CLASS': 'django_redis.client.DefaultClient' } } } ``` Note If using a django-redis < 3.8.x, you’ll probably need redis_cache which has been deprecated in favor to django_redis. The redis_cache module is removed in django-redis versions > 3.9.x. See [django-redis notes](https://github.com/jazzband/django-redis#configure-as-cache-backend). This backend just adds a convenient `.lock(name, expire=None)` function to django-redis’s cache backend. You would write your functions like this: ``` from django.core.cache import cache def function(): val = cache.get(key) if not val: with cache.lock(key): val = cache.get(key) if not val: # DO EXPENSIVE WORK val = ... cache.set(key, value) return val ``` #### Troubleshooting[¶](#troubleshooting) In some cases, the lock remains in redis forever (like a server blackout / redis or application crash / an unhandled exception). In such cases, the lock is not removed by restarting the application. One solution is to turn on the auto_renewal parameter in combination with expire to set a time-out on the lock, but let Lock() automatically keep resetting the expire time while your application code is executing: ``` # Get a lock with a 60-second lifetime but keep renewing it automatically # to ensure the lock is held for as long as the Python process is running. with redis_lock.Lock(conn, name='my-lock', expire=60, auto_renewal=True): # Do work.... ``` Another solution is to use the `reset_all()` function when the application starts: ``` # On application start/restart import redis_lock redis_lock.reset_all() ``` Alternatively, you can reset individual locks via the `reset` method. Use these carefully, if you understand what you do. ### Features[¶](#features) * based on the standard SETNX recipe * optional expiry * optional timeout * optional lock renewal (use a low expire but keep the lock active) * no spinloops at acquire ### Implementation[¶](#implementation) `redis_lock` will use 2 keys for each lock named `<name>`: * `lock:<name>` - a string value for the actual lock * `lock-signal:<name>` - a list value for signaling the waiters when the lock is released This is how it works: ### Documentation[¶](#documentation) <https://python-redis-lock.readthedocs.io/en/latest/### Development[¶](#development) To run the all tests run: ``` tox ``` ### Requirements[¶](#requirements) | OS: | Any | | Runtime: | Python 2.7, 3.3 or later, or PyPy | | Services: | Redis 2.6.12 or later. | ### Similar projects[¶](#similar-projects) * [bbangert/retools](https://github.com/bbangert/retools/blob/0.4/retools/lock.py) - acquire does spinloop * [distributing-locking-python-and-redis](https://chris-lamb.co.uk/posts/distributing-locking-python-and-redis) - acquire does polling * [cezarsa/redis_lock](https://github.com/cezarsa/redis_lock/blob/0.2.0/redis_lock/__init__.py) - acquire does not block * [andymccurdy/redis-py](https://github.com/andymccurdy/redis-py/blob/3.5.3/redis/lock.py) - acquire does spinloop * [mpessas/python-redis-lock](https://github.com/mpessas/python-redis-lock/blob/b512eef0fc5e1e2e82a6a31f65cd88c2c37dfe4b/redislock/lock.py) - blocks fine but no expiration * [brainix/pottery](https://github.com/brainix/pottery/blob/v1.1.5/pottery/redlock.py) - acquire does spinloop Installation[¶](#installation) --- At the command line: ``` pip install python-redis-lock ``` Usage[¶](#usage) --- To use redis-lock in a project: ``` import redis_lock ``` Blocking lock: ``` conn = StrictRedis() lock = redis_lock.Lock(conn, "name-of-the-lock"): if lock.acquire(): print("Got the lock. Doing some work ...") time.sleep(5) ``` Blocking lock with timeout: ``` conn = StrictRedis() lock = redis_lock.Lock(conn, "name-of-the-lock"): if lock.acquire(timeout=3): print("Got the lock. Doing some work ...") time.sleep(5) else: print("Someone else has the lock.") ``` Non-blocking lock: ``` conn = StrictRedis() lock = redis_lock.Lock(conn, "name-of-the-lock"): if lock.acquire(blocking=False): print("Got the lock. Doing some work ...") time.sleep(5) else: print("Someone else has the lock.") ``` Releasing previously acquired lock: ``` conn = StrictRedis() lock = redis_lock.Lock(conn, "name-of-the-lock") lock.acquire() print("Got the lock. Doing some work ...") time.sleep(5) lock.release() ``` The above example could be rewritten using context manager: ``` conn = StrictRedis() with redis_lock.Lock(conn, "name-of-the-lock"): print("Got the lock. Doing some work ...") time.sleep(5) ``` In cases, where lock not necessarily in acquired state, and user need to ensure, that it has a matching `id`, example: ``` lock1 = Lock(conn, "foo") lock1.acquire() lock2 = Lock(conn, "foo", id=lock1.id) lock2.release() ``` To check if lock with same name is already locked (it can be this or another lock with identical names): ``` is_locked = Lock(conn, "lock-name").locked() ``` You can control the log output by modifying various loggers: ``` logging.getLogger("redis_lock.thread").disabled = True logging.getLogger("redis_lock").disable(logging.DEBUG) ``` Reference[¶](#reference) --- ### redis_lock[¶](#redis-lock) *exception* `redis_lock.``AlreadyAcquired`[[source]](_modules/redis_lock.html#AlreadyAcquired)[¶](#redis_lock.AlreadyAcquired) *exception* `redis_lock.``AlreadyStarted`[[source]](_modules/redis_lock.html#AlreadyStarted)[¶](#redis_lock.AlreadyStarted) *exception* `redis_lock.``InvalidTimeout`[[source]](_modules/redis_lock.html#InvalidTimeout)[¶](#redis_lock.InvalidTimeout) *class* `redis_lock.``Lock`(*redis_client*, *name*, *expire=None*, *id=None*, *auto_renewal=False*, *strict=True*, *signal_expire=1000*)[[source]](_modules/redis_lock.html#Lock)[¶](#redis_lock.Lock) A Lock context manager implemented via redis SETNX/BLPOP. `acquire`(*blocking=True*, *timeout=None*)[[source]](_modules/redis_lock.html#Lock.acquire)[¶](#redis_lock.Lock.acquire) | Parameters: | * **blocking** – Boolean value specifying whether lock should be blocking or not. * **timeout** – An integer value specifying the maximum number of seconds to block. | `extend`(*expire=None*)[[source]](_modules/redis_lock.html#Lock.extend)[¶](#redis_lock.Lock.extend) Extends expiration time of the lock. | Parameters: | **expire** – New expiration time. If `None` - expire provided during lock initialization will be taken. | `locked`()[[source]](_modules/redis_lock.html#Lock.locked)[¶](#redis_lock.Lock.locked) Return true if the lock is acquired. Checks that lock with same name already exists. This method returns true, even if lock have another id. `release`()[[source]](_modules/redis_lock.html#Lock.release)[¶](#redis_lock.Lock.release) Releases the lock, that was acquired with the same object. Note If you want to release a lock that you acquired in a different place you have two choices: * Use `Lock("name", id=id_from_other_place).release()` * Use `Lock("name").reset()` `reset`()[[source]](_modules/redis_lock.html#Lock.reset)[¶](#redis_lock.Lock.reset) Forcibly deletes the lock. Use this with care. *exception* `redis_lock.``NotAcquired`[[source]](_modules/redis_lock.html#NotAcquired)[¶](#redis_lock.NotAcquired) *exception* `redis_lock.``NotExpirable`[[source]](_modules/redis_lock.html#NotExpirable)[¶](#redis_lock.NotExpirable) *exception* `redis_lock.``TimeoutNotUsable`[[source]](_modules/redis_lock.html#TimeoutNotUsable)[¶](#redis_lock.TimeoutNotUsable) *exception* `redis_lock.``TimeoutTooLarge`[[source]](_modules/redis_lock.html#TimeoutTooLarge)[¶](#redis_lock.TimeoutTooLarge) `redis_lock.``reset_all`(*redis_client*)[[source]](_modules/redis_lock.html#reset_all)[¶](#redis_lock.reset_all) Forcibly deletes all locks if its remains (like a crash reason). Use this with care. | Parameters: | **redis_client** – An instance of `StrictRedis`. | Contributing[¶](#contributing) --- Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. ### Bug reports[¶](#bug-reports) When [reporting a bug](https://github.com/ionelmc/python-redis-lock/issues) please include: > * Your operating system name and version. > * Any details about your local setup that might be helpful in troubleshooting. > * Detailed steps to reproduce the bug. ### Documentation improvements[¶](#documentation-improvements) redis-lock could always use more documentation, whether as part of the official redis-lock docs, in docstrings, or even on the web in blog posts, articles, and such. ### Feature requests and feedback[¶](#feature-requests-and-feedback) The best way to send feedback is to file an issue at <https://github.com/ionelmc/python-redis-lock/issues>. If you are proposing a feature: * Explain in detail how it would work. * Keep the scope as narrow as possible, to make it easier to implement. * Remember that this is a volunteer-driven project, and that code contributions are welcome :) ### Development[¶](#development) To set up python-redis-lock for local development: 1. Fork [python-redis-lock](https://github.com/ionelmc/python-redis-lock) (look for the “Fork” button). 2. Clone your fork locally: ``` git clone <EMAIL>:YOURGITHUBNAME/python-redis-lock.git ``` 3. Create a branch for local development: ``` git checkout -b name-of-your-bugfix-or-feature ``` Now you can make your changes locally. 4. When you’re done making changes run all the checks and docs builder with [tox](https://tox.readthedocs.io/en/latest/install.html) one command: ``` tox ``` 5. Commit your changes and push your branch to GitHub: ``` git add . git commit -m "Your detailed description of your changes." git push origin name-of-your-bugfix-or-feature ``` 6. Submit a pull request through the GitHub website. #### Pull Request Guidelines[¶](#pull-request-guidelines) If you need some code review or feedback while you’re developing the code just make the pull request. For merging, you should: 1. Include passing tests (run `tox`). 2. Update documentation when there’s new API, functionality etc. 3. Add a note to `CHANGELOG.rst` about the changes. 4. Add yourself to `AUTHORS.rst`. #### Tips[¶](#tips) To run a subset of tests: ``` tox -e envname -- pytest -k test_myfeature ``` To run all the test environments in *parallel*: ``` tox -p auto ``` Authors[¶](#authors) --- * <NAME> - <https://blog.ionelmc.ro> * <NAME> - <https://github.com/robbyt> * <NAME> - <http://rwell.org> * <NAME> - <https://github.com/yokotoka> * <NAME> - <https://twitter.com/jweyrich> * <NAME> - <https://github.com/victor-torres> * <NAME> - <https://github.com/AndreiPashkin> * <NAME> - <https://github.com/tvuotila> * <NAME> - <https://github.com/athre0z> * <NAME> - <https://github.com/juliemacdonell> * <NAME> - <https://github.com/flux627> * <NAME> - <https://github.com/suligap> * <NAME> - <https://github.com/artslob> * <NAME> - <https://github.com/SalomonSmekeChangelog[¶](#changelog) --- ### 4.0.0 (2022-10-17)[¶](#id1) * Dropped support for Python 2.7 and 3.6. * Switched from Travis to GitHub Actions. * Made logging messages more consistent. * Replaced the `redis_lock.refresh.thread.*` loggers with a single `redis_lock.refresh.thread` logger. * Various testing cleanup (mainly removal of hardcoded tmp paths). ### 3.7.0 (2020-11-20)[¶](#id2) * Made logger names more specific. Now can have granular filtering on these new logger names: + `redis_lock.acquire` (emits DEBUG messages) + `redis_lock.acquire` (emits WARN messages) + `redis_lock.acquire` (emits INFO messages) + `redis_lock.refresh.thread.start` (emits DEBUG messages) + `redis_lock.refresh.thread.exit` (emits DEBUG messages) + `redis_lock.refresh.start` (emits DEBUG messages) + `redis_lock.refresh.shutdown` (emits DEBUG messages) + `redis_lock.refresh.exit` (emits DEBUG messages) + `redis_lock.release` (emits DEBUG messages)Contributed by <NAME> in [PR #80](https://github.com/ionelmc/python-redis-lock/pull/80). * Fixed few CI issues regarding doc checks. Contributed by <NAME> in [PR #81](https://github.com/ionelmc/python-redis-lock/pull/81). ### 3.6.0 (2020-07-23)[¶](#id3) * Improved `timeout`/`expire` validation so that: + `timeout` and `expire are converted to ``None` if they are falsy. Previously only `None` disabled these options, other falsy values created buggy situations. + Using `timeout` greater than `expire` is now allowed, if `auto_renewal` is set to `True`. Previously a `TimeoutTooLarge` error was raised. See [#74](https://github.com/ionelmc/python-redis-lock/issues/74). + Negative `timeout` or `expire` are disallowed. Previously such values were allowed, and created buggy situations. See [#73](https://github.com/ionelmc/python-redis-lock/issues/73). * Updated benchmark and examples. * Removed the custom script caching code. Now the `register_script` method from the redis client is used. This will fix possible issue with redis clusters in theory, as the redis client has some specific handling for that. ### 3.5.0 (2020-01-13)[¶](#id4) * Added a `locked` method. Contributed by <NAME> in [PR #72](https://github.com/ionelmc/python-redis-lock/pull/72). ### 3.4.0 (2019-12-06)[¶](#id5) * Fixed regression that can cause deadlocks or slowdowns in certain configurations. See: [#71](https://github.com/ionelmc/python-redis-lock/issues/71). ### 3.3.1 (2019-01-19)[¶](#id6) * Fixed failures when running python-redis-lock 3.3 alongside 3.2. See: [#64](https://github.com/ionelmc/python-redis-lock/issues/64). ### 3.3.0 (2019-01-17)[¶](#id7) * Fixed deprecated use of `warnings` API. Contributed by <NAME> in [PR #54](https://github.com/ionelmc/python-redis-lock/pull/54). * Added `auto_renewal` option in `RedisCache.lock` (the Django cache backend wrapper). Contributed by c in [PR #55](https://github.com/ionelmc/python-redis-lock/pull/55). * Changed log level for “%(script)s not cached” from WARNING to INFO. * Added support for using `decode_responses=True`. Lock keys are pure ascii now. ### 3.2.0 (2016-10-29)[¶](#id8) * Changed the signal key cleanup operation do be done without any expires. This prevents lingering keys around for some time. Contributed by <NAME> in [PR #38](https://github.com/ionelmc/python-redis-lock/pull/38). * Allow locks with given id to acquire. Previously it assumed that if you specify the id then the lock was already acquired. See [#44](https://github.com/ionelmc/python-redis-lock/issues/44) and [#39](https://github.com/ionelmc/python-redis-lock/issues/39). * Allow using other redis clients with a `strict=False`. Normally you’re expected to pass in an instance of `redis.StrictRedis`. * Added convenience method locked_get_or_set to Django cache backend. ### 3.1.0 (2016-04-16)[¶](#id9) * Changed the auto renewal to automatically stop the renewal thread if lock gets garbage collected. Contributed by <NAME> in [PR #33](https://github.com/ionelmc/python-redis-lock/pull/33). ### 3.0.0 (2016-01-16)[¶](#id10) * Changed `release` so that it expires signal-keys immediately. Contributed by <NAME> in [PR #28](https://github.com/ionelmc/python-redis-lock/pull/28). * Resetting locks (`reset` or `reset_all`) will release the lock. If there’s someone waiting on the reset lock now it will acquire it. Contributed by <NAME> in [PR #29](https://github.com/ionelmc/python-redis-lock/pull/29). * Added the `extend` method on `Lock` objects. Contributed by <NAME> in [PR #24](https://github.com/ionelmc/python-redis-lock/pull/24). * Documentation improvements on `release` method. Contributed by <NAME> in [PR #22](https://github.com/ionelmc/python-redis-lock/pull/22). * Fixed `acquire(block=True)` handling when `expire` option was used (it wasn’t blocking indefinitely). Contributed by <NAME> in [PR #35](https://github.com/ionelmc/python-redis-lock/pull/35). * Changed `release` to check if lock was acquired with he same id. If not, `NotAcquired` will be raised. Previously there was just a check if it was acquired with the same instance (self._held). **BACKWARDS INCOMPATIBLE** * Removed the `force` option from `release` - it wasn’t really necessary and it only encourages sloppy programming. See [#25](https://github.com/ionelmc/python-redis-lock/issues/25). **BACKWARDS INCOMPATIBLE** * Dropped tests for Python 2.6. It may work but it is unsupported. ### 2.3.0 (2015-09-27)[¶](#id11) * Added the `timeout` option. Contributed by <NAME> in [PR #20](https://github.com/ionelmc/python-redis-lock/pull/20). ### 2.2.0 (2015-08-19)[¶](#id12) * Added the `auto_renewal` option. Contributed by <NAME> in [PR #18](https://github.com/ionelmc/python-redis-lock/pull/18). ### 2.1.0 (2015-03-12)[¶](#id13) * New specific exception classes: `AlreadyAcquired` and `NotAcquired`. * Slightly improved efficiency when non-waiting acquires are used. ### 2.0.0 (2014-12-29)[¶](#id14) * Rename `Lock.token` to `Lock.id`. Now only allowed to be set via constructor. Contributed by <NAME> in [PR #11](https://github.com/ionelmc/python-redis-lock/pull/11). ### 1.0.0 (2014-12-23)[¶](#id15) * Fix Django integration. (reported by <NAME>) * Reorganize tests to use py.test. * Add test for Django integration. * Add `reset_all` functionality. Contributed by Yokotoka in [PR #7](https://github.com/ionelmc/python-redis-lock/pull/7). * Add `Lock.reset` functionality. * Expose the `Lock.token` attribute. ### 0.1.2 (2013-11-05)[¶](#id16) * ? ### 0.1.1 (2013-10-26)[¶](#id17) * ? ### 0.1.0 (2013-10-26)[¶](#id18) * ? ### 0.0.1 (2013-10-25)[¶](#id19) * First release on PyPI. Indices and tables[¶](#indices-and-tables) --- * [Index](genindex.html) * [Module Index](py-modindex.html) * [Search Page](search.html) ### Quick search ### [Table Of Contents](index.html#document-index) * [Overview](index.html#document-readme) * [Installation](index.html#document-installation) * [Usage](index.html#document-usage) * [Reference](index.html#document-reference/index) * [Contributing](index.html#document-contributing) * [Authors](index.html#document-authors) * [Changelog](index.html#document-changelog) ### Navigation
unqlite
readthedoc
Python
unqlite-python 0.9.3 documentation [unqlite-python](index.html#document-index) --- unqlite-python[¶](#unqlite-python) === Fast Python bindings for [UnQLite](http://unqlite.org/), a lightweight, embedded NoSQL database and JSON document store. Warning Read the issue tracker for [this database](https://github.com/symisc/unqlite/issues/) before considering using it. UnQLite has not seen any meaningful development since 2014. It is **strongly** recommended that you use [Sqlite](https://www.sqlite.org/). Sqlite has robust support for [json](https://www.sqlite.org/json1.html) and is actively developed and maintained. UnQLite features: * Embedded, zero-conf database * Transactional (ACID) * Single file or in-memory database * Key/value store * Cursor support and linear record traversal * JSON document store * Thread-safe * Terabyte-sized databases UnQLite-Python features: * Compiled library, extremely fast with minimal overhead. * Supports key/value operations, cursors, and transactions using Pythonic APIs. * Support for Jx9 scripting. * APIs for working with Jx9 JSON document collections. The source code for unqlite-python is [hosted on GitHub](https://github.com/coleifer/unqlite-python). Note If you encounter any bugs in the library, please [open an issue](https://github.com/coleifer/unqlite-python/issues/new), including a description of the bug and any related traceback. Contents: Installation[¶](#installation-1) --- You can use `pip` to install `unqlite`: ``` pip install cython unqlite ``` The project is hosted at <https://github.com/coleifer/unqlite-python> and can be installed from source: ``` git clone https://github.com/coleifer/unqlite-python cd unqlite-python python setup.py build python setup.py install ``` Note `unqlite-python` depends on [Cython](http://www.cython.org) to generate the Python extension. As of 0.5.0, unqlite-python no longer ships with a generated C source file, so it is necessary to install Cython in order to compile `unqlite-python`. After installing unqlite-python, you can run the unit tests by executing the tests module: ``` python tests.py ``` Quick-start[¶](#quick-start) --- Below is a sample interactive console session designed to show some of the basic features and functionality of the unqlite-python library. Also check out the [full API documentation](https://unqlite-python.readthedocs.io/en/latest/api.html). To begin, instantiate an [`UnQLite`](index.html#UnQLite) object. You can specify either the path to a database file, or use UnQLite as an in-memory database. ``` >>> from unqlite import UnQLite >>> db = UnQLite() # Create an in-memory database. ``` ### Key/value features[¶](#key-value-features) UnQLite can be used as a key/value store. ``` >>> db['foo'] = 'bar' # Use as a key/value store. >>> db['foo'] # The key/value deals in byte-strings. b'bar' >>> for i in range(4): ... db['k%s' % i] = str(i) ... >>> 'k3' in db True >>> 'k4' in db False >>> del db['k3'] >>> db.append('k2', 'XXXX') >>> db['k2'] b'2XXXX' ``` The database can also be iterated through directly. Note that keys are decoded while values are left as bytestrings. ``` >>> [item for item in db] [('foo', b'bar'), ('k0', b'0'), ('k1', b'1'), ('k2', b'2XXXX')] ``` UnQLite databases support common `dict` APIs, such as [`keys()`](index.html#UnQLite.keys), [`values()`](index.html#UnQLite.values), [`items()`](index.html#UnQLite.items), and [`update()`](index.html#UnQLite.update). ### Cursors[¶](#cursors) For finer-grained record traversal, you can use cursors. ``` >>> with db.cursor() as cursor: ... for key, value in cursor: ... print(key, '=>', value.decode('utf8')) ... k0 => 0 k1 => 1 k2 => 2XXXX >>> with db.cursor() as cursor: ... cursor.seek('k2') ... print(cursor.value()) ... b'2XXXX' >>> with db.cursor() as cursor: ... cursor.seek('k0') ... print list(cursor.fetch_until('k2', include_stop_key=False)) ... [('k0', b'0'), ('k1', b'1')] ``` For more information, see the [`Cursor`](index.html#Cursor) API documentation. ### Document store features[¶](#document-store-features) In my opinion the most interesting feature of UnQLite is its JSON document store. The [Jx9 scripting language](http://unqlite.org/jx9.html) is used to interact with the document store, and it is a wacky mix of C, JavaScript and PHP. Interacting with the document store basically consists of creating a Jx9 script (you might think of it as an imperative SQL query), compiling it, and then executing it. Note As of v0.8.0 the document store and collections APIs treat all strings as unicode. ``` >>> script = """ ... db_create('users'); ... db_store('users', $list_of_users); ... $users_from_db = db_fetch_all('users'); ... """ >>> list_of_users = [ ... {'username': 'Huey', 'age': 3}, ... {'username': 'Mickey', 'age': 5} ... ] >>> with db.vm(script) as vm: ... vm['list_of_users'] = list_of_users ... vm.execute() ... users_from_db = vm['users_from_db'] ... True >>> users_from_db # UnQLite assigns items in a collection an ID. [{'username': 'Huey', 'age': 3, '__id': 0}, {'username': 'Mickey', 'age': 5, '__id': 1}] ``` This is just a taste of what is possible with Jx9. More information can be found in the [`VM`](index.html#VM) documentation. ### Collections[¶](#collections) To simplify working with JSON document collections, `unqlite-python` provides a light API for executing Jx9 queries on collections. A collection is an ordered list of JSON objects (records). Records can be appended, updated or deleted. be support for updates as well. To begin working with [`Collection`](index.html#Collection), you can use the [`UnQLite.collection()`](index.html#UnQLite.collection) factory method: ``` >>> users = db.collection('users') >>> users.create() # Create the collection if it does not exist. >>> users.exists() True ``` You can use the [`Collection.store()`](index.html#Collection.store) method to add one or many records. To add a single record just pass in a python `dict`. To add multiple records, pass in a list of dicts. Records can be fetched and deleted by ID using [`fetch()`](index.html#Collection.fetch) and [`delete()`](index.html#Collection.delete). ``` >>> users.store([ ... {'name': 'Charlie', 'color': 'green'}, ... {'name': 'Huey', 'color': 'white'}, ... {'name': 'Mickey', 'color': 'black'}]) True >>> users.store({'name': 'Leslie', 'color': 'also green'}) True >>> users.fetch(0) # Fetch the first record, user with "__id" = 0. {'__id': 0, 'color': 'green', 'name': 'Charlie'} >>> users.delete(0) # Delete the first record (user "__id" = 0). True >>> users.delete(users.last_record_id()) # Delete the last record. True ``` You can retrieve all records in the collection, or specify a filtering function. The filtering function will be registered as a foreign function with the Jx9 VM and called *from* the VM. ``` >>> users.all() [{'__id': 1, 'color': 'white', 'name': 'Huey'}, {'__id': 2, 'color': 'black', 'name': 'Mickey'}] >>> users.filter(lambda obj: obj['name'].startswith('H')) [{'__id': 1, 'color': 'white', 'name': 'Huey'}] ``` More information can be found in the [`Collection`](index.html#Collection) documentation. ### Transactions[¶](#transactions) UnQLite supports transactions for file-backed databases (since transactions occur at the filesystem level, they have no effect on in-memory databases). The easiest way to create a transaction is with the context manager: ``` >>> db = UnQLite('/tmp/test.db') >>> with db.transaction(): ... db['k1'] = 'v1' ... db['k2'] = 'v2' ... >>> db['k1'] b'v1' ``` You can also use the transaction decorator which will wrap a function call in a transaction and commit upon successful execution (rolling back if an exception occurs). ``` >>> @db.commit_on_success ... def save_value(key, value, exc=False): ... db[key] = value ... if exc: ... raise Exception('uh-oh') ... >>> save_value('k3', 'v3') >>> save_value('k3', 'vx', True) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "unqlite/core.py", line 312, in wrapper return fn(*args, **kwargs) File "<stdin>", line 5, in save_value Exception: uh-oh >>> db['k3'] b'v3' ``` For finer-grained control you can call [`begin()`](index.html#UnQLite.begin), [`rollback()`](index.html#UnQLite.rollback) and [`commit()`](index.html#UnQLite.commit) manually. ``` >>> db.begin() >>> db['k3'] = 'v3-xx' >>> db.commit() True >>> db['k3'] b'v3-xx' ``` API Documentation[¶](#api-documentation) --- *class* `UnQLite`(*[filename=':mem:'[, flags=UNQLITE_OPEN_CREATE[, open_database=True]]*)[¶](#UnQLite) The [`UnQLite`](#UnQLite) object provides a pythonic interface for interacting with [UnQLite databases](http://unqlite.symisc.net/). UnQLite is a lightweight, embedded NoSQL database and JSON document store. | Parameters: | * **filename** (*str*) – The path to the database file. * **flags** (*int*) – How the database file should be opened. * **open_database** (*bool*) – When set to `True`, the database will be opened automatically when the class is instantiated. If set to `False` you will need to manually call [`open()`](#UnQLite.open). | Note UnQLite supports in-memory databases, which can be created by passing in `':mem:'` as the database file. This is the default behavior if no database file is specified. Example usage: ``` >>> db = UnQLite() # Create an in-memory database. >>> db['foo'] = 'bar' # Use as a key/value store. >>> print db['foo'] bar >>> for i in range(4): ... db['k%s' % i] = str(i) ... >>> 'k3' in db True >>> 'k4' in db False >>> del db['k3'] >>> db.append('k2', 'XXXX') >>> db['k2'] '2XXXX' >>> with db.cursor() as cursor: ... for key, value in cursor: ... print key, '=>', value ... foo => bar k0 => 0 k1 => 1 k2 => 2XXXX >>> script = """ ... db_create('users'); ... db_store('users', $list_of_users); ... $users_from_db = db_fetch_all('users'); ... """ >>> list_of_users = [ ... {'username': 'Huey', 'age': 3}, ... {'username': 'Mickey', 'age': 5} ... ] >>> with db.vm(script) as vm: ... vm['list_of_users'] = list_of_users ... vm.execute() ... users_from_db = vm['users_from_db'] ... True >>> users_from_db # UnQLite assigns items in a collection an ID. [{'username': 'Huey', 'age': 3, '__id': 0}, {'username': 'Mickey', 'age': 5, '__id': 1}] ``` `open`()[¶](#UnQLite.open) Open the database. This method should only be called if the database was manually closed, or if the database was instantiated with `open_database=False`. Valid flags: * `UNQLITE_OPEN_CREATE` * `UNQLITE_OPEN_READONLY` * `UNQLITE_OPEN_READWRITE` * `UNQLITE_OPEN_CREATE` * `UNQLITE_OPEN_EXCLUSIVE` * `UNQLITE_OPEN_TEMP_DB` * `UNQLITE_OPEN_NOMUTEX` * `UNQLITE_OPEN_OMIT_JOURNALING` * `UNQLITE_OPEN_IN_MEMORY` * `UNQLITE_OPEN_MMAP` Detailed descriptions of these flags can be found in the [unqlite_open docs](http://unqlite.org/c_api/unqlite_open.html). `close`()[¶](#UnQLite.close) Close the database. Warning If you are using a file-based database, by default any uncommitted changes will be committed when the database is closed. If you wish to discard uncommitted changes, you can use [`disable_autocommit()`](#UnQLite.disable_autocommit). `__enter__`()[¶](#UnQLite.__enter__) Use the database as a context manager, opening the connection and closing it at the end of the wrapped block: ``` with UnQLite('my_db.udb') as db: db['foo'] = 'bar' # When the context manager exits, the database is closed. ``` `disable_autocommit`()[¶](#UnQLite.disable_autocommit) When the database is closed, prevent any uncommitted writes from being saved. Note This method only affects file-based databases. `store`(*key*, *value*)[¶](#UnQLite.store) Store a value in the given key. | Parameters: | * **key** (*str*) – Identifier used for storing data. * **value** (*str*) – A value to store in UnQLite. | Example: ``` db = UnQLite() db.store('some key', 'some value') db.store('another key', 'another value') ``` You can also use the dictionary-style `db[key] = value` to store a value: ``` db['some key'] = 'some value' ``` `fetch`(*key*)[¶](#UnQLite.fetch) Retrieve the value stored at the given `key`. If no value exists in the given key, a `KeyError` will be raised. | Parameters: | **key** (*str*) – Identifier to retrieve | | Returns: | The data stored at the given key | | Raises: | `KeyError` if the given key does not exist. | Example: ``` db = UnQLite() db.store('some key', 'some value') value = db.fetch('some key') ``` You can also use the dictionary-style `value = db[key]` lookup to retrieve a value: ``` value = db['some key'] ``` `delete`(*key*)[¶](#UnQLite.delete) Remove the key and its associated value from the database. | Parameters: | **key** (*str*) – The key to remove from the database. | | Raises: | `KeyError` if the given key does not exist. | Example: ``` def clear_cache(): db.delete('cached-data') ``` You can also use the python `del` keyword combined with a dictionary lookup: ``` def clear_cache(): del db['cached-data'] ``` `append`(*key*, *value*)[¶](#UnQLite.append) Append the given `value` to the data stored in the `key`. If no data exists, the operation is equivalent to [`store()`](#UnQLite.store). | Parameters: | * **key** (*str*) – The identifier of the value to append to. * **value** – The value to append. | `exists`(*key*)[¶](#UnQLite.exists) Return whether the given `key` exists in the database. | Parameters: | **key** (*str*) – | | Returns: | A boolean value indicating whether the given `key` exists in the database. | Example: ``` def get_expensive_data(): if not db.exists('cached-data'): db.set('cached-data', calculate_expensive_data()) return db.get('cached-data') ``` You can also use the python `in` keyword to determine whether a key exists: ``` def get_expensive_data(): if 'cached-data' not in db: db['cached-data'] = calculate_expensive_data() return db['cached-data'] ``` `begin`()[¶](#UnQLite.begin) Begin a transaction. `rollback`()[¶](#UnQLite.rollback) Roll back the current transaction. `commit`()[¶](#UnQLite.commit) Commit the current transaction. `transaction`()[¶](#UnQLite.transaction) Create a context manager for performing multiple operations in a transaction. Warning Transactions occur at the disk-level and have no effect on in-memory databases. Example: ``` # Transfer $100 in a transaction. with db.transaction(): db['from_acct'] = db['from_account'] - 100 db['to_acct'] = db['to_acct'] + 100 # Make changes and then roll them back. with db.transaction(): db['foo'] = 'bar' db.rollback() # Whoops, do not commit these changes. ``` `commit_on_success`(*fn*)[¶](#UnQLite.commit_on_success) Function decorator that will cause the wrapped function to have all statements wrapped in a transaction. If the function returns without an exception, the transaction is committed. If an exception occurs in the function, the transaction is rolled back. Example: ``` >>> @db.commit_on_success ... def save_value(key, value, exc=False): ... db[key] = value ... if exc: ... raise Exception('uh-oh') ... >>> save_value('k3', 'v3') >>> save_value('k3', 'vx', True) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "unqlite/core.py", line 312, in wrapper return fn() File "<stdin>", line 5, in save_value Exception: uh-oh >>> db['k3'] 'v3' ``` `cursor`()[¶](#UnQLite.cursor) | Returns: | a [`Cursor`](#Cursor) instance. | Create a cursor for traversing database records. `vm`(*code*)[¶](#UnQLite.vm) | Parameters: | **code** (*str*) – a Jx9 script. | | Returns: | a [`VM`](#VM) instance with the compiled script. | Compile the given Jx9 script and return an initialized [`VM`](#VM) instance. Usage: ``` script = "$users = db_fetch_all('users');" with db.vm(script) as vm: vm.execute() users = vm['users'] ``` `collection`(*name*)[¶](#UnQLite.collection) | Parameters: | **name** (*str*) – The name of the collection. | Factory method for instantiating a [`Collection`](#Collection) for working with a collection of JSON objects. Usage: ``` Users = db.collection('users') # Fetch all records in the collection. all_users = Users.all() # Create a new record. Users.store({'name': 'Charlie', 'activities': ['reading', 'programming']}) ``` See the [`Collection`](#Collection) docs for more examples. `keys`()[¶](#UnQLite.keys) | Returns: | A generator that successively yields the keys in the database. | `values`()[¶](#UnQLite.values) | Returns: | A generator that successively yields the values in the database. | `items`()[¶](#UnQLite.items) | Returns: | A generator that successively yields tuples containing the keys and values in the database. | `update`(*data*)[¶](#UnQLite.update) | Parameters: | **data** (*dict*) – Dictionary of data to store in the database. If any keys in `data` already exist, the values will be overwritten. | `__iter__`()[¶](#UnQLite.__iter__) UnQLite databases can be iterated over. The iterator is a [`Cursor`](#Cursor), and will yield 2-tuples of keys and values: ``` db = UnQLite('my_db.udb') for (key, value) in db: print key, '=>', value ``` `range`(*start_key*, *end_key*[, *include_end_key=True*])[¶](#UnQLite.range) Iterate over a range of key/value pairs in the database. ``` for key, value in db.range('d.20140101', 'd.20140201', False): calculate_daily_aggregate(key, value) ``` `__len__`()[¶](#UnQLite.__len__) Return the number of records in the database. Warning This method calculates the lengthy by iterating and counting every record. At the time of writing, there is no C API for calculating the size of the database. `flush`()[¶](#UnQLite.flush) Delete all records in the database. Warning This method works by iterating through all the records and deleting them one-by-one. At the time of writing there is no API for bulk deletes. If you are worried about speed, simply delete the database file and re-open it. `random_string`(*nbytes*)[¶](#UnQLite.random_string) | Parameters: | **nbytes** (*int*) – number of bytes to generate | | Returns: | a string consisting of random lower-case letters (a-z). | `random_number`()[¶](#UnQLite.random_number) | Returns: | a random positive integer | `lib_version`()[¶](#UnQLite.lib_version) | Returns: | The UnQLite library version. | *class* `Transaction`(*unqlite*)[¶](#Transaction) | Parameters: | **unqlite** ([*UnQLite*](index.html#UnQLite)) – An [`UnQLite`](#UnQLite) instance. | Context-manager for executing wrapped blocks in a transaction. Rather than instantiating this object directly, it is recommended that you use [`UnQLite.transaction()`](#UnQLite.transaction). Example: ``` with db.transaction(): db['from_acct'] = db['from_acct'] + 100 db['to_acct'] = db['to_acct'] - 100 ``` To roll back changes inside a transaction, call [`UnQLite.rollback()`](#UnQLite.rollback): ``` with db.transaction(): db['from_acct'] = db['from_acct'] + 100 db['to_acct'] = db['to_acct'] - 100 if int(db['to_acct']) < 0: db.rollback() # Not enough funds! ``` *class* `Cursor`(*unqlite*)[¶](#Cursor) | Parameters: | **unqlite** ([*UnQLite*](index.html#UnQLite)) – An [`UnQLite`](#UnQLite) instance. | Create a cursor. Cursors should generally be used as context managers. Rather than instantiating this class directly, it is preferable to call the factory method [`UnQLite.cursor()`](#UnQLite.cursor). ``` for i in range(4): db['k%d' % i] = str(i) # Cursor support iteration, which returns key/value pairs. with db.cursor() as cursor: all_items = [(key, value) for key, value in cursor] # You can seek to a record, then iterate to retrieve a portion # of results. cursor.seek('k2') k2, k3 = [key for key, _ in cursor] # Previous cursor was closed automatically, open a new one. with db.cursor() as cursor: cursor.seek('k1') # Jump to the 2nd record, k1 assert cursor.key() == 'k1' # Use the key()/value() methods. assert cursor.value() == '1' cursor.delete() # Delete k1/v1 cursor.first() # Cursor now points to k0/0 cursor.next() # Cursor jumps to k2/2 since k1/1 is deleted. assert cursor.key() == 'k2' keys = [key for key, value in cursor] # Cursor iterates from k2->k3 assert keys == ['k2', 'k3'] ``` `reset`()[¶](#Cursor.reset) Reset the cursor, which also resets the pointer to the first record. `seek`(*key*[, *flags=UNQLITE_CURSOR_MATCH_EXACT*])[¶](#Cursor.seek) Advance the cursor to the given key using the comparison method described in the flags. A detailed description of alternate flags and their usage can be found in the [unqlite_kv_cursor docs](http://unqlite.org/c_api/unqlite_kv_cursor.html). Usage: ``` with db.cursor() as cursor: cursor.seek('item.20140101') while cursor.is_valid(): data_for_day = cursor.value() # do something with data for day handle_data(data_for_day) if cursor.key() == 'item.20140201': break else: cursor.next() ``` `first`()[¶](#Cursor.first) Place cursor at the first record. `last`()[¶](#Cursor.last) Place cursor at the last record. `next_entry`()[¶](#Cursor.next_entry) Move the cursor to the next record. | Raises: | `StopIteration` if you have gone past the last record. | `previous_entry`()[¶](#Cursor.previous_entry) Move the cursor to the previous record. | Raises: | `StopIteration` if you have gone past the first record. | `is_valid`()[¶](#Cursor.is_valid) | Return type: | bool | Indicate whether this cursor is pointing to a valid record. `__iter__`()[¶](#Cursor.__iter__) Iterate over the keys in the database, returning 2-tuples of key/value. Note Iteration will begin wherever the cursor is currently pointing, rather than starting at the first record. `key`()[¶](#Cursor.key) Return the key of the current record. `value`()[¶](#Cursor.value) Return the value of the current record. `delete`()[¶](#Cursor.delete) Delete the record currently pointed to by the cursor. Warning The [`delete()`](#Cursor.delete) method is a little weird in that it only seems to work if you explicitly call [`seek()`](#Cursor.seek) beforehand. `fetch_until`(*stop_key*[, *include_stop_key=True*])[¶](#Cursor.fetch_until) | Parameters: | * **stop_key** (*str*) – The key at which the cursor should stop iterating. * **include_stop_key** (*bool*) – Whether the stop key/value pair should be returned. | Yield successive key/value pairs until the `stop_key` is reached. By default the `stop_key` and associated value will be returned, but this behavior can be controlled using the `include_stop_key` flag. *class* `VM`(*unqlite*, *code*)[¶](#VM) | Parameters: | * **unqlite** ([*UnQLite*](index.html#UnQLite)) – An [`UnQLite`](#UnQLite) instance. * **code** (*str*) – A Jx9 script. | Python wrapper around an UnQLite virtual machine. The VM is the primary means of executing Jx9 scripts and interacting with the JSON document store. VM instances should not be instantiated directly, but created by calling [`UnQLite.vm()`](#UnQLite.vm). Note For information on Jx9 scripting, see the [Jx9 docs](http://unqlite.org/jx9.html). Example of passing values into a Jx9 script prior to execution, then extracting values afterwards: ``` script = """ $collection = 'users'; db_create($collection); db_store($collection, $values); $users = db_fetch_all($collection); """ # We can pass all sorts of interesting data in to our script. values = [ {'username': 'huey', 'color': 'white'}, {'username': 'mickey', 'color': 'black'}, ] with db.vm(script) as vm: # Set the value of the `values` variable in the Jx9 script: vm['values'] = values # Execute the script, which creates the collection and stores # the two records. vm.execute() # After execution, we can extract the value of the `users` variable. users = vm['users'] # Jx9 document store assigns a unique 0-based id to each record # in a collection. The extracted variable `users` will now equal: print users == [ {'username': 'huey', 'color': 'white', '__id': 0}, {'username': 'mickey', 'color': 'black', '__id': 1}, ] # prints `True` ``` When using the VM outside of a context-manager, the following steps should be followed: 1. instantiate [`VM`](#VM) with a Jx9 script. 2. call [`VM.compile()`](#VM.compile) to compile the script. 3. optional: set one or more values to pass to the Jx9 script using [`VM.set_value()`](#VM.set_value) or [`VM.set_values()`](#VM.set_values). 4. call [`VM.execute()`](#VM.execute) to execute the script. 5. optional: read one or more values back from the VM context, for example a return value for a function call, using [`VM.get_value()`](#VM.get_value). 6. call `VM.reset()` and return to step 4 if you intend to re-execute the script, or call [`VM.close()`](#VM.close) to free the VM and associated resources. `execute`()[¶](#VM.execute) Execute the compiled Jx9 script. `close`()[¶](#VM.close) Release the VM, deallocating associated memory. Note When using the VM as a context manager, this is handled automatically. `__enter__`()[¶](#VM.__enter__) Typically the VM should be used as a context manager. The context manager API handles compiling the Jx9 code and releasing the data-structures afterwards. ``` with db.vm(jx9_script) as vm: vm.execute() ``` `set_value`(*name*, *value*)[¶](#VM.set_value) | Parameters: | * **name** (*str*) – A variable name * **value** – Value to pass in to the scope of the Jx9 script, which should be either a string, int, float, bool, list, dict, or None (basically a valid JSON type). | Set the value of a Jx9 variable. You can also use dictionary-style assignment to set the value. `set_values`(*mapping*)[¶](#VM.set_values) | Parameters: | **mapping** (*dict*) – Dictionary of name to value to pass in to the Jx9 script. This method is short-hand for making multiple calls to [`set_value()`](#VM.set_value). | Set multiple Jx9 variables. `get_value`(*name*)[¶](#VM.get_value) | Parameters: | **name** (*str*) – A variable name | Retrieve the value of a variable after the execution of a Jx9 script. You can also use dictionary-style lookup to retrieve the value. `compile`(*code*)[¶](#VM.compile) | Parameters: | **code** (*str*) – A Jx9 script. | Compile the Jx9 script and initialize the VM. Warning It is not necessary to call this method yourself, as it is called automatically when the VM is used as a context manager. Note This does not execute the code. To execute the code, you must also call [`VM.execute()`](#VM.execute). *class* `Collection`(*unqlite*, *name*)[¶](#Collection) | Parameters: | * **unqlite** – a [`UnQLite`](#UnQLite) instance * **name** (*str*) – the name of the collection | Perform common operations on a JSON document collection. Note Rather than instantiating this class directly, use the factory method [`UnQLite.collection()`](#UnQLite.collection). Basic operations: ``` >>> users = db.collection('users') >>> users.create() # Create the collection if it does not exist. >>> users.exists() True >>> users.store([ ... {'name': 'Charlie', 'color': 'green'}, ... {'name': 'Huey', 'color': 'white'}, ... {'name': 'Mickey', 'color': 'black'}]) True >>> users.store({'name': 'Leslie', 'color': 'also green'}) True >>> users.fetch(0) # Fetch the first record (user "__id" = 0). {'__id': 0, 'color': 'green', 'name': 'Charlie'} >>> users.delete(0) # Delete the first record (user "__id" = 0). True >>> users.delete(users.last_record_id()) # Delete the last record. True >>> users.update(1, {'color': 'white', 'name': '<NAME>'}) True >>> users.all() [{'__id': 1, 'color': 'white', 'name': '<NAME>'}, {'__id': 2, 'color': 'black', 'name': 'Mickey'}] >>> for user in users: ... print(user) {'__id': 1, 'color': 'white', 'name': '<NAME>'} {'__id': 2, 'color': 'black', 'name': 'Mickey'} >>> users.filter(lambda obj: obj['name'].startswith('B')) [{'__id': 1, 'color': 'white', 'name': '<NAME>'}] ``` `all`()[¶](#Collection.all) | Returns: | list containing all records in the collection. | As of 0.9.0, it is also possible to iterate the collection using a Python iterable. See [`iterator()`](#Collection.iterator). `iterator`()[¶](#Collection.iterator) | Returns: | [`CollectionIterator`](#CollectionIterator) for iterating over the records in the collection. | ``` >>> reg = db.collection('register') >>> reg.create() >>> reg.store([{'key': 'k0'}, {'key': 'k1'}, {'key': 'k2'}]) >>> it = reg.iterator() >>> for row in it: ... print(row) {'__id': 0, 'key': 'k0'} {'__id': 1, 'key': 'k1'} {'__id': 2, 'key': 'k2'} >>> list(it) # We can re-use the iterator. [{'__id': 0, 'key': 'k0'}, {'__id': 1, 'key': 'k1'}, {'__id': 2, 'key': 'k2'}] >>> for row in reg: # Iterating over collection is fine, too. ... print(row) {'__id': 0, 'key': 'k0'} {'__id': 1, 'key': 'k1'} {'__id': 2, 'key': 'k2'} ``` `filter`(*filter_fn*)[¶](#Collection.filter) Filter the list of records using the provided function (or lambda). Your filter function should accept a single parameter, which will be the record, and return a boolean value indicating whether the record should be returned. | Parameters: | **filter_fn** – callable that accepts record and returns boolean. | | Returns: | list of matching records. | Example: ``` >>> users.filter(lambda user: user['is_admin'] == True) [{'__id': 0, 'username': 'Huey', 'is_admin': True}, {'__id': 3, 'username': 'Zaizee', 'is_admin': True}, {'__id': 4, 'username': 'Charlie', 'is_admin': True}] ``` `create`()[¶](#Collection.create) Create the collection if it does not exist. | Returns: | true on success, false if collection already exists. | `drop`()[¶](#Collection.drop) Drop the collection, deleting all records. | Returns: | true on success, false if collection does not exist. | `exists`()[¶](#Collection.exists) | Returns: | boolean value indicating whether the collection exists. | `creation_date`()[¶](#Collection.creation_date) | Returns: | the timestamp the collection was created (if exists) or None. | `set_schema`([*_schema=None*[, ***kwargs*]])[¶](#Collection.set_schema) Set the schema metadata associated with the collection. The schema is **not enforced by the database engine**, and is for metadata purposes. | Parameters: | * **_schema** (*dict*) – a mapping of field-name to data-type, or * **kwargs** – key/value mapping of field to data-type. | | Returns: | true on success, false on failure. | `get_schema`()[¶](#Collection.get_schema) Get the schema metadata associated with the collection. | Returns: | mapping of field-name to data-type on success, or None. | `last_record_id`()[¶](#Collection.last_record_id) | Returns: | The integer ID of the last record stored in the collection. | `current_record_id`()[¶](#Collection.current_record_id) | Returns: | The integer ID of the record pointed to by the active cursor. | `reset_cursor`()[¶](#Collection.reset_cursor) Reset the collection cursor to point to the first record in the collection. `__len__`()[¶](#Collection.__len__) Return the number of records in the collection. `__iter__`()[¶](#Collection.__iter__) Return a [`CollectionIterator`](#CollectionIterator) for iterating over the records in the collection. `fetch`(*record_id*)[¶](#Collection.fetch) Return the record with the given id. ``` >>> users = db.collection('users') >>> users.fetch(0) # Fetch the first record in collection (id=0). {'name': 'Charlie', 'color': 'green', '__id': 0} >>> users[1] # You can also use dictionary-style lookup. {'name': 'Huey', 'color': 'white', '__id': 1} ``` You can also use the dictionary API: ``` >>> users[0] {'name': 'Charlie', 'color': 'green', '__id': 0} ``` `store`(*record*[, *return_id=True*])[¶](#Collection.store) | Parameters: | * **record** – Either a dictionary (single-record), or a list of dictionaries. * **return_id** (*bool*) – Return the ID of the newly-created object. | | Returns: | New object’s ID, or a boolean indicating if the record was stored successfully. | Store the record(s) in the collection. ``` >>> users = db.collection('users') >>> users.store({'name': 'Charlie', 'color': 'green'}) True >>> users.store([ ... {'name': 'Huey', 'color': 'white'}, ... {'name': 'Mickey', 'color': 'black'}]) True ``` `update`(*record_id*, *record*)[¶](#Collection.update) | Parameters: | * **record_id** – The ID of the record to update. * **record** – A dictionary of data to update the given record ID. | | Returns: | Boolean value indicating if the update was successful. | Update the data stored for the given `record_id`. The data is completely replaced, rather than being appended to. ``` >>> users = db.collection('users') >>> users.store({'name': 'Charlie'}) True >>> users.update(users.last_record_id(), {'name': 'Chuck'}) True >>> users.fetch(users.last_record_id()) {'__id': 0, 'name': 'Chuck'} ``` You can also use dictionary-style assignment using the record ID: ``` >>> users[0] = {'name': 'Charles'} # Can also use item assignment by id. >>> users[0] {'__id': 0, 'name': 'Charles'} ``` `delete`(*record_id*)[¶](#Collection.delete) | Parameters: | **record_id** – The database-provided ID of the record to delete. | | Returns: | Boolean indicating if the record was deleted successfully. | Delete the record with the given id. ``` >>> data = db.collection('data') >>> data.create() >>> data.store({'foo': 'bar'}) True >>> data.delete(data.last_record_id()) True >>> data.all() [] ``` You can also use the dictionary API: ``` >>> del users[1] # Delete user object with `__id=1`. ``` `fetch_current`()[¶](#Collection.fetch_current) Fetch the record pointed to by the collection cursor. ..warning:: This method does not work as intended as the VM is reset for each script execution. *class* `CollectionIterator`(*Collection*)[¶](#CollectionIterator) Python iterator that returns rows from a collection. This class should not be instantiated directly, but via [`Collection.iterator()`](#Collection.iterator) or implicitly by iterating directly over a [`Collection`](#Collection). Indices and tables[¶](#indices-and-tables) === * [Index](genindex.html) * [Module Index](py-modindex.html) * [Search Page](search.html)
salem
readthedoc
Markdown
salem 0.2.1 documentation [salem](index.html#document-index) --- Salem[¶](#salem) === Salem is a small library to do geoscientific data processing and plotting. It extends [xarray](http://xarray.pydata.org/en/stable/) to add geolocalised subsetting, masking, and plotting operations to xarray’s [DataArray](http://xarray.pydata.org/en/stable/data-structures.html#dataarray) and [DataSet](http://xarray.pydata.org/en/stable/data-structures.html#dataset) structures. Warning Salem is at an early development stage, and its API might change in the future. See [Examples](index.html#examples) for a quick overview of Salem’s functionalities, and see also the [Frequently Asked Questions](index.html#faq) for more information and a list of related tools. Documentation[¶](#documentation) --- ### Examples[¶](#examples) #### Subsetting and selecting data[¶](#subsetting-and-selecting-data) Let’s open a [WRF model](http://www2.mmm.ucar.edu/wrf/users/) output file: ``` In [1]: import salem In [2]: from salem.utils import get_demo_file In [3]: ds = salem.open_xr_dataset(get_demo_file('wrfout_d01.nc')) ``` Let’s take a time slice of the variable `T2` for a start: ``` In [4]: t2 = ds.T2.isel(Time=2) In [5]: t2.salem.quick_map() Out[5]: <salem.graphics.Map at 0x7ff13ddc9908> ``` Although we are on a Lambert Conformal projection, it’s possible to subset the file using longitudes and latitudes: ``` In [6]: t2_sub = t2.salem.subset(corners=((77., 20.), (97., 35.)), crs=salem.wgs84) In [7]: t2_sub.salem.quick_map() Out[7]: <salem.graphics.Map at 0x7ff13da00ef0> ``` It’s also possible to use geometries or shapefiles to subset your data: ``` In [8]: shdf = salem.read_shapefile(get_demo_file('world_borders.shp')) In [9]: shdf = shdf.loc[shdf['CNTRY_NAME'].isin(['Nepal', 'Bhutan'])] # GeoPandas' GeoDataFrame In [10]: t2_sub = t2_sub.salem.subset(shape=shdf, margin=2) # add 2 grid points In [11]: t2_sub.salem.quick_map() Out[11]: <salem.graphics.Map at 0x7ff13dd8f518> ``` Based on the same principle, one can mask out the useless grid points: ``` In [12]: t2_roi = t2_sub.salem.roi(shape=shdf) In [13]: t2_roi.salem.quick_map() Out[13]: <salem.graphics.Map at 0x7ff13dfeb320> ``` #### Plotting[¶](#plotting) Maps can be pimped with topographical shading, points of interest, and more: ``` In [14]: smap = t2_roi.salem.get_map(data=t2_roi-273.15, cmap='RdYlBu_r', vmin=-14, vmax=18) In [15]: _ = smap.set_topography(get_demo_file('himalaya.tif')) In [16]: smap.set_shapefile(shape=shdf, color='grey', linewidth=3) In [17]: smap.set_points(91.1, 29.6) In [18]: smap.set_text(91.2, 29.7, 'Lhasa', fontsize=17) In [19]: smap.visualize() ``` Maps are persistent, which is useful when you have many plots to do. Plotting further data on them is possible, as long as the geolocalisation information is shipped with the data (in that case, the DataArray’s attributes are lost in the conversion from Kelvins to degrees Celsius so we have to set it explicitly): ``` In [20]: smap.set_data(ds.T2.isel(Time=1)-273.15, crs=ds.salem.grid) In [21]: smap.visualize(title='2m temp - large domain', cbar_title='C') ``` #### Reprojecting data[¶](#reprojecting-data) Salem can also transform data from one grid to another: ``` In [22]: dse = salem.open_xr_dataset(get_demo_file('era_interim_tibet.nc')) In [23]: t2_era_reproj = ds.salem.transform(dse.t2m) In [24]: assert t2_era_reproj.salem.grid == ds.salem.grid In [25]: t2_era_reproj.isel(time=0).salem.quick_map() Out[25]: <salem.graphics.Map at 0x7ff13d9e1b00> ``` ``` In [26]: t2_era_reproj = ds.salem.transform(dse.t2m, interp='spline') In [27]: t2_era_reproj.isel(time=0).salem.quick_map() Out[27]: <salem.graphics.Map at 0x7ff13e309860> ``` ### Frequently Asked Questions[¶](#frequently-asked-questions) #### Is your library mature for production code?[¶](#is-your-library-mature-for-production-code) Not really. The API is not always as clever as I wish it would, and it will probably change in the future. Salem is well tested though, at least for the cases I encounter in my daily work. #### What others tools should I know about?[¶](#what-others-tools-should-i-know-about) The python atmospheric sciences community is a bit spread between [iris](http://scitools.org.uk/iris/) and [xarray](http://xarray.pydata.org/en/stable/) for N-Dimensional data handling. I find that xarray is very intuitive to learn thanks to its strong interaction with [pandas](http://pandas.pydata.org/). Here are some tools that share functionalities with Salem: * [cartopy](http://scitools.org.uk/cartopy/docs/latest/index.html) is the reference tool for plotting on maps. Salem provides a way to plot with cartopy in addition to Salem’s homegrowm graphics. (see [Graphics](index.html#plotting)) * Salem provides useful reprojection tools (see [Map transformations](index.html#gis)). The transformation routines are quite fast (we use pyproj for the map transformations and scipy for the interpolation) but they are all done on memory (i.e. not adapted for large datasets). For large reprojection workflows you might want to have a look at [cartopy](http://scitools.org.uk/cartopy/docs/latest/index.html) and [pyresample](https://github.com/pytroll/pyresample). * [regionmask](https://github.com/mathause/regionmask) provides similar tools as salem’s region-of-interest functionalities if you are woking with shapefiles. regionmask seems a bit more general than Salem, but I’m not sure if it works with any map projection as Salem does. * In the future, I hope that [pangeo-data](https://pangeo-data.github.io/) will overtake most of the functionalities I need. But this is not going to happen tomorrow... Several libraries are available to meteorologists and climatologists, but I don’t think they share much functionality with Salem: for example [MetPy](http://metpy.readthedocs.io/en/stable/), [windspharm](http://ajdawson.github.io/windspharm/), [xgcm](https://github.com/xgcm/xgcm), [aospy](https://github.com/spencerahill/aospy), and all the ones I forgot to mention. #### Why developing Salem?[¶](#why-developing-salem) As an atmospheric scientist, I hate to have to take care about projections and maps. Salem was created to hide all these concerns. By the time I started, it seemed a good idea to provide map transformation tools without depending on GDAL (thanks to [conda-forge](http://conda-forge.github.io/) GDAL is now much easier to install). It is still possible to do reprojection work in Salem using scipy and pyproj alone. Furthermore, I use the atmospheric model WRF quite often in my work. Its output files are absolutely not compliant with the CF conventions. To my knowledge, there is no tool to plot and manipulate WRF data with Python, and Salem will be further developed with this model in mind. #### What’s this ”.salem_cache” directory in my home folder?[¶](#what-s-this-salem-cache-directory-in-my-home-folder) At the first import, Salem will create a hidden directory called `.salem_cache` in your home folder. It will be used to download Salem’s demo files and standard shapefiles. This directory is also used by joblib to store the result of slow operations such as reading and transforming shapefiles, or downloading google maps from the internet. The cache should not become too large, but if it does: simply delete it. ### What’s New[¶](#what-s-new) #### v0.2.1 (07 February 2017)[¶](#v0-2-1-07-february-2017) Minor release containing a couple of enhancements and deprecations, but mostly fixes for bugs and for the recent xarray and matplotlib upgrades. ##### Deprecations[¶](#deprecations) * the `corner`, `ul_corner`, and `ll_corner` kwargs to grid initialisation have been deprecated in favor of the more explicit `x0y0`. * the Grid attribue `order` is now called `origin`, and can have the values `"lower-left"` or `"upper-left"` * `salem.open_xr_dataset` now succeeds if and only if the grid is understood by salem. This makes more sense, as unexpected errors should not be silently ignored ##### Enhancements[¶](#enhancements) * new [`open_mf_wrf_dataset()`](index.html#salem.open_mf_wrf_dataset) function * new `deacc` method added to DataArrayAccessors By SiMaria <https://github.com/SiMaria> * new `Map.transform()` method to make over-plotting easier (experimental) * new **all_touched** argument added to `Grid.region_of_interest()` to pass through to `rasterio.features.rasterize`, tweaking how grid cells are included in the region of interest. By [<NAME>](https://github.com/darothen) * new [`lookup_transform()`](index.html#salem.DataArrayAccessor.lookup_transform) projection transform * `Grid` objects now have a decent `__repr__` * new serialization methods for grid: `to_dict`, `from_dict`, `to_json`, `from_json`. ##### Bug fixes[¶](#bug-fixes) * `grid.transform()` now works with non-numpy array type * `transform_geopandas()` won’t do inplace operation per default anymore * fixed bugs to prepare for upcoming xarray v0.9.0 * `setup.py` makes cleaner version strings for development versions (like xarray’s) * joblib’s caching directory is now “environment dependant” in order to avoid conda/not conda mismatches, and avoid other black-magic curses related to caching. * fixed a bug with opening geo_em files using xarray or open_wrf_dataset * various bug fixes and enhancements to the graphics (including the relocation of testing baseline images to the demo repo) #### v0.2.0 (08 November 2016)[¶](#v0-2-0-08-november-2016) Salem is now released under a 3-clause BSD license. ##### Enhancements[¶](#id1) * New [`wrf_zlevel()`](index.html#salem.DatasetAccessor.wrf_zlevel) and [`wrf_plevel()`](index.html#salem.DatasetAccessor.wrf_plevel) functions for vertical interpolation * Salem can now plot on cartopy’s maps thanks to a new [`proj_to_cartopy()`](index.html#salem.proj_to_cartopy) function. * Doc improvements * New diagnostic variable: ‘WS’ #### v0.1.1 (27 October 2016)[¶](#v0-1-1-27-october-2016) ##### Enhancements[¶](#id2) * Some doc improvements * New `ds` keyword to the accessors `subset()` and `roi()` methods ##### Bug fixes[¶](#id3) * Natural Earth file lr (low-res) now shipped with sample-data, mr and hr can still be downloaded if needed * Remove use to deprecated `rasterio.drivers()` * GeoNetCDF files without time variable should now open without error #### v0.1.0 (22 October 2016)[¶](#v0-1-0-22-october-2016) Big refactoring ([PR15](https://github.com/fmaussion/salem/pull/15)), partly backwards incompatible (mostly renaming). Improved xarray accessors, WRF tools, merged [Cleo](https://github.com/fmaussion/cleo) into the codebase, added a first draft of documentation. #### v0.0.9 (22 October 2016)[¶](#v0-0-9-22-october-2016) Initial release. ### Installation[¶](#installation) Salem is a pure python package, but it has several non-trivial dependencies. #### Required dependencies[¶](#required-dependencies) * Python 2.7 or 3+ (Py3 [recommended](https://python3statement.github.io/)) * [numpy](http://www.numpy.org/) (of course) * [scipy](http://scipy.org/): for its interpolation tools, among other things * [pyproj](https://jswhit.github.io/pyproj/): for map projections transformations * [netCDF4](https://github.com/Unidata/netcdf4-python): to read most geoscientific files * [joblib](https://pythonhosted.org/joblib/): for it’s [Memory](https://pythonhosted.org/joblib/memory.html) class * [six](https://pythonhosted.org/six//): for Py2 compatibility #### Optional dependencies[¶](#optional-dependencies) ##### Because not using them is a bad idea[¶](#because-not-using-them-is-a-bad-idea) * [pandas](http://pandas.pydata.org/): working with labeled data * [xarray](https://jswhit.github.io/pyproj/) (0.8 or later): pandas in N-dimensions ##### For vector and raster operations[¶](#for-vector-and-raster-operations) * [rasterio](https://mapbox.github.io/rasterio/): for geotiff files * [shapely](https://pypi.python.org/pypi/Shapely): geometric objects * [geopandas](http://geopandas.org/): geospatial data with pandas (rasterio and geopandas both require GDAL) ##### For plotting[¶](#for-plotting) * [matplotlib](http://matplotlib.org/): required for [Graphics](index.html#plotting) * [pillow](http://pillow.readthedocs.io/en/latest/installation.html): required for salem.Map * [descartes](https://pypi.python.org/pypi/descartes/): for paths and patches on maps * [motionless](https://github.com/ryancox/motionless/): for google static maps #### Instructions[¶](#instructions) The very best (unique?) way to install Salem without too much hassle is to install its dependencies with [conda](http://conda.pydata.org/docs/intro.html) and [conda-forge](http://conda-forge.github.io): ``` conda config --add channels conda-forge conda install <package-name> ``` Currently, Salem can only be installed via pip: ``` pip install salem ``` If you want to install the latest master: ``` pip install git+https://github.com/fmaussion/salem.git ``` Warning At the first import, Salem will create a hidden directory called `.salem_cache` in your home folder. It will be used to download Salem’s demo files and standard shapefiles. This directory is also used by joblib to store the result of slow operations such as reading and transforming shapefiles, or downloading google maps from the internet. The cache should not become too large, but if it does: simply delete it. ### Xarray accessors[¶](#xarray-accessors) One of the main purposes of Salem is to add georeferencing tools to [xarray](http://xarray.pydata.org/) ‘s data structures. These tools can be accessed via a [special](http://xarray.pydata.org/en/stable/internals.html#extending-xarray) `.salem` attribute, available for both [xarray.DataArray](http://xarray.pydata.org/en/stable/data-structures.html#dataarray) and [xarray.Dataset](http://xarray.pydata.org/en/stable/data-structures.html#dataset) objects after a simple `import salem` in your code. #### Initializing the accessor[¶](#initializing-the-accessor) ##### Automated projection parsing[¶](#automated-projection-parsing) Salem will try to understand in which projection your Dataset or DataArray is defined. For example, with a platte carree (or lon/lat) projection, Salem will know what to do based on the coordinates’ names: ``` In [1]: import numpy as np In [2]: import xarray as xr In [3]: import salem In [4]: da = xr.DataArray(np.arange(20).reshape(4, 5), dims=['lat', 'lon'], ...: coords={'lat':np.linspace(0, 30, 4), ...: 'lon':np.linspace(-20, 20, 5)}) ...: In [5]: da.salem # the accessor is an object Out[5]: <salem.sio.DataArrayAccessor at 0x7ff13d7b7fd0In [6]: da.salem.quick_map(); ``` While the above should work with a majority of climate datasets (such as atmospheric reanalyses or GCM output), certain NetCDF files will have a more exotic map projection requiring a dedicated parsing. There are [conventions](http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/build/ch05s06.html) to formalise these things in the NetCDF data model, but Salem doesn’t understand them yet (my impression is that they aren’t widely used anyways). Currently, Salem can deal with: * platte carree (or lon/lat) projections * WRF projections (see [WRF tools](index.html#wrf)) * for geotiff files only: any projection that [rasterio](https://mapbox.github.io/rasterio/) can understand * **virually any projection provided explicitly by the user** The logic for deciding upon the projection of a Dataset or DataArray is located in [`grid_from_dataset()`](index.html#salem.grid_from_dataset). If the automated parsing doesn’t work, the `salem` accessor won’t work either. In that case, you’ll have to provide your own [Custom projection](#xarray-acc-custom) to the data. ##### From geotiffs[¶](#from-geotiffs) Salem uses [rasterio](https://mapbox.github.io/rasterio/) to open and parse geotiff files: ``` In [7]: fpath = salem.get_demo_file('himalaya.tif') In [8]: ds = salem.open_xr_dataset(fpath) In [9]: hmap = ds.salem.get_map(cmap='topo') In [10]: hmap.set_data(ds['data']) In [11]: hmap.visualize(); ``` ##### Custom projection[¶](#custom-projection) Alternatively, Salem will understand any projection supported by [pyproj](https://jswhit.github.io/pyproj/). The proj info has to be provided as attribute: ``` In [12]: dutm = xr.DataArray(np.arange(20).reshape(4, 5), dims=['y', 'x'], ....: coords={'y': np.arange(3, 7)*2e5, ....: 'x': np.arange(1, 6)*2e5}) ....: In [13]: psrs = 'epsg:32630' # http://spatialreference.org/ref/epsg/wgs-84-utm-zone-30n/ In [14]: dutm.attrs['pyproj_srs'] = psrs In [15]: dutm.salem.quick_map(interp='linear'); ``` #### Using the accessor[¶](#using-the-accessor) The accessor’s methods are available trough the `.salem` attribute. ##### Keeping track of attributes[¶](#keeping-track-of-attributes) Some datasets carry their georeferencing information in global attributes (WRF model output files for example). This makes it possible for Salem to determine the data’s map projection. From the variables alone, however, this is not possible. This is the reason why it is recommended to use the [`open_xr_dataset()`](index.html#salem.open_xr_dataset) and [`open_wrf_dataset()`](index.html#salem.open_wrf_dataset) function, which add an attribute to the variables automatically: ``` In [16]: dsw = salem.open_xr_dataset(salem.get_demo_file('wrfout_d01.nc')) In [17]: dsw.T2.pyproj_srs Out[17]: '+units=m +proj=lcc +lat_1=29.040000915527344 +lat_2=29.040000915527344 +lat_0=29.039997100830078 +lon_0=89.80000305175781 +x_0=0 +y_0=0 +a=6370000 +b=6370000' ``` Unfortunately, the DataArray attributes are lost when doing operations on them. It is the task of the user to keep track of this attribute: ``` In [18]: dsw.T2.mean(dim='Time', keep_attrs=True).salem # triggers an error without keep_attrs Out[18]: <salem.sio.DataArrayAccessor at 0x7ff13c5de470> ``` ##### Reprojecting data[¶](#reprojecting-data) You can reproject a Dataset onto another one with the [`transform()`](index.html#salem.DatasetAccessor.transform) function: ``` In [19]: dse = salem.open_xr_dataset(salem.get_demo_file('era_interim_tibet.nc')) In [20]: dsr = ds.salem.transform(dse) In [21]: dsr Out[21]: <xarray.Dataset> Dimensions: (time: 4, x: 1875, y: 877) Coordinates: * y (y) float64 31.54 31.53 31.52 31.52 31.51 31.5 31.49 31.48 ... * time (time) datetime64[ns] 2012-06-01 2012-06-01T06:00:00 ... * x (x) float64 78.32 78.33 78.33 78.34 78.35 78.36 78.37 78.38 ... Data variables: t2m (time, y, x) float64 278.6 278.6 278.6 278.6 278.6 278.6 278.6 ... Attributes: pyproj_srs: +units=m +init=epsg:4326 In [22]: dsr.t2m.mean(dim='time').salem.quick_map(); ``` Currently, salem implements, the neirest neighbor (default), linear, and spline interpolation methods: ``` In [23]: dsr = ds.salem.transform(dse, interp='spline') In [24]: dsr.t2m.mean(dim='time').salem.quick_map(); ``` The accessor’s map transformation machinery is handled by the [`Grid`](index.html#salem.Grid) class internally. See [Map transformations](index.html#gis) for more information. ##### Subsetting data[¶](#subsetting-data) The [`subset()`](index.html#salem.DatasetAccessor.subset) function allows you to subset your datasets according to (georeferenced) vector or raster data, for example based on [shapely](https://pypi.python.org/pypi/Shapely) geometries (e.g. polygons), other grids, or shapefiles: ``` In [25]: shdf = salem.read_shapefile(salem.get_demo_file('world_borders.shp')) In [26]: shdf = shdf.loc[shdf['CNTRY_NAME'] == 'Nepal'] # remove other countries In [27]: dsr = dsr.salem.subset(shape=shdf, margin=10) In [28]: dsr.t2m.mean(dim='time').salem.quick_map(); ``` ##### Regions of interest[¶](#regions-of-interest) While subsetting selects the optimal rectangle over your region of interest, sometimes you also want to maskout unrelevant data, too. This is done with the [`roi()`](index.html#salem.DatasetAccessor.roi) tool: ``` In [29]: dsr = dsr.salem.roi(shape=shdf) In [30]: dsr.t2m.mean(dim='time').salem.quick_map(); ``` ### Graphics[¶](#graphics) Two options are offered to you when plotting geolocalised data on maps: you can use [cartopy](http://scitools.org.uk/cartopy/docs/latest/index.html) , or you can use salem’s [`Map`](index.html#salem.Map) object. #### Plotting with cartopy[¶](#plotting-with-cartopy) Plotting on maps using xarray and cartopy is extremely [convenient](http://xarray.pydata.org/en/stable/plotting.html#maps). With salem you can keep your usual plotting workflow, even with more exotic map projections: ``` In [1]: import matplotlib.pyplot as plt In [2]: import cartopy In [3]: from salem import open_wrf_dataset, get_demo_file In [4]: ds = open_wrf_dataset(get_demo_file('wrfout_d01.nc')) In [5]: ax = plt.axes(projection=cartopy.crs.Orthographic(70, 30)) In [6]: ax.set_global(); In [7]: ds.T2C.isel(time=1).plot.contourf(ax=ax, transform=ds.salem.cartopy()); In [8]: ax.coastlines(); ``` You can also use the salem accessor to initialise the plot’s map projection: ``` In [9]: proj = ds.salem.cartopy() In [10]: ax = plt.axes(projection=proj) In [11]: ax.coastlines(); In [12]: ax.add_feature(cartopy.feature.BORDERS, linestyle=':'); In [13]: ax.set_extent(ds.salem.grid.extent, crs=proj); ``` #### Plotting with salem[¶](#plotting-with-salem) Salem comes with a homegrown plotting tool. It is less flexible than cartopy, but it was created to overcome some of cartopy’s limitations (e.g. the impossibility to add tick labels to lambert conformal maps), and to make nice looking regional maps: ``` In [14]: ds.T2C.isel(time=1).salem.quick_map() Out[14]: <salem.graphics.Map at 0x7ff13d6a3518> ``` Salem maps are different from cartopy’s in that they don’t change the matplotlib axes’ projection. The map background is always going to be a call to [imshow()](http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.imshow), with an image size decided at instanciation: ``` In [15]: from salem import mercator_grid, Map, open_xr_dataset In [16]: grid = mercator_grid(center_ll=(10.76, 46.79), extent=(9e5, 4e5)) In [17]: grid.nx, grid.ny # size of the input grid Out[17]: (1350, 600) In [18]: smap = Map(grid, nx=500) In [19]: smap.grid.nx, smap.grid.ny # size of the "image", and thus of the axes Out[19]: (500, 222) In [20]: smap.visualize(addcbar=False) ``` The map has it’s own grid, wich is used internally in order to transform the data that has to be plotted on it: ``` In [21]: ds = open_xr_dataset(get_demo_file('histalp_avg_1961-1990.nc')) In [22]: smap.set_data(ds.prcp) # histalp is a lon/lat dataset In [23]: smap.visualize() ``` Refer to [Recipes](index.html#recipes) for more examples on how to use salem’s maps. ### WRF tools[¶](#wrf-tools) Let’s open a [WRF model](http://www2.mmm.ucar.edu/wrf/users/) output file with xarray first: ``` In [1]: import xarray as xr In [2]: from salem.utils import get_demo_file In [3]: ds = xr.open_dataset(get_demo_file('wrfout_d01.nc')) ``` WRF files are a bit messy: ``` In [4]: ds Out[4]: <xarray.Dataset> Dimensions: (Time: 3, bottom_top: 27, bottom_top_stag: 28, south_north: 150, south_north_stag: 151, west_east: 150, west_east_stag: 151) Coordinates: XLONG (Time, south_north, west_east) float32 70.7231 70.9749 71.2267 ... XLONG_U (Time, south_north, west_east_stag) float32 70.5974 70.849 ... XLAT_U (Time, south_north, west_east_stag) float32 7.76865 7.80933 ... XLAT_V (Time, south_north_stag, west_east) float32 7.66444 7.70477 ... XLONG_V (Time, south_north_stag, west_east) float32 70.7436 70.9951 ... XLAT (Time, south_north, west_east) float32 7.78907 7.82944 7.86932 ... Dimensions without coordinates: Time, bottom_top, bottom_top_stag, south_north, south_north_stag, west_east, west_east_stag Data variables: Times (Time) |S19 b'2008-10-26_12:00:00' b'2008-10-26_15:00:00' ... T2 (Time, south_north, west_east) float32 301.977 302.008 302.047 ... RAINC (Time, south_north, west_east) float32 0.0 0.0 0.0 0.0 0.0 0.0 ... RAINNC (Time, south_north, west_east) float32 0.0 0.0 0.0 0.0 0.0 0.0 ... U (Time, bottom_top, south_north, west_east_stag) float32 1.59375 ... V (Time, bottom_top, south_north_stag, west_east) float32 -2.07031 ... PH (Time, bottom_top_stag, south_north, west_east) float32 0.0 0.0 ... PHB (Time, bottom_top_stag, south_north, west_east) float32 0.0 0.0 ... Attributes: note: Global attrs removed. ``` WRF files aren’t exactly CF compliant: you’ll need a special parser for the timestamp, the coordinate names are a bit exotic and do not correspond to the dimension names, they contain so-called [staggered](https://en.wikipedia.org/wiki/Arakawa_grids) variables (and their correponding coordinates), etc. Salem defines a special parser for these files: ``` In [5]: import salem In [6]: ds = salem.open_wrf_dataset(get_demo_file('wrfout_d01.nc')) ``` This parser greatly simplifies the file structure: ``` In [7]: ds Out[7]: <xarray.Dataset> Dimensions: (bottom_top: 27, south_north: 150, time: 3, west_east: 150) Coordinates: lon (south_north, west_east) float32 70.7231 70.9749 71.2267 ... lat (south_north, west_east) float32 7.78907 7.82944 7.86932 ... * time (time) datetime64[ns] 2008-10-26T12:00:00 ... * west_east (west_east) float64 -2.235e+06 -2.205e+06 -2.175e+06 ... * south_north (south_north) float64 -2.235e+06 -2.205e+06 -2.175e+06 ... Dimensions without coordinates: bottom_top Data variables: T2 (time, south_north, west_east) float32 301.977 302.008 ... RAINC (time, south_north, west_east) float32 0.0 0.0 0.0 0.0 0.0 ... RAINNC (time, south_north, west_east) float32 0.0 0.0 0.0 0.0 0.0 ... U (time, bottom_top, south_north, west_east) float32 1.73438 ... V (time, bottom_top, south_north, west_east) float32 -2.125 ... PH (time, bottom_top, south_north, west_east) float32 18.7031 ... PHB (time, bottom_top, south_north, west_east) float32 277.504 ... PRCP (time, south_north, west_east) float32 nan nan nan nan nan ... Z (time, bottom_top, south_north, west_east) float32 30.1944 ... T2C (time, south_north, west_east) float32 28.8266 28.8578 ... GEOPOTENTIAL (time, bottom_top, south_north, west_east) float32 296.207 ... WS (time, bottom_top, south_north, west_east) float32 2.74293 ... PRCP_NC (time, south_north, west_east) float32 nan nan nan nan nan ... PRCP_C (time, south_north, west_east) float32 nan nan nan nan nan ... Attributes: note: Global attrs removed. pyproj_srs: +units=m +proj=lcc +lat_1=29.040000915527344 +lat_2=29.040000915527344 +lat_0=29.039997100830078 +lon_0=89.80000305175781 +x_0=0 +y_0=0 +a=6370000 +b=6370000 ``` Note that some dimensions / coordinates have been renamed, new variables have been defined, and the staggered dimensions have disappeared. #### Diagnostic variables[¶](#diagnostic-variables) Salem adds a layer between xarray and the underlying NetCDF file. This layer computes new variables “on the fly” or, in the case of staggered variables, “unstaggers” them: ``` In [8]: ds.U Out[8]: <xarray.DataArray 'U' (time: 3, bottom_top: 27, south_north: 150, west_east: 150)> [1822500 values with dtype=float32] Coordinates: lon (south_north, west_east) float32 70.7231 70.9749 71.2267 ... lat (south_north, west_east) float32 7.78907 7.82944 7.86932 ... * time (time) datetime64[ns] 2008-10-26T12:00:00 ... * west_east (west_east) float64 -2.235e+06 -2.205e+06 -2.175e+06 ... * south_north (south_north) float64 -2.235e+06 -2.205e+06 -2.175e+06 ... Dimensions without coordinates: bottom_top Attributes: FieldType: 104 MemoryOrder: XYZ description: x-wind component units: m s-1 stagger: X pyproj_srs: +units=m +proj=lcc +lat_1=29.040000915527344 +lat_2=29.040000915527344 +lat_0=29.039997100830078 +lon_0=89.80000305175781 +x_0=0 +y_0=0 +a=6370000 +b=6370000 ``` This computation is done only on demand (just like a normal NetCDF variable), this new layer is therefore relatively cheap. In addition to unstaggering, Salem adds a number of “diagnostic” variables to the dataset. Some are convenient (like `T2C`, temperature in Celsius instead of Kelvins), but others are more complex (e.g. `SLP` for sea-level pressure, or `PRCP` which computes step-wize total precipitation out of the accumulated fields). For a list of diagnostic variables (and TODOs!), refer to [GH18](https://github.com/fmaussion/salem/issues/18). ``` In [9]: ds.PRCP.isel(time=-1).salem.quick_map(cmap='Purples', vmax=5) Out[9]: <salem.graphics.Map at 0x7ff13d73c128> ``` #### Vertical interpolation[¶](#vertical-interpolation) The WRF vertical coordinates are eta-levels, which is not a very practical coordinate for analysis or plotting. With the functions [`wrf_zlevel()`](index.html#salem.DatasetAccessor.wrf_zlevel) and [`wrf_plevel()`](index.html#salem.DatasetAccessor.wrf_plevel) it is possible to interpolate the 3d data at either altitude or pressure levels: ``` In [10]: ws_h = ds.isel(time=1).salem.wrf_zlevel('WS', levels=10000.) In [11]: ws_h.salem.quick_map(); ``` Note that currently, the interpolation is quite slow, see [GH25](https://github.com/fmaussion/salem/issues/25). It’s probably wise to do it on single time slices or aggregated data, rather than huge data cubes. #### Open multiple files[¶](#open-multiple-files) It is possible to open multiple WRF files at different time steps with [`open_mf_wrf_dataset()`](index.html#salem.open_mf_wrf_dataset), which works like xarray’s [open_mfdataset](http://xarray.pydata.org/en/stable/generated/xarray.open_mfdataset.html#xarray.open_mfdataset) . The only drawback of having multiple WRF time slices is that “de-accumulated” variables such as `PRCP` won’t be available. For this purpose, you might want to use the [`deacc()`](index.html#salem.DataArrayAccessor.deacc) method. #### Geogrid simulator[¶](#geogrid-simulator) Salem provides a small tool which comes handy when defining new WRF domains. It parses the WPS configuration file ([namelist.wps](http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Basics/GEOGRID/geogrid_namelist.htm)) and generates the grids and maps corresponding to each domain. [`geogrid_simulator()`](index.html#salem.geogrid_simulator) will search for the `&geogrid` section of the file and parse it: ``` In [12]: fpath = get_demo_file('namelist_mercator.wps') In [13]: with open(fpath, 'r') as f: # this is just to show the file ....: print(f.read()) ....: &geogrid parent_id = 1, 1, 2, 3, parent_grid_ratio = 1, 3, 5, 5, i_parent_start = 1, 28, 54, 40, j_parent_start = 1, 24, 97, 50, e_we = 211, 178, 101, 136, e_sn = 131, 220, 141, 136, dx = 30000, dy = 30000, map_proj = 'mercator', ref_lat = -8.0, ref_lon = -62.0, truelat1 = -8.0, / In [14]: from salem import geogrid_simulator In [15]: g, maps = geogrid_simulator(fpath) In [16]: maps[0].set_rgb(natural_earth='lr') # add a background image In [17]: maps[0].visualize(title='Domains 1 to 4') ``` ### Map transformations[¶](#map-transformations) Most of the georeferencing machinery for gridded datasets is handled by the [`Grid`](index.html#salem.Grid) class: its capacity to handle gridded datasets in a painless manner was one of the primary motivations to develop Salem. #### Grids[¶](#grids) A point on earth can be defined unambiguously in two ways: DATUM (lon, lat, datum) longitudes and latitudes are angular coordinates of a point on an ellipsoid (often called “datum”) PROJ (x, y, projection) x (eastings) and y (northings) are cartesian coordinates of a point in a map projection (the unit of x, y is usually meter) Salem adds a third coordinate reference system (**crs**) to this list: GRID (i, j, Grid) on a structured grid, the (x, y) coordinates are distant of a constant (dx, dy) step. The (x, y) coordinates are therefore equivalent to a new reference frame (i, j) proportional to the projection’s (x, y) frame. Transformations between datums and projections is handled by several tools in the python ecosystem, for example [GDAL](https://pypi.python.org/pypi/GDAL/) or the more lightweight [pyproj](https://jswhit.github.io/pyproj/), which is the tool used by Salem internally [[1]](#id2). The concept of Grid added by Salem is useful when transforming data between two structured datasets, or from an unstructured dataset to a structured one. | [[1]](#id1) | Most datasets nowadays are defined in the WGS 84 datum, therefore the concepts of datum and projection are often interchangeable: (lon, lat) coordinates are equivalent to cartesian (x, y) coordinates in the plate carree projection. | A [`Grid`](index.html#salem.Grid) is defined by a projection, a reference point in this projection, a grid spacing and a number of grid points: ``` In [1]: import numpy as np In [2]: import salem In [3]: from salem import wgs84 In [4]: grid = salem.Grid(nxny=(3, 2), dxdy=(1, 1), x0y0=(0.5, 0.5), proj=wgs84) In [5]: x, y = grid.xy_coordinates In [6]: x Out[6]: array([[ 0.5, 1.5, 2.5], [ 0.5, 1.5, 2.5]]) In [7]: y Out[7]: array([[ 0.5, 0.5, 0.5], [ 1.5, 1.5, 1.5]]) ``` The default is to define the grids according to the pixels center point: ``` In [8]: smap = salem.Map(grid) In [9]: smap.set_data(np.arange(6).reshape((2, 3))) In [10]: lon, lat = grid.ll_coordinates In [11]: smap.set_points(lon.flatten(), lat.flatten()) In [12]: smap.visualize(addcbar=False) ``` But with the `pixel_ref` keyword you can use another convention. For Salem, the two conventions are identical: ``` In [13]: grid_c = salem.Grid(nxny=(3, 2), dxdy=(1, 1), x0y0=(0, 0), ....: proj=wgs84, pixel_ref='corner') ....: In [14]: assert grid_c == grid ``` While it’s good to know how grids work, most of the time grids should be inferred directly from the data files (see also: [Initializing the accessor](index.html#xarray-acc-init)): ``` In [15]: ds = salem.open_xr_dataset(salem.get_demo_file('himalaya.tif')) In [16]: grid = ds.salem.grid In [17]: grid.proj.srs Out[17]: '+units=m +init=epsg:4326 ' In [18]: grid.extent Out[18]: [78.312513473116013, 93.937514288103202, 24.237496572347762, 31.545830286884001] ``` Grids come with several convenience functions, for example for transforming points onto the grid coordinates: ``` In [19]: grid.transform(85, 27, crs=salem.wgs84) Out[19]: (801.99834136842378, 544.9996059728029) ``` Or for reprojecting structured data as explained below. #### Reprojecting data[¶](#reprojecting-data) ##### Interpolation[¶](#interpolation) The standard way to reproject a gridded dataset into another one is to use the [`transform()`](index.html#salem.DatasetAccessor.transform) method: ``` In [20]: dse = salem.open_xr_dataset(salem.get_demo_file('era_interim_tibet.nc')) In [21]: t2_era_reproj = ds.salem.transform(dse.t2m.isel(time=0)) In [22]: t2_era_reproj.salem.quick_map(); ``` This is the recommended way if the output grid (in this case, a high resolution lon-lat grid) is of similar or finer resolution than the input grid (in this case, reanalysis data at 0.75°). As of v0.2, three interpolation methods are available in Salem: `nearest` (default), `linear`, or `spline`: ``` In [23]: t2_era_reproj = ds.salem.transform(dse.t2m.isel(time=0), interp='spline') In [24]: t2_era_reproj.salem.quick_map(); ``` Internally, Salem uses [pyproj](https://jswhit.github.io/pyproj/) for the coordinates transformation and scipy’s interpolation methods for the resampling. Note that reprojecting data can be computationally and memory expensive: it is generally recommended to reproject your data at the end of the processing chain if possible. The [`transform()`](index.html#salem.DatasetAccessor.transform) method returns an object of the same structure as the input. The only differences are the coordinates and the grid, which are those of the arrival grid: ``` In [25]: dst = ds.salem.transform(dse) In [26]: dst Out[26]: <xarray.Dataset> Dimensions: (time: 4, x: 1875, y: 877) Coordinates: * y (y) float64 31.54 31.53 31.52 31.52 31.51 31.5 31.49 31.48 ... * time (time) datetime64[ns] 2012-06-01 2012-06-01T06:00:00 ... * x (x) float64 78.32 78.33 78.33 78.34 78.35 78.36 78.37 78.38 ... Data variables: t2m (time, y, x) float64 278.6 278.6 278.6 278.6 278.6 278.6 278.6 ... Attributes: pyproj_srs: +units=m +init=epsg:4326 In [27]: dst.salem.grid == ds.salem.grid Out[27]: True ``` ##### Aggregation[¶](#aggregation) If you need to resample higher resolution data onto a coarser grid, [`lookup_transform()`](index.html#salem.DatasetAccessor.lookup_transform) may be the way to go. This method gets its name from the “lookup table” it uses internally to store the information needed for the resampling: for each grid point in the coarser dataset, the lookup table stores the coordinates of the high-resolution grid located below. The default resampling method is to average all these points: ``` In [28]: dse = dse.salem.subset(corners=((77, 23), (94.5, 32.5))) In [29]: dsl = dse.salem.lookup_transform(ds) In [30]: dsl.data.salem.quick_map(cmap='terrain'); ``` But any aggregation method is available, for example `np.std`, or `len` if you want to know the number of high resolution pixels found below a coarse grid point: ``` In [31]: dsl = dse.salem.lookup_transform(ds, method=len) In [32]: dsl.data.salem.quick_map(); ``` ### Recipes[¶](#recipes) Some examples of Salem’s features. [Topographic shading](index.html#sphx-glr-auto-examples-plot-topo-shading-py) #### Topographic shading[¶](#topographic-shading) Add topographic shading to a plot ``` from salem import mercator_grid, Map, get_demo_file import matplotlib.pyplot as plt # prepare the figure f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, figsize=(8, 7)) # map extent grid = mercator_grid(center_ll=(10.76, 46.79), extent=(18000, 14000)) sm = Map(grid, countries=False) sm.set_lonlat_contours(interval=0) # add topography fpath = get_demo_file('hef_srtm.tif') sm.set_topography(fpath) sm.visualize(ax=ax1, addcbar=False, title='relief_factor=0.7 (default)') # stronger shading sm.set_topography(fpath, relief_factor=1.4) sm.visualize(ax=ax2, addcbar=False, title='relief_factor=1.4') # add color shading z = sm.set_topography(fpath) sm.set_data(z) sm.set_cmap('topo') sm.visualize(ax=ax3, title='Color with shading', addcbar=False) # color without topo shading sm.set_topography() sm.visualize(ax=ax4, title='Color without shading', addcbar=False) # make it nice plt.tight_layout() plt.show() ``` **Total running time of the script:** ( 0 minutes 1.353 seconds) [`Download Python source code: plot_topo_shading.py`](_downloads/plot_topo_shading.py) [`Download Jupyter notebook: plot_topo_shading.ipynb`](_downloads/plot_topo_shading.ipynb) [Generated by Sphinx-Gallery](http://sphinx-gallery.readthedocs.io) [Plot overlays](index.html#sphx-glr-auto-examples-plot-wind-overlay-py) #### Plot overlays[¶](#plot-overlays) Add contours and wind arrows to a salem plot ``` import salem import numpy as np import matplotlib.pyplot as plt # get the data at the latest time step ds = salem.open_wrf_dataset(salem.get_demo_file('wrfout_d01.nc')).isel(time=-1) # get the wind data at 10000 m a.s.l. u = ds.salem.wrf_zlevel('U', 10000.) v = ds.salem.wrf_zlevel('V', 10000.) ws = ds.salem.wrf_zlevel('WS', 10000.) # get the axes ready f, ax = plt.subplots() # plot the salem map background, make countries in grey smap = ds.salem.get_map(countries=False) smap.set_shapefile(countries=True, color='grey') smap.plot(ax=ax) # transform the coordinates to the map reference system and contour the data xx, yy = smap.grid.transform(ws.west_east.values, ws.south_north.values, crs=ws.salem.grid.proj) cs = ax.contour(xx, yy, ws, cmap='viridis', levels=np.arange(0, 81, 10), linewidths=2) # Quiver only every 7th grid point u = u[4::7, 4::7] v = v[4::7, 4::7] # transform their coordinates to the map reference system and plot the arrows xx, yy = smap.grid.transform(u.west_east.values, u.south_north.values, crs=u.salem.grid.proj) xx, yy = np.meshgrid(xx, yy) qu = ax.quiver(xx, yy, u.values, v.values) qk = plt.quiverkey(qu, 0.7, 0.95, 50, '50 m s$^{-1}$', labelpos='E', coordinates='figure') # done! plt.show() ``` **Total running time of the script:** ( 0 minutes 7.324 seconds) [`Download Python source code: plot_wind_overlay.py`](_downloads/plot_wind_overlay.py) [`Download Jupyter notebook: plot_wind_overlay.ipynb`](_downloads/plot_wind_overlay.ipynb) [Generated by Sphinx-Gallery](http://sphinx-gallery.readthedocs.io) [Plot on a google map background](index.html#sphx-glr-auto-examples-plot-googlestatic-py) #### Plot on a google map background[¶](#plot-on-a-google-map-background) Google static maps API In this script, we use [motionless](https://github.com/ryancox/motionless) to download an image from the [google static map API](http://code.google.com/apis/maps/documentation/staticmaps/) and plot it on a [`Map`](index.html#salem.Map). We then add information to the map such as a glacier outline (from the [RGI](http://www.glims.org/RGI/)), and ground penetrating radar measurements (GPR, from the [GlaThiDa](http://www.gtn-g.ch/data_catalogue_glathida/) database). The GPR measurements were realized in 1997, the glacier outlines are from 2003, and the map background is from 2016. This illustrates the retreat of the Kesselwandferner glacier. ``` import numpy as np import pandas as pd import salem from salem import get_demo_file, DataLevels, GoogleVisibleMap, Map import matplotlib.pyplot as plt # prepare the figure f, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 5)) # read the shapefile and use its extent to define a ideally sized map shp = salem.read_shapefile(get_demo_file('rgi_kesselwand.shp')) # I you need to do a lot of maps you might want # to use an API key and set it here with key='YOUR_API_KEY' g = GoogleVisibleMap(x=[shp.min_x, shp.max_x], y=[shp.min_y, shp.max_y], maptype='satellite') # try out also: 'terrain' # the google static image is a standard rgb image ggl_img = g.get_vardata() ax1.imshow(ggl_img) ax1.set_title('Google static map') # make a map of the same size as the image (no country borders) sm = Map(g.grid, factor=1, countries=False) sm.set_shapefile(shp) # add the glacier outlines sm.set_rgb(ggl_img) # add the background rgb image sm.visualize(ax=ax2) # plot it ax2.set_title('GPR measurements') # read the point GPR data and add them to the plot df = pd.read_csv(get_demo_file('gtd_ttt_kesselwand.csv')) dl = DataLevels(df.THICKNESS, levels=np.arange(10, 201, 10), extend='both') x, y = sm.grid.transform(df.POINT_LON.values, df.POINT_LAT.values) ax2.scatter(x, y, color=dl.to_rgb(), s=50, edgecolors='k', linewidths=1) dl.append_colorbar(ax2, label='Ice thickness (m)') # make it nice plt.tight_layout() plt.show() ``` **Total running time of the script:** ( 0 minutes 1.244 seconds) [`Download Python source code: plot_googlestatic.py`](_downloads/plot_googlestatic.py) [`Download Jupyter notebook: plot_googlestatic.ipynb`](_downloads/plot_googlestatic.ipynb) [Generated by Sphinx-Gallery](http://sphinx-gallery.readthedocs.io) [Compare datasets of different resolution](index.html#sphx-glr-auto-examples-plot-topo-comparison-py) #### Compare datasets of different resolution[¶](#compare-datasets-of-different-resolution) An example of use for salem’s lookup_transform In this example, we compare a model topography defined at 1km resolution with the topography from the SRTM v4.1 dataset (resolution 3 minutes of arc, so ~ 90m). For this we use the [`DataArrayAccessor.lookup_transform()`](index.html#salem.DataArrayAccessor.lookup_transform) method. From the plot below, we see that the model topography is smoother than the aggregated SRTM (this is a good thing, as atmospheric models do not like steep gradients too much). The highest peaks or lowest valley aren’t resolved by the 1km topography. ``` import numpy as np from salem import get_demo_file, open_xr_dataset import matplotlib.pyplot as plt # get the topography data srtm = open_xr_dataset(get_demo_file('riosan_srtm_hgt.nc')).srtm wrf = open_xr_dataset(get_demo_file('riosan_wrf_hgt.nc')).HGT # transform the high-res topography onto the coarse grid # we ask for the lookup table to speed up the second transform srtm_on_wrf, lut = wrf.salem.lookup_transform(srtm, return_lut=True) srtm_on_wrf_std = wrf.salem.lookup_transform(srtm, method=np.std) # for fun we compute the max and min for each grid point srtm_on_wrf_min = wrf.salem.lookup_transform(srtm, method=np.min, lut=lut) srtm_on_wrf_max = wrf.salem.lookup_transform(srtm, method=np.max, lut=lut) # then compute the max absolute difference to wrf absdif = np.abs(np.dstack([srtm_on_wrf_min - wrf, srtm_on_wrf_max - wrf])) maxabsdif = np.max(absdif, axis=2) # Get the map defined by the WRF grid sm = wrf.salem.get_map(cmap='topo') # remove the lon-lat ticks for clarity sm.set_lonlat_contours(interval=0) # prepare the figure and plot f, ((ax1, ax2, ax3), (ax4, ax5, ax6)) = plt.subplots(2, 3, figsize=(11, 7)) # absolute values sm.set_data(srtm) sm.visualize(ax=ax1, title='SRTM 90m') sm.set_data(wrf) sm.visualize(ax=ax2, title='WRF 1km') sm.set_data(srtm_on_wrf) sm.visualize(ax=ax3, title='SRTM 1km') # comparisons sm.set_data(srtm_on_wrf_std) sm.set_plot_params(vmin=0, cmap='Purples') sm.visualize(ax=ax4, title='Std. Dev of SRTM') sm.set_data(wrf - srtm_on_wrf) sm.set_plot_params(levels=np.linspace(-250, 250, 11), cmap='RdBu') sm.visualize(ax=ax5, title='Diff WRF - SRTM') sm.set_data(maxabsdif) sm.set_plot_params(vmin=0, cmap='OrRd') sm.visualize(ax=ax6, title='Max. abs. diff.') # make it nice plt.tight_layout() plt.show() ``` **Total running time of the script:** ( 0 minutes 2.904 seconds) [`Download Python source code: plot_topo_comparison.py`](_downloads/plot_topo_comparison.py) [`Download Jupyter notebook: plot_topo_comparison.ipynb`](_downloads/plot_topo_comparison.ipynb) [Generated by Sphinx-Gallery](http://sphinx-gallery.readthedocs.io) [Plotting shapefiles](index.html#sphx-glr-auto-examples-plot-hydrosheds-py) #### Plotting shapefiles[¶](#plotting-shapefiles) Put some colors and labels on shapefiles In this script, we use data from the [HydroSHEDS](http://www.hydrosheds.org/) database to illustrate some functionalities of salem Maps. The data shows the sub-basins of the Nam Co Lake catchment in Tibet. We navigate between the various tributary catchments of the lake. ``` import salem import matplotlib.pyplot as plt # read the shapefile shpf = salem.get_demo_file('Lev_09_MAIN_BAS_4099000881.shp') gdf = salem.read_shapefile(shpf) # Get the google map which encompasses all geometries g = salem.GoogleVisibleMap(x=[gdf.min_x.min(), gdf.max_x.max()], y=[gdf.min_y.min(), gdf.max_y.max()], maptype='satellite', size_x=400, size_y=400) ggl_img = g.get_vardata() # Get each level draining into the lake, then into the last level, and so on gds = [] prev_id = [gdf.iloc[0].MAIN_BAS] while True: gd = gdf.loc[gdf.NEXT_DOWN.isin(prev_id)] if len(gd) == 0: break gds.append(gd) prev_id = gd.HYBAS_ID.unique() # make a map of the same size as the image sm = salem.Map(g.grid, factor=1) sm.set_rgb(ggl_img) # add the background rgb image # add all the draining basins cmap = plt.get_cmap('Blues') for i, gd in enumerate(gds): # here we use a trick. set_shapefile uses PatchCollections internally, # which is fast but does not support legend labels. # so we use set_geometry instead: for g, geo in enumerate(gd.geometry): # we don't want more than one label per level label = 'Level {:02d}'.format(i+1) if g == 0 else None sm.set_geometry(geo, facecolor=cmap(i/(len(gds)-1)), alpha=0.8, label=label) # Get the polygon of the last sink (i.e. the lake) and plot it gds_0 = gdf.loc[gdf.HYBAS_ID == gdf.iloc[0].MAIN_BAS] sm.set_shapefile(gds_0, linewidth=2) # Compute the outline of the entire basin and plot it gds_1 = gdf.geometry.unary_union sm.set_geometry(gds_1, linewidth=4) # plot! f, ax = plt.subplots(figsize=(6, 4)) ax.set_position([0.05, 0.06, 0.7, 0.9]) sm.visualize(ax=ax) plt.legend(loc='center left', bbox_to_anchor=(1, 0.5)) plt.show() ``` **Total running time of the script:** ( 0 minutes 3.519 seconds) [`Download Python source code: plot_hydrosheds.py`](_downloads/plot_hydrosheds.py) [`Download Jupyter notebook: plot_hydrosheds.ipynb`](_downloads/plot_hydrosheds.ipynb) [Generated by Sphinx-Gallery](http://sphinx-gallery.readthedocs.io) [`Download all examples in Python source code: auto_examples_python.zip`](_downloads/auto_examples_python.zip) [`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip`](_downloads/auto_examples_jupyter.zip) [Generated by Sphinx-Gallery](http://sphinx-gallery.readthedocs.io) ### API reference[¶](#api-reference) Here we will add the documentation for selected modules. #### Grid[¶](#grid) | [`Grid`](index.html#salem.Grid) | A structured grid on a map projection. | ##### Grid attributes[¶](#grid-attributes) | [`Grid.proj`](index.html#salem.Grid.proj) | `pyproj.Proj` instance defining the grid’s map projection. | | [`Grid.nx`](index.html#salem.Grid.nx) | number of grid points in the x direction. | | [`Grid.ny`](index.html#salem.Grid.ny) | number of grid points in the y direction. | | [`Grid.dx`](index.html#salem.Grid.dx) | x grid spacing (always positive). | | [`Grid.dy`](index.html#salem.Grid.dy) | y grid spacing (positive if ll_corner, negative if ul_corner). | | [`Grid.x0`](index.html#salem.Grid.x0) | X reference point in projection coordinates. | | [`Grid.y0`](index.html#salem.Grid.y0) | Y reference point in projection coordinates. | | [`Grid.origin`](index.html#salem.Grid.origin) | `'upper-left'` or `'lower-left'`. | | [`Grid.pixel_ref`](index.html#salem.Grid.pixel_ref) | if coordinates are at the `'center'` or `'corner'` of the grid. | | [`Grid.x_coord`](index.html#salem.Grid.x_coord) | x coordinates of the grid points (1D, no mesh) | | [`Grid.y_coord`](index.html#salem.Grid.y_coord) | y coordinates of the grid points (1D, no mesh) | | [`Grid.xy_coordinates`](index.html#salem.Grid.xy_coordinates) | Tuple of x, y coordinates of the grid points. | | [`Grid.ll_coordinates`](index.html#salem.Grid.ll_coordinates) | Tuple of longitudes, latitudes of the grid points. | | [`Grid.xstagg_xy_coordinates`](index.html#salem.Grid.xstagg_xy_coordinates) | Tuple of x, y coordinates of the X staggered grid. | | [`Grid.ystagg_xy_coordinates`](index.html#salem.Grid.ystagg_xy_coordinates) | Tuple of x, y coordinates of the Y staggered grid. | | [`Grid.xstagg_ll_coordinates`](index.html#salem.Grid.xstagg_ll_coordinates) | Tuple of longitudes, latitudes of the X staggered grid. | | [`Grid.ystagg_ll_coordinates`](index.html#salem.Grid.ystagg_ll_coordinates) | Tuple of longitudes, latitudes of the Y staggered grid. | | [`Grid.center_grid`](index.html#salem.Grid.center_grid) | `salem.Grid` instance representing the grid in center coordinates. | | [`Grid.corner_grid`](index.html#salem.Grid.corner_grid) | `salem.Grid` instance representing the grid in corner coordinates. | | [`Grid.extent`](index.html#salem.Grid.extent) | [left, right, bottom, top] boundaries of the grid in the grid’s | ##### Grid methods[¶](#grid-methods) | [`Grid.extent_in_crs`](index.html#salem.Grid.extent_in_crs) | Get the extent of the grid in a desired crs. | | [`Grid.ij_to_crs`](index.html#salem.Grid.ij_to_crs) | Converts local i, j to cartesian coordinates in a specified crs | | [`Grid.almost_equal`](index.html#salem.Grid.almost_equal) | A less strict comparison between grids. | | [`Grid.region_of_interest`](index.html#salem.Grid.region_of_interest) | Computes a region of interest (ROI). | | [`Grid.regrid`](index.html#salem.Grid.regrid) | Make a copy of the grid with an updated spatial resolution. | | [`Grid.transform`](index.html#salem.Grid.transform) | Converts any coordinates into the local grid. | | [`Grid.map_gridded_data`](index.html#salem.Grid.map_gridded_data) | Reprojects any structured data onto the local grid. | | [`Grid.grid_lookup`](index.html#salem.Grid.grid_lookup) | Performs forward transformation of any other grid into self. | | [`Grid.lookup_transform`](index.html#salem.Grid.lookup_transform) | Performs the forward transformation of gridded data into self. | | [`Grid.to_dict`](index.html#salem.Grid.to_dict) | Serialize this grid to a dictionary. | | [`Grid.from_dict`](index.html#salem.Grid.from_dict) | Create a Grid from a dictionary | | [`Grid.to_json`](index.html#salem.Grid.to_json) | Serialize this grid to a json file. | | [`Grid.from_json`](index.html#salem.Grid.from_json) | Create a Grid from a json file | #### Georeferencing utils[¶](#georeferencing-utils) | [`check_crs`](index.html#salem.check_crs) | Checks if the crs represents a valid grid, projection or ESPG string. | | [`proj_is_same`](index.html#salem.proj_is_same) | Checks is two pyproj projections are equal. | | [`proj_to_cartopy`](index.html#salem.proj_to_cartopy) | Converts a pyproj.Proj to a cartopy.crs.Projection | | [`transform_proj`](index.html#salem.transform_proj) | Wrapper around the pyproj.transform function. | | [`transform_geometry`](index.html#salem.transform_geometry) | Reprojects a shapely geometry. | | [`transform_geopandas`](index.html#salem.transform_geopandas) | Reprojects a geopandas dataframe. | | [`mercator_grid`](index.html#salem.mercator_grid) | Local transverse mercator map centered on a specified point. | | [`grid_from_dataset`](index.html#salem.grid_from_dataset) | Find out if the dataset contains enough info for Salem to understand. | #### Graphics[¶](#graphics) | [`DataLevels`](index.html#salem.DataLevels) | Assigns the right color to your data. | | [`Map`](index.html#salem.Map) | Plotting georeferenced data. | | [`get_cmap`](index.html#salem.get_cmap) | Get a colormap from mpl, and also those defined by Salem. | ##### Map & DataLevels methods[¶](#map-datalevels-methods) | [`DataLevels.append_colorbar`](index.html#salem.DataLevels.append_colorbar) | Appends a colorbar to existing axes | | [`DataLevels.colorbarbase`](index.html#salem.DataLevels.colorbarbase) | Returns a ColorbarBase to add to the cax axis. | | [`DataLevels.set_cmap`](index.html#salem.DataLevels.set_cmap) | Set a colormap. | | [`DataLevels.set_data`](index.html#salem.DataLevels.set_data) | Any kind of data array (also masked). | | [`DataLevels.set_plot_params`](index.html#salem.DataLevels.set_plot_params) | Shortcut to all parameters related to the plot. | | [`DataLevels.set_extend`](index.html#salem.DataLevels.set_extend) | Colorbar extensions: ‘neither’ | ‘both’ | ‘min’ | ‘max’ | | [`DataLevels.set_levels`](index.html#salem.DataLevels.set_levels) | Levels you define. | | [`DataLevels.set_nlevels`](index.html#salem.DataLevels.set_nlevels) | Automatic N levels. | | [`DataLevels.set_vmax`](index.html#salem.DataLevels.set_vmax) | Maximum level value. | | [`DataLevels.set_vmin`](index.html#salem.DataLevels.set_vmin) | Mininum level value. | | [`DataLevels.visualize`](index.html#salem.DataLevels.visualize) | Quick plot, useful for debugging. | | [`DataLevels.plot`](index.html#salem.DataLevels.plot) | Add a kind of plot of the data to an axis. | ##### Map methods[¶](#map-methods) | [`Map.set_data`](index.html#salem.Map.set_data) | Adds data to the plot. | | [`Map.set_contour`](index.html#salem.Map.set_contour) | Adds data to contour on the map. | | [`Map.set_contourf`](index.html#salem.Map.set_contourf) | Adds data to contourfill on the map. | | [`Map.set_geometry`](index.html#salem.Map.set_geometry) | Adds any Shapely geometry to the map. | | [`Map.set_lonlat_contours`](index.html#salem.Map.set_lonlat_contours) | Add longitude and latitude contours to the map. | | [`Map.set_points`](index.html#salem.Map.set_points) | Shortcut for set_geometry() accepting coordinates as input. | | [`Map.set_rgb`](index.html#salem.Map.set_rgb) | Manually force to a rgb img | | [`Map.set_shapefile`](index.html#salem.Map.set_shapefile) | Add a shapefile to the plot. | | [`Map.set_text`](index.html#salem.Map.set_text) | Add a text to the map. | | [`Map.set_topography`](index.html#salem.Map.set_topography) | Add topographical shading to the map. | | [`Map.transform`](index.html#salem.Map.transform) | Get a matplotlib transform object for a given reference system | | [`Map.visualize`](index.html#salem.Map.visualize) | Quick plot, useful for debugging. | | [`Map.plot`](index.html#salem.Map.plot) | Add the map plot to an axis. | #### Input/output[¶](#input-output) | [`get_demo_file`](index.html#salem.get_demo_file) | Returns the path to the desired demo file. | | [`read_shapefile`](index.html#salem.read_shapefile) | Reads a shapefile using geopandas. | | [`read_shapefile_to_grid`](index.html#salem.read_shapefile_to_grid) | Same as read_shapefile but directly transformed to a grid. | #### xarray[¶](#xarray) | [`open_xr_dataset`](index.html#salem.open_xr_dataset) | Thin wrapper around xarray’s open_dataset. | | [`open_wrf_dataset`](index.html#salem.open_wrf_dataset) | Wrapper around xarray’s open_dataset to make WRF files a bit better. | | [`open_mf_wrf_dataset`](index.html#salem.open_mf_wrf_dataset) | Open multiple WRF files as a single WRF dataset. | ##### xarray accessors[¶](#xarray-accessors) Salem adds [accessors](http://xarray.pydata.org/en/stable/internals.html#extending-xarray) to xarray objects. They can be accessed via the `.salem` attribute and add the following methods: ###### DataArray[¶](#dataarray) | [`DataArrayAccessor.subset`](index.html#salem.DataArrayAccessor.subset) | Get a subset of the dataset. | | [`DataArrayAccessor.roi`](index.html#salem.DataArrayAccessor.roi) | Make a region of interest (ROI) for the dataset. | | [`DataArrayAccessor.transform`](index.html#salem.DataArrayAccessor.transform) | Reprojects an other Dataset or DataArray onto self. | | [`DataArrayAccessor.lookup_transform`](index.html#salem.DataArrayAccessor.lookup_transform) | Reprojects an other Dataset or DataArray onto self using the forward tranform lookup. | | [`DataArrayAccessor.cartopy`](index.html#salem.DataArrayAccessor.cartopy) | Get a cartopy.crs.Projection for this dataset. | | [`DataArrayAccessor.get_map`](index.html#salem.DataArrayAccessor.get_map) | Make a salem.Map out of the dataset. | | [`DataArrayAccessor.quick_map`](index.html#salem.DataArrayAccessor.quick_map) | Make a plot of the DataArray. | | [`DataArrayAccessor.interpz`](index.html#salem.DataArrayAccessor.interpz) | Interpolates the array along the vertical dimension | | [`DataArrayAccessor.deacc`](index.html#salem.DataArrayAccessor.deacc) | De-accumulates the variable (i.e. | ###### Dataset[¶](#dataset) | [`DatasetAccessor.subset`](index.html#salem.DatasetAccessor.subset) | Get a subset of the dataset. | | [`DatasetAccessor.roi`](index.html#salem.DatasetAccessor.roi) | Make a region of interest (ROI) for the dataset. | | [`DatasetAccessor.transform`](index.html#salem.DatasetAccessor.transform) | Reprojects an other Dataset or DataArray onto self. | | [`DatasetAccessor.lookup_transform`](index.html#salem.DatasetAccessor.lookup_transform) | Reprojects an other Dataset or DataArray onto self using the forward tranform lookup. | | [`DatasetAccessor.transform_and_add`](index.html#salem.DatasetAccessor.transform_and_add) | Reprojects an other Dataset and adds it’s content to the current one. | | [`DatasetAccessor.cartopy`](index.html#salem.DatasetAccessor.cartopy) | Get a cartopy.crs.Projection for this dataset. | | [`DatasetAccessor.get_map`](index.html#salem.DatasetAccessor.get_map) | Make a salem.Map out of the dataset. | | [`DatasetAccessor.quick_map`](index.html#salem.DatasetAccessor.quick_map) | Make a plot of a variable of the DataSet. | | [`DatasetAccessor.wrf_zlevel`](index.html#salem.DatasetAccessor.wrf_zlevel) | Interpolates to a specified height above sea level. | | [`DatasetAccessor.wrf_plevel`](index.html#salem.DatasetAccessor.wrf_plevel) | Interpolates to a specified pressure level (hPa). | #### Old-style datasets[¶](#old-style-datasets) Old-style Datasets (prior to xarray), kept for backwards compatibility reasons and because they are quite lightweight. They might be replaced by xarray’s datasets one day. | [`GeoDataset`](index.html#salem.GeoDataset) | Interface for georeferenced datasets. | | [`GeoTiff`](index.html#salem.GeoTiff) | Geolocalised tiff images (needs rasterio). | | [`GeoNetcdf`](index.html#salem.GeoNetcdf) | NetCDF files with geolocalisation info. | | [`WRF`](index.html#salem.WRF) | WRF proof-of-concept template. | | [`GoogleCenterMap`](index.html#salem.GoogleCenterMap) | Google static map centered on a point. | | [`GoogleVisibleMap`](index.html#salem.GoogleVisibleMap) | Google static map automatically sized and zoomed to a selected region. | #### Other[¶](#other) | [`geogrid_simulator`](index.html#salem.geogrid_simulator) | Emulates geogrid.exe, which is useful when defining new WRF domains. | Get in touch[¶](#get-in-touch) --- * To ask questions or discuss Salem, send me an [e-mail](http://fabienmaussion.info/). * Report bugs, share your ideas or view the source code [on GitHub](https://github.com/fmaussion/salem). License[¶](#license) --- Salem is available under the open source [3-clause BSD license](https://en.wikipedia.org/wiki/BSD_licenses). About[¶](#about) --- | Status: | Experimental - in development | | License: | 3-clause BSD | | Authors: | [<NAME>](http://fabienmaussion.info/) | | Funding: | |
github.com/ovh/cds
go
Go
README [¶](#section-readme) --- ### CDS: Continuous Delivery Service [![Go Report Card](https://goreportcard.com/badge/github.com/ovh/cds)](https://goreportcard.com/report/github.com/ovh/cds) [![GoDoc](https://godoc.org/github.com/ovh/cds/sdk/cdsclient?status.svg)](https://godoc.org/github.com/ovh/cds/sdk/cdsclient) ![](https://raw.githubusercontent.com/ovh/cds/master/logo-background.png) CDS is an Enterprise-Grade Continuous Delivery & DevOps Automation Platform written in Go(lang). **This project is under active development** **[Documentation](https://ovh.github.io/cds/)** #### Intuitive UI CDS provides an intuitive UI that allows you to build complex workflows, run them and dig into the logs when needed. ![create and run workflow with CDS ui](https://github.com/ovh/cds/raw/v0.53.0/docs/static/images/capture-start.gif "create and run workflow with CDS ui") *Create and run workflow with CDS ui.* #### The most powerful Command Line for a CI/CD Platform cdsctl is the CDS Command Line - you can script everything with it, cdsctl also provides some cool commands such as `cdsctl shell` to browse your projects and workflows without the need to open a browser. [See all cdsctl commands](https://ovh.github.io/cds/docs/components/cdsctl/) ![create workflow as code with CDS command line](https://github.com/ovh/cds/raw/v0.53.0/docs/static/images/init_template_as_code.gif "create workflow as code with CDS command line") *Create workflow as code with CDS command line.* #### Want a try? Docker-Compose is your friend, see [Ready To Run Tutorials](https://ovh.github.io/cds/hosting/ready-to-run/) #### Blog posts and talks * CDS Introduction: <https://blog.ovhcloud.com/how-does-ovh-manage-the-ci-cd-at-scale/> * DataBuzzWord Podcast (French) : <https://blog.ovhcloud.com/understanding-ci-cd-for-big-data-and-machine-learning/> * Continuous Delivery and Deployment Workflows with CDS: <https://blog.ovhcloud.com/continuous-delivery-and-deployment-workflows-with-cds/> * Talk at conference [Breizhcamp](https://www.breizhcamp.org) to introduce CDS (French): <https://www.youtube.com/watch?v=JUzEQuOehv4#### FAQ ##### Why CDS? Discover the Origins * [Self-Service](https://ovh.github.io/cds/about/why_cds/#1-self-service) * [Horizontal Scalability](https://ovh.github.io/cds/about/why_cds/#2-horizontal-scalability) * [High Availability](https://ovh.github.io/cds/about/why_cds/#3-high-availability) * [Pipeline Reutilisability](https://ovh.github.io/cds/about/why_cds/#4-pipeline-reutilisability) * [Rest API](https://ovh.github.io/cds/about/why_cds/#5-rest-api) * [Customizable](https://ovh.github.io/cds/about/why_cds/#6-customizable) ##### What is a CDS workflow? Most of the CI/CD Tools play with jobs inside a pipeline. CDS introduces a new concept named `CDS Workflows`. A [CDS Workflow](https://ovh.github.io/cds/docs/concepts/workflow/) allows you to chain pipelines with triggers. A [pipeline](https://ovh.github.io/cds/docs/concepts/pipeline/) is structured in sequential [stages](https://ovh.github.io/cds/docs/concepts/pipeline/#stages) containing one or multiple concurrent [jobs](https://ovh.github.io/cds/docs/concepts/job/). ##### Can I use it in production? Yes! CDS is used in production since 2015 @OVH and it launches more than 7M CDS workers per year. You can install the official release available on <https://github.com/ovh/cds/releasesCDS provides everything needed to monitor and measure production activity (logs, metrics, monitoring) ##### How to backup? All data are stored in the database - nothing on the filesystem. Just backup your database regularly and you will be safe. ##### Need some help? Core Team is available on [GitHub](https://github.com/ovh/cds/discussions) ##### CDS User features ###### Pipeline Ability to run multiple jobs simultaneously while keeping an isolation between them. [See doc about stages & jobs inside a pipeline](https://ovh.github.io/cds/docs/concepts/pipeline/). A pipeline is started with a context: 0 or 1 application, 0 or 1 environment. ###### Workflow A Workflow makes it possible to chain the pipelines. This is a key Feature of CDS. You can create workflows using one or more pipelines, pipelines that can be linked together with joins or forks. You can imagine having only one workflow builder and deploying your entire microservice stack. The same pipeline can be used several times in a workflow, you can associate an application, an environment. You will only have one deployment pipeline and one build pipeline to maintain, even if you have hundreds of applications. ###### Workflow templates A workflow template allows you to share and reuse workflows across multiple teams. Any user can create a Workflow Template, maintain it as code or from UI, and bulk update a set of workflows with a single action. As a company, you can offer a predefined catalog of Workflows allowing you to standardize test and deployment practices across all your teams. This also reduces the maintenance efforts since templates allow a scalable centralized management. ###### Visual configuration with Web UI You can configure everything with the web UI. Even if you have complex use cases, it's usually easier to create your workflows graphically. ###### Configuration on Git Repository Pipeline as code is a well-known concept of CI / CD tools. CDS goes a step further and offers workflow as code. This is done by git-pushing using yaml configuration files of your workflow (+ pipeline, + applications, + environment). This is particularly useful as you can test your new workflow on a dev branch, before merging the changes on the master branch. ###### Configuration as code on UI You can modify your workflow with the UI, you can also modify the configuration by editing the yaml directly in the UI if you wish. This is an excellent way to learn how to use the workflow-as-code feature. ###### Native Git branching Ability to launch builds based on a branch pattern. This allows, for example, to deploy dev/\* branches to "staging" and deploy the master branch to "prod". Note that CDS's default behavior is to launch the whole workflow on every git commit. This behavior can be altered using "run conditions". ###### Native GitHub / Bitbucket Server / GitLab / Gerrit integration 2-way integration with most popular git-based products. 1. Ability to get notified and start a build when a change is pushed . 2. Ability to notify the git-based tool of the success/failure of the build. CDS natively supports GitHub, GitLab, Bitbucket Server and Gerrit. The link between your git repo and CDS is via a CDS application: 1 Git repository == a CDS application. Through this integration, CDS will push build status of your commits : Building, Success or Failed. ###### Multiple VCS Support in Pipeline/Job CDS gives you the possibility to clone from different git repositories within a single workflow. A CDS workflow can involve several different applications - or none if you do not want to have a connection with a git repo. ###### Job's Services Ability to start ephemeral services (a database, a web server, etc.) to support your job. This is particularly handy while testing your code. In CDS these services are called Service Prerequisites. You just need to specify the corresponding docker image and run params. Take a simple example: you have a pipeline that builds a docker image containing your application. Your application needs a redis and a postgreSQL to work. You can, in a CDS job, put three prerequisite services: a redis, a postgreSQL and your application. CDS will take care of making a private network between its services so that they can communicate with each other. Your CDS job can thus perform integration tests on your application started with a real database and a real cache. Please read: <https://ovh.github.io/cds/docs/concepts/requirement/requirement_service/###### Secure Remote Caching A remote cache is used by a team of developers and/or a continuous integration (CI) system to share build outputs. If your build is reproducible, the outputs from one machine can be safely reused on another machine, which can make builds significantly faster Doc: <https://ovh.github.io/cds/docs/components/worker/cache/###### Enterprise Notification Bus As an Enterprise-Grade platform, CDS can send a wide range of its internal events (e.g. build finished) in an event bus. This event flow can then feed other services (reporting, notifications, etc., ). ###### Built-in Hooks Ability to launch a workflow manually or with git pushes or via a scheduler or via a webhook. In addition to the above, CDS can also be triggered using an event bus to (kafka or RabbitMQ). ###### Continuous Deployment & Environment Support Ability to manage multiple environments (e.g. dev/prod/staging) in a secure way with segregated access rights. In practice, an environment is a just set of variables that you can use within your workflows. With CDS, You can use a deployment pipeline on your preproduction environment and use that same deployment pipeline on your production environment. The ability to deploy to production can be limited to a pre-established group of users. ###### Enterprise-grade permissions / Support of ACLs delegation Users are free to create groups and manage users in their groups. A group can have the rights to read, write, execute on their projects and their workflows. You can also restrict the execution of some pipelines to some groups if you wish. ###### Build Artifacts Cloud If you use CDS as a CI / CD tool, you will probably have built artifacts. CDS jobs are isolated from each other, but you can pass artifacts from one job to another using the Artifact Upload and Artifact Download actions. At the end of a CDS job, all the files are deleted from the workers. To persist artifacts, CDS can use a Swift Storage or a given filesystem (not recommended though). ###### Tests & Vulnerabilities Reports CDS clearly displays the results of unit tests and vulnerabilities detected during builds. ###### Self-Service Project Creation A CDS project is like a tenant. All users can create a CDS project, this project will bring together applications, environments, pipelines and of course workflows. CDS projects are isolated from one another, but the same group may have access rights to multiple projects if you wish. ###### Execution Environment Customization A worker model is a worker execution context. Let's say, you need to run a job that requires GoLang v1.11.5. In CDS, you just need to create a Go worker model, containing a go in version 1.11.5. A worker model can be a docker image, an openstack image, a VSphere image. Although CDS administrators can offer shared worker models, users can create their own template workers if they wish. ###### Self Service User’s Integrations On a CDS project, you can add integrations like openstack, kubernetes, etc ... This will offer you features within your workflows. For example, with the Kubernetes integration, you can add your own cluster to your CDS project and thus be able to use the Deploy Application action to deploy your newly built application on your cluster, in helm format if you wish. You can of course develop your own integrations. ###### Multi-Tenancy After reading the previous points, you've understood: self-service everywhere. All users can create their project / workflow / worker models / workflow templates / actions ... And run Jobs in a totally isolated environment. CDS projects are builders, on which you can add integrations. All this allows you to have only one instance of CDS for your entire company. ###### Command Line Interface (cdsctl): 100% features supported All you can do with the UI is available via the Command-Line Interface (CLI), named "cdsctl". cdsctl is available on all the OS: darwin, freebsd, linux, openbsd ... cdsctl will allow you to create, launch, export, import your workflows, monitor your CDS, navigate through your projects, workflows. No need to go to the UI of CDS or your repository manager to check the status of your commit, `git push && cdsctl workflow --track` will display your workflow in your command line. ###### REST API & SDK Do you have even more advanced automation needs, or the desire to develop an application that queries CDS? the [REST API](https://ovh.github.io/cds/development/rest/) and the [SDK](https://ovh.github.io/cds/development/sdk/golang/) will allow you to easily develop your software. ##### CDS Administration features ###### Self-Hosting CDS is open-source since October 2016. You can install it freely in your company or at home. Some tutorials are available to help you start a CDS, [docker-compose](https://ovh.github.io/cds/hosting/ready-to-run/docker-compose/), [Install with binaries](https://ovh.github.io/cds/hosting/ready-to-run/from-binaries/). ###### High Availability / Scalability / Upgrade without User Downtime High availability is a very important point for a CI / CD tool. CDS is stateless, nothing is stored on the filesystem. This makes it possible to launch several CDS APIs behind a load balancer. Thus, you can scale the API of CDS to your needs. It also allows upgrades of CDS in full day without impact for users. In production @OVH, CDS can be updated several times a day, without impacting users or stopping CDS workers. Asking your users to stop working while updating the Continuous Delivery tool would be ironic, isn't it? ;-) ###### Built-in Metrics CDS natively exposes monitoring data. You will be able to feed your instance [prometheus](https://prometheus.io/) or [warp10](https://www.warp10.io/) using [beamium](https://github.com/ovh/beamium). ###### Extensibility Plugins A CDS job consists of steps. Each step is a built-in type action (script, checkoutApplication, Artifact upload / download ...). You can create your own actions, using existing actions - or develop your own action as a plugin. All languages are supported, as long as the language supports GRPC. ###### OS/Arch Compatibility CDS is agnostic to languages and platforms. Users can launch Jobs on linux, windows, freebsd, osx, raspberry ... in a Virtual Machine spawn on demand, in a docker container, on a dedicated host. So, if your company uses multiple technologies, CDS will not be a blocker for building and deploying your internal software. ###### Auto-Scale OnDemand multi-cloud One of the initial objectives of CDS at OVH: build and deploy 150 applications as a container in less than 7 minutes. This has become reality since 2015. What is the secret key? Auto-Scale on Demand! Thus, you can have hundreds of worker models and when necessary, CDS will start the workers using the hatcheries. A [hatchery](https://ovh.github.io/cds/docs/components/hatchery/) is like an incubator, it gives birth to the CDS Workers and the right of life and death over them. Several types of hatchery are available: * **[hatchery kubernetes](https://ovh.github.io/cds/docs/integrations/kubernetes/kubernetes_compute/)** starts workers in pods * **[hatchery openstack](https://ovh.github.io/cds/docs/integrations/openstack/openstack_compute/)** starts virtual machines * **[hatchery swarm](https://ovh.github.io/cds/docs/integrations/swarm/)** starts docker containers * **[hatchery vSphere](https://ovh.github.io/cds/docs/integrations/vsphere/)** starts virtual machines * **[hatchery local](https://ovh.github.io/cds/docs/components/hatchery/local/)** starts processes on a host So yes, buzzwords or not, a multi-cloud Auto-scale OnDemand is a reality with CDS :-) #### License [3-clause BSD](https://github.com/ovh/cds/blob/v0.53.0/LICENSE) None
spinnman
readthedoc
Unknown
SpiNNMan Documentation Release April 23, 2015 Contents 3.1 spinnman packag... 7 i ii SpiNNMan Documentation, Release Used to communicate with a SpiNNaker Board. The main part of this package is the spinnman.transceiver.Transceiver class. This can be used to send and receive packets in various SpiNNaker formats, depending on what connections are available. SpiNNMan Documentation, Release 2 Contents CHAPTER 1 Functional Requirements • Connect to and communicate with a machine using a number of different connections. • Boot a machine with the expected version of the software. – If the machine is already booted but the version is not the version expected, an exception will be thrown. • Check the version of the software which the machine is booted with. • Query the state of the machine to determine: – What the current state of the machine is in terms of the chips and cores available, the SDRAM available on the chips and the which links are available between which chips. – What external links to the host exist (and separately add the discovered links to the set of links used to communicate with the machine). – What is running on the machine and where, and what the current status of those processes are. – How many cores are in a given state. – What is in the IOBUF buffers. – What the current routing entries for a given router are. – What the routing status counter values are. • Load application binaries on to the machine, either to individual cores or via a “flood-fill” mechanism to multiple cores simultaneously (which may be a subset of the cores on a subset of the chips). • Write data to SDRAM, either on an individual chip, or via a “flood-fill” mechanism to multiple chips simulta- neously. • Send a signal to an application. • Read data from SDRAM on an individual chip. • Send and receive SpiNNaker packets where the connections allow this. – If no connection supports this packet type, an exception is thrown. – The user should be able to select which connection is used. Selection of a connection which does not support the traffic type will also result in an exception. • Send and receive SCP and SDP packets where the connections allow this. – If no connection supports the packet type, an exception is thrown. – The user should be able to select which connection is used. Selection of a connection which does not support the traffic type will also result in an exception. SpiNNMan Documentation, Release • It should be possible to call any of the functions simultaneously, including the same function more than once. – Where possible, multiple connections should be used to overlap calls. – The functions should not return until they have confirmed that any messages sent have been received, and any responses have been received. – Functions should not respond with the result of a different function. – Functions can further sub-divide the call into a number of separate calls that can be divided across the available connections, so long as the other requirements are met. • More than one machine can be connected to the same host. – Once the subset of connections has been worked out for each machine, the operation of these machines should be independent. CHAPTER 2 Use Cases • boot_board() and get_scamp_version() are used to ensure that the board is booted correctly before starting a simulation. • get_machine_details() is used to get a representation of the current state of the machine, which is used to decide where executables are to be run on the board for a particular simulation, where any external peripherals are connected, and how messages between the executables and/or the external peripherals are to be routed • write_memory() and execute() are used to write parameters and execute executables on the board • send_signal() is used to send a signal which starts, stops or pauses a simulation. • get_core_status_count() is used to determine if a simulation is complete or has gone into an error state. • get_iobuf(), get_cpu_information() and get_router_diagnostics() are used to diagnose a problem with a simulation • read_memory() is used to read some statistics recorded in SDRAM after a simulation • set_ip_tag() and SCPListener are used to set up an IP Tag on the machine and receive transmitted SCP packets from the machine • send_multicast() and send_scp_message() are used to inject packets in to the machine from the host SpiNNMan Documentation, Release 6 Chapter 2. Use Cases CHAPTER 3 Contents 3.1 spinnman package 3.1.1 Subpackages spinnman.connections package Subpackages spinnman.connections.abstract_classes package Subpackages spinnman.connections.abstract_classes.udp_receivers package Submodules spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_command_receiver module class spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_command_receiver Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A receiver of SCP messages Abstract Methods is_udp_eieio_command_receiver() Methods receive_eieio_command_message([timeout]) Receives an eieio message from this connection. SpiNNMan Documentation, Release Detailed Methods is_udp_eieio_command_receiver() receive_eieio_command_message(timeout=None) Receives an eieio message from this connection. Blocks until a message has been received, or a timeout occurs. Parameters timeout (int) – The time in seconds to wait for the message to arrive; if not speci- fied, will wait forever, or until the connection is closed Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error receiving the message • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received • spinnman.exceptions.SpinnmanInvalidPacketException – If the received packet is not a valid SCP message • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the SCP message is invalid spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_data_receiver module class spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_data_receiver.Ab Bases: spinnman.connections.abstract_classes.abstract_eieio_receiver.AbstractEIEIOReceiv A receiver of SCP messages Abstract Methods is_udp_eieio_receiver() Methods is_eieio_receiver() receive_eieio_message([timeout]) Receives an eieio message from this connection. Detailed Methods is_eieio_receiver() is_udp_eieio_receiver() receive_eieio_message(timeout=None) Receives an eieio message from this connection. Blocks until a message has been received, or a timeout occurs. Parameters timeout (int) – The time in seconds to wait for the message to arrive; if not speci- fied, will wait forever, or until the connection is closed SpiNNMan Documentation, Release Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error receiving the message • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received • spinnman.exceptions.SpinnmanInvalidPacketException – If the received packet is not a valid SCP message • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the SCP message is invalid spinnman.connections.abstract_classes.udp_receivers.abstract_udp_scp_receiver module class spinnman.connections.abstract_classes.udp_receivers.abstract_udp_scp_receiver.AbstractU Bases: spinnman.connections.abstract_classes.abstract_scp_receiver.AbstractSCPReceiver A receiver of SCP messages Abstract Methods is_udp_scp_receiver() Methods receive_scp_response(scp_response[, timeout]) Receives an SCP message from this connection. Detailed Methods is_udp_scp_receiver() receive_scp_response(scp_response, timeout=None) Receives an SCP message from this connection. Blocks until a message has been received, or a timeout occurs. Parameters • scp_response – The response to fill in • timeout (int) – The time in seconds to wait for the message to arrive; if not specified, will wait forever, or until the connection is closed Rtype scp_response spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error receiving the message • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanInvalidPacketException – If the received packet is not a valid SCP message • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the SCP message is invalid spinnman.connections.abstract_classes.udp_receivers.abstract_udp_sdp_receiver module class spinnman.connections.abstract_classes.udp_receivers.abstract_udp_sdp_receiver.AbstractU Bases: spinnman.connections.abstract_classes.abstract_sdp_receiver.AbstractSDPReceiver A receiver of SDP messages Abstract Methods is_udp_sdp_reciever() Methods receive_sdp_message([timeout]) Receives an SDP message from this connection. Detailed Methods is_udp_sdp_reciever() receive_sdp_message(timeout=None) Receives an SDP message from this connection. Blocks until the message has been received, or a timeout occurs. Parameters timeout (int) – The time in seconds to wait for the message to arrive; if not speci- fied, will wait forever, or until the connection is closed Returns The received SDP message Return type spinnman.messages.sdp.sdp_message.SDPMessage Raises • spinnman.exceptions.SpinnmanIOException – If there is an error receiving the message • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received • spinnman.exceptions.SpinnmanInvalidPacketException – If the received packet is not a valid SDP message • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the SDP message is invalid spinnman.connections.abstract_classes.udp_senders package Submodules SpiNNMan Documentation, Release spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_command_sender module class spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_command_sender.Abs Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A receiver of SCP messages Abstract Methods is_udp_eieio_command_sender() Methods send_eieio_command_message(eieio_command_message) Sends an SDP message down this connection Detailed Methods is_udp_eieio_command_sender() send_eieio_command_message(eieio_command_message) Sends an SDP message down this connection Parameters eieio_command_message (spinnman.messages.eieio.eieio_command_message.EIEIOCommandMessage – The eieio message to be sent Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanIOException If there is an error sending the message spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_sender module class spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_sender.AbstractUDP Bases: spinnman.connections.abstract_classes.abstract_eieio_sender.AbstractEIEIOSender A receiver of SCP messages Abstract Methods is_udp_eieio_sender() Methods send_eieio_message(eieio_message) Sends an SDP message down this connection Detailed Methods is_udp_eieio_sender() send_eieio_message(eieio_message) SpiNNMan Documentation, Release Sends an SDP message down this connection Parameters eieio_message (spinnman.messages.eieio.abstract_messages.abstract_eieio_mes – The eieio message to be sent Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error sending the message • spinnman.exceptions.SpinnmanInvalidParameterTypeException – If the message passed to be sent does not inherit from spinnman.messages.eieio.abstract_messages.abstract_eieio_message.AbstractEI spinnman.connections.abstract_classes.udp_senders.abstract_udp_scp_sender module class spinnman.connections.abstract_classes.udp_senders.abstract_udp_scp_sender.AbstractUDPSC Bases: spinnman.connections.abstract_classes.abstract_scp_sender.AbstractSCPSender A sender of SCP messages Abstract Methods is_udp_scp_sender() Methods send_scp_request(scp_request) Sends an SCP request down this connection Detailed Methods is_udp_scp_sender() send_scp_request(scp_request) Sends an SCP request down this connection Messages must have the following properties: •source_port is None or 7 •source_cpu is None or 31 •source_chip_x is None or 0 •source_chip_y is None or 0 tag in the message is optional - if not set the default set in the constructor will be used. sequence in the message is optional - if not set (sequence number last assigned + 1) % 65536 will be used Parameters scp_request (spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest – message packet to send Returns Nothing is returned Return type None SpiNNMan Documentation, Release Raises spinnman.exceptions.SpinnmanIOException If there is an error sending the message spinnman.connections.abstract_classes.udp_senders.abstract_udp_sdp_sender module class spinnman.connections.abstract_classes.udp_senders.abstract_udp_sdp_sender.AbstractUDPSD Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A sender of SDP messages Abstract Methods is_udp_sdp_sender() Methods send_sdp_message(sdp_message) Sends an SDP message down this connection Detailed Methods is_udp_sdp_sender() send_sdp_message(sdp_message) Sends an SDP message down this connection Parameters sdp_message (spinnman.messages.sdp.sdp_message.SDPMessage) – The SDP message to be sent Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanIOException If there is an error sending the message Submodules spinnman.connections.abstract_classes.abstract_callbackable_connection module class spinnman.connections.abstract_classes.abstract_callbackable_connection.AbstractCallback Bases: object Abstract Methods deregister_callback(callback) register_callback(callback, traffic_type) Detailed Methods deregister_callback(callback) register_callback(callback, traffic_type) SpiNNMan Documentation, Release spinnman.connections.abstract_classes.abstract_connection module class spinnman.connections.abstract_classes.abstract_connection.AbstractConnection Bases: object An abstract connection to the SpiNNaker board over some medium Abstract Methods close() Closes the connection is_connected() Determines if the medium is connected at this point in time Detailed Methods close() Closes the connection Returns Nothing is returned Return type None Raises None No known exceptions are raised is_connected() Determines if the medium is connected at this point in time Returns True if the medium is connected, False otherwise Return type bool Raises spinnman.exceptions.SpinnmanIOException If there is an error when determining the connectivity of the medium spinnman.connections.abstract_classes.abstract_eieio_receiver module class spinnman.connections.abstract_classes.abstract_eieio_receiver.AbstractEIEIOReceiver Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection Abstract Methods is_eieio_receiver() receive_eieio_message([timeout]) Detailed Methods is_eieio_receiver() receive_eieio_message(timeout=None) spinnman.connections.abstract_classes.abstract_eieio_sender module class spinnman.connections.abstract_classes.abstract_eieio_sender.AbstractEIEIOSender Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A receiver of SCP messages SpiNNMan Documentation, Release Abstract Methods is_eieio_sender() send_eieio_message(eieio_message) Sends an SDP message down this connection Detailed Methods is_eieio_sender() send_eieio_message(eieio_message) Sends an SDP message down this connection Parameters eieio_message (spinnman.messages.eieio.eieio_data_message.EIEIODataMessage) – The eieio message to be sent Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanIOException If there is an error sending the message spinnman.connections.abstract_classes.abstract_multicast_receiver module class spinnman.connections.abstract_classes.abstract_multicast_receiver.AbstractMulticastRece Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A receiver of Multicast messages Abstract Methods get_input_chips() Get a list of chips which identify the chips from which this receiver can receive rec receive_multicast_message([timeout]) Receives a multicast message from this connection. Detailed Methods get_input_chips() Get a list of chips which identify the chips from which this receiver can receive receive packets directly Returns An iterable of tuples of (x, y) where x is the x-coordinate of the chip and y is the y-coordinate of the chip Return type iterable of (int, int) Raises None No known exceptions are raised receive_multicast_message(timeout=None) Receives a multicast message from this connection. Blocks until a message has been received, or a timeout occurs. Parameters timeout (int) – The time in seconds to wait for the message to arrive; if not speci- fied, will wait forever, or until the connection is closed Returns a multicast message Return type spinnman.messages.multicast_message.MulticastMessage Raises SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanIOException – If there is an error receiving the message • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received • spinnman.exceptions.SpinnmanInvalidPacketException – If the received packet is not a valid multicast message • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the multicast message is invalid spinnman.connections.abstract_classes.abstract_multicast_sender module class spinnman.connections.abstract_classes.abstract_multicast_sender.AbstractMulticastSender Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A sender of Multicast messages Abstract Methods get_input_chips() Get a list of chips which identify the chips to which this sender can send mult send_multicast_message(multicast_message) Sends a SpiNNaker multicast message using this connection Detailed Methods get_input_chips() Get a list of chips which identify the chips to which this sender can send multicast packets directly Returns An iterable of tuples of (x, y) where x is the x-coordinate of the chip and y is the y-coordinate of the chip Return type iterable of (int, int) Raises None No known exceptions are raised send_multicast_message(multicast_message) Sends a SpiNNaker multicast message using this connection Parameters multicast_message (spinnman.messages.multicast_message.MulticastMessage) – The message to be sent Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanIOException If there is an error sending the message spinnman.connections.abstract_classes.abstract_scp_receiver module class spinnman.connections.abstract_classes.abstract_scp_receiver.AbstractSCPReceiver Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A receiver of SCP messages Abstract Methods Continued on next page SpiNNMan Documentation, Release Table 3.23 – continued from previous page is_scp_receiver() receive_scp_response(scp_response[, timeout]) Receives an SCP message from this connection. Detailed Methods is_scp_receiver() receive_scp_response(scp_response, timeout=None) Receives an SCP message from this connection. Blocks until a message has been received, or a timeout occurs. Parameters • scp_response – The response to fill in • timeout (int) – The time in seconds to wait for the message to arrive; if not specified, will wait forever, or until the connection is closed Rtype scp_response spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error receiving the message • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received • spinnman.exceptions.SpinnmanInvalidPacketException – If the received packet is not a valid SCP message • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the SCP message is invalid spinnman.connections.abstract_classes.abstract_scp_sender module class spinnman.connections.abstract_classes.abstract_scp_sender.AbstractSCPSender Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A sender of SCP messages Abstract Methods is_udp_scp_sender() send_scp_request(scp_request) Sends an SCP request down this connection Detailed Methods is_udp_scp_sender() send_scp_request(scp_request) Sends an SCP request down this connection SpiNNMan Documentation, Release Messages must have the following properties: •source_port is None or 7 •source_cpu is None or 31 •source_chip_x is None or 0 •source_chip_y is None or 0 tag in the message is optional - if not set the default set in the constructor will be used. sequence in the message is optional - if not set (sequence number last assigned + 1) % 65536 will be used Parameters scp_request (spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest – message packet to send Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanIOException If there is an error sending the message spinnman.connections.abstract_classes.abstract_sdp_receiver module class spinnman.connections.abstract_classes.abstract_sdp_receiver.AbstractSDPReceiver Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A receiver of SDP messages Abstract Methods is_sdp_reciever() receive_sdp_message([timeout]) Receives an SDP message from this connection. Detailed Methods is_sdp_reciever() receive_sdp_message(timeout=None) Receives an SDP message from this connection. Blocks until the message has been received, or a timeout occurs. Parameters timeout (int) – The time in seconds to wait for the message to arrive; if not speci- fied, will wait forever, or until the connection is closed Returns The received SDP message Return type spinnman.messages.sdp.sdp_message.SDPMessage Raises • spinnman.exceptions.SpinnmanIOException – If there is an error receiving the message • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received • spinnman.exceptions.SpinnmanInvalidPacketException – If the received packet is not a valid SDP message • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the SDP message is invalid SpiNNMan Documentation, Release spinnman.connections.abstract_classes.abstract_sdp_sender module class spinnman.connections.abstract_classes.abstract_sdp_sender.AbstractSDPSender Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A sender of SDP messages Abstract Methods is_sdp_sender() send_sdp_message(sdp_message) Sends an SDP message down this connection Detailed Methods is_sdp_sender() send_sdp_message(sdp_message) Sends an SDP message down this connection Parameters sdp_message (spinnman.messages.sdp.sdp_message.SDPMessage) – The SDP message to be sent Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanIOException If there is an error sending the message spinnman.connections.abstract_classes.abstract_spinnaker_boot_receiver module class spinnman.connections.abstract_classes.abstract_spinnaker_boot_receiver.AbstractSpinnake Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A receiver of Spinnaker boot messages Abstract Methods receive_boot_message([timeout]) Receives a boot message from this connection. Detailed Methods receive_boot_message(timeout=None) Receives a boot message from this connection. Blocks until a message has been received, or a timeout occurs. Parameters timeout (int) – The time in seconds to wait for the message to arrive; if not speci- fied, will wait forever, or until the connection is closed Returns a boot message Return type spinnman.messages.spinnaker_boot.spinnaker_boot_message.SpinnakerBootM Raises • spinnman.exceptions.SpinnmanIOException – If there is an error receiving the message SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received • spinnman.exceptions.SpinnmanInvalidPacketException – If the received packet is not a valid spinnaker boot message • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the spinnaker boot message is invalid spinnman.connections.abstract_classes.abstract_spinnaker_boot_sender module class spinnman.connections.abstract_classes.abstract_spinnaker_boot_sender.AbstractSpinnakerB Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection A sender of Spinnaker Boot messages Abstract Methods send_boot_message(boot_message) Sends a SpiNNaker boot message using this connection Detailed Methods send_boot_message(boot_message) Sends a SpiNNaker boot message using this connection Parameters boot_message (spinnman.messages.spinnaker_boot.spinnaker_boot_message.Spin – The message to be sent Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanIOException If there is an error sending the message spinnman.connections.abstract_classes.abstract_udp_connection module class spinnman.connections.abstract_classes.abstract_udp_connection.AbstractUDPConnection(loca lo- cal_ re- mot re- mot Bases: object Parameters • local_host (str or None) – The local host name or ip address to bind to. If not specified defaults to bind to all interfaces, unless remote_host is specified, in which case binding is _done to the ip address that will be used to send packets • local_port (int) – The local port to bind to, between 1025 and 65535. If not specified, defaults to a random unused local port • remote_host (str or None) – The remote host name or ip address to send packets to. If not specified, the socket will be available for listening only, and will throw and exception if used for sending SpiNNMan Documentation, Release • remote_port – The remote port to send packets to. If remote_host is None, this is ignored. Raises spinnman.exceptions.SpinnmanIOException If there is an error setting up the communi- cation channel Attributes can_send a helper property method to check if this connection can send local_ip_address The local IP address to which the connection is bound. local_port The local port to which the connection is bound. remote_ip_address The remote ip address to which the connection is connected. remote_port The remote port to which the connection is connected. Abstract Methods connection_type() method to help identify the connection supports_sends_message(message) helper method to verify if the connection can deal with this message Methods close() See spinnman.connections.abstract_connection.AbstractConnection.close() is_connected() See spinnman.connections.AbstractConnection.abstract_connection.is_connecte Detailed Methods close() See spinnman.connections.abstract_connection.AbstractConnection.close() connection_type() method to help identify the connection :return: is_connected() See spinnman.connections.AbstractConnection.abstract_connection.is_connected() supports_sends_message(message) helper method to verify if the connection can deal with this message format Parameters message – Returns spinnman.connections.listeners package Subpackages spinnman.connections.listeners.queuers package Submodules SpiNNMan Documentation, Release spinnman.connections.listeners.queuers.abstract_port_queuer module class spinnman.connections.listeners.queuers.abstract_port_queuer.AbstractPortQueuer Bases: threading.Thread A Queue for packets received Attributes daemon A boolean value indicating whether this thread is a daemon thread (True) or not (False). ident Thread identifier of this thread or None if it has not been started. name A string used for identification purposes only. Methods get_packet() Get the next packet from the queue run() stop() Stop the thread Detailed Methods get_packet() Get the next packet from the queue Returns The next packet, or None if the queue has been stopped run() stop() Stop the thread spinnman.connections.listeners.queuers.callback_worker module class spinnman.connections.listeners.queuers.callback_worker.CallbackWorker Bases: object Methods call_callback(callback, packet) Detailed Methods static call_callback(callback, packet) spinnman.connections.listeners.queuers.eieio_command_port_queuer module class spinnman.connections.listeners.queuers.eieio_command_port_queuer.EIEIOCommandPortQueuer Bases: spinnman.connections.listeners.queuers.abstract_port_queuer.AbstractPortQueuer Queuer of EIEIO Commands SpiNNMan Documentation, Release Attributes daemon A boolean value indicating whether this thread is a daemon thread (True) or not (False). ident Thread identifier of this thread or None if it has not been started. name A string used for identification purposes only. spinnman.connections.listeners.queuers.eieio_data_port_queuer module class spinnman.connections.listeners.queuers.eieio_data_port_queuer.EIEIODataPortQueuer(connec Bases: spinnman.connections.listeners.queuers.abstract_port_queuer.AbstractPortQueuer Queuer of EIEIO Data Attributes daemon A boolean value indicating whether this thread is a daemon thread (True) or not (False). ident Thread identifier of this thread or None if it has not been started. name A string used for identification purposes only. spinnman.connections.listeners.queuers.scp_port_queuer module class spinnman.connections.listeners.queuers.scp_port_queuer.SCPPortQueuer(connection) Bases: spinnman.connections.listeners.queuers.abstract_port_queuer.AbstractPortQueuer Queuer of SCP Data Attributes daemon A boolean value indicating whether this thread is a daemon thread (True) or not (False). ident Thread identifier of this thread or None if it has not been started. name A string used for identification purposes only. spinnman.connections.listeners.queuers.sdp_port_queuer module class spinnman.connections.listeners.queuers.sdp_port_queuer.SDPPortQueuer(connection) Bases: spinnman.connections.listeners.queuers.abstract_port_queuer.AbstractPortQueuer Queuer of SDP Messages Attributes daemon A boolean value indicating whether this thread is a daemon thread (True) or not (False). ident Thread identifier of this thread or None if it has not been started. name A string used for identification purposes only. spinnman.connections.listeners.queuers.udp_port_queuer module class spinnman.connections.listeners.queuers.udp_port_queuer.UDPPortQueuer(connection) Bases: spinnman.connections.listeners.queuers.abstract_port_queuer.AbstractPortQueuer Queuer of Raw UDP messages SpiNNMan Documentation, Release Attributes daemon A boolean value indicating whether this thread is a daemon thread (True) or not (False). ident Thread identifier of this thread or None if it has not been started. name A string used for identification purposes only. Submodules spinnman.connections.listeners.port_listener module class spinnman.connections.listeners.port_listener.PortListener(callback, queuer, Bases: threading.Thread Attributes daemon A boolean value indicating whether this thread is a daemon thread (True) or not (False). ident Thread identifier of this thread or None if it has not been started. name A string used for identification purposes only. Methods deregister_callback(callback) register_callback(callback) run() set_port(port) stop() Detailed Methods deregister_callback(callback) register_callback(callback) run() set_port(port) stop() spinnman.connections.listeners.scp_listener module class spinnman.connections.listeners.scp_listener.SCPListener(scp_receiver, re- sponse_class, callback, er- ror_callback=None) Bases: threading.Thread Listens for SCP packets received from a connection, calling a callback function with received packets Parameters • scp_receiver (spinnman.connections.abstract_scp_receiver.AbstractSCPReceiver) – The SCP Receiver to receive packets from SpiNNMan Documentation, Release • response_class (class of implementation of spinnman.messages.scp.abstract_scp_response.Abst – The SCP response • callback (function( spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse) – The callback function to call on reception of each packet; the function should take one parameter, which is the SCP packet received • error_callback (function(Exception, str)) – The callback function to call if there is an error receiving a packet; the function should take two parameters: * The exception received * A message indicating what the problem was Raises spinnman.exceptions.SpinnmanInvalidParameterException If the callback or the er- ror_callback do not take the expected number of arguments Attributes daemon A boolean value indicating whether this thread is a daemon thread (True) or not (False). ident Thread identifier of this thread or None if it has not been started. name A string used for identification purposes only. Methods run() Overridden method of Thread that runs this listener start() Starts listening and sending callbacks stop() Stops the reception of packets Detailed Methods run() Overridden method of Thread that runs this listener start() Starts listening and sending callbacks Returns Nothing is returned Return type None Raises None No known exceptions are raised stop() Stops the reception of packets Returns Nothing is returned Return type None Raises None No known exceptions are raised spinnman.connections.udp_packet_connections package Submodules SpiNNMan Documentation, Release spinnman.connections.udp_packet_connections.eieio_command_connection module class spinnman.connections.udp_packet_connections.eieio_command_connection.EieioCommandConnec Bases: spinnman.connections.abstract_classes.abstract_udp_connection.AbstractUDPConnecti spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_command_receive spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_command_sender.Ab spinnman.connections.abstract_classes.abstract_callbackable_connection.AbstractCallbac Attributes can_send a helper property method to check if this connection can send local_ip_address The local IP address to which the connection is bound. local_port The local port to which the connection is bound. remote_ip_address The remote ip address to which the connection is connected. remote_port The remote port to which the connection is connected. Methods close() connection_type() deregister_callback(callback) is_udp_eieio_command_receiver() is_udp_eieio_command_sender() register_callback(callback[, traffic_type]) supports_sends_message(message) Detailed Methods close() connection_type() deregister_callback(callback) is_udp_eieio_command_receiver() is_udp_eieio_command_sender() register_callback(callback, traffic_type=<TRAFFIC_TYPE.EIEIO_COMMAND: 4>) supports_sends_message(message) spinnman.connections.udp_packet_connections.iptag_connection module class spinnman.connections.udp_packet_connections.iptag_connection.IPTagConnection(local_host=N lo- cal_port=Non re- mote_host=No re- Bases: spinnman.connections.abstract_classes.abstract_udp_connection.AbstractUDPConnecti spinnman.connections.abstract_classes.udp_receivers.abstract_udp_scp_receiver.Abstract SpiNNMan Documentation, Release spinnman.connections.abstract_classes.udp_receivers.abstract_udp_sdp_receiver.Abstract spinnman.connections.abstract_classes.abstract_callbackable_connection.AbstractCallbac Parameters • local_host (str) – The local host name or ip address to bind to. If not specified defaults to bind to all interfaces, unless remote_host is specified, in which case binding is _done to the ip address that will be used to send packets • local_port (int) – The local port to bind to, between 1025 and 65535. If not specified, defaults to a random unused local port • remote_host (str) – The remote host name or ip address to send packets to. If not specified, the socket will be available for listening only, and will throw and exception if used for sending • remote_port – The remote port to send packets to. If remote_host is None, this is ignored. Raises spinnman.exceptions.SpinnmanIOException If there is an error setting up the communi- cation channel Attributes can_send a helper property method to check if this connection can send local_ip_address The local IP address to which the connection is bound. local_port The local port to which the connection is bound. remote_ip_address The remote ip address to which the connection is connected. remote_port The remote port to which the connection is connected. Methods close() connection_type() deregister_callback(callback) is_scp_receiver() is_sdp_reciever() is_udp_scp_receiver() is_udp_sdp_reciever() register_callback(callback, traffic_type) supports_sends_message(message) Detailed Methods close() connection_type() deregister_callback(callback) is_scp_receiver() is_sdp_reciever() is_udp_scp_receiver() is_udp_sdp_reciever() SpiNNMan Documentation, Release register_callback(callback, traffic_type) supports_sends_message(message) spinnman.connections.udp_packet_connections.reverse_iptag_connection module class spinnman.connections.udp_packet_connections.reverse_iptag_connection.ReverseIPTagConnec Bases: spinnman.connections.abstract_classes.abstract_udp_connection.AbstractUDPConnecti spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_data_receiver.A spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_sender.AbstractUD spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_command_receive spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_command_sender.Ab Attributes can_send a helper property method to check if this connection can send local_ip_address The local IP address to which the connection is bound. local_port The local port to which the connection is bound. remote_ip_address The remote ip address to which the connection is connected. remote_port The remote port to which the connection is connected. Methods connection_type() is_eieio_receiver() is_eieio_sender() is_udp_eieio_command_receiver() is_udp_eieio_command_sender() is_udp_eieio_receiver() is_udp_eieio_sender() receive_raw() send_raw(message) sends a raw udp packet supports_sends_message(message) Detailed Methods connection_type() is_eieio_receiver() is_eieio_sender() is_udp_eieio_command_receiver() is_udp_eieio_command_sender() is_udp_eieio_receiver() SpiNNMan Documentation, Release is_udp_eieio_sender() receive_raw() send_raw(message) sends a raw udp packet :param message: the message sent in the udp packet :return: None supports_sends_message(message) spinnman.connections.udp_packet_connections.stripped_iptag_connection module class spinnman.connections.udp_packet_connections.stripped_iptag_connection.StrippedIPTagConn Bases: spinnman.connections.abstract_classes.abstract_udp_connection.AbstractUDPConnecti spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_data_receiver.A spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_command_receive spinnman.connections.abstract_classes.abstract_callbackable_connection.AbstractCallbac Parameters • local_host (str) – The local host name or ip address to bind to. If not specified defaults to bind to all interfaces, unless remote_host is specified, in which case binding is _done to the ip address that will be used to send packets • local_port (int) – The local port to bind to, between 1025 and 65535. If not specified, defaults to a random unused local port • remote_host (str) – The remote host name or ip address to send packets to. If not specified, the socket will be available for listening only, and will throw and exception if used for sending • remote_port – The remote port to send packets to. If remote_host is None, this is ignored. Raises spinnman.exceptions.SpinnmanIOException If there is an error setting up the communi- cation channel Attributes can_send a helper property method to check if this connection can send local_ip_address The local IP address to which the connection is bound. local_port The local port to which the connection is bound. remote_ip_address The remote ip address to which the connection is connected. remote_port The remote port to which the connection is connected. Methods close() connection_type() deregister_callback(callback) is_udp_eieio_command_receiver() Continued on next page SpiNNMan Documentation, Release Table 3.51 – continued from previous page is_udp_eieio_receiver() recieve_raw(timeout) register_callback(callback, traffic_type) supports_sends_message(message) Detailed Methods close() connection_type() deregister_callback(callback) is_udp_eieio_command_receiver() is_udp_eieio_receiver() recieve_raw(timeout) register_callback(callback, traffic_type) supports_sends_message(message) spinnman.connections.udp_packet_connections.udp_boot_connection module class spinnman.connections.udp_packet_connections.udp_boot_connection.UDPBootConnection(local_h lo- cal_po re- mote_h re- mote_p Bases: spinnman.connections.abstract_classes.abstract_udp_connection.AbstractUDPConnecti spinnman.connections.abstract_classes.abstract_spinnaker_boot_sender.AbstractSpinnaker spinnman.connections.abstract_classes.abstract_spinnaker_boot_receiver.AbstractSpinnak A connection to the spinnaker board that uses UDP to for booting Parameters • local_host (str) – The local host name or ip address to bind to. If not specified defaults to bind to all interfaces, unless remote_host is specified, in which case binding is _done to the ip address that will be used to send packets • local_port (int) – The local port to bind to, between 1025 and 65535. If not specified, defaults to a random unused local port • remote_host (str) – The remote host name or ip address to send packets to. If not specified, the socket will be available for listening only, and will throw and exception if used for sending • remote_port – The remote port to send packets to. If remote_host is None, this is ignored. Raises spinnman.exceptions.SpinnmanIOException If there is an error setting up the communi- cation channel Attributes SpiNNMan Documentation, Release can_send a helper property method to check if this connection can send local_ip_address The local IP address to which the connection is bound. local_port The local port to which the connection is bound. remote_ip_address The remote ip address to which the connection is connected. remote_port The remote port to which the connection is connected. Methods connection_type() receive_boot_message([timeout]) See spinnman.connections.abstract_spinnaker_boot_receiver.Ab send_boot_message(boot_message) See spinnman.connections.abstract_spinnaker_boot_sender.Abst supports_sends_message(message) Detailed Methods connection_type() receive_boot_message(timeout=None) See spinnman.connections.abstract_spinnaker_boot_receiver.AbstractSpinnakerBootRecei send_boot_message(boot_message) See spinnman.connections.abstract_spinnaker_boot_sender.AbstractSpinnakerBootSender. supports_sends_message(message) spinnman.connections.udp_packet_connections.udp_spinnaker_connection module class spinnman.connections.udp_packet_connections.udp_spinnaker_connection.UDPSpinnakerConnec Bases: spinnman.connections.abstract_classes.abstract_udp_connection.AbstractUDPConnecti spinnman.connections.abstract_classes.udp_receivers.abstract_udp_sdp_receiver.Abstract spinnman.connections.abstract_classes.udp_senders.abstract_udp_sdp_sender.AbstractUDPS spinnman.connections.abstract_classes.udp_senders.abstract_udp_scp_sender.AbstractUDPS spinnman.connections.abstract_classes.udp_receivers.abstract_udp_scp_receiver.Abstract Attributes can_send a helper property method to check if this connection can send chip_x chip_y local_ip_address The local IP address to which the connection is bound. local_port The local port to which the connection is bound. remote_ip_address The remote ip address to which the connection is connected. remote_port The remote port to which the connection is connected. SpiNNMan Documentation, Release Methods connection_type() is_scp_receiver() is_sdp_reciever() is_udp_scp_receiver() is_udp_scp_sender() is_udp_sdp_reciever() is_udp_sdp_sender() supports_sends_message(message) Detailed Methods connection_type() is_scp_receiver() is_sdp_reciever() is_udp_scp_receiver() is_udp_scp_sender() is_udp_sdp_reciever() is_udp_sdp_sender() supports_sends_message(message) spinnman.data package Submodules spinnman.data.abstract_byte_reader module class spinnman.data.abstract_byte_reader.AbstractByteReader Bases: object An abstract reader of bytes. Note that due to endianness concerns, the methods of this reader should be used directly for the appropriate data type being read; e.g. an int should be written using read_int rather than calling read_byte 4 times unless a specific endianness is being achieved. Abstract Methods is_at_end() returns true if the reader is currently at the end of the byte read_byte() Reads the next byte read_int() Read the next four bytes as in int value read_long() Reads the next eight bytes as a long value read_short() Reads the next two bytes as a short value Methods SpiNNMan Documentation, Release read_bytes([size]) Reads an array of bytes Detailed Methods is_at_end() returns true if the reader is currently at the end of the byte reader Returns returns true if the reader is currently at the end of the byte reader false otherwise :rtype: bool read_byte() Reads the next byte Returns A byte Return type int Raises • IOError – If there is an error reading from the stream • EOFError – If there are no more bytes to read read_bytes(size=None) Reads an array of bytes Parameters size (int) – The number of bytes to read, or None to read all of the remaining bytes Returns An array of bytes Return type bytearray Raises • IOError – If there is an error reading from the stream • EOFError – If there are too few bytes to read the requested size. Note that if there are no more bytes and size is None, an empty array will be returned read_int() Read the next four bytes as in int value Returns An int Return type int Raises • IOError – If there is an error reading from the stream • EOFError – If there are too few bytes to read an int read_long() Reads the next eight bytes as a long value Returns A long Return type long Raises • IOError – If there is an error reading from the stream • EOFError – If there are too few bytes to read a long SpiNNMan Documentation, Release read_short() Reads the next two bytes as a short value Returns A short Return type int Raises • IOError – If there is an error reading from the stream • EOFError – If there are too few bytes to read a short spinnman.data.abstract_byte_writer module class spinnman.data.abstract_byte_writer.AbstractByteWriter Bases: object An abstract writer of bytes. Note that due to endianness concerns, the methods of this writer should be used directly for the appropriate data type being written; e.g. an int should be written using write_int rather than calling write_byte 4 times with the parts of the int unless a specific endianness is being achieved. Abstract Methods get_n_bytes_written() Determines how many bytes have been written in total write_byte(byte_value) Writes the lowest order byte of the given value write_int(int_value) Writes a four byte value write_long(long_value) Writes an eight byte value write_short(short_value) Writes the two lowest order bytes of the given value Methods write_bytes(byte_iterable) Writes a set of bytes Detailed Methods get_n_bytes_written() Determines how many bytes have been written in total Returns The number of bytes written Return type int Raises None No known exception is raised write_byte(byte_value) Writes the lowest order byte of the given value Parameters byte_value (int) – The byte to write Returns Nothing is returned Return type None Raises IOError If there is an error writing to the stream write_bytes(byte_iterable) Writes a set of bytes SpiNNMan Documentation, Release Parameters byte_iterable (iterable of bytes) – The bytes to write Returns Nothing is returned Return type None Raises IOError If there is an error writing to the stream write_int(int_value) Writes a four byte value Parameters int_value (int) – The integer to write Returns Nothing is returned Return type None Raises IOError If there is an error writing to the stream write_long(long_value) Writes an eight byte value Parameters long_value (long) – The long to write Returns Nothing is returned Return type None Raises IOError If there is an error writing to the stream write_short(short_value) Writes the two lowest order bytes of the given value Parameters short_value (int) – The short to write Returns Nothing is returned Return type None Raises IOError If there is an error writing to the stream spinnman.data.abstract_data_reader module class spinnman.data.abstract_data_reader.AbstractDataReader Bases: object Abstract Methods read(n_bytes) Read a number of bytes from the underlying stream readall() Read the rest of the bytes from the underlying stream readinto(array) Read a number of bytes into an array from the underlying stream Detailed Methods read(n_bytes) Read a number of bytes from the underlying stream Parameters n_bytes (int) – The number of bytes to read. Returns The bytes read from the underlying stream. May be less than requested. Return type bytearray SpiNNMan Documentation, Release Raises IOError If there is an error obtaining the bytes readall() Read the rest of the bytes from the underlying stream Returns The bytes read Return type bytearray Raises IOError If there is an error obtaining the bytes readinto(array) Read a number of bytes into an array from the underlying stream Parameters array (bytearray) – An array into which the bytes are to be read Returns The number of bytes written in to the array Return type int Raises IOError If there is an error obtaining the bytes spinnman.data.big_endian_byte_array_byte_reader module class spinnman.data.big_endian_byte_array_byte_reader.BigEndianByteArrayByteReader(data) Bases: spinnman.data.abstract_byte_reader.AbstractByteReader A byte reader that reads from a byte array using big endian notation Parameters data (bytearray) – The byte array to read the data from Methods is_at_end() read_byte() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_byte() read_bytes([size]) See spinnman.data.abstract_byte_reader.AbstractByteReader.read_bytes() read_int() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_int() read_long() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_long() read_short() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_short() Detailed Methods is_at_end() read_byte() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_byte() read_bytes(size=None) See spinnman.data.abstract_byte_reader.AbstractByteReader.read_bytes() read_int() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_int() read_long() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_long() read_short() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_short() SpiNNMan Documentation, Release spinnman.data.big_endian_byte_array_byte_writer module class spinnman.data.big_endian_byte_array_byte_writer.BigEndianByteArrayByteWriter Bases: spinnman.data.abstract_byte_writer.AbstractByteWriter A byte writer that writes to a byte array using big endian notation Attributes data The data that was written Methods get_n_bytes_written() See spinnman.data.abstract_byte_writer.AbstractByteWriter.get_n_byte write_byte(byte_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_byte write_bytes(byte_iterable) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_byte write_int(int_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_int( write_long(long_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_long write_short(short_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_shor Detailed Methods get_n_bytes_written() See spinnman.data.abstract_byte_writer.AbstractByteWriter.get_n_bytes_written() write_byte(byte_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_byte() write_bytes(byte_iterable) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_bytes() write_int(int_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_int() write_long(long_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_long() write_short(short_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_short() spinnman.data.file_data_reader module Classes FileDataReader(filename) A reader that can read data from a file FileIO file(name: str[, mode: str]) -> file IO object class spinnman.data.file_data_reader.FileDataReader(filename) Bases: spinnman.data.abstract_data_reader.AbstractDataReader A reader that can read data from a file SpiNNMan Documentation, Release Parameters filename (str) – The file to read Raises spinnman.exceptions.SpinnmanIOException If the file cannot found or opened for reading Methods close() Closes the file read(n_bytes) See spinnman.data.abstract_data_reader.AbstractDataReader.read() readall() See spinnman.data.abstract_data_reader.AbstractDataReader.readall() readinto(data) See spinnman.data.abstract_data_reader.AbstractDataReader.readinto() Detailed Methods close() Closes the file Returns Nothing is returned: Return type None Raises spinnman.exceptions.SpinnmanIOException If the file cannot be closed read(n_bytes) See spinnman.data.abstract_data_reader.AbstractDataReader.read() readall() See spinnman.data.abstract_data_reader.AbstractDataReader.readall() readinto(data) See spinnman.data.abstract_data_reader.AbstractDataReader.readinto() class spinnman.data.file_data_reader.FileIO Bases: _io._RawIOBase file(name: str[, mode: str]) -> file IO object Open a file. The mode can be ‘r’, ‘w’ or ‘a’ for reading (default), writing or appending. The file will be created if it doesn’t exist when opened for writing or appending; it will be truncated when opened for writing. Add a ‘+’ to the mode to allow simultaneous reading and writing. Attributes closed True if the file is closed closefd True if the file descriptor will be closed mode String giving the file mode next x.next() -> the next value, or raise StopIteration closed True if the file is closed next x.next() -> the next value, or raise StopIteration closed True if the file is closed next x.next() -> the next value, or raise StopIteration Methods SpiNNMan Documentation, Release close(() -> None. Close the file.) A closed file cannot be used for further I/O operations. fileno(() -> int. “file descriptor”.) This is needed for lower-level file interfaces, such the fcntl module. flush Flush write buffers, if applicable. isatty(...) read(...) Only makes one system call, so less data may be returned than requested In non readable(...) readall(...) In non-blocking mode, returns as much as is immediately available, or None if n readinto(() -> Same as RawIOBase.readinto().) readline Read and return a line from the stream. readlines Return a list of lines from the stream. seek((offset: int[, ...) Argument offset is a byte count. seekable(...) tell(() -> int. Current file position) truncate(...) Size defaults to the current file position, as returned by tell().The current file pos writable(...) write(...) Only makes one system call, so not all of the data may be written. writelines close(() -> None. Close the file.) A closed file cannot be used for further I/O operations. fileno(() -> int. “file descriptor”.) This is needed for lower-level file interfaces, such the fcntl module. flush Flush write buffers, if applicable. isatty(...) read(...) Only makes one system call, so less data may be returned than requested In non readable(...) readall(...) In non-blocking mode, returns as much as is immediately available, or None if n readline Read and return a line from the stream. readlines Return a list of lines from the stream. seek((offset: int[, ...) Argument offset is a byte count. seekable(...) tell(() -> int. Current file position) truncate(...) Size defaults to the current file position, as returned by tell().The current file pos writable(...) writelines close(() -> None. Close the file.) A closed file cannot be used for further I/O operations. fileno(() -> int. “file descriptor”.) This is needed for lower-level file interfaces, such the fcntl module. flush Flush write buffers, if applicable. isatty(...) readable(...) readline Read and return a line from the stream. readlines Return a list of lines from the stream. seek((offset: int[, ...) Argument offset is a byte count. seekable(...) tell(() -> int. Current file position) truncate(...) Size defaults to the current file position, as returned by tell().The current file pos writable(...) writelines Detailed Methods close() → None. Close the file. A closed file cannot be used for further I/O operations. close() may be called more than once without error. Changes the fileno to -1. fileno() → int. “file descriptor”. SpiNNMan Documentation, Release This is needed for lower-level file interfaces, such the fcntl module. flush() Flush write buffers, if applicable. This is not implemented for read-only and non-blocking streams. isatty() → bool. True if the file is connected to a tty device. read(size: int) → bytes. read at most size bytes, returned as bytes. Only makes one system call, so less data may be returned than requested In non-blocking mode, returns None if no data is available. On end-of-file, returns ‘’. readable() → bool. True if file was opened in a read mode. readall() → bytes. read all data from the file, returned as bytes. In non-blocking mode, returns as much as is immediately available, or None if no data is available. On end-of-file, returns ‘’. readinto() → Same as RawIOBase.readinto(). readline() Read and return a line from the stream. If limit is specified, at most limit bytes will be read. The line terminator is always b’n’ for binary files; for text files, the newlines argument to open can be used to select the line terminator(s) recognized. readlines() Return a list of lines from the stream. hint can be specified to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds hint. seek(offset: int[, whence: int ]) → None. Move to new file position. Argument offset is a byte count. Optional argument whence defaults to 0 (offset from start of file, offset should be >= 0); other values are 1 (move relative to current position, positive or negative), and 2 (move relative to end of file, usually negative, although many platforms allow seeking beyond the end of a file). Note that not all file objects are seekable. seekable() → bool. True if file supports random-access. tell() → int. Current file position truncate([size: int ]) → None. Truncate the file to at most size bytes. Size defaults to the current file position, as returned by tell().The current file position is changed to the value of size. writable() → bool. True if file was opened in a write mode. write(b: bytes) → int. Write bytes b to file, return number written. Only makes one system call, so not all of the data may be written. The number of bytes actually written is returned. writelines() close() → None. Close the file. A closed file cannot be used for further I/O operations. close() may be called more than once without error. Changes the fileno to -1. fileno() → int. “file descriptor”. This is needed for lower-level file interfaces, such the fcntl module. SpiNNMan Documentation, Release flush() Flush write buffers, if applicable. This is not implemented for read-only and non-blocking streams. isatty() → bool. True if the file is connected to a tty device. read(size: int) → bytes. read at most size bytes, returned as bytes. Only makes one system call, so less data may be returned than requested In non-blocking mode, returns None if no data is available. On end-of-file, returns ‘’. readable() → bool. True if file was opened in a read mode. readall() → bytes. read all data from the file, returned as bytes. In non-blocking mode, returns as much as is immediately available, or None if no data is available. On end-of-file, returns ‘’. readline() Read and return a line from the stream. If limit is specified, at most limit bytes will be read. The line terminator is always b’n’ for binary files; for text files, the newlines argument to open can be used to select the line terminator(s) recognized. readlines() Return a list of lines from the stream. hint can be specified to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds hint. seek(offset: int[, whence: int ]) → None. Move to new file position. Argument offset is a byte count. Optional argument whence defaults to 0 (offset from start of file, offset should be >= 0); other values are 1 (move relative to current position, positive or negative), and 2 (move relative to end of file, usually negative, although many platforms allow seeking beyond the end of a file). Note that not all file objects are seekable. seekable() → bool. True if file supports random-access. tell() → int. Current file position truncate([size: int ]) → None. Truncate the file to at most size bytes. Size defaults to the current file position, as returned by tell().The current file position is changed to the value of size. writable() → bool. True if file was opened in a write mode. writelines() close() → None. Close the file. A closed file cannot be used for further I/O operations. close() may be called more than once without error. Changes the fileno to -1. fileno() → int. “file descriptor”. This is needed for lower-level file interfaces, such the fcntl module. flush() Flush write buffers, if applicable. This is not implemented for read-only and non-blocking streams. isatty() → bool. True if the file is connected to a tty device. readable() → bool. True if file was opened in a read mode. SpiNNMan Documentation, Release readline() Read and return a line from the stream. If limit is specified, at most limit bytes will be read. The line terminator is always b’n’ for binary files; for text files, the newlines argument to open can be used to select the line terminator(s) recognized. readlines() Return a list of lines from the stream. hint can be specified to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds hint. seek(offset: int[, whence: int ]) → None. Move to new file position. Argument offset is a byte count. Optional argument whence defaults to 0 (offset from start of file, offset should be >= 0); other values are 1 (move relative to current position, positive or negative), and 2 (move relative to end of file, usually negative, although many platforms allow seeking beyond the end of a file). Note that not all file objects are seekable. seekable() → bool. True if file supports random-access. tell() → int. Current file position truncate([size: int ]) → None. Truncate the file to at most size bytes. Size defaults to the current file position, as returned by tell().The current file position is changed to the value of size. writable() → bool. True if file was opened in a write mode. writelines() spinnman.data.little_endian_byte_array_byte_reader module class spinnman.data.little_endian_byte_array_byte_reader.LittleEndianByteArrayByteReader(data) Bases: spinnman.data.abstract_byte_reader.AbstractByteReader A byte reader that reads from a byte array using little endian notation Parameters data (bytearray) – The byte array to read the data from Methods is_at_end() ee spinnman.data.abstract_byte_reader.AbstractByteReader.is_at_end() read_byte() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_byte() read_bytes([size]) See spinnman.data.abstract_byte_reader.AbstractByteReader.read_bytes() read_int() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_int() read_long() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_long() read_short() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_short() Detailed Methods is_at_end() ee spinnman.data.abstract_byte_reader.AbstractByteReader.is_at_end() read_byte() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_byte() read_bytes(size=None) SpiNNMan Documentation, Release See spinnman.data.abstract_byte_reader.AbstractByteReader.read_bytes() read_int() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_int() read_long() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_long() read_short() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_short() spinnman.data.little_endian_byte_array_byte_writer module class spinnman.data.little_endian_byte_array_byte_writer.LittleEndianByteArrayByteWriter Bases: spinnman.data.abstract_byte_writer.AbstractByteWriter A byte writer that writes to a byte array using little endian notation Attributes data The data that was written Methods get_n_bytes_written() See spinnman.data.abstract_byte_writer.AbstractByteWriter.get_n_byte write_byte(byte_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_byte write_bytes(byte_iterable) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_byte write_int(int_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_int( write_long(long_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_long write_short(short_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_shor Detailed Methods get_n_bytes_written() See spinnman.data.abstract_byte_writer.AbstractByteWriter.get_n_bytes_written() write_byte(byte_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_byte() write_bytes(byte_iterable) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_bytes() write_int(int_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_int() write_long(long_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_long() write_short(short_value) See spinnman.data.abstract_byte_writer.AbstractByteWriter.write_short() spinnman.data.little_endian_data_reader_byte_reader module class spinnman.data.little_endian_data_reader_byte_reader.LittleEndianDataReaderByteReader(da Bases: spinnman.data.abstract_byte_reader.AbstractByteReader SpiNNMan Documentation, Release A byte reader that reads from a data reader using little endian notation Parameters data_reader (spinnman.data.abstract_data_reader.AbstractDataReader) – The data reader to read from Methods is_at_end() required from abstract byte reader read_byte() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_byte() read_bytes([size]) See spinnman.data.abstract_byte_reader.AbstractByteReader.read_bytes() read_int() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_int() read_long() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_long() read_short() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_short() Detailed Methods is_at_end() required from abstract byte reader Returns read_byte() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_byte() read_bytes(size=None) See spinnman.data.abstract_byte_reader.AbstractByteReader.read_bytes() read_int() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_int() read_long() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_long() read_short() See spinnman.data.abstract_byte_reader.AbstractByteReader.read_short() spinnman.messages package Subpackages spinnman.messages.eieio package Subpackages spinnman.messages.eieio.abstract_messages package Submodules SpiNNMan Documentation, Release spinnman.messages.eieio.abstract_messages.abstract_eieio_message module class spinnman.messages.eieio.abstract_messages.abstract_eieio_message.AbstractEIEIOMessage Bases: object Marker interface for an EIEIOMessage Abstract Methods write_eieio_message(byte_writer) Write the message to a byte writer Detailed Methods write_eieio_message(byte_writer) Write the message to a byte writer Parameters byte_writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – The writer to write to spinnman.messages.eieio.command_messages package Submodules spinnman.messages.eieio.command_messages.database_confirmation module class spinnman.messages.eieio.command_messages.database_confirmation.DatabaseConfirmation(data Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag Attributes data database_path eieio_header Methods read_eieio_command_message(command_header, ...) write_eieio_message(writer) Detailed Methods static read_eieio_command_message(command_header, byte_reader) write_eieio_message(writer) spinnman.messages.eieio.command_messages.eieio_command_header module class spinnman.messages.eieio.command_messages.eieio_command_header.EIEIOCommandHeader(comman Bases: object SpiNNMan Documentation, Release EIEIO header for command packets Attributes command Methods read_eieio_header(byte_reader) Read an eieio command header from a byte_reader write_eieio_header(writer) Write the command header to a writer Detailed Methods static read_eieio_header(byte_reader) Read an eieio command header from a byte_reader Parameters byte_reader (spinnman.data.abstract_byte_reader.AbstractByteReader) – The reader to read the data from Returns an eieio command header Return type spinnman.messages.eieio.command_messages.eieio_command_header.EIEIOCom Raises • spinnman.exceptions.SpinnmanIOException – If there is an error reading from the reader • spinnman.exceptions.SpinnmanInvalidParameterException – If there is an error set- ting any of the values write_eieio_header(writer) Write the command header to a writer Parameters writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – the writer to write the header to Returns None spinnman.messages.eieio.command_messages.eieio_command_message module class spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessage(eieio data_ Bases: spinnman.messages.eieio.abstract_messages.abstract_eieio_message.AbstractEIEIOMes An EIEIO command message Parameters • eieio_command_header (spinnman.messages.eieio.command_messages.eieio_command_head – The header of the message • data_reader (spinnman.data.abstract_data_reader.AbstractDataReader) – Optional reader of incoming data SpiNNMan Documentation, Release Attributes 3.1. spinnman package 47 SpiNNMan Documentation, Release data eieio_header Methods get_min_packet_length() read_eieio_command_message(command_header, ...) write_eieio_message(writer) Detailed Methods static get_min_packet_length() static read_eieio_command_message(command_header, byte_reader) write_eieio_message(writer) spinnman.messages.eieio.command_messages.event_stop_request module class spinnman.messages.eieio.command_messages.event_stop_request.EventStopRequest Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag Attributes data eieio_header spinnman.messages.eieio.command_messages.host_data_read module class spinnman.messages.eieio.command_messages.host_data_read.HostDataRead(region_id, se- quence_no, space_read) Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag Attributes data eieio_header region_id sequence_no space_read Methods get_min_packet_length() read_eieio_command_message(command_header, ...) write_eieio_message(writer) SpiNNMan Documentation, Release Detailed Methods static get_min_packet_length() static read_eieio_command_message(command_header, byte_reader) write_eieio_message(writer) spinnman.messages.eieio.command_messages.host_send_sequenced_data module class spinnman.messages.eieio.command_messages.host_send_sequenced_data.HostSendSequencedData Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag Attributes data eieio_data_message eieio_header region_id sequence_no Methods get_min_packet_length() read_eieio_command_message(command_header, ...) write_eieio_message(writer) Detailed Methods static get_min_packet_length() static read_eieio_command_message(command_header, byte_reader) write_eieio_message(writer) spinnman.messages.eieio.command_messages.padding_request module class spinnman.messages.eieio.command_messages.padding_request.PaddingRequest Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag Attributes data eieio_header Methods SpiNNMan Documentation, Release get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.command_messages.spinnaker_request_buffers module class spinnman.messages.eieio.command_messages.spinnaker_request_buffers.SpinnakerRequestBuff Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag Attributes data eieio_header p region_id sequence_no space_available x y Methods get_min_packet_length() read_eieio_command_message(command_header, ...) write_eieio_message(writer) Detailed Methods static get_min_packet_length() static read_eieio_command_message(command_header, byte_reader) write_eieio_message(writer) spinnman.messages.eieio.command_messages.spinnaker_request_read_data module SpiNNMan Documentation, Release class spinnman.messages.eieio.command_messages.spinnaker_request_read_data.SpinnakerRequestRe Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag Attributes data eieio_header p region_id sequence_no space_available x y Methods get_min_packet_length() read_eieio_command_message(command_header, ...) write_eieio_message(writer) Detailed Methods static get_min_packet_length() static read_eieio_command_message(command_header, byte_reader) write_eieio_message(writer) spinnman.messages.eieio.command_messages.start_requests module class spinnman.messages.eieio.command_messages.start_requests.StartRequests Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag Attributes data eieio_header spinnman.messages.eieio.command_messages.stop_requests module class spinnman.messages.eieio.command_messages.stop_requests.StopRequests Bases: spinnman.messages.eieio.command_messages.eieio_command_message.EIEIOCommandMessag SpiNNMan Documentation, Release Attributes data eieio_header spinnman.messages.eieio.data_messages package Subpackages spinnman.messages.eieio.data_messages.eieio_16bit package Submodules spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_data_message.EIEIO16BitDa Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_lower_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_lower_key_prefix_data_mes Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header Continued on next page SpiNNMan Documentation, Release Table 3.94 – continued from previous page is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_data_messa Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_lower_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_lower_key_ Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit SpiNNMan Documentation, Release Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_upper_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_upper_key_ Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_timed_payload_prefix_data_message module SpiNNMan Documentation, Release class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_timed_payload_prefix_data Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_timed_payload_prefix_lower_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_timed_payload_prefix_lowe Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() SpiNNMan Documentation, Release Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_timed_payload_prefix_upper_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_timed_payload_prefix_uppe Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_upper_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_upper_key_prefix_data_mes Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods SpiNNMan Documentation, Release get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit_with_payload package Submodules spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_lower_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header Continued on next page SpiNNMan Documentation, Release Table 3.112 – continued from previous page is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_payload_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_payload_prefix_lower_key_prefix module class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa SpiNNMan Documentation, Release Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_payload_prefix_upper_key_prefix module class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_timed_data_message module SpiNNMan Documentation, Release class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_timed_lower_key_prefix_data_me module class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() SpiNNMan Documentation, Release spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_timed_upper_key_prefix_data_m module class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload_upper_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_16bit_with_payload.eieio_16bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() SpiNNMan Documentation, Release Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit package Submodules spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_data_message.EIEIO32BitDa Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_lower_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_lower_key_prefix_data_mes Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents SpiNNMan Documentation, Release Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_payload_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_payload_prefix_data_messa Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_payload_prefix_lower_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_payload_prefix_lower_key_ Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet Continued on next page SpiNNMan Documentation, Release Table 3.134 – continued from previous page n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_payload_prefix_upper_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_payload_prefix_upper_key_ Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_timed_payload_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_timed_payload_prefix_data Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit SpiNNMan Documentation, Release Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_timed_payload_prefix_lower_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_timed_payload_prefix_lowe Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_timed_payload_prefix_upper_key_prefix_data_message module SpiNNMan Documentation, Release class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_timed_payload_prefix_uppe Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_upper_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit.eieio_32bit_upper_key_prefix_data_mes Bases: spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWit Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() SpiNNMan Documentation, Release spinnman.messages.eieio.data_messages.eieio_32bit_with_payload package Submodules spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_lower_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods SpiNNMan Documentation, Release get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_payload_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_payload_prefix_lower_key_prefix module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet Continued on next page SpiNNMan Documentation, Release Table 3.152 – continued from previous page next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_payload_prefix_upper_key_prefix module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_timed_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes SpiNNMan Documentation, Release eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_timed_lower_key_prefix_data_me module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_timed_upper_key_prefix_data_m module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa SpiNNMan Documentation, Release Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_upper_key_prefix_data_message module class spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload Bases: spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPa Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods get_min_packet_length() Detailed Methods static get_min_packet_length() Submodules spinnman.messages.eieio.data_messages.abstract_eieio_data_element module SpiNNMan Documentation, Release class spinnman.messages.eieio.data_messages.abstract_eieio_data_element.AbstractEIEIODataElem Bases: object A marker interface for possible data elements in the EIEIO data packet Abstract Methods write_element(eieio_type, byte_writer) Write the element to the writer given the type Detailed Methods write_element(eieio_type, byte_writer) Write the element to the writer given the type Parameters • eieio_type (spinnman.messages.eieio.eieio_type.EIEIOType) – The type of the message being written • byte_writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – The writer to write to Raises SpinnmanInvalidParameterException If the type is incompatible with the element spinnman.messages.eieio.data_messages.eieio_data_header module class spinnman.messages.eieio.data_messages.eieio_data_header.EIEIODataHeader(eieio_type, pre- fix=None, pre- fix_type=<EIEIOPref pay- load_base=None, is_time=False, Bases: object EIEIO header for data packets Parameters • eieio_type (spinnman.spinnman.messages.eieio.eieio_type.EIEIOType) – the type of message • tag (int) – the tag of the message (0 by default) • prefix (int or None) – the key prefix of the message or None if not prefixed • prefix_type (spinnman.messages.eieio.eieio_prefix.EIEIOPrefix) – the position of the prefix (upper or lower) • payload_base (int or None) – The base payload to be applied, or None if no base payload • is_time (bool) – True if the payloads should be taken to be timestamps, or False otherwise • count (int) – Count of the number of items in the packet SpiNNMan Documentation, Release Attributes count eieio_type is_time payload_base prefix prefix_type size tag Methods get_header_size(eieio_type[, is_prefix, ...]) Get the size of a header with the given parameters increment_count() read_eieio_header(byte_reader) Read an eieio data header from a byte_reader reset_count() write_eieio_header(byte_writer) Writes the header to a writer Detailed Methods static get_header_size(eieio_type, is_prefix=False, is_payload_base=False) Get the size of a header with the given parameters Parameters • eieio_type (spinnman.spinnman.messages.eieio.eieio_type.EIEIOType) – the type of message • is_prefix (bool) – True if there is a prefix, False otherwise • is_payload_base (bool) – True if there is a payload base, False otherwise Returns The size of the header in bytes Return type int increment_count() static read_eieio_header(byte_reader) Read an eieio data header from a byte_reader Parameters byte_reader (spinnman.data.abstract_byte_reader.AbstractByteReader) – The reader to read the data from Returns an eieio header Return type spinnman.messages.eieio.data_messages.eieio_data_header.EIEIODataHeade Raises • spinnman.exceptions.SpinnmanIOException – If there is an error reading from the reader • spinnman.exceptions.SpinnmanInvalidPacketException – If there are too few bytes to read the header SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanInvalidParameterException – If there is an error set- ting any of the values reset_count() write_eieio_header(byte_writer) Writes the header to a writer Parameters byte_writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – The writer to write the header to spinnman.messages.eieio.data_messages.eieio_data_message module class spinnman.messages.eieio.data_messages.eieio_data_message.EIEIODataMessage(eieio_header, data_reader=None Bases: spinnman.messages.eieio.abstract_messages.abstract_eieio_message.AbstractEIEIOMes An EIEIO Data message Parameters • eieio_header (spinnman.messages.eieio.data_messages.eieio_data_header.EIEIODataHe – The header of the message • data_reader (spinnman.data.abstract_data_reader.AbstractDataReader) – Optional reader of data contained within the packet, or None if this packet is being written Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods add_element(element) Add an element to the message. min_packet_length(eieio_type[, is_prefix, ...]) The minimum length of a message with the given header, in bytes write_eieio_message(byte_writer) Detailed Methods add_element(element) Add an element to the message. The correct type of element must be added, depending on the header values Parameters element (spinnman.messages.eieio.data_messages.abstract_eieio_data_elemen – The element to be added Raises • SpinnmanInvalidParameterException – If the element is not compatible with the header SpiNNMan Documentation, Release • SpinnmanInvalidPacketException – If the message was created to read data from a reader static min_packet_length(eieio_type, is_prefix=False, is_payload_base=False) The minimum length of a message with the given header, in bytes Parameters • eieio_type (spinnman.spinnman.messages.eieio.eieio_type.EIEIOType) – the type of message • is_prefix (bool) – True if there is a prefix, False otherwise • is_payload_base (bool) – True if there is a payload base, False otherwise Returns The minimum size of the packet in bytes Return type int write_eieio_message(byte_writer) spinnman.messages.eieio.data_messages.eieio_key_data_element module class spinnman.messages.eieio.data_messages.eieio_key_data_element.EIEIOKeyDataElement(key) Bases: spinnman.messages.eieio.data_messages.abstract_eieio_data_element.AbstractEIEIODa A data element that contains just a key Attributes key Methods write_element(eieio_type, byte_writer) Detailed Methods write_element(eieio_type, byte_writer) spinnman.messages.eieio.data_messages.eieio_key_payload_data_element module class spinnman.messages.eieio.data_messages.eieio_key_payload_data_element.EIEIOKeyPayloadDat Bases: spinnman.messages.eieio.data_messages.abstract_eieio_data_element.AbstractEIEIODa A data element that contains a key and a payload Attributes key Continued on next page SpiNNMan Documentation, Release Table 3.171 – continued from previous page payload payload_is_timestamp Methods write_element(eieio_type, byte_writer) Detailed Methods write_element(eieio_type, byte_writer) spinnman.messages.eieio.data_messages.eieio_with_payload_data_message module class spinnman.messages.eieio.data_messages.eieio_with_payload_data_message.EIEIOWithPayloadD Bases: spinnman.messages.eieio.data_messages.eieio_data_message.EIEIODataMessage An EIEIO message with a payload Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods add_key_and_payload(key, payload) Adds a key and payload to the packet Detailed Methods add_key_and_payload(key, payload) Adds a key and payload to the packet Parameters • key (int) – The key to add • payload (int) – The payload to add Raises SpinnmanInvalidParameterException If the key or payload is too big for the format spinnman.messages.eieio.data_messages.eieio_without_payload_data_message module class spinnman.messages.eieio.data_messages.eieio_without_payload_data_message.EIEIOWithoutPa Bases: spinnman.messages.eieio.data_messages.eieio_data_message.EIEIODataMessage SpiNNMan Documentation, Release An EIEIO message without a payload Attributes eieio_header is_next_element Determine if there is another element to be read max_n_elements The maximum number of elements that can fit in the packet n_elements The number of elements in the packet next_element The next element to be read, or None if no more elements. size The size of the packet with the current contents Methods add_key(key) Add a key to the packet Detailed Methods add_key(key) Add a key to the packet Parameters key (int) – The key to add Raises SpinnmanInvalidParameterException If the key is too big for the format Submodules spinnman.messages.eieio.create_eieio_command module Functions read_eieio_command_message(byte_reader) spinnman.messages.eieio.create_eieio_command.read_eieio_command_message(byte_reader) spinnman.messages.eieio.create_eieio_data module Functions read_eieio_data_message(byte_reader) spinnman.messages.eieio.create_eieio_data.read_eieio_data_message(byte_reader) spinnman.messages.eieio.eieio_prefix module SpiNNMan Documentation, Release class spinnman.messages.eieio.eieio_prefix.EIEIOPrefix(value, doc=’‘) Bases: enum.Enum Possible prefixing of keys in EIEIO packets Attributes LOWER_HALF_WORD apply prefix on lower half of the word UPPER_HALF_WORD apply prefix on top half of the word spinnman.messages.eieio.eieio_type module class spinnman.messages.eieio.eieio_type.EIEIOType(value, key_bytes, payload_bytes, doc=’‘) Bases: enum.Enum Possible types of EIEIO packets Attributes KEY_16_BIT Indicates that data is keys which are 16 bits KEY_32_BIT Indicates that data is keys of 32 bits KEY_PAYLOAD_16_BIT Indicates that data is keys and payloads of 16 bits KEY_PAYLOAD_32_BIT Indicates that data is keys and payloads of 32 bits spinnman.messages.scp package Subpackages spinnman.messages.scp.abstract_messages package Submodules spinnman.messages.scp.abstract_messages.abstract_scp_request module class spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest(sdp_head scp_reque ar- gu- ar- gu- ar- gu- data=Non Bases: object Represents an Abstract SCP Request Parameters SpiNNMan Documentation, Release • sdp_header (spinnman.messages.sdp.sdp_header.SDPHeader) – The SDP header of the request • scp_request_header (spinnman.messages.scp.scp_request_header.SCPRequestHeader) – The SCP header of the request • argument_1 (int) – The first argument, or None if no first argument • argument_2 (int) – The second argument, or None if no second argument • argument_3 (int) – The third argument, or None if no third argument • data (bytearray) – The optional data, or None if no data Raises None No known exceptions are raised Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Abstract Methods get_scp_response() Get an SCP response message to be used to process any response received Methods write_scp_request(byte_writer) Write the scp request to the given writer Detailed Methods get_scp_response() Get an SCP response message to be used to process any response received Returns An SCP response, or None if no response is required Return type spinnman.messages.scp_response.SCPResponse Raises None No known exceptions are raised write_scp_request(byte_writer) Write the scp request to the given writer Parameters byte_writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – The writer to write to Returns Nothing is returned Return type None Raises SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanIOException – If there is an error writing the request • spinnman.exceptions.SpinnmanInvalidParameterException – If any required values have not been set spinnman.messages.scp.abstract_messages.abstract_scp_response module class spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse Bases: object Represents an abstract SCP Response Attributes scp_response_header The SCP header from the response sdp_header The SDP header from the response Abstract Methods read_scp_response(byte_reader) Read the scp response from the given reader Detailed Methods read_scp_response(byte_reader) Read the scp response from the given reader Parameters byte_reader (spinnman.data.abstract_byte_reader.AbstractByteReader) – The reader to read from Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error reading from the reader • spinnman.exceptions.SpinnmanInvalidPacketException – If there are not enough bytes to read the header • spinnman.exceptions.SpinnmanInvalidParameterException – If there is an error set- ting any of the values • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If the response code indicates an error spinnman.messages.scp.impl package Submodules spinnman.messages.scp.impl.scp_app_stop_request module SpiNNMan Documentation, Release class spinnman.messages.scp.impl.scp_app_stop_request.SCPAppStopRequest(app_id) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request to stop an application Parameters • app_id (int) – The id of the application, between 0 and 255 • signal (spinnman.messages.scp.scp_signal.SCPSignal) – The signal to send Raises spinnman.exceptions.SpinnmanInvalidParameterException If app_id is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_application_run_request module class spinnman.messages.scp.impl.scp_application_run_request.SCPApplicationRunRequest(app_id, x, y, pro- ces- sors) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP request to run an application loaded on a chip Parameters • app_id (int) – The id of the application to run, between 16 and 255 • x (int) – The x-coordinate of the chip to run on, between 0 and 255 • y (int) – The y-coordinate of the chip to run on, between 0 and 255 • processors – The processors on the chip where the executable should be started, between 1 and 17 Raises spinnman.exceptions.SpinnmanInvalidParameterException • If the app_id is out of range SpiNNMan Documentation, Release • If the chip coordinates are out of range • If one of the processors is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_s Detailed Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_scp_response() spinnman.messages.scp.impl.scp_check_ok_response module class spinnman.messages.scp.impl.scp_check_ok_response.SCPCheckOKResponse(operation, com- mand) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request which returns nothing other than OK Parameters • operation (str) – The operation being performed • command (str) – The command that was sent Attributes scp_response_header The SCP header from the response sdp_header The SDP header from the response Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp SpiNNMan Documentation, Release Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons spinnman.messages.scp.impl.scp_count_state_request module class spinnman.messages.scp.impl.scp_count_state_request.SCPCountStateRequest(app_id, state) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request to get a count of the cores in a particular state Parameters • app_id (int) – The id of the application, between 0 and 255 • state (spinnman.model.cpu_state.CPUState) – The state to count Raises spinnman.exceptions.SpinnmanInvalidParameterException If app_id is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_count_state_response module class spinnman.messages.scp.impl.scp_count_state_response.SCPCountStateResponse Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request for the number of cores in a given state Attributes count The count of the number of cores with the requested state scp_response_header The SCP header from the response sdp_header The SDP header from the response SpiNNMan Documentation, Release Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons spinnman.messages.scp.impl.scp_flood_fill_data_request module class spinnman.messages.scp.impl.scp_flood_fill_data_request.SCPFloodFillDataRequest(nearest_nei block_no, base_addre data) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to start a flood fill of data Parameters • nearest_neighbour_id (int) – The id of the packet, between 0 and 127 • block_no (int) – Which block this block is, between 0 and 255 • base_address (int) – The base address where the data is to be loaded • data (bytearray) – The data to load, between 4 and 256 bytes and the size must be divisible by 4 Raises spinnman.exceptions.SpinnmanInvalidParameterException • If the id is out of range • If the block number is out of range • If the base_address is not a positive integer • If the data is too long or too short • If the length of the data is not divisible by 4 Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() SpiNNMan Documentation, Release Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_flood_fill_end_request module class spinnman.messages.scp.impl.scp_flood_fill_end_request.SCPFloodFillEndRequest(nearest_neigh pro- ces- sors=None) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to start a flood fill of data Parameters • nearest_neighbour_id (int) – The id of the packet, between 0 and 127 • app_id (int) – The application id to start using the data, between 16 and 255. If not specified, no application is started • processors (iterable of int) – A list of processors on which to start the application, each between 1 and 17. If not specified, no application is started. Raises spinnman.exceptions.SpinnmanInvalidParameterException • If the id is out of range • If the app_id is out of range • If one of the processors is out of range • If only one of app_id or processors is specified Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_flood_fill_start_request module SpiNNMan Documentation, Release class spinnman.messages.scp.impl.scp_flood_fill_start_request.SCPFloodFillStartRequest(nearest_ n_blocks x=None y=None Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to start a flood fill of data Parameters • nearest_neighbour_id (int) – The id of the packet, between 0 and 127 • n_blocks (int) – The number of blocks of data that will be sent, between 0 and 255 • x (int) – The x-coordindate of the chip to load the data on to. If not specified, the data will be loaded on to all chips • y (int) – The y-coordinate of the chip to load the data on to. If not specified, the data will be loaded on to all chips Raises spinnman.exceptions.SpinnmanInvalidParameterException • If the id is out of range • If the number of blocks is out of range • If only one of x or y is specified • If x and y are out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_iptag_clear_request module class spinnman.messages.scp.impl.scp_iptag_clear_request.SCPIPTagClearRequest(x, y, tag) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request to clear an IP Tag Parameters SpiNNMan Documentation, Release • x (int) – The x-coordinate of a chip, between 0 and 255 • y (int) – The y-coordinate of a chip, between 0 and 255 • tag (int) – The tag, between 0 and 7 Raises spinnman.exceptions.SpinnmanInvalidParameterException • The chip-coordinates are out of range • If the tag is not between 0 and 7 Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_iptag_get_request module class spinnman.messages.scp.impl.scp_iptag_get_request.SCPTagGetRequest(x, y, tag) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request to get an IP tag Parameters • x (int) – The x-coordinate of a chip, between 0 and 255 • y (int) – The y-coordinate of a chip, between 0 and 255 • tag (int) – The tag to get details of, between 0 and 7 • tag – The tag, between 0 and 7 Raises spinnman.exceptions.SpinnmanInvalidParameterException • The chip-coordinates are out of range • If the tag is not between 0 and 7 Attributes Continued on next page SpiNNMan Documentation, Release Table 3.204 – continued from previous page argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_iptag_get_response module class spinnman.messages.scp.impl.scp_iptag_get_response.SCPIPTagGetResponse Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request for an IP tags Attributes count The count of the number of packets that have been sent with the tag flags The flags of the tag in_use True if the tag is marked as being in use ip_address The IP address of the tag, as a bytearray of 4 bytes is_arp True if the tag is in the ARP state (where the MAC address is being looked up - transient state so unlik is_reverse True if the tag is a reverse tag is_temporary True if the tag is temporary mac_address The MAC address of the tag, as a bytearray of 6 bytes port The port of the tag rx_port The receive port of the tag scp_response_header The SCP header from the response sdp_header The SDP header from the response spin_chip_x The x-coordinate of the chip on which the tag is defined spin_chip_y The y-coordinate of the chip on which the tag is defined spin_cpu The cpu id of the ip tag spin_port The spin-port of the ip tag strip_sdp True if the tag is to strip sdp timeout The timeout of the tag Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp SpiNNMan Documentation, Release Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons spinnman.messages.scp.impl.scp_iptag_info_request module class spinnman.messages.scp.impl.scp_iptag_info_request.SCPTagInfoRequest(x, y) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request information about IP tags Parameters • x (int) – The x-coordinate of a chip, between 0 and 255 • y (int) – The y-coordinate of a chip, between 0 and 255 Raises spinnman.exceptions.SpinnmanInvalidParameterException The chip-coordinates are out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_iptag_info_response module class spinnman.messages.scp.impl.scp_iptag_info_response.SCPIPTagInfoResponse Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request for information about IP tags Attributes fixed_size The count of the number of fixed IP tag entries pool_size The count of the IP tag pool size scp_response_header The SCP header from the response Continued on next page SpiNNMan Documentation, Release Table 3.210 – continued from previous page sdp_header The SDP header from the response Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons spinnman.messages.scp.impl.scp_iptag_set_request module class spinnman.messages.scp.impl.scp_iptag_set_request.SCPIPTagSetRequest(x, y, host, port, tag, strip) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request to set an IP Tag Parameters • x (int) – The x-coordinate of a chip, between 0 and 255 • y (int) – The y-coordinate of a chip, between 0 and 255 • host (bytearray) – The host address, as an array of 4 bytes • port (int) – The port, between 0 and 65535 • tag (int) – The tag, between 0 and 7 • strip (bool) – if the SDP header should be striped from the packet. Raises spinnman.exceptions.SpinnmanInvalidParameterException • The chip-coordinates are out of range • If the host is not 4 bytes • If the port is not between 0 and 65535 • If the tag is not between 0 and 7 Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message SpiNNMan Documentation, Release Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_led_request module class spinnman.messages.scp.impl.scp_led_request.SCPLEDRequest(x, y, cpu, led_states) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to change the state of an LED Parameters • x (int) – The x-coordinate of the chip, between 0 and 255 • y (int) – The y-coordinate of the chip, between 0 and 255 • cpu (int) – The CPU-number to use to set the LED. • led_states (dict) – A dictionary mapping LED index to state with 0 being off, 1 on and 2 inverted. Raises spinnman.exceptions.SpinnmanInvalidParameterException • If x is out of range • If y is out of range • If cpu is out of range • If LEDs are not in the range 0 to 7 • If LED states are not 0, 1 or 2. Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_s SpiNNMan Documentation, Release Detailed Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_scp_response() spinnman.messages.scp.impl.scp_read_link_request module class spinnman.messages.scp.impl.scp_read_link_request.SCPReadLinkRequest(x, y, cpu, link, base_address, size) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP request to read a region of memory via a link on a chip Parameters • x (int) – The x-coordinate of the chip to read from, between 0 and 255 • y (int) – The y-coordinate of the chip to read from, between 0 and 255 • cpu (int) – The CPU core to use, normally 0 (or if a BMP, the board slot number) • link (int) – The id of the link down which to send the query • base_address (int) – The positive base address to start the read from • size (int) – The number of bytes to read, between 1 and 256 Raises spinnman.exceptions.SpinnmanInvalidParameterException • If the chip coordinates are out of range • If the base address is not a positive number • If the size is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_s Detailed Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_scp_response() SpiNNMan Documentation, Release spinnman.messages.scp.impl.scp_read_link_response module class spinnman.messages.scp.impl.scp_read_link_response.SCPReadLinkResponse Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request to read a region of memory via a link on a chip Attributes data The data read scp_response_header The SCP header from the response sdp_header The SDP header from the response Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons spinnman.messages.scp.impl.scp_read_memory_request module class spinnman.messages.scp.impl.scp_read_memory_request.SCPReadMemoryRequest(x, y, base_address, size) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP request to read a region of memory on a chip Parameters • x (int) – The x-coordinate of the chip to read from, between 0 and 255 • y (int) – The y-coordinate of the chip to read from, between 0 and 255 • base_address (int) – The positive base address to start the read from • size (int) – The number of bytes to read, between 1 and 256 Raises spinnman.exceptions.SpinnmanInvalidParameterException • If the chip coordinates are out of range • If the base address is not a positive number • If the size is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument Continued on next page SpiNNMan Documentation, Release Table 3.220 – continued from previous page argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_s Detailed Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_scp_response() spinnman.messages.scp.impl.scp_read_memory_response module class spinnman.messages.scp.impl.scp_read_memory_response.SCPReadMemoryResponse Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request to read a region of memory on a chip Attributes data The data read scp_response_header The SCP header from the response sdp_header The SDP header from the response Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons spinnman.messages.scp.impl.scp_read_memory_words_request module class spinnman.messages.scp.impl.scp_read_memory_words_request.SCPReadMemoryWordsRequest(x, y, base_ size) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP request to read a region of memory on a chip in words Parameters • x (int) – The x-coordinate of the chip to read from, between 0 and 255 SpiNNMan Documentation, Release • y (int) – The y-coordinate of the chip to read from, between 0 and 255 • base_address (int) – The positive base address to start the read from • size (int) – The number of words to read, between 1 and 64 Raises spinnman.exceptions.SpinnmanInvalidParameterException • If the chip coordinates are out of range • If the base address is not a positive number • If the size is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_s Detailed Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_scp_response() spinnman.messages.scp.impl.scp_read_memory_words_response module class spinnman.messages.scp.impl.scp_read_memory_words_response.SCPReadMemoryWordsResponse Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request to read a region of memory on a chip in words Attributes data The words of data read scp_response_header The SCP header from the response sdp_header The SDP header from the response Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp SpiNNMan Documentation, Release Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons spinnman.messages.scp.impl.scp_reverse_iptag_set_request module class spinnman.messages.scp.impl.scp_reverse_iptag_set_request.SCPReverseIPTagSetRequest(x, y, des- ti- na- tion_ des- ti- na- tion_ des- ti- na- tion_ port, tag, sdp_p Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request to set an IP Tag Parameters • x (int) – The x-coordinate of a chip, between 0 and 255 • y (int) – The y-coordinate of a chip, between 0 and 255 • destination_x (int) – The x-coordinate of the destination chip, between 0 and 255 • destination_y (int) – The y-coordinate of the destination chip, between 0 and 255 • destination_p (int) – the id of the destination processor, between 0 and 17 • port (int) – The port, between 0 and 65535 • tag (int) – The tag, between 0 and 7 Raises spinnman.exceptions.SpinnmanInvalidParameterException • The chip-coordinates are out of range • If the host is not 4 bytes • If the port is not between 0 and 65535 • If the tag is not between 0 and 7 Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument Continued on next page SpiNNMan Documentation, Release Table 3.228 – continued from previous page data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_router_alloc_request module class spinnman.messages.scp.impl.scp_router_alloc_request.SCPRouterAllocRequest(x, y, app_id, n_entries) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request to allocate space for routing entries Parameters • x (int) – The x-coordinate of the chip to allocate on, between 0 and 255 • y (int) – The y-coordinate of the chip to allocate on, between 0 and 255 • app_id (int) – The id of the application, between 0 and 255 • n_entries (int) – The number of entries to allocate Raises spinnman.exceptions.SpinnmanInvalidParameterException If app_id is out of range, or n_entries is 0 or less Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() SpiNNMan Documentation, Release spinnman.messages.scp.impl.scp_router_alloc_response module class spinnman.messages.scp.impl.scp_router_alloc_response.SCPRouterAllocResponse Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request to allocate router entries Attributes base_address The base address allocated, or 0 if none scp_response_header The SCP header from the response sdp_header The SDP header from the response Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons spinnman.messages.scp.impl.scp_router_clear_request module class spinnman.messages.scp.impl.scp_router_clear_request.SCPRouterClearRequest(x, y) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to clear the router on a chip Parameters • x (int) – The x-coordinate of the chip, between 0 and 255 • y (int) – The y-coordinate of the chip, between 0 and 255 Raises spinnman.exceptions.SpinnmanInvalidParameterException • If x is out of range • If y is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods SpiNNMan Documentation, Release get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_router_init_request module class spinnman.messages.scp.impl.scp_router_init_request.SCPRouterInitRequest(x, y, n_entries, ta- ble_address, base_address, app_id) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to initialize the router on a chip Parameters • x (int) – The x-coordinate of the chip, between 0 and 255 • y (int) – The y-coordinate of the chip, between 0 and 255 • n_entries (int) – The number of entries in the table, more than 0 • table_address (int) – The allocated table address • base_address (int) – The base_address containing the entries • app_id (int) – The id of the application with which to associate the routes. If not specified, defaults to 0. Raises spinnman.exceptions.SpinnmanInvalidParameterException • If x is out of range • If y is out of range • If n_entries is 0 or less • If table_address is not positive • If base_address is not positive Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods SpiNNMan Documentation, Release get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_send_signal_request module class spinnman.messages.scp.impl.scp_send_signal_request.SCPSendSignalRequest(app_id, sig- nal) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP Request to send a signal to cores Parameters • app_id (int) – The id of the application, between 0 and 255 • signal (spinnman.messages.scp.scp_signal.SCPSignal) – The signal to send Raises spinnman.exceptions.SpinnmanInvalidParameterException If app_id is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_version_request module class spinnman.messages.scp.impl.scp_version_request.SCPVersionRequest(x, y, p) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest An SCP request to read the version of software running on a core Parameters • x (int) – The x-coordinate of the chip to read from, between 0 and 255 • y (int) – The y-coordinate of the chip to read from, between 0 and 255 SpiNNMan Documentation, Release • p (int) – The id of the processor to read the version from, between 0 and 31 Raises spinnman.exceptions.SpinnmanInvalidParameterException • If the chip coordinates are out of range • If the processor is out of range Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_s Detailed Methods get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_scp_response() spinnman.messages.scp.impl.scp_version_response module class spinnman.messages.scp.impl.scp_version_response.SCPVersionResponse Bases: spinnman.messages.scp.abstract_messages.abstract_scp_response.AbstractSCPResponse An SCP response to a request for the version of software running Attributes scp_response_header The SCP header from the response sdp_header The SDP header from the response version_info The version information received Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResp Detailed Methods read_scp_response(byte_reader) See spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse.read_scp_respons SpiNNMan Documentation, Release spinnman.messages.scp.impl.scp_write_link_request module class spinnman.messages.scp.impl.scp_write_link_request.SCPWriteLinkRequest(x, y, cpu, link, base_address, data) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to write memory on a neighbouring chip Parameters • x (int) – The x-coordinate of the chip whose neighbour will be written to, between 0 and 255 • y (int) – The y-coordinate of the chip whose neighbour will be written to, between 0 and 255 • cpu (int) – The CPU core to use, normally 0 (or if a BMP, the board slot number) • link (int) – The link number to write to between 0 and 5 (or if a BMP, the FPGA between 0 and 2) • base_address (int) – The base_address to start writing to • data (bytearray) – Up to 256 bytes of data to write Raises spinnman.exceptions.SpinnmanInvalidParameterException • If x is out of range • If y is out of range • If base_address is not positive • If the length of data is 0 or more than 256 Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_write_memory_request module SpiNNMan Documentation, Release class spinnman.messages.scp.impl.scp_write_memory_request.SCPWriteMemoryRequest(x, y, base_address, data) Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to write memory on a chip Parameters • x (int) – The x-coordinate of the chip, between 0 and 255 • y (int) – The y-coordinate of the chip, between 0 and 255 • base_address (int) – The base_address to start writing to • data (bytearray) – Up to 256 bytes of data to write Raises spinnman.exceptions.SpinnmanInvalidParameterException • If x is out of range • If y is out of range • If base_address is not positive • If the length of data is 0 or more than 256 Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() spinnman.messages.scp.impl.scp_write_memory_words_request module class spinnman.messages.scp.impl.scp_write_memory_words_request.SCPWriteMemoryWordsRequest(x, y, ba da Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest A request to write memory on a chip using words (little endian) Parameters • x (int) – The x-coordinate of the chip, between 0 and 255 SpiNNMan Documentation, Release • y (int) – The y-coordinate of the chip, between 0 and 255 • base_address (int) – The base_address to start writing to • data (iterable of int) – Up to 64 ints of data to write Raises spinnman.exceptions.SpinnmanInvalidParameterException • If x is out of range • If y is out of range • If base_address is not positive • If the length of data is 0 or more than 256 Attributes argument_1 The first argument, or None if no first argument argument_2 The second argument, or None if no second argument argument_3 The third argument, or None if no third argument data The data, or None if no data scp_request_header The SCP request header of the message sdp_header The SDP header of the message Methods get_scp_response() Detailed Methods get_scp_response() Submodules spinnman.messages.scp.scp_command module class spinnman.messages.scp.scp_command.SCPCommand(value, doc=’‘) Bases: enum.Enum The SCP Commands Attributes CMD_ALLOC Router allocation CMD_APLX CMD_AR CMD_AS CMD_FFD Send Flood-Fill Data CMD_FILL CMD_FLASH_COPY Continued on next page SpiNNMan Documentation, Release Table 3.250 – continued from previous page CMD_FLASH_ERASE CMD_FLASH_WRITE CMD_IPTAG Set an IPTAG CMD_LED Control the LEDs CMD_LINK_READ Read neighbouring chip’s memory. CMD_LINK_WRITE Write neighbouring chip’s memory. CMD_NNP Send a Nearest-Neighbour packet CMD_P2PC CMD_POWER CMD_READ Read SDRAM CMD_REMAP CMD_RESET CMD_RTR Router initialization CMD_RUN CMD_SIG Send a Signal CMD_SROM CMD_TUBE CMD_VER Get SCAMP Version CMD_WRITE Write SDRAM spinnman.messages.scp.scp_iptag_command module class spinnman.messages.scp.scp_iptag_command.SCPIPTagCommand(value, doc=’‘) Bases: enum.Enum SCP IPTag Commands Attributes CLR GET NEW SET TTO spinnman.messages.scp.scp_request_header module class spinnman.messages.scp.scp_request_header.SCPRequestHeader(command, se- quence=None) Bases: object Represents the header of an SCP Request Each optional parameter in the constructor can be set to a value other than None once, after which it is immutable. It is an error to set a parameter that is not currently None. Parameters • command (spinnman.messages.scp.scp_command.SCPCommand) – The SCP command • sequence (int) – The number of the SCP packet in order of all packets sent or received, between 0 and 65535 Raises spinnman.exceptions.SpinnmanInvalidParameterException If one of the parameters is incorrect SpiNNMan Documentation, Release Attributes command The command of the SCP packet sequence The sequence number of the SCP packet Methods write_scp_request_header(byte_writer) Write the SCP header to a byte_writer Detailed Methods write_scp_request_header(byte_writer) Write the SCP header to a byte_writer Parameters byte_writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – The writer to write the data to Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error writing to the writer • spinnman.exceptions.SpinnmanInvalidParameterException – If any of the parameter values have not been set spinnman.messages.scp.scp_response_header module class spinnman.messages.scp.scp_response_header.SCPResponseHeader Bases: object Represents the header of an SCP Response Attributes result The result of the SCP response sequence The sequence number of the SCP response Methods read_scp_response_header(byte_reader) Read an SCP header from a byte_reader Detailed Methods read_scp_response_header(byte_reader) Read an SCP header from a byte_reader Parameters byte_reader (spinnman.data.abstract_byte_reader.AbstractByteReader) – The reader to read the data from SpiNNMan Documentation, Release Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error reading from the reader • spinnman.exceptions.SpinnmanInvalidPacketException – If there are not enough bytes to read the header • spinnman.exceptions.SpinnmanInvalidParameterException – If there is an error set- ting any of the values spinnman.messages.scp.scp_result module class spinnman.messages.scp.scp_result.SCPResult(value, doc=’‘) Bases: enum.Enum The SCP Result codes Attributes RC_ARG Invalid arguments RC_BUF No free Shared Memory buffers RC_CMD Bad/invalid command RC_CPU Bad CPU number RC_DEAD SHM destination dead RC_LEN Bad packet length RC_OK SCPCommand completed OK RC_P2P_BUSY Destination busy RC_P2P_NOREPLY No reply to open RC_P2P_REJECT Open rejected RC_P2P_TIMEOUT Dest did not respond RC_PKT_TX Pkt Transmission failed RC_PORT Bad port number RC_ROUTE No P2P route RC_SUM Bad checksum RC_TIMEOUT Timeout spinnman.messages.scp.scp_signal module class spinnman.messages.scp.scp_signal.SCPSignal(value, signal_type, doc=’‘) Bases: enum.Enum SCP Signals Parameters • value (int) – The value used for the signal • signal_type (int) – The “type” of the signal, between 0 and 2 Attributes Continued on next page SpiNNMan Documentation, Release Table 3.257 – continued from previous page CONTINUE EXIT INITIALISE PAUSE POWER_DOWN START STOP SYNC0 SYNC1 TIMER USER_0 USER_1 USER_2 USER_3 spinnman.messages.sdp package Submodules spinnman.messages.sdp.sdp_flag module class spinnman.messages.sdp.sdp_flag.SDPFlag(value, doc=’‘) Bases: enum.Enum SDPFlag for the message Attributes REPLY_EXPECTED Indicates that a reply is expected REPLY_NOT_EXPECTED Indicates that a reply is not expected spinnman.messages.sdp.sdp_header module class spinnman.messages.sdp.sdp_header.SDPHeader(flags=None, tag=None, destina- tion_port=None, destination_cpu=None, destination_chip_x=None, destination_chip_y=None, source_port=None, source_cpu=None, source_chip_x=None, source_chip_y=None) Bases: object Represents the header of an SDP message. Each optional parameter in the constructor can be set to a value other than None once, after which it is immutable. It is an error to set a parameter that is not currently None. Parameters • flags (spinnman.messages.sdp.sdp_flag.SDPFlag) – Any flags for the packet • tag (int) – The ip tag of the packet between 0 and 255, or None if it is to be set later • destination_port (int) – The destination port of the packet between 0 and 7 • destination_cpu (int) – The destination processor id within the chip between 0 and 31 SpiNNMan Documentation, Release • destination_chip_x (int) – The x-coordinate of the destination chip between 0 and 255 • destination_chip_y (int) – The y-coordinate of the destination chip between 0 and 255 • source_port (int) – The source port of the packet between 0 and 7, or None if it is to be set later • source_cpu (int) – The source processor id within the chip between 0 and 31, or None if it is to be set later • source_chip_x (int) – The x-coordinate of the source chip between 0 and 255, or None if it is to be set later • source_chip_y – The y-coordinate of the source chip between 0 and 255, or None if it is to be set later Raises spinnman.exceptions.SpinnmanInvalidParameterException If one ofthe parameters is not valid Attributes destination_chip_x The x-coordinate of the destination chip of the packet destination_chip_y The y-coordinate of the destination chip of the packet destination_cpu The core on the destination chip destination_port The destination port of the packet flags The flags of the packet source_chip_x The x-coordinate of the source chip of the packet source_chip_y The y-coordinate of the source chip of the packet source_cpu The core on the source chip source_port The source port of the packet tag The tag of the packet Methods read_sdp_header(byte_reader) Read an SDP header from a byte_reader write_sdp_header(byte_writer) Write the SDP header to a byte_writer Detailed Methods read_sdp_header(byte_reader) Read an SDP header from a byte_reader Parameters byte_reader (spinnman.data.abstract_byte_reader.AbstractByteReader) – The reader to read the data from Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error reading from the reader • spinnman.exceptions.SpinnmanInvalidPacketException – If there are too few bytes to read the header SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanInvalidParameterException – If there is an error set- ting any of the values write_sdp_header(byte_writer) Write the SDP header to a byte_writer Parameters byte_writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – The writer to write the data to Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error writing to the writer • spinnman.exceptions.SpinnmanInvalidParameterException – If any of the parameter values have not been set spinnman.messages.sdp.sdp_message module class spinnman.messages.sdp.sdp_message.SDPMessage(sdp_header, data=None) Bases: object Wraps up an SDP message with a header and optional data. Parameters • sdp_header (spinnman.messages.sdp.sdp_header.SDPHeader) – The header of the message • data (bytearray) – The data of the SDP packet, or None if no data Raises None No known exceptions are thrown Attributes data The data in the packet sdp_header The header of the packet spinnman.messages.spinnaker_boot package Submodules spinnman.messages.spinnaker_boot.spinnaker_boot_message module class spinnman.messages.spinnaker_boot.spinnaker_boot_message.SpinnakerBootMessage(opcode, data=None) Bases: object A message used for booting the board Parameters • opcode (spinnman.messages.spinnaker_boot.spinnaker_boot_op_code.SpinnakerBootOp – The operation of this packet SpiNNMan Documentation, Release • operand_1 (int) – The first operand • operand_2 (int) – The second operand • operand_3 (int) – The third operand • data (bytearray) – The optional data, up to 256 words Raises spinnman.exceptions.SpinnmanInvalidParameterException If the opcode is not a valid value Attributes data The data opcode The operation of this packet operand_1 The first operand operand_2 The second operand operand_3 The third operand spinnman.messages.spinnaker_boot.spinnaker_boot_messages module class spinnman.messages.spinnaker_boot.spinnaker_boot_messages.SpinnakerBootMessages(board_vers Bases: object Represents a set of boot messages to be sent to boot the board Parameters board_version (int) – The version of the board to be booted Raises • spinnman.exceptions.SpinnmanInvalidParameterException – If the board version is not supported • spinnman.exceptions.SpinnmanIOException – If there is an error assembling the packets Attributes messages Get an iterable of message to be sent. spinnman.messages.spinnaker_boot.spinnaker_boot_op_code module class spinnman.messages.spinnaker_boot.spinnaker_boot_op_code.SpinnakerBootOpCode(value, doc=’‘) Bases: enum.Enum Boot message Operation Codes Attributes FLOOD_FILL_BLOCK FLOOD_FILL_CONTROL FLOOD_FILL_START HELLO spinnman.messages.udp_utils package SpiNNMan Documentation, Release Submodules spinnman.messages.udp_utils.udp_utils module Functions update_sdp_header(sdp_header, default_sdp_tag) Apply defaults to the sdp header where the values have not been set spinnman.messages.udp_utils.udp_utils.update_sdp_header(sdp_header, de- fault_sdp_tag) Apply defaults to the sdp header where the values have not been set Parameters sdp_header (spinnman.messages.sdp.sdp_header.SDPHeader) – The SDP header values Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanInvalidParameterException If the packet already has a source_port != 7, a source_cpu != 31, a source_chip_x != 0, or a source_chip_y != 0 Submodules spinnman.messages.multicast_message module class spinnman.messages.multicast_message.MulticastMessage(key, payload=None) Bases: object A SpiNNaker Multicast message Parameters • key (int) – The key of the packet • payload (int) – The optional payload of the packet Raises None No known exceptions are raised Attributes key The key of the packet payload The payload of the packet if there is one spinnman.model package Submodules spinnman.model.chip_info module class spinnman.model.chip_info.ChipInfo(system_data) Bases: object Represents the system variables for a chip, received from the chip SDRAM Parameters system_data (bytearray) – An array of bytes retrieved from SDRAM on the baord SpiNNMan Documentation, Release Raises spinnman.exceptions.SpinnmanInvalidParameterException If the data doesn’t contain valid system data information Attributes cpu_clock_mhz The speed of the CPU clock in MHz cpu_information_base_address The base address of the cpu information structure first_free_router_entry The id of the first free routing entry on the chip iobuf_size The size of the iobuf buffers in bytes ip_address The ip address of the chip, or None if no ethernet is_ethernet_available True if the ethernet is running on this chip, False otherwise links_available The links that are available on the chip nearest_ethernet_x The x-coordinate of the nearest chip with ethernet nearest_ethernet_y The y-coordinate of the nearest chip with ethernet physical_to_virtual_core_map The physical core id to virtual core id map; entries with a value of 0xFF are non-operatio sdram_base_address The base address of SDRAM on the chip virtual_core_ids A list of available cores by virtual core id (including the monitor) x The x-coordinate of the chip x_size The number of chips in the x-dimension y The y-coordinate of the chip y_size The number of chips in the y-dimension Methods router_table_copy_address() The address of the copy of the router table Detailed Methods router_table_copy_address() The address of the copy of the router table Return type int spinnman.model.core_subset module class spinnman.model.core_subset.CoreSubset(x, y, processor_ids) Bases: object Represents a subset of the cores on a chip Parameters • x (int) – The x-coordinate of the chip • y (int) – The y-coordinate of the chip • processor_ids (iterable of int) – An iterable of processor ids on the chip Raises spinnman.exceptions.SpinnmanInvalidParameterException If there is more than one core listed with the same id Attributes SpiNNMan Documentation, Release processor_ids The subset of processor ids on the chip x The x-coordinate of the chip y The y-coordinate of the chip Methods add_processor(processor_id) Adds a processor id to this subset Detailed Methods add_processor(processor_id) Adds a processor id to this subset Parameters processor_ids (int) – A processor id Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanInvalidParameterException If there is already a pro- cessor in the subset with the same id spinnman.model.core_subsets module class spinnman.model.core_subsets.CoreSubsets(core_subsets=None) Bases: object Represents a group of CoreSubsets, with a maximum of one per chip Parameters core_subsets (iterable of spinnman.model.core_subset.CoreSubset) – An iterable of cores for each desired chip Raises spinnman.exceptions.SpinnmanInvalidParameterException If there is more than one subset with the same core x and y coordinates Attributes core_subsets The one-per-chip subsets Methods add_core_subset(core_subset) Add a core subset to the set add_processor(x, y, processor_id) Add a processor on a given chip to the set is_chip(x, y) Determine if the chip with coordinates (x, y) is in the subset is_core(x, y, processor_id) Determine if there is a chip with coordinates (x, y) in the subset, which has a core with the g Detailed Methods add_core_subset(core_subset) Add a core subset to the set SpiNNMan Documentation, Release Parameters core_subset (spinnman.model.core_subset.CoreSubset) – The core subset to add Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanInvalidParameterException If there is already a sub- set with the same core x and y coordinates add_processor(x, y, processor_id) Add a processor on a given chip to the set Parameters • x (int) – The x-coordinate of the chip • y (int) – The y-coordinate of the chip • processor_id – A processor id Returns Nothing is returned Return type None Raises spinnman.exceptions.SpinnmanInvalidParameterException If there is already a pro- cessor on the given chip with the same id is_chip(x, y) Determine if the chip with coordinates (x, y) is in the subset Parameters • x (int) – The x-coordinate of a chip • y (int) – The y-coordinate of a chip Returns True if the chip with coordinates (x, y) is in the subset Return type bool is_core(x, y, processor_id) Determine if there is a chip with coordinates (x, y) in the subset, which has a core with the given id in the subset Parameters • x (int) – The x-coordinate of a chip • y (int) – The y-coordinate of a chip • processor_id (int) – The id of a core Returns True if there is a chip with coordinates (x, y) in the subset, which has a core with the given id in the subset spinnman.model.cpu_info module class spinnman.model.cpu_info.CPUInfo(x, y, p, cpu_data) Bases: object Represents information about the state of a CPU Parameters • x (int) – The x-coordinate of a chip • y (int) – The y-coordinate of a chip SpiNNMan Documentation, Release • p (int) – The id of a core on the chip • cpu_data (bytearray) – An array of bytes received from SDRAM on the board Raises spinnman.exceptions.SpinnmanInvalidParameterException If the array does not contain a cpu data structure Attributes application_id The id of the application running on the core application_mailbox_command The command currently in the mailbox being sent from the monitor processor to th application_mailbox_data_address The address of the data in SDRAM for the application mailbox application_name The name of the application running on the core iobuf_address The address of the IOBUF buffer in SDRAM link_register The current link register value (lr) monitor_mailbox_command The command currently in the mailbox being sent from the application to the moni monitor_mailbox_data_address The address of the data in SDRAM of the monitor mailbox p The id of the core on the chip processor_state_register The value in the processor state register (psr) registers The current register values (r0 - r7) run_time_error The reason for a run time error software_error_count The number of software errors counted software_source_filename_address The address of the filename of the software source software_source_line_number The line number of the software source stack_pointer The current stack pointer value (sp) state The current state of the core time The time at which the application started user The current user values (user0 - user3) x The x-coordinate of the chip containing the core y The y-coordinate of the chip containing the core spinnman.model.cpu_state module class spinnman.model.cpu_state.CPUState(value, doc=’‘) Bases: enum.Enum SARK CPU States Attributes C_MAIN DEAD FINSHED IDLE INITIALISING PAUSED POWERED_DOWN READY RUNNING RUN_TIME_EXCEPTION SYNC0 SYNC1 WATCHDOG SpiNNMan Documentation, Release spinnman.model.diagnostic_filter module class spinnman.model.diagnostic_filter.DiagnosticFilter(enable_interrupt_on_counter_event, match_emergency_routing_status_to_incoming_packet destinations, sources, payload_statuses, de- fault_routing_statuses, emergency_routing_statuses, packet_types) Bases: object A router diagnostic counter filter, which counts packets passing through the router with certain properties. The counter will be incremented so long as the packet matches one of the values in each field i.e. one of each of the destinations, sources, payload_statuses, default_routing_statuses, emergency_routing_statuses and packet_types Parameters • enable_interrupt_on_counter_event (bool) – Indicates whether an interrupt should be raised when this rule matches • match_emergency_routing_status_to_incoming_packet (bool) – Indicates whether the emergency routing statuses should be matched against packets arriving at this router (if True), or if they should be matched against packets leaving this router (if False) • destinations (iterable of spinnman.model.diagnostic_filter_destination.DiagnosticFilte – Increment the counter if one or more of the given destinations match • sources (iterable of spinnman.model.diagnostic_filter_source.DiagnosticFilterSource) – Increment the counter if one or more of the given sources match (or None or empty list to match all) • payload_statuses (iterable of spinnman.model.diagnostic_filter_payload_status.Diagnosti – Increment the counter if one or more of the given payload statuses match (or None or empty list to match all) • default_routing_statuses (iterable of spinnman.model.diagnostic_filter_default_routing_st – Increment the counter if one or more of the given default routing statuses match (or None or empty list to match all) • emergency_routing_statuses (iterable of spinnman.model.diagnostic_filter_emergency_routin – Increment the counter if one or more of the given emergency routing statuses match (or None or empty list to match all) • packet_types (iterable of spinnman.model.diagnostic_filter_packet_type.DiagnosticFilt – Increment the counter if one or more of the given packet types match (or None or empty list to match all) Attributes default_routing_statuses destinations emergency_routing_statuses enable_interrupt_on_counter_event filter_word A word of data that can be written to the router to set up t match_emergency_routing_status_to_incoming_packet packet_types payload_statuses Continued on nex SpiNNMan Documentation, Release sources Methods read_from_int(int_value) Detailed Methods static read_from_int(int_value) spinnman.model.diagnostic_filter_default_routing_status module class spinnman.model.diagnostic_filter_default_routing_status.DiagnosticFilterDefaultRoutingS Bases: enum.Enum Default routing flags for the diagnostic filters. Note that only one has to match for the counter to be incremented Attributes DEFAULT_ROUTED Packet is to be default routed NON_DEFAULT_ROUTED Packet is not to be default routed spinnman.model.diagnostic_filter_destination module class spinnman.model.diagnostic_filter_destination.DiagnosticFilterDestination(value, doc=’‘) Bases: enum.Enum Destination flags for the diagnostic filters. Note that only one has to match for the counter to be incremented Attributes DUMP Destination is to dump the packet LINK_0 Destination is link 0 LINK_1 Destination is link 1 LINK_2 Destination is link 2 LINK_3 Destination is link 3 LINK_4 Destination is link 4 LINK_5 Destination is link 5 LOCAL Destination is a local core (but not the monitor core) LOCAL_MONITOR Destination is the local monitor core spinnman.model.diagnostic_filter_emergency_routing_status module class spinnman.model.diagnostic_filter_emergency_routing_status.DiagnosticFilterEmergencyRout Bases: enum.Enum Emergency routing status flags for the diagnostic filters. Note that only one has to match for the counter to be incremented SpiNNMan Documentation, Release Attributes FIRST_STAGE Packet is in first hop of emergency route; packet wouldn’t have reached this router without emergenc FIRST_STAGE_COMBINED Packet is in first hop of emergency route; packet should also have been sent here by normal routing NORMAL Packet is not emergency routed SECOND_STAGE Packet is in last hop of emergency route and should now return to normal routing spinnman.model.diagnostic_filter_packet_type module class spinnman.model.diagnostic_filter_packet_type.DiagnosticFilterPacketType(value, doc=’‘) Bases: enum.Enum Packet type flags for the diagnostic filters. Note that only one has to match for the counter to be incremented Attributes FIXED_ROUTE Packet is fixed-route MULTICAST Packet is multicast NEAREST_NEIGHBOUR Packet is nearest-neighbour POINT_TO_POINT Packet is point-to-point spinnman.model.diagnostic_filter_payload_status module class spinnman.model.diagnostic_filter_payload_status.DiagnosticFilterPayloadStatus(value, doc=’‘) Bases: enum.Enum Payload flags for the diagnostic filters. Note that only one has to match for the counter to be incremented Attributes WITHOUT_PAYLOAD Packet doesn’t have a payload WITH_PAYLOAD Packet has a payload spinnman.model.diagnostic_filter_source module class spinnman.model.diagnostic_filter_source.DiagnosticFilterSource(value, doc=’‘) Bases: enum.Enum Source flags for the diagnostic filters. Note that only one has to match for the counter to be incremented Attributes LOCAL Source is a local core NON_LOCAL Source is not a local core spinnman.model.io_buffer module class spinnman.model.io_buffer.IOBuffer(x, y, p, iobuf ) Bases: object The contents of IOBUF for a core SpiNNMan Documentation, Release Parameters • x (int) – The x-coordinate of a chip • y (int) – The y-coordinate of a chip • p (int) – The p-coordinate of a chip • iobuf (str) – The contents of the buffer for the chip Raises None No known exceptions are raised Attributes iobuf The contents of the buffer p The id of the core on the chip x The x-coordinate of the chip containing the core y The y-coordinate of the chip containing the core spinnman.model.machine_dimensions module class spinnman.model.machine_dimensions.MachineDimensions(x_max, y_max) Bases: object Represents the dimensions of a machine Parameters • x_max (int) – The maximum x-coordinate of the chips in the machine • y_max (int) – The maximum y-coordinate of the chips in the machine Raises None No known exceptions are raised Attributes x_max The maximum x-coordinate of the chips in the machine y_max The maximum y-coordinate of the chips in the machine spinnman.model.mailbox_command module class spinnman.model.mailbox_command.MailboxCommand(value, doc=’‘) Bases: enum.Enum Commands sent between an application and the monitor processor Attributes SHM_CMD The mailbox contains a command SHM_IDLE The mailbox is idle SHM_MSG The mailbox contains an SDP message SHM_NOP The mailbox contains a non-operation SHM_SIGNAL The mailbox contains a signal spinnman.model.router_diagnostics module SpiNNMan Documentation, Release class spinnman.model.router_diagnostics.RouterDiagnostics(control_register, er- ror_status, regis- ter_values) Bases: object Represents a set of diagnostic information available from a chip router Parameters • control_register (int) – The value of the control register • error_status (int) – The value of the error_status • register_values (iterable of int) – The values of the 16 router registers Raises spinnman.exceptions.SpinnmanInvalidParameterException If the number of register values is not 16 Attributes error_status The error status mon The “mon” part of the control register n_dropped_fixed_route_packets The number of fixed-route packets received that were dropped n_dropped_multicast_packets The number of multicast packets received that were dropped n_dropped_nearest_neighbour_packets The number of nearest-neighbour packets received that were dropped n_dropped_peer_to_peer_packets The number of peer-to-peer packets received that were dropped n_external_fixed_route_packets The number of fixed-route packets received from external links n_external_multicast_packets The number of multicast packets received from external links n_external_nearest_neighbour_packets The number of nearest-neighbour packets received from external links n_external_peer_to_peer_packets The number of peer-to-peer packets received from external links n_local_fixed_route_packets The number of fixed-route packets received from local cores n_local_multicast_packets The number of multicast packets received from local cores n_local_nearest_neighbour_packets The number of nearest-neighbour packets received from local cores n_local_peer_to_peer_packets The number of peer-to-peer packets received from local cores registers The values in all of the registers. user_registers The values in the user control registers spinnman.model.run_time_error module class spinnman.model.run_time_error.RunTimeError(value, doc=’‘) Bases: enum.Enum SARK Run time errors Attributes ABORT API DABT DIVBY0 ENABLE EVENT Continued on next page SpiNNMan Documentation, Release Table 3.287 – continued from previous page FIQ IOBUF IRQ MALLOC NONE NULL PABT PKT RESET SVC SWERR TIMER UNDEF VIC spinnman.model.version_info module Functions asctime(([tuple]) -> string) Convert a time tuple to a string, e.g. localtime(...) tm_sec,tm_wday,tm_yday,tm_isdst) spinnman.model.version_info.asctime([tuple ]) → string Convert a time tuple to a string, e.g. ‘Sat Jun 06 16:26:11 1998’. When the time tuple is not present, current time as returned by localtime() is used. spinnman.model.version_info.localtime([seconds ]) → (tm_year,tm_mon,tm_mday,tm_hour,tm_min, tm_sec,tm_wday,tm_yday,tm_isdst) Convert seconds since the Epoch to a time tuple expressing local time. When ‘seconds’ is not passed in, convert the current time instead. class spinnman.model.version_info.VersionInfo(version_data) Bases: object Decodes SC&MP/SARK version information as returned by the SVER command Parameters version_data (bytearray) – bytes from an SCP packet containing version information Raises spinnman.exceptions.SpinnmanInvalidParameterException If the message does not con- tain valid version information Attributes build_date The build date of the software hardware The hardware being run on name The name of the software p The processor id of the processor where the information was obtained version_number The version number of the software version_string The version information as text x The x-coordinate of the chip where the information was obtained Continued on next page SpiNNMan Documentation, Release Table 3.289 – continued from previous page y The y-coordinate of the chip where the information was obtained 3.1.2 Submodules spinnman.constants module Classes CONNECTION_TYPE EIEIO_COMMAND_IDS TRAFFIC_TYPE class spinnman.constants.CONNECTION_TYPE Bases: enum.Enum Attributes REVERSE_IPTAG SDP_IPTAG UDP_BOOT UDP_IPTAG UDP_SPINNAKER USB class spinnman.constants.EIEIO_COMMAND_IDS Bases: enum.Enum Attributes DATABASE_CONFIRMATION EVENT_PADDING EVENT_STOP HOST_DATA_READ HOST_SEND_SEQUENCED_DATA SPINNAKER_REQUEST_BUFFERS SPINNAKER_REQUEST_READ_DATA START_SENDING_REQUESTS STOP_SENDING_REQUESTS class spinnman.constants.TRAFFIC_TYPE Bases: enum.Enum Attributes SpiNNMan Documentation, Release EIEIO_COMMAND EIEIO_DATA SCP SDP UDP spinnman.exceptions module Exceptions SpinnmanEIEIOPacketParsingException(...) Unable to complete the parsing of the EIEIO packet received. SpinnmanException Superclass of exceptions that occur when dealing with communi SpinnmanIOException(problem) An exception that something went wrong with the underlying IO SpinnmanInvalidPacketException(packet_type, ...) An exception that indicates that a packet was not in the expected SpinnmanInvalidParameterException(parameter, ...) An exception that indicates that the value of one of the paramete SpinnmanInvalidParameterTypeException(...) An exception that indicates that the type of one of the parameter SpinnmanTimeoutException(operation, timeout) An exception that indicates that a timeout occurred before an op SpinnmanUnexpectedResponseCodeException(...) Indicate that a response code returned from the board was unexp SpinnmanUnsupportedOperationException(operation) An exception that indicates that the given operation is not suppo exception spinnman.exceptions.SpinnmanEIEIOPacketParsingException(parsing_format, packet) Unable to complete the parsing of the EIEIO packet received. The routine used is invalid or the content of the packet is invalid exception spinnman.exceptions.SpinnmanException Superclass of exceptions that occur when dealing with communication with SpiNNaker exception spinnman.exceptions.SpinnmanIOException(problem) An exception that something went wrong with the underlying IO Parameters problem (str) – The problem with the IO exception spinnman.exceptions.SpinnmanInvalidPacketException(packet_type, problem) An exception that indicates that a packet was not in the expected format Parameters • packet_type (str) – The type of packet expected • problem (str) – The problem with the packet exception spinnman.exceptions.SpinnmanInvalidParameterException(parameter, value, problem) An exception that indicates that the value of one of the parameters passed was invalid Parameters • parameter (str) – The name of the parameter that is invalid • value (str) – The value of the parameter that is invalid • problem (str) – The problem with the parameter exception spinnman.exceptions.SpinnmanInvalidParameterTypeException(parameter, param_type, problem) An exception that indicates that the type of one of the parameters passed was invalid SpiNNMan Documentation, Release Parameters • parameter (str) – The name of the parameter that is invalid • param_type (str) – The type of the parameter that is invalid • problem (str) – The problem with the parameter exception spinnman.exceptions.SpinnmanTimeoutException(operation, timeout) An exception that indicates that a timeout occurred before an operation could finish Parameters • operation (str) – The operation being performed • timeout (int) – The timeout value in seconds exception spinnman.exceptions.SpinnmanUnexpectedResponseCodeException(operation, command, response) Indicate that a response code returned from the board was unexpected for the current operation Parameters • operation (str) – The operation being performed • command (str) – The command being executed • response (str) – The response received in error exception spinnman.exceptions.SpinnmanUnsupportedOperationException(operation) An exception that indicates that the given operation is not supported Parameters operation (str) – The operation being requested spinnman.reports module Functions generate_machine_report(report_directory, ...) Generate report on the physical structure of the target SpiNNaker machine. spinnman.reports.generate_machine_report(report_directory, machine, connections) Generate report on the physical structure of the target SpiNNaker machine. Parameters • report_directory (str) – the directroy to which reports are stored • machine (spinnmachine.machine.Machine object) – the machine python object • connections (iterable of implientations of ) – the list of connections to the machine spinnman.connections.abstract_connection.AbstractConnection :return None :rtype: None :raise IOError: when a file cannot be opened for some reason spinnman.transceiver module Functions SpiNNMan Documentation, Release create_transceiver_from_hostname(hostname[, ...]) Create a Transceiver by creating a UDPConnection to the given ho gethostbyname((host) -> address) Return the IP address (a string of the form ‘255.255.255.255’) for a spinnman.transceiver.create_transceiver_from_hostname(hostname, ig- nore_chips=None, ig- nore_cores=None, max_core_id=None) Create a Transceiver by creating a UDPConnection to the given hostname on port 17893 (the default SCAMP port), and a optionally discovering any additional links using the UDPConnection, and then returning the transceiver created with the conjunction of the created UDPConnection and the discovered connections Parameters • hostname (str) – The hostname or IP address of the board • ignore_chips (spinnman.model.core_subsets.CoreSubsets) – An optional set of chips to ignore in the machine. Requests for a “machine” will have these chips ex- cluded, as if they never existed. The processor_ids of the specified chips are ignored. • ignore_cores (spinnman.model.core_subsets.CoreSubsets) – An optional set of cores to ignore in the machine. Requests for a “machine” will have these cores ex- cluded, as if they never existed. • max_core_id (int) – The maximum core id in any discovered machine. Requests for a “machine” will only have core ids up to this value. Returns The created transceiver Return type spinnman.transceiver.Transceiver Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response in- dicates an error during the exchange spinnman.transceiver.gethostbyname(host) → address Return the IP address (a string of the form ‘255.255.255.255’) for a host. spinnman.transceiver.inet_aton(string) → packed 32-bit IP representation Convert an IP address in string format (123.45.67.89) to the 32-bit packed binary format used in low-level network functions. class spinnman.transceiver.Transceiver(connections=None, ignore_chips=None, ig- nore_cores=None, max_core_id=None, Bases: object An encapsulation of various communications with the spinnaker board. SpiNNMan Documentation, Release The methods of this class are designed to be thread-safe; thus you can make multiple calls to the same (or different) methods from multiple threads and expect each call to work as if it had been called sequentially, although the order of returns is not guaranteed. Note also that with multiple connections to the board, using multiple threads in this way may result in an increase in the overall speed of operation, since the multiple calls may be made separately over the set of given connections. Parameters • connections (iterable of spinnman.connections.abstract_connection.AbstractConnection) – An iterable of connections to the board. If not specified, no communication will be possible until connections are found. • ignore_chips (spinnman.model.core_subsets.CoreSubsets) – An optional set of chips to ignore in the machine. Requests for a “machine” will have these chips ex- cluded, as if they never existed. The processor_ids of the specified chips are ignored. • ignore_cores (spinnman.model.core_subsets.CoreSubsets) – An optional set of cores to ignore in the machine. Requests for a “machine” will have these cores ex- cluded, as if they never existed. • max_core_id (int) – The maximum core id in any discovered machine. Requests for a “machine” will only have core ids up to and including this value. Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board, or if no connections to the board can be found (if connections is None) • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response in- dicates an error during the exchange Methods boot_board(board_version) Attempt to boot the board. clear_ip_tag(tag[, connection, board_address]) Clear the setting of an ip tag clear_multicast_routes(x, y) Remove all the multicast routes on a chip clear_router_diagnostic_counters(x, y[, ...]) Clear router diagnostic information om a chip close([close_original_connections]) Close the transceiver and any threads that are running discover_scamp_connections() Find connections to the board and store these for future use. ensure_board_is_ready(board_version[, n_retries]) Ensure that the board is ready to interact with this version o execute(x, y, processors, executable, app_id) Start an executable running on a single core execute_flood(core_subsets, executable, app_id) Start an executable running on multiple places on the board. get_connections([include_boot_connection]) Get the currently known connections to the board, made up get_core_state_count(app_id, state) Get a count of the number of cores which have a given state get_cpu_information([core_subsets]) Get information about the processors on the board get_cpu_information_from_core(x, y, p) Get information about a specific processor on the board get_iobuf([core_subsets]) Get the contents of the IOBUF buffer for a number of proce get_iobuf_from_core(x, y, p) Get the contents of IOBUF for a given core get_machine_details() Get the details of the machine made up of chips on a board get_machine_dimensions() Get the maximum chip x-coordinate and maximum chip y-c get_multicast_routes(x, y[, app_id]) Get the current multicast routes set up on a chip SpiNNMan Documentation, Release get_router_diagnostic_filter(x, y, position) Gets a router diagnostic filter from a router get_router_diagnostics(x, y) Get router diagnostic information from a chip get_scamp_version([n_retries, timeout]) Get the version of scamp which is running on the board get_tags([connection]) Get the current set of tags that have been set on the board get_user_0_register_address_from_core(x, y, p) Get the address of user 0 for a given processor on the board is_connected([connection]) Determines if the board can be contacted load_multicast_routes(x, y, routes, app_id) Load a set of multicast routes on to a chip locate_spinnaker_connection_for_board_address(...) Find a connection that matches the given board IP address read_memory(x, y, base_address, length) Read some areas of SDRAM from the board read_memory_return_byte_array(x, y, ...) Read some areas of SDRAM from the board read_neighbour_memory(x, y, cpu, link, ...) Read some areas of memory on a neighbouring chip using a receive_multicast_message(x, y[, timeout, ...]) Receives a multicast message from the board register_listener(callback, recieve_port_no, ...) Register a callback for a certain type of traffic send_eieio_command_message(message[, connection]) Sends a EIEIO command message using one of the connecti send_multicast_message(x, y, multicast_message) Sends a multicast message to the board send_scp_message(message[, retry_codes, ...]) Sends an SCP message, and gets a response send_sdp_message(message[, connection]) Sends a EIEIO command message using one of the connecti send_signal(app_id, signal) Send a signal to an application set_ip_tag(ip_tag) Set up an ip tag set_leds(x, y, cpu, led_states) Set LED states. set_reverse_ip_tag(reverse_ip_tag) Set up a reverse ip tag set_router_diagnostic_filter(x, y, position, ...) Sets a router diagnostic filter in a router stop_application(app_id) Sends a stop request for an app_id write_memory(x, y, base_address, data[, n_bytes]) Write to the SDRAM on the board write_memory_flood(base_address, data[, n_bytes]) Write to the SDRAM of all chips. write_neighbour_memory(x, y, cpu, link, ...) Write to the memory of a neighbouring chip using a LINK_ Detailed Methods boot_board(board_version) Attempt to boot the board. No check is performed to see if the board is already booted. Parameters board_version (int) – The version of the board e.g. 3 for a SpiNN-3 board or 5 for a SpiNN-5 board. Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanInvalidParameterException – If the board version is not known • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board clear_ip_tag(tag, connection=None, board_address=None) Clear the setting of an ip tag Parameters • tag (int) – The tag id • connection (spinnman.connections.abstract_scp_sender.AbstractSCPSender) – Connection where the tag should be cleard. If not specified, all SCPSender connections will send the message to clear the tag SpiNNMan Documentation, Release • board_address – Board address where the tag should be cleared. If not specified, all SCPSender connections will send the message to clear the tag Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If the tag is not a valid tag – If the connection cannot send SDP messages – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange clear_multicast_routes(x, y) Remove all the multicast routes on a chip Parameters • x (int) – The x-coordinate of the chip on which to clear the routes • y (int) – The y-coordinate of the chip on which to clear the routes Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange clear_router_diagnostic_counters(x, y, enable=True, counter_ids=[0, 1, 2, 3, 4, 5, 6, 7, 8, Clear router diagnostic information om a chip Parameters • x (int) – The x-coordinate of the chip • y (int) – The y-coordinate of the chip • enable (bool) – True (default) if the counters should be enabled • counter_ids (array-like of int) – The ids of the counters to reset (all by default) and enable if enable is True; each must be between 0 and 15 SpiNNMan Documentation, Release Returns None Return type Nothing is returned Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters or a counter id is out of range • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange close(close_original_connections=True) Close the transceiver and any threads that are running Parameters close_original_connections – If True, the original connections passed to the transceiver in the constructor are also closed. If False, only newly discovered connections are closed. Returns Nothing is returned Return type None Raises None No known exceptions are raised discover_scamp_connections() Find connections to the board and store these for future use. Note that connections can be empty, in which case another local discovery mechanism will be used. Note that an exception will be thrown if no initial connections can be found to the board. Returns An iterable of discovered connections, not including the initially given connections in the constructor Return type iterable of spinnman.connections.abstract_connection.AbstractConnection Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange ensure_board_is_ready(board_version, n_retries=3) Ensure that the board is ready to interact with this version of the transceiver. Boots the board if not already booted and verifies that the version of SCAMP running is compatible with this transceiver. Parameters • board_version (int) – The version of the board e.g. 3 for a SpiNN-3 board or 5 for a SpiNN-5 board. • n_retries (int) – The number of times to retry booting SpiNNMan Documentation, Release Returns The version identifier Return type spinnman.model.version_info.VersionInfo Raise spinnman.exceptions.SpinnmanIOException: * If there is a problem booting the board * If the version of software on the board is not compatible with this transceiver execute(x, y, processors, executable, app_id, n_bytes=None) Start an executable running on a single core Parameters • x (int) – The x-coordinate of the chip on which to run the executable • y (int) – The y-coordinate of the chip on which to run the executable • processors (iterable of int) – The cores on the chip on which to run the application • executable (spinnman.data.abstract_data_reader.AbstractDataReader or bytearray) – The data that is to be executed. Should be one of the following: * An instance of AbstractDataReader * A bytearray • app_id (int) – The id of the application with which to associate the executable • n_bytes (int) – The size of the executable data in bytes. If not specified: * If data is an AbstractDataReader, an error is raised * If data is a bytearray, the length of the bytearray will be used * If data is an int, 4 will be used Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – – If there is an error communicating with the board – If there is an error reading the executable • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If x, y, p does not lead to a valid core – If app_id is an invalid application id – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange execute_flood(core_subsets, executable, app_id, n_bytes=None) Start an executable running on multiple places on the board. This will be optimized based on the selected cores, but it may still require a number of communications with the board to execute. Parameters • core_subsets (spinnman.model.core_subsets.CoreSubsets) – Which cores on which chips to start the executable • executable (spinnman.data.abstract_data_reader.AbstractDataReader or bytearray) – The data that is to be executed. Should be one of the following: * An instance of AbstractDataReader * A bytearray SpiNNMan Documentation, Release • app_id (int) – The id of the application with which to associate the executable • n_bytes (int) – The size of the executable data in bytes. If not specified: * If data is an AbstractDataReader, an error is raised * If data is a bytearray, the length of the bytearray will be used * If data is an int, 4 will be used Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – – If there is an error communicating with the board – If there is an error reading the executable • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If one of the specified cores is not valid – If app_id is an invalid application id – If a packet is received that has invalid parameters – If data is an AbstractDataReader but n_bytes is not specified – If data is an int and n_bytes is more than 4 – If n_bytes is less than 0 • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_connections(include_boot_connection=False) Get the currently known connections to the board, made up of those passed in to the transceiver and those that are discovered during calls to discover_connections. No further discovery is done here. Parameters include_boot_connection (bool) – this parameter signals if the returned list of con- nections should include also the boot connection to SpiNNaker Returns An iterable of connections known to the transceiver Return type iterable of spinnman.connections.abstract_connection.AbstractConnection Raises None No known exceptions are raised get_core_state_count(app_id, state) Get a count of the number of cores which have a given state Parameters • app_id (int) – The id of the application from which to get the count. • state (spinnman.model.cpu_state.CPUState) – The state count to get Returns A count of the cores with the given status Return type int Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If state is not a valid status – If app_id is not a valid application id – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_cpu_information(core_subsets=None) Get information about the processors on the board Parameters core_subsets (spinnman.model.core_subsets.CoreSubsets) – A set of chips and cores from which to get the information. If not specified, the information from all of the cores on all of the chips on the board are obtained Returns An iterable of the cpu information for the selected cores, or all cores if core_subsets is not specified Return type iterable of spinnman.model.cpu_info.CPUInfo Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If chip_and_cores contains invalid items – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_cpu_information_from_core(x, y, p) Get information about a specific processor on the board Parameters • x (int) – The x-coordinate of the chip containing the processor • y (int) – The y-coordinate of the chip containing the processor • p (int) – The id of the processor to get the information about Returns The cpu information for the selected core Return type spinnman.model.cpu_info.CPUInfo Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – SpiNNMan Documentation, Release – If x, y, p is not a valid processor – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_iobuf(core_subsets=None) Get the contents of the IOBUF buffer for a number of processors Parameters core_subsets (spinnman.model.core_subsets.CoreSubsets) – A set of chips and cores from which to get the buffers. If not specified, the buffers from all of the cores on all of the chips on the board are obtained Returns An iterable of the buffers, which may not be in the order of core_subsets Return type iterable of spinnman.model.io_buffer.IOBuffer Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If chip_and_cores contains invalid items – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_iobuf_from_core(x, y, p) Get the contents of IOBUF for a given core Parameters • x (int) – The x-coordinate of the chip containing the processor • y (int) – The y-coordinate of the chip containing the processor • p (int) – The id of the processor to get the IOBUF for Returns An IOBUF buffer Return type spinnman.model.io_buffer.IOBuffer Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If chip_and_cores contains invalid items – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange SpiNNMan Documentation, Release get_machine_details() Get the details of the machine made up of chips on a board and how they are connected to each other. Returns A machine description Return type spinn_machine.machine.Machine Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_machine_dimensions() Get the maximum chip x-coordinate and maximum chip y-coordinate of the chips in the machine Returns The dimensions of the machine Return type spinnman.model.machine_dimensions.MachineDimensions Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_multicast_routes(x, y, app_id=None) Get the current multicast routes set up on a chip Parameters • x (int) – The x-coordinate of the chip from which to get the routes • y (int) – The y-coordinate of the chip from which to get the routes • app_id (int) – The id of the application to filter the routes for. If not specified, will return all routes Returns An iterable of multicast routes Return type iterable of spinnman.model.multicast_routing_entry.MulticastRoute Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_router_diagnostic_filter(x, y, position) Gets a router diagnostic filter from a router Parameters • x (int) – the x address of the router from which this filter is being retrieved • y (int) – the y address of the router from which this filter is being retrieved • position (int) – the position in the list of filters where this filter is to be added Returns The diagnostic filter read Return type spinnman.model.diagnostic_filter.DiagnosticFilter Raises • spinnman.exceptions.SpinnmanIOException – – If there is an error communicating with the board – If there is an error reading the data • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If x, y does not lead to a valid chip – If a packet is received that has invalid parameters – If position is less than 0 or more than 15 • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_router_diagnostics(x, y) Get router diagnostic information from a chip Parameters • x (int) – The x-coordinate of the chip from which to get the information • y (int) – The y-coordinate of the chip from which to get the information Returns The router diagnostic information Return type spinnman.model.router_diagnostics.RouterDiagnostics Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_scamp_version(n_retries=3, timeout=1) Get the version of scamp which is running on the board Parameters • n_retries (int) – The number of times to retry getting the version • timeout (int) – The timeout for each retry in seconds Returns The version identifier Return type spinnman.model.version_info.VersionInfo Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidParameterException – If the timeout is less than 1 • spinnman.exceptions.SpinnmanTimeoutException – If none of the retries resulted in a response before the timeout (suggesting that the board is not booted) get_tags(connection=None) Get the current set of tags that have been set on the board Parameters connection (spinnman.connections.abstract_scp_sender.AbstractSCPSender) – Connection from which the tags should be received. If not specified, all SCPSender con- nections will be queried and the response will be combined. Returns An iterable of tags Return type iterable of spinn_machine.tags.abstract_tag.AbstractTag Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If the connection cannot send SDP messages – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange get_user_0_register_address_from_core(x, y, p) Get the address of user 0 for a given processor on the board Parameters • x (int) – the x-coordinate of the chip containing the processor • y (int) – the y-coordinate of the chip containing the processor • p (int) – The id of the processor to get the user 0 address from SpiNNMan Documentation, Release :return:The address for user 0 register for this processor :rtype: int :raise spinn- man.exceptions.SpinnmanInvalidPacketException: If a packet is received that is not in the valid format :raise spinnman.exceptions.SpinnmanInvalidParameterException: •If x, y, p is not a valid processor •If a packet is received that has invalid parameters Raises spinnman.exceptions.SpinnmanUnexpectedResponseCodeException If a response indicates an error during the exchange is_connected(connection=None) Determines if the board can be contacted Parameters connection (spinnman.connections.abstract_connection.AbstractConnection) – The connection which is to be tested. If none, all connections will be tested, and the board will be considered to be connected if any one connection works. Returns True if the board can be contacted, False otherwise Return type bool Raises None No known exceptions are raised load_multicast_routes(x, y, routes, app_id) Load a set of multicast routes on to a chip Parameters • x (int) – The x-coordinate of the chip onto which to load the routes • y (int) – The y-coordinate of the chip onto which to load the routes • routes (iterable of spinnmachine.multicast_routing_entry.MulticastRoutingEntry) – An iterable of multicast routes to load • app_id (int) – The id of the application with which to associate the routes. If not specified, defaults to 0. Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If any of the routes are invalid – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange locate_spinnaker_connection_for_board_address(board_address) Find a connection that matches the given board IP address Parameters board_address (str) – The IP address of the ethernet connection on the baord Returns A connection for the given IP address, or None if no such connection exists SpiNNMan Documentation, Release Return type spinnman.connections.udp_packet_connections.udp_spinnaker_connection.U read_memory(x, y, base_address, length) Read some areas of SDRAM from the board Parameters • x (int) – The x-coordinate of the chip where the memory is to be read from • y (int) – The y-coordinate of the chip where the memory is to be read from • base_address (int) – The address in SDRAM where the region of memory to be read starts • length (int) – The length of the data to be read in bytes Returns An iterable of chunks of data read in order Return type iterable of bytearray Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If one of x, y, p, base_address or length is invalid – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange read_memory_return_byte_array(x, y, base_address, length) Read some areas of SDRAM from the board Parameters • x (int) – The x-coordinate of the chip where the memory is to be read from • y (int) – The y-coordinate of the chip where the memory is to be read from • base_address (int) – The address in SDRAM where the region of memory to be read starts • length (int) – The length of the data to be read in bytes Returns An full bytearray of data read in order Return type bytearray Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If one of x, y, p, base_address or length is invalid – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange SpiNNMan Documentation, Release read_neighbour_memory(x, y, cpu, link, base_address, length) Read some areas of memory on a neighbouring chip using a LINK_READ SCP command. If sent to a BMP, this command can be used to communicate with the FPGAs’ debug registers. Parameters • x (int) – The x-coordinate of the chip whose neighbour is to be read from • y (int) – The y-coordinate of the chip whose neighbour is to be read from • cpu (int) – The cpu to use, typically 0 (or if a BMP, the slot number) • link – The link index to send the request to (or if BMP, the FPGA number) :type link: int :param base_address: The address in SDRAM where the region of memory to be read starts :type base_address: int :param length: The length of the data to be read in bytes :type length: int :return: An iterable of chunks of data read in order :rtype: iterable of bytearray :raise spin- nman.exceptions.SpinnmanIOException: If there is an error communicating with the board :raise spinn- man.exceptions.SpinnmanInvalidPacketException: If a packet is received that is not in the valid format :raise spinnman.exceptions.SpinnmanInvalidParameterException: •If one of x, y, p, base_address or length is invalid •If a packet is received that has invalid parameters Raises spinnman.exceptions.SpinnmanUnexpectedResponseCodeException If a response indicates an error during the exchange receive_multicast_message(x, y, timeout=None, connection=None) Receives a multicast message from the board Parameters • x (int) – The x-coordinate of the chip where the message should come from on the board • y (int) – The y-coordinate of the chip where the message should come from on the board • timeout (int) – Amount of time to wait for the message to arrive in seconds before a timeout. If not specified, will wait indefinitely, or until the selected connection is closed • connection (spinnman.connections.abstract_multicast_receiver.AbstractMulticast – A specific connection from which to receive the message. If not specified, an appropriate connection is chosen automatically Returns The received message Return type spinnman.messages.multicast_message.MulticastMessage Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanUnsupportedOperationException – – If there is no connection that supports reception over multicast (or the given connection does not) – If there is no connection that can receive a packet from the selected chip (ignoring routing tables) • spinnman.exceptions.SpinnmanInvalidPacketException – If the message received is not a valid multicast message • spinnman.exceptions.SpinnmanInvalidParameterException – SpiNNMan Documentation, Release – If the timeout value is not valid – If the received packet has an invalid parameter register_listener(callback, recieve_port_no, connection_type, traffic_type, hostname=None) Register a callback for a certain type of traffic Parameters • callback (function(packet)) – Function to be called when a packet is received • recieve_port_no (int) – The port number to listen on • connection_type – The type of the connection • traffic_type – The type of traffic expected on the connection • hostname (str) – The optional hostname to listen on send_eieio_command_message(message, connection=None) Sends a EIEIO command message using one of the connections. Parameters • message (EIEIOCommandMessage) – The message to send • connection (spinnman.connections.abstract_connection.AbstractConnection) – An optional connection to use Returns None send_multicast_message(x, y, multicast_message, connection=None) Sends a multicast message to the board Parameters • x (int) – The x-coordinate of the chip where the message should first arrive on the board • y (int) – The y-coordinate of the chip where the message should first arrive on the board • multicast_message (spinnman.messages.multicast_message.MulticastMessage) – A multicast message to send • connection (spinnman.connections.abstract_multicast_sender.AbstractMulticastSe – A specific connection over which to send the message. If not specified, an appropriate connection is chosen automatically Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanUnsupportedOperationException – – If there is no connection that supports sending over multicast (or the given connection does not) – If there is no connection that can make the packet arrive at the selected chip (ignoring routing tables) send_scp_message(message, retry_codes=(<SCPResult.RC_P2P_TIMEOUT: 142>, <SCPRe- sult.RC_TIMEOUT: 134>, <SCPResult.RC_LEN: 129>), n_retries=10, time- out=1, connection=None) Sends an SCP message, and gets a response SpiNNMan Documentation, Release Parameters • message (spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest) – The message to send • retry_codes (iterable of spinnman.messages.scp.scp_result.SCPResult) – The response codes which will result in a retry if received as a response • n_retries (int) – The number of times to retry when a retry code is received • timeout (int) – The timeout to use when receiving a response • connection (spinnman.connections.abstract_connection.AbstractConnection) – The connection to use Returns The received response, or the callback if get_callback is True Return type spinnman.messages.scp.abstract_scp_response.AbstractSCPResponse Raises • spinnman.exceptions.SpinnmanTimeoutException – If there is a timeout before a mes- sage is received • spinnman.exceptions.SpinnmanInvalidParameterException – If one of the fields of the received message is invalid • spinnman.exceptions.SpinnmanInvalidPacketException – – If the message is not a recognized packet type – If a packet is received that is not a valid response • spinnman.exceptions.SpinnmanUnsupportedOperationException – If no connection can send the type of message given • spinnman.exceptions.SpinnmanIOException – If there is an error sending the message or receiving the response • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If the response is not one of the expected codes send_sdp_message(message, connection=None) Sends a EIEIO command message using one of the connections. Parameters • message (SDPMessage) – The message to send • connection (spinnman.connections.abstract_connection.AbstractConnection) – An optional connection to use Returns None send_signal(app_id, signal) Send a signal to an application Parameters • app_id (int) – The id of the application to send to • signal (spinnman.messages.scp.scp_signal.SCPSignal :py:class:‘spinnman.messages.scp.scp_signal.SCPSignal’) – The signal to send Returns Nothing is returned Return type None SpiNNMan Documentation, Release Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If signal is not a valid signal – If app_id is not a valid application id – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange set_ip_tag(ip_tag) Set up an ip tag Parameters ip_tag (spinn_machine.tags.iptag.IPTag) – The tag to set up; note board_address can be None, in which case, the tag will be assigned to all boards Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If the ip tag fields are incorrect – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange set_leds(x, y, cpu, led_states) Set LED states. :param x: The x-coordinate of the chip on which to set the LEDs :type x: int :param y: The x-coordinate of the chip on which to set the LEDs :type y: int :param cpu: The CPU of the chip on which to set the LEDs :type cpu: int :param led_states: A dictionary mapping LED index to state with 0 being off, 1 on and 2 inverted. Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format SpiNNMan Documentation, Release • spinnman.exceptions.SpinnmanInvalidParameterException – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange set_reverse_ip_tag(reverse_ip_tag) Set up a reverse ip tag Parameters reverse_ip_tag (spinn_machine.tags.reverse_ip_tag.ReverseIPTag) – The reverse tag to set up; note board_address can be None, in which case, the tag will be assigned to all boards Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If the reverse ip tag fields are incorrect – If a packet is received that has invalid parameters – If the UDP port is one that is already used by spiNNaker for system functions • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange set_router_diagnostic_filter(x, y, position, diagnostic_filter) Sets a router diagnostic filter in a router Parameters • x (int) – the x address of the router in which this filter is being set • y (int) – the y address of the router in which this filter is being set • position (int) – the position in the list of filters where this filter is to be added • diagnostic_filter (spinnman.model.diagnostic_filter.DiagnosticFilter) – the diagnostic filter being set in the placed, between 0 and 15 (note that positions 0 to 11 are used by the default filters, and setting these positions will result in a warning). Returns None Raises • spinnman.exceptions.SpinnmanIOException – – If there is an error communicating with the board – If there is an error reading the data • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If x, y does not lead to a valid chip SpiNNMan Documentation, Release – If position is less than 0 or more than 15 • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange stop_application(app_id) Sends a stop request for an app_id Parameters app_id (int) – The id of the application to send to Raises • spinnman.exceptions.SpinnmanIOException – If there is an error communicating with the board • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If app_id is not a valid application id – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange write_memory(x, y, base_address, data, n_bytes=None) Write to the SDRAM on the board Parameters • x (int) – The x-coordinate of the chip where the memory is to be written to • y (int) – The y-coordinate of the chip where the memory is to be written to • base_address (int) – The address in SDRAM where the region of memory is to be written • data (spinnman.data.abstract_data_reader.AbstractDataReader or bytearray or int) – The data to write. Should be one of the following: * An instance of AbstractDataReader * A bytearray * A single integer - will be written using little-endian byte ordering • n_bytes (int) – The amount of data to be written in bytes. If not specified: * If data is an AbstractDataReader, an error is raised * If data is a bytearray, the length of the bytearray will be used * If data is an int, 4 will be used Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – – If there is an error communicating with the board – If there is an error reading the data • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If x, y does not lead to a valid chip – If a packet is received that has invalid parameters SpiNNMan Documentation, Release – If base_address is not a positive integer – If data is an AbstractDataReader but n_bytes is not specified – If data is an int and n_bytes is more than 4 – If n_bytes is less than 0 • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange write_memory_flood(base_address, data, n_bytes=None) Write to the SDRAM of all chips. Parameters • base_address (int) – The address in SDRAM where the region of memory is to be written • data (spinnman.data.abstract_data_reader.AbstractDataReader or bytearray or int) – The data that is to be written. Should be one of the following: * An instance of AbstractDataReader * A bytearray * A single integer • n_bytes (int) – The amount of data to be written in bytes. If not specified: * If data is an AbstractDataReader, an error is raised * If data is a bytearray, the length of the bytearray will be used * If data is an int, 4 will be used * If n_bytes is less than 0 Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – – If there is an error communicating with the board – If there is an error reading the executable • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If one of the specified chips is not valid – If app_id is an invalid application id – If a packet is received that has invalid parameters • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange write_neighbour_memory(x, y, cpu, link, base_address, data, n_bytes=None) Write to the memory of a neighbouring chip using a LINK_READ SCP command. If sent to a BMP, this command can be used to communicate with the FPGAs’ debug registers. Parameters • x (int) – The x-coordinate of the chip whose neighbour is to be written to • y (int) – The y-coordinate of the chip whose neighbour is to be written to • cpu (int) – The cpu to use, typically 0 (or if a BMP, the slot number) • link – The link index to send the request to (or if BMP, the FPGA number) :type link: int :param base_address: The address in SDRAM where the region of memory is to be written :type base_address: int :param data: The data to write. Should be one of the following: SpiNNMan Documentation, Release •An instance of AbstractDataReader •A bytearray •A single integer - will be written using little-endian byte ordering Parameters n_bytes (int) – The amount of data to be written in bytes. If not specified: * If data is an AbstractDataReader, an error is raised * If data is a bytearray, the length of the bytearray will be used * If data is an int, 4 will be used Returns Nothing is returned Return type None Raises • spinnman.exceptions.SpinnmanIOException – – If there is an error communicating with the board – If there is an error reading the data • spinnman.exceptions.SpinnmanInvalidPacketException – If a packet is received that is not in the valid format • spinnman.exceptions.SpinnmanInvalidParameterException – – If x, y does not lead to a valid chip – If a packet is received that has invalid parameters – If base_address is not a positive integer – If data is an AbstractDataReader but n_bytes is not specified – If data is an int and n_bytes is more than 4 – If n_bytes is less than 0 • spinnman.exceptions.SpinnmanUnexpectedResponseCodeException – If a response indicates an error during the exchange SpiNNMan Documentation, Release 148 Chapter 3. Contents CHAPTER 4 Indices and tables • genindex • modindex • search 149 SpiNNMan Documentation, Release 150 Chapter 4. Indices and tables Python Module Index s spinnman.connections.abstract_classes.udp_senders. spinnman, 3 12 spinnman.connections.abstract_classes.udp_senders. spinnman.connections.abstract_classes.abstract_callbackable_connection, 13 13 spinnman.connections.listeners.port_listener, spinnman.connections.abstract_classes.abstract_connection, 14 24 spinnman.connections.listeners.queuers.abstract_po spinnman.connections.abstract_classes.abstract_eieio_receiver, 14 22 spinnman.connections.listeners.queuers.callback_wo spinnman.connections.abstract_classes.abstract_eieio_sender, 14 22 spinnman.connections.listeners.queuers.eieio_comma spinnman.connections.abstract_classes.abstract_multicast_receiver, 15 22 spinnman.connections.listeners.queuers.eieio_data_ spinnman.connections.abstract_classes.abstract_multicast_sender, 16 23 spinnman.connections.listeners.queuers.scp_port_qu spinnman.connections.abstract_classes.abstract_scp_receiver, 16 23 spinnman.connections.listeners.queuers.sdp_port_qu spinnman.connections.abstract_classes.abstract_scp_sender, 17 23 spinnman.connections.listeners.queuers.udp_port_qu spinnman.connections.abstract_classes.abstract_sdp_receiver, 18 23 spinnman.connections.listeners.scp_listener, spinnman.connections.abstract_classes.abstract_sdp_sender, 19 24 spinnman.connections.udp_packet_connections.eieio_ spinnman.connections.abstract_classes.abstract_spinnaker_boot_receiver, 19 26 spinnman.connections.udp_packet_connections.iptag_ spinnman.connections.abstract_classes.abstract_spinnaker_boot_sender, 20 26 spinnman.connections.udp_packet_connections.revers spinnman.connections.abstract_classes.abstract_udp_connection, 20 28 spinnman.connections.udp_packet_connections.stripp spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_command_receiver, 7 29 spinnman.connections.udp_packet_connections.udp_bo spinnman.connections.abstract_classes.udp_receivers.abstract_udp_eieio_data_receiver, 8 30 spinnman.connections.udp_packet_connections.udp_sp spinnman.connections.abstract_classes.udp_receivers.abstract_udp_scp_receiver, 9 31 spinnman.constants, 123 spinnman.connections.abstract_classes.udp_receivers.abstract_udp_sdp_receiver, 10 spinnman.data.abstract_byte_reader, 32 spinnman.data.abstract_byte_writer, 34 spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_command_sender, 11 spinnman.data.abstract_data_reader, 35 spinnman.data.big_endian_byte_array_byte_reader, spinnman.connections.abstract_classes.udp_senders.abstract_udp_eieio_sender, 11 36 SpiNNMan Documentation, Release spinnman.data.big_endian_byte_array_byte_writer, spinnman.messages.eieio.data_messages.eieio_16bit. 37 56 spinnman.data.file_data_reader, 37 spinnman.messages.eieio.data_messages.eieio_16bit. 56 spinnman.data.little_endian_byte_array_byte_reader, 42 spinnman.messages.eieio.data_messages.eieio_16bit_ 57 spinnman.data.little_endian_byte_array_byte_writer, 43 spinnman.messages.eieio.data_messages.eieio_16bit_ 57 spinnman.data.little_endian_data_reader_byte_reader, 43 spinnman.messages.eieio.data_messages.eieio_16bit_ spinnman.exceptions, 124 58 spinnman.messages.eieio.abstract_messages.abstract_eieio_message, spinnman.messages.eieio.data_messages.eieio_16bit_ 45 58 spinnman.messages.eieio.command_messages.database_confirmation, spinnman.messages.eieio.data_messages.eieio_16bit_ 45 59 spinnman.messages.eieio.command_messages.eieio_command_header, spinnman.messages.eieio.data_messages.eieio_16bit_ 45 59 spinnman.messages.eieio.command_messages.eieio_command_message, spinnman.messages.eieio.data_messages.eieio_16bit_ 46 60 spinnman.messages.eieio.command_messages.event_stop_request, spinnman.messages.eieio.data_messages.eieio_16bit_ 48 60 spinnman.messages.eieio.command_messages.host_data_read, spinnman.messages.eieio.data_messages.eieio_16bit_ 48 61 spinnman.messages.eieio.command_messages.host_send_sequenced_data, spinnman.messages.eieio.data_messages.eieio_32bit. 49 62 spinnman.messages.eieio.command_messages.padding_request, spinnman.messages.eieio.data_messages.eieio_32bit. 49 62 spinnman.messages.eieio.command_messages.spinnaker_request_buffers, spinnman.messages.eieio.data_messages.eieio_32bit. 50 63 spinnman.messages.eieio.command_messages.spinnaker_request_read_data, spinnman.messages.eieio.data_messages.eieio_32bit. 50 63 spinnman.messages.eieio.command_messages.start_requests, spinnman.messages.eieio.data_messages.eieio_32bit. 51 64 spinnman.messages.eieio.command_messages.stop_requests, spinnman.messages.eieio.data_messages.eieio_32bit. 51 64 spinnman.messages.eieio.create_eieio_command, spinnman.messages.eieio.data_messages.eieio_32bit. 77 65 spinnman.messages.eieio.create_eieio_data, spinnman.messages.eieio.data_messages.eieio_32bit. 77 65 spinnman.messages.eieio.data_messages.abstract_eieio_data_element, spinnman.messages.eieio.data_messages.eieio_32bit. 71 66 spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_data_message, spinnman.messages.eieio.data_messages.eieio_32bit_ 52 67 spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_lower_key_prefix_data_messag spinnman.messages.eieio.data_messages.eieio_32bit_ 52 67 spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_data_message, spinnman.messages.eieio.data_messages.eieio_32bit_ 53 68 spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_lower_key_pre spinnman.messages.eieio.data_messages.eieio_32bit_ 53 68 spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_payload_prefix_upper_key_pre spinnman.messages.eieio.data_messages.eieio_32bit_ 54 69 spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_timed_payload_prefix_data_me spinnman.messages.eieio.data_messages.eieio_32bit_ 54 69 spinnman.messages.eieio.data_messages.eieio_16bit.eieio_16bit_timed_payload_prefix_lower_k spinnman.messages.eieio.data_messages.eieio_32bit_ 55 70 SpiNNMan Documentation, Release spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_ti spinnman.messages.scp.impl.scp_read_link_request, 70 92 spinnman.messages.eieio.data_messages.eieio_32bit_with_payload.eieio_32bit_with_payload_up spinnman.messages.scp.impl.scp_read_link_response, 71 93 spinnman.messages.eieio.data_messages.eieio_data_header, spinnman.messages.scp.impl.scp_read_memory_request, 72 93 spinnman.messages.eieio.data_messages.eieio_data_message, spinnman.messages.scp.impl.scp_read_memory_respons 74 94 spinnman.messages.eieio.data_messages.eieio_key_data_element, spinnman.messages.scp.impl.scp_read_memory_words_r 75 94 spinnman.messages.eieio.data_messages.eieio_key_payload_data_element, spinnman.messages.scp.impl.scp_read_memory_words_r 75 95 spinnman.messages.eieio.data_messages.eieio_with_payload_data_message, spinnman.messages.scp.impl.scp_reverse_iptag_set_r 76 96 spinnman.messages.eieio.data_messages.eieio_without_payload_data_message, spinnman.messages.scp.impl.scp_router_alloc_reques 76 97 spinnman.messages.eieio.eieio_prefix, spinnman.messages.scp.impl.scp_router_alloc_respon 77 98 spinnman.messages.eieio.eieio_type, 78 spinnman.messages.scp.impl.scp_router_clear_reques spinnman.messages.multicast_message, 112 98 spinnman.messages.scp.abstract_messages.abstract_scp_request, spinnman.messages.scp.impl.scp_router_init_request, 78 99 spinnman.messages.scp.abstract_messages.abstract_scp_response, spinnman.messages.scp.impl.scp_send_signal_request, 80 100 spinnman.messages.scp.impl.scp_app_stop_request, spinnman.messages.scp.impl.scp_version_request, 80 100 spinnman.messages.scp.impl.scp_application_run_request, spinnman.messages.scp.impl.scp_version_response, 81 101 spinnman.messages.scp.impl.scp_check_ok_response, spinnman.messages.scp.impl.scp_write_link_request, 82 101 spinnman.messages.scp.impl.scp_count_state_request, spinnman.messages.scp.impl.scp_write_memory_reques 83 102 spinnman.messages.scp.impl.scp_count_state_response, spinnman.messages.scp.impl.scp_write_memory_words_ 83 103 spinnman.messages.scp.scp_command, 104 spinnman.messages.scp.impl.scp_flood_fill_data_request, 84 spinnman.messages.scp.scp_iptag_command, 105 spinnman.messages.scp.impl.scp_flood_fill_end_request, 85 spinnman.messages.scp.scp_request_header, 105 spinnman.messages.scp.impl.scp_flood_fill_start_request, 85 spinnman.messages.scp.scp_response_header, 106 spinnman.messages.scp.impl.scp_iptag_clear_request, 86 spinnman.messages.scp.scp_result, 107 spinnman.messages.scp.scp_signal, 107 spinnman.messages.scp.impl.scp_iptag_get_request, 87 spinnman.messages.sdp.sdp_flag, 108 spinnman.messages.sdp.sdp_header, 108 spinnman.messages.scp.impl.scp_iptag_get_response, 88 spinnman.messages.sdp.sdp_message, 110 spinnman.messages.scp.impl.scp_iptag_info_request, spinnman.messages.spinnaker_boot.spinnaker_boot_me 89 110 spinnman.messages.scp.impl.scp_iptag_info_response, spinnman.messages.spinnaker_boot.spinnaker_boot_me 89 111 spinnman.messages.scp.impl.scp_iptag_set_request, spinnman.messages.spinnaker_boot.spinnaker_boot_op 90 111 spinnman.messages.scp.impl.scp_led_request, spinnman.messages.udp_utils.udp_utils, 91 112 SpiNNMan Documentation, Release spinnman.model.chip_info, 112 spinnman.model.core_subset, 113 spinnman.model.core_subsets, 114 spinnman.model.cpu_info, 115 spinnman.model.cpu_state, 116 spinnman.model.diagnostic_filter, 116 spinnman.model.diagnostic_filter_default_routing_status, 118 spinnman.model.diagnostic_filter_destination, 118 spinnman.model.diagnostic_filter_emergency_routing_status, 118 spinnman.model.diagnostic_filter_packet_type, 119 spinnman.model.diagnostic_filter_payload_status, 119 spinnman.model.diagnostic_filter_source, 119 spinnman.model.io_buffer, 119 spinnman.model.machine_dimensions, 120 spinnman.model.mailbox_command, 120 spinnman.model.router_diagnostics, 120 spinnman.model.run_time_error, 121 spinnman.model.version_info, 122 spinnman.reports, 125 spinnman.transceiver, 125
image
cran
R
Package ‘image.Otsu’ October 13, 2022 Type Package Title Otsu's Image Segmentation Method Description An implementation of the Otsu's Image Segmentation Method described in the pa- per: ``A C++ Implementation of Otsu's Image Segmentation Method''. The algorithm is ex- plained at <doi:10.5201/ipol.2016.158>. Maintainer <NAME> <<EMAIL>> License MIT + file LICENSE Version 0.1 URL https://github.com/bnosac/image Imports Rcpp (>= 0.12.8) LinkingTo Rcpp Suggests magick RoxygenNote 7.1.0 NeedsCompilation yes Author <NAME> [aut, cre, cph] (R wrapper), BNOSAC [cph] (R wrapper), <NAME> [ctb, cph] (Otsu C++ code), <NAME> [ctb, cph] (Otsu C++ code) Repository CRAN Date/Publication 2020-07-27 12:30:10 UTC R topics documented: image_ots... 2 image_otsu Image segmentation using Otsu Description An implementation of the Otsu’s image segmentation algorithm explained at https://doi.org/ 10.5201/ipol.2016.158. Usage image_otsu(x, threshold = 0) Arguments x an object of class magick-image or a greyscale matrix of image pixel values in the 0-255 range threshold integer value in range of 0-255. To override the threshold. Defaults to 0 indicat- ing not to override the threshold. Value In case x is a matrix, a list with elements x (containing the thresholded image) and threshold is returned In case x is a magick-image, the thresholded magick-image is returned alongside which also now has an attribute called threshold with the exact Otsu threshold value Examples library(magick) path <- system.file(package="image.Otsu", "extdata", "coins.jpeg") x <- image_read(path) x img <- image_otsu(x) img attr(img, "threshold") img <- image_otsu(x, threshold = 180) img img <- image_data(x, channels = "gray") img <- as.integer(img, transpose = TRUE) img <- img[, , 1] img <- image_otsu(img) str(img)
github.com/GoogleCloudPlatform/golang-samples/run/grpc-server-streaming
go
Go
README [¶](#section-readme) --- ### Cloud Run gRPC Server Streaming sample application For a general introduction to gRPC on Go, see the [official gRPC quickstart](https://grpc.io/docs/quickstart/go/). This sample presents: * `./server`: a gRPC server application with an RPC that streams the current time in the response (written in Go) * `./client`: a small program to query the server and show the response messages (written in Go) #### Deploy gRPC server to Cloud Run Use the following button to deploy the application to Cloud Run on your GCP project: [![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run?dir=run/grpc-server-streaming) Once deployed successfully, note the domain name (hostname) of the service. #### Make a request using the client 1. Ensure Go 1.13 (or higher) is installed on your machine. 2. Clone this repository. 3. Run the client with the hostname of the deployed service: ``` cd grpc-server-streaming ``` ``` go run ./client -duration 5 -server <HOSTNAME>:443 ``` 4. Observe the output, it should be receiving and printing a message every second as the server sends them. ``` rpc established to timeserver, starting to stream received message: current_timestamp: 2020-01-15T01:12:29Z received message: current_timestamp: 2020-01-15T01:12:30Z received message: current_timestamp: 2020-01-15T01:12:31Z received message: current_timestamp: 2020-01-15T01:12:32Z received message: current_timestamp: 2020-01-15T01:12:33Z end of stream ``` #### Cleanup Remove the `grpc-server-streaming` Service you deployed from Cloud Run using the [Cloud Console](https://console.cloud.google.com/run). None
@syncfusion/ej2-lists
npm
JavaScript
[ej2-lists](#ej2-lists) === The listview control allows you to select an item or multiple items from a list-like interface and represents the data in interactive hierarchical structure across different layouts or views. Lists are used for displaying data, data navigation, and data entry. > This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this control, is subject to the terms and conditions of Syncfusion's [EULA](https://www.syncfusion.com/eula/es/?utm_source=npm&utm_campaign=listview). To acquire a license, you can purchase one at [https://www.syncfusion.com/sales/products](https://www.syncfusion.com/sales/products/?utm_source=npm&utm_campaign=listview) or start a free 30-day trial [here](https://www.syncfusion.com/account/manage-trials/start-trials/?utm_source=npm&utm_campaign=listview). > A free [community license](https://www.syncfusion.com/products/communitylicense/?utm_source=npm&utm_campaign=listview) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers. [Setup](#setup) --- To install `Lists` and its dependent packages, use the following command. ``` npm install @syncfusion/ej2-lists ``` [Resources](#resources) --- * [Getting Started](https://ej2.syncfusion.com/documentation/listview/getting-started/?utm_source=npm&utm_campaign=listview) * [View Online Demos](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/default.html) * [Product Page](https://www.syncfusion.com/javascript-ui-controls/listview/?utm_source=npm&utm_campaign=listview) [Supported Frameworks](#supported-frameworks) --- `Lists` control is also offered in following list of frameworks. 1. [Angular](https://github.com/syncfusion/ej2-angular-ui-components/tree/master/components/lists/?utm_source=npm&utm_campaign=listview) 2. [React](https://github.com/syncfusion/ej2-react-ui-components/tree/master/components/lists/?utm_source=npm&utm_campaign=listview) 3. [VueJS](https://github.com/syncfusion/ej2-vue-ui-components/tree/master/components/lists/?utm_source=npm&utm_campaign=listview) 4. [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls/listview/?utm_source=npm&utm_campaign=listview) 5. [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls/listview/?utm_source=npm&utm_campaign=listview) 6. [JavaScript (ES5)](https://www.syncfusion.com/javascript-ui-controls/listview/?utm_source=npm&utm_campaign=listview) [Showcase samples](#showcase-samples) --- * Webmail ([Live Demo](https://ej2.syncfusion.com/showcase/typescript/webmail/?utm_source=npm&utm_campaign=listview)) * Call History ([Live Demo](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/call-history.html)) [Key Features](#key-features) --- * [**Data binding**](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/default.html) - Supports data binding to display the list of items from the local or server-side data source. * [**Grouping**](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/default.html) - Provides support to group the logically related items under a category. * [**Nested list**](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/nested-list.html) - Displays a set of nested list items in different layout. * [**Virtualization**](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/virtualization.html) - Allows you to load only viewable list items in a view port which will increase ListView performance on loading large number of data. * [**Check list**](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/checklist.html) - Displays list item with checkbox which allows you to select single or select multiple items. * [**Customizing templates**](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/group-template.html) - Allows you to customize the list item, header, and category group header. * [**Accessibility**](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/default.html) - Provides built-in accessibility support that helps to access all the ListView control features through the keyboard, on-screen readers, or other assistive technology devices. [Support](#support) --- Product support is available for through following mediums. * Creating incident in Syncfusion [Direct-Trac](https://www.syncfusion.com/support/directtrac/incidents/?utm_source=npm&utm_campaign=listview) support system or [Community forum](https://www.syncfusion.com/forums/essential-js2/?utm_source=npm&utm_campaign=listview). * New [GitHub issue](https://github.com/syncfusion/ej2-javascript-ui-controls/issues/new/?utm_source=npm&utm_campaign=listview). * Ask your query in [Stack Overflow](https://stackoverflow.com/?utm_source=npm&utm_campaign=listview/?utm_source=npm&utm_campaign=listview) with tag `syncfusion` and `ej2`. [License](#license) --- Check the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license/?utm_source=npm&utm_campaign=listview). [Changelog](#changelog) --- Check the changelog [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/controls/lists/CHANGELOG.md/?utm_source=npm&utm_campaign=listview) © Copyright 2023 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution. Readme --- ### Keywords * ej2 * Syncfusion * web components * virtualization * group list * check list * listview with checkbox * listview template * material list * ui listview * remote listview * nested view * data list * infinite list * sort * checkbox * todo * list widget * list component * mobile list * list gestures * es6 list * dynamic list
receipt_verifier
hex
Erlang
ReceiptVerifier === Verify iTunes receipt with the Apple Store Example --- ``` iex> ReceiptVerifier.verify(base64_encoded_receipt_data) {:ok, %ReceiptVerifier.ResponseData{app_receipt: %ReceiptVerifier.AppReceipt{adam_id: 0, app_item_id: 0, application_version: "1241", bundle_id: "com.sumiapp.GridDiary", download_id: 0, in_app: [%ReceiptVerifier.IAPReceipt{expires_date: nil, is_trial_period: false, original_purchase_date: %DateTime{calendar: Calendar.ISO, day: 17, hour: 6, microsecond: {491000, 6}, minute: 52, month: 1, second: 13, std_offset: 0, time_zone: "Etc/UTC", utc_offset: 0, year: 1970, zone_abbr: "UTC"}, original_transaction_id: "1000000118990828", product_id: "com.sumiapp.GridDiary.pro", purchase_date: %DateTime{calendar: Calendar.ISO, day: 17, hour: 7, microsecond: {546000, 6}, minute: 33, month: 1, second: 48, std_offset: 0, time_zone: "Etc/UTC", utc_offset: 0, year: 1970, zone_abbr: "UTC"}, quantity: 1, transaction_id: "1000000118990828", web_order_line_item_id: nil}, %ReceiptVerifier.IAPReceipt{expires_date: nil, is_trial_period: false, original_purchase_date: %DateTime{calendar: Calendar.ISO, day: 17, hour: 7, microsecond: {546000, 6}, minute: 33, month: 1, second: 48, std_offset: 0, time_zone: "Etc/UTC", utc_offset: 0, year: 1970, zone_abbr: "UTC"}, original_transaction_id: "1000000122102348", product_id: "com.sumiapp.griddiary.test", purchase_date: %DateTime{calendar: Calendar.ISO, day: 17, hour: 7, microsecond: {546000, 6}, minute: 33, month: 1, second: 48, std_offset: 0, time_zone: "Etc/UTC", utc_offset: 0, year: 1970, zone_abbr: "UTC"}, quantity: 1, transaction_id: "1000000122102348", web_order_line_item_id: nil}], original_application_version: "1.0", original_purchase_date: %DateTime{calendar: Calendar.ISO, day: 16, hour: 22, microsecond: {400000, 6}, minute: 2, month: 1, second: 20, std_offset: 0, time_zone: "Etc/UTC", utc_offset: 0, year: 1970, zone_abbr: "UTC"}, receipt_creation_date: %DateTime{calendar: Calendar.ISO, day: 17, hour: 7, microsecond: {546000, 6}, minute: 33, month: 1, second: 48, std_offset: 0, time_zone: "Etc/UTC", utc_offset: 0, year: 1970, zone_abbr: "UTC"}, receipt_type: "ProductionSandbox", request_date: %DateTime{calendar: Calendar.ISO, day: 18, hour: 2, microsecond: {590831, 6}, minute: 47, month: 1, second: 30, std_offset: 0, time_zone: "Etc/UTC", utc_offset: 0, year: 1970, zone_abbr: "UTC"}, version_external_identifier: 0}, base64_latest_app_receipt: nil, latest_iap_receipts: []}} ``` [Link to this section](#summary) Summary === [Types](#types) --- [options()](#t:options/0) * `env` - *(Optional)* The environment, default to `:auto` [Functions](#functions) --- [verify(receipt, opts \\ [])](#verify/2) Verify Base64-encoded receipt with the Apple Store [Link to this section](#types) Types === [Link to this section](#functions) Functions === ReceiptVerifier.AppReceipt === The struct represent an App Receipt [Link to this section](#summary) Summary === [Types](#types) --- [t()](#t:t/0) [Link to this section](#types) Types === ReceiptVerifier.Error === The error sturct The `code` is status code returns from Apple's Server, The `message` is the detailed description of the error Example --- ``` %ReceiptVerifier.Error{code: 21002, message: "The data in the receipt-data property was malformed or missing."} ``` [Link to this section](#summary) Summary === [Types](#types) --- [t()](#t:t/0) [Link to this section](#types) Types === ReceiptVerifier.IAPReceipt === The struct represent an In-App Purchase Receipt [Link to this section](#summary) Summary === [Types](#types) --- [t()](#t:t/0) [Link to this section](#types) Types === ReceiptVerifier.JSON === The module act as an adapter to JSON library By default, it use [`Jason`](https://hexdocs.pm/jason/1.1.2/Jason.html) to encode JSON, if you want to use `Poison`, you can configure `:receipt_verifier` application with: ``` config :receipt_verifier, :json_library, Poison ``` ReceiptVerifier.PendingRenewalReceipt === The struct to represent the Pending Renewal Receipt A pending renewal may refer to a renewal that is scheduled in the future or a renewal that failed in the past for some reason. [Link to this section](#summary) Summary === [Types](#types) --- [t()](#t:t/0) [Link to this section](#types) Types === ReceiptVerifier.ResponseData === The struct represent the response data from App Store [Link to this section](#summary) Summary === [Types](#types) --- [t()](#t:t/0) [Link to this section](#types) Types ===
curl
rust
Rust
Crate curl === Rust bindings to the libcurl C library This crate contains bindings for an HTTP/HTTPS client which is powered by libcurl, the same library behind the `curl` command line tool. The API currently closely matches that of libcurl itself, except that a Rustic layer of safety is applied on top. The “Easy” API --- The easiest way to send a request is to use the `Easy` api which corresponds to `CURL` in libcurl. This handle supports a wide variety of options and can be used to make a single blocking request in a thread. Callbacks can be specified to deal with data as it arrives and a handle can be reused to cache connections and such. ``` use std::io::{stdout, Write}; use curl::easy::Easy; // Write the contents of rust-lang.org to stdout let mut easy = Easy::new(); easy.url("https://www.rust-lang.org/").unwrap(); easy.write_function(|data| { stdout().write_all(data).unwrap(); Ok(data.len()) }).unwrap(); easy.perform().unwrap(); ``` What about multiple concurrent HTTP requests? --- One option you have currently is to send multiple requests in multiple threads, but otherwise libcurl has a “multi” interface for doing this operation. Initial bindings of this interface can be found in the `multi` module, but feedback is welcome! Where does libcurl come from? --- This crate links to the `curl-sys` crate which is in turn responsible for acquiring and linking to the libcurl library. Currently this crate will build libcurl from source if one is not already detected on the system. There is a large number of releases for libcurl, all with different sets of capabilities. Robust programs may wish to inspect `Version::get()` to test what features are implemented in the linked build of libcurl at runtime. Initialization --- The underlying libcurl library must be initialized before use and has certain requirements on how this is done. Check the documentation for `init` for more details. Modules --- easyBindings to the “easy” libcurl API. multiMulti - initiating multiple requests simultaneously Structs --- ErrorAn error returned from various “easy” operations. FormErrorAn error from “form add” operations. MultiErrorAn error from “multi” operations. ProtocolsAn iterator over the list of protocols a version supports. ShareErrorAn error returned from “share” operations. VersionVersion information about libcurl and the capabilities that it supports. Functions --- initInitializes the underlying libcurl library. Crate curl === Rust bindings to the libcurl C library This crate contains bindings for an HTTP/HTTPS client which is powered by libcurl, the same library behind the `curl` command line tool. The API currently closely matches that of libcurl itself, except that a Rustic layer of safety is applied on top. The “Easy” API --- The easiest way to send a request is to use the `Easy` api which corresponds to `CURL` in libcurl. This handle supports a wide variety of options and can be used to make a single blocking request in a thread. Callbacks can be specified to deal with data as it arrives and a handle can be reused to cache connections and such. ``` use std::io::{stdout, Write}; use curl::easy::Easy; // Write the contents of rust-lang.org to stdout let mut easy = Easy::new(); easy.url("https://www.rust-lang.org/").unwrap(); easy.write_function(|data| { stdout().write_all(data).unwrap(); Ok(data.len()) }).unwrap(); easy.perform().unwrap(); ``` What about multiple concurrent HTTP requests? --- One option you have currently is to send multiple requests in multiple threads, but otherwise libcurl has a “multi” interface for doing this operation. Initial bindings of this interface can be found in the `multi` module, but feedback is welcome! Where does libcurl come from? --- This crate links to the `curl-sys` crate which is in turn responsible for acquiring and linking to the libcurl library. Currently this crate will build libcurl from source if one is not already detected on the system. There is a large number of releases for libcurl, all with different sets of capabilities. Robust programs may wish to inspect `Version::get()` to test what features are implemented in the linked build of libcurl at runtime. Initialization --- The underlying libcurl library must be initialized before use and has certain requirements on how this is done. Check the documentation for `init` for more details. Modules --- easyBindings to the “easy” libcurl API. multiMulti - initiating multiple requests simultaneously Structs --- ErrorAn error returned from various “easy” operations. FormErrorAn error from “form add” operations. MultiErrorAn error from “multi” operations. ProtocolsAn iterator over the list of protocols a version supports. ShareErrorAn error returned from “share” operations. VersionVersion information about libcurl and the capabilities that it supports. Functions --- initInitializes the underlying libcurl library. Function curl::init === ``` pub fn init() ``` Initializes the underlying libcurl library. The underlying libcurl library must be initialized before use, and must be done so on the main thread before any other threads are created by the program. This crate will do this for you automatically in the following scenarios: * Creating a new `Easy` or `Multi` handle * At program startup on Windows, macOS, Linux, Android, or FreeBSD systems This should be sufficient for most applications and scenarios, but in any other case, it is strongly recommended that you call this function manually as soon as your program starts. Calling this function more than once is harmless and has no effect. Module curl::easy === Bindings to the “easy” libcurl API. This module contains some simple types like `Easy` and `List` which are just wrappers around the corresponding libcurl types. There’s also a few enums scattered about for various options here and there. Most simple usage of libcurl will likely use the `Easy` structure here, and you can find more docs about its usage on that struct. Structs --- AuthStructure which stores possible authentication methods to get passed to `http_auth` and `proxy_auth`. EasyRaw bindings to a libcurl “easy session”. Easy2Raw bindings to a libcurl “easy session”. FormMultipart/formdata for an HTTP POST request. IterAn iterator over `List` ListA linked list of a strings PartOne part in a multipart upload, added to a `Form`. SslOptStructure which stores possible ssl options to pass to `ssl_options`. TransferA scoped transfer of information which borrows an `Easy` and allows referencing stack-local data of the lifetime `'data`. Enums --- HttpVersionPossible values to pass to the `http_version` method. InfoTypePossible data chunks that can be witnessed as part of the `debug_function` callback. IpResolvePossible values to pass to the `ip_resolve` method. NetRcOptions for `.netrc` parsing. ProxyTypePossible proxy types that libcurl currently understands. ReadErrorPossible error codes that can be returned from the `read_function` callback. SeekResultPossible return values from the `seek_function` callback. SslVersionPossible values to pass to the `ssl_version` and `ssl_min_max_version` method. TimeConditionPossible conditions for the `time_condition` method. WriteErrorPossible error codes that can be returned from the `write_function` callback. Traits --- HandlerA trait for the various callbacks used by libcurl to invoke user code. Module curl::multi === Multi - initiating multiple requests simultaneously Structs --- Easy2HandleWrapper around an easy handle while it’s owned by a multi handle. EasyHandleWrapper around an easy handle while it’s owned by a multi handle. EventsNotification of the events that have happened on a socket. MessageMessage from the `messages` function of a multi handle. MultiA multi handle for initiating multiple connections simultaneously. SocketEventsNotification of events that are requested on a socket. WaitFdFile descriptor to wait on for use with the `wait` method on a multi handle. Type Definitions --- SocketRaw underlying socket type that the multi handles use Struct curl::Error === ``` pub struct Error { /* private fields */ } ``` An error returned from various “easy” operations. This structure wraps a `CURLcode`. Implementations --- source### impl Error source#### pub fn new(code: CURLcode) -> Error Creates a new error from the underlying code returned by libcurl. source#### pub fn set_extra(&mut self, extra: String) Stores some extra information about this error inside this error. This is typically used with `take_error_buf` on the easy handles to couple the extra `CURLOPT_ERRORBUFFER` information with an `Error` being returned. source#### pub fn is_unsupported_protocol(&self) -> bool Returns whether this error corresponds to CURLE_UNSUPPORTED_PROTOCOL. source#### pub fn is_failed_init(&self) -> bool Returns whether this error corresponds to CURLE_FAILED_INIT. source#### pub fn is_url_malformed(&self) -> bool Returns whether this error corresponds to CURLE_URL_MALFORMAT. source#### pub fn is_couldnt_resolve_proxy(&self) -> bool Returns whether this error corresponds to CURLE_COULDNT_RESOLVE_PROXY. source#### pub fn is_couldnt_resolve_host(&self) -> bool Returns whether this error corresponds to CURLE_COULDNT_RESOLVE_HOST. source#### pub fn is_couldnt_connect(&self) -> bool Returns whether this error corresponds to CURLE_COULDNT_CONNECT. source#### pub fn is_remote_access_denied(&self) -> bool Returns whether this error corresponds to CURLE_REMOTE_ACCESS_DENIED. source#### pub fn is_partial_file(&self) -> bool Returns whether this error corresponds to CURLE_PARTIAL_FILE. source#### pub fn is_quote_error(&self) -> bool Returns whether this error corresponds to CURLE_QUOTE_ERROR. source#### pub fn is_http_returned_error(&self) -> bool Returns whether this error corresponds to CURLE_HTTP_RETURNED_ERROR. source#### pub fn is_read_error(&self) -> bool Returns whether this error corresponds to CURLE_READ_ERROR. source#### pub fn is_write_error(&self) -> bool Returns whether this error corresponds to CURLE_WRITE_ERROR. source#### pub fn is_upload_failed(&self) -> bool Returns whether this error corresponds to CURLE_UPLOAD_FAILED. source#### pub fn is_out_of_memory(&self) -> bool Returns whether this error corresponds to CURLE_OUT_OF_MEMORY. source#### pub fn is_operation_timedout(&self) -> bool Returns whether this error corresponds to CURLE_OPERATION_TIMEDOUT. source#### pub fn is_range_error(&self) -> bool Returns whether this error corresponds to CURLE_RANGE_ERROR. source#### pub fn is_http_post_error(&self) -> bool Returns whether this error corresponds to CURLE_HTTP_POST_ERROR. source#### pub fn is_ssl_connect_error(&self) -> bool Returns whether this error corresponds to CURLE_SSL_CONNECT_ERROR. source#### pub fn is_bad_download_resume(&self) -> bool Returns whether this error corresponds to CURLE_BAD_DOWNLOAD_RESUME. source#### pub fn is_file_couldnt_read_file(&self) -> bool Returns whether this error corresponds to CURLE_FILE_COULDNT_READ_FILE. source#### pub fn is_function_not_found(&self) -> bool Returns whether this error corresponds to CURLE_FUNCTION_NOT_FOUND. source#### pub fn is_aborted_by_callback(&self) -> bool Returns whether this error corresponds to CURLE_ABORTED_BY_CALLBACK. source#### pub fn is_bad_function_argument(&self) -> bool Returns whether this error corresponds to CURLE_BAD_FUNCTION_ARGUMENT. source#### pub fn is_interface_failed(&self) -> bool Returns whether this error corresponds to CURLE_INTERFACE_FAILED. source#### pub fn is_too_many_redirects(&self) -> bool Returns whether this error corresponds to CURLE_TOO_MANY_REDIRECTS. source#### pub fn is_unknown_option(&self) -> bool Returns whether this error corresponds to CURLE_UNKNOWN_OPTION. source#### pub fn is_peer_failed_verification(&self) -> bool Returns whether this error corresponds to CURLE_PEER_FAILED_VERIFICATION. source#### pub fn is_got_nothing(&self) -> bool Returns whether this error corresponds to CURLE_GOT_NOTHING. source#### pub fn is_ssl_engine_notfound(&self) -> bool Returns whether this error corresponds to CURLE_SSL_ENGINE_NOTFOUND. source#### pub fn is_ssl_engine_setfailed(&self) -> bool Returns whether this error corresponds to CURLE_SSL_ENGINE_SETFAILED. source#### pub fn is_send_error(&self) -> bool Returns whether this error corresponds to CURLE_SEND_ERROR. source#### pub fn is_recv_error(&self) -> bool Returns whether this error corresponds to CURLE_RECV_ERROR. source#### pub fn is_ssl_certproblem(&self) -> bool Returns whether this error corresponds to CURLE_SSL_CERTPROBLEM. source#### pub fn is_ssl_cipher(&self) -> bool Returns whether this error corresponds to CURLE_SSL_CIPHER. source#### pub fn is_ssl_cacert(&self) -> bool Returns whether this error corresponds to CURLE_SSL_CACERT. source#### pub fn is_bad_content_encoding(&self) -> bool Returns whether this error corresponds to CURLE_BAD_CONTENT_ENCODING. source#### pub fn is_filesize_exceeded(&self) -> bool Returns whether this error corresponds to CURLE_FILESIZE_EXCEEDED. source#### pub fn is_use_ssl_failed(&self) -> bool Returns whether this error corresponds to CURLE_USE_SSL_FAILED. source#### pub fn is_send_fail_rewind(&self) -> bool Returns whether this error corresponds to CURLE_SEND_FAIL_REWIND. source#### pub fn is_ssl_engine_initfailed(&self) -> bool Returns whether this error corresponds to CURLE_SSL_ENGINE_INITFAILED. source#### pub fn is_login_denied(&self) -> bool Returns whether this error corresponds to CURLE_LOGIN_DENIED. source#### pub fn is_conv_failed(&self) -> bool Returns whether this error corresponds to CURLE_CONV_FAILED. source#### pub fn is_conv_required(&self) -> bool Returns whether this error corresponds to CURLE_CONV_REQD. source#### pub fn is_ssl_cacert_badfile(&self) -> bool Returns whether this error corresponds to CURLE_SSL_CACERT_BADFILE. source#### pub fn is_ssl_crl_badfile(&self) -> bool Returns whether this error corresponds to CURLE_SSL_CRL_BADFILE. source#### pub fn is_ssl_shutdown_failed(&self) -> bool Returns whether this error corresponds to CURLE_SSL_SHUTDOWN_FAILED. source#### pub fn is_again(&self) -> bool Returns whether this error corresponds to CURLE_AGAIN. source#### pub fn is_ssl_issuer_error(&self) -> bool Returns whether this error corresponds to CURLE_SSL_ISSUER_ERROR. source#### pub fn is_chunk_failed(&self) -> bool Returns whether this error corresponds to CURLE_CHUNK_FAILED. source#### pub fn is_http2_error(&self) -> bool Returns whether this error corresponds to CURLE_HTTP2. source#### pub fn is_http2_stream_error(&self) -> bool Returns whether this error corresponds to CURLE_HTTP2_STREAM. source#### pub fn code(&self) -> CURLcode Returns the value of the underlying error corresponding to libcurl. source#### pub fn description(&self) -> &str Returns the general description of this error code, using curl’s builtin `strerror`-like functionality. source#### pub fn extra_description(&self) -> Option<&strReturns the extra description of this error, if any is available. Trait Implementations --- source### impl Clone for Error source#### fn clone(&self) -> Error Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for Error source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Display for Error source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Error for Error 1.30.0 · source#### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more source#### fn backtrace(&self) -> Option<&Backtrace🔬 This is a nightly-only experimental API. (`backtrace`)Returns a stack backtrace, if available, of where this error occurred. Read more 1.0.0 · source#### fn description(&self) -> &str 👎 Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎 Deprecated since 1.33.0: replaced by Error::source, which can support downcasting source#### fn provide(&'a self, req: &mut Demand<'a>) 🔬 This is a nightly-only experimental API. (`error_generic_member_access`)Provides type based access to context intended for error reports. Read more source### impl From<Error> for Error source#### fn from(e: Error) -> Error Converts to this type from the input type. source### impl From<NulError> for Error source#### fn from(_: NulError) -> Error Converts to this type from the input type. source### impl PartialEq<Error> for Error source#### fn eq(&self, other: &Error) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more source#### fn ne(&self, other: &Error) -> bool This method tests for `!=`. source### impl StructuralPartialEq for Error Auto Trait Implementations --- ### impl RefUnwindSafe for Error ### impl Send for Error ### impl Sync for Error ### impl Unpin for Error ### impl UnwindSafe for Error Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T> ToString for T where    T: Display + ?Sized, source#### default fn to_string(&self) -> String Converts the given value to a `String`. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct curl::FormError === ``` pub struct FormError { /* private fields */ } ``` An error from “form add” operations. THis structure wraps a `CURLFORMcode`. Implementations --- source### impl FormError source#### pub fn new(code: CURLFORMcode) -> FormError Creates a new error from the underlying code returned by libcurl. source#### pub fn is_memory(&self) -> bool Returns whether this error corresponds to CURL_FORMADD_MEMORY. source#### pub fn is_option_twice(&self) -> bool Returns whether this error corresponds to CURL_FORMADD_OPTION_TWICE. source#### pub fn is_null(&self) -> bool Returns whether this error corresponds to CURL_FORMADD_NULL. source#### pub fn is_unknown_option(&self) -> bool Returns whether this error corresponds to CURL_FORMADD_UNKNOWN_OPTION. source#### pub fn is_incomplete(&self) -> bool Returns whether this error corresponds to CURL_FORMADD_INCOMPLETE. source#### pub fn is_illegal_array(&self) -> bool Returns whether this error corresponds to CURL_FORMADD_ILLEGAL_ARRAY. source#### pub fn is_disabled(&self) -> bool Returns whether this error corresponds to CURL_FORMADD_DISABLED. source#### pub fn code(&self) -> CURLFORMcode Returns the value of the underlying error corresponding to libcurl. source#### pub fn description(&self) -> &str Returns a human-readable description of this error code. Trait Implementations --- source### impl Clone for FormError source#### fn clone(&self) -> FormError Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for FormError source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Display for FormError source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Error for FormError 1.30.0 · source#### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more source#### fn backtrace(&self) -> Option<&Backtrace🔬 This is a nightly-only experimental API. (`backtrace`)Returns a stack backtrace, if available, of where this error occurred. Read more 1.0.0 · source#### fn description(&self) -> &str 👎 Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎 Deprecated since 1.33.0: replaced by Error::source, which can support downcasting source#### fn provide(&'a self, req: &mut Demand<'a>) 🔬 This is a nightly-only experimental API. (`error_generic_member_access`)Provides type based access to context intended for error reports. Read more source### impl From<FormError> for Error source#### fn from(e: FormError) -> Error Converts to this type from the input type. source### impl PartialEq<FormError> for FormError source#### fn eq(&self, other: &FormError) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more source#### fn ne(&self, other: &FormError) -> bool This method tests for `!=`. source### impl StructuralPartialEq for FormError Auto Trait Implementations --- ### impl RefUnwindSafe for FormError ### impl Send for FormError ### impl Sync for FormError ### impl Unpin for FormError ### impl UnwindSafe for FormError Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T> ToString for T where    T: Display + ?Sized, source#### default fn to_string(&self) -> String Converts the given value to a `String`. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct curl::MultiError === ``` pub struct MultiError { /* private fields */ } ``` An error from “multi” operations. THis structure wraps a `CURLMcode`. Implementations --- source### impl MultiError source#### pub fn new(code: CURLMcode) -> MultiError Creates a new error from the underlying code returned by libcurl. source#### pub fn is_bad_handle(&self) -> bool Returns whether this error corresponds to CURLM_BAD_HANDLE. source#### pub fn is_bad_easy_handle(&self) -> bool Returns whether this error corresponds to CURLM_BAD_EASY_HANDLE. source#### pub fn is_out_of_memory(&self) -> bool Returns whether this error corresponds to CURLM_OUT_OF_MEMORY. source#### pub fn is_internal_error(&self) -> bool Returns whether this error corresponds to CURLM_INTERNAL_ERROR. source#### pub fn is_bad_socket(&self) -> bool Returns whether this error corresponds to CURLM_BAD_SOCKET. source#### pub fn is_unknown_option(&self) -> bool Returns whether this error corresponds to CURLM_UNKNOWN_OPTION. source#### pub fn is_call_perform(&self) -> bool Returns whether this error corresponds to CURLM_CALL_MULTI_PERFORM. source#### pub fn code(&self) -> CURLMcode Returns the value of the underlying error corresponding to libcurl. source#### pub fn description(&self) -> &str Returns curl’s human-readable description of this error. Trait Implementations --- source### impl Clone for MultiError source#### fn clone(&self) -> MultiError Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for MultiError source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Display for MultiError source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Error for MultiError 1.30.0 · source#### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more source#### fn backtrace(&self) -> Option<&Backtrace🔬 This is a nightly-only experimental API. (`backtrace`)Returns a stack backtrace, if available, of where this error occurred. Read more 1.0.0 · source#### fn description(&self) -> &str 👎 Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎 Deprecated since 1.33.0: replaced by Error::source, which can support downcasting source#### fn provide(&'a self, req: &mut Demand<'a>) 🔬 This is a nightly-only experimental API. (`error_generic_member_access`)Provides type based access to context intended for error reports. Read more source### impl From<MultiError> for Error source#### fn from(e: MultiError) -> Error Converts to this type from the input type. source### impl PartialEq<MultiError> for MultiError source#### fn eq(&self, other: &MultiError) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more source#### fn ne(&self, other: &MultiError) -> bool This method tests for `!=`. source### impl StructuralPartialEq for MultiError Auto Trait Implementations --- ### impl RefUnwindSafe for MultiError ### impl Send for MultiError ### impl Sync for MultiError ### impl Unpin for MultiError ### impl UnwindSafe for MultiError Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T> ToString for T where    T: Display + ?Sized, source#### default fn to_string(&self) -> String Converts the given value to a `String`. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct curl::Protocols === ``` pub struct Protocols<'a> { /* private fields */ } ``` An iterator over the list of protocols a version supports. Trait Implementations --- source### impl<'a> Clone for Protocols<'asource#### fn clone(&self) -> Protocols<'a>Notable traits for Protocols<'a>`impl<'a> Iterator for Protocols<'a> type Item = &'a str;` Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl<'a> Debug for Protocols<'asource#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl<'a> Iterator for Protocols<'a#### type Item = &'a str The type of the elements being iterated over. source#### fn next(&mut self) -> Option<&'a strAdvances the iterator and returns the next value. Read more source#### fn next_chunk<const N: usize>(    &mut self) -> Result<[Self::Item; N], IntoIter<Self::Item, N>🔬 This is a nightly-only experimental API. (`iter_next_chunk`)Advances the iterator and returns an array containing the next `N` values. Read more 1.0.0 · source#### fn size_hint(&self) -> (usize, Option<usize>) Returns the bounds on the remaining length of the iterator. Read more 1.0.0 · source#### fn count(self) -> usize Consumes the iterator, counting the number of iterations and returning it. Read more 1.0.0 · source#### fn last(self) -> Option<Self::ItemConsumes the iterator, returning the last element. Read more source#### fn advance_by(&mut self, n: usize) -> Result<(), usize🔬 This is a nightly-only experimental API. (`iter_advance_by`)Advances the iterator by `n` elements. Read more 1.0.0 · source#### fn nth(&mut self, n: usize) -> Option<Self::ItemReturns the `n`th element of the iterator. Read more 1.28.0 · source#### fn step_by(self, step: usize) -> StepBy<SelfCreates an iterator starting at the same point, but stepping by the given amount at each iteration. Read more 1.0.0 · source#### fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter> where    U: IntoIterator<Item = Self::Item>, Takes two iterators and creates a new iterator over both in sequence. Read more 1.0.0 · source#### fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter> where    U: IntoIterator, ‘Zips up’ two iterators into a single iterator of pairs. Read more source#### fn intersperse(self, separator: Self::Item) -> Intersperse<Self> where    Self::Item: Clone, 🔬 This is a nightly-only experimental API. (`iter_intersperse`)Creates a new iterator which places a copy of `separator` between adjacent items of the original iterator. Read more source#### fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G> where    G: FnMut() -> Self::Item, 🔬 This is a nightly-only experimental API. (`iter_intersperse`)Creates a new iterator which places an item generated by `separator` between adjacent items of the original iterator. Read more 1.0.0 · source#### fn map<B, F>(self, f: F) -> Map<Self, F> where    F: FnMut(Self::Item) -> B, Takes a closure and creates an iterator which calls that closure on each element. Read more 1.21.0 · source#### fn for_each<F>(self, f: F) where    F: FnMut(Self::Item), Calls a closure on each element of an iterator. Read more 1.0.0 · source#### fn filter<P>(self, predicate: P) -> Filter<Self, P> where    P: FnMut(&Self::Item) -> bool, Creates an iterator which uses a closure to determine if an element should be yielded. Read more 1.0.0 · source#### fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> where    F: FnMut(Self::Item) -> Option<B>, Creates an iterator that both filters and maps. Read more 1.0.0 · source#### fn enumerate(self) -> Enumerate<SelfCreates an iterator which gives the current iteration count as well as the next value. Read more 1.0.0 · source#### fn peekable(self) -> Peekable<SelfCreates an iterator which can use the `peek` and `peek_mut` methods to look at the next element of the iterator without consuming it. See their documentation for more information. Read more 1.0.0 · source#### fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P> where    P: FnMut(&Self::Item) -> bool, Creates an iterator that `skip`s elements based on a predicate. Read more 1.0.0 · source#### fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> where    P: FnMut(&Self::Item) -> bool, Creates an iterator that yields elements based on a predicate. Read more 1.57.0 · source#### fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P> where    P: FnMut(Self::Item) -> Option<B>, Creates an iterator that both yields elements based on a predicate and maps. Read more 1.0.0 · source#### fn skip(self, n: usize) -> Skip<SelfCreates an iterator that skips the first `n` elements. Read more 1.0.0 · source#### fn take(self, n: usize) -> Take<SelfCreates an iterator that yields the first `n` elements, or fewer if the underlying iterator ends sooner. Read more 1.0.0 · source#### fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> where    F: FnMut(&mutSt, Self::Item) -> Option<B>, An iterator adapter similar to `fold` that holds internal state and produces a new iterator. Read more 1.0.0 · source#### fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> where    U: IntoIterator,    F: FnMut(Self::Item) -> U, Creates an iterator that works like map, but flattens nested structure. Read more 1.29.0 · source#### fn flatten(self) -> Flatten<Self> where    Self::Item: IntoIterator, Creates an iterator that flattens nested structure. Read more 1.0.0 · source#### fn fuse(self) -> Fuse<SelfCreates an iterator which ends after the first `None`. Read more 1.0.0 · source#### fn inspect<F>(self, f: F) -> Inspect<Self, F> where    F: FnMut(&Self::Item), Does something with each element of an iterator, passing the value on. Read more 1.0.0 · source#### fn by_ref(&mut self) -> &mutSelf Borrows an iterator, rather than consuming it. Read more 1.0.0 · source#### fn collect<B>(self) -> B where    B: FromIterator<Self::Item>, Transforms an iterator into a collection. Read more source#### fn try_collect<B>(    &mut self) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType where    B: FromIterator<<Self::Item as Try>::Output>,    Self::Item: Try,    <Self::Item as Try>::Residual: Residual<B>, 🔬 This is a nightly-only experimental API. (`iterator_try_collect`)Fallibly transforms an iterator into a collection, short circuiting if a failure is encountered. Read more source#### fn collect_into<E>(self, collection: &mutE) -> &mutE where    E: Extend<Self::Item>, 🔬 This is a nightly-only experimental API. (`iter_collect_into`)Collects all the items from an iterator into a collection. Read more 1.0.0 · source#### fn partition<B, F>(self, f: F) -> (B, B) where    B: Default + Extend<Self::Item>,    F: FnMut(&Self::Item) -> bool, Consumes an iterator, creating two collections from it. Read more source#### fn partition_in_place<'a, T, P>(self, predicate: P) -> usize where    T: 'a,    Self: DoubleEndedIterator<Item = &'a mutT>,    P: FnMut(&T) -> bool, 🔬 This is a nightly-only experimental API. (`iter_partition_in_place`)Reorders the elements of this iterator *in-place* according to the given predicate, such that all those that return `true` precede all those that return `false`. Returns the number of `true` elements found. Read more source#### fn is_partitioned<P>(self, predicate: P) -> bool where    P: FnMut(Self::Item) -> bool, 🔬 This is a nightly-only experimental API. (`iter_is_partitioned`)Checks if the elements of this iterator are partitioned according to the given predicate, such that all those that return `true` precede all those that return `false`. Read more 1.27.0 · source#### fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R where    F: FnMut(B, Self::Item) -> R,    R: Try<Output = B>, An iterator method that applies a function as long as it returns successfully, producing a single, final value. Read more 1.27.0 · source#### fn try_for_each<F, R>(&mut self, f: F) -> R where    F: FnMut(Self::Item) -> R,    R: Try<Output = ()>, An iterator method that applies a fallible function to each item in the iterator, stopping at the first error and returning that error. Read more 1.0.0 · source#### fn fold<B, F>(self, init: B, f: F) -> B where    F: FnMut(B, Self::Item) -> B, Folds every element into an accumulator by applying an operation, returning the final result. Read more 1.51.0 · source#### fn reduce<F>(self, f: F) -> Option<Self::Item> where    F: FnMut(Self::Item, Self::Item) -> Self::Item, Reduces the elements to a single one, by repeatedly applying a reducing operation. Read more source#### fn try_reduce<F, R>(    &mut self,    f: F) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType where    F: FnMut(Self::Item, Self::Item) -> R,    R: Try<Output = Self::Item>,    <R as Try>::Residual: Residual<Option<Self::Item>>, 🔬 This is a nightly-only experimental API. (`iterator_try_reduce`)Reduces the elements to a single one by repeatedly applying a reducing operation. If the closure returns a failure, the failure is propagated back to the caller immediately. Read more 1.0.0 · source#### fn all<F>(&mut self, f: F) -> bool where    F: FnMut(Self::Item) -> bool, Tests if every element of the iterator matches a predicate. Read more 1.0.0 · source#### fn any<F>(&mut self, f: F) -> bool where    F: FnMut(Self::Item) -> bool, Tests if any element of the iterator matches a predicate. Read more 1.0.0 · source#### fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where    P: FnMut(&Self::Item) -> bool, Searches for an element of an iterator that satisfies a predicate. Read more 1.30.0 · source#### fn find_map<B, F>(&mut self, f: F) -> Option<B> where    F: FnMut(Self::Item) -> Option<B>, Applies function to the elements of iterator and returns the first non-none result. Read more source#### fn try_find<F, R>(    &mut self,    f: F) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType where    F: FnMut(&Self::Item) -> R,    R: Try<Output = bool>,    <R as Try>::Residual: Residual<Option<Self::Item>>, 🔬 This is a nightly-only experimental API. (`try_find`)Applies function to the elements of iterator and returns the first true result or the first error. Read more 1.0.0 · source#### fn position<P>(&mut self, predicate: P) -> Option<usize> where    P: FnMut(Self::Item) -> bool, Searches for an element in an iterator, returning its index. Read more 1.0.0 · source#### fn rposition<P>(&mut self, predicate: P) -> Option<usize> where    P: FnMut(Self::Item) -> bool,    Self: ExactSizeIterator + DoubleEndedIterator, Searches for an element in an iterator from the right, returning its index. Read more 1.0.0 · source#### fn max(self) -> Option<Self::Item> where    Self::Item: Ord, Returns the maximum element of an iterator. Read more 1.0.0 · source#### fn min(self) -> Option<Self::Item> where    Self::Item: Ord, Returns the minimum element of an iterator. Read more 1.6.0 · source#### fn max_by_key<B, F>(self, f: F) -> Option<Self::Item> where    B: Ord,    F: FnMut(&Self::Item) -> B, Returns the element that gives the maximum value from the specified function. Read more 1.15.0 · source#### fn max_by<F>(self, compare: F) -> Option<Self::Item> where    F: FnMut(&Self::Item, &Self::Item) -> Ordering, Returns the element that gives the maximum value with respect to the specified comparison function. Read more 1.6.0 · source#### fn min_by_key<B, F>(self, f: F) -> Option<Self::Item> where    B: Ord,    F: FnMut(&Self::Item) -> B, Returns the element that gives the minimum value from the specified function. Read more 1.15.0 · source#### fn min_by<F>(self, compare: F) -> Option<Self::Item> where    F: FnMut(&Self::Item, &Self::Item) -> Ordering, Returns the element that gives the minimum value with respect to the specified comparison function. Read more 1.0.0 · source#### fn rev(self) -> Rev<Self> where    Self: DoubleEndedIterator, Reverses an iterator’s direction. Read more 1.0.0 · source#### fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB) where    FromA: Default + Extend<A>,    FromB: Default + Extend<B>,    Self: Iterator<Item = (A, B)>, Converts an iterator of pairs into a pair of containers. Read more 1.36.0 · source#### fn copied<'a, T>(self) -> Copied<Self> where    T: 'a + Copy,    Self: Iterator<Item = &'aT>, Creates an iterator which copies all of its elements. Read more 1.0.0 · source#### fn cloned<'a, T>(self) -> Cloned<Self> where    T: 'a + Clone,    Self: Iterator<Item = &'aT>, Creates an iterator which `clone`s all of its elements. Read more 1.0.0 · source#### fn cycle(self) -> Cycle<Self> where    Self: Clone, Repeats an iterator endlessly. Read more 1.11.0 · source#### fn sum<S>(self) -> S where    S: Sum<Self::Item>, Sums the elements of an iterator. Read more 1.11.0 · source#### fn product<P>(self) -> P where    P: Product<Self::Item>, Iterates over the entire iterator, multiplying all the elements Read more 1.5.0 · source#### fn cmp<I>(self, other: I) -> Ordering where    I: IntoIterator<Item = Self::Item>,    Self::Item: Ord, Lexicographically compares the elements of this `Iterator` with those of another. Read more source#### fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering where    I: IntoIterator,    F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering, 🔬 This is a nightly-only experimental API. (`iter_order_by`)Lexicographically compares the elements of this `Iterator` with those of another with respect to the specified comparison function. Read more 1.5.0 · source#### fn partial_cmp<I>(self, other: I) -> Option<Ordering> where    I: IntoIterator,    Self::Item: PartialOrd<<I as IntoIterator>::Item>, Lexicographically compares the elements of this `Iterator` with those of another. Read more source#### fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering> where    I: IntoIterator,    F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>, 🔬 This is a nightly-only experimental API. (`iter_order_by`)Lexicographically compares the elements of this `Iterator` with those of another with respect to the specified comparison function. Read more 1.5.0 · source#### fn eq<I>(self, other: I) -> bool where    I: IntoIterator,    Self::Item: PartialEq<<I as IntoIterator>::Item>, Determines if the elements of this `Iterator` are equal to those of another. Read more source#### fn eq_by<I, F>(self, other: I, eq: F) -> bool where    I: IntoIterator,    F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool, 🔬 This is a nightly-only experimental API. (`iter_order_by`)Determines if the elements of this `Iterator` are equal to those of another with respect to the specified equality function. Read more 1.5.0 · source#### fn ne<I>(self, other: I) -> bool where    I: IntoIterator,    Self::Item: PartialEq<<I as IntoIterator>::Item>, Determines if the elements of this `Iterator` are unequal to those of another. Read more 1.5.0 · source#### fn lt<I>(self, other: I) -> bool where    I: IntoIterator,    Self::Item: PartialOrd<<I as IntoIterator>::Item>, Determines if the elements of this `Iterator` are lexicographically less than those of another. Read more 1.5.0 · source#### fn le<I>(self, other: I) -> bool where    I: IntoIterator,    Self::Item: PartialOrd<<I as IntoIterator>::Item>, Determines if the elements of this `Iterator` are lexicographically less or equal to those of another. Read more 1.5.0 · source#### fn gt<I>(self, other: I) -> bool where    I: IntoIterator,    Self::Item: PartialOrd<<I as IntoIterator>::Item>, Determines if the elements of this `Iterator` are lexicographically greater than those of another. Read more 1.5.0 · source#### fn ge<I>(self, other: I) -> bool where    I: IntoIterator,    Self::Item: PartialOrd<<I as IntoIterator>::Item>, Determines if the elements of this `Iterator` are lexicographically greater than or equal to those of another. Read more source#### fn is_sorted(self) -> bool where    Self::Item: PartialOrd<Self::Item>, 🔬 This is a nightly-only experimental API. (`is_sorted`)Checks if the elements of this iterator are sorted. Read more source#### fn is_sorted_by<F>(self, compare: F) -> bool where    F: FnMut(&Self::Item, &Self::Item) -> Option<Ordering>, 🔬 This is a nightly-only experimental API. (`is_sorted`)Checks if the elements of this iterator are sorted using the given comparator function. Read more source#### fn is_sorted_by_key<F, K>(self, f: F) -> bool where    F: FnMut(Self::Item) -> K,    K: PartialOrd<K>, 🔬 This is a nightly-only experimental API. (`is_sorted`)Checks if the elements of this iterator are sorted using the given key extraction function. Read more Auto Trait Implementations --- ### impl<'a> RefUnwindSafe for Protocols<'a### impl<'a> !Send for Protocols<'a### impl<'a> !Sync for Protocols<'a### impl<'a> Unpin for Protocols<'a### impl<'a> UnwindSafe for Protocols<'aBlanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<I> IntoIterator for I where    I: Iterator, #### type Item = <I as Iterator>::Item The type of the elements being iterated over. #### type IntoIter = I Which kind of iterator are we turning this into? const: unstable · source#### fn into_iter(self) -> I Creates an iterator from a value. Read more source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct curl::ShareError === ``` pub struct ShareError { /* private fields */ } ``` An error returned from “share” operations. This structure wraps a `CURLSHcode`. Implementations --- source### impl ShareError source#### pub fn new(code: CURLSHcode) -> ShareError Creates a new error from the underlying code returned by libcurl. source#### pub fn is_bad_option(&self) -> bool Returns whether this error corresponds to CURLSHE_BAD_OPTION. source#### pub fn is_in_use(&self) -> bool Returns whether this error corresponds to CURLSHE_IN_USE. source#### pub fn is_invalid(&self) -> bool Returns whether this error corresponds to CURLSHE_INVALID. source#### pub fn is_nomem(&self) -> bool Returns whether this error corresponds to CURLSHE_NOMEM. source#### pub fn code(&self) -> CURLSHcode Returns the value of the underlying error corresponding to libcurl. source#### pub fn description(&self) -> &str Returns curl’s human-readable version of this error. Trait Implementations --- source### impl Clone for ShareError source#### fn clone(&self) -> ShareError Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for ShareError source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Display for ShareError source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Error for ShareError 1.30.0 · source#### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more source#### fn backtrace(&self) -> Option<&Backtrace🔬 This is a nightly-only experimental API. (`backtrace`)Returns a stack backtrace, if available, of where this error occurred. Read more 1.0.0 · source#### fn description(&self) -> &str 👎 Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎 Deprecated since 1.33.0: replaced by Error::source, which can support downcasting source#### fn provide(&'a self, req: &mut Demand<'a>) 🔬 This is a nightly-only experimental API. (`error_generic_member_access`)Provides type based access to context intended for error reports. Read more source### impl From<ShareError> for Error source#### fn from(e: ShareError) -> Error Converts to this type from the input type. source### impl PartialEq<ShareError> for ShareError source#### fn eq(&self, other: &ShareError) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more source#### fn ne(&self, other: &ShareError) -> bool This method tests for `!=`. source### impl StructuralPartialEq for ShareError Auto Trait Implementations --- ### impl RefUnwindSafe for ShareError ### impl Send for ShareError ### impl Sync for ShareError ### impl Unpin for ShareError ### impl UnwindSafe for ShareError Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T> ToString for T where    T: Display + ?Sized, source#### default fn to_string(&self) -> String Converts the given value to a `String`. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct curl::Version === ``` pub struct Version { /* private fields */ } ``` Version information about libcurl and the capabilities that it supports. Implementations --- source### impl Version source#### pub fn num() -> &'static str Returns the libcurl version that this library is currently linked against. source#### pub fn get() -> Version Returns the libcurl version that this library is currently linked against. source#### pub fn version(&self) -> &str Returns the human readable version string, source#### pub fn version_num(&self) -> u32 Returns a numeric representation of the version number This is a 24 bit number made up of the major number, minor, and then patch number. For example 7.9.8 will return 0x070908. source#### pub fn vendored(&self) -> bool Returns true if this was built with the vendored version of libcurl. source#### pub fn host(&self) -> &str Returns a human readable string of the host libcurl is built for. This is discovered as part of the build environment. source#### pub fn feature_ipv6(&self) -> bool Returns whether libcurl supports IPv6 source#### pub fn feature_ssl(&self) -> bool Returns whether libcurl supports SSL source#### pub fn feature_libz(&self) -> bool Returns whether libcurl supports HTTP deflate via libz source#### pub fn feature_ntlm(&self) -> bool Returns whether libcurl supports HTTP NTLM source#### pub fn feature_gss_negotiate(&self) -> bool Returns whether libcurl supports HTTP GSSNEGOTIATE source#### pub fn feature_debug(&self) -> bool Returns whether libcurl was built with debug capabilities source#### pub fn feature_spnego(&self) -> bool Returns whether libcurl was built with SPNEGO authentication source#### pub fn feature_largefile(&self) -> bool Returns whether libcurl was built with large file support source#### pub fn feature_idn(&self) -> bool Returns whether libcurl was built with support for IDNA, domain names with international letters. source#### pub fn feature_sspi(&self) -> bool Returns whether libcurl was built with support for SSPI. source#### pub fn feature_async_dns(&self) -> bool Returns whether libcurl was built with asynchronous name lookups. source#### pub fn feature_conv(&self) -> bool Returns whether libcurl was built with support for character conversions. source#### pub fn feature_tlsauth_srp(&self) -> bool Returns whether libcurl was built with support for TLS-SRP. source#### pub fn feature_ntlm_wb(&self) -> bool Returns whether libcurl was built with support for NTLM delegation to winbind helper. source#### pub fn feature_unix_domain_socket(&self) -> bool Returns whether libcurl was built with support for unix domain socket source#### pub fn feature_http2(&self) -> bool Returns whether libcurl was built with support for HTTP2. source#### pub fn feature_http3(&self) -> bool Returns whether libcurl was built with support for HTTP3. source#### pub fn feature_brotli(&self) -> bool Returns whether libcurl was built with support for Brotli. source#### pub fn feature_altsvc(&self) -> bool Returns whether libcurl was built with support for Alt-Svc. source#### pub fn feature_zstd(&self) -> bool Returns whether libcurl was built with support for zstd source#### pub fn feature_unicode(&self) -> bool Returns whether libcurl was built with support for unicode source#### pub fn feature_hsts(&self) -> bool Returns whether libcurl was built with support for hsts source#### pub fn feature_gsasl(&self) -> bool Returns whether libcurl was built with support for gsasl source#### pub fn ssl_version(&self) -> Option<&strReturns the version of OpenSSL that is used, or None if there is no SSL support. source#### pub fn libz_version(&self) -> Option<&strReturns the version of libz that is used, or None if there is no libz support. source#### pub fn protocols(&self) -> Protocols<'_>Notable traits for Protocols<'a>`impl<'a> Iterator for Protocols<'a> type Item = &'a str;` Returns an iterator over the list of protocols that this build of libcurl supports. source#### pub fn ares_version(&self) -> Option<&strIf available, the human readable version of ares that libcurl is linked against. source#### pub fn ares_version_num(&self) -> Option<u32If available, the version of ares that libcurl is linked against. source#### pub fn libidn_version(&self) -> Option<&strIf available, the version of libidn that libcurl is linked against. source#### pub fn iconv_version_num(&self) -> Option<u32If available, the version of iconv libcurl is linked against. source#### pub fn libssh_version(&self) -> Option<&strIf available, the version of libssh that libcurl is linked against. source#### pub fn brotli_version_num(&self) -> Option<u32If available, the version of brotli libcurl is linked against. source#### pub fn brotli_version(&self) -> Option<&strIf available, the version of brotli libcurl is linked against. source#### pub fn nghttp2_version_num(&self) -> Option<u32If available, the version of nghttp2 libcurl is linked against. source#### pub fn nghttp2_version(&self) -> Option<&strIf available, the version of nghttp2 libcurl is linked against. source#### pub fn quic_version(&self) -> Option<&strIf available, the version of quic libcurl is linked against. source#### pub fn cainfo(&self) -> Option<&strIf available, the built-in default of CURLOPT_CAINFO. source#### pub fn capath(&self) -> Option<&strIf available, the built-in default of CURLOPT_CAPATH. source#### pub fn zstd_ver_num(&self) -> Option<u32If avaiable, the numeric zstd version Represented as `(MAJOR << 24) | (MINOR << 12) | PATCH` source#### pub fn zstd_version(&self) -> Option<&strIf available, the human readable version of zstd source#### pub fn hyper_version(&self) -> Option<&strIf available, the human readable version of hyper source#### pub fn gsasl_version(&self) -> Option<&strIf available, the human readable version of hyper Trait Implementations --- source### impl Debug for Version source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Send for Version source### impl Sync for Version Auto Trait Implementations --- ### impl RefUnwindSafe for Version ### impl Unpin for Version ### impl UnwindSafe for Version Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.
gclm
cran
R
Package ‘gclm’ October 13, 2022 Type Package Title Graphical Continuous Lyapunov Models Version 0.0.1 Description Estimation of covariance matrices as solutions of continuous time Lyapunov equations. Sparse coefficient matrix and diagonal noise are estimated with a proximal gradient method for an l1-penalized loss minimization problem. <NAME>, <NAME> (2020) <arXiv:2005.10483>. License MIT + file LICENSE Encoding UTF-8 LazyData true RoxygenNote 7.1.0 URL https://github.com/gherardovarando/gclm BugReports https://github.com/gherardovarando/gclm/issues Suggests testthat NeedsCompilation yes Author <NAME> [aut, cre, cph] (<https://orcid.org/0000-0002-6708-1103>), <NAME> [aut] (<https://orcid.org/0000-0003-3883-365X>) Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2020-06-04 08:40:07 UTC R topics documented: B... 2 clya... 2 gcl... 3 gclm.lowertr... 5 B0 Generate a naive stable matrix Description Generate a naive stable matrix Usage B0(p) Arguments p dimension of the matrix Value a stable matrix with off-diagonal entries equal to 1 and diagonal entries equal to -p clyap Solve continuous-time Lyapunov equations Description clyap solve the continuous-time Lyapunov equations BX + XB 0 + C = 0 Using the Bartels-Stewart algorithm with Hessenberg–Schur decomposition. Optionally the Hessenberg- Schur decomposition can be returned. Usage clyap(B, C, Q = NULL, all = FALSE) Arguments B Square matrix C Square matrix Q Square matrix, the orthogonal matrix used to transform the original equation all logical Details If the matrix Q is set then the matrix B is assumed to be in upper quasi-triangular form (Hessenberg- Schur canonical form), as required by LAPACK subroutine DTRSYL and Q is the orthogonal matrix associated with the Hessenberg-Schur form of B. Usually the matrix Q and the appropriate form of B are obtained by a first call to clyap(B, C, all = TRUE) clyap uses lapack subroutines: • DGEES • DTRSYL • DGEMM Value The solution matrix X if all = FALSE. If all = TRUE a list with components X, B and Q. Where B and Q are the Hessenberg-Schur form of the original matrix B and the orthogonal matrix that performed the transformation. Examples B <- matrix(data = rnorm(9), nrow = 3) ## make B negative diagonally dominant, thus stable: diag(B) <- - 3 * max(B) C <- diag(runif(3)) X <- clyap(B, C) ## check X is a solution: max(abs(B %*% X + X %*% t(B) + C)) gclm l1 penalized loss estimation for GCLM Description Estimates a sparse continuous time Lyapunov parametrization of a covariance matrix using a lasso (L1) penalty. Usage gclm( Sigma, B = -0.5 * diag(ncol(Sigma)), C = rep(1, ncol(Sigma)), C0 = rep(1, ncol(Sigma)), loss = "loglik", eps = 0.01, alpha = 0.5, maxIter = 100, lambda = 0, lambdac = 0, job = 0 ) gclm.path( Sigma, lambdas = NULL, B = -0.5 * diag(ncol(Sigma)), C = rep(1, ncol(Sigma)), ... ) Arguments Sigma covariance matrix B initial B matrix C diagonal of initial C matrix C0 diagonal of penalization matrix loss one of "loglik" (default) or "frobenius" eps convergence threshold alpha parameter line search maxIter maximum number of iterations lambda penalization coefficient for B lambdac penalization coefficient for C job integer 0,1,10 or 11 lambdas sequence of lambda ... additional arguments passed to gclm Details gclm performs proximal gradient descent for the optimization problem argminL(Σ(B, C)) + λρ(B) + λC ||C − C0||2F subject to B stable and C diagonal, where ρ(B) is the l1 norm of the off-diagonal element of B. gclm.path simply calls iteratively gclm with different lambda values. Warm start is used, that is in the i-th call to gclm the B and C matrices are initialized as the one obtained in the (i-1)th call. Value for gclm: a list with the result of the optimization for gclm.path: a list of the same length of lambdas with the results of the optimization for the different lambda values Examples x <- matrix(rnorm(50*20),ncol=20) S <- cov(x) ## l1 penalized log-likelihood res <- gclm(S, eps = 0, lambda = 0.1, lambdac = 0.01) ## l1 penalized log-likelihood with fixed C res <- gclm(S, eps = 0, lambda = 0.1, lambdac = -1) ## l1 penalized frobenius loss res <- gclm(S, eps = 0, lambda = 0.1, loss = "frobenius") gclm.lowertri Recover lower triangular GCLM Description Recover the only lower triangular stable matrix B such that Sigma (Σ) is the solution of the associ- ated continuous Lyapunov equation: BΣ + ΣB 0 + C = 0 Usage gclm.lowertri(Sigma, P = solve(Sigma), C = diag(nrow = nrow(Sigma))) Arguments Sigma covariance matrix P the inverse of the covariance matrix C symmetric positive definite matrix Value A stable lower triangular matrix
scikit-rf
readthedoc
Markdown
* Installation * Introduction * Networks * Connecting Networks * Plotting * NetworkSet * Circuits * Calibration * De-embedding * Quality Factors * Media * Vector Fitting * Virtual Instruments ## Network Theory¶ * Balanced Network De-embedding * CPW media example * Correlating microstripline model to measurement * DC Extrapolation for Time Domain * DefinedAEpTandZ0 media example * IEEEP370 Deembedding * LNA Example * Properties of Rectangular Waveguide * Renormalizing S-parameters * Time Domain and Gating * Time domain reflectometry, measurement vs simulation * Transmission Line Losses on a Loaded Lossy Line * Modeling Transmission Line Properties * How does the SWR vary along a line? * Working with Complex Characteristic Impedance ## Matching¶ ## Metrology and Calibration¶ * Calibration With Three Receivers * LRRM * Measuring a Multiport Device with a 2-Port Network Analyzer * Multi-port calibration * Multiline TRL * Measuring a 4-Port With The 1.5-Port NanoVNA V2 * One Port Tiered Calibration * SOLT * SOLT Calibration Standards Creation * TRL * TwoPortOnePath, EnhancedResponse, and FakeFlip * network ( `skrf.network` ) * frequency ( `skrf.frequency` ) * networkSet ( `skrf.networkSet` ) * plotting ( `skrf.plotting` ) * Media * taper ( `skrf.taper` ) * calibration ( ) * deembedding ( ) * virtual instruments ( `skrf.vi` ) * vna ( `skrf.vi.vna` ) * vectorFitting ( `skrf.vectorFitting` ) * Qfactor ( `skrf.qfactor` ) * time ( `skrf.time` ) * circuit ( `skrf.circuit` ) * device ( `skrf.media.device` ) * mathFunctions ( `skrf.mathFunctions` ) * tlineFunctions ( `skrf.tlineFunctions` ) * instances ( `skrf.instances` ) * constants ( `skrf.constants` ) * data ( `skrf.data` ) * util ( `skrf.util` ) * IO ## Sponsoring the Project¶ It is possible to sponsor the maintainers and developers of the scikit-rf package, using the GitHub Sponsor option (“Sponsor this project”) visible on the scikit-rf GitHub page. Sponsoring is one more way to contribute to open source: financially supporting the people who build and maintain it. Funding individuals helps them keep doing important work, expands opportunities to participate, and gives developers the recognition they deserve. ## Contributing to the Code¶ if you feel that the instructions on this page are too complicated, but you still would like to contribute, do not hesitate to email us on the scikit-rf mailing list or join us in the scikit-rf Slack channel or the scikit-rf Matrix/Element channel to get some help. skrf uses the “Fork + Pull” collaborative development model. If this is new to you, see GitHub’s articles on forking and pull requests. Basically, you will: Make your modifications. * Then send a pull request (PR) for your additions to be merged into the main scikit-rf repository. Your proposal will be reviewed or discussed and you may receive some comments which only aim to make your contribution as great as possible! When making your modification locally, you may need to work into a dedicated development environment in order to not interfere with the scikit-rf package that you have already installed. You can use for example anaconda environment. In order for the anaconda environment to find your local scikit-rf repo, use the convenient conda-develop command. ### Pre-commit¶ You can use pre-commit to automate your code quality checks and perform automated fixes in scikit-rf. To enable pre-commit on your computer (make sure it is installed first), open a terminal and Navigate to the `scikit-rf/` directory that contains your clone of scikit-rf’s repository, then run: `pre-commit install` Note Once pre-commit has been installed for a repository, pre-commit will run every time you try to commit a change. If any pre-commit checks fail, or if pre-commit changes any files, it will be necessary to redo git add on the changed files and git commit once again. To commit a change without running pre-commit, use the -n or –no-verify flag with git. ### Basic git command-line workflow¶ The following is a basic example of the git commands that can be used to contribute to the code. ``` # create your own fork of scikit-rf in the GitHub interface, say ME/scikit-rf # clone your new fork locally, using either: git clone <EMAIL>:ME/scikit-rf.git # if you have ssh keys setup, or if not: git clone https://github.com/scikit-rf/scikit-rf.git # ... make your changes... # commit changes locally git commit -a # push changes to your repo git push origin # create a pull request on github.com ``` ### Staying Synchronized¶ To keep your local version synchronized (up-to-date) with the scikit-rf repository, add a “remote” (call it “upstream”). From this remote, you can “fetch” and “merge” the official scikit-rf repo’s changes into your local repo. ``` git remote add upstream https://github.com/scikit-rf/scikit-rf.git # Fetch any new changes from the original repo git fetch upstream # Merges any changes fetched into your working files git merge upstream/master ``` ### Tests¶ Tests are vital for software reliability and maintainability. Writing tests often require additional effort but saves time in the long run. Tests enable us to quickly discover when we introduce new errors. It is also a way to provide examples of how functions and classes were originally intended to be used. Before making a Pull Request, we advise contributors to run the tests locally to check if nothing has been broken following their modifications. In addition, we highly recommend providing new tests when adding new features. The structure of the testing generally follows the conventions of numpy/scipy. Test cases live in the module, or submodule, which they are testing, and are located in a directory called tests. So, the tests of the media module are located at skrf/media/tests/. Tests can be run most easily with pytest. You probably don’t want to run the tests for the virtual instruments `skrf.vi` with the rest of the tests, so these tests are excluded by default. To run all the tests (except the virtual instruments) ``` cd scikit-rf pytest ``` Or, to run tests for every installed Python installation in an isolated environment. `tox` To run all tests and all tutorials and example notebooks (recommended before making a pull request): `tox -- --nbval-lax` If you want to test a single file or directory, you need to override the default pytest configuration (defined in the tox.ini file) and indicate the test path. For example, to run only the tests associated with the Network object (-v to increase the verbosity): ``` pytest -v -c "" skrf/tests/test_network.py ``` It is also possible to select some particular tests using the regex option (-k): ``` pytest -v -c "" skrf/calibration/tests/test_calibration.py -k "test_error_ntwk" ``` ## Contributing to the Documentation¶ ### Examples and Tutorials¶ Usage examples of scikit-rf are welcomed, especially when adding new features. We are using Jupyter Notebooks to write the examples and the tutorials, which are located in the ``` scikit-rf/docs/source/examples/ ``` and `doc/source/examples` directories. These notebooks are then converted into webpages with the sphinx extension called nbsphinx. The docs are automatically built and served by readthedocs when a Pull Request is accepted. The Python package requirements to build the docs are kept in ``` scikit-rf/pyproject.toml ``` . Important Before pushing to your repo and making a pull request, at a minimum you will need to clear the notebook outputs using the “Clear All Output” command in the notebook (or install nbstripout so that the output is not tracked in git (or the repo size would grow infinitely). ### Reference (API) or static documentation¶ The documentation source files can be found in `doc/source/` . The reference documentation for the functions, classes, and submodules are documented in docstrings following the conventions put forth by Numpy/Scipy docstring format. The documentation as a whole is generated using sphinx, and written using reStructed (.rst) Text. If you want to write some .rst file yourself, please use an RST format editor and checker (ex: https://livesphinx.herokuapp.com/), as Sphinx is (very) picky with the syntax… ### Building the documentation locally¶ Before making a pull request concerning the documentation, it is a good idea to test locally if your changes lead to the desired HTML output (sometimes some problems can arise during the conversion to HTML). The documentation is built by the following commands: ``` # be sure to be in the scikit-rf/doc directory make html ``` The built docs then reside in `doc/build/html` . ## Join the scikit-rf team!¶ Do you like using scikit-rf? Merchandise is available for you to express your love. # Acknowledging or Citing scikit-rf Date: 2022-08-31 Categories: Tags: # Acknowledging or Citing scikit-rf¶ ## In Publications¶ If you use scikit-rf for work/research presented in a publication (whether directly, or as a dependency to another package), we ask that you acknowledge it. Perhaps with something like: ``` This research made use of scikit-rf, an open-source Python package for RF and Microwave applications. ``` You can also include a link to www.scikit-rf.org (if the journal allows this) in addition to the above text. For academic citations, please cite the IEEE Microwave Magazine article that some of the community members wrote. The IEEE-style citation for this paper is Arsenovic et al., “scikit-rf: An Open Source Python Package for Microwave Network Creation, Analysis, and Calibration [Speaker’s Corner],” in IEEE Microwave Magazine, vol. 23, no. 1, pp. 98-105, Jan. 2022, doi: 10.1109/MMM.2021.3117139. and in BibTex format ``` @ARTICLE{9632487, author={Arsenovic, <NAME> Hillairet, <NAME> Anderson, <NAME> Forstén, <NAME>, <NAME>, Michael and <NAME> and <NAME> and Barnhart, William and <NAME>}, journal={IEEE Microwave Magazine}, title={scikit-rf: An Open Source Python Package for Microwave Network Creation, Analysis, and Calibration [Speaker’s Corner]}, year={2022}, volume={23}, number={1}, pages={98-105}, doi={10.1109/MMM.2021.3117139}} ``` ## In Presentations or Apps¶ If you are giving a presentation featuring work/research that makes use of scikit-rf or creating an app that uses it under the hood, we provide this “powered by” image [PNG] [SVG] : # Publications using or citing scikit-rf¶ This list has been extracted from a “scikit-rf” research on Google Scholar and is certainly non-exhaustive. Please contact us or make a Pull Request if you want to add a reference in this list. <NAME>., <NAME>., <NAME>. et al. Integrated acoustic resonators in commercial fin field-effect transistor technology. Nat Electron 5, 611–619 (2022). https://doi.org/10.1038/s41928-022-00827-6 * <NAME>., 2019. SNaP SnP Utilities. https://doi.org/10/gg6xw5 * <NAME>. and <NAME>., PyMeasRF: Automating RF Device Measurements Using Python, Proceedings of the Python in Science Conferences, 2019, https://doi.org/10.25080/Majora-7ddc1dd1-014 * <NAME>., <NAME>., <NAME>., <NAME>., 2021. X-Band Fin Resonant Body Transistors in 14nm CMOS Technology. arXiv:2107.00608 [physics]. * <NAME>., 2020. A Method to Remove the Effects of LO Drift from Vector Network Analyzer Measurements, in: 2020 94th ARFTG Microwave Measurement Symposium (ARFTG). Presented at the 2020 94th ARFTG Microwave Measurement Symposium (ARFTG), pp. 1-5. https://doi.org/10/gg6xw9 * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2013. An Experimental Technique for Calibration Uncertainty Analysis. IEEE Transactions on Microwave Theory and Techniques 61, 263-269. https://doi.org/10/f4mgfq * <NAME>., <NAME>., <NAME>., 2014. Two port calibration insensitive to flange misalignment, in: 84th ARFTG Microwave Measurement Conference. Presented at the 2014 84th ARFTG Microwave Measurement Conference, IEEE, Boulder, CO, USA, pp. 1-7. https://doi.org/10/gg6xxt * <NAME>., <NAME>., <NAME>., <NAME>., 2018a. Low-Loss Silicon Micromachined Waveguides Above 100 GHz Utilising Multiple H-Plane Splits, in: 2018 48th European Microwave Conference (EuMC). Presented at the 2018 48th European Microwave Conference (EuMC), pp. 1041-1044. https://doi.org/10/gfz9tv * <NAME>., <NAME>., <NAME>., 2018b. Micromachined Waveguides with Integrated Silicon Absorbers and Attenuators at 220-325 GHz, in: 2018 IEEE/MTT-S International Microwave Symposium - IMS. Presented at the 2018 IEEE/MTT-S International Microwave Symposium - IMS, pp. 579-582. https://doi.org/10/gg6xxm * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2015. A Compact Filter-Bank Waveguide Spectrometer for Millimeter Wavelengths. IEEE Transactions on Terahertz Science and Technology 5, 598-604. https://doi.org/10/gg6xxb * <NAME>., “VNA measurement calibration in cryogenic environment,” 2022 24th International Microwave and Radar Conference (MIKON), 2022, pp. 1-6. https://ieeexplore.ieee.org/abstract/document/9924695 * <NAME>., 2019. A Compact Wideband Stripline Hybrid Coupler. * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2018. An Ultra Low-Loss Silicon-Micromachined Waveguide Filter for D-Band Telecommunication Applications, in: 2018 IEEE/MTT-S International Microwave Symposium - IMS. Presented at the 2018 IEEE/MTT-S International Microwave Symposium - IMS, pp. 583-586. https://doi.org/10/gfz9tq * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2019. Toward Industrial Exploitation of THz Frequencies: Integration of SiGe MMICs in Silicon-Micromachined Waveguide Systems. IEEE Transactions on Terahertz Science and Technology 9, 624-636. https://doi.org/10/gf9hkv * <NAME>. & <NAME>. Silicon Micromachined Waveguide Calibration Standards for Terahertz Metrology. IEEE Transactions on Microwave Theory and Techniques 69, 3927–3942 (2021). https://ieeexplore.ieee.org/document/9485059 * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2015. WSPEC: A Waveguide Filter Bank Spectrometer. arXiv:1503.06528 [astro-ph]. * <NAME>. -C. and <NAME>, “Acceleration of Vector Fitting by Reusing the Householder Reflectors in Multiple QR Factorization,” 2022 IEEE Electrical Design of Advanced Packaging and Systems (EDAPS), Urbana, IL, USA, 2022, pp. 1-3, doi: 10.1109/EDAPS56906.2022.9995103. * Clochiatti S. et al., “Monolithic n+-InGaAs Thin Film Resistor from DC up to 0.5 THz,” 2022 Fifth International Workshop on Mobile Terahertz Systems (IWMTS), 2022, pp. 1-3, doi: 10.1109/IWMTS54901.2022.9832445. * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2018. Investigation of implantable antennas for exploratory neuroscience studies, in: The Loughborough Antennas Propagation Conference (LAPC 2018). Presented at the The Loughborough Antennas Propagation Conference (LAPC 2018), pp. 1-6. https://doi.org/10/gg6xxr * Dróżdż, <NAME>., Xenidis, <NAME>., Highly efficient absorption of THz radiation using waveguide-integrated carbon nanotube/cellulose aerogels, Applied Materials Today, 2022, https://doi.org/10.1016/j.apmt.2022.101684. * <NAME>., <NAME>., 2020. Design and Development of a Hot S-Parameter Measurement System for Plasma and Magnetron Applications, in: 2020 German Microwave Conference (GeMiC). Presented at the 2020 German Microwave Conference (GeMiC), pp. 124-127. * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2018. Aerosol-Jet Printed Interconnects for 60-Gb/s CMOS Driver and Microring Modulator Transmitter Assembly. IEEE Photonics Technology Letters 30, 1944-1947. https://doi.org/10/gg6xw8 * <NAME>., <NAME>. & <NAME>. Analog Frontend for a Passive 5.8-GHz RFID Transponder in 130-nm CMOS Technology. in 2021 51st European Microwave Conference (EuMC) 676–679 (2022). doi:10.23919/EuMC50147.2022.9784344. * <NAME>., <NAME>., 2021. A Dispersion-Compensated Algorithm for the Analysis of Electromagnetic Waveguides. IEEE Signal Processing Letters. https://doi.org/10/gkgg8f * <NAME>., <NAME>., <NAME>., <NAME>., and <NAME>., ‘Equivalent Circuit Model Extraction for a SAW Resonator: Below and above Room Temperature’, Sensors, vol. 22, no. 7, p. 2546, Mar. 2022, doi: 10.3390/s22072546. * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2018. A digital beamformer for the advanced focal array demonstrator (AFAD), in: Millimeter, Submillimeter, and Far-Infrared Detectors and Instrumentation for Astronomy IX. Presented at the Millimeter, Submillimeter, and Far-Infrared Detectors and Instrumentation for Astronomy IX, International Society for Optics and Photonics, p. 1070834. https://doi.org/10/gg6xxn * <NAME>., <NAME>. & <NAME>. Deep learning-enhanced, open-source eigenmode expansion. Opt. Lett. 47, 1383 (2022). * <NAME>., <NAME>., <NAME>., A Thru-free Multiline Calibration, 2023, https://doi.org/10.48550/arXiv.2305.03597 * <NAME>., <NAME>., <NAME>., Propagation of Linear Uncertainties through Multiline Thru-Reflect-Line Calibration, 2023, https://doi.org/10.48550/arXiv.2301.09126 * <NAME>., 2019. RF Network Analysis of the WEST ICRH Antenna with the Open-Source Python scikit-rf Package, in: 23rd Topical Conference on Radiofrequency Power in Plasmas (RFPPC 2019). Hefei, China. https://hal-cea.archives-ouvertes.fr/cea-02459571/ * <NAME>., <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME> “CCAT-prime: optical and cryogenic design of the 850 GHz module for Prime-Cam”, Proc. SPIE 12190, Millimeter, Submillimeter, and Far-Infrared Detectors and Instrumentation for Astronomy XI, 121901D (31 August 2022); https://doi.org/10.1117/12.2630370 * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2017. Noise Radar Approach for Interrogating SAW Sensors Using Software Defined Radio. IEEE Sensors Journal 17, 6760-6769. https://doi.org/10/gcf249 * <NAME>., <NAME>, <NAME>, <NAME>, <NAME>, Broadband insertion loss measurement of flexible copper clad laminate with direct metallization, Sensors and Actuators A: Physical, Volume 356, 2023, https://doi.org/10.1016/j.sna.2023.114349. * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2014. Scattering-parameter extraction and calibration techniques for RF free-space material characterization, in: The 8th European Conference on Antennas and Propagation (EuCAP 2014). Presented at the The 8th European Conference on Antennas and Propagation (EuCAP 2014), pp. 1093-1097. https://doi.org/10/gg6xw3 * <NAME>., <NAME>, <NAME>, <NAME>, <NAME> and <NAME>, “Bandwidth Tripler: Broadband Signal Generation With an Image-Rejection Analog Multiplexer for Fiber Optic Transmitters,” in IEEE Transactions on Microwave Theory and Techniques, 2022, doi: 10.1109/TMTT.2022.3190480. * <NAME>., <NAME>, <NAME> and <NAME>, “A 0.0058-mm 2 Inductor-Less CMOS Active Balun With Gain and Phase Errors Within − 0.1 ± 0.2 dB and − 0.18 ± 1.17 ∘ From DC to 8 GHz,” in IEEE Transactions on Circuits and Systems I: Regular Papers, doi: 10.1109/TCSI.2023.3257089. * <NAME>., <NAME>., <NAME>., <NAME>. and <NAME>., Self-calibration technique for characterization of integrated THz waveguides, arXiv:2104.01401 [physics.acc-ph], https://arxiv.org/abs/2104.01401 * <NAME>. ‘t, <NAME>., <NAME>., 2018. Dominant Coupling Mechanism for Integrated Circuit Immunity of SOIC Packages Up To 10 GHz. IEEE Transactions on Electromagnetic Compatibility 60, 965-970. https://doi.org/10/gg6xxk * <NAME>. and <NAME>., ‘T-RAX: Transversely Resonant Axion eXperiment’, Available: http://arxiv.org/abs/2203.15487 * <NAME>., <NAME>., <NAME>., <NAME>., 2021. Going Remote: Teaching Microwave Engineering in the Age of the Global Pandemic and Beyond. IEEE Microwave Magazine 22, 64–77. https://doi.org/10/gm2bwf * <NAME>. and <NAME>., Diseño, simulación y caracterización de un kit decalibración TRL, 2022 IEEE Biennial Congress of Argentina (ARGENCON), 2022, pp. 1-5, doi: 10.1109/ARGENCON55245.2022.9940045. * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2014. Terahertz coded aperture mask using vanadium dioxide bowtie antenna array, in: Terahertz Emitters, Receivers, and Applications V. Presented at the Terahertz Emitters, Receivers, and Applications V, International Society for Optics and Photonics, p. 91990C. https://doi.org/10/gg6xxs * <NAME>., <NAME>., 2021. Analysis and Impact of Port Impedances on Two-Port Networks and Its Application in Active Array Antenna Developments. IEEE Transactions on Microwave Theory and Techniques 69, 2357-2370. https://doi.org/10/gj47hf * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2019. Error correction and uncertainty measurement of short-open-load calibration standards on a new concept of software defined instrumentation for microwave network analysis [WWW Document]. Journal of Measurements in Engineering. https://doi.org/10.21595/jme.2019.20329 * <NAME>., <NAME>., <NAME>., 2020. Simphony: An open-source photonic integrated circuit simulation framework. Computing in Science Engineering. https://doi.org/10/gg6xwz * <NAME>., <NAME>., 2019. A Study on Low-Cost Calibration Kits for U.FL Connector Systems, in: 2019 4th International Symposium on Instrumentation Systems, Circuits and Transducers (INSCIT). Presented at the 2019 4th International Symposium on Instrumentation Systems, Circuits and Transducers (INSCIT), pp. 1-6. https://doi.org/10/gg6xxp * Price <NAME>., <NAME>, <NAME>, <NAME> and <NAME>, “Measuring Noise Parameters Using an Open, Short, Load, and λ/8-Length Cable as Source Impedances,” in IEEE Transactions on Microwave Theory and Techniques, vol. 71, no. 3, pp. 1102-1111, March 2023, doi: 10.1109/TMTT.2022.3225317. * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2021. RF network analysis of the WEST TWA mock-up in TITAN. Fusion Engineering and Design 168. https://doi.org/10/gjzjbx * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2022. Status of the WEST travelling wave array antenna design and results from the high power mock-up. Nucl. Fusion 62, 026046. https://doi.org/10.1088/1741-4326/ac4467 * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2018. The design and characterization of a 300 channel, optimized full-band millimeter filterbank for science with SuperSpec, in: Millimeter, Submillimeter, and Far-Infrared Detectors and Instrumentation for Astronomy IX. Presented at the Millimeter, Submillimeter, and Far-Infrared Detectors and Instrumentation for Astronomy IX, International Society for Optics and Photonics, p. 107081O. https://doi.org/10/gg6xxg * <NAME>., <NAME>, <NAME> and <NAME>, “Measurement Method for Dielectric Property of Lossy Liquid Using Waveguide Well for SAR Probe Calibration,” in IEEE Transactions on Instrumentation and Measurement, vol. 72, pp. 1-12, 2023, Art no. 1003912, doi: 10.1109/TIM.2023.3271004. * <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2022. Love Wave Sensor with High Penetration Depth for Potential Application in Cell Monitoring. Biosensors 12, 61. https://doi.org/10.3390/bios12020061 * <NAME>., <NAME>., <NAME>., <NAME>. & <NAME>. SAW Resonators and Filters Based on Sc0.43Al0.57N on Single Crystal and Polycrystalline Diamond. Micromachines 13, 1061 (2022). * <NAME>., Dielectric Spectroscopy with the NanoVNA2, 2022, https://fab.cba.mit.edu/classes/862.22/people/miana/Final_proj_write_up.pdf * The CHIME Collaboration, <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., 2022. An Overview of CHIME, the Canadian Hydrogen Intensity Mapping Experiment. arXiv:2201.07869 [astro-ph]. * <NAME>., <NAME>., <NAME>., Programmable wave-based analog computing machine: a metastructure that designs metastructures, 2022, https://doi.org/10.48550/arXiv.2301.02850 * Urbanski M. et al., Voltage Driven Phase Shifters for Phase Reference Distribution System in SINBAD, 2020 23rd International Microwave and Radar Conference (MIKON), https://ieeexplore.ieee.org/abstract/document/9253786 * <NAME>., <NAME>., <NAME>., 2019. Design and Practical Implementation of Two-Port Network Analyzer for Microwave Measurement from 200 MHz to 2.7 GHz, in: 2019 IEEE International Circuits and Systems Symposium (ICSyS). Presented at the 2019 IEEE International Circuits and Systems Symposium (ICSyS), pp. 1-4. https://doi.org/10/gg6xxj * <NAME>., <NAME>., <NAME>., 2018. Off-the-Shelf Reconfigurable Software Define Radio Approach for Vector Network 2, 8. * switch terms¶ * Described in [1] by <NAME>, switch-terms account for the fact that the 8-term (aka error-box ) model is overly simplified. The two error networks change slightly depending on which port is being excited. This is due to the internal switch within the VNA. * port impedance¶ * The impedance of a given port on a microwave Network. Frequently this is the same as the characteristic impedance of a given transmission line mode, but may be arbitrarily set. terminating a port with any impedance other than its port impedance will cause reflections. * characteristic impedance¶ * Ratio of voltage to current, for a single traveling wave along a transmission line. Copyright (c) 2010, <NAME> All rights reserved. Copyright (c) 2017, scikit-rf Developers All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the scikit-rf nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ## anaconda (recommended)¶ The easiest way to install scikit-rf is to first install anaconda, a binary package manager for python modules. Once anaconda is setup you can install scikit-rf by entering the following into a terminal (do not forget the `-c conda-forge` option): ``` conda install -c conda-forge scikit-rf ``` ## pip¶ Using the Python Package Index (PyPi), you can install scikit-rf using: ``` pip install scikit-rf ``` ## git¶ The bleeding-edge development version of scikit-rf may be installed from our github page. You can use git directly, or download a zipfile. ``` git clone [email protected]:scikit-rf/scikit-rf.git cd scikit-rf python setup.py install ``` ## Optional Modules¶ Some features of scikit-rf wont be available until you install additional modules. You can install these using conda or pip. ### Instrument Control¶ To use the vi module, you must install all of its dependencies. This can be done with $ pip install scikit-rf[vi] which will install the following: Warning about instrument communications The above should be enough to communicate with many instruments. However, some of us have had difficult to resolve issues with certain instrument configurations that require particular setups. For example, to communicate with Keysight’s N5227B PNA over GPIB, we had to install the Keysight IO Libraries Suite When using the virtual instrument module, you have the option of specifying the backend that PyVISA uses to communicate with instruments. By default, this is PyVISA-py, the fully Python VISA implementation, but in the case above with the Keysight Analyzer, we had to specify the exact .dll of the VISA driver. More information can be found here on VISA backends, but if you have issues, please submit a detailed bug report! ### Excel file export¶ xlrd * xlwt http://www.python-excel.org/ - for xls reading/writing `[ ]:` Download This Notebook: `Introduction.ipynb` This is a brief introduction to scikit-rf (aka `skrf` ). The intended audience are those who have a working python stack, and are somewhat familiar with python. If you are completely new to python, see scipy’s Getting Started. First, import the scikit-rf module `skrf` , as `rf` `[1]:` `import skrf as rf` If this produces an error, please see the installation tutorial. ## Networks¶ The central object in `skrf` is a N-port microwave Network object. A Network can be created in a number of ways, one way is from data stored in a touchstone file. `[2]:` ``` ring_slot = rf.Network('data/ring slot.s2p') ``` If you cant find `ring slot.s2p` , then just import it from the `skrf.data` module. `[3]:` ``` from skrf.data import ring_slot ``` * `Network.s` : Scattering Parameter matrix. * `Network.z0` : Port Impedance matrix. * `Network.frequency` : Frequency Object. The Network object has numerous other properties and methods which can found in it’s docstring. If you are using IPython/Jupyter, then these properties and methods can be ‘tabbed’ out on the command line. ``` In [1]: ring_slot.s<TAB> ring_slot.s ring_slot.s_arcl ring_slot.s_im ring_slot.s11 ring_slot.s_arcl_unwrap ring_slot.s_mag ... ``` Other way to build Network are detailed in the tutorial on Networks. ### Linear Operations¶ Element-wise mathematical operations on the s-parameters are accessible through overloaded operators. To illustrate, we load a couple `Networks` stored in the `skrf.data` module. `[5]:` ``` short = rf.data.wr2p2_short delayshort = rf.data.wr2p2_delayshort ``` The complex difference between their s-parameters is computed with `[6]:` `short - delayshort` `[6]:` This returns a new Network. Other arithmetic operators are overloaded as well, `[7]:` `short/delayshort` `[7]:` ### Cascading and De-embedding¶ Cascading and de-embeding 2-port Networks can also be done though operators. Cascading is done through the power operator, `**` . `[8]:` ``` short = rf.data.wr2p2_short line = rf.data.wr2p2_line De-embedding can be accomplished by cascading the inverse of a network. The inverse of a network is accessed through the property `Network.inv` . `[9]:` ``` short = line.inv ** delayshort ``` For more information on the functionality provided by the Network object, such as interpolation, stitching, n-port connections, and IO support see the Networks tutorial. ### Finding minimum (or maximum) of a Network quantity¶ Often, it is desirable to get the minimum (or maximum) value of a Network quantity (s-parameters, z-parameters, etc.) and the frequency at which this occurs. In `scikit-rf` , Network quantities are stored as Numpy arrays of shape (\(N_F\), \(N_p\), \(N_p\)) where \(N_F\) is the number of frequency points and \(N_p\) is the number of ports of a Network: `[10]:` ``` print(type(line.s)) # s-parameters are stored as a Numpy array ``` ``` <class 'numpy.ndarray'> ``` `[11]:` ``` print(line.s.shape) # line is a 2-port Network defined on 201 frequency points ``` `(201, 2, 2)` The frequency points are defined in the `frequency` parameter of a Network: `[12]:` ``` print(line.frequency) # returns a Frequency object ``` ``` 330.0-500.0 GHz, 201 pts ``` The frequency values are given by the `frequency.f` parameter, or simply `.f` : `[13]:` ``` line.f[0:10] # the 10 first frequency points. Same than line.frequency.f[0:10] ``` ``` array([3.3000e+11, 3.3085e+11, 3.3170e+11, 3.3255e+11, 3.3340e+11, 3.3425e+11, 3.3510e+11, 3.3595e+11, 3.3680e+11, 3.3765e+11]) ``` Being a Numpy array, finding the minimum (or maximum) value of a the magnitude of the \(S_{21}\) parameter can be performed using the `min()` (or `max()` ) method: `[14]:` ``` import numpy as np rs = rf.data.ring_slot # another 2-port example print(rs.s_mag[:,1,0].min()) # or .max() for maximum. Watch out that Python indexing starts at 0! ``` `0.5101255034355594` Finding the frequency at which the magnitude of the \(S_{11}\) parameter is minimum can be performed using the Numpy function ``argmin` <https://numpy.org/doc/stable/reference/generated/numpy.argmin.html?highlight=argmin#numpy.argmin>`__: `[15]:` ``` f_match = rs.f[np.argmin(rs.s_mag[:,0,0])] # frequency for min(|S11|) print(f_match) ``` `85850000000.0` The plotting infrastructure in skrf is under refactoring at the moment to allow for multiple backends, and headless setups. The following assumes you are using matplotlib with an interactive session. skrf has a function which updates your matplotlib rcParams so that plots appear like the ones shown in these tutorials. `[16]:` ``` # display plots in notebook %matplotlib inline from pylab import * rf.stylely() ``` * `Network.plot_s_db()` : plot magnitude of s-parameters in log scale * `Network.plot_s_deg()` : plot phase of s-parameters in degrees * ``` Network.plot_s_smith() ``` : plot complex s-parameters on Smith Chart To plot all four s-parameters of the `ring_slot` in Mag, Phase, and on the Smith Chart. `[17]:` Or plot the phase of \(S_{12}\) `[18]:` ``` ring_slot.plot_s_deg(m=0,n=1) ``` ``` ring_slot.plot_s_smith(lw=2) title('Big ole Smith Chart') ``` ``` Text(0.5, 1.0, 'Big ole Smith Chart') ``` For more detailed information about plotting see the Plotting tutorial ## NetworkSet¶ The NetworkSet object represents an unordered set of networks and provides methods for calculating statistical quantities and displaying uncertainty bounds. A NetworkSet is created from a list or dict of Networks’s. This can be done quickly with `rf.read_all()` , which loads all skrf-readable objects in a directory. The argument `contains` is used to load only files which match a given substring. `[20]:` ``` rf.read_all('data/', contains='ro') ``` This dictionary can be passed directly to the NetworkSet constructor, `[21]:` ro_dict = rf.read_all('data/', contains='ro') ro_ns = NetworkSet(ro_dict, name='ro set') # name is optional ro_ns ``` NetworkSet’s are list-like. ### Statistical Properties¶ Statistical quantities can be calculated by accessing properties of the NetworkSet. For example, to calculate the complex average of the set, access the `mean_s` property `[22]:` `ro_ns.mean_s` `[22]:` The returned results are stored in a Networks s-parameters, regardless of the type of the output. Similarly, to calculate the complex standard deviation of the set, `[23]:` `ro_ns.std_s` `[23]:` Because these methods return a Network object the results can be saved or plotted in the same way as you would with a Network. To plot the magnitude of the standard deviation of the set, `[24]:` ``` ro_ns.std_s.plot_s_mag(label='S11') ylabel('Standard Deviation') title('Standard Deviation of RO'); ``` ### Plotting Uncertainty Bounds¶ Uncertainty bounds on any network parameter can be plotted through the methods `[25]:` ``` ro_ns.plot_uncertainty_bounds_s_db(label='S11'); ``` See the networkset tutorial for more information. ## Virtual Instruments¶ The skrf.vi module provides classes to communicate with some instruments. At the moment, this is only VNAs, but more support may be added in the future. See the Virtual Instrument tutorial for more information. An example of using the `PNA` class to retrieve some s-parameter data and plot it ``` from skrf.vi.vna.keysight import PNA instr = PNA(address="TCPIP0::10.0.0.1::INSTR") freq = Frequency(start=2.3e9, stop=2.6e9, npoints=401, unit='hz') instr.frequency = freq ntwk = instr.get_snp_network(ports=(1,2)) ntwk.s21.plot_s_db() ``` ## Calibration¶ Calibrations are performed through a Calibration class. In most cases, creating a Calibration object requires at least two pieces of information: The Network elements in each list must all be similar (same #ports, frequency info, etc) and must be aligned to each other, meaning the first element of ideals list must correspond to the first element of measured list. Below is an example script illustrating how to create a Calibration . ### One Port Calibration¶ my_ideals = rf.read_all('ideals/') my_measured = rf.read_all('measured/') duts = rf.read_all('measured/') caled_duts = [cal.apply_cal(dut) for dut in duts.values()] ``` See the Calibration tutorial for more details and examples. ## Transmission Line Media¶ Simple transmission-line based networks can be created through methods of the Media class, which represents a transmission line object for a given medium. Once constructed, a Media object contains the necessary properties such as `propagation constant` and ``` characteristic impedance ``` , that are needed to generate microwave circuits. The basic usage looks something like this, ### CPW¶ ``` from skrf import Frequency from skrf.media import CPW, Coaxial freq = Frequency(75, 110, 101, 'GHz') cpw = CPW(freq, w = 10e-6, s = 5e-6, ep_r = 10.6) cpw ``` ``` Coplanar Waveguide Media. 75-110 GHz. 101 points W= 1.00e-05m, S= 5.00e-06m ``` ``` cpw.line(d=90,unit='deg', name='line') ``` ``` 2-Port Network: 'line', 75.0-110.0 GHz, 101 pts, z0=[50.0283242+0.j 50.0283242+0.j] ``` ### Coax¶ ``` freq = Frequency(1, 10, 101, 'GHz') coax = Coaxial(frequency = freq, Dint = 1e-3, Dout = 2e-3) coax ``` ``` Coaxial Media. Coaxial Media. 1.0-10.0GHz, 101 points. Dint = 1.00 mm, Dout = 2.00 mm z0 = (41.6, -0.0j)-(41.6, -0.0j) Ohm z0_port is not defined. ``` Download This Notebook: `Networks.ipynb` This tutorial gives an overview of the microwave network analysis features of skrf. For this tutorial, and the rest of the scikit-rf documentation, it is assumed that skrf has been imported as `rf` . Whether or not you follow this convention in your own code is up to you. `[1]:` ``` import skrf as rf from pylab import * ``` If this produces an import error, please see Installation. ## Creating Networks¶ skrf provides an object for a N-port microwave Network. A Network can be created in a number of ways: - from a Touchstone file - from S-parameters - from Z-parameters - from other RF parameters (Y, ABCD, T, etc.) Some examples for each situation is given below. ### Creating Network from Touchstone file¶ Touchstone file ( `.sNp` files, with `N` being the number of ports) is a de facto standard to export N-port network parameter data and noise data of linear active devices, passive filters, passive devices, or interconnect networks. Creating a Network from a Touchstone file is simple: `[2]:` ``` from skrf import Network, Frequency ring_slot = Network('data/ring slot.s2p') ``` Note that some softwares, such as ANSYS HFSS, add additional information to the Touchstone standard, such as comments, simulation parameters, Port Impedance or Gamma (wavenumber). These data are also imported if detected. ### Creating Network from s-parameters¶ Networks can also be created by directly passing values for the `frequency` , `s` -parameters (and optionally the port impedance `z0` ). The scattering matrix of a N-port Network is expected to be a Numpy array of shape `(nb_f, N, N)` , where `nb_f` is the number of frequency points and `N` the number of ports of the network. `[4]:` ``` # dummy 2-port network from Frequency and s-parameters freq = Frequency(1, 10, 101, 'ghz') s = rand(101, 2, 2) + 1j*rand(101, 2, 2) # random complex numbers # if not passed, will assume z0=50. name is optional but it's a good practice. ntwk = Network(frequency=freq, s=s, name='random values 2-port') ntwk ``` `[4]:` ``` 2-Port Network: 'random values 2-port', 1.0-10.0 GHz, 101 pts, z0=[50.+0.j 50.+0.j] ``` `[5]:` `ntwk.plot_s_db()` Often, s-parameters are stored in separate arrays. In such case, one needs to forge the s-matrix: `[6]:` ``` # let's assume we have separate arrays for the frequency and s-parameters f = np.array([1, 2, 3, 4]) # in GHz S11 = np.random.rand(4) S12 = np.random.rand(4) S21 = np.random.rand(4) S22 = np.random.rand(4) # Before creating the scikit-rf Network object, one must forge the Frequency and S-matrix: freq2 = rf.Frequency.from_f(f, unit='GHz') # forging S-matrix as shape (nb_f, 2, 2) # there is probably smarter way, but less explicit for the purpose of this example: s = np.zeros((len(f), 2, 2), dtype=complex) s[:,0,0] = S11 s[:,0,1] = S12 s[:,1,0] = S21 s[:,1,1] = S22 # constructing Network object ntw = rf.Network(frequency=freq2, s=s) print(ntw) ``` ``` 2-Port Network: '', 1.0-4.0 GHz, 4 pts, z0=[50.+0.j 50.+0.j] ``` If necessary, the characteristic impedance can be passed as a scalar (same for all frequencies), as a list or an array: `[7]:` ``` ntw2 = rf.Network(frequency=freq, s=s, z0=25, name='same z0 for all ports') print(ntw2) ntw3 = rf.Network(frequency=freq, s=s, z0=[20, 30], name='different z0 for each port') print(ntw3) ntw4 = rf.Network(frequency=freq, s=s, z0=rand(4,2), name='different z0 for each frequencies and ports') print(ntw4) ``` ``` 2-Port Network: 'same z0 for all ports', 1.0-10.0 GHz, 101 pts, z0=[25.+0.j 25.+0.j] 2-Port Network: 'different z0 for each port', 1.0-10.0 GHz, 101 pts, z0=[20.+0.j 30.+0.j] 2-Port Network: 'different z0 for each frequencies and ports', 1.0-10.0 GHz, 101 pts, z0=[0.09579089+0.j 0.53347093+0.j] ``` ### From z-parameters¶ As networks are also defined from their Z-parameters, there is `from_z()` method of the Network: `[8]:` ``` # 1-port network example z = np.full((len(freq), 1, 1), 10j) # replicate z=10j for all frequencies ntw = rf.Network(frequency=freq, z=z) print(ntw) ``` ``` 1-Port Network: '', 1.0-10.0 GHz, 101 pts, z0=[50.+0.j] ``` ### From other network parameters: Y, ABCD, H, T¶ It is also possible to generate Networks from other kind of RF parameters: Y, ABCD, H or T using the `y=` , `a=` , `h=` or `t=` parameters respectively when creating a `Network` . For example, the ABCD parameters of a series-impedance is: so the associated Network can be created like: `[9]:` ``` z = 20 abcd = array([[1, z], [0, 1]]) a = tile(abcd, (len(freq),1,1)) ntw = Network(frequency=freq, a=a) print(ntw) ``` ``` 2-Port Network: '', 1.0-10.0 GHz, 101 pts, z0=[50.+0.j 50.+0.j] ``` Note that convenience functions are also available for converting some parameters into another if required: ``` # example: converting a -> s s = rf.a2s(a) # checking that these S-params are the same np.all(ntw.s == s) ``` `[10]:` `True` ## Basic Properties¶ * `Network.s` : Scattering Parameter matrix. * `Network.z0` : Port Characteristic Impedance matrix. * `Network.frequency` : Frequency Object. The Network object has numerous other properties and methods. If you are using IPython, then these properties and methods can be ‘tabbed’ out on the command line. ``` In [1]: ring_slot.s<TAB> ring_slot.line.s ring_slot.s_arcl ring_slot.s_im ring_slot.line.s11 ring_slot.s_arcl_unwrap ring_slot.s_mag ... ``` All of the network parameters are represented internally as complex `numpy.ndarray` . The s-parameters are of shape ``` (nfreq, nport, nport) ``` : `[11]:` `shape(ring_slot.s)` `[11]:` `(201, 2, 2)` ## Slicing¶ You can slice the `Network.s` attribute any way you want. `[12]:` ``` ring_slot.s[:11,1,0] # get first 10 values of S21 ``` ``` array([0.6134571 +0.36678139j, 0.6218194 +0.36403169j, 0.63024301+0.36109574j, 0.63872415+0.3579682j , 0.64725874+0.35464377j, 0.65584238+0.35111711j, 0.66447037+0.34738295j, 0.6731377 +0.34343602j, 0.68183901+0.33927115j, 0.69056862+0.33488321j, 0.6993205 +0.3302672j ]) ``` Slicing by frequency can also be done directly on Network objects like so `[13]:` ``` ring_slot[0:10] # Network for the first 10 frequency points ``` ``` 2-Port Network: 'ring slot_subset', 75.0-76.575 GHz, 10 pts, z0=[50.+0.j 50.+0.j] ``` or with a human friendly string, `[14]:` ``` ring_slot['80-90ghz'] ``` ``` 2-Port Network: 'ring slot', 80.075-90.05 GHz, 58 pts, z0=[50.+0.j 50.+0.j] ``` Notice that slicing directly on a Network returns a Network. So, a nice way to express slicing in both dimensions is `[15]:` ``` ring_slot.s11['80-90ghz'] ``` ``` 1-Port Network: 'ring slot', 80.075-90.05 GHz, 58 pts, z0=[50.+0.j] ``` * `Network.plot_s_db` : plot magnitude of s-parameters in log scale * `Network.plot_s_deg` : plot phase of s-parameters in degrees * `Network.plot_s_smith` : plot complex s-parameters on Smith Chart * If you would like to use skrf’s plot styling, `[16]:` ``` %matplotlib inline rf.stylely() ``` To plot all four s-parameters of the `ring_slot` on the Smith Chart. `[17]:` ``` ring_slot.plot_s_smith() ``` Combining this with the slicing features, `[18]:` plt.title('Ring Slot $S_{21}$') ring_slot.s11.plot_s_db(label='Full Band Response') ring_slot.s11['82-90ghz'].plot_s_db(lw=3,label='Band of Interest') ``` For more detailed information about plotting see Plotting. ## Arithmetic Operations¶ Element-wise mathematical operations on the scattering parameter matrices are accessible through overloaded operators. To illustrate their usage, load a couple Networks stored in the `data` module. `[19]:` ``` from skrf.data import wr2p2_short as short from skrf.data import wr2p2_delayshort as delayshort short - delayshort short + delayshort short * delayshort short / delayshort ``` All of these operations return Network types. For example, to plot the complex difference between `short` and `delay_short` , `[20]:` ``` difference = (short - delayshort) difference.plot_s_mag(label='Mag of difference') ``` Another common application is calculating the phase difference using the division operator, `[21]:` ``` (delayshort/short).plot_s_deg(label='Detrended Phase') ``` Linear operators can also be used with scalars or an `numpy.ndarray` that have the same length as the Network. `[22]:` ``` hopen = (short*-1) hopen.s[:3,...] ``` `[22]:` ``` array([[[1.-0.j]], [[1.-0.j]], [[1.-0.j]]]) ``` ``` rando = hopen *rand(len(hopen)) rando.s[:3,...] ``` ``` array([[[0.547222 +0.j]], [[0.2244956 +0.j]], [[0.90497059+0.j]]]) ``` ## Comparison of Network¶ Comparison operators also work with networks: `[24]:` `short == delayshort` `[24]:` `False` `[25]:` `short != delayshort` `[25]:` `True` ## Cascading and De-embedding¶ Cascading and de-embeding 2-port Networks can also be done through operators. The `cascade` function can be called through the power operator, `**` . To calculate a new network which is the cascaded connection of the two individual Networks `line` and `short` , `[26]:` De-embedding can be accomplished by cascading the inverse of a network. The inverse of a network is accessed through the property `Network.inv` . To de-embed the `short` from `delay_short` , `[27]:` ``` short_2 = line.inv ** delayshort short_2 == short ``` `[27]:` `True` The cascading operator also works for to 2N-port Networks. This is illustrated in this example on balanced Networks. For example, assuming you want to cascade three 4-port Network `ntw1` , `ntw2` and `ntw3` , you can use: . Note that the port scheme assumed by the `**` cascading operator with 4-port networks is: ``` ntw1 ntw2 ntw3 +----+ +----+ +----+ 0-|0 2|--|0 2|--|0 2|-2 1-|1 3|--|1 3|--|1 3|-3 +----+ +----+ +----+ ``` More documentation on Connecting Network is available here: Connecting Networks. ## Connecting Multi-ports¶ skrf supports the connection of arbitrary ports of N-port networks. It accomplishes this using an algorithm called sub-network growth[1], available through the function `connect()` . As an example, terminating one port of an ideal 3-way splitter can be done like so, `[28]:` ``` tee = rf.data.tee tee ``` ``` 3-Port Network: 'tee', 330.0-500.0 GHz, 201 pts, z0=[50.+0.j 50.+0.j 50.+0.j] ``` To connect port `1` of the tee, to port `0` of the delay short, `[29]:` `[29]:` Note that this function takes into account port impedances. If two connected ports have different port impedances, an appropriate impedance mismatch is inserted. More information on connecting Networks is available here: connecting Networks. For advanced connections between many arbitrary N-port Networks, the `Circuit` object is more relevant since it allows defining explicitly the connections between ports and Networks. For more information, please refer to the Circuit documentation. ## Interpolation and Concatenation¶ A common need is to change the number of frequency points of a Network. To use the operators and cascading functions the networks involved must have matching frequencies, for instance. If two networks have different frequency information, then an error will be raised, `[30]:` ``` from skrf.data import wr2p2_line1 as line1 line1 ``` `[30]:` ``` line1+line --------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-49-82040f7eab08> in <module>() ----> 1 line1+line /home/alex/code/scikit-rf/skrf/network.py in __add__(self, other) 500 501 if isinstance(other, Network): --> 502 self.__compatible_for_scalar_operation_test(other) 503 result.s = self.s + other.s 504 else: /home/alex/code/scikit-rf/skrf/network.py in __compatible_for_scalar_operation_test(self, other) 701 ''' 702 if other.frequency != self.frequency: --> 703 raise IndexError('Networks must have same frequency. See `Network.interpolate`') 704 705 if other.s.shape != self.s.shape: IndexError: Networks must have same frequency. See `Network.interpolate` ``` This problem can be solved by interpolating one of Networks along the frequency axis using `Network.resample` . `[31]:` ``` line1.resample(201) line1 ``` `[31]:` And now we can do things `[32]:` `line1 + line` `[32]:` You can also interpolate from a `Frequency` object. For example, `[33]:` ``` line.interpolate(line1.frequency) ``` `[33]:` A related application is the need to combine Networks which cover different frequency ranges. Two Networks can be concatenated (aka stitched) together using `stitch` , which concatenates networks along their frequency axis. To combine a WR-2.2 Network with a WR-1.5 Network, `[34]:` ``` from skrf.data import wr2p2_line, wr1p5_line big_line = rf.stitch(wr2p2_line, wr1p5_line) big_line ``` ``` /home/docs/checkouts/readthedocs.org/user_builds/scikit-rf/envs/latest/lib/python3.10/site-packages/skrf/frequency.py:330: InvalidFrequencyWarning: Frequency values are not monotonously increasing! To get rid of the invalid values call `drop_non_monotonic_increasing` warnings.warn("Frequency values are not monotonously increasing!\n" ``` `[34]:` ``` 2-Port Network: 'wr2p2,line', 330.0-750.0 GHz, 402 pts, z0=[50.+0.j 50.+0.j] ``` For long term data storage, skrf has support for reading and partial support for writing touchstone file format. Reading is accomplished with the Network initializer as shown above, and writing with the method ``` Network.write_touchstone() ``` . For temporary data storage, skrf object can be pickled with the functions `skrf.io.general.read` and ``` skrf.io.general.write ``` . The reason to use temporary pickles over touchstones is that they store all attributes of a network, while touchstone files only store partial information. `[35]:` ``` rf.write('data/myline.ntwk',line) # write out Network using pickle ``` `[36]:` ``` ntwk = Network('data/myline.ntwk') # read Network using pickle ``` Pickling methods cant support long term data storage because they require the structure of the object being written to remain unchanged. something that cannot be guaranteed in future versions of skrf. (see http://docs.python.org/2/library/pickle.html) Frequently there is an entire directory of files that need to be analyzed. `rf.read_all` creates Networks from all files in a directory quickly. To load all skrf files in the `data/` directory which contain the string `'wr2p2'` . `[37]:` ``` dict_o_ntwks = rf.read_all(rf.data.pwd, contains = 'wr2p2') dict_o_ntwks ``` `[37]:` ``` {'wr2p2,delayshort': 1-Port Network: 'wr2p2,delayshort', 330.0-500.0 GHz, 201 pts, z0=[50.+0.j], 'wr2p2,line': 2-Port Network: 'wr2p2,line', 330.0-500.0 GHz, 201 pts, z0=[50.+0.j 50.+0.j], 'wr2p2,line1': 2-Port Network: 'wr2p2,line1', 330.0-500.0 GHz, 101 pts, z0=[50.+0.j 50.+0.j], 'wr2p2,short': 1-Port Network: 'wr2p2,short', 330.0-500.0 GHz, 201 pts, z0=[50.+0.j]} ``` Other times you know the list of files that need to be analyzed. `rf.read_all` also accepts a files parameter. This example file list contains only files within the same directory, but you can store files however your application would benefit from. `[38]:` ``` import os dict_o_ntwks_files = rf.read_all(files=[os.path.join(rf.data.pwd, test_file) for test_file in ['ntwk1.s2p', 'ntwk2.s2p']]) dict_o_ntwks_files ``` `[38]:` ``` {'ntwk1': 2-Port Network: 'ntwk1', 1.0-10.0 GHz, 91 pts, z0=[50.+0.j 50.+0.j]} ``` ## Other Parameters¶ This tutorial focuses on s-parameters, but other network representations are available as well. Impedance and Admittance Parameters can be accessed through the parameters `Network.z` and `Network.y` , respectively. Scalar components of complex parameters, such as `Network.z_re` , `Network.z_im` and plotting methods are available as well. Other parameters are only available for 2-port networks, such as wave cascading parameters ( `Network.t` ), and ABCD-parameters ( `Network.a` ) or Hybrid parameters ( `Network.h` ). `[39]:` `ring_slot.z[:3,...]` `[39]:` ``` array([[[0.88442687+28.15350224j, 0.94703504+30.46757222j], [0.94703504+30.46757222j, 1.0434417 +43.45766805j]], [[0.91624901+28.72415928j, 0.98188607+31.09594438j], [0.98188607+31.09594438j, 1.08168411+44.17642274j]], [[0.94991736+29.31694632j, 1.01876516+31.74874257j], [1.01876516+31.74874257j, 1.12215451+44.92215712j]]]) ``` `[40]:` ``` ring_slot.plot_z_im(m=1,n=0) ``` scikit-rf supports the connection of arbitrary ports of N-port networks. It accomplishes this using an algorithm called sub-network growth[1], available through the function `connect()` . Note that this function takes into account port impedances. If two connected ports have different port impedances, an appropriate impedance mismatch is inserted. This capability is illustrated here with situations often encountered. `[1]:` `import skrf as rf` ## Cascading 2-port and 1-port Networks¶ A common problem is to connect two Networks one to the other, also known as cascading Networks, which creates a new Network. The figure below illustrates sile simple situations, where the port numbers are identified in gray: or, Let’s illustrate this by connecting a transmission line (2-port Network) to a short-circuit (1-port Network) to create a delay short (1-port Network): Cascading Networks being a frequent operation, it can done conveniently through the `**` operator or with the `cascade` function: `[2]:` ``` line = rf.data.wr2p2_line # 2-port short = rf.data.wr2p2_short # 1-port delayshort = line ** short # --> 1-port Network print(delayshort) ``` ``` 1-Port Network: 'wr2p2,line', 330.0-500.0 GHz, 201 pts, z0=[50.+0.j] ``` or, equivalently using the `cascade()` function: `[3]:` ``` delayshort2 = rf.cascade(line, short) print(delayshort2 == delayshort) # the result is the same ``` `True` It is of course possible to connect two 2-port Networks together using the `connect()` function. The `connect()` function requires the Networks and the port numbers to connect together. In our example, the port 1 of the line is connected to the port 0 of the short: `[4]:` ``` delayshort3 = rf.connect(line, 1, short, 0) print(delayshort3 == delayshort) ``` `True` One often needs to cascade a chain Networks together: or, which can be realized using chained `**` or the convenient function `cascade_list` : `[5]:` ``` line1 = rf.data.wr2p2_line # 2-port line2 = rf.data.wr2p2_line # 2-port line3 = rf.data.wr2p2_line # 2-port line4 = rf.data.wr2p2_line # 2-port short = rf.data.wr2p2_short # 1-port chain1 = line1 ** line2 ** line3 ** line4 ** short chain2 = rf.cascade_list([line1, line2, line3, line4, short]) print(chain1 == chain2) ``` `True` ## Cascacing 2N-port Networks¶ The cascading operator `**` also works for to 2N-port Networks, width the following port scheme: It also works for multiple 2N-port Network. For example, assuming you want to cascade three 4-port Network `ntw1` , `ntw2` and `ntw3` , you can use: This is illustrated in this example on balanced Networks. ## Cascading Multi-port Networks¶ To make specific connections between multi-port Networks, two solutions are available, which mostly depends of the complexity of the circuit one wants to build: For reduced number of connection(s): the `connect()` function * For advanced connections between many arbitrary N-port Networks, the `Circuit` object is more relevant since it allows defining explicitly the connections between ports and Networks. For more information, please refer to the Circuit documentation. As an example, terminating one of the port of an a 3-port Network, such as an ideal 3-way splitter: can be done like: `[6]:` `tee = rf.data.tee` To connect port `1` of the tee, to port `0` of the delay short, `[7]:` In the previous example, the port #2 of the 3-port Network `tee` becomes the port #1 of the resulting 2-port Network. ## Multiple Connections of Multi-port Networks¶ Keeping track of the port numbering when using multiple time the `connect` function can be tedious (this is the reason why the Circuit object can be simpler to use). Let’s illustrate this with the following example: connecting the port #1 of a tee-junction (3-port) to the port #0 of a transmission line (2-port): To keep track of the port scheme after the connection operation, let’s change the port characteristic impedances (in red in the figure above): `[8]:` ``` tee.z0 = [1, 2, 3] line.z0 = [10, 20] # the resulting network is: rf.connect(tee, 1, line, 0) ``` `[8]:` ``` 3-Port Network: 'tee', 330.0-500.0 GHz, 201 pts, z0=[ 1.+0.j 20.+0.j 3.+0.j] ``` This tutorial describes skrf’s plotting features. If you would like to use skrf’s matplotlib interface with skrf styling, start with this `[1]:` `%matplotlib inline` `[2]:` `import skrf as rf` ## Plotting Methods¶ Plotting functions are implemented as methods of the `Network` class. * `Network.plot_s_re` * `Network.plot_s_im` * `Network.plot_s_mag` * `Network.plot_s_db` * … Similar methods exist for Impedance ( `Network.z` ) and Admittance Parameters ( `Network.y` ), * `Network.plot_z_re` * `Network.plot_z_im` * … * `Network.plot_y_re` * `Network.plot_y_im` * ## Smith Chart¶ As a first example, load a Network and plot all four s-parameters on the Smith chart. `[3]:` ``` from skrf import Network ring_slot = Network('data/ring slot.s2p') ring_slot.plot_s_smith() ``` scikit-rf includes a convenient command to make nicer figures quick: `[4]:` ``` rf.stylely() # nicer looking. Can be configured with different styles ring_slot.plot_s_smith() ``` `[5]:` ``` ring_slot.plot_s_smith(draw_labels=True) ``` Another common option is to draw admittance contours, instead of impedance. This is controlled through the `chart_type` argument. `[6]:` ``` ring_slot.plot_s_smith(chart_type='y') ``` See ``` skrf.plotting.smith() ``` for more info on customizing the Smith Chart. ## Complex Plane¶ Network parameters can also be plotted in the complex plane without a Smith Chart through ``` Network.plot_s_complex ``` . `[7]:` ``` ring_slot.plot_s_complex() from matplotlib import pyplot as plt plt.axis('equal') # otherwise circles wont be circles ``` ``` (-0.855165798772, 0.963732138327, -0.8760764348472001, 0.9024032182652001) ``` ## Log-Magnitude¶ Scalar components of the complex network parameters can be plotted vs frequency as well. To plot the log-magnitude of the s-parameters vs. frequency, `[8]:` When no arguments are passed to the plotting methods, all parameters are plotted. Single parameters can be plotted by passing indices `m` and `n` to the plotting commands (indexing start from 0). Comparing the simulated reflection coefficient off the ring slot to a measurement, `[9]:` ``` from skrf.data import ring_slot_meas ring_slot.plot_s_db(m=0,n=0, label='Theory') ring_slot_meas.plot_s_db(m=0,n=0, label='Measurement') ``` ## Phase¶ Plot phase, `[10]:` ``` ring_slot.plot_s_deg() ``` Or unwrapped phase, `[11]:` ``` ring_slot.plot_s_deg_unwrap() ``` Phase is radian (rad) is also available ## Group Delay¶ A Network has a `plot()` method which creates a rectangular plot of the argument vs frequency. This can be used to make plots are arent ‘canned’. For example group delay `[12]:` ``` gd = abs(ring_slot.s21.group_delay) *1e9 # in ns ring_slot.plot(gd) plt.ylabel('Group Delay (ns)') plt.title('Group Delay of Ring Slot S21') ``` ``` Text(0.5, 1.0, 'Group Delay of Ring Slot S21') ``` ## Impedance, Admittance¶ The components the Impedance and Admittance parameters can be plotted similarly, `[13]:` ``` ring_slot.plot_z_im() ``` ``` ring_slot.plot_y_im() ``` ## Customizing Plots¶ The legend entries are automatically filled in with the Network’s `Network.name` . The entry can be overridden by passing the `label` argument to the plot method. `[15]:` ``` ring_slot.plot_s_db(m=0,n=0, label = 'Simulation') ``` The frequency unit used on the x-axis is automatically filled in from the Networks ``` Network.frequency.unit ``` attribute. To change the label, change the frequency’s `unit` . `[16]:` ``` ring_slot.frequency.unit = 'mhz' ring_slot.plot_s_db(0,0) ``` Other key word arguments given to the plotting methods are passed through to the matplotlib ``` matplotlib.pyplot.plot ``` function. `[17]:` ``` ring_slot.frequency.unit='ghz' ring_slot.plot_s_db(m=0,n=0, linewidth = 3, linestyle = '--', label = 'Simulation') ring_slot_meas.plot_s_db(m=0,n=0, marker = 'o', markevery = 10,label = 'Measured') ``` All components of the plots can be customized through matplotlib functions, and `styles` can be used with a context manager. `[18]:` mpl_style = "seaborn-ticks" mpl_style = mpl_style if mpl_style in style.available else "seaborn-v0_8-ticks" with style.context(mpl_style): ring_slot.plot_s_smith() plt.xlabel('Real Part') plt.ylabel('Imaginary Part') plt.title('Smith Chart With Legend Room') plt.axis([-1.1,2.1,-1.1,1.1]) plt.legend(loc=5) ``` ## Saving Plots¶ Plots can be saved in various file formats using the GUI provided by the matplotlib. However, skrf provides a convenience function, called ``` skrf.plotting.save_all_figs ``` , that allows all open figures to be saved to disk in multiple file formats, with filenames pulled from each figure’s title, `[19]:` ``` from skrf.plotting import save_all_figs save_all_figs('data/', format=['png','eps','pdf']) ``` ## Adding Markers Post Plot¶ A common need is to make a color plot, interpretable in greyscale print. The ``` skrf.plotting.add_markers_to_lines ``` adds different markers each line in a plots after the plot has been made, which is usually when you remember to add them. `[20]:` ``` from skrf import plotting with plt.style.context('grayscale'): ring_slot.plot_s_deg() plotting.add_markers_to_lines() plt.legend() # have to re-generate legend ``` Date: 2021-02-14 Categories: Tags: Download This Notebook: `NetworkSet.ipynb` The NetworkSet object represents an unordered set of networks. It provides methods iterating and slicing the set, sorting by datetime, calculating statistical quantities, and displaying uncertainty bounds on plots. ## Creating a NetworkSet¶ Lets take a look in the `data/` folder, there are some redundant measurements of a network called `ro` , which is a radiating open waveguide. ``` ls data/ro* -a---- 14/02/2021 12:35 8031 ro,1.s1p -a---- 14/02/2021 12:35 8030 ro,2.s1p -a---- 14/02/2021 12:35 8031 ro,3.s1p -a---- 14/02/2021 12:35 46592 ro_spreadsheet.xls ``` The files `ro,1.s1p` , `ro,2.s1p` , … are redundant measurements on which we would like to calculate statistics using the NetworkSet class. A NetworkSet is created from a list or dict of Network’s. So first we need to load all of the touchstone files into `Networks` . This can be done quickly with `rf.read_all` , The argument `contains` is used to load only files which match a given substring. `[1]:` ``` import skrf as rf rf.read_all(rf.data.pwd, contains='ro') ``` This can be passed directly to the NetworkSet constructor, `[2]:` ro_dict = rf.read_all(rf.data.pwd, contains='ro') ro_ns = NetworkSet(ro_dict, name='ro set') ro_ns ``` A NetworkSet can also be constructed directly from: - a directory containing Touchstone files: ``` NetworkSet.from_dir() ``` , - a zipfile of touchstones files: ``` NetworkSet.from_zip() ``` , - a dictionnary of s-parameters: ``` NetworkSet.from_s_dict() ``` , - a (G)MDIF (.mdf) file: ``` NetworkSet.from_mdif() ``` , - a CITI (.cti) file: ``` NetworkSet.from_citi() ``` . ## Accessing Network Methods¶ The Network elements in a NetworkSet can be accessed like the elements of list, `[3]:` `ro_ns[0]` `[3]:` Most Network methods are also methods of NetworkSet. These methods are called on each Network element individually. For example to plot the log-magnitude of the s-parameters of each Network. `[4]:` ``` %matplotlib inline from pylab import * import skrf as rf rf.stylely() ro_ns.plot_s_db() ``` `[4]:` `[None, None, None]` ## Statistical Properties¶ Statistical quantities can be calculated by accessing properties of the NetworkSet. To calculate the complex average of the set, access the `mean_s` property `[5]:` `ro_ns.mean_s` `[5]:` Because the statistical operator methods are generated upon initialization their API is not explicitly documented in this manual. The naming convention of the statistical operator properties are ``` NetworkSet.{function}_{parameter} ``` , where `function` is the name of the statistical function, and `parameter` is the Network parameter to operate on. These methods return a Network object, so they can be saved or plotted in the same way as you would with a Network. To plot the log-magnitude of the complex mean response `[6]:` ``` ro_ns.mean_s.plot_s_db(label='ro') ``` Or to plot the standard deviation of the complex s-parameters, `[7]:` ``` ro_ns.std_s.plot_s_re(y_label='Standard Deviations') ``` Using these properties it is possible to calculate statistical quantities on the scalar components of the complex network parameters. To calculate the mean of the phase component, `[8]:` ``` ro_ns.mean_s_deg.plot_s_re() ``` ## Plotting Uncertainty Bounds¶ Uncertainty bounds can be plotted through the methods `[9]:` ``` ro_ns.plot_uncertainty_bounds_s_db() ``` ``` ro_ns.plot_uncertainty_bounds_s_deg() ``` The uncertainty bounds plotted above are calculated after the complex number has been projected onto the specified scalar component. Thus, the first plot represents uncertainty in the magnitude component only. To write all Networks of a NetworkSet out to individual touchstones, `[11]:` ``` ro_ns.write_touchstone(dir='data/') ``` `[11]:` `[None, None, None]` For temporary data storage, NetworkSets can be saved and read from disk using the functions `rf.read` and `rf.write` `[12]:` ``` rf.write('ro set.ns', ro_ns) ``` ``` ro_ns = rf.read('ro set.ns') ro_ns ``` ## Export to Excel, csv, or html¶ NetworkSets can also be exported to other filetypes. The format of the output; real/imag, mag/phase is adjustable, as is the output type; csv, excel, html. For example to export mag/phase for each network into an Excel spreadsheet for your boss[s] `[14]:` ``` ro_ns.write_spreadsheet('data/ro_spreadsheet.xls', form='db') ``` More info on this can be found in the function, ``` skrf.io.general.network_2_spreadsheet ``` ## Named Parameters¶ If all the `Network` objects of a `NetworkSet` have a `params` property containing a dictionnary of the named parameters and values associated to each Network, it is possible to select the Networks corresponding to a subset of named parameters using the `.sel()` method. The following example illustrates this feature. `[15]:` ``` # dummy named parameters and values 'a', 'X' and 'c' import numpy as np params = [ {'a':0, 'X':10, 'c':'A'}, {'a':1, 'X':10, 'c':'A'}, {'a':2, 'X':10, 'c':'A'}, {'a':1, 'X':20, 'c':'A'}, {'a':0, 'X':20, 'c':'A'}, ] # create a NetworkSet made of dummy Networks, each define for set of parameters freq1 = rf.Frequency(75, 110, 101, 'ghz') ntwks_params = [rf.Network(frequency=freq1, s=np.random.rand(len(freq1),2,2), name=f'ntwk_{m}', comment=f'ntwk_{m}', params=params) for (m, params) in enumerate(params) ] ns = rf.NetworkSet(ntwks_params) print(ns) ``` Selecting the sub-NetworkSet matching scalar parameters can be made as: `[16]:` `ns.sel({'a': 1})` `[16]:` ``` ns.sel({'a': 0, 'X': 10}) ``` ``` 1-Networks NetworkSet: [2-Port Network: 'ntwk_0', 75.0-110.0 GHz, 101 pts, z0=[50.+0.j 50.+0.j]] ``` Selecting the sub-NetworkSet matching a range of parameters also works: `[18]:` ``` ns.sel({'a': 0, 'X': [10,20]}) ``` `[18]:` ``` ns.sel({'a': [0,1], 'X': [10,20]}) ``` The various named parameter keys and values of the NetworkSet can be retrieved using the `dims` and `coords` properties: `[20]:` `ns.dims` `[20]:` ``` dict_keys(['a', 'X', 'c']) ``` `[21]:` `ns.coords` `[21]:` ``` {'a': [0, 1, 2], 'X': [10, 20], 'c': ['A']} ``` ## Interpolating between the Networks of a NetworkSet¶ It is possible to create new Networks interpolated from the Networks contained in a `NetworkSet` . If no `params` properties have been defined for each Network of the NetworkSet, the ``` interpolate_from_network() ``` method can be used to specify a interpolating parameter. `[22]:` ``` param_x = [1, 2, 3] # a parameter associated to each Network x0 = 1.5 # parameter value to interpolate for interp_ntwk = ro_ns.interpolate_from_network(param_x, x0) print(interp_ntwk) ``` An illustrated example is given in the Examples section of the documentation. It is also possible to interpolate using a named parameter when they have been defined: `[23]:` ``` # Interpolated Network for a=1.2 within X=10 Networks: ns.interpolate_from_params('a', 1.2, {'X': 10}) ``` ``` 2-Port Network: 'ntwk_0', 75.0-110.0 GHz, 101 pts, z0=[50.+0.j 50.+0.j] ``` The Circuit class represents a circuit of arbitrary topology, consisting of an arbitrary number of N-ports Networks connected together. Like in an electronic circuit simulator, the circuit must have one (or more) `Port` connected to the circuit. The `Circuit` object allows one retrieving the M-ports `Network` (and thus its network parameters: \(S\), \(Z\), etc.), where M is the number of ports defined. Moreover, the `Circuit` object also allows calculating the scattering matrix \(S\) of the entire circuit, that is the “internal” scattering matrices for the various intersections in the circuit. The calculation algorithm is based on ref [1]. The figure below illustrates a network with 2 ports, `Network` elements \(N_i\) and intersections: one must must define the connection list (“netlist”) of the circuit. This connexion list is defined as a List of List of interconnected Tuples : ``` connexions = [ [(network1, network1_port_nb), (network2, network2_port_nb), (network2, network2_port_nb), ...], ... ] ``` For example, the connexion list to construct the above circuit could be: ``` connexions = [ [(port1, 0), (network1, 0), (network4, 0)], [(network1, 1), (network2, 0), (network5, 0)], [(network1, 2), (network3, 0)], [(network2, 1), (network3, 1)], [(network2, 2), (port2, 0)], [(network5, 1), (ground1, 0)], [(network5, 2), (open1, 0)] ] ``` where we have assumed that `port1` , `port2` , `ground1` , `open1` and all the `network1` to `network5` are scikit-rf Networks objects with same `Frequency` . Networks can have different (real) characteristic impedances: mismatch are taken into account. Convenience methods are provided to create ports and grounded connexions: Warnings Circuit requires distinct `Network` names for each `Network` . So, in case you would like to use multiple times the same `Network` , you have to duplicate this `Network` (for example using the `.copy()` method) and to specify a distinct `.name` property for each copy, like: ``` # Assuming network1 is the Network you would like to duplicate: network2 = network1.copy() network1.name = 'My first Network' network2.name = 'My second network' ``` In addition, a set should appear only once in the connection list. In case you would like to connect multiple networks to a single ones (like grounding multiple networks), there is two solutions: * connecting the N networks to a single `Ground` object once like in: ``` # in the connection list: ... [(network1,1),(network2,1),(network3,1),(gnd,0)] ... ``` Or create as many distinct `Ground` objects (also with unique `name` properties as mentionned above) as necessary. ``` # in the connection list: ... [(network1,1), (gnd1,0)], [(network2,1), (gnd2,0)], [(network3,1), (gnd3,0)], ... ``` Once the connexion list is defined, the `Circuit` with: ``` resulting_circuit = rf.Circuit(connexions) ``` `resulting_circuit` is a Circuit object. The resulting 2-ports `Network` is obtained with the Circuit.network parameter: ``` resulting_network = resulting_circuit.network ``` Note that it is also possible to create manually a circuit of multiple `Network` objects using the connecting methods of `scikit-rf` . Although the `Circuit` approach to build a multiple `Network` may appear to be more verbose than the ‘classic’ way for building a circuit, as the circuit complexity increases, in particular when components are connected in parallel, the `Circuit` approach is interesting as it increases the readability of the code. Moreover, `Circuit` circuit topology can be plotted using its `plot_graph` method, which is usefull to rapidly control if the circuit is built as expected. ### Loaded transmission line¶ Assume that a \(50\Omega\) lossless transmission line is loaded with a \(Z_L=75\Omega\) impedance. If the transmission line electric length is \(\theta=0\), then one would thus expect the reflection coefficient to be: `[1]:` ``` import skrf as rf rf.stylely() ``` ``` Z_0 = 50 Z_L = 75 theta = 0 # the necessary Frequency description freq = rf.Frequency(start=1, stop=2, unit='GHz', npoints=3) # The combination of a transmission line + a load can be created # using the convenience delay_load method # important: all the Network must have the parameter "name" defined tline_media = rf.DefinedGammaZ0(freq, z0=Z_0) delay_load = tline_media.delay_load(rf.zl_2_Gamma0(Z_0, Z_L), theta, unit='deg', name='delay_load') # the input port of the circuit is defined with the Circuit.Port method port1 = rf.Circuit.Port(freq, 'port1', z0=Z_0) # connexion list cnx = [ [(port1, 0), (delay_load, 0)] ] # building the circuit cir = rf.Circuit(cnx) # getting the resulting Network from the 'network' parameter: ntw = cir.network print(ntw) ``` ``` 1-Port Network: '', 1.0-2.0 GHz, 3 pts, z0=[50.+0.j] ``` `[3]:` ``` # as expected the reflection coefficient is: print(ntw.s[0]) ``` `[[0.2+0.j]]` It is also possible to build the above circuit using a series impedance Network, then shorted: To do so, one would need to use the `Ground()` method to generate the required `Network` object. `[4]:` ``` port1 = rf.Circuit.Port(freq, 'port1', z0=Z_0) # piece of transmission line and series impedance trans_line = tline_media.line(theta, unit='deg', name='trans_line') load = tline_media.resistor(Z_L, name='delay_load') # ground network (short) ground = rf.Circuit.Ground(freq, name='ground') # connexion list cnx = [ [(port1, 0), (trans_line, 0)], [(trans_line, 1), (load, 0)], [(load, 1), (ground, 0)] ] # building the circuit cir = rf.Circuit(cnx) # the result if the same : print(cir.network.s[0]) ``` `[[0.2+0.j]]` ### LC Filter¶ Here we model a low-pass LC filter, with example values taken from rf-tools.com : `[5]:` ``` freq = rf.Frequency(start=0.1, stop=10, unit='GHz', npoints=1001) tl_media = rf.DefinedGammaZ0(freq, z0=50, gamma=1j*freq.w/rf.c) C1 = tl_media.capacitor(3.222e-12, name='C1') C2 = tl_media.capacitor(82.25e-15, name='C2') C3 = tl_media.capacitor(3.222e-12, name='C3') L2 = tl_media.inductor(8.893e-9, name='L2') RL = tl_media.resistor(50, name='RL') gnd = rf.Circuit.Ground(freq, name='gnd') port1 = rf.Circuit.Port(freq, name='port1', z0=50) port2 = rf.Circuit.Port(freq, name='port2', z0=50) cnx = [ [(port1, 0), (C1, 0), (L2, 0), (C2, 0)], [(L2, 1), (C2, 1), (C3, 0), (port2, 0)], [(gnd, 0), (C1, 1), (C3, 1)], ] cir = rf.Circuit(cnx) ntw = cir.network ``` ``` ntw.plot_s_db(m=0, n=0, lw=2, logx=True) ntw.plot_s_db(m=1, n=0, lw=2, logx=True) ``` When building a `Circuit` made of few networks, it can be usefull to represent the connexion graphically, in order to check for possible errors. This is possible using the Circuit.plot_graph() method. Ports are indicated by triangles, Network with squares and interconnections with circles. It is possible to display the network names as well as their associated ports (and characteristic impedances): `[7]:` ``` cir.plot_graph(network_labels=True, network_fontsize=15, port_labels=True, port_fontsize=15, edge_labels=True, edge_fontsize=10) ``` [1] <NAME>., 2003. Method for calculating the scattering matrix of arbitrary microwave networks giving both internal and external scattering. Microw. Opt. Technol. Lett. 38, 99–102. https://doi.org/10/d27t7m `[ ]:` Download This Notebook: `Calibration.ipynb` This tutorial describes how to use scikit-rf to calibrate data taken from a VNA. For an introduction to VNA calibration see this article by Rumiantsev and Ridler [1]., for an outline of different calibration algorithms see Doug Ryttings presentation [2]. If you like to read books, then you may want to checkout [3]. What follows are examples of how to calibrate a device under test (DUT), assuming you have measured an acceptable set of standards, and have a corresponding set ideal responses. This may be referred to as offline calibration, because it is not occurring onboard the VNA itself. One benefit of this technique is that it provides maximum flexibility for non-conventional calibrations, and preserves all raw data. There are many calibration algorithms implemented in scikit-rf. The choice between them depends of the media, the available calibration standards and the desired trade-off between accuracy and effort. The calibration algorithms available in scikit-rf are listed in the Calibration API’s page. ## Creating a Calibration¶ Calibrations are performed through a Calibration class. In General, Calibration objects require two arguments: a list of measured `Network` ’s * a list of ideal `Network` ’s The `Network` elements in each list must all be similar (same number of ports, frequency info, etc) and must be aligned to each other, meaning the first element of ideals list must correspond to the first element of measured list. Self calibration algorithms, such as TRL, do not require predefined ideal responses. ## One-Port Example¶ This example code is written to be instructive, not concise. To construct a one-port calibration you need to have measured at least three standards and have their known ideal responses in the form of `Network` s. These `Network` can be created from touchstone files, a format all modern VNA’s support. In the following script the measured and ideal touchstone files for a conventional short-open-load (SOL) calkit are in folders `measured/` and `ideal/` , respectively. These are used to create a `OnePort` Calibration and correct a measured DUT ## created necessary data for Calibration class # a list of Network types, holding 'ideal' responses my_ideals = [\ rf.Network('ideal/short.s1p'), rf.Network('ideal/open.s1p'), rf.Network('ideal/load.s1p'), ] # a list of Network types, holding 'measured' responses my_measured = [\ rf.Network('measured/short.s1p'), rf.Network('measured/open.s1p'), rf.Network('measured/load.s1p'), ] ## create a Calibration instance cal = rf.OnePort(\ ideals = my_ideals, measured = my_measured, ) # apply it to a dut dut = rf.Network('my_dut.s1p') dut_caled = cal.apply_cal(dut) dut_caled.name = dut.name + ' corrected' ### Concise One-port¶ This example achieves the same task as the one above except in a more concise programmatic way. my_ideals = rf.load_all_touchstones('ideals/') my_measured = rf.load_all_touchstones('measured/') ## what you do with 'cal' may may be similar to above example ``` ## Two-port Calibrations¶ Naturally, two-port calibration is more involved than one-port. skrf supports a few different two-port algorithms. The traditional `SOLT` algorithm uses the 12-term error model. This algorithms is straightforward, and similar to the OnePort example. The `EightTerm` calibration is based on the algorithm described in [4], by R.A.Speciale. It can be constructed from any number of standards, providing that some fundamental constraints are met. In short, you need three two-port standards; one must be transmissive, and one must provide a known impedance and be reflective. Note, that the word 8-term is used in the literature to describe a specific error model used by a variety of calibration algorithms, like TRL, LRM, etc. The `EightTerm` class, is an implementation of the algorithm cited above, which does not use any self-calibration. One important detail of using the 8-term error model formulation is that switch-terms may need to be measured in order to achieve a high quality calibration (thanks to <NAME> for pointing this out). These are described next. ### Switch-terms¶ Originally described by <NAME>[5], switch-terms account for the fact that the 8-term (aka error-box ) model is overly simplified. The two error networks change slightly depending on which port is being excited. This is due to the internal switch within the VNA. Hence, switch terms describe the imperfect load when the source is switch to the other port. Switch terms can be directly measured with a low insertion loss transmissive standard (like a thru) connected between the cables connected to the instrument ports. Sometime, a custom measurement configuration is available on the VNA itself. skrf has support for measuring switch terms in the `skrf.vi.vna` module, see the HP8510’s ``` skrf.vi.vna.HP8510C.switch_terms ``` , or PNA’s ``` skrf.vi.vna.PNA.get_switch_terms ``` . Without switch-term measurements, your calibration quality will vary depending on properties of you VNA. ### Using one-port ideals in two-port Calibration¶ Commonly, you have data for ideal data for reflective standards in the form of one-port touchstone files (ie `.s1p` ). To use this with skrf’s two-port calibration method you need to create a two-port network that is a composite of the two networks. The function does this ``` short = rf.Network('ideals/short.s1p') shorts = rf.two_port_reflect(short, short) ``` ### SOLT Example¶ Two-port calibration is accomplished in an identical way to one-port, except all the standards are two-port networks. This is even true of reflective and load standards (S21=S12=0). So if you measure reflective or load standards you should measure two of them simultaneously, and store information in a two-port. For example, connect a short to port-1 and a short to port-2, and save a two-port measurement as ‘short,short.s2p’ or similar. Alternatively, for a `SOLT` , `TwelveTerm` , or `EightTerm` calibration, it’s also acceptable to measure one port at a time while leaving the other unused port open. Later, two one-port networks can be combined to a two-port network using , explained above. By default, no isolation calibration takes place. For reflective and even load standards, \(S_{21}\) and \(S_{12}\) are ignored. If isolation calibration is needed, one must explicitly tell scikit-rf to do so. Specifically, an optional parameter `isolation` is used for this purpose. To calibrate isolation, set this parameter to a two-port network, representing the measurement result with loads on both ports. It should be noted that the less common (but still supported `SixteenTerm` calibration is a notable exception: this calibration is specifically designed to eliminate port leakages better than the standard `SOLT` model. Measuring a combination of standards at both port simultaneously is required. ``` import skrf as rf from skrf.calibration import SOLT # a list of Network types, holding 'ideal' responses my_ideals = [ rf.Network('ideal/short, short.s2p'), rf.Network('ideal/open, open.s2p'), rf.Network('ideal/load, load.s2p'), rf.Network('ideal/thru.s2p'), ] # a list of Network types, holding 'measured' responses my_measured = [ rf.Network('measured/short, short.s2p'), rf.Network('measured/open, open.s2p'), rf.Network('measured/load, load.s2p'), rf.Network('measured/thru.s2p'), ] ## create a SOLT instance cal = SOLT( ideals = my_ideals, measured = my_measured, rf.Network('measured/load, load.s2p'), # isolation calibration is optional, it can be removed. ) # apply it to a dut dut = rf.Network('my_dut.s2p') dut_caled = cal.apply_cal(dut) ## Saving and Recalling a Calibration¶ Calibration’s can be written-to and read-from disk using the temporary storage container of pickles. Writing can be accomplished by using `Calibration.write` , or `rf.write()` , and reading is done with `rf.read()` . Since these functions rely on pickling, they are not recommended for long-term data storage. Currently there is no way to achieve long term storage of a Calibration object, other than saving the script used to generate it. [3] <NAME>, “Handbook of microwave component measurements: with advanced vna techniques”. Hoboken, N.J: Wiley, 2012. [4] <NAME>, “A Generalization of the TSD Network-Analyzer Calibration Procedure, Covering n-Port Scattering-Parameter Measurements, Affected by Leakage Errors,” Microwave Theory and Techniques, IEEE Transactions on , vol.25, no.12, pp. 1100- 1115, Dec 1977. URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=1129282&isnumber=25047 [5] <NAME>, “Formulations of the Basic Vector Network Analyzer Error Model including Switch-Terms,” ARFTG Conference Digest-Fall, 50th , vol.32, no., pp.115-126, Dec. 1997. URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=4119948&isnumber=4119931 `[ ]:` Date: 2005-01-01 Categories: Tags: This is a short tutorial on how de-embedding can be performed using scikit-rf. We will start by introducing the concept of de-embedding and why it is required, with a simple use-case scenario. Next, we will go through what kinds of de-embedding exist, and how to choose the right one for your application. Lastly, we will see how code can be written to quickly perform de-embedding on your s-parameter datasets. ## What is de-embedding and how does it differ from calibration?¶ Let’s start with an example. Consider the measurement of integrated RF transistors built on a silicon wafer which are vital to the development of compact models for integrated circuit design. The typical measurement setup for such a scenario involves the use of RF probes that have a co-axial connector at one end, and a ground-signal-ground (GSG) probe tip at the other. This probe tip lands on GSG pads constructed on-wafer that provides access to the transistor under test. To measure an RF transistor, the actual device-under-test (DUT) is connected to GSG pads at two of the three terminals of the transistor via metal interconnects, while connecting the third terminal to RF ground. In common-source measurement configuration of a FET, this means that the Gate and Drain terminals are connected to the RF probes, and the Source terminal is grounded. Now, s-parameters are measured as a function of terminal voltages on the transistor. But what is the calibration reference plane for this transistor s-parameter measurement? The effects of the cabling and probe transitions can be removed by performing a standard calibration using methods such as Thru-Reflect-Line (TRL) or Short-Open-Load-Thru (SOLT) to move the calibration reference to the probe tips, or in other words, to the GSG pads implemented on-wafer. The use of an Impedance Standard Substrates (ISS) provides a set of well-defined calibration standards that can be used to establish such a reference plane for measurement. However, there is still a substantial “test-fixture” involving metal interconnects that need to be removed before accessing the real terminals of the RF transistor whose measurement we actually want. De-embedding refers to the removal of extraneous effects that a test fixture can have on the measurement of a device under test (DUT). The figure below (obtained from here) shows an example of the “test-fixture” that often has to be removed in on-wafer measurement applications. The de-embedding process differs from calibration in that no well known standards are used either because they cannot exist in certain environments, or are not practical to implement given space and cost constraints. De-embedding uses several dummy structures that help remove unwanted test fixture effects, but does not provide enough information to deduce a complete error box network like those obtained using standard calibration techniques. Since the test fixture itself may contain various transitions and interconnects before reaching the DUT, de-embedding is useful when simple scalar port extension of the reference plane is not applicable. For a basic introduction to this topic, refer this article. ## Open-Short De-embedding¶ In the last few decades of on-wafer RF measurements, the Open-Short de-embedding method has been the work horse of the RFIC industry where the frequencies of transistor operation have predominantly been in the range of a few gigahertz. As transistor measurements are extended to higher frequencies, more sophisticated de-embedding methods are required when the simplifying assumptions of Open-Short de-embedding break down. It is not easy to define a frequency limit up to which Open-Short de-embedding is valid because it depends on the layout techniques adopted in the design of on-wafer pad cages. If proper design techniques are adopted, Open-Short de-embedding should be applicable at least to 10 GHz if not more. The accuracy of Open-Short de-embedding depends on the validity of assumption that the test-fixture parasitics are a combination of parallel conductances (in red) and series impedances (in orange) as shown in the figure below. The lumped element model is usually representative of an on-wafer test-fixture, because first there is the shunt pad capacitance in the GSG pads, followed by the series impedance of the interconnect lines. To move the reference plane of the measurements from the plane of calibration (the outer terminals of the network below) to the DUT, two dummy structures - Open and Short - are needed in addition to the DUT. To create an Open dummy, the DUT is simply removed from the test fixture, while the three terminals are shorted together to implement the Short dummy. With the help of these dummies, the real measurements of the DUT can be extracted. The detailed procedure of OpenShort de-embedding is shown in the figure below. The measurement result for the open dummy are clearly similar to those for parallel parasitics. The parallel parasitics are extracted simply by measuring the open dummies (step i). On the other hand, the short dummy includes both parallel and series parasitics. The series parasitics are extracted by subtracting the parallel parasitics from the short dummy in the Y-parameter domain (step ii). By subtracting the parallel and series parasitics from the DUT measurement results in the Y- and Z-parameter domains, respectively, a DUT without parasitic components can be extracted (step iii). The reader is referred to this detailed presentation for intricate details regarding the design of on-wafer test structures and best practices. From here on, we will focus on explaining how the de-embedding class in scikit-rf works. ## De-embedding with Scikit-RF¶ In this section, let us build up a concrete example to demonstrate how de-embedding in scikit-rf works. Assume that the device under test is a 1nH inductor whose measurements we are interested in. Since this inductor must be placed in an on-wafer test-fixture, let us assume that the pad capacitance at each port is 25fF, the pad-pad capacitance is 10fF, and the resistance of interconnect lines from each pad are 2-ohms each. The resulting network whose measurements are available at the external reference plane P1-P2, is shown below. The goal is to accurately extract the actual 1nH inductor by removing all other extraneous parasitic circuit elements. `[1]:` ``` # Look at the raw inductor measurement with parasitics included # From S11/S22, it is clear that it is not a pure inductance. raw_ind = rf.data.ind raw_ind.plot_s_smith() ``` If we were to extract inductance directly from this measurement, we will have an inductance value that changes with frequency, and the quality factor will also be influenced by the presence of parasitic resistors. `[3]:` ``` # plot the inductance and q-factor of the raw inductor measurement Lraw_nH = 1e9 * np.imag(1/raw_ind.y[:,0,0])/2/np.pi/raw_ind.f Qraw = np.abs(np.imag(1/raw_ind.y[:,0,0])/np.real(1/raw_ind.y[:,0,0])) fig, (ax1, ax2) = plt.subplots(1,2) ax1.plot(raw_ind.f*1e-9, Lraw_nH) ax1.grid(); ax1.set_ylabel("Inductance (nH)"); ax1.set_xlabel("Freq. (GHz)") ax2.plot(raw_ind.f*1e-9, Qraw) ax2.grid(); ax2.set_ylabel("Q-factor"); ax2.set_xlabel("Freq. (GHz)") fig.tight_layout() ``` To create an open dummy structure, the DUT, which is the 1nH inductor here is simply removed from the DUT test structure resulting in the circuit shown below. To create a short dummy structure, the internal terminals of the test-fixture that would otherwise connect to the DUT are shorted to ground as shown below. `[4]:` ``` # load in 2-ports short/open dummy networks open_nw = rf.data.open_2p short_nw = rf.data.short_2p ``` To perform Open-Short de-embedding with the available dummy measurements, we create a de-embedding object as an instance of the `OpenShort` class, while providing the open and short network objects as arguments to the de-embedding object creation. To get the de-embedded network, we apply the `deembed` method on the network object on which we want to perform the de-embedding operation. This is shown below. `[5]:` ``` from skrf.calibration import OpenShort dm = OpenShort(dummy_open=open_nw, dummy_short=short_nw, name='tutorial') actual_ind = dm.deembed(raw_ind) actual_ind.plot_s_smith() ``` ``` # plot the inductance of the de-embedded measurement # we ignore plotting Q-factor here, because an ideal lossless inductor has infinite Q Lactual_nH = 1e9 * np.imag(1/actual_ind.y[:,0,0])/2/np.pi/actual_ind.f fig, ax1 = plt.subplots(1,1) ax1.plot(actual_ind.f*1e-9, Lactual_nH) ax1.grid(); ax1.set_ylim(0.95, 1.1) ax1.set_ylabel("Inductance (nH)"); ax1.set_xlabel("Freq. (GHz)") fig.tight_layout() ``` From the plot above, it is seen that the actual inductor value is accurately extracted even in the presence of unwanted parasitic elements due to proper de-embedding of the test-fixture. ## Through-only de-embedding¶ At higher frequencies above 10 GHz, the fringe capacitance of the open dummy and the parasitic inductance of the short dummy cause errors. For high frequencies, several methods using a through (thru) dummy have been proposed, such as `SplitPi` [1], `SplitTee` [2], `AdmittanceCancel` [3], and `ImpedanceCancel` [4]. The thru dummy is a direct connection of the left and right test pads. The example of the test device and thru dummy is shown in the figure below, where G and S indicate ground pads and signal pads. ### Split methods¶ Split methods are based on lumped elements assumption as well as the open or short methods. The `SplitPi` and `SplitTee` methods assume that the embedding-networks are Π-network and T-network, respectively, as shown in the figure below. The values of the left and right parasitics (i.e. Z and Y) are extracted from the thru dummy. The parasitics are removed by multiplying by the inverse of the left and right ABCD matrix. These methods can apply to only 2-port DUTs. ### Immittance cancel methods¶ The `AdmittanceCancel` (a.k.a Mangan’s method) and `ImpedanceCancel` methods are also based on lumped elements assumption as shown in the figure below. However, unlike the split methods, they do NOT directly calculate the immittance of the left and right parasitics. These methods de-embed the DUTs by left-right mirroring operation which is called ‘swapping’. The `AdmittanceCancel` method consists of two steps. First, an matrix defined as ‘H’ is calculated by multiplying the ABCD matrix of the test device by inverse matrix of thru dummy as shown in figure(c). Then, the de-embedded Y matrix is obtained by taking the average of the left-right mirrored and un-mirrored Y-parameters of H. Similarly, in the case of the `ImpedanceCancel` method, it takes the average of the Z-parameters. These methods can apply to only symmetric 2-port DUTs (i.e. S11=S22 and S12=S21), but more accurate than the split methods in the characterization of transmission lines at mmW frequencies. A comparison between the split methods and immittance cancel methods is described in [4]. ## Other De-embedding Methods¶ Other simple forms of de-embedding included in scikit-rf are `Open` , `Short` and `ShortOpen` methods, which may be applicable depending on the equivalent circuit of the parasitic network of the test-fixture. As an example, it may be desirable to only remove the pad contact resistance from the measurement for which `Short` de-embedding can be used. In certain measurements, only the pad capacitance might need to be removed, for which the `Open` de-embedding method would be more appropriate. To remove pad contact resistance and pad capacitance in one operation, the `ShortOpen` method would be the most suitable. Many other sophisticated methods of de-embedding have been reported in literature to extend the accuracy of DUT measurements up to high frequencies. While they can be done using the network operations of scikit-rf, their inclusion as a built-in de-embedding class within the package is welcomed as an open-source contribution to the project. [1]: <NAME> et al., “Experimental Characterization of the Effect of Metal Dummy Fills on Spiral Inductors,” in 2007 IEEE Radio Frequency Integrated Circuits (RFIC) Symposium, Jun. 2007, pp. 307–310. [2]: <NAME> et al., “Experimental validation of crosstalk simulations for on-chip interconnects using S-parameters,” IEEE Transactions on Advanced Packaging, vol. 28, no. 1, pp. 57–62, Feb. 2005. [3]: <NAME> et al., “De-embedding transmission line measurements for accurate modeling of IC designs,” IEEE Trans. Electron Devices, vol. 53, no. 2, pp. 235–241, Feb. 2006. [4]: <NAME> et al., “Comparative analysis of on-chip transmission line de-embedding techniques,” in 2015 IEEE International Symposium on Radio-Frequency Integration Technology, Aug. 2015, pp. 91–93. `[ ]:` Date: 1999-01-01 Categories: Tags: ## Resonant Circuits and Q-factor¶ Resonant circuits are used extensively in oscillators, tuned amplifiers, filters, etc. At a particular frequency, a resonant frequency \(f_r\) (or \(\omega_r\)), resonators presents a maximum (or a minimum) impedance (ex: open or short circuit)[1]. The quality factor \(Q\), or Q-factor, is a unitless figure of merit of the losses of a resonant passive circuit, defined as [2,3]: From this definition, lower loss implies a higher \(Q\). Resonators having higher Q-factors resonate with greater amplitudes (at the resonant frequency) but have a smaller range of frequencies \(BW\) around that frequency for which they resonate. ## Loaded of Unloaded Q-factors¶ Actually, there are three Q factors than can be defined depending upon which loss is being considered [2]: Loaded Q: \[Q_L = \omega_r \left. \frac{\textrm{Energy Stored in the Resonant Circuit}}{\textrm{Total Power Loss}} \right|_{\omega=\omega_r}\] The loaded Q-factor \(Q_L\), describes energy dissipation within the entire resonant system comprising of the resonator itself and the instrument used for observing resonances [3]. The term loading refers to the effect that the external circuit has on measured quantities. Any loss mechanisms due to the external circuitry will have the effect of lowering the \(Q\). The unloaded Q-factor \(Q_0\) is a characteristic of the resonator itself, in the absence of any loading effects caused by external circuitry (uncoupled). For most applications, the quantity that is desired is the unloaded Q-factor \(Q_0\) which is determined by energy dissipation associated with the resonator only and therefore gives the best description of the resonant mode. Direct measurement of the unloaded Q of a resonator is generally not possible because of the loading effect of the measurement system. However, it is possible to estimate \(Q_0\) from measurements of the frequency response of the loaded resonator. The energy dissipation in the external circuit is characterized by the external Q-factor \(Q_e\) and these three Q-factors are related by the relationship (deduced from the three expressions above): If one defines the coupling factor \(\beta=Q_0/Q_e\) then: Three cases can be distinguished: \(\beta<1\): The resonator is said to be undercoupled to the feeding circuitry * \(\beta=1\): The resonator is said to be critically coupled * \(\beta>1\): The resonator is said to be overcoupled While the measurements of the loaded Quality factor \(Q_L\) is straightforward, obtaining uncertainty below 1% (which is considered to be low for Q-factor measurement) requires attention to several aspects of the experimental procedure. In addition, finding the unloaded \(Q_0\) from measured S-parameters consists in first finding the coupling factor \(\beta\), then measure \(Q_L\) from the 3dB bandwidth and using the relationships above. Fortunately, `scikit-rf` implements automatic methods for determining loaded and unloaded Q-factors from frequency-domain S-parameters. The implemented methods are described in detail in [4], and can be applied to measurements of transmission or reflection. ## Example with a Parallel RLC Circuit¶ To illustrate the usage of the `Qfactor` class of `scikit-rf` , a parallel RLC circuit as illustrated above is used as an canonical example for which analytical formulas are available for benchmarking. `[1]:` ``` C = 1e-6 # F L = 1e-9 # H R = 30 # Ohm Z0 = 50 # Ohm freq = rf.Frequency(5, 5.2, npoints=501, unit='MHz') media = rf.DefinedGammaZ0(frequency=freq, z0=Z0) # ideal line (no loss) random_d = np.random.uniform(-np.pi, np.pi) # a random length for the sake of the example resonator = media.line(d=random_d, unit='rad') \ **media.shunt_inductor(L) ** media.shunt_capacitor(C) \ ** media.shunt(media.resistor(R)**media.short()) ** media.open() resonator.plot_s_db() ``` Analytical formulas for this case are available and given by [2,3]: `[3]:` ``` def f_res_RLC(L, C): return 1/(2*np.pi*np.sqrt(L*C)) def Q_RLC(R, L, C): return R * C / np.sqrt(L*C) ``` The unloaded Q-factor \(Q_0\) is a characteristic of the resonator itself, in the absence of any loading effects caused by the external circuitry. In practice, of course, the resonator is connected and coupled to this circuitry which have the effect to lower the Q-factor of the loaded circuit \(Q_L\). Hence, when the resonator is connected to the transmission line, it is loaded with the port impedance \(Z_0\) (assuming no loss in the transmission line), which is connected in parallel to the intrinsic resonator resistor. The equivalent resonator load is therefore \(R \parallel Z_0 = (R Z_0) / (R+Z_0)\): `[4]:` ``` print(f'Theoretical Resonant Frequency: {f_res_RLC(L, C)/1e6} MHz') print(f'Theoretical Loaded Q: Q_L = {Q_RLC((R*Z0)/(R+Z0), L, C)}') # Req = R//Z0 print(f'Theoretical Unloaded Q: Q_0 = {Q_RLC(R, L, C)}') ``` ``` Theoretical Resonant Frequency: 5.032921210448704 MHz Theoretical Loaded Q: Q_L = 592.9270612815711 Theoretical Unloaded Q: Q_0 = 948.6832980505137 ``` First, let’s create a `Qfactor` object, passing the resonator Network and the type of resonator we are dealing with: `[5]:` ``` Q = rf.Qfactor(resonator, res_type='reflection') ``` Note that in case of multiple resonances (like in this example), it is recommanded to also pass the estimated resonance frequency and eventually the estimated (order of magnitude) Q-factor. Then, we use the `fit` method to fit the loaded Q-factor \(Q_L\) and resonant frequency. The returned results will be usefull to deduce the unloaded Q-factor. `[6]:` ``` res = Q.fit() print(f'Fitted Resonant Frequency: f_L = {Q.f_L/1e6} MHz') print(f'Fitted Loaded Q-factor: Q_L = {Q.Q_L}') ``` ``` Fitted Resonant Frequency: f_L = 5.032919422706807 MHz Fitted Loaded Q-factor: Q_L = 592.9272284014994 ``` Note that these results are also shown if you print the `Qfactor` object: `[7]:` `Q` `[7]:` ``` Q-factor of Network None. (fitted: f_L=5.033MHz, Q_L=592.927) ``` Finally, the unloaded Q-factor is deduced from the fitting properties: `[8]:` ``` Q0 = Q.Q_unloaded(res) print(f'Fitted Unloaded Q-factor: Q_0 = {Q0}') ``` Note that passing the result is optional. Calling the `.fit()` method will store internally the optimized results and use it if a specific optimized result is not passed: `[9]:` ``` Q0 = Q.Q_unloaded() # will use the latest optimized results performed with .fit() print(f'Fitted Unloaded Q-factor: Q_0 = {Q0}') ``` Note that the analytical results and the fitted ones match well, the relative error is small: `[10]:` ``` print(f'Relative Error on Q_0:', (Q_RLC(R, L, C) - Q0)/Q_RLC(R, L, C)) ``` ``` Relative Error on Q_0: -3.31795691951903e-07 ``` It is also possible to generate a Network from the fitted results. For example, we can compare the fitted resonator model for more frequency points to the initial RLC resonator: `[11]:` ``` new_freq = rf.Frequency(5, 5.2, npoints=5001, unit='MHz') fitted_network = Q.fitted_network(res, frequency=new_freq) ``` ``` resonator.plot_s_mag(label='Parallel RLC ', lw=2) fitted_network.plot_s_mag(label='Fitted Model', lw=2, ls='--') ``` ## Q-Circle¶ Close to a resonance, a resonator can be represented by an equivalent circuit model [1,4]. The Scattering-parameters (reflection or transmission) of RF circuits including resonator(s) have the form of circles in the complex plane \((\Re(s), \Im(s))\). S-parameters can be expressed as a function of the frequency \(f\), the loaded quality factor \(Q_L\) [1,4]: where : - \(S_D\) is the detuned S-parameter measured at frequencies far above or below the resonance - \(Q_L\) is the loaded Q-factor - \(f_L\) is the loaded resonant frequency - \(f_0\) is the unloaded resonant frequency - \(d\) is the diameter of the Q-circle - \(\delta\) is a real valued constant that defines the orientation of the Q-circle - \(\mathcal{F}\) is the fractional offset frequency given by: The fractional frequency \(\mathcal{F}\) is a convenient way to express the frequency when dealing with resonant circuits: \(\mathcal{F}=0\) at the resonant frequency and when \(f<f_L\), \(\mathcal{F}\) is negative, while it is positive when \(f>f_L\). If \(\Delta f = f - f_L\) is the frequency deviation from the resonance, then close to the resonance: For example, if the source frequency is 10% below the resonant frequency (\(0.9 f/f_L\)), then \(\mathcal{F}\approx -0.2\). The parameters (diameters and tuned and off-tuned S-parameters) of the Q-circle can eventually be obtained from: `[13]:` ``` diam, S_V, S_T = Q.Q_circle() ``` Use a polar plane to check the results: `[14]:` ``` fig, ax = plt.subplots(subplot_kw={'projection': 'polar'}) resonator.plot_s_polar(ax=ax, label="RLC Resonator", ls='', marker='x', ms=5) fitted_network.plot_s_polar(ax=ax, label="Fitted Model", lw=2) ax.plot(np.angle(S_V), np.abs(S_V), 'ko') ax.plot(np.angle(S_T), np.abs(S_T), 'ko') ax.text(np.angle(S_T), 0.8*np.abs(S_T), '$S_T$') ax.text(np.angle(S_V), 1.1*np.abs(S_V), '$S_V$') ``` ``` Text(-2.9724386372174765, 1.1, '$S_V$') ``` ## Bandwidth¶ Another definition of the Q-factor is the frequency-to-bandwidth ratio of a transmission resonator [6]: where \(f_r\) is the resonant frequency, \(\Delta f=BW\) is the resonance width or fractional bandwidth BW. Note that this definition is only an approximation, which can be not accurate when there is significant leakage (see [4] for more information). The definition of the bandwidth also depends on the resonator type: transmission: bandwidth, also known as full width at half maximum (FWHM), is the bandwidth over which the dissipated power is half the maximum value at the resonant frequency (3 dB below the max value). * reflection: while it is possible to define the bandwidth as the 3-dB points below the max reflection coefficient [6], a more proper definition of the bandwidth consists in measuring the difference between frequencies \(f_1\) and \(f_2\), which belong to the two points inclined by 45 degrees on each side of the centerline from \(S_T\) to the origin (see [4,8] for additional details). Using the previous relation, the bandwith BW can also be obtained from the `Qfactor` class via the `.BW` parameter. `[15]:` ``` BW = Q.BW print(f'Bandwidth: {BW} Hz') ``` ``` Bandwidth: 8488.258223990308 Hz ``` ``` fig, ax = plt.subplots() resonator.plot_s_db(label='Parallel RLC ', lw=2, ax=ax) ax.axvspan(xmin=Q.f_L-Q.BW/2, xmax=Q.f_L+Q.BW/2, alpha=0.3, label='Bandwidth') ax.legend() ``` ``` <matplotlib.legend.Legend at 0x7f19238b52d0> ``` [1] <NAME>, “Scattering Matrix Description of Microwave Resonators,” in IEEE Transactions on Microwave Theory and Techniques, vol. 31, no. 8, pp. 669-671, Aug. 1983, doi: 10.1109/TMTT.1983.1131566. * [2] <NAME>, “Microwave Engineering: Passive Circuits”, Prentice-Hall, 1988 * [3] <NAME>, “Microwave Engineering”, 4th Edition, Éditeur Wiley, 2011 * [4] <NAME>, “Q-factor Measurement by using a Vector Network Analyser”, National Physical Laboratory Report MAT 58 (2021), https://eprintspublications.npl.co.uk/9304/ * [5] Microwaves101, “Resonance of RLC Circuits”, https://www.microwaves101.com/encyclopedias/resonance-of-rlc-circuits * [6] Green, Estill I. (October 1955). “The Story of Q”, American Scientist. 43: 584–594. http://www.collinsaudio.com/Prosound_Workshop/The_story_of_Q.pdf * [7] <NAME> and <NAME>, ‘Characterization of high-Q resonators for microwave filter applications’, IEEE Transactions on Microwave Theory and Techniques, vol. 47, no. 1, pp. 111–114, Jan. 1999, doi: 10.1109/22.740093. * [8] <NAME>, “Q factor measurements, analog and digital”, https://people.engineering.olemiss.edu/darko-kajfez/assets/rfqmeas2b.pdf `[ ]:` Date: 1995-03-02 Categories: Tags: Download This Notebook: `Media.ipynb` Scikit-rf supports S-Parameters simulations of transmission line models such as hollow waveguide, coaxial, microstripline and freespace among others. The Media object stores the properties of a media, such as the propagation constant and the characteristic impedance. The network objects - like a line of a given length - are generated from the media. This tutorial illustrates how to create networks using several kinds of media. It also explains the most common pitfalls regarding the network port impedance and characteristic impedance. The singular of the Latin word media is medium, which means middle or center. For clarity’s sake, media is used for both singular and plural in scikit-rf. ## RG58C/U coaxial cable¶ Two arguments are common to all media constructors: * `frequency` (required) * `z0_port` (optional) The frequency axes `frequency` is a `Frequency` object defining the media band. The port impedance `z0_port` is optional and is used to renormalize from the media characteristic impedance `z0` to the port impedance of a simulated measurement. If no port impedance `z0_port` is specified, the lines have the raw characteristic impedance `z0` of the media. An example with an RG58C/U flexible coaxial cable media follows. ### Simulating a VNA measurement¶ # import the desired media and the frequency axis from skrf.media import Coaxial from skrf import Frequency # frequency f_rg58 = Frequency(1, 5, 101, 'GHz') # media with z0_port the port impedance of the VNA rg58 = Coaxial(f_rg58, Dint = 0.91e-3, Dout = 2.95e-3, epsilon_r = 2.3, z0_port = 50) print(rg58) ``` ``` Coaxial Media. Coaxial Media. 1.0-5.0GHz, 101 points. Dint = 0.91 mm, Dout = 2.95 mm z0 = (46.5, -0.0j)-(46.5, -0.0j) Ohm z0_port = (50.0, 0.0j)-(50.0, 0.0j) Ohm ``` The Media has a characteristic impedance `z0` of approximately 47 Ohm. The port impedance `z0_port` is 50 Ohm. The propagation constant `gamma` is also computed from the Media parameters. These properties defines the transmission line model. `[2]:` ``` print(f'z0 = {rg58.z0[0]}') print(f'z0_port = {rg58.z0_port[0]}') print(f'gamma = {rg58.gamma[0]}') ``` ``` z0 = (46.498279485749585-1.4305426589662282e-47j) z0_port = 50.0 gamma = (9.778832628186221e-48+31.78506350298949j) ``` Let’s create a line network corresponding to a 100 millimeter length of coax. `[3]:` ``` rg58_line = rg58.line(100, unit = 'mm', name = '100 mm, z0 Ohm') print(rg58_line) ``` ``` 2-Port Network: '100 mm, z0 Ohm', 1.0-5.0 GHz, 101 pts, z0=[50.+0.j 50.+0.j] ``` The characteristic impedance `z0` of the media has been renormalized to port impedance `z0_port` . The network has a port impedance `z0` equal to `z0_port` . In some cases, lines of arbitrary impedance are required without creating multiples media. The impedance of the line can be overridden at construction. The resulting network is renormalized to `z0_port` . `[4]:` ``` rg58_25ohm_line = rg58.line(100, unit = 'mm', z0 = 25, name = '100 mm, 25 Ohm') print(rg58_25ohm_line) ``` ``` 2-Port Network: '100 mm, 25 Ohm', 1.0-5.0 GHz, 101 pts, z0=[50.+0.j 50.+0.j] ``` Let’s plot the two lines S-Parameters. `[5]:` ``` fig, axes = plt.subplots(1, 2, figsize = (8, 3.5)) # return loss rg58_line.plot_s_db(0, 0, ax = axes[0]) rg58_25ohm_line.plot_s_db(0, 0, ax = axes[0]) axes[0].set_title('Return Loss') rg58_line.plot_s_db(1, 0, ax = axes[1]) rg58_25ohm_line.plot_s_db(1, 0, ax = axes[1]) axes[1].set_title('Insertion Loss') plt.tight_layout() ``` The return loss and insertion loss show the effect of the mismatch between the port impedance `z0_port` and the characteristic impedance `z0` of the line, that is either defined by the geometry or forced to an arbitrary value. ## Basic examples¶ Let’s create two networks, a length of 50-Ohm planar microstripline and a length of WR-10 rectangular waveguide. First of all, create two Media objects with the model parameters. ### Media objects¶ # import the desired media and the frequency axis from skrf.media import MLine from skrf.media import RectangularWaveguide from skrf import Frequency from skrf.constants import to_meters # create frequency axes f_mlin = Frequency(0.1, 10,1001, 'GHz') f_wr10 = Frequency(75, 110, 1001,'GHz') # create media from parameters mlin = MLine(f_mlin, w = 3e-3, h = 1.6e-3, t = 35e-6, ep_r = 4.5, rho = 1.68e-08) print(mlin) wr10 = RectangularWaveguide(f_wr10, a = to_meters(100, 'mil'), b = to_meters(50, 'mil'), ep_r = 1.0, rho = 1.68e-08) print(wr10) ``` ``` Microstripline Media. 0-10 GHz. 1001 points W= 3.00e-03m, H= 1.60e-03m Rectangular Waveguide Media. 75-110 GHz. 1001 points a= 2.54e-03m, b= 1.27e-03m ``` ### Line creation¶ Secondly, use the Media objects to generate networks corresponding to a 100 millimeter length of both media. `[7]:` ``` # create the transmission line networks mlin_100 = mlin.line(100e-3, unit = 'm', name = 'mlin 100mm') print(mlin_100) wr10_100 = wr10.line(100e-3, unit = 'm', name = 'wr10 100mm') print(wr10_100) ``` ``` 2-Port Network: 'mlin 100mm', 0.1-10.0 GHz, 1001 pts, z0=[49.66276714+0.j 49.66276714+0.j] 2-Port Network: 'wr10 100mm', 75.0-110.0 GHz, 1001 pts, z0=[610.44975418+0.24337983j 610.44975418+0.24337983j] ``` ### Plotting the results¶ The S-Parameters of the lines are plotted in the figure below. `[8]:` ``` # prepare figure fig1, axes = plt.subplots(2, 2, figsize = (8, 6)) # plot miscrostipline mlin_100.plot_s_mag(0, 0, ax = axes[0,0]) mlin_100.plot_s_db(1, 0, ax = axes[0,1]) # plot rectangular waveguide wr10_100.plot_s_mag(0, 0, ax = axes[1,0]) wr10_100.plot_s_db(1, 0, ax = axes[1,1]) # resize plot nicely axes[0, 0].set_ylim((-1, 1)) axes[1, 0].set_ylim((-1, 1)) fig1.tight_layout() ``` ``` /home/docs/checkouts/readthedocs.org/user_builds/scikit-rf/envs/latest/lib/python3.10/site-packages/skrf/mathFunctions.py:265: RuntimeWarning: divide by zero encountered in log10 out = 20 * npy.log10(z) ``` The insertion loss S21 of the transmission line is frequency dependent, but the S11 magnitude is constant and zero. The absolute magnitude of S11 was plotted instead of dB because log(0) is undefined. Why does return loss S11 not show the shape observed on vector network analyzer measurements? This is because no port impedance `z0_port` was specified at media construction. In this case, the characteristic impedance `z0` is used as port impedance and the network is perfectly matched with itself on the whole frequency band. The characteristic impedance is usually a frequency-dependent parameter. Having a frequency-dependent port impedance is often encountered in electromagnetic simulations. Real-world measurements use a constant port impedance instead. The port impedance `z0` of the line network and the characteristic impedance `z0` of the media are plotted below. These parameters are frequency-dependent. In both cases, the port impedance of the line equals the characteristic impedance of the media. The port impedance of `Network` object is also `z0` but it is not a characteristic impedance. The `Network` S-Parameters are normalized to its port impedance. `[9]:` ``` # prepare figure fig2, axes = plt.subplots(1, 2, figsize = (8, 3.5)) # plot miscrostipline axes[0].plot(mlin_100.frequency.f_scaled, mlin_100.z0[:, 0].real, marker = '.', label = f'line {mlin_100.name} port z0') axes[0].plot(mlin.frequency.f_scaled, mlin.z0.real, label = 'media mlin characteristic z0') axes[0].set_ylabel('Impedance (Ohm)') axes[0].set_xlabel(f'Frequency ({mlin.frequency.unit})') axes[0].set_title('Microstripline') axes[0].legend() # plot rectangular waveguide axes[1].plot(wr10_100.frequency.f_scaled, wr10_100.z0[:, 0].real, marker = '.', label = f'line {wr10_100.name} port z0') axes[1].plot(wr10.frequency.f_scaled, wr10.z0.real, label = 'media wr10 characteristic z0') axes[1].set_ylabel('Impedance (Ohm)') axes[1].set_xlabel(f'Frequency ({wr10.frequency.unit})') axes[1].set_title('WR-10') axes[1].legend() # resize plot nicely fig2.tight_layout() ``` ### Measured-like microstripline¶ A coaxial to microstripline transition is used and the VNA is calibrated at the end of the coaxial cable. In this example let’s assume an ideal transition (no length, perfect match on both sides). Thus, the transition is only a mismatch between VNA port impedance `z0_port` and transmission line characteristic impedance `z0` . To get S-Parameter network with 50-Ohm port impedance, either the port impedance `z0_port` can be specified at media object construction or the line can be renormalized from characteristic to port impedance. `[10]:` ``` # renormalization method mlin_100_measured1 = mlin_100.copy() mlin_100_measured1.renormalize([50, 50]) mlin_100_measured1.name = f'{mlin_100.name} renormalize' print(mlin_100_measured1) # port impedance specified at media construction method mlin_meas = MLine(f_mlin, w=3e-3, h=1.6e-3, t=35e-6, ep_r=4.5, rho=1.68e-08, z0_port=50) mlin_100_measured2 = mlin_meas.line(100e-3, unit = 'm', name = 'mlin 100mm z0_port') print(mlin_100_measured2) ``` ``` 2-Port Network: 'mlin 100mm renormalize', 0.1-10.0 GHz, 1001 pts, z0=[50.+0.j 50.+0.j] 2-Port Network: 'mlin 100mm z0_port', 0.1-10.0 GHz, 1001 pts, z0=[50.+0.j 50.+0.j] ``` The plot below shows that the characteristic impedance of the microstripline is now embedded within a network with 50-Ohm port impedance. This is equivalent to a VNA measurement with an ideal coaxial to microstripline transition. `[11]:` # plot return loss mlin_100_measured1.plot_s_db(0, 0, ax=axes[0,0]) mlin_100_measured2.plot_s_db(0, 0, ax=axes[0,0]) # plot insertion loss mlin_100_measured1.plot_s_db(1, 0, ax=axes[0,1]) mlin_100_measured2.plot_s_db(1, 0, ax=axes[0,1]) # plot port and characteristic impedances axbig.plot(mlin_100_measured1.frequency.f_scaled, mlin_100_measured1.z0[:, 0].real, marker = 'd', markevery = 30, label = f'line {mlin_100_measured1.name} z0') axbig.plot(mlin_100_measured2.frequency.f_scaled, mlin_100_measured2.z0[:, 0].real, marker = 'x', markevery = 30, label = f'line {mlin_100_measured2.name} z0') axbig.plot(mlin.frequency.f_scaled, mlin.z0.real, label = 'media mlin z0') axbig.set_ylabel('Impedance (Ohm)') axbig.set_xlabel(f'Frequency ({mlin.frequency.unit})') axbig.legend() # resize plot nicely fig3.tight_layout() ``` ### Measured-like WR-10 waveguide¶ A coaxial to waveguide transition is used. The transition is calibrated at the waveguide interface. Thus, VNA port impedance override the characteristic impedance of the waveguide. The measurement will store the port impedance instead of the characteristic impedance, which is lost. This is not normalization. The actual characteristic impedance of the line is not measured. This method is specific to hollow waveguides. To get an S-Parameters network with 50-Ohm port impedance, either the port impedance `z0_override` can be specified at media object construction or the impedance can be overriden manually. `[12]:` ``` # override method wr10_100_measured1 = wr10_100.copy() wr10_100_measured1.z0[:,:] = 50 wr10_100_measured1.name = f'{wr10_100.name} override' print(wr10_100_measured1) # port impedance at media construction method wr10_meas = RectangularWaveguide(f_wr10, a=to_meters(100, 'mil'), b=to_meters(50, 'mil'), ep_r=1.0, rho=1.68e-08, z0_override = 50) wr10_100_measured2 = wr10_meas.line(100e-3, unit = 'm', name = 'wr10 100mm z0_port') print(wr10_100_measured2) ``` ``` 2-Port Network: 'wr10 100mm override', 75.0-110.0 GHz, 1001 pts, z0=[50.+0.j 50.+0.j] 2-Port Network: 'wr10 100mm z0_port', 75.0-110.0 GHz, 1001 pts, z0=[50.+0.j 50.+0.j] ``` The plot below shows that the port impedance of the rectangular waveguide measurement is now 50 Ohm. The insertion loss S21 is equal for both methods. However, there is a slight S11 difference between manual override and port impedance specification at construction. This is because the default s-parameter definition for network is `s_def = 'power'` and that the characteristic impedance has an imaginary part. For this reason, perfect match is not zero but complex conjugate. The manual override method does not gives the expected results. `[13]:` # plot return loss wr10_100_measured1.plot_s_mag(0, 0, ax=axes[0,0]) wr10_100_measured2.plot_s_mag(0, 0, ax=axes[0,0]) # plot insertion loss wr10_100_measured1.plot_s_db(1, 0, ax=axes[0,1]) wr10_100_measured2.plot_s_db(1, 0, ax=axes[0,1]) # plot port and characteristic impedances axbig.plot(wr10_100_measured1.frequency.f_scaled, wr10_100_measured1.z0[:, 0].real, marker = 'd', markevery = 30, label = f'line {wr10_100_measured1.name} z0') axbig.plot(wr10_100_measured2.frequency.f_scaled, wr10_100_measured2.z0[:, 0].real, marker = 'x', markevery = 30, label = f'line {wr10_100_measured2.name} z0') axbig.plot(wr10.frequency.f_scaled, wr10.z0.real, label = 'media wr10 z0') axbig.set_ylabel('Impedance (Ohm)') axbig.set_xlabel(f'Frequency ({mlin.frequency.unit})') axbig.legend() # resize plot nicely fig4.tight_layout() ``` ### Parameter variation¶ The construction parameters of the media can be varied. If, for example, we want to know how much the characteristic impedance and propagation constant of a microstripline would be affected by a change in relative permittivity of the substrate: `[14]:` ``` #prepare fig5, axes = plt.subplots(1, 2, figsize = (8, 3.5)) # plot for ep_r in [4.0, 4.5, 5.0]: ml = MLine(f_mlin, w=3e-3, h=1.6e-3, t=35e-6, ep_r=ep_r, rho=1.68e-08, z0_port=50) axes[0].plot(f_mlin.f_scaled, ml.z0.real, label=f'ep_r={ep_r:.1f}') axes[1].plot(f_mlin.f_scaled, ml.beta, label=f'ep_r={ep_r:.1f}') axes[0].set_xlabel(f'Frequency ({f_mlin.unit})') axes[0].set_ylabel('Characteristic Impedance (Ohm)') axes[0].legend() axes[1].set_xlabel(f'Frequency ({f_mlin.unit})') axes[1].set_ylabel('Propagation Constant (rad/m)') axes[1].legend() # resize plot nicely fig5.tight_layout() ``` More detailed examples illustrating how to create various kinds of Media objects follow. The list of supported media is in the Media API page. The network creation and connection syntax of skrf are cumbersome if you need to doing complex circuit design. skrf’s synthesis capabilities lend themselves more to scripted applications such as calibration, optimization or batch processing. ## Slab of Si in Freespace¶ A plane-wave in freespace from 10 to 20 GHz. `[15]:` ``` from skrf.media import Freespace freq = Frequency(10, 20, 101, 'GHz') air = Freespace(freq) air ``` ``` Freespace Media. 10-20 GHz. 101 points ``` ``` air.z0[:2] # 377 Ohm baby! ``` ``` array([376.73031367+0.j, 376.73031367+0.j]) ``` ``` # plane wave in Si si = Freespace(freq, ep_r = 11.2) si.z0[:3] # ~110 Ohm ``` ``` array([112.56971222+0.j, 112.56971222+0.j, 112.56971222+0.j]) ``` Simulate a 1cm slab of Si in half-space, `[18]:` ``` slab = air.thru() ** si.line(1, unit = 'cm') ** air.thru() slab.plot_s_db(n = 0) ``` ## Network Synthesis¶ Networks are created through methods of a Media object. To create a 1-port short for a microstripline, `[19]:` ``` mlin_meas.short(name = 'short') ``` ``` 1-Port Network: 'short', 0.1-10.0 GHz, 1001 pts, z0=[50.+0.j] ``` Or to create a \(90^{\circ}\) section of microstripline, `[20]:` ``` mlin_meas.line(d = 90, unit = 'deg', name = 'line') ``` Note Simple circuits like `Media.short` and `Media.open` are ideal short and open with \(\Gamma = -1\) and \(\Gamma = 1\). They dont account the sophisticated effects of the discontinuities. Eventually, these more complex networks could be implemented with methods specific to a given Media, e.g. `MLine.mlin_short` , should the need arise. ## Building Circuits¶ Complex circuits can be made by connecting a series of networks. Let’s build a \(90^{\circ}\) microstripline delay short. `[21]:` ``` delay_short = mlin_meas.line(d = 90, unit = 'deg') ** mlin_meas.short() delay_short.name = 'delay short' delay_short ``` ``` 1-Port Network: 'delay short', 0.1-10.0 GHz, 1001 pts, z0=[50.+0.j] ``` When `Networks` with more than 2 ports need to be connected together, use `rf.connect()` . To create a two-port network for a shunted delayed open, you can create an ideal 3-way splitter (a ‘tee’) and connect the delayed open to one of its ports, `[22]:` ``` tee = mlin_meas.tee() delay_open = mlin_meas.delay_open(40, unit = 'deg') shunt_open = rf.connect(tee, 1, delay_open, 0) ``` Adding networks in shunt is so common, there is a `Media.shunt()` function to do this, `[23]:` ``` mlin_meas.shunt(delay_open) ``` If a specific circuit is created frequently, it may make sense to use a function to create the circuit. This can be done most quickly using `lambda` `[24]:` ``` delay_short = lambda d: mlin_meas.line(d, unit = 'deg') ** mlin_meas.short() delay_short(90) ``` `[24]:` ``` 1-Port Network: '', 0.1-10.0 GHz, 1001 pts, z0=[50.+0.j] ``` A more useful example may be to create a function for a shunt-stub tuner, that will work for any media object. `[25]:` ``` def shunt_stub(med, d0, d1): return med.line(d0, unit = 'deg')**med.shunt_delay_open(d1, unit = 'deg') shunt_stub(mlin_meas, 10, 90) ``` `[25]:` This approach lends itself to design optimization. Note To connect complex circuits, you might be interested to use the `skrf.circuit` module. ## Design Optimization¶ The abilities of `scipy` ’s optimizers can be used to automate network design. In this example, scikit-rf is used to automate the single stub impedance matching network design. First, we create a ‘cost’ function that returns something we want to minimize, such as the reflection coefficient magnitude at the band center. Then, one of scipy’s minimization algorithms is used to determine the optimal parameters of the stub lengths to minimize this cost. `[26]:` ``` from scipy.optimize import fmin from skrf.media import CPW freq = Frequency(75, 110, 101, 'GHz') cpw = CPW(freq, w = 10e-6, s = 5e-6, ep_r = 10.6, z0_port = 50) # the load we are trying to match load = cpw.load(.2+.2j) # single stub circuit generator function def shunt_stub(med, d0, d1): return med.line(d0, unit = 'deg') ** med.shunt_delay_open(d1, unit = 'deg') # define the cost function we want to minimize (this uses sloppy namespace) def cost(d): # prevent negative length lines, returning high cost if d[0] < 0 or d[1] < 0: return 1e3 return (shunt_stub(cpw, d[0], d[1]) ** load)[100].s_mag.squeeze() # initial guess of optimal delay lengths in degrees d0 = 120,40 # initial guess #determine the optimal delays d_opt = fmin(cost, (120, 40)) d_opt ``` ``` Optimization terminated successfully. Current function value: 0.232798 Iterations: 63 Function evaluations: 122 ``` ``` array([227.04547462, 12.72478816]) ``` This is a brief introduction to Vector Fitting. The concept and its algorithm was proposed in 1999 by <NAME> and <NAME> [1]. See the Vector Fitting website for more information [2]. The main application of Vector Fitting is to model the original sampled frequency responses of an active or passive device in a circuit simulator. Also see the API documentation and the application examples for more information about the implementation in scikit-rf. ## Mathematical Description¶ The idea of Vector Fitting is to fit a set of rational model functions to a set of sampled frequency responses \(\mathbf{\underline{H}}_\mathrm{sampled}\), for example from a S, Y or Z matrix. The model function \(\mathbf{\underline{H}}(\mathrm{\underline{s}})\) is defined in the Laplace domain with \(\mathrm{\underline{s}} = \sigma + \mathrm{j} \omega\): \begin{equation} \mathbf{\underline{H}}(\mathrm{\underline{s}}) = \mathbf{d} + \mathrm{\underline{s}} \mathbf{e} + \sum_{k=1}^K \frac{\underline{\mathbf{c}}_{k}}{\mathrm{\underline{s}}-\underline{p}_k} \end{equation} For the desired fit, that model function shall match the given frequency responses at each of its frequency samples \(\omega_n\): \begin{equation} \mathbf{\underline{H}}(\mathrm{\underline{s}} = \mathrm{j} \omega_n) \overset{!}{=} \mathbf{\underline{H}}_\mathrm{sampled}(\omega_n) \end{equation} Generally, \(\mathbf{\underline{H}}(\mathrm{\underline{s}})\) is a vector holding the individual complex frequency responses \(\underline{H}_1(\mathrm{\underline{s}})\), \(\underline{H}_2(\mathrm{\underline{s}})\), …, \(\underline{H}_M(\mathrm{\underline{s}})\) of the model. All elements in \(\mathbf{\underline{H}}(\mathrm{\underline{s}})\) share a common set of complex poles \(\underline{p}_k\), but have individual sets of complex residues \(\mathbf{\underline{c}}_k\), real constants \(\mathbf{d}\) and real proportional coefficients \(\mathbf{e}\), which are therefore vectors as well: \begin{equation} \mathbf{\underline{p}} = \begin{pmatrix} \underline{p}_1 & \underline{p}_2 & \underline{p}_3 & \cdots & \underline{p}_K \end{pmatrix} \end{equation} \begin{equation} \mathbf{\underline{c}} = \begin{pmatrix} \underline{c}_{1,1} & \underline{c}_{2,1} & \underline{c}_{3,1} & \cdots & \underline{c}_{K,1} \\ \underline{c}_{1,2} & \underline{c}_{2,2} & \underline{c}_{3,2} & \cdots & \underline{c}_{K,2} \\ \vdots\\ \underline{c}_{1,M} & \underline{c}_{2,M} & \underline{c}_{3,M} & \cdots & \underline{c}_{K,M} \\ \end{pmatrix} \end{equation} \begin{equation} \mathbf{d} = \begin{pmatrix} d_1 \\ d_2 \\ \vdots \\ d_M \end{pmatrix} \end{equation} \begin{equation} \mathbf{e} = \begin{pmatrix} e_1 \\ e_2 \\ \vdots \\ e_M \end{pmatrix} \end{equation} The number of poles, \(K\), required for a good fit of \(\mathbf{\underline{H}}(\mathrm{\underline{s}})\) to \(\mathbf{\underline{H}}_\mathrm{sampled}\) depends on the shape of the responses. As an example, the goal could be to fit the rational model function to the S matrix of a 2-port (\(M = 4\)) sampled at \(N\) frequencies \(\omega_n\): \begin{equation} \begin{pmatrix} \underline{S}_{11}(\omega_1) \\ \underline{S}_{12}(\omega_1) \\ \underline{S}_{21}(\omega_1) \\ \underline{S}_{22}(\omega_1) \\ \vdots \\ \underline{S}_{11}(\omega_\mathrm{N}) \\ \underline{S}_{12}(\omega_\mathrm{N}) \\ \underline{S}_{21}(\omega_\mathrm{N}) \\ \underline{S}_{22}(\omega_\mathrm{N}) \end{pmatrix} \overset{!}{=} \begin{pmatrix} d_{11} + \mathrm{j} \omega_1 e_{11} + \sum_{k=1}^K \frac{\underline{c}_{k,11}}{\mathrm{j} \omega_1 - \underline{p}_k} \\ d_{12} + \mathrm{j} \omega_1 e_{12} + \sum_{k=1}^K \frac{\underline{c}_{k,12}}{\mathrm{j} \omega_1 - \underline{p}_k} \\ d_{21} + \mathrm{j} \omega_1 e_{21} + \sum_{k=1}^K \frac{\underline{c}_{k,21}}{\mathrm{j} \omega_1 - \underline{p}_k} \\ d_{22} + \mathrm{j} \omega_1 e_{22} + \sum_{k=1}^K \frac{\underline{c}_{k,22}}{\mathrm{j} \omega_1 - \underline{p}_k} \\ \vdots \\ d_{11} + \mathrm{j} \omega_\mathrm{N} e_{11} + \sum_{k=1}^K \frac{\underline{c}_{k,11}}{\mathrm{j} \omega_\mathrm{N} - \underline{p}_k} \\ d_{12} + \mathrm{j} \omega_\mathrm{N} e_{12} + \sum_{k=1}^K \frac{\underline{c}_{k,12}}{\mathrm{j} \omega_\mathrm{N} - \underline{p}_k} \\ d_{21} + \mathrm{j} \omega_\mathrm{N} e_{21} + \sum_{k=1}^K \frac{\underline{c}_{k,21}}{\mathrm{j} \omega_\mathrm{N} - \underline{p}_k} \\ d_{22} + \mathrm{j} \omega_\mathrm{N} e_{22} + \sum_{k=1}^K \frac{\underline{c}_{k,22}}{\mathrm{j} \omega_\mathrm{N} - \underline{p}_k} \end{pmatrix} \end{equation} During the Vector Fitting process, the model parameters \(\mathbf{\underline{p}}\), \(\mathbf{\underline{c}}\), \(\mathbf{d}\) and \(\mathbf{e}\) will be optimized in an iterative manner until a good fit is achieved. ## Equivalent Electrical Circuits¶ The benefit of Vector Fitting the sampled frequency responses is the easy representation of the rational basis function with equivalent electrical circuits. A detailed derivation can be found in [3]. ### Constant and Proportional Term¶ The constant and proportional terms \(\mathbf{d} + \mathrm{\underline{s}} \mathbf{e}\) can be represented in an electrical circuit by equivalent impedances \(\underline{Z}_\mathrm{RL}(\mathrm{\underline{s}})\) or equivalent admittances \(\underline{Y}_\mathrm{RC}(\mathrm{\underline{s}})\) build out of a series RL or parallel RC circuits. Target response of the constant and proportional term: \begin{equation} \underline{H}_\mathrm{target}(\mathrm{\underline{s}}) = d_i + \mathrm{\underline{s}} e_i \end{equation} # Impedance of a series RL circuit:¶ \begin{equation} \underline{Z}_\mathrm{RL}(\mathrm{\underline{s}}) = R + \mathrm{\underline{s}} L \end{equation} This impedance matches the target response if \(R = d_i\) and \(L = e_i\). # Admittance of a parallel RC circuit:¶ \begin{equation} \underline{Y}_\mathrm{RC}(\mathrm{\underline{s}}) = \frac{1}{R} + \mathrm{\underline{s}} C \end{equation} This admittance matches the target response if \(R = \frac{1}{d_i}\) and \(C = e_i\). ### Real Poles and Residues¶ The individual terms \(\frac{c_{k,i}}{\mathrm{\underline{s}} - p_{k,i}}\) of the fit with a real pole \(p_{k,i}\) and a real residue \(c_{k,i}\) can be represented in an electrical circuit by equivalent impedances \(\underline{Z}_\mathrm{RC}(\mathrm{\underline{s}})\) or equivalent admittances \(\underline{Y}_\mathrm{RL}(\mathrm{\underline{s}})\) build out of a parallel RC or series RL circuits. Target response of the real pole-residue term: \begin{equation} \underline{H}_\mathrm{target}(\mathrm{\underline{s}}) = \frac{c_{k,i}}{\mathrm{\underline{s}} - p_{k,i}} \end{equation} # Impedance of a parallel RC circuit:¶ The parallel RC circuit is the same as above for the constant and proportional term, but this time its impedance \(\underline{Z}_\mathrm{RC}(\mathrm{\underline{s}})\) is used instead of its admittance: \begin{equation} \underline{Z}_\mathrm{RC}(\mathrm{\underline{s}}) = \frac{\frac{1}{C}}{\mathrm{\underline{s}} + \frac{1}{RC}} \end{equation} This impedance matches the target response if \(C = \frac{1}{c_{k,i}}\) and \(R = \frac{c_{k,i}}{-p_{k,i}}\). # Admittance of a series RL circuit:¶ The series RL circuit is the same as above for the constant and proportional term, but this time its admittance \(\underline{Y}_\mathrm{RL}(\mathrm{\underline{s}})\) is used instead of its impedance: \begin{equation} \underline{Y}_\mathrm{RL}(\mathrm{\underline{s}}) = \frac{\frac{1}{L}}{\mathrm{\underline{s}} + \frac{R}{L}} \end{equation} This admittance matches the target response if \(L = \frac{1}{c_{k,i}}\) and \(R = \frac{-p_{k,i}}{c_{k,i}}\). ### Complex Conjugate Poles and Residues¶ In Vector Fitting, complex poles \(\underline{p}_k = p'_k + \mathrm{j} p''_k\) and residues \(\underline{c}_k = c'_k + \mathrm{j} c''_k\) always come in complex conjugate pairs \((\underline{p}_k, \underline{p}_k^*)\) and \((\underline{c}_k, \underline{c}_k^*)\). The target response for an equivalent electrical circuit of such a complex conjugate pair is therefore: \begin{equation} \underline{H}_\mathrm{target}(\mathrm{\underline{s}}) = \frac{\underline{c}_k}{\mathrm{\underline{s}} - \underline{p}_k} + \frac{\underline{c}^*_k}{\mathrm{\underline{s}} - \underline{p}^*_k} = \frac{2 c'_k \mathrm{\underline{s}} - 2 (c'_k p'_k + c''_k p''_k)}{\mathrm{\underline{s}}^2 - 2 p'_k \mathrm{\underline{s}} + |\underline{p}_k|^2} \end{equation} There are different ways to build an equivalent circuit out of passive or active components, which can be dimensioned to match this target frequency response. Four such circuits are presented and analyzed in [3], for example a series RLC circuit combined with a parallel current source controlled by the voltage over the capacitor. This circuit is providing an admittance \(\underline{Y}_\mathrm{RCL,I}(\mathrm{\underline{s}})\) that can be matched to the target response: \begin{equation} \underline{Y}_\mathrm{RCL,I}(\mathrm{\underline{s}}) = \frac{1/L \mathrm{\underline{s}} + b}{\mathrm{\underline{s}}^2 + R/L \mathrm{\underline{s}} + 1 / (LC)} \end{equation} This admittance matches the target response if \(L = \frac{1}{2 c'_k}\), \(R = \frac{-p'_k}{ c'_k}\), \(C = \frac{2 c'_k}{|\underline{p}_k|^2}\) and \(b = -2 (c'_k p'_k + c''_k p''_k)\) with \(g_\mathrm{m} = bLC = \frac{b}{|\underline{p}_k|^2}\). ## Equivalent Circuit of a Vector Fitted \(N\)-Port¶ ### Case 1: Vector Fitted S Parameters¶ The equivalent circuit of a \(N\)-port with a Vector Fitted S matrix consists of an interface network and a transfer network for each port. The figure below shows the structure of the interface and transfer networks of one such port \(i\) with the external port voltage \(V_i\) and port current \(I_i\). The individual frequency responses \(\underline{S}_{i,j}\) of the Vector Fit are reproduced with the equivalent admittances \(\underline{Y}_{\mathrm{S},i,j}\) based on the fitting parameters \(\mathbf{\underline{p}}\), \(\mathbf{\underline{c}}\), \(\mathbf{d}\) and \(\mathbf{e}\) as described above. ### Case 2: Vector Fitted Y Parameters¶ ### Case 3: Vector Fitted Z Parameters¶ [1] <NAME> and <NAME>, “Rational approximation of frequency domain responses by vector fitting,” in IEEE Transactions on Power Delivery, vol. 14, no. 3, pp. 1052-1061, July 1999, DOI: 10.1109/61.772353. [2] https://www.sintef.no/projectweb/vectorfitting/ [3] <NAME>onini, “SPICE equivalent circuits of frequency-domain responses,” in IEEE Transactions on Electromagnetic Compatibility, vol. 45, no. 3, pp. 502-512, Aug. 2003, DOI: 10.1109/TEMC.2003.815528. ``` VirtualInstruments.ipynb ``` The vi modules depends on PyVISA as well as some additional libraries. Make sure you’ve followed the instructions in the installation tutorial to ensure a working setup. Additionally, PyVISA can use a number of different backends to communicate with instruments. The installation of these is up to the user, but there are further instructions in the PyVISA documentation By default, PyVISA uses it’s Python VISA implementation, but certain instrument configurations require their manufacturer’s specific VISA library be installed and used to communicate with instruments. For example, the Keysight IO libraries suite has to be used to communicate with their instruments over GPIB. The virtual instrument module defines a consistent high-level interface for interacting with different types of instruments that can be controlled with SCPI (or other means). Primarily for scikit-rf, this is vector network analyzers (VNAs), but we are actively working on adding support for spectrum analyzers. For information on specific instruments, consult the vi module’s documentation. The currently supported instruments are (organized by manufacturer): ### NanoVNA¶ You can help grow scikit-rf by adding support for more instruments! It’s really not that complicated. Check out the vi module documentation to learn how. ### Connecting to an instrument over an ethernet connection¶ instr = PNA(address="TCPIP0::10.0.0.5::INSTR") print(instr.id) ``` ### Changing the frequency settings of an instrument¶ ``` from skrf.vi.vna.keysight import PNA from skrf import Frequency instr = PNA(address="TCPIP0::10.0.0.5::INSTR") freq = Frequency(start="2.3 GHz", stop="2.6 GHz", npoints = 451, unit='hz') instr.ch1.frequency = freq ``` ### Creating an S21 measurement on the instrument¶ instr = PNA(address="TCPIP0::10.0.0.5::INSTR") instr.ch1.create_measurement(name="SKRF S21", parameter="S21") ``` ### Getting a full 2-port network and plotting¶ instr = PNA(address="TCPIP0::10.0.0.5::INSTR") # Here we create temporary S11 and S22 to make sure ports 1 and 2 are driven # This might change at some point to having get_snp_network do this # automatically in the background instr.ch1.create_measurement(name="Temp S11", parameter="S11") instr.ch1.create_measurement(name="Temp S22", parameter="S22") ntwk = instr.ch1.get_snp_network(ports=(1,2)) ntwk.plot_s_db() instr.ch1.delete_measurement(name="Temp S11") instr.ch1.delete_measurement(name="Temp S22") ``` # network (skrf.network)¶ # network ( `skrf.network` )¶ Provide an n-port network class and associated functions. Much of the functionality in this module is provided as methods and properties of the `Network` Class. ## Network Class¶ ### Building Network¶ ## Connecting Networks¶ ## Interpolation and Concatenation Along Frequency Axis¶ ## Combining and Splitting Networks¶ ## IO¶ ## Noise¶ ## Supporting Functions¶ ## Misc Functions¶ # frequency (skrf.frequency)¶ # frequency ( `skrf.frequency` )¶ Provides a frequency object and related functions. Most of the functionality is provided as methods and properties of the `Frequency` Class. ## Frequency Class¶ ## Functions¶ ## Misc¶ # networkSet (skrf.networkSet)¶ # networkSet ( `skrf.networkSet` )¶ Provides a class representing an un-ordered set of n-port microwave networks. Frequently one needs to make calculations, such as mean or standard deviation, on an entire set of n-port networks. To facilitate these calculations the `NetworkSet` class provides convenient ways to make such calculations. Another usage is to interpolate a set of Networks which depend of an parameter (like a knob, or a geometrical parameter). The results are returned in `Network` objects, so they can be plotted and saved in the same way one would do with a `Network` . The functionality in this module is provided as methods and properties of the `NetworkSet` Class. ## NetworkSet Class¶ ## NetworkSet Utilities¶ # plotting (skrf.plotting)¶ # plotting ( `skrf.plotting` )¶ This module provides general plotting functions. ## Plots and Charts¶ ## Convenience plotting functions¶ ## media ( `skrf.media` )¶ This package provides objects representing transmission line mediums. The `Media` object is the base-class that is inherited by specific transmission line instances, such as `Freespace` , or `RectangularWaveguide` . The `Media` object provides generic methods to produce `Network` ’s for any transmission line medium, such as `line()` and `delay_short()` . These methods are inherited by the specific transmission line classes, which internally define relevant quantities such as propagation constant (gamma), and characteristic impedance (Z0). This allows the specific transmission line mediums to produce networks without re-implementing methods for each specific media instance. ### Media base-class¶ ## Media Classes¶ # taper (skrf.taper)¶ # taper ( `skrf.taper` )¶ Taper Objects Tapered transformers, or tapers in short, are used to match one impedance to another (from Z1 to Z2) [1]. By tapering a transmission line, a very broadband impedance match (low VSWR) can be realized over a wide bandwidth, the longer the taper, the wider the frequency band. # calibration (skrf.calibration.calibration)¶ # calibration ( )¶ This module provides objects for VNA calibration. Specific algorithms inherit from the common base class `Calibration` . ## One-port¶ ## Two-port¶ ## Multi-port¶ ## Three Receiver (1.5 port)¶ ## Generic Methods¶ ## PNA interaction¶ # deembedding (skrf.calibration.deembedding)¶ # deembedding ( )¶ De-embedding is the procedure of removing effects of the test fixture that is often present in the measurement of a device or circuit. It is based on a lumped element approximation of the test fixture which needs removal from the raw data, and its equivalent circuit often needs to be known a-priori. This is often required since implementation of calibration methods such as Thru-Reflect-Line (TRL) becomes too expensive for implementation in on-wafer measurement environments where space is limited, or insufficiently accurate as in the case of Short-Open-Load-Thru (SOLT) calibration where the load cannot be manufactured accurately. De-embedding is often performed as a second step, after a SOLT, TRL or similar calibration to the end of a known reference plane, like the probe-tips in on-wafer measurements. This module provides objects to implement commonly used de-embedding method in on-wafer applications. Each de-embedding method inherits from the common abstract base class `Deembedding` . ## De-embedding Methods¶ # virtual instruments (skrf.vi)¶ # virtual instruments ( `skrf.vi` )¶ This module defines “virtual instruments” or interfaces to a number of different types of instruments used in RF measurements and experiments. ## Creating A Driver¶ Drivers are classes inherited from the respective instrument type’s abstract base class and define methods specific to each instrument. This syntax can be complex and vary wildly between devices and manufacturers. The vi module attempts to present a standard interface for each. Basically, creating a driver consists of the following: Creating an instrument class that inherits from its abstract base class * Consulting the device’s datasheet to find the command for each method in the abstract base class Those wishing to use an instrument that’s not supported are encouraged to consult existing classes to understand the architecture, develop their own class, and contribute it to scikit-rf. If you choose to do so, please try to use the following standard terms for the associated meaning ### Conventions¶ | | | | | | | | # vna (skrf.vi.vna)¶ # vna ( `skrf.vi.vna` )¶ Provides classes to interact with Vector Network Analyzers (VNAs) from numerous manufacturers. ## VNA Classes (organized by manufacturer)¶ ## The Base Class and Writing an Instrument Driver¶ All VNAs are derived from the `VNA` class. This class should never be instantiated directly, but instead serves as a means to run certain setup code depending on the capabilities of the instrument. When writing a new instrument driver, the following minimum questions should be considered: Does the instrument use SCPI? Does the instrument support multiple channels? ### SCPI¶ For those instruments that use SCPI, default universal SCPI methods are included by default. However, for those instruments that do not support SPCI, do the following: ``` class VNAWithoutSCPI(VNA): _scpi = False # ... ``` ### Channels¶ Some instruments support channels and can have multiple measurements with different frequency/power/if bandwidth/etc settings. For instruments without channel support, the typical properties (freq_start, freq_stop, etc) should be defined on the class. For instruments with channel support, the class should include a subclass of `Channel` that defines properties specific to channel settings in the channel definition while other instrument properties should be defined in the instrument class. To make this more clear, consider the following example from the Keysight PNA implementation (the property creator VNA.Command is explained later) ``` class PNA(VNA): class Channel(vna.Channel): freq_start = VNA.Command( get_cmd="SENS<self:cnum>:FREQ:STAR?", set_cmd="SENS<self:cnum>:FREQ:STAR <arg>", doc="""Start frequency [Hz]""", validator=FreqValidator() ) def __init__(self, address, backend='@py'): # ... nports = VNA.Command( get_cmd="SYST:CAP:HARD:PORT:COUN?", set_cmd=None, doc="""Number of ports""", validator=IntValidator() ) ``` Here, the start frequency is set per channel whereas the number of ports is related to the instrument itself. Instruments with channel support should create a single channel in __init__() using create_channel ### Property Creator¶ Inspired by PyMeasure, skrf has a property creator to simplify creating properties that are queried and set with commands. * static VNA.command(get_cmd=None, set_cmd=None, doc=None, validator=None, values=False, values_container=<built-in function array>, complex_values=False)[source]¶ * Create a property for the instrument. This method is used to add a property to an instrument. These properties can be read-only, write-only, read-write, and can validate values before sending to the instrument as well as validate responses from the instrument to return proper types. * Parameters: * get_cmd (Optional[str]) – Command sent to the instrument to request data * set_cmd (Optional[str]) – Command sent to the instrument to set data * doc (Optional[str]) – The docstring for the property * validator (Optional[Validator]) – The `Validator` that will be used to transform data to the proper format before sending and after querying * values (bool) – Whether or not this command is using a Sequence to set data, or expects a Sequence in response. * values_container (Optional[type]) – If values is true, you set set this to the type of container the values should be returned in. For example, this is np.array by default, meaning instead of return a list, you will get a numpy array. * complex_values (bool) – If the values expected from the instrument are complex. If so, the values will be converted from [real[0], imag[0], real[1], imag[1], …] to [complex(real[0], imag[0]), complex(real[1], imag[1]), …] * Returns: * The property constructed from the parameters passed. Should be set to a class variable * Return type: For get_cmd and set_cmd, you can substitute delimiters to be replaced when the call is made. self is always passed, so you can reference any part of “self” when making the call. Additionally, the set_cmd receives an additional parameter arg which is the argument passed to the setter. These can be used in the get/set strings by using angle bracket delimiters and referring to the name. Here are some examples: Here, we are assuming we are writing a command for an instrument with channels, and writing a command for the internal Channel class. In get_cmd, <self:cnum> gets the self.cnum property of the Channel class at runtime. In set_cmd, <arg> is replaced by the argument passed to the setter. ``` freq_start = VNA.command( get_cmd="CALC<self:cnum>:FREQ:STAR?", set_cmd="CALC<self:cnum>:FREQ:STAR <arg>", ) ``` And here’s an example of calling this function and what the resultant command strings would be after replacement. ``` _ = instr.ch1.freq_start # Sends the command CALC1:FREQ:STAR? to the instrument instr.ch1.freq_start = 100 # Sends the command CALC1:FREQ:STAR 100 to the instrument ``` Validators are (optionally, but almost always) passed to VNA.command. When a property is get or set, the appropriate validate command is called to convert input to the proper format expected by the instrument, or convert responses from the instrument to the proper type. * The current validators are: The documentation for each of these explains more about their functionality, but in essence when writing a VNA.command, consider how the command must be formatted to be sent to the instrument and what the expected response from the instrument will be and how that can be transformed to something more useful than, say, a string. Here’s an example of using a validator: ``` freq_start = VNA.command( get_cmd="CALC:FREQ:STAR?", set_cmd="CALC:FREQ:STAR <arg>", validator=FreqValidator() ) # ... # This will call FreqValidator.validate_input('100 kHz') to # transform the string '100 kHz' to '100000'. The full command # then becomes: # CALC:FREQ:STAR 100000 instr.ch1.freq_start = '100 Hz' # This will send the command CALC:FREQ:STAR? to the instrument # then send the response from the instrument to # FreqValidator.validate_output() to attempt to transform, as an # example, the string '100000' to the int 100_000 _ = instr.ch1.freq_start ``` # vectorFitting (skrf.vectorFitting)¶ # vectorFitting ( `skrf.vectorFitting` )¶ Module for vector fitting of networks. # Qfactor (skrf.qfactor)¶ Date: 2012-01-01 Categories: Tags: # Qfactor ( `skrf.qfactor` )¶ Module for estimating the Quality (Q) factor(s) from S-parameters. This class implements methods for determining loaded and unloaded Q-factor from frequency-domain S-parameters, that can be applied to measurements of transmission or reflection. Documentation and implementation are adapted from [MAT58] ## Q-factor¶ ## Loaded and Unloaded Q-factor¶ The Quality factor (Q-factor) of a resonator is defined by [Pozar]: where \(U\) is the average energy stored by the resonator and \(\Delta U\) is the decrease in the average stored energy per wave cycle at the resonant frequency, that is, the average power loss. The loaded Q-factor, \(Q_L\), describes energy dissipation within the entire resonant system comprising of the resonator itself and the instrument used for observing resonances. The term loading refers to the effect that the external circuit has on measured quantities. The external circuit consists of the measuring instrument and uncalibrated lines, but not the couplings of microwave resonators. Loading by an instrument that has 50 Ohm impedance, such as a VNA, causes \(Q_L\) to be reduced substantially if strong coupling is used. For many applications the quantity that is desired is the unloaded Q-factor \(Q_0\), which is determined by energy dissipation associated with the resonator only and therefore gives the best description of the resonant mode(s). In other words, \(Q_0\) is the Q-factor of the uncoupled resonator. The value of \(Q_0\) can be estimated from measurements of \(Q_L\), but cannot be measured directly. \(Q_0\) is largely governed by ohmic loss arising from surface currents in the metal conductors (walls and loop couplings), and from dielectric loss in any insulating materials that may be present. ## Relationships between Loaded and Unloaded Q-factors¶ Energy dissipation in the external circuit is characterised by the external Q-factor, \(Q_e\). For both series and parallel equivalent circuits, the three Q-factors are related by [Pozar]: The coupling factor \(\beta\) is defined for each port as: Finding the unloaded Q from measured S-parameters consists in first finding the coupling factor, then measure \(Q_L\) from the 3 dB bandwidth and using the relationships above. Fortunately, scikit-rf implements methods for determining loaded and unloaded Q-factors from frequency-domain S-parameters. The implemented methods are described in detail in [MAT58], and can be applied to measurements of transmission or reflection. ## Q-factor determination through equivalent-circuit models¶ Characterisation of resonances from measurements in the frequency-domain can be achieved through equivalent-circuit models [MAT58]. Resonators can be modelled as an ideal RLC resonator connected to an external circuit, incorporating elements to account for a lossy coupling and coupling reactances. For high Q-factor resonators (in practice, \(Q_L\) > 100), the S-parameter response of a resonator measured in a calibrated system with reference planes at the resonator couplings can be expressed like [MAT58], [Galwas] : where \(S_D\) is the detuned S-parameter measured at frequencies far above or below resonance, \(d\) is The diameter of the Q-circle, \(\delta\) is a real-valued constant that defines the orientation of the Q-circle, and \(t\) is the fractional offset frequency given by: where \(f_L\) is the loaded resonant frequency and \(f\) the frequency at which S is measured. This equation can be applied to measurements by transmission (S21 or S12) or reflection (S11 or S22). The S-parameters are fitted against a modified expression of the above equations to deduce the resonant frequency, loaded and unloaded Q-factors and other properties. “Q-factor Measurement by using a Vector Network Analyser”, <NAME>, National Physical Laboratory Report MAT 58 (2021) https://eprintspublications.npl.co.uk/9304/ <NAME>, ‘Scattering Matrix Description of Microwave Resonators’, IEEE Trans. Microwave Theory Techn., vol. 31, no. 8, pp. 669–671, Aug. 1983, doi: 10.1109/TMTT.1983.1131566. # time (skrf.time)¶ # time ( `skrf.time` )¶ Time domain functions # circuit (skrf.circuit)¶ # circuit ( `skrf.circuit` )¶ The Circuit class represents a circuit of arbitrary topology, consisting of an arbitrary number of N-ports networks. Like in an electronic circuit simulator, the circuit must have one or more ports connected to the circuit. The Circuit object allows one retrieving the M-ports network, where M is the number of ports defined. The results are returned in `Circuit` object. ## Building a Circuit¶ ## Representing a Circuit¶ ## Voltages and Currents¶ ## Circuit internals¶ ## Graph representation¶ # device (skrf.media.device)¶ # device ( `skrf.media.device` )¶ Device is a generic n-port microwave device class to create common Network. ## Device Class¶ ## Example Devices¶ # mathFunctions (skrf.mathFunctions)¶ # mathFunctions ( `skrf.mathFunctions` )¶ Provides commonly used mathematical functions. ## Mathematical Constants¶ Some convenient constants are defined in the `skrf.constants` module. ## Complex Component Conversion¶ ## Phase Unwrapping¶ ## Unit Conversion¶ ## Scalar-Complex Conversion¶ These conversions are useful for wrapping other functions that don’t support complex numbers. ## Special Functions¶ ## Various Utility Functions¶ # tlineFunctions (skrf.tlineFunctions)¶ # tlineFunctions ( `skrf.tlineFunctions` )¶ This module provides functions related to transmission line theory. ## Impedance and Reflection Coefficient¶ These functions relate basic transmission line quantities such as characteristic impedance, input impedance, reflection coefficient, etc. Each function has two names. One is a long-winded but readable name and the other is a short-hand variable-like names. Below is a table relating these two names with each other as well as common mathematical symbols. There may be a bit of confusion about the difference between the load impedance the input impedance. This is because the load impedance is the input impedance at the load. An illustration may provide some useful reference. Below is a (bad) illustration of a section of uniform transmission line of characteristic impedance \(Z_0\), and electrical length \(\theta\). The line is terminated on the right with some load impedance, \(Z_l\). The input impedance \(Z_{in}\) and input reflection coefficient \(\Gamma_{in}\) are looking in towards the load from the distance \(\theta\) from the load. So, to clarify the confusion, ### Short names¶ ### Long-names¶ ## Distributed Circuit and Wave Quantities¶ ## Transmission Line Physics¶ # instances (skrf.instances)¶ # instances ( `skrf.instances` )¶ This module contains commonly used instantiated objects’s. ## Standard Waveguide Bands¶ `Frequency` Objects¶ These are predefined `Frequency` objects that correspond to standard waveguide bands. This information is taken from the VDI Application Note 1002 [1] . IEEE designators are taken from Spinner TD-00036 [2] . `RectangularWaveguide` Objects¶ These are predefined `RectangularWaveguide` objects for standard waveguide bands. # constants (skrf.constants)¶ # constants ( `skrf.constants` )¶ This module contains constants, numerical approximations, and unit conversions * skrf.constants.c¶ * Velocity of light constant (from scipy) * skrf.constants.INF¶ * A very very large value (1e99) * skrf.constants.ONE¶ * 1 + epsilon where epsilon is small. Used to avoid numerical error. * skrf.constants.ZERO¶ * 0 + epsilon where epsilon is small. Used to avoid numerical error. * skrf.constants.K_BOLTZMANN¶ * Boltzmann constant (1.38064852e-23) * skrf.constants.S_DEFINITIONS¶ * * S-parameter definition labels: * ‘power’ for power-waves definition, * ‘pseudo’ for pseudo-waves definition. * ‘traveling’ corresponds to the initial implementation. * skrf.constants.S_DEF_DEFAULT¶ * Default S-parameter definition: ‘power’, for power-wave definition. * skrf.constants.S_DEF_HFSS_DEFAULT¶ * Default S-parameter definition setting in HFSS: ‘traveling’ (“Generalized” in HFSS) # data (skrf.data)¶ # data ( `skrf.data` )¶ This Package provides data to be used in examples and testcases. ## Material Properties¶ ## Example/Test Networks¶ # util (skrf.util)¶ # util ( `skrf.util` )¶ Holds utilities that are general conveniences. ## Time-related utilities¶ ## Array-related functions¶ ## File-related functions¶ ## General Purpose Objects¶ This Package provides functions and objects for input/output. Reading and writing touchstone files is supported through the `Touchstone` class, which can be more easily used through the Network constructor, `__init__()` The general functions `read()` and `write()` can be used to read and write [almost] any skrf object to disk, using the `pickle` module. This should only be used for temporary storage, because pickling is not stable over time, as skrf evolves. ## touchstone ( `skrf.io.touchstone` )¶ Touchstone class and utilities ## general ( `skrf.io.general` )¶ General input/output functions for reading and writing skrf objects ### Pickle functions¶ The read/write methods use the pickle module. These should only be used for temporary storage. ### Spreadsheets¶ ### Pandas dataframe¶ ### Statistics¶ ### JSON¶ ## csv ( `skrf.io.csv` )¶ ### Functions for reading and writing standard csv files¶ ### Reading/Writing Agilent¶ ### Reading/Writing R&S¶ ### Reading/Writing Anritsu VectorStar¶
@fadomire/shaka-player
npm
JavaScript
Shaka Player is an open-source JavaScript library for adaptive media. It plays adaptive media formats (such as [DASH](http://dashif.org/) and [HLS](https://developer.apple.com/streaming/)) in a browser, without using plugins or Flash. Instead, Shaka Player uses the open web standards [MediaSource Extensions](https://www.w3.org/TR/media-source/) and [Encrypted Media Extensions](https://www.w3.org/TR/encrypted-media/). Shaka Player also supports [offline storage and playback](https://shaka-player-demo.appspot.com/docs/api/tutorial-offline.html) of media using [IndexedDB](https://www.w3.org/TR/IndexedDB-2/). Content can be stored on any browser. Storage of licenses depends on browser support. Our main goal is to make it as easy as possible to stream adaptive bitrate video and audio using modern browser technologies. We try to keep the library light, simple, and free from third-party dependencies. Everything you need to build and deploy is in the sources. Platform and browser support matrix --- | Browser | Windows | Mac | Linux | Android | iOS⁶ | ChromeOS | Other | | --- | --- | --- | --- | --- | --- | --- | --- | | Chrome¹ | **Y** | **Y** | **Y** | **Y** | N | **Y** | - | | Firefox¹ | **Y** | **Y** | **Y** | untested⁵ | N | - | - | | Edge¹ | **Y** | - | - | - | - | - | - | | IE ≤ 10 | N | - | - | - | - | - | - | | IE 11 | **Y** ⁴ | - | - | - | - | - | - | | Safari¹ | - | **Y** | - | - | N | - | - | | Opera¹ | untested⁵ | untested⁵ | untested⁵ | untested⁵ | N | - | - | | Chromecast² | - | - | - | - | - | - | **Y** | | Tizen TV³ | - | - | - | - | - | - | **Y** | NOTES: * ¹: Only the latest stable version is tested and supported. Older releases may still be usable, and we will accept pull requests for them, but they will not be officially tested or supported. * ²: Latest stable Chromecast firmware is tested. Both sender and receiver can be implemented with Shaka Player. * ³: Tizen 2017 model is actively tested and supported by the Shaka Player team. Tizen 2016 model is community-supported and untested by us. * ⁴: IE 11 offers PlayReady support on Windows 8.1 and Windows 10 only. IE 11 can play clear content on Windows 8.0. IE 11 does not support adaptive playback on Windows 7 and under. A separate [Promise polyfill](https://github.com/lahmatiy/es6-promise-polyfill) is required for IE 11. * ⁵: These are expected to work, but are not actively tested by the Shaka Player team. * ⁶: All iOS browers use the same HTML engine (Apple WebKit) and are not supported because they lack MediaSource support. For more information, see: <https://github.com/google/shaka-player/issues/997Manifest format support matrix --- | Format | Video On-Demand | Live | Event | In-Progress Recording | | --- | --- | --- | --- | --- | | DASH | **Y** | **Y** | - | **Y** | | HLS | **Y** | **Y** | **Y** | - | You can also create a [manifest parser plugin](https://shaka-player-demo.appspot.com/docs/api/tutorial-manifest-parser.html) to support custom manifest formats. DASH features --- DASH features supported: * VOD, Live, and In-Progress Recordings (dynamic VOD content) * MPD@timeShiftBufferDepth for seeking backward in Live streams * Multi-period content (static and dynamic) * Xlink elements (actuate=onLoad only, resolve-to-zero, fallback content) * All forms of segment index info: SegmentBase@indexRange, SegmentTimeline, SegmentTemplate@duration, SegmentTemplate@index, SegmentList * Multi-codec/multi-container manifests (we will negotiate support with the browser and choose the best ones) * Encrypted content (including custom ContentProtection schemas, PSSH in the manifest) * Key rotation * Trick mode tracks DASH features **not** supported: * Xlink with actuate=onRequest * Manifests without any segment info: <https://github.com/google/shaka-player/issues/1088> * Changing codecs during a presentation (unsupported by MSE) * Multiple trick mode tracks for the same resolution at varying framerates or bitrates HLS features --- HLS features supported: * VOD, Live, and Event types * Encrypted content with Widevine * ISO-BMFF / MP4 / CMAF support * MPEG-2 TS support (transmuxing provided by [mux.js](https://github.com/videojs/mux.js/releases) v4.4+, must be separately included) * WebVTT and TTML * CEA-608/708 captions HLS features **not** supported: * Encrypted content with FairPlay: <https://github.com/google/shaka-player/issues/382> * Encrypted content with PlayReady: <https://github.com/google/shaka-player/issues/1145> * Key rotation: <https://github.com/google/shaka-player/issues/917> * I-frame-only playlists: <https://github.com/google/shaka-player/issues/742> * Raw AAC (without an MP4 container): <https://github.com/google/shaka-player/issues/1083DRM support matrix --- | Browser | Widevine | PlayReady | FairPlay | ClearKey⁷ | | --- | --- | --- | --- | --- | | Chrome¹ | **Y** | - | - | **Y** | | Firefox² | **Y** | - | - | **Y** | | Edge³ | - | **Y** | - | - | | IE 11⁴ | - | **Y** | - | - | | Safari | - | - | **N** ⁵ | - | | Opera | untested⁶ | - | - | untested⁶ | | Chromecast | **Y** | **Y** | - | untested⁶ | | Tizen TV | **Y** | **Y** | - | untested⁶ | Other DRM systems should work out of the box if they are interoperable and compliant to the EME spec. NOTES: * ¹: Only official Chrome builds contain the Widevine CDM. Chromium built from source does not support DRM. * ²: DRM must be enabled by the user. The first time a Firefox user visits a site with encrypted media, the user will be prompted to enable DRM. * ³: PlayReady in Edge does not seem to work on a VM or over Remote Desktop. * ⁴: IE 11 offers PlayReady support on Windows 8.1 and Windows 10 only. * ⁵: FairPlay DRM support in Safari is a work in progress due to a lack of documentation. For more information, see <https://github.com/google/shaka-player/issues/382> * ⁶: These are expected to work, but are not actively tested by the Shaka Player team. * ⁷: ClearKey is a useful tool for debugging, and does not provide actual content security. Media container and subtitle support --- Shaka Player supports: * ISO-BMFF / CMAF / MP4 + Depends on browser support for the container via MediaSource + Can parse "sidx" box for DASH's SegmentBase@indexRange and SegmentTemplate@index + Can find and parse "tfdt" box to find segment start time in HLS * WebM + Depends on browser support for the container via MediaSource + Can parse [cueing data](https://www.webmproject.org/docs/container/#cueing-data) elements for DASH's SegmentBase@indexRange and SegmentTemplate@index + Not supported in HLS * MPEG-2 TS + With help from [mux.js](https://github.com/videojs/mux.js/releases) v4.4+, can be played on any browser which supports MP4 + Can find and parse timestamps to find segment start time in HLS * WebVTT + Supported in both text form and embedded in MP4 * TTML + Supported in both XML form and embedded in MP4 Subtitles are rendered by the browser by default. Applications can create a [text display plugin](https://nightly-dot-shaka-player-demo.appspot.com/docs/api/shaka.extern.TextDisplayer.html) for customer rendering to go beyond browser-supported attributes. Important Links --- * [hosted demo](http://shaka-player-demo.appspot.com) (sources in `demo/`) * [hosted builds on cdnjs](https://cdnjs.com/libraries/shaka-player) * [hosted builds on Google Hosted Libraries](https://developers.google.com/speed/libraries/#shaka-player) * [announcement list](https://groups.google.com/forum/#!forum/shaka-player-users) ([join](https://github.com/google/shaka-player/blob/HEAD/docs/announcement-list-join-group.png) for release and survey announcements) * [hosted API docs](http://shaka-player-demo.appspot.com/docs/api/index.html) * [tutorials](http://shaka-player-demo.appspot.com/docs/api/tutorial-welcome.html) Contributing --- If you have improvements or fixes, we would love to have your contributions. Please read CONTRIBUTING.md for more information on the process we would like contributors to follow. FAQ --- For general help and before filing any bugs, please read the [FAQ](https://github.com/google/shaka-player/blob/HEAD/docs/tutorials/faq.md). Readme --- ### Keywords none
weightQuant
cran
R
Package ‘weightQuant’ October 12, 2022 Type Package Title Weights for Incomplete Longitudinal Data and Quantile Regression Version 1.0.1 Date 2022-01-05 Author <NAME> Maintainer <NAME> <<EMAIL>> Description Estimation of observation-specific weights for incomplete longitudinal data and boot- strap procedure for weighted quantile regressions. See Jacqmin- Gadda, Rouanet, Mba, Philipps, Dartigues (2020) for details <doi:10.1177/0962280220909986>. License GPL (>= 2.0) Depends quantreg, foreach, doParallel, stringr BugReports https://github.com/VivianePhilipps/weightQuant/issues LazyLoad yes LazyData true NeedsCompilation no Repository CRAN Date/Publication 2022-01-05 12:00:02 UTC R topics documented: weightQuant-packag... 2 bootwr... 3 simdat... 4 summary.bootwr... 5 test.bootwr... 6 weightsIM... 7 weightsMM... 8 weightQuant-package Weights for incomplete longitudinal data and quantile regression Description Functions for the estimation of observation-specific weights for incomplete longitudinal data. A bootstrap method is also provided to obtain standard erros of weighted quantile regressions. Details Package: weightQuant Type: Package Version: 1.0.1 Date: 2022-01-05 License: GPL (>= 2.0) Index: bootwrq Bootstrap procedure for weighted quantile regressions simdata Simulated dataset summary.bootwrq Summary of a quantile regression model test.bootwrq Test of covariate effects between different quantiles weightQuant-package Weights for incomplete longitudinal data and quantile regression weightsIMD Estimation of observation-specific weights with intermittent missing data weightsMMD Estimation of observation-specific weights with monotone missing data Author(s) <NAME> References <NAME>, <NAME>, Mba RD, <NAME>, <NAME>. Quantile regression for in- complete longitudinal data with selection by death. Statistical Methods in Medical Research. 2020;29(9):2697-2716. doi:10.1177/0962280220909986 bootwrq Bootstrap procedure for weighted quantile regressions Description A subject-level bootstrap method for weighted quantile regressions is implemented in this func- tion. Quantile regressions are estimated in a generalized estimating equation framework with in- dependent working covariance matrix. Weights are estimated using weightsIMD or weightsMMD functions. Usage bootwrq(B, form, tau, data, Y, X1 = NULL, X2 = NULL, subject, death, time, interval.death = NULL, impute = NULL, weight = NULL, wcompute = 2, seed = NULL, intermittent, file = NULL, nproc = 1, MPI = FALSE) Arguments B integer, number of bootstrap samples form formula indicating the quantile regression model to be estimated tau numeric vector indicating the quantiles to be estimated data data frame containing the data Y character indicating the name of the response outcome X1 optional character vector passed to the weight functions X2 optional character vector passed to the weight functions subject character indicating the name of the subject identifier death optional character passed to the weight functions time optional character passed to the weight functions interval.death optional numeric vector passed to the weight function weightsMMD impute optional numeric vector passed to the weight function weightsIMD weight character indicating the name of the weight variable in data wcompute integer indicating if weights should be estimated in each bootstrap sample. If wcompute=0, weights are supposed to be known. If wcompute=1, weights are re-estimated in each bootstrp sample. If wcompute=2, both results are returned. seed optional integer vector of length B indicating the seeds. intermittent logical indicating if data contains intermittent missing data. If intermittent=TRUE, the weights are estimated using weightsIMD function, if intermittent=FALSE, the weights are estimated using weightsMMD function. file optional character indicating the name of the results file. If file=NULL, no re- sults file is created. nproc number of processors to be used for parallel computing. Default to 1, sequential computation. MPI logical indicating if MPI parallelization should be used. Default to FALSE. Value a matrix with B columns containing the results on each bootstrap sample. Author(s) <NAME>, <NAME> See Also summary.bootwrq, test.bootwrq Examples ## Not run: ## computation of the weights with intermittent missing data w_simdata <- weightsIMD(data=simdata,Y="Y",X1="X",X2=NULL,subject="id", death="death",time="time",impute=20,name="w_imd")$data ## estimation of the weighted quantile regressions ## for the first quartile and the median m_simdata <- rq(Y~time*X,data=w_simdata,weights=w_imd,tau=c(0.25,0.5)) ## estimation of the standard erros using the bootstrap procedure boot_simdata <- bootwrq(B=1000, form=Y~time*X, tau=c(0.25,0.5), data=w_simdata, Y="Y",X1="X",X2=NULL,subject="id", death="death",time="time",impute=20,wcompute=0,intermittent=TRUE) ## the summary of the results summary(boot_simdata,m_simdata) ## comparison of the covariate effects ## between the first quartile and the median test.bootwrq(boot_simdata,m_simdata) ## End(Not run) simdata Simulated dataset Description The data were simulated from a linear mixed model. Repeated data of the longitudinal outcome were simulated for 500 subjects. Death time was simulated depending on the (observed and unob- served) longitudinal outcome and on the binary covariate. Missing data before death were simulated using a logistic regression model including the binary covariate, the outcome at the previous visit and the observation status at the previous visit. Usage simdata Format A data frame with 2123 observations over 500 different subjects and 7 variables. id subject identification number X binary covariate death death time (missing for subjects alive) time measurement time age age at measurement time Y longitudinal outcome Ytrunc longitudinal outcome truncated at the first missing value summary.bootwrq Summary of a quantile regression model Description The function provides a summary of quantile regression estimation. Standard erros and p values are obtained from a bootstrap procedure. Usage ## S3 method for class 'bootwrq' summary(object, ...) Arguments object results from bootstrap estimations obtained with bootwrq function ... additional arguments. If a quantile regression model estimated with rq function from quantreg package is specified, the function uses these estimated coeffi- cients as results. Otherwise, the coefficients are obtained as the mean over the B estimated coefficients from the bootstrap results. Value A list containing : results0 a matrix with 3 columns containing the results (coefficients, standard erros and p-values) without computing the weights in each bootstrap sample. Or NULL if the bootstrap results are obtained with wcompute=1. results1 a matrix with 3 columns containing the results (coefficients, standard erros and p-values) with re-estimated weights on each bootstrap sample. Or NULL if the bootstrap results are obtained with wcompute=0. Author(s) <NAME> test.bootwrq Test of covariate effects between different quantiles Description This function provides a test for the covariate effects estimated for different quantiles. Usage test.bootwrq(x, m) Arguments x results from bootstrap estimations obtained with bootwrq function m a quantile regression model estimated with rq function from quantreg package. At least 2 quantiles should be specified in rq function. Details For 2 quantiles tau1 and tau2, the test of the null hypothesis H0 : b_tau1 = b_tau2 is obtained with the following procedure : 1. estimate the difference diff = b_tau1 - b_tau2 on the initial sample (ie from model m) 2. estimate the difference diff_b = b_tau1^b - b_tau2^b on each of the B bootstrap samples 3. compute se_diff, the empirical standard error of these B differences 4. the associated p-value is obtained with the Gaussian assumption ( p-value = 2*P(N(0,1) > abs(diff/se_diff)) ) Value A list containing : results0 a matrix with 3 columns containing the results (difference of the coefficients, standard erros of the diffrence and assocated p-values) without computing the weights in each bootstrap sample. Or NULL if the bootstrap results are obtained with wcompute=1. results1 a matrix with 3 columns containing the results (difference of the coefficients, standard erros of the diffrence and assocated p-values) with re-estimated weights on each bootstrap sample. Or NULL if the bootstrap results are obtained with wcompute=0. Author(s) <NAME> weightsIMD Estimation of observation-specific weights with intermittent missing data Description This function provides stabilized weights for incomplete longitudinal data selected by death. The procedure allows intermittent missing data and assumes a missing at random (MAR) mechanism. Weights are defined as the inverse of the probability of being observed. These are obtained by pooled logistic regressions. Usage weightsIMD(data, Y, X1, X2, subject, death, time, impute = 0, name = "weight") Arguments data data frame containing the observations and all variables named in Y, X1, X2, subject, death and time arguments. Y character indicating the name of the response outcome X1 character vector indicating the name of the covariates with interaction with the outcome Y in the logistic regressions X2 character vector indicating the name of the covariates without interaction with the outcome Y in the logistic regressions subject character indicating the name of the subject identifier death character indicating the time of death variable time character indicating the measurement time variable. Time should be 1 for the first (theoretical) visit, 2 for the second (theoretical) visit, etc. impute numeric indicating the value to impute if the outcome Y is missing name character indicating the name of the weight variable that will be added to the data Details Denoting T_i the death time, R_ij the observation indicator for subject i and occasion j, t the time, Y the outcome and X1 and X2 the covariates, we propose weights for intermittent missing data defined as : w_ij = P(R_ij = 1 | T_i > t_ij, X1_ij, X2_ij) / P(R_ij = 1 | T_i > t_ij, X1_ij, X2_ij, Y_ij-1) The numerator corresponds to the conditional probability of being observed in the population cur- rently alive under the MCAR assumption. The denominator is computed by recurrence : P(R_ij = 1 | T_i > t_ij, X1_ij, X2_ij, Y_ij-1) = P(R_ij = 1 | T_i > t_ij-1, X1_ij, X2_ij, Y_ij-1, R_ij-1 = 0) * P(R_ij-1 = 0 | T_i > t_ij, X1_ij, X2_ij, Y_ij-1) + P(R_ij = 1 | T_i > t_ij-1, X1_ij, X2_ij, Y_ij-1, R_ij-1 = 1) * P(R_ij-1 = 1 | T_i > t_ij, X1_ij, X2_ij, Y_ij-1) Under the MAR assumption, the conditional probabilities lambda_ij = P(R_ij = 1 | T_i > t_ij, X1_ij, X2_ij, Y_ij-1, R_ij-1) are obtained from the logistic regression : logit(lambda_ij) = b_0j + b_1 X1_ij + b_2 X2_ij + b_3 Y_i(j-1) + b_4 X1_ij Y_i(j-1) + b_5 (1- R_ij-1) Value A list containing : data the data frame with initial data and estimated weights as last column coef a list containing the estimates of the logistic regressions. The first element of coef contains the estimates under the MCAR assumption, the second contains the estimates under the MAR assumption. se a list containing the standard erros of the estimates contained in coef, in the same order. Author(s) <NAME>, <NAME>, <NAME>, <NAME> See Also weightsMMD Examples w_simdata <- weightsIMD(data=simdata,Y="Y",X1="X",X2=NULL,subject="id", death="death",time="time",impute=20,name="w_imd")$data weightsMMD Estimation of observation-specific weights with monotone missing data Description This function provides stabilized weights for incomplete longitudinal data selected by death. The procedure assumes monotne missing data and a MAR-S mechanism, that is the probability of being observed depends also on further death. Weights are defined as the inverse of the probability of being observed. These are obtained by pooled logistic regressions. Usage weightsMMD(data, Y, X1, X2, subject, death, time, interval.death = 0, name = "weight") Arguments data data frame containing the observations and all variables named in Y, X1, X2, subject, death and time arguments. Y character indicating the name of the response outcome X1 character vector indicating the name of the covariates with interaction with the outcome Y in the logistic regressions X2 character vector indicating the name of the covariates without interaction with the outcome Y in the logistic regressions subject character indicating the name of the subject identifier death character indicating the time of death variable time character indicating the measurement time variable. Time should be 1 for the first visit, 2 for the second visit, etc. interval.death integer vector, intervals (j-k) to consider for the MAR-S hypothesis (see details). By default, interval.death=0, estimation under the MAR assumption. name character indicating the name of the weight variable that will be added to the data Details In longitudinal studies, follow-up can be truncated by death. Different missingness mechanism can be assumed. Missing data can be : 1. MCAR (completely at random) if the missingness probability is independent from the outcome and the death time 2. MAR (missing at random ) if the probability is independent from the unobserved values of the outcome and from the death time 3. MAR-S if the probability is independent from the unobserved values but is different according to the death time 4. MNAR (missing not at random) if the probability may depend on unobserved values. Denoting T_i the death time, R_ij the observation indicator for subject i and occasion j, t the time, Y the outcome and X1 and X2 the covariates, we propose weights for monotone missing data defined as : w_ij = P(R_ij = 1 | T_i > t_ij, X1_ij, X2_ij) / P(R_ij = 1 | T_i > t_ij, X1_ij, X2_ij, Y_ij-1) The numerator corresponds to the conditional probability of being observed in the population cur- rently alive under the MCAR assumption. The denominator is computed as a telescoping product : P(R_ij = 1 | T_i > t_ij, X1_ij, X2_ij, Y_ij-1) = prod_k=2^j P(R_ik = 1 | R_ik-1 = 1, T_i > t_ij, X1_ij, X2_ij, Y_ij-1) = prod_k=2^j lambda_ijk The probability lambda_ijk are obtained by logistic regressions. Under the MAR-S assumption, the regression model is : logit(lambda_ijk) = b_0k(j-k) + b_1(j-k) X1_ik + b_2(j-k) Y_i(k-1) + b_3(j-k) X1_ik Y_i(k-1) + b_4(j-k) X2_ik For each interval (j-k), one logistic regression is performed. Under the MAR assumption, one logistic regression is performed : logit(lambda_ikk) = b_0k + b_1 X1_ik + b_2 X2_ik + b_3 Y_i(k-1) + b_4 X1_ik Y_i(k-1) Value A list containing : data the data frame with initial data and estimated weights as last column coef a list containing the estimates of the logistic regressions. The first element of coef contains the estimates under the MCAR assumption, the further contain the estimates under the MAR or MAR-S assumption. se a list containing the standard erros of the estimates contained in coef, in the same order. Author(s) <NAME>, <NAME>, <NAME>, <NAME> See Also weightsIMD Examples w_simdata <- weightsMMD(data=simdata,Y="Ytrunc",X1="X", X2=NULL, subject="id", death="death", time="time", interval.death = 0)$data
libadwaita
rust
Rust
Crate libadwaita === Rust Adwaita bindings --- This library contains safe Rust bindings for Adwaita, a library that offers building blocks for modern GNOME applications. See also * GTK 4 Rust bindings documentation * Libadwaita documentation * gtk-rs project overview * Report bindings related issues * Report upstream libadwaita issues Example --- Adwaita needs to be initialized before use. This can be done by either: * using `adw::Application` instead of `gtk::Application`, or by * calling `init` on `startup`. The `libadwaita` crate is usually renamed to `adw`. You can do this globally in your `Cargo.toml` file: ``` [dependencies.adw] package = "libadwaita" version = "0.x.y" ``` ``` use adw::prelude::*; use adw::{ActionRow, Application, ApplicationWindow, HeaderBar}; use gtk::{Box, ListBox, Orientation, SelectionMode}; fn main() { let application = Application::builder() .application_id("com.example.FirstAdwaitaApp") .build(); application.connect_activate(|app| { // ActionRows are only available in Adwaita let row = ActionRow::builder() .activatable(true) .title("Click me") .build(); row.connect_activated(|_| { eprintln!("Clicked!"); }); let list = ListBox::builder() .margin_top(32) .margin_end(32) .margin_bottom(32) .margin_start(32) .selection_mode(SelectionMode::None) // makes the list look nicer .css_classes(vec![String::from("boxed-list")]) .build(); list.append(&row); // Combine the content in a box let content = Box::new(Orientation::Vertical, 0); // Adwaitas' ApplicationWindow does not include a HeaderBar content.append(&HeaderBar::new()); content.append(&list); let window = ApplicationWindow::builder() .application(app) .title("First App") .default_width(350) // add content to window .content(&content) .build(); window.present(); }); application.run(); } ``` Re-exports --- * `pub use ffi;` * `pub use gdk;` * `pub use gio;` * `pub use glib;` * `pub use gtk;` Modules --- * builders * prelude * subclass Structs --- * AboutWindow`v1_2` * ActionRow * Animation * AnimationTarget * Application * ApplicationWindow * Avatar * Banner`v1_3` * Bin * Breakpoint`v1_4` * BreakpointBin`v1_4` * BreakpointCondition`v1_4` * ButtonContent * CallbackAnimationTarget * Carousel * CarouselIndicatorDots * CarouselIndicatorLines * Clamp * ClampLayout * ClampScrollable * ComboRow * EntryRow`v1_2` * EnumListItem * EnumListModel * ExpanderRow * FlapDeprecated * HeaderBar * LeafletDeprecated * LeafletPageDeprecated * MessageDialog`v1_2` * NavigationPage`v1_4` * NavigationSplitView`v1_4` * NavigationView`v1_4` * OverlaySplitView`v1_4` * PasswordEntryRow`v1_2` * PreferencesGroup * PreferencesPage * PreferencesRow * PreferencesWindow * PropertyAnimationTarget`v1_2` * SpinRow`v1_4` * SplitButton * SpringAnimation * SpringParams * SqueezerDeprecated * SqueezerPageDeprecated * StatusPage * StyleManager * SwipeTracker * Swipeable * SwitchRow`v1_4` * TabBar * TabButton`v1_3` * TabOverview`v1_3` * TabPage * TabView * TabViewShortcuts`v1_2` * TimedAnimation * Toast * ToastOverlay * ToolbarView`v1_4` * ViewStack * ViewStackPage * ViewStackPages`v1_4` * ViewSwitcher * ViewSwitcherBar * ViewSwitcherTitleDeprecated * Window * WindowTitle Enums --- * AnimationState * BreakpointConditionLengthType`v1_4` * BreakpointConditionRatioType`v1_4` * CenteringPolicy * ColorScheme * Easing * FlapFoldPolicyDeprecated * FlapTransitionTypeDeprecated * FoldThresholdPolicyDeprecated * LeafletTransitionTypeDeprecated * LengthUnit`v1_4` * NavigationDirection * ResponseAppearance`v1_2` * SqueezerTransitionTypeDeprecated * ToastPriority * ToolbarStyle`v1_4` * ViewSwitcherPolicy Functions --- * init * is_animations_enabled * is_initialized * lerp * major_version * micro_version * minor_version Crate libadwaita === Rust Adwaita bindings --- This library contains safe Rust bindings for Adwaita, a library that offers building blocks for modern GNOME applications. See also * GTK 4 Rust bindings documentation * Libadwaita documentation * gtk-rs project overview * Report bindings related issues * Report upstream libadwaita issues Example --- Adwaita needs to be initialized before use. This can be done by either: * using `adw::Application` instead of `gtk::Application`, or by * calling `init` on `startup`. The `libadwaita` crate is usually renamed to `adw`. You can do this globally in your `Cargo.toml` file: ``` [dependencies.adw] package = "libadwaita" version = "0.x.y" ``` ``` use adw::prelude::*; use adw::{ActionRow, Application, ApplicationWindow, HeaderBar}; use gtk::{Box, ListBox, Orientation, SelectionMode}; fn main() { let application = Application::builder() .application_id("com.example.FirstAdwaitaApp") .build(); application.connect_activate(|app| { // ActionRows are only available in Adwaita let row = ActionRow::builder() .activatable(true) .title("Click me") .build(); row.connect_activated(|_| { eprintln!("Clicked!"); }); let list = ListBox::builder() .margin_top(32) .margin_end(32) .margin_bottom(32) .margin_start(32) .selection_mode(SelectionMode::None) // makes the list look nicer .css_classes(vec![String::from("boxed-list")]) .build(); list.append(&row); // Combine the content in a box let content = Box::new(Orientation::Vertical, 0); // Adwaitas' ApplicationWindow does not include a HeaderBar content.append(&HeaderBar::new()); content.append(&list); let window = ApplicationWindow::builder() .application(app) .title("First App") .default_width(350) // add content to window .content(&content) .build(); window.present(); }); application.run(); } ``` Re-exports --- * `pub use ffi;` * `pub use gdk;` * `pub use gio;` * `pub use glib;` * `pub use gtk;` Modules --- * builders * prelude * subclass Structs --- * AboutWindow`v1_2` * ActionRow * Animation * AnimationTarget * Application * ApplicationWindow * Avatar * Banner`v1_3` * Bin * Breakpoint`v1_4` * BreakpointBin`v1_4` * BreakpointCondition`v1_4` * ButtonContent * CallbackAnimationTarget * Carousel * CarouselIndicatorDots * CarouselIndicatorLines * Clamp * ClampLayout * ClampScrollable * ComboRow * EntryRow`v1_2` * EnumListItem * EnumListModel * ExpanderRow * FlapDeprecated * HeaderBar * LeafletDeprecated * LeafletPageDeprecated * MessageDialog`v1_2` * NavigationPage`v1_4` * NavigationSplitView`v1_4` * NavigationView`v1_4` * OverlaySplitView`v1_4` * PasswordEntryRow`v1_2` * PreferencesGroup * PreferencesPage * PreferencesRow * PreferencesWindow * PropertyAnimationTarget`v1_2` * SpinRow`v1_4` * SplitButton * SpringAnimation * SpringParams * SqueezerDeprecated * SqueezerPageDeprecated * StatusPage * StyleManager * SwipeTracker * Swipeable * SwitchRow`v1_4` * TabBar * TabButton`v1_3` * TabOverview`v1_3` * TabPage * TabView * TabViewShortcuts`v1_2` * TimedAnimation * Toast * ToastOverlay * ToolbarView`v1_4` * ViewStack * ViewStackPage * ViewStackPages`v1_4` * ViewSwitcher * ViewSwitcherBar * ViewSwitcherTitleDeprecated * Window * WindowTitle Enums --- * AnimationState * BreakpointConditionLengthType`v1_4` * BreakpointConditionRatioType`v1_4` * CenteringPolicy * ColorScheme * Easing * FlapFoldPolicyDeprecated * FlapTransitionTypeDeprecated * FoldThresholdPolicyDeprecated * LeafletTransitionTypeDeprecated * LengthUnit`v1_4` * NavigationDirection * ResponseAppearance`v1_2` * SqueezerTransitionTypeDeprecated * ToastPriority * ToolbarStyle`v1_4` * ViewSwitcherPolicy Functions --- * init * is_animations_enabled * is_initialized * lerp * major_version * micro_version * minor_version Struct libadwaita::Application === ``` #[repr(transparent)]pub struct Application { /* private fields */ } ``` Implementations --- ### impl Application #### pub const NONE: Option<&'static Application> = None #### pub fn builder() -> ApplicationBuilder Creates a new builder-pattern struct instance to construct `Application` objects. This method returns an instance of `ApplicationBuilder` which can be used to create `Application` objects. ### impl Application #### pub fn new(application_id: Option<&str>, flags: ApplicationFlags) -> Self Trait Implementations --- ### impl Clone for Application #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Application Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Application#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Application #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Application ### impl<OT: ObjectType> PartialEq<OT> for Application #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Application #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Application ### impl IsA<ActionGroup> for Application ### impl IsA<ActionMap> for Application ### impl IsA<Application> for Application ### impl IsA<Application> for Application Auto Trait Implementations --- ### impl RefUnwindSafe for Application ### impl !Send for Application ### impl !Sync for Application ### impl Unpin for Application ### impl UnwindSafe for Application Blanket Implementations --- ### impl<O> ActionGroupExt for Owhere O: IsA<ActionGroup>, #### fn action_added(&self, action_name: &str) #### fn action_enabled_changed(&self, action_name: &str, enabled: bool) #### fn action_removed(&self, action_name: &str) #### fn action_state_changed(&self, action_name: &str, state: &Variant) #### fn activate_action(&self, action_name: &str, parameter: Option<&Variant>) #### fn change_action_state(&self, action_name: &str, value: &Variant) #### fn is_action_enabled(&self, action_name: &str) -> bool #### fn action_parameter_type(&self, action_name: &str) -> Option<VariantType#### fn action_state(&self, action_name: &str) -> Option<Variant#### fn action_state_hint(&self, action_name: &str) -> Option<Variant#### fn action_state_type(&self, action_name: &str) -> Option<VariantType#### fn has_action(&self, action_name: &str) -> bool #### fn list_actions(&self) -> Vec<GString, Global#### fn connect_action_added<F>(&self, detail: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &str) + 'static, #### fn connect_action_enabled_changed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&Self, &str, bool) + 'static, #### fn connect_action_removed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&Self, &str) + 'static, #### fn connect_action_state_changed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&Self, &str, &Variant) + 'static, ### impl<O> ActionMapExt for Owhere O: IsA<ActionMap>, #### fn add_action(&self, action: &impl IsA<Action>) #### fn lookup_action(&self, action_name: &str) -> Option<Action#### fn remove_action(&self, action_name: &str) ### impl<O> ActionMapExtManual for Owhere O: IsA<ActionMap>, #### fn add_action_entries( &self, entries: impl IntoIterator<Item = ActionEntry<Self>> ) ### impl<O> AdwApplicationExt for Owhere O: IsA<Application>, #### fn style_manager(&self) -> StyleManager #### fn connect_style_manager_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. O: IsA<Application>, #### fn activate(&self) #### fn add_main_option( &self, long_name: &str, short_name: Char, flags: OptionFlags, arg: OptionArg, description: &str, arg_description: Option<&str> ) #### fn bind_busy_property(&self, object: &impl IsA<Object>, property: &str) #### fn application_id(&self) -> Option<GString#### fn dbus_connection(&self) -> Option<DBusConnection#### fn dbus_object_path(&self) -> Option<GString#### fn flags(&self) -> ApplicationFlags #### fn inactivity_timeout(&self) -> u32 #### fn is_busy(&self) -> bool #### fn is_registered(&self) -> bool #### fn is_remote(&self) -> bool #### fn resource_base_path(&self) -> Option<GString#### fn open(&self, files: &[File], hint: &str) #### fn quit(&self) #### fn register( &self, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(), Error#### fn send_notification(&self, id: Option<&str>, notification: &Notification) #### fn set_application_id(&self, application_id: Option<&str>) #### fn set_default(&self) #### fn set_flags(&self, flags: ApplicationFlags) #### fn set_inactivity_timeout(&self, inactivity_timeout: u32) #### fn set_option_context_description(&self, description: Option<&str>) #### fn set_option_context_parameter_string(&self, parameter_string: Option<&str>) #### fn set_option_context_summary(&self, summary: Option<&str>) #### fn set_resource_base_path(&self, resource_path: Option<&str>) #### fn unbind_busy_property(&self, object: &impl IsA<Object>, property: &str) #### fn withdraw_notification(&self, id: &str) #### fn set_action_group<P>(&self, action_group: Option<&P>)where P: IsA<ActionGroup>, #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_command_line<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &ApplicationCommandLine) -> i32 + 'static, #### fn connect_handle_local_options<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &VariantDict) -> i32 + 'static, #### fn connect_name_lost<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) -> bool + 'static, Available on **crate feature `v2_60`** only.#### fn connect_shutdown<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_startup<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_group_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_application_id_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_flags_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_inactivity_timeout_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_is_busy_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_is_registered_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_is_remote_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_resource_base_path_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ApplicationExtManual for Owhere O: IsA<Application>, #### fn run(&self) -> ExitCode #### fn run_with_args<S>(&self, args: &[S]) -> ExitCodewhere S: AsRef<str>, #### fn connect_open<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &[File], &str) + 'static, #### fn hold(&self) -> ApplicationHoldGuard #### fn mark_busy(&self) -> ApplicationBusyGuard ### impl<T> Borrow<T> for Twhere T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<O> GtkApplicationExt for Owhere O: IsA<Application>, #### fn add_window(&self, window: &impl IsA<Window>) #### fn accels_for_action(&self, detailed_action_name: &str) -> Vec<GString, Global#### fn actions_for_accel(&self, accel: &str) -> Vec<GString, Global#### fn active_window(&self) -> Option<Window#### fn menu_by_id(&self, id: &str) -> Option<Menu#### fn menubar(&self) -> Option<MenuModel#### fn window_by_id(&self, id: u32) -> Option<Window#### fn windows(&self) -> Vec<Window, Global#### fn inhibit( &self, window: Option<&impl IsA<Window>>, flags: ApplicationInhibitFlags, reason: Option<&str> ) -> u32 #### fn list_action_descriptions(&self) -> Vec<GString, Global#### fn remove_window(&self, window: &impl IsA<Window>) #### fn set_accels_for_action(&self, detailed_action_name: &str, accels: &[&str]) #### fn set_menubar(&self, menubar: Option<&impl IsA<MenuModel>>) #### fn uninhibit(&self, cookie: u32) #### fn is_register_session(&self) -> bool #### fn set_register_session(&self, register_session: bool) #### fn is_screensaver_active(&self) -> bool #### fn connect_query_end<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_window_added<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &Window) + 'static, #### fn connect_window_removed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &Window) + 'static, #### fn connect_active_window_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_menubar_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_register_session_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_screensaver_active_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Function libadwaita::init === ``` pub fn init() -> Result<(), BoolError> ``` ##### Examples found in repository? examples/hello-world.rs (line 13) ``` 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 ``` ``` &varrfn main() { let application = Application::builder() .application_id("com.example.FirstAdwaitaApp") .build(); application.connect_startup(|_| { adw::init().unwrap(); }); application.connect_activate(|app| { // ActionRows are only available in Adwaita let row = ActionRow::builder() .activatable(true) .selectable(false) .title("Click me") .build(); row.connect_activated(|_| { eprintln!("Clicked!"); }); let list = ListBox::builder() .margin_top(32) .margin_end(32) .margin_bottom(32) .margin_start(32) // the content class makes the list look nicer .css_classes(vec![String::from("content")]) .build(); list.append(&row); // Combine the content in a box let content = Box::new(Orientation::Vertical, 0); // Adwaitas' ApplicationWindow does not include a HeaderBar content.append( &HeaderBar::builder() .title_widget(&adw::WindowTitle::new("First App", "")) .build(), ); content.append(&list); let window = ApplicationWindow::builder() .application(app) .default_width(350) // add content to window .content(&content) .build(); window.show(); }); application.run(); } ``` Struct libadwaita::AboutWindow === ``` #[repr(transparent)]pub struct AboutWindow { /* private fields */ } ``` Available on **crate feature `v1_2`** only.Implementations --- ### impl AboutWindow #### pub fn new() -> AboutWindow #### pub fn from_appdata( resource_path: &str, release_notes_version: Option<&str> ) -> AboutWindow Available on **crate feature `v1_4`** only.#### pub fn builder() -> AboutWindowBuilder Creates a new builder-pattern struct instance to construct `AboutWindow` objects. This method returns an instance of `AboutWindowBuilder` which can be used to create `AboutWindow` objects. #### pub fn add_acknowledgement_section(&self, name: Option<&str>, people: &[&str]) #### pub fn add_credit_section(&self, name: Option<&str>, people: &[&str]) #### pub fn add_legal_section( &self, title: &str, copyright: Option<&str>, license_type: License, license: Option<&str> ) #### pub fn add_link(&self, title: &str, url: &str) #### pub fn application_icon(&self) -> GString #### pub fn application_name(&self) -> GString #### pub fn artists(&self) -> Vec<GString#### pub fn comments(&self) -> GString #### pub fn copyright(&self) -> GString #### pub fn debug_info(&self) -> GString #### pub fn debug_info_filename(&self) -> GString #### pub fn designers(&self) -> Vec<GString#### pub fn developer_name(&self) -> GString #### pub fn developers(&self) -> Vec<GString#### pub fn documenters(&self) -> Vec<GString#### pub fn issue_url(&self) -> GString #### pub fn license(&self) -> GString #### pub fn license_type(&self) -> License #### pub fn release_notes(&self) -> GString #### pub fn release_notes_version(&self) -> GString #### pub fn support_url(&self) -> GString #### pub fn translator_credits(&self) -> GString #### pub fn version(&self) -> GString #### pub fn website(&self) -> GString #### pub fn set_application_icon(&self, application_icon: &str) #### pub fn set_application_name(&self, application_name: &str) #### pub fn set_artists(&self, artists: &[&str]) #### pub fn set_comments(&self, comments: &str) #### pub fn set_copyright(&self, copyright: &str) #### pub fn set_debug_info(&self, debug_info: &str) #### pub fn set_debug_info_filename(&self, filename: &str) #### pub fn set_designers(&self, designers: &[&str]) #### pub fn set_developer_name(&self, developer_name: &str) #### pub fn set_developers(&self, developers: &[&str]) #### pub fn set_documenters(&self, documenters: &[&str]) #### pub fn set_issue_url(&self, issue_url: &str) #### pub fn set_license(&self, license: &str) #### pub fn set_license_type(&self, license_type: License) #### pub fn set_release_notes(&self, release_notes: &str) #### pub fn set_release_notes_version(&self, version: &str) #### pub fn set_support_url(&self, support_url: &str) #### pub fn set_translator_credits(&self, translator_credits: &str) #### pub fn set_version(&self, version: &str) #### pub fn set_website(&self, website: &str) #### pub fn connect_activate_link<F: Fn(&Self, &str) -> bool + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_application_icon_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_application_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_artists_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_comments_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_copyright_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_debug_info_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_debug_info_filename_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_designers_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_developer_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_developers_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_documenters_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_issue_url_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_license_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_license_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_release_notes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_release_notes_version_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_support_url_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_translator_credits_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_version_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_website_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for AboutWindow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = AboutWindow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, AboutWindow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for AboutWindow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Window ### impl<OT: ObjectType> PartialEq<OT> for AboutWindow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for AboutWindow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for AboutWindow ### impl IsA<Accessible> for AboutWindow ### impl IsA<Buildable> for AboutWindow ### impl IsA<ConstraintTarget> for AboutWindow ### impl IsA<Native> for AboutWindow ### impl IsA<Root> for AboutWindow ### impl IsA<ShortcutManager> for AboutWindow ### impl IsA<Widget> for AboutWindow ### impl IsA<Window> for AboutWindow ### impl IsA<Window> for AboutWindow Auto Trait Implementations --- ### impl RefUnwindSafe for AboutWindow ### impl !Send for AboutWindow ### impl !Sync for AboutWindow ### impl Unpin for AboutWindow ### impl UnwindSafe for AboutWindow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> AdwWindowExt for Owhere O: IsA<Window>, #### fn add_breakpoint(&self, breakpoint: Breakpoint) Available on **crate feature `v1_4`** only.#### fn content(&self) -> Option<Widget#### fn current_breakpoint(&self) -> Option<BreakpointAvailable on **crate feature `v1_4`** only.#### fn set_content(&self, content: Option<&impl IsA<Widget>>) #### fn connect_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<O> GtkWindowExt for Owhere O: IsA<Window>, #### fn close(&self) #### fn destroy(&self) #### fn fullscreen(&self) #### fn fullscreen_on_monitor(&self, monitor: &Monitor) #### fn application(&self) -> Option<Application#### fn child(&self) -> Option<Widget#### fn is_decorated(&self) -> bool #### fn default_size(&self) -> (i32, i32) #### fn default_widget(&self) -> Option<Widget#### fn is_deletable(&self) -> bool #### fn must_destroy_with_parent(&self) -> bool #### fn focus(&self) -> Option<Widget#### fn gets_focus_visible(&self) -> bool #### fn group(&self) -> WindowGroup #### fn hides_on_close(&self) -> bool #### fn icon_name(&self) -> Option<GString#### fn is_mnemonics_visible(&self) -> bool #### fn is_modal(&self) -> bool #### fn is_resizable(&self) -> bool #### fn title(&self) -> Option<GString#### fn titlebar(&self) -> Option<Widget#### fn transient_for(&self) -> Option<Window#### fn has_group(&self) -> bool #### fn is_active(&self) -> bool #### fn is_fullscreen(&self) -> bool #### fn is_maximized(&self) -> bool #### fn maximize(&self) #### fn minimize(&self) #### fn present(&self) #### fn present_with_time(&self, timestamp: u32) #### fn set_application(&self, application: Option<&impl IsA<Application>>) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_decorated(&self, setting: bool) #### fn set_default_size(&self, width: i32, height: i32) #### fn set_default_widget(&self, default_widget: Option<&impl IsA<Widget>>) #### fn set_deletable(&self, setting: bool) #### fn set_destroy_with_parent(&self, setting: bool) #### fn set_display(&self, display: &impl IsA<Display>) #### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) #### fn set_focus_visible(&self, setting: bool) #### fn set_hide_on_close(&self, setting: bool) #### fn set_icon_name(&self, name: Option<&str>) #### fn set_mnemonics_visible(&self, setting: bool) #### fn set_modal(&self, modal: bool) #### fn set_resizable(&self, resizable: bool) #### fn set_startup_id(&self, startup_id: &str) #### fn set_title(&self, title: Option<&str>) #### fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>) #### fn set_transient_for(&self, parent: Option<&impl IsA<Window>>) #### fn unfullscreen(&self) #### fn unmaximize(&self) #### fn unminimize(&self) #### fn default_height(&self) -> i32 #### fn set_default_height(&self, default_height: i32) #### fn default_width(&self) -> i32 #### fn set_default_width(&self, default_width: i32) #### fn focus_widget(&self) -> Option<Widget#### fn set_focus_widget<P>(&self, focus_widget: Option<&P>)where P: IsA<Widget>, #### fn is_fullscreened(&self) -> bool #### fn set_fullscreened(&self, fullscreened: bool) #### fn set_maximized(&self, maximized: bool) #### fn connect_activate_default<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_default(&self) #### fn connect_activate_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_focus(&self) #### fn connect_close_request<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) -> Propagation + 'static, #### fn connect_enable_debugging<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> bool + 'static, #### fn emit_enable_debugging(&self, toggle: bool) -> bool #### fn connect_keys_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_application_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_decorated_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_height_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_width_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_deletable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_destroy_with_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_display_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_fullscreened_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hide_on_close_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_icon_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_is_active_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_maximized_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonics_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_modal_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_resizable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_startup_id_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_title_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_transient_for_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> NativeExt for Owhere O: IsA<Native>, #### fn renderer(&self) -> Renderer #### fn surface(&self) -> Surface #### fn surface_transform(&self) -> (f64, f64) #### fn realize(&self) #### fn unrealize(&self) ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<O> RootExt for Owhere O: IsA<Root>, #### fn display(&self) -> Display #### fn focus(&self) -> Option<Widget#### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, ### impl<O> ShortcutManagerExt for Owhere O: IsA<ShortcutManager>, Struct libadwaita::ActionRow === ``` #[repr(transparent)]pub struct ActionRow { /* private fields */ } ``` Implementations --- ### impl ActionRow #### pub const NONE: Option<&'static ActionRow> = None #### pub fn new() -> ActionRow #### pub fn builder() -> ActionRowBuilder Creates a new builder-pattern struct instance to construct `ActionRow` objects. This method returns an instance of `ActionRowBuilder` which can be used to create `ActionRow` objects. ##### Examples found in repository? examples/hello-world.rs (line 18) ``` 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 ``` ``` &varrfn main() { let application = Application::builder() .application_id("com.example.FirstAdwaitaApp") .build(); application.connect_startup(|_| { adw::init().unwrap(); }); application.connect_activate(|app| { // ActionRows are only available in Adwaita let row = ActionRow::builder() .activatable(true) .selectable(false) .title("Click me") .build(); row.connect_activated(|_| { eprintln!("Clicked!"); }); let list = ListBox::builder() .margin_top(32) .margin_end(32) .margin_bottom(32) .margin_start(32) // the content class makes the list look nicer .css_classes(vec![String::from("content")]) .build(); list.append(&row); // Combine the content in a box let content = Box::new(Orientation::Vertical, 0); // Adwaitas' ApplicationWindow does not include a HeaderBar content.append( &HeaderBar::builder() .title_widget(&adw::WindowTitle::new("First App", "")) .build(), ); content.append(&list); let window = ApplicationWindow::builder() .application(app) .default_width(350) // add content to window .content(&content) .build(); window.show(); }); application.run(); } ``` Trait Implementations --- ### impl Clone for ActionRow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ActionRow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ActionRow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ActionRow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = PreferencesRow ### impl<OT: ObjectType> PartialEq<OT> for ActionRow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ActionRow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ActionRow ### impl IsA<Accessible> for ActionRow ### impl IsA<ActionRow> for ComboRow ### impl IsA<ActionRow> for SpinRow Available on **crate feature `v1_4`** only.### impl IsA<ActionRow> for SwitchRow Available on **crate feature `v1_4`** only.### impl IsA<Actionable> for ActionRow ### impl IsA<Buildable> for ActionRow ### impl IsA<ConstraintTarget> for ActionRow ### impl IsA<ListBoxRow> for ActionRow ### impl IsA<PreferencesRow> for ActionRow ### impl IsA<Widget> for ActionRow Auto Trait Implementations --- ### impl RefUnwindSafe for ActionRow ### impl !Send for ActionRow ### impl !Sync for ActionRow ### impl Unpin for ActionRow ### impl UnwindSafe for ActionRow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionRowExt for Owhere O: IsA<ActionRow>, #### fn activate(&self) #### fn add_prefix(&self, widget: &impl IsA<Widget>) #### fn add_suffix(&self, widget: &impl IsA<Widget>) #### fn activatable_widget(&self) -> Option<Widget#### fn icon_name(&self) -> Option<GString👎Deprecated: Since 1.3#### fn subtitle(&self) -> Option<GString#### fn subtitle_lines(&self) -> i32 #### fn is_subtitle_selectable(&self) -> bool Available on **crate feature `v1_3`** only.#### fn title_lines(&self) -> i32 #### fn remove(&self, widget: &impl IsA<Widget>) #### fn set_activatable_widget(&self, widget: Option<&impl IsA<Widget>>) #### fn set_icon_name(&self, icon_name: Option<&str>) 👎Deprecated: Since 1.3#### fn set_subtitle(&self, subtitle: &str) #### fn set_subtitle_lines(&self, subtitle_lines: i32) #### fn set_subtitle_selectable(&self, subtitle_selectable: bool) Available on **crate feature `v1_3`** only.#### fn set_title_lines(&self, title_lines: i32) #### fn connect_activated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_activatable_widget_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.3#### fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### fn connect_title_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListBoxRowExt for Owhere O: IsA<ListBoxRow>, #### fn changed(&self) #### fn is_activatable(&self) -> bool #### fn child(&self) -> Option<Widget#### fn header(&self) -> Option<Widget#### fn index(&self) -> i32 #### fn is_selectable(&self) -> bool #### fn is_selected(&self) -> bool #### fn set_activatable(&self, activatable: bool) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_header(&self, header: Option<&impl IsA<Widget>>) #### fn set_selectable(&self, selectable: bool) #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate(&self) #### fn connect_activatable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesRow>, #### fn title(&self) -> GString #### fn is_title_selectable(&self) -> bool Available on **crate feature `v1_1`** only.#### fn uses_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn uses_underline(&self) -> bool #### fn set_title(&self, title: &str) #### fn set_title_selectable(&self, title_selectable: bool) Available on **crate feature `v1_1`** only.#### fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_use_underline(&self, use_underline: bool) #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Animation === ``` #[repr(transparent)]pub struct Animation { /* private fields */ } ``` Implementations --- ### impl Animation #### pub const NONE: Option<&'static Animation> = None Trait Implementations --- ### impl Clone for Animation #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Animation Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Animation#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Animation #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for Animation #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Animation #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Animation ### impl IsA<Animation> for SpringAnimation ### impl IsA<Animation> for TimedAnimation Auto Trait Implementations --- ### impl RefUnwindSafe for Animation ### impl !Send for Animation ### impl !Sync for Animation ### impl Unpin for Animation ### impl UnwindSafe for Animation Blanket Implementations --- ### impl<O> AnimationExt for Owhere O: IsA<Animation>, #### fn follows_enable_animations_setting(&self) -> bool Available on **crate feature `v1_3`** only.#### fn state(&self) -> AnimationState #### fn target(&self) -> AnimationTarget #### fn value(&self) -> f64 #### fn widget(&self) -> Widget #### fn pause(&self) #### fn play(&self) #### fn reset(&self) #### fn resume(&self) #### fn set_follow_enable_animations_setting(&self, setting: bool) Available on **crate feature `v1_3`** only.#### fn set_target(&self, target: &impl IsA<AnimationTarget>) #### fn skip(&self) #### fn connect_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_follow_enable_animations_setting_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### fn connect_state_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_target_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_value_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::AnimationTarget === ``` #[repr(transparent)]pub struct AnimationTarget { /* private fields */ } ``` Implementations --- ### impl AnimationTarget #### pub const NONE: Option<&'static AnimationTarget> = None Trait Implementations --- ### impl Clone for AnimationTarget #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = AnimationTarget Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, AnimationTarget#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for AnimationTarget #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for AnimationTarget #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for AnimationTarget #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for AnimationTarget ### impl IsA<AnimationTarget> for CallbackAnimationTarget ### impl IsA<AnimationTarget> for PropertyAnimationTarget Available on **crate feature `v1_2`** only.Auto Trait Implementations --- ### impl RefUnwindSafe for AnimationTarget ### impl !Send for AnimationTarget ### impl !Sync for AnimationTarget ### impl Unpin for AnimationTarget ### impl UnwindSafe for AnimationTarget Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ApplicationWindow === ``` #[repr(transparent)]pub struct ApplicationWindow { /* private fields */ } ``` Implementations --- ### impl ApplicationWindow #### pub const NONE: Option<&'static ApplicationWindow> = None #### pub fn new(app: &impl IsA<Application>) -> ApplicationWindow #### pub fn builder() -> ApplicationWindowBuilder Creates a new builder-pattern struct instance to construct `ApplicationWindow` objects. This method returns an instance of `ApplicationWindowBuilder` which can be used to create `ApplicationWindow` objects. ##### Examples found in repository? examples/hello-world.rs (line 47) ``` 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 ``` ``` &varrfn main() { let application = Application::builder() .application_id("com.example.FirstAdwaitaApp") .build(); application.connect_startup(|_| { adw::init().unwrap(); }); application.connect_activate(|app| { // ActionRows are only available in Adwaita let row = ActionRow::builder() .activatable(true) .selectable(false) .title("Click me") .build(); row.connect_activated(|_| { eprintln!("Clicked!"); }); let list = ListBox::builder() .margin_top(32) .margin_end(32) .margin_bottom(32) .margin_start(32) // the content class makes the list look nicer .css_classes(vec![String::from("content")]) .build(); list.append(&row); // Combine the content in a box let content = Box::new(Orientation::Vertical, 0); // Adwaitas' ApplicationWindow does not include a HeaderBar content.append( &HeaderBar::builder() .title_widget(&adw::WindowTitle::new("First App", "")) .build(), ); content.append(&list); let window = ApplicationWindow::builder() .application(app) .default_width(350) // add content to window .content(&content) .build(); window.show(); }); application.run(); } ``` Trait Implementations --- ### impl Clone for ApplicationWindow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ApplicationWindow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ApplicationWindow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ApplicationWindow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = ApplicationWindow ### impl<OT: ObjectType> PartialEq<OT> for ApplicationWindow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ApplicationWindow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ApplicationWindow ### impl IsA<Accessible> for ApplicationWindow ### impl IsA<ActionGroup> for ApplicationWindow ### impl IsA<ActionMap> for ApplicationWindow ### impl IsA<ApplicationWindow> for ApplicationWindow ### impl IsA<Buildable> for ApplicationWindow ### impl IsA<ConstraintTarget> for ApplicationWindow ### impl IsA<Native> for ApplicationWindow ### impl IsA<Root> for ApplicationWindow ### impl IsA<ShortcutManager> for ApplicationWindow ### impl IsA<Widget> for ApplicationWindow ### impl IsA<Window> for ApplicationWindow Auto Trait Implementations --- ### impl RefUnwindSafe for ApplicationWindow ### impl !Send for ApplicationWindow ### impl !Sync for ApplicationWindow ### impl Unpin for ApplicationWindow ### impl UnwindSafe for ApplicationWindow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionGroupExt for Owhere O: IsA<ActionGroup>, #### fn action_added(&self, action_name: &str) #### fn action_enabled_changed(&self, action_name: &str, enabled: bool) #### fn action_removed(&self, action_name: &str) #### fn action_state_changed(&self, action_name: &str, state: &Variant) #### fn activate_action(&self, action_name: &str, parameter: Option<&Variant>) #### fn change_action_state(&self, action_name: &str, value: &Variant) #### fn is_action_enabled(&self, action_name: &str) -> bool #### fn action_parameter_type(&self, action_name: &str) -> Option<VariantType#### fn action_state(&self, action_name: &str) -> Option<Variant#### fn action_state_hint(&self, action_name: &str) -> Option<Variant#### fn action_state_type(&self, action_name: &str) -> Option<VariantType#### fn has_action(&self, action_name: &str) -> bool #### fn list_actions(&self) -> Vec<GString, Global#### fn connect_action_added<F>(&self, detail: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &str) + 'static, #### fn connect_action_enabled_changed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&Self, &str, bool) + 'static, #### fn connect_action_removed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&Self, &str) + 'static, #### fn connect_action_state_changed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&Self, &str, &Variant) + 'static, ### impl<O> ActionMapExt for Owhere O: IsA<ActionMap>, #### fn add_action(&self, action: &impl IsA<Action>) #### fn lookup_action(&self, action_name: &str) -> Option<Action#### fn remove_action(&self, action_name: &str) ### impl<O> ActionMapExtManual for Owhere O: IsA<ActionMap>, #### fn add_action_entries( &self, entries: impl IntoIterator<Item = ActionEntry<Self>> ) ### impl<O> AdwApplicationWindowExt for Owhere O: IsA<ApplicationWindow>, #### fn add_breakpoint(&self, breakpoint: Breakpoint) Available on **crate feature `v1_4`** only.#### fn content(&self) -> Option<Widget#### fn current_breakpoint(&self) -> Option<BreakpointAvailable on **crate feature `v1_4`** only.#### fn set_content(&self, content: Option<&impl IsA<Widget>>) #### fn connect_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. O: IsA<ApplicationWindow>, #### fn help_overlay(&self) -> Option<ShortcutsWindow#### fn id(&self) -> u32 #### fn shows_menubar(&self) -> bool #### fn set_help_overlay(&self, help_overlay: Option<&ShortcutsWindow>) #### fn set_show_menubar(&self, show_menubar: bool) #### fn connect_show_menubar_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Borrow<T> for Twhere T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<O> GtkWindowExt for Owhere O: IsA<Window>, #### fn close(&self) #### fn destroy(&self) #### fn fullscreen(&self) #### fn fullscreen_on_monitor(&self, monitor: &Monitor) #### fn application(&self) -> Option<Application#### fn child(&self) -> Option<Widget#### fn is_decorated(&self) -> bool #### fn default_size(&self) -> (i32, i32) #### fn default_widget(&self) -> Option<Widget#### fn is_deletable(&self) -> bool #### fn must_destroy_with_parent(&self) -> bool #### fn focus(&self) -> Option<Widget#### fn gets_focus_visible(&self) -> bool #### fn group(&self) -> WindowGroup #### fn hides_on_close(&self) -> bool #### fn icon_name(&self) -> Option<GString#### fn is_mnemonics_visible(&self) -> bool #### fn is_modal(&self) -> bool #### fn is_resizable(&self) -> bool #### fn title(&self) -> Option<GString#### fn titlebar(&self) -> Option<Widget#### fn transient_for(&self) -> Option<Window#### fn has_group(&self) -> bool #### fn is_active(&self) -> bool #### fn is_fullscreen(&self) -> bool #### fn is_maximized(&self) -> bool #### fn maximize(&self) #### fn minimize(&self) #### fn present(&self) #### fn present_with_time(&self, timestamp: u32) #### fn set_application(&self, application: Option<&impl IsA<Application>>) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_decorated(&self, setting: bool) #### fn set_default_size(&self, width: i32, height: i32) #### fn set_default_widget(&self, default_widget: Option<&impl IsA<Widget>>) #### fn set_deletable(&self, setting: bool) #### fn set_destroy_with_parent(&self, setting: bool) #### fn set_display(&self, display: &impl IsA<Display>) #### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) #### fn set_focus_visible(&self, setting: bool) #### fn set_hide_on_close(&self, setting: bool) #### fn set_icon_name(&self, name: Option<&str>) #### fn set_mnemonics_visible(&self, setting: bool) #### fn set_modal(&self, modal: bool) #### fn set_resizable(&self, resizable: bool) #### fn set_startup_id(&self, startup_id: &str) #### fn set_title(&self, title: Option<&str>) #### fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>) #### fn set_transient_for(&self, parent: Option<&impl IsA<Window>>) #### fn unfullscreen(&self) #### fn unmaximize(&self) #### fn unminimize(&self) #### fn default_height(&self) -> i32 #### fn set_default_height(&self, default_height: i32) #### fn default_width(&self) -> i32 #### fn set_default_width(&self, default_width: i32) #### fn focus_widget(&self) -> Option<Widget#### fn set_focus_widget<P>(&self, focus_widget: Option<&P>)where P: IsA<Widget>, #### fn is_fullscreened(&self) -> bool #### fn set_fullscreened(&self, fullscreened: bool) #### fn set_maximized(&self, maximized: bool) #### fn connect_activate_default<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_default(&self) #### fn connect_activate_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_focus(&self) #### fn connect_close_request<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) -> Propagation + 'static, #### fn connect_enable_debugging<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> bool + 'static, #### fn emit_enable_debugging(&self, toggle: bool) -> bool #### fn connect_keys_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_application_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_decorated_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_height_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_width_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_deletable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_destroy_with_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_display_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_fullscreened_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hide_on_close_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_icon_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_is_active_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_maximized_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonics_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_modal_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_resizable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_startup_id_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_title_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_transient_for_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> NativeExt for Owhere O: IsA<Native>, #### fn renderer(&self) -> Renderer #### fn surface(&self) -> Surface #### fn surface_transform(&self) -> (f64, f64) #### fn realize(&self) #### fn unrealize(&self) ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<O> RootExt for Owhere O: IsA<Root>, #### fn display(&self) -> Display #### fn focus(&self) -> Option<Widget#### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, ### impl<O> ShortcutManagerExt for Owhere O: IsA<ShortcutManager>, Struct libadwaita::Avatar === ``` #[repr(transparent)]pub struct Avatar { /* private fields */ } ``` Implementations --- ### impl Avatar #### pub fn new(size: i32, text: Option<&str>, show_initials: bool) -> Avatar #### pub fn builder() -> AvatarBuilder Creates a new builder-pattern struct instance to construct `Avatar` objects. This method returns an instance of `AvatarBuilder` which can be used to create `Avatar` objects. #### pub fn draw_to_texture(&self, scale_factor: i32) -> Texture #### pub fn custom_image(&self) -> Option<Paintable#### pub fn icon_name(&self) -> Option<GString#### pub fn shows_initials(&self) -> bool #### pub fn size(&self) -> i32 #### pub fn text(&self) -> Option<GString#### pub fn set_custom_image(&self, custom_image: Option<&impl IsA<Paintable>>) #### pub fn set_icon_name(&self, icon_name: Option<&str>) #### pub fn set_show_initials(&self, show_initials: bool) #### pub fn set_size(&self, size: i32) #### pub fn set_text(&self, text: Option<&str>) #### pub fn connect_custom_image_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_show_initials_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_text_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for Avatar #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Avatar Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Avatar#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Avatar #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for Avatar #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Avatar #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Avatar ### impl IsA<Accessible> for Avatar ### impl IsA<Buildable> for Avatar ### impl IsA<ConstraintTarget> for Avatar ### impl IsA<Widget> for Avatar Auto Trait Implementations --- ### impl RefUnwindSafe for Avatar ### impl !Send for Avatar ### impl !Sync for Avatar ### impl Unpin for Avatar ### impl UnwindSafe for Avatar Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Banner === ``` #[repr(transparent)]pub struct Banner { /* private fields */ } ``` Available on **crate feature `v1_3`** only.Implementations --- ### impl Banner #### pub fn new(title: &str) -> Banner #### pub fn builder() -> BannerBuilder Creates a new builder-pattern struct instance to construct `Banner` objects. This method returns an instance of `BannerBuilder` which can be used to create `Banner` objects. #### pub fn button_label(&self) -> Option<GString#### pub fn is_revealed(&self) -> bool #### pub fn title(&self) -> GString #### pub fn uses_markup(&self) -> bool #### pub fn set_button_label(&self, label: Option<&str>) #### pub fn set_revealed(&self, revealed: bool) #### pub fn set_title(&self, title: &str) #### pub fn set_use_markup(&self, use_markup: bool) #### pub fn connect_button_clicked<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_button_label_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_revealed_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for Banner #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Banner Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Banner#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Banner #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for Banner #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Banner #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Banner ### impl IsA<Accessible> for Banner ### impl IsA<Actionable> for Banner ### impl IsA<Buildable> for Banner ### impl IsA<ConstraintTarget> for Banner ### impl IsA<Widget> for Banner Auto Trait Implementations --- ### impl RefUnwindSafe for Banner ### impl !Send for Banner ### impl !Sync for Banner ### impl Unpin for Banner ### impl UnwindSafe for Banner Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Bin === ``` #[repr(transparent)]pub struct Bin { /* private fields */ } ``` Implementations --- ### impl Bin #### pub const NONE: Option<&'static Bin> = None #### pub fn new() -> Bin #### pub fn builder() -> BinBuilder Creates a new builder-pattern struct instance to construct `Bin` objects. This method returns an instance of `BinBuilder` which can be used to create `Bin` objects. Trait Implementations --- ### impl Clone for Bin #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Bin Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Bin#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Bin #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for Bin #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Bin #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Bin ### impl IsA<Accessible> for Bin ### impl IsA<Buildable> for Bin ### impl IsA<ConstraintTarget> for Bin ### impl IsA<Widget> for Bin Auto Trait Implementations --- ### impl RefUnwindSafe for Bin ### impl !Send for Bin ### impl !Sync for Bin ### impl Unpin for Bin ### impl UnwindSafe for Bin Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. O: IsA<Bin>, #### fn child(&self) -> Option<Widget#### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId ### impl<T> Borrow<T> for Twhere T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Breakpoint === ``` #[repr(transparent)]pub struct Breakpoint { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl Breakpoint #### pub fn new(condition: BreakpointCondition) -> Breakpoint #### pub fn add_setter( &self, object: &impl IsA<Object>, property: &str, value: &Value ) #### pub fn condition(&self) -> Option<BreakpointCondition#### pub fn set_condition(&self, condition: Option<&BreakpointCondition>) #### pub fn connect_apply<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn connect_unapply<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn connect_condition_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl Breakpoint #### pub fn add_setters(&self, additions: &[(&impl IsA<Object>, &str, impl ToValue)]) Trait Implementations --- ### impl Clone for Breakpoint #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Breakpoint Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Breakpoint#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Breakpoint #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for Breakpoint #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Breakpoint #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Breakpoint ### impl IsA<Buildable> for Breakpoint Auto Trait Implementations --- ### impl RefUnwindSafe for Breakpoint ### impl !Send for Breakpoint ### impl !Sync for Breakpoint ### impl Unpin for Breakpoint ### impl UnwindSafe for Breakpoint Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::BreakpointBin === ``` #[repr(transparent)]pub struct BreakpointBin { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl BreakpointBin #### pub const NONE: Option<&'static BreakpointBin> = None #### pub fn new() -> BreakpointBin #### pub fn builder() -> BreakpointBinBuilder Creates a new builder-pattern struct instance to construct `BreakpointBin` objects. This method returns an instance of `BreakpointBinBuilder` which can be used to create `BreakpointBin` objects. Trait Implementations --- ### impl Clone for BreakpointBin #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = BreakpointBin Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, BreakpointBin#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for BreakpointBin #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for BreakpointBin #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for BreakpointBin #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for BreakpointBin ### impl IsA<Accessible> for BreakpointBin ### impl IsA<Buildable> for BreakpointBin ### impl IsA<ConstraintTarget> for BreakpointBin ### impl IsA<Widget> for BreakpointBin Auto Trait Implementations --- ### impl RefUnwindSafe for BreakpointBin ### impl !Send for BreakpointBin ### impl !Sync for BreakpointBin ### impl Unpin for BreakpointBin ### impl UnwindSafe for BreakpointBin Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<BreakpointBin>, #### fn add_breakpoint(&self, breakpoint: Breakpoint) Available on **crate feature `v1_4`** only.#### fn child(&self) -> Option<WidgetAvailable on **crate feature `v1_4`** only.#### fn current_breakpoint(&self) -> Option<BreakpointAvailable on **crate feature `v1_4`** only.#### fn set_child(&self, child: Option<&impl IsA<Widget>>) Available on **crate feature `v1_4`** only.#### fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.### impl<O> BuildableExt for Owhere O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::BreakpointCondition === ``` #[repr(transparent)]pub struct BreakpointCondition { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl BreakpointCondition #### pub fn as_ptr(&self) -> *mutAdwBreakpointCondition Return the inner pointer to the underlying C value. #### pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const*constAdwBreakpointCondition ) -> &'a Self Borrows the underlying C value. #### pub unsafe fn from_glib_ptr_borrow_mut<'a>( ptr: *mut*mutAdwBreakpointCondition ) -> &'a mut Self Borrows the underlying C value mutably. ### impl BreakpointCondition #### pub fn new_and( condition_1: BreakpointCondition, condition_2: BreakpointCondition ) -> BreakpointCondition #### pub fn new_length( type_: BreakpointConditionLengthType, value: f64, unit: LengthUnit ) -> BreakpointCondition #### pub fn new_or( condition_1: BreakpointCondition, condition_2: BreakpointCondition ) -> BreakpointCondition #### pub fn new_ratio( type_: BreakpointConditionRatioType, width: i32, height: i32 ) -> BreakpointCondition #### pub fn to_str(&self) -> GString #### pub fn parse(str: &str) -> Result<BreakpointCondition, BoolErrorTrait Implementations --- ### impl Clone for BreakpointCondition #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(o: BreakpointCondition) -> Self Converts to this type from the input type.### impl HasParamSpec for BreakpointCondition #### type ParamSpec = ParamSpecBoxed #### type SetValue = BreakpointCondition Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, BreakpointCondition#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for BreakpointCondition #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &BreakpointCondition) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &BreakpointCondition) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<BreakpointCondition> for BreakpointCondition #### fn partial_cmp(&self, other: &BreakpointCondition) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for BreakpointCondition ### impl StructuralEq for BreakpointCondition ### impl StructuralPartialEq for BreakpointCondition Auto Trait Implementations --- ### impl RefUnwindSafe for BreakpointCondition ### impl !Send for BreakpointCondition ### impl !Sync for BreakpointCondition ### impl Unpin for BreakpointCondition ### impl UnwindSafe for BreakpointCondition Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, Struct libadwaita::ButtonContent === ``` #[repr(transparent)]pub struct ButtonContent { /* private fields */ } ``` Implementations --- ### impl ButtonContent #### pub fn new() -> ButtonContent #### pub fn builder() -> ButtonContentBuilder Creates a new builder-pattern struct instance to construct `ButtonContent` objects. This method returns an instance of `ButtonContentBuilder` which can be used to create `ButtonContent` objects. #### pub fn can_shrink(&self) -> bool Available on **crate feature `v1_4`** only.#### pub fn icon_name(&self) -> GString #### pub fn label(&self) -> GString #### pub fn uses_underline(&self) -> bool #### pub fn set_can_shrink(&self, can_shrink: bool) Available on **crate feature `v1_4`** only.#### pub fn set_icon_name(&self, icon_name: &str) #### pub fn set_label(&self, label: &str) #### pub fn set_use_underline(&self, use_underline: bool) #### pub fn connect_can_shrink_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### pub fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_label_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for ButtonContent #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ButtonContent Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ButtonContent#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ButtonContent #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for ButtonContent #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ButtonContent #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ButtonContent ### impl IsA<Accessible> for ButtonContent ### impl IsA<Buildable> for ButtonContent ### impl IsA<ConstraintTarget> for ButtonContent ### impl IsA<Widget> for ButtonContent Auto Trait Implementations --- ### impl RefUnwindSafe for ButtonContent ### impl !Send for ButtonContent ### impl !Sync for ButtonContent ### impl Unpin for ButtonContent ### impl UnwindSafe for ButtonContent Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::CallbackAnimationTarget === ``` #[repr(transparent)]pub struct CallbackAnimationTarget { /* private fields */ } ``` Implementations --- ### impl CallbackAnimationTarget #### pub fn new<P: Fn(f64) + 'static>(callback: P) -> CallbackAnimationTarget Trait Implementations --- ### impl Clone for CallbackAnimationTarget #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = CallbackAnimationTarget Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, CallbackAnimationTarget#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for CallbackAnimationTarget #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = AnimationTarget ### impl<OT: ObjectType> PartialEq<OT> for CallbackAnimationTarget #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for CallbackAnimationTarget #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for CallbackAnimationTarget ### impl IsA<AnimationTarget> for CallbackAnimationTarget Auto Trait Implementations --- ### impl RefUnwindSafe for CallbackAnimationTarget ### impl !Send for CallbackAnimationTarget ### impl !Sync for CallbackAnimationTarget ### impl Unpin for CallbackAnimationTarget ### impl UnwindSafe for CallbackAnimationTarget Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Carousel === ``` #[repr(transparent)]pub struct Carousel { /* private fields */ } ``` Implementations --- ### impl Carousel #### pub fn new() -> Carousel #### pub fn builder() -> CarouselBuilder Creates a new builder-pattern struct instance to construct `Carousel` objects. This method returns an instance of `CarouselBuilder` which can be used to create `Carousel` objects. #### pub fn append(&self, child: &impl IsA<Widget>) #### pub fn allows_long_swipes(&self) -> bool #### pub fn allows_mouse_drag(&self) -> bool #### pub fn allows_scroll_wheel(&self) -> bool #### pub fn is_interactive(&self) -> bool #### pub fn n_pages(&self) -> u32 #### pub fn position(&self) -> f64 #### pub fn reveal_duration(&self) -> u32 #### pub fn scroll_params(&self) -> SpringParams #### pub fn spacing(&self) -> u32 #### pub fn insert(&self, child: &impl IsA<Widget>, position: i32) #### pub fn prepend(&self, child: &impl IsA<Widget>) #### pub fn remove(&self, child: &impl IsA<Widget>) #### pub fn reorder(&self, child: &impl IsA<Widget>, position: i32) #### pub fn scroll_to(&self, widget: &impl IsA<Widget>, animate: bool) #### pub fn set_allow_long_swipes(&self, allow_long_swipes: bool) #### pub fn set_allow_mouse_drag(&self, allow_mouse_drag: bool) #### pub fn set_allow_scroll_wheel(&self, allow_scroll_wheel: bool) #### pub fn set_interactive(&self, interactive: bool) #### pub fn set_reveal_duration(&self, reveal_duration: u32) #### pub fn set_scroll_params(&self, params: &SpringParams) #### pub fn set_spacing(&self, spacing: u32) #### pub fn connect_page_changed<F: Fn(&Self, u32) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_allow_long_swipes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_allow_mouse_drag_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_allow_scroll_wheel_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_interactive_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_n_pages_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_position_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_reveal_duration_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_scroll_params_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl Carousel #### pub fn nth_page(&self, n: u32) -> Widget Trait Implementations --- ### impl Clone for Carousel #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Carousel Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Carousel#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Carousel #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for Carousel #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Carousel #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Carousel ### impl IsA<Accessible> for Carousel ### impl IsA<Buildable> for Carousel ### impl IsA<ConstraintTarget> for Carousel ### impl IsA<Orientable> for Carousel ### impl IsA<Swipeable> for Carousel ### impl IsA<Widget> for Carousel Auto Trait Implementations --- ### impl RefUnwindSafe for Carousel ### impl !Send for Carousel ### impl !Sync for Carousel ### impl Unpin for Carousel ### impl UnwindSafe for Carousel Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<O> SwipeableExt for Owhere O: IsA<Swipeable>, #### fn cancel_progress(&self) -> f64 #### fn distance(&self) -> f64 #### fn progress(&self) -> f64 #### fn snap_points(&self) -> Vec<f64#### fn swipe_area( &self, navigation_direction: NavigationDirection, is_drag: bool ) -> Rectangle ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::CarouselIndicatorDots === ``` #[repr(transparent)]pub struct CarouselIndicatorDots { /* private fields */ } ``` Implementations --- ### impl CarouselIndicatorDots #### pub fn new() -> CarouselIndicatorDots #### pub fn builder() -> CarouselIndicatorDotsBuilder Creates a new builder-pattern struct instance to construct `CarouselIndicatorDots` objects. This method returns an instance of `CarouselIndicatorDotsBuilder` which can be used to create `CarouselIndicatorDots` objects. #### pub fn carousel(&self) -> Option<Carousel#### pub fn set_carousel(&self, carousel: Option<&Carousel>) #### pub fn connect_carousel_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for CarouselIndicatorDots #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = CarouselIndicatorDots Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, CarouselIndicatorDots#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for CarouselIndicatorDots #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for CarouselIndicatorDots #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for CarouselIndicatorDots #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for CarouselIndicatorDots ### impl IsA<Accessible> for CarouselIndicatorDots ### impl IsA<Buildable> for CarouselIndicatorDots ### impl IsA<ConstraintTarget> for CarouselIndicatorDots ### impl IsA<Orientable> for CarouselIndicatorDots ### impl IsA<Widget> for CarouselIndicatorDots Auto Trait Implementations --- ### impl RefUnwindSafe for CarouselIndicatorDots ### impl !Send for CarouselIndicatorDots ### impl !Sync for CarouselIndicatorDots ### impl Unpin for CarouselIndicatorDots ### impl UnwindSafe for CarouselIndicatorDots Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::CarouselIndicatorLines === ``` #[repr(transparent)]pub struct CarouselIndicatorLines { /* private fields */ } ``` Implementations --- ### impl CarouselIndicatorLines #### pub fn new() -> CarouselIndicatorLines #### pub fn builder() -> CarouselIndicatorLinesBuilder Creates a new builder-pattern struct instance to construct `CarouselIndicatorLines` objects. This method returns an instance of `CarouselIndicatorLinesBuilder` which can be used to create `CarouselIndicatorLines` objects. #### pub fn carousel(&self) -> Option<Carousel#### pub fn set_carousel(&self, carousel: Option<&Carousel>) #### pub fn connect_carousel_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for CarouselIndicatorLines #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = CarouselIndicatorLines Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, CarouselIndicatorLines#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for CarouselIndicatorLines #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for CarouselIndicatorLines #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for CarouselIndicatorLines #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for CarouselIndicatorLines ### impl IsA<Accessible> for CarouselIndicatorLines ### impl IsA<Buildable> for CarouselIndicatorLines ### impl IsA<ConstraintTarget> for CarouselIndicatorLines ### impl IsA<Orientable> for CarouselIndicatorLines ### impl IsA<Widget> for CarouselIndicatorLines Auto Trait Implementations --- ### impl RefUnwindSafe for CarouselIndicatorLines ### impl !Send for CarouselIndicatorLines ### impl !Sync for CarouselIndicatorLines ### impl Unpin for CarouselIndicatorLines ### impl UnwindSafe for CarouselIndicatorLines Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Clamp === ``` #[repr(transparent)]pub struct Clamp { /* private fields */ } ``` Implementations --- ### impl Clamp #### pub fn new() -> Clamp #### pub fn builder() -> ClampBuilder Creates a new builder-pattern struct instance to construct `Clamp` objects. This method returns an instance of `ClampBuilder` which can be used to create `Clamp` objects. #### pub fn child(&self) -> Option<Widget#### pub fn maximum_size(&self) -> i32 #### pub fn tightening_threshold(&self) -> i32 #### pub fn unit(&self) -> LengthUnit Available on **crate feature `v1_4`** only.#### pub fn set_child(&self, child: Option<&impl IsA<Widget>>) #### pub fn set_maximum_size(&self, maximum_size: i32) #### pub fn set_tightening_threshold(&self, tightening_threshold: i32) #### pub fn set_unit(&self, unit: LengthUnit) Available on **crate feature `v1_4`** only.#### pub fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_maximum_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_tightening_threshold_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_unit_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.Trait Implementations --- ### impl Clone for Clamp #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Clamp Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Clamp#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Clamp #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for Clamp #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Clamp #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Clamp ### impl IsA<Accessible> for Clamp ### impl IsA<Buildable> for Clamp ### impl IsA<ConstraintTarget> for Clamp ### impl IsA<Orientable> for Clamp ### impl IsA<Widget> for Clamp Auto Trait Implementations --- ### impl RefUnwindSafe for Clamp ### impl !Send for Clamp ### impl !Sync for Clamp ### impl Unpin for Clamp ### impl UnwindSafe for Clamp Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ClampLayout === ``` #[repr(transparent)]pub struct ClampLayout { /* private fields */ } ``` Implementations --- ### impl ClampLayout #### pub fn new() -> ClampLayout #### pub fn builder() -> ClampLayoutBuilder Creates a new builder-pattern struct instance to construct `ClampLayout` objects. This method returns an instance of `ClampLayoutBuilder` which can be used to create `ClampLayout` objects. #### pub fn maximum_size(&self) -> i32 #### pub fn tightening_threshold(&self) -> i32 #### pub fn unit(&self) -> LengthUnit Available on **crate feature `v1_4`** only.#### pub fn set_maximum_size(&self, maximum_size: i32) #### pub fn set_tightening_threshold(&self, tightening_threshold: i32) #### pub fn set_unit(&self, unit: LengthUnit) Available on **crate feature `v1_4`** only.#### pub fn connect_maximum_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_tightening_threshold_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_unit_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.Trait Implementations --- ### impl Clone for ClampLayout #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ClampLayout Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ClampLayout#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ClampLayout #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = LayoutManager ### impl<OT: ObjectType> PartialEq<OT> for ClampLayout #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ClampLayout #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ClampLayout ### impl IsA<LayoutManager> for ClampLayout ### impl IsA<Orientable> for ClampLayout Auto Trait Implementations --- ### impl RefUnwindSafe for ClampLayout ### impl !Send for ClampLayout ### impl !Sync for ClampLayout ### impl Unpin for ClampLayout ### impl UnwindSafe for ClampLayout Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> LayoutManagerExt for Owhere O: IsA<LayoutManager>, #### fn allocate( &self, widget: &impl IsA<Widget>, width: i32, height: i32, baseline: i32 ) #### fn layout_child(&self, child: &impl IsA<Widget>) -> LayoutChild #### fn request_mode(&self) -> SizeRequestMode #### fn widget(&self) -> Option<Widget#### fn layout_changed(&self) #### fn measure( &self, widget: &impl IsA<Widget>, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ClampScrollable === ``` #[repr(transparent)]pub struct ClampScrollable { /* private fields */ } ``` Implementations --- ### impl ClampScrollable #### pub fn new() -> ClampScrollable #### pub fn builder() -> ClampScrollableBuilder Creates a new builder-pattern struct instance to construct `ClampScrollable` objects. This method returns an instance of `ClampScrollableBuilder` which can be used to create `ClampScrollable` objects. #### pub fn child(&self) -> Option<Widget#### pub fn maximum_size(&self) -> i32 #### pub fn tightening_threshold(&self) -> i32 #### pub fn unit(&self) -> LengthUnit Available on **crate feature `v1_4`** only.#### pub fn set_child(&self, child: Option<&impl IsA<Widget>>) #### pub fn set_maximum_size(&self, maximum_size: i32) #### pub fn set_tightening_threshold(&self, tightening_threshold: i32) #### pub fn set_unit(&self, unit: LengthUnit) Available on **crate feature `v1_4`** only.#### pub fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_maximum_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_tightening_threshold_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_unit_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.Trait Implementations --- ### impl Clone for ClampScrollable #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ClampScrollable Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ClampScrollable#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ClampScrollable #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for ClampScrollable #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ClampScrollable #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ClampScrollable ### impl IsA<Accessible> for ClampScrollable ### impl IsA<Buildable> for ClampScrollable ### impl IsA<ConstraintTarget> for ClampScrollable ### impl IsA<Orientable> for ClampScrollable ### impl IsA<Scrollable> for ClampScrollable ### impl IsA<Widget> for ClampScrollable Auto Trait Implementations --- ### impl RefUnwindSafe for ClampScrollable ### impl !Send for ClampScrollable ### impl !Sync for ClampScrollable ### impl Unpin for ClampScrollable ### impl UnwindSafe for ClampScrollable Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<O> ScrollableExt for Owhere O: IsA<Scrollable>, #### fn border(&self) -> Option<Border#### fn hadjustment(&self) -> Option<Adjustment#### fn hscroll_policy(&self) -> ScrollablePolicy #### fn vadjustment(&self) -> Option<Adjustment#### fn vscroll_policy(&self) -> ScrollablePolicy #### fn set_hadjustment(&self, hadjustment: Option<&impl IsA<Adjustment>>) #### fn set_hscroll_policy(&self, policy: ScrollablePolicy) #### fn set_vadjustment(&self, vadjustment: Option<&impl IsA<Adjustment>>) #### fn set_vscroll_policy(&self, policy: ScrollablePolicy) #### fn connect_hadjustment_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hscroll_policy_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vadjustment_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vscroll_policy_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ComboRow === ``` #[repr(transparent)]pub struct ComboRow { /* private fields */ } ``` Implementations --- ### impl ComboRow #### pub const NONE: Option<&'static ComboRow> = None #### pub fn new() -> ComboRow #### pub fn builder() -> ComboRowBuilder Creates a new builder-pattern struct instance to construct `ComboRow` objects. This method returns an instance of `ComboRowBuilder` which can be used to create `ComboRow` objects. Trait Implementations --- ### impl Clone for ComboRow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ComboRow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ComboRow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ComboRow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = ActionRow ### impl<OT: ObjectType> PartialEq<OT> for ComboRow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ComboRow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ComboRow ### impl IsA<Accessible> for ComboRow ### impl IsA<ActionRow> for ComboRow ### impl IsA<Actionable> for ComboRow ### impl IsA<Buildable> for ComboRow ### impl IsA<ConstraintTarget> for ComboRow ### impl IsA<ListBoxRow> for ComboRow ### impl IsA<PreferencesRow> for ComboRow ### impl IsA<Widget> for ComboRow Auto Trait Implementations --- ### impl RefUnwindSafe for ComboRow ### impl !Send for ComboRow ### impl !Sync for ComboRow ### impl Unpin for ComboRow ### impl UnwindSafe for ComboRow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionRowExt for Owhere O: IsA<ActionRow>, #### fn activate(&self) #### fn add_prefix(&self, widget: &impl IsA<Widget>) #### fn add_suffix(&self, widget: &impl IsA<Widget>) #### fn activatable_widget(&self) -> Option<Widget#### fn icon_name(&self) -> Option<GString👎Deprecated: Since 1.3#### fn subtitle(&self) -> Option<GString#### fn subtitle_lines(&self) -> i32 #### fn is_subtitle_selectable(&self) -> bool Available on **crate feature `v1_3`** only.#### fn title_lines(&self) -> i32 #### fn remove(&self, widget: &impl IsA<Widget>) #### fn set_activatable_widget(&self, widget: Option<&impl IsA<Widget>>) #### fn set_icon_name(&self, icon_name: Option<&str>) 👎Deprecated: Since 1.3#### fn set_subtitle(&self, subtitle: &str) #### fn set_subtitle_lines(&self, subtitle_lines: i32) #### fn set_subtitle_selectable(&self, subtitle_selectable: bool) Available on **crate feature `v1_3`** only.#### fn set_title_lines(&self, title_lines: i32) #### fn connect_activated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_activatable_widget_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.3#### fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### fn connect_title_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. O: IsA<ComboRow>, #### fn enables_search(&self) -> bool Available on **crate feature `v1_4`** only.#### fn expression(&self) -> Option<Expression#### fn factory(&self) -> Option<ListItemFactory#### fn list_factory(&self) -> Option<ListItemFactory#### fn model(&self) -> Option<ListModel#### fn selected(&self) -> u32 #### fn selected_item(&self) -> Option<Object#### fn uses_subtitle(&self) -> bool #### fn set_enable_search(&self, enable_search: bool) Available on **crate feature `v1_4`** only.#### fn set_expression(&self, expression: Option<impl AsRef<Expression>>) #### fn set_factory(&self, factory: Option<&impl IsA<ListItemFactory>>) #### fn set_list_factory(&self, factory: Option<&impl IsA<ListItemFactory>>) #### fn set_model(&self, model: Option<&impl IsA<ListModel>>) #### fn set_selected(&self, position: u32) #### fn set_use_subtitle(&self, use_subtitle: bool) #### fn connect_enable_search_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_expression_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_factory_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_list_factory_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_model_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_selected_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_selected_item_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_use_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> From<T> for T #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListBoxRowExt for Owhere O: IsA<ListBoxRow>, #### fn changed(&self) #### fn is_activatable(&self) -> bool #### fn child(&self) -> Option<Widget#### fn header(&self) -> Option<Widget#### fn index(&self) -> i32 #### fn is_selectable(&self) -> bool #### fn is_selected(&self) -> bool #### fn set_activatable(&self, activatable: bool) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_header(&self, header: Option<&impl IsA<Widget>>) #### fn set_selectable(&self, selectable: bool) #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate(&self) #### fn connect_activatable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesRow>, #### fn title(&self) -> GString #### fn is_title_selectable(&self) -> bool Available on **crate feature `v1_1`** only.#### fn uses_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn uses_underline(&self) -> bool #### fn set_title(&self, title: &str) #### fn set_title_selectable(&self, title_selectable: bool) Available on **crate feature `v1_1`** only.#### fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_use_underline(&self, use_underline: bool) #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::EntryRow === ``` #[repr(transparent)]pub struct EntryRow { /* private fields */ } ``` Available on **crate feature `v1_2`** only.Implementations --- ### impl EntryRow #### pub const NONE: Option<&'static EntryRow> = None #### pub fn new() -> EntryRow #### pub fn builder() -> EntryRowBuilder Creates a new builder-pattern struct instance to construct `EntryRow` objects. This method returns an instance of `EntryRowBuilder` which can be used to create `EntryRow` objects. Trait Implementations --- ### impl Clone for EntryRow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = EntryRow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, EntryRow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for EntryRow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = PreferencesRow ### impl<OT: ObjectType> PartialEq<OT> for EntryRow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for EntryRow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for EntryRow ### impl IsA<Accessible> for EntryRow ### impl IsA<Actionable> for EntryRow ### impl IsA<Buildable> for EntryRow ### impl IsA<ConstraintTarget> for EntryRow ### impl IsA<Editable> for EntryRow ### impl IsA<EntryRow> for PasswordEntryRow ### impl IsA<ListBoxRow> for EntryRow ### impl IsA<PreferencesRow> for EntryRow ### impl IsA<Widget> for EntryRow Auto Trait Implementations --- ### impl RefUnwindSafe for EntryRow ### impl !Send for EntryRow ### impl !Sync for EntryRow ### impl Unpin for EntryRow ### impl UnwindSafe for EntryRow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. O: IsA<Editable>, #### fn delete_selection(&self) #### fn delete_text(&self, start_pos: i32, end_pos: i32) #### fn finish_delegate(&self) #### fn alignment(&self) -> f32 #### fn chars(&self, start_pos: i32, end_pos: i32) -> GString #### fn delegate(&self) -> Option<Editable#### fn is_editable(&self) -> bool #### fn enables_undo(&self) -> bool #### fn max_width_chars(&self) -> i32 #### fn position(&self) -> i32 #### fn selection_bounds(&self) -> Option<(i32, i32)#### fn text(&self) -> GString #### fn width_chars(&self) -> i32 #### fn init_delegate(&self) #### fn insert_text(&self, text: &str, position: &mut i32) #### fn select_region(&self, start_pos: i32, end_pos: i32) #### fn set_alignment(&self, xalign: f32) #### fn set_editable(&self, is_editable: bool) #### fn set_enable_undo(&self, enable_undo: bool) #### fn set_max_width_chars(&self, n_chars: i32) #### fn set_position(&self, position: i32) #### fn set_text(&self, text: &str) #### fn set_width_chars(&self, n_chars: i32) #### fn cursor_position(&self) -> i32 #### fn selection_bound(&self) -> i32 #### fn xalign(&self) -> f32 #### fn set_xalign(&self, xalign: f32) #### fn connect_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_delete_text<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32) + 'static, #### fn connect_cursor_position_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_editable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_enable_undo_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_max_width_chars_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selection_bound_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_chars_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_xalign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> EditableExtManual for Owhere O: IsA<Editable>, #### fn connect_insert_text<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &str, &mut i32) + 'static, ### impl<O> EntryRowExt for Owhere O: IsA<EntryRow>, #### fn add_prefix(&self, widget: &impl IsA<Widget>) Available on **crate feature `v1_2`** only.#### fn add_suffix(&self, widget: &impl IsA<Widget>) Available on **crate feature `v1_2`** only.#### fn activates_default(&self) -> bool Available on **crate feature `v1_2`** only.#### fn attributes(&self) -> Option<AttrListAvailable on **crate feature `v1_2`** only.#### fn enables_emoji_completion(&self) -> bool Available on **crate feature `v1_2`** only.#### fn input_hints(&self) -> InputHints Available on **crate feature `v1_2`** only.#### fn input_purpose(&self) -> InputPurpose Available on **crate feature `v1_2`** only.#### fn shows_apply_button(&self) -> bool Available on **crate feature `v1_2`** only.#### fn grab_focus_without_selecting(&self) -> bool Available on **crate features `v1_2` and `v1_3`** only.#### fn remove(&self, widget: &impl IsA<Widget>) Available on **crate feature `v1_2`** only.#### fn set_activates_default(&self, activates: bool) Available on **crate feature `v1_2`** only.#### fn set_attributes(&self, attributes: Option<&AttrList>) Available on **crate feature `v1_2`** only.#### fn set_enable_emoji_completion(&self, enable_emoji_completion: bool) Available on **crate feature `v1_2`** only.#### fn set_input_hints(&self, hints: InputHints) Available on **crate feature `v1_2`** only.#### fn set_input_purpose(&self, purpose: InputPurpose) Available on **crate feature `v1_2`** only.#### fn set_show_apply_button(&self, show_apply_button: bool) Available on **crate feature `v1_2`** only.#### fn connect_apply<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_entry_activated<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_activates_default_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_attributes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_enable_emoji_completion_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_input_hints_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_input_purpose_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_show_apply_button_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.### impl<T> From<T> for T #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListBoxRowExt for Owhere O: IsA<ListBoxRow>, #### fn changed(&self) #### fn is_activatable(&self) -> bool #### fn child(&self) -> Option<Widget#### fn header(&self) -> Option<Widget#### fn index(&self) -> i32 #### fn is_selectable(&self) -> bool #### fn is_selected(&self) -> bool #### fn set_activatable(&self, activatable: bool) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_header(&self, header: Option<&impl IsA<Widget>>) #### fn set_selectable(&self, selectable: bool) #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate(&self) #### fn connect_activatable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesRow>, #### fn title(&self) -> GString #### fn is_title_selectable(&self) -> bool Available on **crate feature `v1_1`** only.#### fn uses_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn uses_underline(&self) -> bool #### fn set_title(&self, title: &str) #### fn set_title_selectable(&self, title_selectable: bool) Available on **crate feature `v1_1`** only.#### fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_use_underline(&self, use_underline: bool) #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::EnumListItem === ``` #[repr(transparent)]pub struct EnumListItem { /* private fields */ } ``` Implementations --- ### impl EnumListItem #### pub fn name(&self) -> GString #### pub fn nick(&self) -> GString #### pub fn value(&self) -> i32 #### pub fn connect_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_nick_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_value_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for EnumListItem #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = EnumListItem Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, EnumListItem#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for EnumListItem #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for EnumListItem #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for EnumListItem #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for EnumListItem Auto Trait Implementations --- ### impl RefUnwindSafe for EnumListItem ### impl !Send for EnumListItem ### impl !Sync for EnumListItem ### impl Unpin for EnumListItem ### impl UnwindSafe for EnumListItem Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::EnumListModel === ``` #[repr(transparent)]pub struct EnumListModel { /* private fields */ } ``` Implementations --- ### impl EnumListModel #### pub fn new(enum_type: Type) -> EnumListModel #### pub fn find_position(&self, value: i32) -> u32 #### pub fn enum_type(&self) -> Type Trait Implementations --- ### impl Clone for EnumListModel #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = EnumListModel Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, EnumListModel#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for EnumListModel #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for EnumListModel #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for EnumListModel #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for EnumListModel ### impl IsA<ListModel> for EnumListModel Auto Trait Implementations --- ### impl RefUnwindSafe for EnumListModel ### impl !Send for EnumListModel ### impl !Sync for EnumListModel ### impl Unpin for EnumListModel ### impl UnwindSafe for EnumListModel Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListModelExt for Owhere O: IsA<ListModel>, #### fn item_type(&self) -> Type #### fn n_items(&self) -> u32 #### fn item(&self, position: u32) -> Option<Object#### fn items_changed(&self, position: u32, removed: u32, added: u32) #### fn connect_items_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, u32, u32, u32) + 'static, ### impl<T> ListModelExtManual for Twhere T: IsA<ListModel>, #### fn snapshot(&self) -> Vec<Object, GlobalGet an immutable snapshot of the container inside the `ListModel`. Any modification done to the returned container `Vec` will not be reflected on the `ListModel`.#### fn iter<LT>(&self) -> ListModelIter<'_, LT>where LT: IsA<Object>, If `T::static_type().is_a(self.item_type())` then it returns an iterator over the `ListModel` elements, else the types are not compatible and returns an `Err(...)`. T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ExpanderRow === ``` #[repr(transparent)]pub struct ExpanderRow { /* private fields */ } ``` Implementations --- ### impl ExpanderRow #### pub const NONE: Option<&'static ExpanderRow> = None #### pub fn new() -> ExpanderRow #### pub fn builder() -> ExpanderRowBuilder Creates a new builder-pattern struct instance to construct `ExpanderRow` objects. This method returns an instance of `ExpanderRowBuilder` which can be used to create `ExpanderRow` objects. Trait Implementations --- ### impl Clone for ExpanderRow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ExpanderRow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ExpanderRow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ExpanderRow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = PreferencesRow ### impl<OT: ObjectType> PartialEq<OT> for ExpanderRow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ExpanderRow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ExpanderRow ### impl IsA<Accessible> for ExpanderRow ### impl IsA<Actionable> for ExpanderRow ### impl IsA<Buildable> for ExpanderRow ### impl IsA<ConstraintTarget> for ExpanderRow ### impl IsA<ListBoxRow> for ExpanderRow ### impl IsA<PreferencesRow> for ExpanderRow ### impl IsA<Widget> for ExpanderRow Auto Trait Implementations --- ### impl RefUnwindSafe for ExpanderRow ### impl !Send for ExpanderRow ### impl !Sync for ExpanderRow ### impl Unpin for ExpanderRow ### impl UnwindSafe for ExpanderRow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. O: IsA<ExpanderRow>, #### fn add_action(&self, widget: &impl IsA<Widget>) 👎Deprecated: Since 1.4#### fn add_prefix(&self, widget: &impl IsA<Widget>) #### fn add_row(&self, child: &impl IsA<Widget>) #### fn add_suffix(&self, widget: &impl IsA<Widget>) Available on **crate feature `v1_4`** only.#### fn enables_expansion(&self) -> bool #### fn is_expanded(&self) -> bool #### fn icon_name(&self) -> Option<GString👎Deprecated: Since 1.3#### fn shows_enable_switch(&self) -> bool #### fn subtitle(&self) -> GString #### fn is_subtitle_lines(&self) -> bool Available on **crate feature `v1_3`** only.#### fn is_title_lines(&self) -> bool Available on **crate feature `v1_3`** only.#### fn remove(&self, child: &impl IsA<Widget>) #### fn set_enable_expansion(&self, enable_expansion: bool) #### fn set_expanded(&self, expanded: bool) #### fn set_icon_name(&self, icon_name: Option<&str>) 👎Deprecated: Since 1.3#### fn set_show_enable_switch(&self, show_enable_switch: bool) #### fn set_subtitle(&self, subtitle: &str) #### fn set_subtitle_lines(&self, subtitle_lines: i32) Available on **crate feature `v1_3`** only.#### fn set_title_lines(&self, title_lines: i32) Available on **crate feature `v1_3`** only.#### fn connect_enable_expansion_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_expanded_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.3#### fn connect_show_enable_switch_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### fn connect_title_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.### impl<T> From<T> for T #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListBoxRowExt for Owhere O: IsA<ListBoxRow>, #### fn changed(&self) #### fn is_activatable(&self) -> bool #### fn child(&self) -> Option<Widget#### fn header(&self) -> Option<Widget#### fn index(&self) -> i32 #### fn is_selectable(&self) -> bool #### fn is_selected(&self) -> bool #### fn set_activatable(&self, activatable: bool) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_header(&self, header: Option<&impl IsA<Widget>>) #### fn set_selectable(&self, selectable: bool) #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate(&self) #### fn connect_activatable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesRow>, #### fn title(&self) -> GString #### fn is_title_selectable(&self) -> bool Available on **crate feature `v1_1`** only.#### fn uses_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn uses_underline(&self) -> bool #### fn set_title(&self, title: &str) #### fn set_title_selectable(&self, title_selectable: bool) Available on **crate feature `v1_1`** only.#### fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_use_underline(&self, use_underline: bool) #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Flap === ``` #[repr(transparent)]pub struct Flap { /* private fields */ } ``` 👎Deprecated: Since 1.4Implementations --- ### impl Flap #### pub fn new() -> Flap 👎Deprecated: Since 1.4#### pub fn builder() -> FlapBuilder 👎Deprecated: Since 1.4Creates a new builder-pattern struct instance to construct `Flap` objects. This method returns an instance of `FlapBuilder` which can be used to create `Flap` objects. #### pub fn content(&self) -> Option<Widget👎Deprecated: Since 1.4#### pub fn flap(&self) -> Option<Widget👎Deprecated: Since 1.4#### pub fn flap_position(&self) -> PackType 👎Deprecated: Since 1.4#### pub fn fold_duration(&self) -> u32 👎Deprecated: Since 1.4#### pub fn fold_policy(&self) -> FlapFoldPolicy 👎Deprecated: Since 1.4#### pub fn fold_threshold_policy(&self) -> FoldThresholdPolicy 👎Deprecated: Since 1.4#### pub fn is_folded(&self) -> bool 👎Deprecated: Since 1.4#### pub fn is_locked(&self) -> bool 👎Deprecated: Since 1.4#### pub fn is_modal(&self) -> bool 👎Deprecated: Since 1.4#### pub fn reveals_flap(&self) -> bool 👎Deprecated: Since 1.4#### pub fn reveal_params(&self) -> SpringParams 👎Deprecated: Since 1.4#### pub fn reveal_progress(&self) -> f64 👎Deprecated: Since 1.4#### pub fn separator(&self) -> Option<Widget👎Deprecated: Since 1.4#### pub fn is_swipe_to_close(&self) -> bool 👎Deprecated: Since 1.4#### pub fn is_swipe_to_open(&self) -> bool 👎Deprecated: Since 1.4#### pub fn transition_type(&self) -> FlapTransitionType 👎Deprecated: Since 1.4#### pub fn set_content(&self, content: Option<&impl IsA<Widget>>) 👎Deprecated: Since 1.4#### pub fn set_flap(&self, flap: Option<&impl IsA<Widget>>) 👎Deprecated: Since 1.4#### pub fn set_flap_position(&self, position: PackType) 👎Deprecated: Since 1.4#### pub fn set_fold_duration(&self, duration: u32) 👎Deprecated: Since 1.4#### pub fn set_fold_policy(&self, policy: FlapFoldPolicy) 👎Deprecated: Since 1.4#### pub fn set_fold_threshold_policy(&self, policy: FoldThresholdPolicy) 👎Deprecated: Since 1.4#### pub fn set_locked(&self, locked: bool) 👎Deprecated: Since 1.4#### pub fn set_modal(&self, modal: bool) 👎Deprecated: Since 1.4#### pub fn set_reveal_flap(&self, reveal_flap: bool) 👎Deprecated: Since 1.4#### pub fn set_reveal_params(&self, params: &SpringParams) 👎Deprecated: Since 1.4#### pub fn set_separator(&self, separator: Option<&impl IsA<Widget>>) 👎Deprecated: Since 1.4#### pub fn set_swipe_to_close(&self, swipe_to_close: bool) 👎Deprecated: Since 1.4#### pub fn set_swipe_to_open(&self, swipe_to_open: bool) 👎Deprecated: Since 1.4#### pub fn set_transition_type(&self, transition_type: FlapTransitionType) 👎Deprecated: Since 1.4#### pub fn connect_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_flap_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_flap_position_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_fold_duration_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_fold_policy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_fold_threshold_policy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_folded_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_locked_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_modal_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_reveal_flap_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_reveal_params_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_reveal_progress_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_separator_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_swipe_to_close_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_swipe_to_open_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_transition_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for Flap #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Flap Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Flap#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Flap #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for Flap #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Flap #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Flap ### impl IsA<Accessible> for Flap ### impl IsA<Buildable> for Flap ### impl IsA<ConstraintTarget> for Flap ### impl IsA<Orientable> for Flap ### impl IsA<Swipeable> for Flap ### impl IsA<Widget> for Flap Auto Trait Implementations --- ### impl RefUnwindSafe for Flap ### impl !Send for Flap ### impl !Sync for Flap ### impl Unpin for Flap ### impl UnwindSafe for Flap Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<O> SwipeableExt for Owhere O: IsA<Swipeable>, #### fn cancel_progress(&self) -> f64 #### fn distance(&self) -> f64 #### fn progress(&self) -> f64 #### fn snap_points(&self) -> Vec<f64#### fn swipe_area( &self, navigation_direction: NavigationDirection, is_drag: bool ) -> Rectangle ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::HeaderBar === ``` #[repr(transparent)]pub struct HeaderBar { /* private fields */ } ``` Implementations --- ### impl HeaderBar #### pub fn new() -> HeaderBar #### pub fn builder() -> HeaderBarBuilder Creates a new builder-pattern struct instance to construct `HeaderBar` objects. This method returns an instance of `HeaderBarBuilder` which can be used to create `HeaderBar` objects. ##### Examples found in repository? examples/hello-world.rs (line 41) ``` 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 ``` ``` &varrfn main() { let application = Application::builder() .application_id("com.example.FirstAdwaitaApp") .build(); application.connect_startup(|_| { adw::init().unwrap(); }); application.connect_activate(|app| { // ActionRows are only available in Adwaita let row = ActionRow::builder() .activatable(true) .selectable(false) .title("Click me") .build(); row.connect_activated(|_| { eprintln!("Clicked!"); }); let list = ListBox::builder() .margin_top(32) .margin_end(32) .margin_bottom(32) .margin_start(32) // the content class makes the list look nicer .css_classes(vec![String::from("content")]) .build(); list.append(&row); // Combine the content in a box let content = Box::new(Orientation::Vertical, 0); // Adwaitas' ApplicationWindow does not include a HeaderBar content.append( &HeaderBar::builder() .title_widget(&adw::WindowTitle::new("First App", "")) .build(), ); content.append(&list); let window = ApplicationWindow::builder() .application(app) .default_width(350) // add content to window .content(&content) .build(); window.show(); }); application.run(); } ``` #### pub fn centering_policy(&self) -> CenteringPolicy #### pub fn decoration_layout(&self) -> Option<GString#### pub fn shows_back_button(&self) -> bool Available on **crate feature `v1_4`** only.#### pub fn shows_end_title_buttons(&self) -> bool #### pub fn shows_start_title_buttons(&self) -> bool #### pub fn shows_title(&self) -> bool Available on **crate feature `v1_4`** only.#### pub fn title_widget(&self) -> Option<Widget#### pub fn pack_end(&self, child: &impl IsA<Widget>) #### pub fn pack_start(&self, child: &impl IsA<Widget>) #### pub fn remove(&self, child: &impl IsA<Widget>) #### pub fn set_centering_policy(&self, centering_policy: CenteringPolicy) #### pub fn set_decoration_layout(&self, layout: Option<&str>) #### pub fn set_show_back_button(&self, show_back_button: bool) Available on **crate feature `v1_4`** only.#### pub fn set_show_end_title_buttons(&self, setting: bool) #### pub fn set_show_start_title_buttons(&self, setting: bool) #### pub fn set_show_title(&self, show_title: bool) Available on **crate feature `v1_4`** only.#### pub fn set_title_widget(&self, title_widget: Option<&impl IsA<Widget>>) #### pub fn connect_centering_policy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_decoration_layout_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_show_back_button_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### pub fn connect_show_end_title_buttons_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_show_start_title_buttons_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_show_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### pub fn connect_title_widget_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for HeaderBar #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = HeaderBar Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, HeaderBar#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for HeaderBar #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for HeaderBar #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for HeaderBar #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for HeaderBar ### impl IsA<Accessible> for HeaderBar ### impl IsA<Buildable> for HeaderBar ### impl IsA<ConstraintTarget> for HeaderBar ### impl IsA<Widget> for HeaderBar Auto Trait Implementations --- ### impl RefUnwindSafe for HeaderBar ### impl !Send for HeaderBar ### impl !Sync for HeaderBar ### impl Unpin for HeaderBar ### impl UnwindSafe for HeaderBar Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Leaflet === ``` #[repr(transparent)]pub struct Leaflet { /* private fields */ } ``` 👎Deprecated: Since 1.4Implementations --- ### impl Leaflet #### pub fn new() -> Leaflet 👎Deprecated: Since 1.4#### pub fn builder() -> LeafletBuilder 👎Deprecated: Since 1.4Creates a new builder-pattern struct instance to construct `Leaflet` objects. This method returns an instance of `LeafletBuilder` which can be used to create `Leaflet` objects. #### pub fn append(&self, child: &impl IsA<Widget>) -> LeafletPage 👎Deprecated: Since 1.4#### pub fn adjacent_child(&self, direction: NavigationDirection) -> Option<Widget👎Deprecated: Since 1.4#### pub fn can_navigate_back(&self) -> bool 👎Deprecated: Since 1.4#### pub fn can_navigate_forward(&self) -> bool 👎Deprecated: Since 1.4#### pub fn can_unfold(&self) -> bool 👎Deprecated: Since 1.4#### pub fn child_by_name(&self, name: &str) -> Option<Widget👎Deprecated: Since 1.4#### pub fn child_transition_params(&self) -> SpringParams 👎Deprecated: Since 1.4#### pub fn is_child_transition_running(&self) -> bool 👎Deprecated: Since 1.4#### pub fn fold_threshold_policy(&self) -> FoldThresholdPolicy 👎Deprecated: Since 1.4#### pub fn is_folded(&self) -> bool 👎Deprecated: Since 1.4#### pub fn is_homogeneous(&self) -> bool 👎Deprecated: Since 1.4#### pub fn mode_transition_duration(&self) -> u32 👎Deprecated: Since 1.4#### pub fn page(&self, child: &impl IsA<Widget>) -> LeafletPage 👎Deprecated: Since 1.4#### pub fn pages(&self) -> SelectionModel 👎Deprecated: Since 1.4#### pub fn transition_type(&self) -> LeafletTransitionType 👎Deprecated: Since 1.4#### pub fn visible_child(&self) -> Option<Widget👎Deprecated: Since 1.4#### pub fn visible_child_name(&self) -> Option<GString👎Deprecated: Since 1.4#### pub fn insert_child_after( &self, child: &impl IsA<Widget>, sibling: Option<&impl IsA<Widget>> ) -> LeafletPage 👎Deprecated: Since 1.4#### pub fn navigate(&self, direction: NavigationDirection) -> bool 👎Deprecated: Since 1.4#### pub fn prepend(&self, child: &impl IsA<Widget>) -> LeafletPage 👎Deprecated: Since 1.4#### pub fn remove(&self, child: &impl IsA<Widget>) 👎Deprecated: Since 1.4#### pub fn reorder_child_after( &self, child: &impl IsA<Widget>, sibling: Option<&impl IsA<Widget>> ) 👎Deprecated: Since 1.4#### pub fn set_can_navigate_back(&self, can_navigate_back: bool) 👎Deprecated: Since 1.4#### pub fn set_can_navigate_forward(&self, can_navigate_forward: bool) 👎Deprecated: Since 1.4#### pub fn set_can_unfold(&self, can_unfold: bool) 👎Deprecated: Since 1.4#### pub fn set_child_transition_params(&self, params: &SpringParams) 👎Deprecated: Since 1.4#### pub fn set_fold_threshold_policy(&self, policy: FoldThresholdPolicy) 👎Deprecated: Since 1.4#### pub fn set_homogeneous(&self, homogeneous: bool) 👎Deprecated: Since 1.4#### pub fn set_mode_transition_duration(&self, duration: u32) 👎Deprecated: Since 1.4#### pub fn set_transition_type(&self, transition: LeafletTransitionType) 👎Deprecated: Since 1.4#### pub fn set_visible_child(&self, visible_child: &impl IsA<Widget>) 👎Deprecated: Since 1.4#### pub fn set_visible_child_name(&self, name: &str) 👎Deprecated: Since 1.4#### pub fn connect_can_navigate_back_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_can_navigate_forward_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_can_unfold_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_child_transition_params_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_child_transition_running_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_fold_threshold_policy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_folded_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_homogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_mode_transition_duration_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_pages_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_transition_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_visible_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_visible_child_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for Leaflet #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Leaflet Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Leaflet#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Leaflet #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for Leaflet #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Leaflet #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Leaflet ### impl IsA<Accessible> for Leaflet ### impl IsA<Buildable> for Leaflet ### impl IsA<ConstraintTarget> for Leaflet ### impl IsA<Orientable> for Leaflet ### impl IsA<Swipeable> for Leaflet ### impl IsA<Widget> for Leaflet Auto Trait Implementations --- ### impl RefUnwindSafe for Leaflet ### impl !Send for Leaflet ### impl !Sync for Leaflet ### impl Unpin for Leaflet ### impl UnwindSafe for Leaflet Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<O> SwipeableExt for Owhere O: IsA<Swipeable>, #### fn cancel_progress(&self) -> f64 #### fn distance(&self) -> f64 #### fn progress(&self) -> f64 #### fn snap_points(&self) -> Vec<f64#### fn swipe_area( &self, navigation_direction: NavigationDirection, is_drag: bool ) -> Rectangle ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::LeafletPage === ``` #[repr(transparent)]pub struct LeafletPage { /* private fields */ } ``` 👎Deprecated: Since 1.4Implementations --- ### impl LeafletPage #### pub fn child(&self) -> Widget 👎Deprecated: Since 1.4#### pub fn name(&self) -> Option<GString👎Deprecated: Since 1.4#### pub fn is_navigatable(&self) -> bool 👎Deprecated: Since 1.4#### pub fn set_name(&self, name: Option<&str>) 👎Deprecated: Since 1.4#### pub fn set_navigatable(&self, navigatable: bool) 👎Deprecated: Since 1.4#### pub fn connect_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_navigatable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for LeafletPage #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = LeafletPage Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, LeafletPage#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for LeafletPage #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for LeafletPage #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for LeafletPage #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for LeafletPage Auto Trait Implementations --- ### impl RefUnwindSafe for LeafletPage ### impl !Send for LeafletPage ### impl !Sync for LeafletPage ### impl Unpin for LeafletPage ### impl UnwindSafe for LeafletPage Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::MessageDialog === ``` #[repr(transparent)]pub struct MessageDialog { /* private fields */ } ``` Available on **crate feature `v1_2`** only.Implementations --- ### impl MessageDialog #### pub const NONE: Option<&'static MessageDialog> = None #### pub fn new( parent: Option<&impl IsA<Window>>, heading: Option<&str>, body: Option<&str> ) -> MessageDialog #### pub fn builder() -> MessageDialogBuilder Creates a new builder-pattern struct instance to construct `MessageDialog` objects. This method returns an instance of `MessageDialogBuilder` which can be used to create `MessageDialog` objects. Trait Implementations --- ### impl Clone for MessageDialog #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = MessageDialog Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, MessageDialog#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for MessageDialog #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Window ### impl<OT: ObjectType> PartialEq<OT> for MessageDialog #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for MessageDialog #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for MessageDialog ### impl IsA<Accessible> for MessageDialog ### impl IsA<Buildable> for MessageDialog ### impl IsA<ConstraintTarget> for MessageDialog ### impl IsA<Native> for MessageDialog ### impl IsA<Root> for MessageDialog ### impl IsA<ShortcutManager> for MessageDialog ### impl IsA<Widget> for MessageDialog ### impl IsA<Window> for MessageDialog Auto Trait Implementations --- ### impl RefUnwindSafe for MessageDialog ### impl !Send for MessageDialog ### impl !Sync for MessageDialog ### impl Unpin for MessageDialog ### impl UnwindSafe for MessageDialog Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<O> GtkWindowExt for Owhere O: IsA<Window>, #### fn close(&self) #### fn destroy(&self) #### fn fullscreen(&self) #### fn fullscreen_on_monitor(&self, monitor: &Monitor) #### fn application(&self) -> Option<Application#### fn child(&self) -> Option<Widget#### fn is_decorated(&self) -> bool #### fn default_size(&self) -> (i32, i32) #### fn default_widget(&self) -> Option<Widget#### fn is_deletable(&self) -> bool #### fn must_destroy_with_parent(&self) -> bool #### fn focus(&self) -> Option<Widget#### fn gets_focus_visible(&self) -> bool #### fn group(&self) -> WindowGroup #### fn hides_on_close(&self) -> bool #### fn icon_name(&self) -> Option<GString#### fn is_mnemonics_visible(&self) -> bool #### fn is_modal(&self) -> bool #### fn is_resizable(&self) -> bool #### fn title(&self) -> Option<GString#### fn titlebar(&self) -> Option<Widget#### fn transient_for(&self) -> Option<Window#### fn has_group(&self) -> bool #### fn is_active(&self) -> bool #### fn is_fullscreen(&self) -> bool #### fn is_maximized(&self) -> bool #### fn maximize(&self) #### fn minimize(&self) #### fn present(&self) #### fn present_with_time(&self, timestamp: u32) #### fn set_application(&self, application: Option<&impl IsA<Application>>) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_decorated(&self, setting: bool) #### fn set_default_size(&self, width: i32, height: i32) #### fn set_default_widget(&self, default_widget: Option<&impl IsA<Widget>>) #### fn set_deletable(&self, setting: bool) #### fn set_destroy_with_parent(&self, setting: bool) #### fn set_display(&self, display: &impl IsA<Display>) #### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) #### fn set_focus_visible(&self, setting: bool) #### fn set_hide_on_close(&self, setting: bool) #### fn set_icon_name(&self, name: Option<&str>) #### fn set_mnemonics_visible(&self, setting: bool) #### fn set_modal(&self, modal: bool) #### fn set_resizable(&self, resizable: bool) #### fn set_startup_id(&self, startup_id: &str) #### fn set_title(&self, title: Option<&str>) #### fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>) #### fn set_transient_for(&self, parent: Option<&impl IsA<Window>>) #### fn unfullscreen(&self) #### fn unmaximize(&self) #### fn unminimize(&self) #### fn default_height(&self) -> i32 #### fn set_default_height(&self, default_height: i32) #### fn default_width(&self) -> i32 #### fn set_default_width(&self, default_width: i32) #### fn focus_widget(&self) -> Option<Widget#### fn set_focus_widget<P>(&self, focus_widget: Option<&P>)where P: IsA<Widget>, #### fn is_fullscreened(&self) -> bool #### fn set_fullscreened(&self, fullscreened: bool) #### fn set_maximized(&self, maximized: bool) #### fn connect_activate_default<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_default(&self) #### fn connect_activate_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_focus(&self) #### fn connect_close_request<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) -> Propagation + 'static, #### fn connect_enable_debugging<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> bool + 'static, #### fn emit_enable_debugging(&self, toggle: bool) -> bool #### fn connect_keys_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_application_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_decorated_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_height_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_width_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_deletable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_destroy_with_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_display_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_fullscreened_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hide_on_close_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_icon_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_is_active_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_maximized_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonics_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_modal_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_resizable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_startup_id_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_title_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_transient_for_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> MessageDialogExt for Owhere O: IsA<MessageDialog>, #### fn add_response(&self, id: &str, label: &str) Available on **crate feature `v1_2`** only.#### fn body(&self) -> GString Available on **crate feature `v1_2`** only.#### fn is_body_use_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn close_response(&self) -> GString Available on **crate feature `v1_2`** only.#### fn default_response(&self) -> Option<GStringAvailable on **crate feature `v1_2`** only.#### fn extra_child(&self) -> Option<WidgetAvailable on **crate feature `v1_2`** only.#### fn heading(&self) -> Option<GStringAvailable on **crate feature `v1_2`** only.#### fn is_heading_use_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn response_appearance(&self, response: &str) -> ResponseAppearance Available on **crate feature `v1_2`** only.#### fn is_response_enabled(&self, response: &str) -> bool Available on **crate feature `v1_2`** only.#### fn has_response(&self, response: &str) -> bool Available on **crate feature `v1_2`** only.#### fn response(&self, response: &str) Available on **crate feature `v1_2`** only.#### fn set_body(&self, body: &str) Available on **crate feature `v1_2`** only.#### fn set_body_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_close_response(&self, response: &str) Available on **crate feature `v1_2`** only.#### fn set_default_response(&self, response: Option<&str>) Available on **crate feature `v1_2`** only.#### fn set_extra_child(&self, child: Option<&impl IsA<Widget>>) Available on **crate feature `v1_2`** only.#### fn set_heading(&self, heading: Option<&str>) Available on **crate feature `v1_2`** only.#### fn set_heading_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_response_appearance( &self, response: &str, appearance: ResponseAppearance ) Available on **crate feature `v1_2`** only.#### fn set_response_enabled(&self, response: &str, enabled: bool) Available on **crate feature `v1_2`** only.#### fn set_response_label(&self, response: &str, label: &str) Available on **crate feature `v1_2`** only.#### fn connect_response<F: Fn(&Self, &str) + 'static>( &self, detail: Option<&str>, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_body_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_body_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_close_response_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_default_response_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_extra_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_heading_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_heading_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.### impl<O> MessageDialogExtManual for Owhere O: IsA<MessageDialog>, #### fn response_label(&self, response: &str) -> GString Available on **crate feature `v1_2`** only.#### fn add_responses(&self, ids_and_labels: &[(&str, &str)]) Available on **crate feature `v1_2`** only.#### fn choose<P: FnOnce(GString) + 'static>( self, cancellable: Option<&impl IsA<Cancellable>>, callback: P ) Available on **crate features `v1_2` and `v1_3`** only.#### fn choose_future(self) -> Pin<Box_<dyn Future<Output = GString> + 'static>Available on **crate features `v1_2` and `v1_3`** only.### impl<O> NativeExt for Owhere O: IsA<Native>, #### fn renderer(&self) -> Renderer #### fn surface(&self) -> Surface #### fn surface_transform(&self) -> (f64, f64) #### fn realize(&self) #### fn unrealize(&self) ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<O> RootExt for Owhere O: IsA<Root>, #### fn display(&self) -> Display #### fn focus(&self) -> Option<Widget#### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, ### impl<O> ShortcutManagerExt for Owhere O: IsA<ShortcutManager>, Struct libadwaita::NavigationPage === ``` #[repr(transparent)]pub struct NavigationPage { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl NavigationPage #### pub const NONE: Option<&'static NavigationPage> = None #### pub fn new(child: &impl IsA<Widget>, title: &str) -> NavigationPage #### pub fn with_tag( child: &impl IsA<Widget>, title: &str, tag: &str ) -> NavigationPage #### pub fn builder() -> NavigationPageBuilder Creates a new builder-pattern struct instance to construct `NavigationPage` objects. This method returns an instance of `NavigationPageBuilder` which can be used to create `NavigationPage` objects. Trait Implementations --- ### impl Clone for NavigationPage #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = NavigationPage Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, NavigationPage#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for NavigationPage #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for NavigationPage #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for NavigationPage #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for NavigationPage ### impl IsA<Accessible> for NavigationPage ### impl IsA<Buildable> for NavigationPage ### impl IsA<ConstraintTarget> for NavigationPage ### impl IsA<Widget> for NavigationPage Auto Trait Implementations --- ### impl RefUnwindSafe for NavigationPage ### impl !Send for NavigationPage ### impl !Sync for NavigationPage ### impl Unpin for NavigationPage ### impl UnwindSafe for NavigationPage Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> NavigationPageExt for Owhere O: IsA<NavigationPage>, #### fn can_pop(&self) -> bool Available on **crate feature `v1_4`** only.#### fn child(&self) -> Option<WidgetAvailable on **crate feature `v1_4`** only.#### fn tag(&self) -> Option<GStringAvailable on **crate feature `v1_4`** only.#### fn title(&self) -> GString Available on **crate feature `v1_4`** only.#### fn set_can_pop(&self, can_pop: bool) Available on **crate feature `v1_4`** only.#### fn set_child(&self, child: Option<&impl IsA<Widget>>) Available on **crate feature `v1_4`** only.#### fn set_tag(&self, tag: Option<&str>) Available on **crate feature `v1_4`** only.#### fn set_title(&self, title: &str) Available on **crate feature `v1_4`** only.#### fn connect_hidden<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_hiding<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_showing<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_shown<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_can_pop_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_tag_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_4`** only.### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::NavigationSplitView === ``` #[repr(transparent)]pub struct NavigationSplitView { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl NavigationSplitView #### pub fn new() -> NavigationSplitView #### pub fn builder() -> NavigationSplitViewBuilder Creates a new builder-pattern struct instance to construct `NavigationSplitView` objects. This method returns an instance of `NavigationSplitViewBuilder` which can be used to create `NavigationSplitView` objects. #### pub fn is_collapsed(&self) -> bool #### pub fn content(&self) -> Option<NavigationPage#### pub fn max_sidebar_width(&self) -> f64 #### pub fn min_sidebar_width(&self) -> f64 #### pub fn shows_content(&self) -> bool #### pub fn sidebar(&self) -> Option<NavigationPage#### pub fn sidebar_width_fraction(&self) -> f64 #### pub fn sidebar_width_unit(&self) -> LengthUnit #### pub fn set_collapsed(&self, collapsed: bool) #### pub fn set_content(&self, content: Option<&impl IsA<NavigationPage>>) #### pub fn set_max_sidebar_width(&self, width: f64) #### pub fn set_min_sidebar_width(&self, width: f64) #### pub fn set_show_content(&self, show_content: bool) #### pub fn set_sidebar(&self, sidebar: Option<&impl IsA<NavigationPage>>) #### pub fn set_sidebar_width_fraction(&self, fraction: f64) #### pub fn set_sidebar_width_unit(&self, unit: LengthUnit) #### pub fn connect_collapsed_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_max_sidebar_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_min_sidebar_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_show_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_sidebar_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_sidebar_width_fraction_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_sidebar_width_unit_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for NavigationSplitView #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = NavigationSplitView Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, NavigationSplitView#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for NavigationSplitView #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for NavigationSplitView #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for NavigationSplitView #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for NavigationSplitView ### impl IsA<Accessible> for NavigationSplitView ### impl IsA<Buildable> for NavigationSplitView ### impl IsA<ConstraintTarget> for NavigationSplitView ### impl IsA<Widget> for NavigationSplitView Auto Trait Implementations --- ### impl RefUnwindSafe for NavigationSplitView ### impl !Send for NavigationSplitView ### impl !Sync for NavigationSplitView ### impl Unpin for NavigationSplitView ### impl UnwindSafe for NavigationSplitView Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::NavigationView === ``` #[repr(transparent)]pub struct NavigationView { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl NavigationView #### pub fn new() -> NavigationView #### pub fn builder() -> NavigationViewBuilder Creates a new builder-pattern struct instance to construct `NavigationView` objects. This method returns an instance of `NavigationViewBuilder` which can be used to create `NavigationView` objects. #### pub fn add(&self, page: &impl IsA<NavigationPage>) #### pub fn find_page(&self, tag: &str) -> Option<NavigationPage#### pub fn is_animate_transitions(&self) -> bool #### pub fn navigation_stack(&self) -> ListModel #### pub fn is_pop_on_escape(&self) -> bool #### pub fn previous_page( &self, page: &impl IsA<NavigationPage> ) -> Option<NavigationPage#### pub fn visible_page(&self) -> Option<NavigationPage#### pub fn pop(&self) -> bool #### pub fn pop_to_page(&self, page: &impl IsA<NavigationPage>) -> bool #### pub fn pop_to_tag(&self, tag: &str) -> bool #### pub fn push(&self, page: &impl IsA<NavigationPage>) #### pub fn push_by_tag(&self, tag: &str) #### pub fn remove(&self, page: &impl IsA<NavigationPage>) #### pub fn replace(&self, pages: &[NavigationPage]) #### pub fn replace_with_tags(&self, tags: &[&str]) #### pub fn set_animate_transitions(&self, animate_transitions: bool) #### pub fn set_pop_on_escape(&self, pop_on_escape: bool) #### pub fn connect_get_next_page<F: Fn(&Self) -> Option<NavigationPage> + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_popped<F: Fn(&Self, &NavigationPage) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_pushed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn connect_replaced<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn connect_animate_transitions_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_navigation_stack_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_pop_on_escape_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_visible_page_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for NavigationView #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = NavigationView Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, NavigationView#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for NavigationView #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for NavigationView #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for NavigationView #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for NavigationView ### impl IsA<Accessible> for NavigationView ### impl IsA<Buildable> for NavigationView ### impl IsA<ConstraintTarget> for NavigationView ### impl IsA<Swipeable> for NavigationView ### impl IsA<Widget> for NavigationView Auto Trait Implementations --- ### impl RefUnwindSafe for NavigationView ### impl !Send for NavigationView ### impl !Sync for NavigationView ### impl Unpin for NavigationView ### impl UnwindSafe for NavigationView Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<O> SwipeableExt for Owhere O: IsA<Swipeable>, #### fn cancel_progress(&self) -> f64 #### fn distance(&self) -> f64 #### fn progress(&self) -> f64 #### fn snap_points(&self) -> Vec<f64#### fn swipe_area( &self, navigation_direction: NavigationDirection, is_drag: bool ) -> Rectangle ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::OverlaySplitView === ``` #[repr(transparent)]pub struct OverlaySplitView { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl OverlaySplitView #### pub fn new() -> OverlaySplitView #### pub fn builder() -> OverlaySplitViewBuilder Creates a new builder-pattern struct instance to construct `OverlaySplitView` objects. This method returns an instance of `OverlaySplitViewBuilder` which can be used to create `OverlaySplitView` objects. #### pub fn is_collapsed(&self) -> bool #### pub fn content(&self) -> Option<Widget#### pub fn enables_hide_gesture(&self) -> bool #### pub fn enables_show_gesture(&self) -> bool #### pub fn max_sidebar_width(&self) -> f64 #### pub fn min_sidebar_width(&self) -> f64 #### pub fn is_pin_sidebar(&self) -> bool #### pub fn shows_sidebar(&self) -> bool #### pub fn sidebar(&self) -> Option<Widget#### pub fn sidebar_position(&self) -> PackType #### pub fn sidebar_width_fraction(&self) -> f64 #### pub fn sidebar_width_unit(&self) -> LengthUnit #### pub fn set_collapsed(&self, collapsed: bool) #### pub fn set_content(&self, content: Option<&impl IsA<Widget>>) #### pub fn set_enable_hide_gesture(&self, enable_hide_gesture: bool) #### pub fn set_enable_show_gesture(&self, enable_show_gesture: bool) #### pub fn set_max_sidebar_width(&self, width: f64) #### pub fn set_min_sidebar_width(&self, width: f64) #### pub fn set_pin_sidebar(&self, pin_sidebar: bool) #### pub fn set_show_sidebar(&self, show_sidebar: bool) #### pub fn set_sidebar(&self, sidebar: Option<&impl IsA<Widget>>) #### pub fn set_sidebar_position(&self, position: PackType) #### pub fn set_sidebar_width_fraction(&self, fraction: f64) #### pub fn set_sidebar_width_unit(&self, unit: LengthUnit) #### pub fn connect_collapsed_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_enable_hide_gesture_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_enable_show_gesture_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_max_sidebar_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_min_sidebar_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_pin_sidebar_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_show_sidebar_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_sidebar_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_sidebar_position_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_sidebar_width_fraction_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_sidebar_width_unit_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for OverlaySplitView #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = OverlaySplitView Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, OverlaySplitView#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for OverlaySplitView #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for OverlaySplitView #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for OverlaySplitView #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for OverlaySplitView ### impl IsA<Accessible> for OverlaySplitView ### impl IsA<Buildable> for OverlaySplitView ### impl IsA<ConstraintTarget> for OverlaySplitView ### impl IsA<Swipeable> for OverlaySplitView ### impl IsA<Widget> for OverlaySplitView Auto Trait Implementations --- ### impl RefUnwindSafe for OverlaySplitView ### impl !Send for OverlaySplitView ### impl !Sync for OverlaySplitView ### impl Unpin for OverlaySplitView ### impl UnwindSafe for OverlaySplitView Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<O> SwipeableExt for Owhere O: IsA<Swipeable>, #### fn cancel_progress(&self) -> f64 #### fn distance(&self) -> f64 #### fn progress(&self) -> f64 #### fn snap_points(&self) -> Vec<f64#### fn swipe_area( &self, navigation_direction: NavigationDirection, is_drag: bool ) -> Rectangle ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::PasswordEntryRow === ``` #[repr(transparent)]pub struct PasswordEntryRow { /* private fields */ } ``` Available on **crate feature `v1_2`** only.Implementations --- ### impl PasswordEntryRow #### pub fn new() -> PasswordEntryRow #### pub fn builder() -> PasswordEntryRowBuilder Creates a new builder-pattern struct instance to construct `PasswordEntryRow` objects. This method returns an instance of `PasswordEntryRowBuilder` which can be used to create `PasswordEntryRow` objects. Trait Implementations --- ### impl Clone for PasswordEntryRow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = PasswordEntryRow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, PasswordEntryRow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for PasswordEntryRow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = EntryRow ### impl<OT: ObjectType> PartialEq<OT> for PasswordEntryRow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for PasswordEntryRow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for PasswordEntryRow ### impl IsA<Accessible> for PasswordEntryRow ### impl IsA<Actionable> for PasswordEntryRow ### impl IsA<Buildable> for PasswordEntryRow ### impl IsA<ConstraintTarget> for PasswordEntryRow ### impl IsA<Editable> for PasswordEntryRow ### impl IsA<EntryRow> for PasswordEntryRow ### impl IsA<ListBoxRow> for PasswordEntryRow ### impl IsA<PreferencesRow> for PasswordEntryRow ### impl IsA<Widget> for PasswordEntryRow Auto Trait Implementations --- ### impl RefUnwindSafe for PasswordEntryRow ### impl !Send for PasswordEntryRow ### impl !Sync for PasswordEntryRow ### impl Unpin for PasswordEntryRow ### impl UnwindSafe for PasswordEntryRow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. O: IsA<Editable>, #### fn delete_selection(&self) #### fn delete_text(&self, start_pos: i32, end_pos: i32) #### fn finish_delegate(&self) #### fn alignment(&self) -> f32 #### fn chars(&self, start_pos: i32, end_pos: i32) -> GString #### fn delegate(&self) -> Option<Editable#### fn is_editable(&self) -> bool #### fn enables_undo(&self) -> bool #### fn max_width_chars(&self) -> i32 #### fn position(&self) -> i32 #### fn selection_bounds(&self) -> Option<(i32, i32)#### fn text(&self) -> GString #### fn width_chars(&self) -> i32 #### fn init_delegate(&self) #### fn insert_text(&self, text: &str, position: &mut i32) #### fn select_region(&self, start_pos: i32, end_pos: i32) #### fn set_alignment(&self, xalign: f32) #### fn set_editable(&self, is_editable: bool) #### fn set_enable_undo(&self, enable_undo: bool) #### fn set_max_width_chars(&self, n_chars: i32) #### fn set_position(&self, position: i32) #### fn set_text(&self, text: &str) #### fn set_width_chars(&self, n_chars: i32) #### fn cursor_position(&self) -> i32 #### fn selection_bound(&self) -> i32 #### fn xalign(&self) -> f32 #### fn set_xalign(&self, xalign: f32) #### fn connect_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_delete_text<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32) + 'static, #### fn connect_cursor_position_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_editable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_enable_undo_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_max_width_chars_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selection_bound_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_chars_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_xalign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> EditableExtManual for Owhere O: IsA<Editable>, #### fn connect_insert_text<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &str, &mut i32) + 'static, ### impl<O> EntryRowExt for Owhere O: IsA<EntryRow>, #### fn add_prefix(&self, widget: &impl IsA<Widget>) Available on **crate feature `v1_2`** only.#### fn add_suffix(&self, widget: &impl IsA<Widget>) Available on **crate feature `v1_2`** only.#### fn activates_default(&self) -> bool Available on **crate feature `v1_2`** only.#### fn attributes(&self) -> Option<AttrListAvailable on **crate feature `v1_2`** only.#### fn enables_emoji_completion(&self) -> bool Available on **crate feature `v1_2`** only.#### fn input_hints(&self) -> InputHints Available on **crate feature `v1_2`** only.#### fn input_purpose(&self) -> InputPurpose Available on **crate feature `v1_2`** only.#### fn shows_apply_button(&self) -> bool Available on **crate feature `v1_2`** only.#### fn grab_focus_without_selecting(&self) -> bool Available on **crate features `v1_2` and `v1_3`** only.#### fn remove(&self, widget: &impl IsA<Widget>) Available on **crate feature `v1_2`** only.#### fn set_activates_default(&self, activates: bool) Available on **crate feature `v1_2`** only.#### fn set_attributes(&self, attributes: Option<&AttrList>) Available on **crate feature `v1_2`** only.#### fn set_enable_emoji_completion(&self, enable_emoji_completion: bool) Available on **crate feature `v1_2`** only.#### fn set_input_hints(&self, hints: InputHints) Available on **crate feature `v1_2`** only.#### fn set_input_purpose(&self, purpose: InputPurpose) Available on **crate feature `v1_2`** only.#### fn set_show_apply_button(&self, show_apply_button: bool) Available on **crate feature `v1_2`** only.#### fn connect_apply<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_entry_activated<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_activates_default_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_attributes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_enable_emoji_completion_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_input_hints_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_input_purpose_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_show_apply_button_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.### impl<T> From<T> for T #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListBoxRowExt for Owhere O: IsA<ListBoxRow>, #### fn changed(&self) #### fn is_activatable(&self) -> bool #### fn child(&self) -> Option<Widget#### fn header(&self) -> Option<Widget#### fn index(&self) -> i32 #### fn is_selectable(&self) -> bool #### fn is_selected(&self) -> bool #### fn set_activatable(&self, activatable: bool) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_header(&self, header: Option<&impl IsA<Widget>>) #### fn set_selectable(&self, selectable: bool) #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate(&self) #### fn connect_activatable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesRow>, #### fn title(&self) -> GString #### fn is_title_selectable(&self) -> bool Available on **crate feature `v1_1`** only.#### fn uses_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn uses_underline(&self) -> bool #### fn set_title(&self, title: &str) #### fn set_title_selectable(&self, title_selectable: bool) Available on **crate feature `v1_1`** only.#### fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_use_underline(&self, use_underline: bool) #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::PreferencesGroup === ``` #[repr(transparent)]pub struct PreferencesGroup { /* private fields */ } ``` Implementations --- ### impl PreferencesGroup #### pub const NONE: Option<&'static PreferencesGroup> = None #### pub fn new() -> PreferencesGroup #### pub fn builder() -> PreferencesGroupBuilder Creates a new builder-pattern struct instance to construct `PreferencesGroup` objects. This method returns an instance of `PreferencesGroupBuilder` which can be used to create `PreferencesGroup` objects. Trait Implementations --- ### impl Clone for PreferencesGroup #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = PreferencesGroup Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, PreferencesGroup#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for PreferencesGroup #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for PreferencesGroup #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for PreferencesGroup #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for PreferencesGroup ### impl IsA<Accessible> for PreferencesGroup ### impl IsA<Buildable> for PreferencesGroup ### impl IsA<ConstraintTarget> for PreferencesGroup ### impl IsA<Widget> for PreferencesGroup Auto Trait Implementations --- ### impl RefUnwindSafe for PreferencesGroup ### impl !Send for PreferencesGroup ### impl !Sync for PreferencesGroup ### impl Unpin for PreferencesGroup ### impl UnwindSafe for PreferencesGroup Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesGroup>, #### fn add(&self, child: &impl IsA<Widget>) #### fn description(&self) -> Option<GString#### fn header_suffix(&self) -> Option<WidgetAvailable on **crate feature `v1_1`** only.#### fn title(&self) -> GString #### fn remove(&self, child: &impl IsA<Widget>) #### fn set_description(&self, description: Option<&str>) #### fn set_header_suffix(&self, suffix: Option<&impl IsA<Widget>>) Available on **crate feature `v1_1`** only.#### fn set_title(&self, title: &str) #### fn connect_description_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_header_suffix_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::PreferencesPage === ``` #[repr(transparent)]pub struct PreferencesPage { /* private fields */ } ``` Implementations --- ### impl PreferencesPage #### pub const NONE: Option<&'static PreferencesPage> = None #### pub fn new() -> PreferencesPage #### pub fn builder() -> PreferencesPageBuilder Creates a new builder-pattern struct instance to construct `PreferencesPage` objects. This method returns an instance of `PreferencesPageBuilder` which can be used to create `PreferencesPage` objects. Trait Implementations --- ### impl Clone for PreferencesPage #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = PreferencesPage Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, PreferencesPage#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for PreferencesPage #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for PreferencesPage #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for PreferencesPage #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for PreferencesPage ### impl IsA<Accessible> for PreferencesPage ### impl IsA<Buildable> for PreferencesPage ### impl IsA<ConstraintTarget> for PreferencesPage ### impl IsA<Widget> for PreferencesPage Auto Trait Implementations --- ### impl RefUnwindSafe for PreferencesPage ### impl !Send for PreferencesPage ### impl !Sync for PreferencesPage ### impl Unpin for PreferencesPage ### impl UnwindSafe for PreferencesPage Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesPage>, #### fn add(&self, group: &impl IsA<PreferencesGroup>) #### fn description(&self) -> GString Available on **crate feature `v1_4`** only.#### fn icon_name(&self) -> Option<GString#### fn name(&self) -> Option<GString#### fn title(&self) -> GString #### fn uses_underline(&self) -> bool #### fn remove(&self, group: &impl IsA<PreferencesGroup>) #### fn scroll_to_top(&self) Available on **crate feature `v1_3`** only.#### fn set_description(&self, description: &str) Available on **crate feature `v1_4`** only.#### fn set_icon_name(&self, icon_name: Option<&str>) #### fn set_name(&self, name: Option<&str>) #### fn set_title(&self, title: &str) #### fn set_use_underline(&self, use_underline: bool) #### fn connect_description_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::PreferencesRow === ``` #[repr(transparent)]pub struct PreferencesRow { /* private fields */ } ``` Implementations --- ### impl PreferencesRow #### pub const NONE: Option<&'static PreferencesRow> = None #### pub fn new() -> PreferencesRow #### pub fn builder() -> PreferencesRowBuilder Creates a new builder-pattern struct instance to construct `PreferencesRow` objects. This method returns an instance of `PreferencesRowBuilder` which can be used to create `PreferencesRow` objects. Trait Implementations --- ### impl Clone for PreferencesRow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = PreferencesRow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, PreferencesRow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for PreferencesRow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = ListBoxRow ### impl<OT: ObjectType> PartialEq<OT> for PreferencesRow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for PreferencesRow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for PreferencesRow ### impl IsA<Accessible> for PreferencesRow ### impl IsA<Actionable> for PreferencesRow ### impl IsA<Buildable> for PreferencesRow ### impl IsA<ConstraintTarget> for PreferencesRow ### impl IsA<ListBoxRow> for PreferencesRow ### impl IsA<PreferencesRow> for ActionRow ### impl IsA<PreferencesRow> for ComboRow ### impl IsA<PreferencesRow> for EntryRow Available on **crate feature `v1_2`** only.### impl IsA<PreferencesRow> for ExpanderRow ### impl IsA<PreferencesRow> for PasswordEntryRow Available on **crate feature `v1_2`** only.### impl IsA<PreferencesRow> for SpinRow Available on **crate feature `v1_4`** only.### impl IsA<PreferencesRow> for SwitchRow Available on **crate feature `v1_4`** only.### impl IsA<Widget> for PreferencesRow Auto Trait Implementations --- ### impl RefUnwindSafe for PreferencesRow ### impl !Send for PreferencesRow ### impl !Sync for PreferencesRow ### impl Unpin for PreferencesRow ### impl UnwindSafe for PreferencesRow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListBoxRowExt for Owhere O: IsA<ListBoxRow>, #### fn changed(&self) #### fn is_activatable(&self) -> bool #### fn child(&self) -> Option<Widget#### fn header(&self) -> Option<Widget#### fn index(&self) -> i32 #### fn is_selectable(&self) -> bool #### fn is_selected(&self) -> bool #### fn set_activatable(&self, activatable: bool) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_header(&self, header: Option<&impl IsA<Widget>>) #### fn set_selectable(&self, selectable: bool) #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate(&self) #### fn connect_activatable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesRow>, #### fn title(&self) -> GString #### fn is_title_selectable(&self) -> bool Available on **crate feature `v1_1`** only.#### fn uses_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn uses_underline(&self) -> bool #### fn set_title(&self, title: &str) #### fn set_title_selectable(&self, title_selectable: bool) Available on **crate feature `v1_1`** only.#### fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_use_underline(&self, use_underline: bool) #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::PreferencesWindow === ``` #[repr(transparent)]pub struct PreferencesWindow { /* private fields */ } ``` Implementations --- ### impl PreferencesWindow #### pub const NONE: Option<&'static PreferencesWindow> = None #### pub fn new() -> PreferencesWindow #### pub fn builder() -> PreferencesWindowBuilder Creates a new builder-pattern struct instance to construct `PreferencesWindow` objects. This method returns an instance of `PreferencesWindowBuilder` which can be used to create `PreferencesWindow` objects. Trait Implementations --- ### impl Clone for PreferencesWindow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = PreferencesWindow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, PreferencesWindow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for PreferencesWindow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Window ### impl<OT: ObjectType> PartialEq<OT> for PreferencesWindow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for PreferencesWindow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for PreferencesWindow ### impl IsA<Accessible> for PreferencesWindow ### impl IsA<Buildable> for PreferencesWindow ### impl IsA<ConstraintTarget> for PreferencesWindow ### impl IsA<Native> for PreferencesWindow ### impl IsA<Root> for PreferencesWindow ### impl IsA<ShortcutManager> for PreferencesWindow ### impl IsA<Widget> for PreferencesWindow ### impl IsA<Window> for PreferencesWindow ### impl IsA<Window> for PreferencesWindow Auto Trait Implementations --- ### impl RefUnwindSafe for PreferencesWindow ### impl !Send for PreferencesWindow ### impl !Sync for PreferencesWindow ### impl Unpin for PreferencesWindow ### impl UnwindSafe for PreferencesWindow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> AdwWindowExt for Owhere O: IsA<Window>, #### fn add_breakpoint(&self, breakpoint: Breakpoint) Available on **crate feature `v1_4`** only.#### fn content(&self) -> Option<Widget#### fn current_breakpoint(&self) -> Option<BreakpointAvailable on **crate feature `v1_4`** only.#### fn set_content(&self, content: Option<&impl IsA<Widget>>) #### fn connect_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<O> GtkWindowExt for Owhere O: IsA<Window>, #### fn close(&self) #### fn destroy(&self) #### fn fullscreen(&self) #### fn fullscreen_on_monitor(&self, monitor: &Monitor) #### fn application(&self) -> Option<Application#### fn child(&self) -> Option<Widget#### fn is_decorated(&self) -> bool #### fn default_size(&self) -> (i32, i32) #### fn default_widget(&self) -> Option<Widget#### fn is_deletable(&self) -> bool #### fn must_destroy_with_parent(&self) -> bool #### fn focus(&self) -> Option<Widget#### fn gets_focus_visible(&self) -> bool #### fn group(&self) -> WindowGroup #### fn hides_on_close(&self) -> bool #### fn icon_name(&self) -> Option<GString#### fn is_mnemonics_visible(&self) -> bool #### fn is_modal(&self) -> bool #### fn is_resizable(&self) -> bool #### fn title(&self) -> Option<GString#### fn titlebar(&self) -> Option<Widget#### fn transient_for(&self) -> Option<Window#### fn has_group(&self) -> bool #### fn is_active(&self) -> bool #### fn is_fullscreen(&self) -> bool #### fn is_maximized(&self) -> bool #### fn maximize(&self) #### fn minimize(&self) #### fn present(&self) #### fn present_with_time(&self, timestamp: u32) #### fn set_application(&self, application: Option<&impl IsA<Application>>) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_decorated(&self, setting: bool) #### fn set_default_size(&self, width: i32, height: i32) #### fn set_default_widget(&self, default_widget: Option<&impl IsA<Widget>>) #### fn set_deletable(&self, setting: bool) #### fn set_destroy_with_parent(&self, setting: bool) #### fn set_display(&self, display: &impl IsA<Display>) #### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) #### fn set_focus_visible(&self, setting: bool) #### fn set_hide_on_close(&self, setting: bool) #### fn set_icon_name(&self, name: Option<&str>) #### fn set_mnemonics_visible(&self, setting: bool) #### fn set_modal(&self, modal: bool) #### fn set_resizable(&self, resizable: bool) #### fn set_startup_id(&self, startup_id: &str) #### fn set_title(&self, title: Option<&str>) #### fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>) #### fn set_transient_for(&self, parent: Option<&impl IsA<Window>>) #### fn unfullscreen(&self) #### fn unmaximize(&self) #### fn unminimize(&self) #### fn default_height(&self) -> i32 #### fn set_default_height(&self, default_height: i32) #### fn default_width(&self) -> i32 #### fn set_default_width(&self, default_width: i32) #### fn focus_widget(&self) -> Option<Widget#### fn set_focus_widget<P>(&self, focus_widget: Option<&P>)where P: IsA<Widget>, #### fn is_fullscreened(&self) -> bool #### fn set_fullscreened(&self, fullscreened: bool) #### fn set_maximized(&self, maximized: bool) #### fn connect_activate_default<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_default(&self) #### fn connect_activate_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_focus(&self) #### fn connect_close_request<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) -> Propagation + 'static, #### fn connect_enable_debugging<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> bool + 'static, #### fn emit_enable_debugging(&self, toggle: bool) -> bool #### fn connect_keys_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_application_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_decorated_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_height_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_width_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_deletable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_destroy_with_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_display_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_fullscreened_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hide_on_close_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_icon_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_is_active_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_maximized_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonics_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_modal_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_resizable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_startup_id_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_title_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_transient_for_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> NativeExt for Owhere O: IsA<Native>, #### fn renderer(&self) -> Renderer #### fn surface(&self) -> Surface #### fn surface_transform(&self) -> (f64, f64) #### fn realize(&self) #### fn unrealize(&self) ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesWindow>, #### fn add(&self, page: &impl IsA<PreferencesPage>) #### fn add_toast(&self, toast: Toast) #### fn close_subpage(&self) 👎Deprecated: Since 1.4#### fn can_navigate_back(&self) -> bool 👎Deprecated: Since 1.4#### fn is_search_enabled(&self) -> bool #### fn visible_page(&self) -> Option<PreferencesPage#### fn visible_page_name(&self) -> Option<GString#### fn pop_subpage(&self) -> bool Available on **crate feature `v1_4`** only.#### fn present_subpage(&self, subpage: &impl IsA<Widget>) 👎Deprecated: Since 1.4#### fn push_subpage(&self, page: &impl IsA<NavigationPage>) Available on **crate feature `v1_4`** only.#### fn remove(&self, page: &impl IsA<PreferencesPage>) #### fn set_can_navigate_back(&self, can_navigate_back: bool) 👎Deprecated: Since 1.4#### fn set_search_enabled(&self, search_enabled: bool) #### fn set_visible_page(&self, page: &impl IsA<PreferencesPage>) #### fn set_visible_page_name(&self, name: &str) #### fn connect_can_navigate_back_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### fn connect_search_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_visible_page_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_visible_page_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<O> RootExt for Owhere O: IsA<Root>, #### fn display(&self) -> Display #### fn focus(&self) -> Option<Widget#### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, ### impl<O> ShortcutManagerExt for Owhere O: IsA<ShortcutManager>, Struct libadwaita::PropertyAnimationTarget === ``` #[repr(transparent)]pub struct PropertyAnimationTarget { /* private fields */ } ``` Available on **crate feature `v1_2`** only.Implementations --- ### impl PropertyAnimationTarget #### pub fn new( object: &impl IsA<Object>, property_name: &str ) -> PropertyAnimationTarget #### pub fn for_pspec( object: &impl IsA<Object>, pspec: impl AsRef<ParamSpec> ) -> PropertyAnimationTarget #### pub fn object(&self) -> Object #### pub fn pspec(&self) -> ParamSpec Trait Implementations --- ### impl Clone for PropertyAnimationTarget #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = PropertyAnimationTarget Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, PropertyAnimationTarget#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for PropertyAnimationTarget #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = AnimationTarget ### impl<OT: ObjectType> PartialEq<OT> for PropertyAnimationTarget #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for PropertyAnimationTarget #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for PropertyAnimationTarget ### impl IsA<AnimationTarget> for PropertyAnimationTarget Auto Trait Implementations --- ### impl RefUnwindSafe for PropertyAnimationTarget ### impl !Send for PropertyAnimationTarget ### impl !Sync for PropertyAnimationTarget ### impl Unpin for PropertyAnimationTarget ### impl UnwindSafe for PropertyAnimationTarget Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::SpinRow === ``` #[repr(transparent)]pub struct SpinRow { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl SpinRow #### pub fn new( adjustment: Option<&impl IsA<Adjustment>>, climb_rate: f64, digits: u32 ) -> SpinRow #### pub fn with_range(min: f64, max: f64, step: f64) -> SpinRow #### pub fn builder() -> SpinRowBuilder Creates a new builder-pattern struct instance to construct `SpinRow` objects. This method returns an instance of `SpinRowBuilder` which can be used to create `SpinRow` objects. #### pub fn configure( &self, adjustment: Option<&impl IsA<Adjustment>>, climb_rate: f64, digits: u32 ) #### pub fn adjustment(&self) -> Adjustment #### pub fn climb_rate(&self) -> f64 #### pub fn digits(&self) -> u32 #### pub fn is_numeric(&self) -> bool #### pub fn snaps_to_ticks(&self) -> bool #### pub fn update_policy(&self) -> SpinButtonUpdatePolicy #### pub fn value(&self) -> f64 #### pub fn wraps(&self) -> bool #### pub fn set_adjustment(&self, adjustment: Option<&impl IsA<Adjustment>>) #### pub fn set_climb_rate(&self, climb_rate: f64) #### pub fn set_digits(&self, digits: u32) #### pub fn set_numeric(&self, numeric: bool) #### pub fn set_range(&self, min: f64, max: f64) #### pub fn set_snap_to_ticks(&self, snap_to_ticks: bool) #### pub fn set_update_policy(&self, policy: SpinButtonUpdatePolicy) #### pub fn set_value(&self, value: f64) #### pub fn set_wrap(&self, wrap: bool) #### pub fn update(&self) #### pub fn connect_output<F: Fn(&Self) -> bool + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_wrapped<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn connect_adjustment_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_climb_rate_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_digits_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_numeric_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_snap_to_ticks_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_update_policy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_value_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_wrap_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl SpinRow #### pub fn connect_input<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) -> Option<Result<f64, ()>> + 'static, Trait Implementations --- ### impl Clone for SpinRow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = SpinRow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, SpinRow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for SpinRow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = ActionRow ### impl<OT: ObjectType> PartialEq<OT> for SpinRow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for SpinRow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for SpinRow ### impl IsA<Accessible> for SpinRow ### impl IsA<ActionRow> for SpinRow ### impl IsA<Actionable> for SpinRow ### impl IsA<Buildable> for SpinRow ### impl IsA<ConstraintTarget> for SpinRow ### impl IsA<Editable> for SpinRow ### impl IsA<ListBoxRow> for SpinRow ### impl IsA<PreferencesRow> for SpinRow ### impl IsA<Widget> for SpinRow Auto Trait Implementations --- ### impl RefUnwindSafe for SpinRow ### impl !Send for SpinRow ### impl !Sync for SpinRow ### impl Unpin for SpinRow ### impl UnwindSafe for SpinRow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionRowExt for Owhere O: IsA<ActionRow>, #### fn activate(&self) #### fn add_prefix(&self, widget: &impl IsA<Widget>) #### fn add_suffix(&self, widget: &impl IsA<Widget>) #### fn activatable_widget(&self) -> Option<Widget#### fn icon_name(&self) -> Option<GString👎Deprecated: Since 1.3#### fn subtitle(&self) -> Option<GString#### fn subtitle_lines(&self) -> i32 #### fn is_subtitle_selectable(&self) -> bool Available on **crate feature `v1_3`** only.#### fn title_lines(&self) -> i32 #### fn remove(&self, widget: &impl IsA<Widget>) #### fn set_activatable_widget(&self, widget: Option<&impl IsA<Widget>>) #### fn set_icon_name(&self, icon_name: Option<&str>) 👎Deprecated: Since 1.3#### fn set_subtitle(&self, subtitle: &str) #### fn set_subtitle_lines(&self, subtitle_lines: i32) #### fn set_subtitle_selectable(&self, subtitle_selectable: bool) Available on **crate feature `v1_3`** only.#### fn set_title_lines(&self, title_lines: i32) #### fn connect_activated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_activatable_widget_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.3#### fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### fn connect_title_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. O: IsA<Editable>, #### fn delete_selection(&self) #### fn delete_text(&self, start_pos: i32, end_pos: i32) #### fn finish_delegate(&self) #### fn alignment(&self) -> f32 #### fn chars(&self, start_pos: i32, end_pos: i32) -> GString #### fn delegate(&self) -> Option<Editable#### fn is_editable(&self) -> bool #### fn enables_undo(&self) -> bool #### fn max_width_chars(&self) -> i32 #### fn position(&self) -> i32 #### fn selection_bounds(&self) -> Option<(i32, i32)#### fn text(&self) -> GString #### fn width_chars(&self) -> i32 #### fn init_delegate(&self) #### fn insert_text(&self, text: &str, position: &mut i32) #### fn select_region(&self, start_pos: i32, end_pos: i32) #### fn set_alignment(&self, xalign: f32) #### fn set_editable(&self, is_editable: bool) #### fn set_enable_undo(&self, enable_undo: bool) #### fn set_max_width_chars(&self, n_chars: i32) #### fn set_position(&self, position: i32) #### fn set_text(&self, text: &str) #### fn set_width_chars(&self, n_chars: i32) #### fn cursor_position(&self) -> i32 #### fn selection_bound(&self) -> i32 #### fn xalign(&self) -> f32 #### fn set_xalign(&self, xalign: f32) #### fn connect_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_delete_text<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32) + 'static, #### fn connect_cursor_position_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_editable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_enable_undo_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_max_width_chars_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selection_bound_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_chars_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_xalign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> EditableExtManual for Owhere O: IsA<Editable>, #### fn connect_insert_text<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &str, &mut i32) + 'static, ### impl<T> From<T> for T #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListBoxRowExt for Owhere O: IsA<ListBoxRow>, #### fn changed(&self) #### fn is_activatable(&self) -> bool #### fn child(&self) -> Option<Widget#### fn header(&self) -> Option<Widget#### fn index(&self) -> i32 #### fn is_selectable(&self) -> bool #### fn is_selected(&self) -> bool #### fn set_activatable(&self, activatable: bool) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_header(&self, header: Option<&impl IsA<Widget>>) #### fn set_selectable(&self, selectable: bool) #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate(&self) #### fn connect_activatable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesRow>, #### fn title(&self) -> GString #### fn is_title_selectable(&self) -> bool Available on **crate feature `v1_1`** only.#### fn uses_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn uses_underline(&self) -> bool #### fn set_title(&self, title: &str) #### fn set_title_selectable(&self, title_selectable: bool) Available on **crate feature `v1_1`** only.#### fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_use_underline(&self, use_underline: bool) #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::SplitButton === ``` #[repr(transparent)]pub struct SplitButton { /* private fields */ } ``` Implementations --- ### impl SplitButton #### pub fn new() -> SplitButton #### pub fn builder() -> SplitButtonBuilder Creates a new builder-pattern struct instance to construct `SplitButton` objects. This method returns an instance of `SplitButtonBuilder` which can be used to create `SplitButton` objects. #### pub fn can_shrink(&self) -> bool Available on **crate feature `v1_4`** only.#### pub fn child(&self) -> Option<Widget#### pub fn direction(&self) -> ArrowType #### pub fn dropdown_tooltip(&self) -> GString Available on **crate feature `v1_2`** only.#### pub fn icon_name(&self) -> Option<GString#### pub fn label(&self) -> Option<GString#### pub fn menu_model(&self) -> Option<MenuModel#### pub fn popover(&self) -> Option<Popover#### pub fn uses_underline(&self) -> bool #### pub fn popdown(&self) #### pub fn popup(&self) #### pub fn set_can_shrink(&self, can_shrink: bool) Available on **crate feature `v1_4`** only.#### pub fn set_child(&self, child: Option<&impl IsA<Widget>>) #### pub fn set_direction(&self, direction: ArrowType) #### pub fn set_dropdown_tooltip(&self, tooltip: &str) Available on **crate feature `v1_2`** only.#### pub fn set_icon_name(&self, icon_name: &str) #### pub fn set_label(&self, label: &str) #### pub fn set_menu_model(&self, menu_model: Option<&impl IsA<MenuModel>>) #### pub fn set_popover(&self, popover: Option<&impl IsA<Popover>>) #### pub fn set_use_underline(&self, use_underline: bool) #### pub fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn emit_activate(&self) #### pub fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn emit_clicked(&self) #### pub fn connect_can_shrink_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### pub fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_direction_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_dropdown_tooltip_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### pub fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_label_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_menu_model_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_popover_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for SplitButton #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = SplitButton Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, SplitButton#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for SplitButton #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for SplitButton #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for SplitButton #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for SplitButton ### impl IsA<Accessible> for SplitButton ### impl IsA<Actionable> for SplitButton ### impl IsA<Buildable> for SplitButton ### impl IsA<ConstraintTarget> for SplitButton ### impl IsA<Widget> for SplitButton Auto Trait Implementations --- ### impl RefUnwindSafe for SplitButton ### impl !Send for SplitButton ### impl !Sync for SplitButton ### impl Unpin for SplitButton ### impl UnwindSafe for SplitButton Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::SpringAnimation === ``` #[repr(transparent)]pub struct SpringAnimation { /* private fields */ } ``` Implementations --- ### impl SpringAnimation #### pub fn new( widget: &impl IsA<Widget>, from: f64, to: f64, spring_params: SpringParams, target: impl IsA<AnimationTarget> ) -> SpringAnimation #### pub fn builder() -> SpringAnimationBuilder Creates a new builder-pattern struct instance to construct `SpringAnimation` objects. This method returns an instance of `SpringAnimationBuilder` which can be used to create `SpringAnimation` objects. #### pub fn calculate_value(&self, time: u32) -> f64 Available on **crate feature `v1_3`** only.#### pub fn calculate_velocity(&self, time: u32) -> f64 Available on **crate feature `v1_3`** only.#### pub fn is_clamp(&self) -> bool #### pub fn epsilon(&self) -> f64 #### pub fn estimated_duration(&self) -> u32 #### pub fn initial_velocity(&self) -> f64 #### pub fn spring_params(&self) -> SpringParams #### pub fn value_from(&self) -> f64 #### pub fn value_to(&self) -> f64 #### pub fn velocity(&self) -> f64 #### pub fn set_clamp(&self, clamp: bool) #### pub fn set_epsilon(&self, epsilon: f64) #### pub fn set_initial_velocity(&self, velocity: f64) #### pub fn set_spring_params(&self, spring_params: &SpringParams) #### pub fn set_value_from(&self, value: f64) #### pub fn set_value_to(&self, value: f64) #### pub fn connect_clamp_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_epsilon_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_estimated_duration_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_initial_velocity_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_spring_params_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_value_from_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_value_to_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_velocity_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for SpringAnimation #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = SpringAnimation Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, SpringAnimation#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for SpringAnimation #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Animation ### impl<OT: ObjectType> PartialEq<OT> for SpringAnimation #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for SpringAnimation #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for SpringAnimation ### impl IsA<Animation> for SpringAnimation Auto Trait Implementations --- ### impl RefUnwindSafe for SpringAnimation ### impl !Send for SpringAnimation ### impl !Sync for SpringAnimation ### impl Unpin for SpringAnimation ### impl UnwindSafe for SpringAnimation Blanket Implementations --- ### impl<O> AnimationExt for Owhere O: IsA<Animation>, #### fn follows_enable_animations_setting(&self) -> bool Available on **crate feature `v1_3`** only.#### fn state(&self) -> AnimationState #### fn target(&self) -> AnimationTarget #### fn value(&self) -> f64 #### fn widget(&self) -> Widget #### fn pause(&self) #### fn play(&self) #### fn reset(&self) #### fn resume(&self) #### fn set_follow_enable_animations_setting(&self, setting: bool) Available on **crate feature `v1_3`** only.#### fn set_target(&self, target: &impl IsA<AnimationTarget>) #### fn skip(&self) #### fn connect_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_follow_enable_animations_setting_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### fn connect_state_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_target_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_value_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::SpringParams === ``` #[repr(transparent)]pub struct SpringParams { /* private fields */ } ``` Implementations --- ### impl SpringParams #### pub fn as_ptr(&self) -> *mutAdwSpringParams Return the inner pointer to the underlying C value. #### pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const*constAdwSpringParams ) -> &'a Self Borrows the underlying C value. ### impl SpringParams #### pub fn new(damping_ratio: f64, mass: f64, stiffness: f64) -> SpringParams #### pub fn new_full(damping: f64, mass: f64, stiffness: f64) -> SpringParams #### pub fn damping(&self) -> f64 #### pub fn damping_ratio(&self) -> f64 #### pub fn mass(&self) -> f64 #### pub fn stiffness(&self) -> f64 Trait Implementations --- ### impl Clone for SpringParams #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(s: SpringParams) -> Self Converts to this type from the input type.### impl HasParamSpec for SpringParams #### type ParamSpec = ParamSpecBoxed #### type SetValue = SpringParams Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, SpringParams#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for SpringParams #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &SpringParams) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &SpringParams) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<SpringParams> for SpringParams #### fn partial_cmp(&self, other: &SpringParams) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for SpringParams ### impl StructuralEq for SpringParams ### impl StructuralPartialEq for SpringParams Auto Trait Implementations --- ### impl RefUnwindSafe for SpringParams ### impl !Send for SpringParams ### impl !Sync for SpringParams ### impl Unpin for SpringParams ### impl UnwindSafe for SpringParams Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, Struct libadwaita::Squeezer === ``` #[repr(transparent)]pub struct Squeezer { /* private fields */ } ``` 👎Deprecated: Since 1.4Implementations --- ### impl Squeezer #### pub fn new() -> Squeezer 👎Deprecated: Since 1.4#### pub fn builder() -> SqueezerBuilder 👎Deprecated: Since 1.4Creates a new builder-pattern struct instance to construct `Squeezer` objects. This method returns an instance of `SqueezerBuilder` which can be used to create `Squeezer` objects. #### pub fn add(&self, child: &impl IsA<Widget>) -> SqueezerPage 👎Deprecated: Since 1.4#### pub fn allows_none(&self) -> bool 👎Deprecated: Since 1.4#### pub fn is_homogeneous(&self) -> bool 👎Deprecated: Since 1.4#### pub fn is_interpolate_size(&self) -> bool 👎Deprecated: Since 1.4#### pub fn page(&self, child: &impl IsA<Widget>) -> SqueezerPage 👎Deprecated: Since 1.4#### pub fn pages(&self) -> SelectionModel 👎Deprecated: Since 1.4#### pub fn switch_threshold_policy(&self) -> FoldThresholdPolicy 👎Deprecated: Since 1.4#### pub fn transition_duration(&self) -> u32 👎Deprecated: Since 1.4#### pub fn is_transition_running(&self) -> bool 👎Deprecated: Since 1.4#### pub fn transition_type(&self) -> SqueezerTransitionType 👎Deprecated: Since 1.4#### pub fn visible_child(&self) -> Option<Widget👎Deprecated: Since 1.4#### pub fn xalign(&self) -> f32 👎Deprecated: Since 1.4#### pub fn yalign(&self) -> f32 👎Deprecated: Since 1.4#### pub fn remove(&self, child: &impl IsA<Widget>) 👎Deprecated: Since 1.4#### pub fn set_allow_none(&self, allow_none: bool) 👎Deprecated: Since 1.4#### pub fn set_homogeneous(&self, homogeneous: bool) 👎Deprecated: Since 1.4#### pub fn set_interpolate_size(&self, interpolate_size: bool) 👎Deprecated: Since 1.4#### pub fn set_switch_threshold_policy(&self, policy: FoldThresholdPolicy) 👎Deprecated: Since 1.4#### pub fn set_transition_duration(&self, duration: u32) 👎Deprecated: Since 1.4#### pub fn set_transition_type(&self, transition: SqueezerTransitionType) 👎Deprecated: Since 1.4#### pub fn set_xalign(&self, xalign: f32) 👎Deprecated: Since 1.4#### pub fn set_yalign(&self, yalign: f32) 👎Deprecated: Since 1.4#### pub fn connect_allow_none_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_homogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_interpolate_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_pages_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_switch_threshold_policy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_transition_duration_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_transition_running_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_transition_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_visible_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_xalign_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_yalign_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for Squeezer #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Squeezer Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Squeezer#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Squeezer #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for Squeezer #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Squeezer #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Squeezer ### impl IsA<Accessible> for Squeezer ### impl IsA<Buildable> for Squeezer ### impl IsA<ConstraintTarget> for Squeezer ### impl IsA<Orientable> for Squeezer ### impl IsA<Widget> for Squeezer Auto Trait Implementations --- ### impl RefUnwindSafe for Squeezer ### impl !Send for Squeezer ### impl !Sync for Squeezer ### impl Unpin for Squeezer ### impl UnwindSafe for Squeezer Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::SqueezerPage === ``` #[repr(transparent)]pub struct SqueezerPage { /* private fields */ } ``` 👎Deprecated: Since 1.4Implementations --- ### impl SqueezerPage #### pub fn child(&self) -> Widget 👎Deprecated: Since 1.4#### pub fn is_enabled(&self) -> bool 👎Deprecated: Since 1.4#### pub fn set_enabled(&self, enabled: bool) 👎Deprecated: Since 1.4#### pub fn connect_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for SqueezerPage #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = SqueezerPage Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, SqueezerPage#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for SqueezerPage #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for SqueezerPage #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for SqueezerPage #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for SqueezerPage Auto Trait Implementations --- ### impl RefUnwindSafe for SqueezerPage ### impl !Send for SqueezerPage ### impl !Sync for SqueezerPage ### impl Unpin for SqueezerPage ### impl UnwindSafe for SqueezerPage Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::StatusPage === ``` #[repr(transparent)]pub struct StatusPage { /* private fields */ } ``` Implementations --- ### impl StatusPage #### pub fn new() -> StatusPage #### pub fn builder() -> StatusPageBuilder Creates a new builder-pattern struct instance to construct `StatusPage` objects. This method returns an instance of `StatusPageBuilder` which can be used to create `StatusPage` objects. #### pub fn child(&self) -> Option<Widget#### pub fn description(&self) -> Option<GString#### pub fn icon_name(&self) -> Option<GString#### pub fn paintable(&self) -> Option<Paintable#### pub fn title(&self) -> GString #### pub fn set_child(&self, child: Option<&impl IsA<Widget>>) #### pub fn set_description(&self, description: Option<&str>) #### pub fn set_icon_name(&self, icon_name: Option<&str>) #### pub fn set_paintable(&self, paintable: Option<&impl IsA<Paintable>>) #### pub fn set_title(&self, title: &str) #### pub fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_description_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_paintable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for StatusPage #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = StatusPage Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, StatusPage#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for StatusPage #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for StatusPage #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for StatusPage #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for StatusPage ### impl IsA<Accessible> for StatusPage ### impl IsA<Buildable> for StatusPage ### impl IsA<ConstraintTarget> for StatusPage ### impl IsA<Widget> for StatusPage Auto Trait Implementations --- ### impl RefUnwindSafe for StatusPage ### impl !Send for StatusPage ### impl !Sync for StatusPage ### impl Unpin for StatusPage ### impl UnwindSafe for StatusPage Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::StyleManager === ``` #[repr(transparent)]pub struct StyleManager { /* private fields */ } ``` Implementations --- ### impl StyleManager #### pub fn color_scheme(&self) -> ColorScheme #### pub fn is_dark(&self) -> bool #### pub fn display(&self) -> Option<Display#### pub fn is_high_contrast(&self) -> bool #### pub fn system_supports_color_schemes(&self) -> bool #### pub fn set_color_scheme(&self, color_scheme: ColorScheme) #### pub fn default() -> StyleManager #### pub fn for_display(display: &Display) -> StyleManager #### pub fn connect_color_scheme_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_dark_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_high_contrast_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_system_supports_color_schemes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for StyleManager #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = StyleManager Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, StyleManager#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for StyleManager #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for StyleManager #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for StyleManager #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for StyleManager Auto Trait Implementations --- ### impl RefUnwindSafe for StyleManager ### impl !Send for StyleManager ### impl !Sync for StyleManager ### impl Unpin for StyleManager ### impl UnwindSafe for StyleManager Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::SwipeTracker === ``` #[repr(transparent)]pub struct SwipeTracker { /* private fields */ } ``` Implementations --- ### impl SwipeTracker #### pub fn new(swipeable: &impl IsA<Swipeable>) -> SwipeTracker #### pub fn builder() -> SwipeTrackerBuilder Creates a new builder-pattern struct instance to construct `SwipeTracker` objects. This method returns an instance of `SwipeTrackerBuilder` which can be used to create `SwipeTracker` objects. #### pub fn allows_long_swipes(&self) -> bool #### pub fn allows_mouse_drag(&self) -> bool #### pub fn is_enabled(&self) -> bool #### pub fn is_lower_overshoot(&self) -> bool Available on **crate feature `v1_4`** only.#### pub fn is_reversed(&self) -> bool #### pub fn swipeable(&self) -> Swipeable #### pub fn is_upper_overshoot(&self) -> bool Available on **crate feature `v1_4`** only.#### pub fn set_allow_long_swipes(&self, allow_long_swipes: bool) #### pub fn set_allow_mouse_drag(&self, allow_mouse_drag: bool) #### pub fn set_enabled(&self, enabled: bool) #### pub fn set_lower_overshoot(&self, overshoot: bool) Available on **crate feature `v1_4`** only.#### pub fn set_reversed(&self, reversed: bool) #### pub fn set_upper_overshoot(&self, overshoot: bool) Available on **crate feature `v1_4`** only.#### pub fn shift_position(&self, delta: f64) #### pub fn connect_begin_swipe<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_end_swipe<F: Fn(&Self, f64, f64) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_prepare<F: Fn(&Self, NavigationDirection) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_update_swipe<F: Fn(&Self, f64) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_allow_long_swipes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_allow_mouse_drag_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_lower_overshoot_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### pub fn connect_reversed_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_upper_overshoot_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.Trait Implementations --- ### impl Clone for SwipeTracker #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = SwipeTracker Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, SwipeTracker#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for SwipeTracker #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for SwipeTracker #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for SwipeTracker #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for SwipeTracker ### impl IsA<Orientable> for SwipeTracker Auto Trait Implementations --- ### impl RefUnwindSafe for SwipeTracker ### impl !Send for SwipeTracker ### impl !Sync for SwipeTracker ### impl Unpin for SwipeTracker ### impl UnwindSafe for SwipeTracker Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<Orientable>, #### fn orientation(&self) -> Orientation #### fn set_orientation(&self, orientation: Orientation) #### fn connect_orientation_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Swipeable === ``` #[repr(transparent)]pub struct Swipeable { /* private fields */ } ``` Implementations --- ### impl Swipeable #### pub const NONE: Option<&'static Swipeable> = None Trait Implementations --- ### impl Clone for Swipeable #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Swipeable Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Swipeable#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Swipeable #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn interface_init(iface: &mut Interface<Self>) Override the virtual methods of this interface for the given subclass and do other interface initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Swipeable #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Swipeable ### impl IsA<Accessible> for Swipeable ### impl IsA<Buildable> for Swipeable ### impl IsA<ConstraintTarget> for Swipeable ### impl IsA<Swipeable> for Carousel ### impl IsA<Swipeable> for Flap ### impl IsA<Swipeable> for Leaflet ### impl IsA<Swipeable> for NavigationView Available on **crate feature `v1_4`** only.### impl IsA<Swipeable> for OverlaySplitView Available on **crate feature `v1_4`** only.### impl IsA<Widget> for Swipeable Auto Trait Implementations --- ### impl RefUnwindSafe for Swipeable ### impl !Send for Swipeable ### impl !Sync for Swipeable ### impl Unpin for Swipeable ### impl UnwindSafe for Swipeable Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<O> SwipeableExt for Owhere O: IsA<Swipeable>, #### fn cancel_progress(&self) -> f64 #### fn distance(&self) -> f64 #### fn progress(&self) -> f64 #### fn snap_points(&self) -> Vec<f64#### fn swipe_area( &self, navigation_direction: NavigationDirection, is_drag: bool ) -> Rectangle ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::SwitchRow === ``` #[repr(transparent)]pub struct SwitchRow { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl SwitchRow #### pub fn new() -> SwitchRow #### pub fn builder() -> SwitchRowBuilder Creates a new builder-pattern struct instance to construct `SwitchRow` objects. This method returns an instance of `SwitchRowBuilder` which can be used to create `SwitchRow` objects. #### pub fn is_active(&self) -> bool #### pub fn set_active(&self, is_active: bool) #### pub fn connect_active_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for SwitchRow #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = SwitchRow Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, SwitchRow#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for SwitchRow #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = ActionRow ### impl<OT: ObjectType> PartialEq<OT> for SwitchRow #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for SwitchRow #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for SwitchRow ### impl IsA<Accessible> for SwitchRow ### impl IsA<ActionRow> for SwitchRow ### impl IsA<Actionable> for SwitchRow ### impl IsA<Buildable> for SwitchRow ### impl IsA<ConstraintTarget> for SwitchRow ### impl IsA<ListBoxRow> for SwitchRow ### impl IsA<PreferencesRow> for SwitchRow ### impl IsA<Widget> for SwitchRow Auto Trait Implementations --- ### impl RefUnwindSafe for SwitchRow ### impl !Send for SwitchRow ### impl !Sync for SwitchRow ### impl Unpin for SwitchRow ### impl UnwindSafe for SwitchRow Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionRowExt for Owhere O: IsA<ActionRow>, #### fn activate(&self) #### fn add_prefix(&self, widget: &impl IsA<Widget>) #### fn add_suffix(&self, widget: &impl IsA<Widget>) #### fn activatable_widget(&self) -> Option<Widget#### fn icon_name(&self) -> Option<GString👎Deprecated: Since 1.3#### fn subtitle(&self) -> Option<GString#### fn subtitle_lines(&self) -> i32 #### fn is_subtitle_selectable(&self) -> bool Available on **crate feature `v1_3`** only.#### fn title_lines(&self) -> i32 #### fn remove(&self, widget: &impl IsA<Widget>) #### fn set_activatable_widget(&self, widget: Option<&impl IsA<Widget>>) #### fn set_icon_name(&self, icon_name: Option<&str>) 👎Deprecated: Since 1.3#### fn set_subtitle(&self, subtitle: &str) #### fn set_subtitle_lines(&self, subtitle_lines: i32) #### fn set_subtitle_selectable(&self, subtitle_selectable: bool) Available on **crate feature `v1_3`** only.#### fn set_title_lines(&self, title_lines: i32) #### fn connect_activated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_activatable_widget_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.3#### fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_subtitle_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### fn connect_title_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListBoxRowExt for Owhere O: IsA<ListBoxRow>, #### fn changed(&self) #### fn is_activatable(&self) -> bool #### fn child(&self) -> Option<Widget#### fn header(&self) -> Option<Widget#### fn index(&self) -> i32 #### fn is_selectable(&self) -> bool #### fn is_selected(&self) -> bool #### fn set_activatable(&self, activatable: bool) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_header(&self, header: Option<&impl IsA<Widget>>) #### fn set_selectable(&self, selectable: bool) #### fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate(&self) #### fn connect_activatable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. O: IsA<PreferencesRow>, #### fn title(&self) -> GString #### fn is_title_selectable(&self) -> bool Available on **crate feature `v1_1`** only.#### fn uses_markup(&self) -> bool Available on **crate feature `v1_2`** only.#### fn uses_underline(&self) -> bool #### fn set_title(&self, title: &str) #### fn set_title_selectable(&self, title_selectable: bool) Available on **crate feature `v1_1`** only.#### fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_2`** only.#### fn set_use_underline(&self, use_underline: bool) #### fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_1`** only.#### fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::TabBar === ``` #[repr(transparent)]pub struct TabBar { /* private fields */ } ``` Implementations --- ### impl TabBar #### pub fn new() -> TabBar #### pub fn builder() -> TabBarBuilder Creates a new builder-pattern struct instance to construct `TabBar` objects. This method returns an instance of `TabBarBuilder` which can be used to create `TabBar` objects. #### pub fn is_autohide(&self) -> bool #### pub fn end_action_widget(&self) -> Option<Widget#### pub fn expands_tabs(&self) -> bool #### pub fn extra_drag_preferred_action(&self) -> DragAction Available on **crate feature `v1_4`** only.#### pub fn is_extra_drag_preload(&self) -> bool Available on **crate feature `v1_3`** only.#### pub fn is_inverted(&self) -> bool #### pub fn is_overflowing(&self) -> bool #### pub fn start_action_widget(&self) -> Option<Widget#### pub fn is_tabs_revealed(&self) -> bool #### pub fn view(&self) -> Option<TabView#### pub fn set_autohide(&self, autohide: bool) #### pub fn set_end_action_widget(&self, widget: Option<&impl IsA<Widget>>) #### pub fn set_expand_tabs(&self, expand_tabs: bool) #### pub fn set_extra_drag_preload(&self, preload: bool) Available on **crate feature `v1_3`** only.#### pub fn set_inverted(&self, inverted: bool) #### pub fn set_start_action_widget(&self, widget: Option<&impl IsA<Widget>>) #### pub fn set_view(&self, view: Option<&TabView>) #### pub fn connect_extra_drag_value<F: Fn(&Self, &TabPage, &Value) -> DragAction + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### pub fn connect_autohide_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_end_action_widget_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_expand_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_extra_drag_preferred_action_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### pub fn connect_extra_drag_preload_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### pub fn connect_inverted_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_is_overflowing_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_start_action_widget_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_tabs_revealed_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_view_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId ### impl TabBar #### pub fn setup_extra_drop_target(&self, actions: DragAction, types: &[Type]) #### pub fn connect_extra_drag_drop<F: Fn(&TabBar, &TabPage, &Value) -> bool + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for TabBar #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = TabBar Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, TabBar#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for TabBar #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for TabBar #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for TabBar #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for TabBar ### impl IsA<Accessible> for TabBar ### impl IsA<Buildable> for TabBar ### impl IsA<ConstraintTarget> for TabBar ### impl IsA<Widget> for TabBar Auto Trait Implementations --- ### impl RefUnwindSafe for TabBar ### impl !Send for TabBar ### impl !Sync for TabBar ### impl Unpin for TabBar ### impl UnwindSafe for TabBar Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::TabButton === ``` #[repr(transparent)]pub struct TabButton { /* private fields */ } ``` Available on **crate feature `v1_3`** only.Implementations --- ### impl TabButton #### pub fn new() -> TabButton #### pub fn builder() -> TabButtonBuilder Creates a new builder-pattern struct instance to construct `TabButton` objects. This method returns an instance of `TabButtonBuilder` which can be used to create `TabButton` objects. #### pub fn view(&self) -> Option<TabView#### pub fn set_view(&self, view: Option<&TabView>) #### pub fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn emit_activate(&self) #### pub fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn emit_clicked(&self) #### pub fn connect_view_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for TabButton #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = TabButton Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, TabButton#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for TabButton #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for TabButton #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for TabButton #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for TabButton ### impl IsA<Accessible> for TabButton ### impl IsA<Actionable> for TabButton ### impl IsA<Buildable> for TabButton ### impl IsA<ConstraintTarget> for TabButton ### impl IsA<Widget> for TabButton Auto Trait Implementations --- ### impl RefUnwindSafe for TabButton ### impl !Send for TabButton ### impl !Sync for TabButton ### impl Unpin for TabButton ### impl UnwindSafe for TabButton Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> ActionableExt for Owhere O: IsA<Actionable>, #### fn action_name(&self) -> Option<GString#### fn action_target_value(&self) -> Option<Variant#### fn set_action_name(&self, action_name: Option<&str>) #### fn set_action_target_value(&self, target_value: Option<&Variant>) #### fn set_detailed_action_name(&self, detailed_action_name: &str) #### fn connect_action_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_action_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> ActionableExtManual for Owhere O: IsA<Actionable>, #### fn set_action_target(&self, target: Option<impl Into<Variant>>) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::TabOverview === ``` #[repr(transparent)]pub struct TabOverview { /* private fields */ } ``` Available on **crate feature `v1_3`** only.Implementations --- ### impl TabOverview #### pub fn new() -> TabOverview #### pub fn builder() -> TabOverviewBuilder Creates a new builder-pattern struct instance to construct `TabOverview` objects. This method returns an instance of `TabOverviewBuilder` which can be used to create `TabOverview` objects. #### pub fn child(&self) -> Option<Widget#### pub fn enables_new_tab(&self) -> bool #### pub fn enables_search(&self) -> bool #### pub fn extra_drag_preferred_action(&self) -> DragAction Available on **crate feature `v1_4`** only.#### pub fn is_extra_drag_preload(&self) -> bool #### pub fn is_inverted(&self) -> bool #### pub fn is_open(&self) -> bool #### pub fn is_search_active(&self) -> bool #### pub fn secondary_menu(&self) -> Option<MenuModel#### pub fn shows_end_title_buttons(&self) -> bool #### pub fn shows_start_title_buttons(&self) -> bool #### pub fn view(&self) -> Option<TabView#### pub fn set_child(&self, child: Option<&impl IsA<Widget>>) #### pub fn set_enable_new_tab(&self, enable_new_tab: bool) #### pub fn set_enable_search(&self, enable_search: bool) #### pub fn set_extra_drag_preload(&self, preload: bool) #### pub fn set_inverted(&self, inverted: bool) #### pub fn set_open(&self, open: bool) #### pub fn set_secondary_menu(&self, secondary_menu: Option<&impl IsA<MenuModel>>) #### pub fn set_show_end_title_buttons(&self, show_end_title_buttons: bool) #### pub fn set_show_start_title_buttons(&self, show_start_title_buttons: bool) #### pub fn set_view(&self, view: Option<&TabView>) #### pub fn connect_create_tab<F: Fn(&Self) -> TabPage + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_extra_drag_drop<F: Fn(&Self, &TabPage, &Value) -> bool + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_extra_drag_value<F: Fn(&Self, &TabPage, &Value) -> DragAction + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_enable_new_tab_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_enable_search_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_extra_drag_preferred_action_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.#### pub fn connect_extra_drag_preload_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_inverted_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_open_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_search_active_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_secondary_menu_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_show_end_title_buttons_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_show_start_title_buttons_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_view_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for TabOverview #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = TabOverview Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, TabOverview#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for TabOverview #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for TabOverview #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for TabOverview #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for TabOverview ### impl IsA<Accessible> for TabOverview ### impl IsA<Buildable> for TabOverview ### impl IsA<ConstraintTarget> for TabOverview ### impl IsA<Widget> for TabOverview Auto Trait Implementations --- ### impl RefUnwindSafe for TabOverview ### impl !Send for TabOverview ### impl !Sync for TabOverview ### impl Unpin for TabOverview ### impl UnwindSafe for TabOverview Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::TabPage === ``` #[repr(transparent)]pub struct TabPage { /* private fields */ } ``` Implementations --- ### impl TabPage #### pub fn child(&self) -> Widget #### pub fn icon(&self) -> Option<Icon#### pub fn is_indicator_activatable(&self) -> bool #### pub fn indicator_icon(&self) -> Option<Icon#### pub fn indicator_tooltip(&self) -> GString Available on **crate feature `v1_2`** only.#### pub fn keyword(&self) -> Option<GStringAvailable on **crate feature `v1_3`** only.#### pub fn is_live_thumbnail(&self) -> bool Available on **crate feature `v1_3`** only.#### pub fn is_loading(&self) -> bool #### pub fn needs_attention(&self) -> bool #### pub fn parent(&self) -> Option<TabPage#### pub fn is_pinned(&self) -> bool #### pub fn is_selected(&self) -> bool #### pub fn thumbnail_xalign(&self) -> f32 Available on **crate feature `v1_3`** only.#### pub fn thumbnail_yalign(&self) -> f32 Available on **crate feature `v1_3`** only.#### pub fn title(&self) -> GString #### pub fn tooltip(&self) -> Option<GString#### pub fn invalidate_thumbnail(&self) Available on **crate feature `v1_3`** only.#### pub fn set_icon(&self, icon: Option<&impl IsA<Icon>>) #### pub fn set_indicator_activatable(&self, activatable: bool) #### pub fn set_indicator_icon(&self, indicator_icon: Option<&impl IsA<Icon>>) #### pub fn set_indicator_tooltip(&self, tooltip: &str) Available on **crate feature `v1_2`** only.#### pub fn set_keyword(&self, keyword: &str) Available on **crate feature `v1_3`** only.#### pub fn set_live_thumbnail(&self, live_thumbnail: bool) Available on **crate feature `v1_3`** only.#### pub fn set_loading(&self, loading: bool) #### pub fn set_needs_attention(&self, needs_attention: bool) #### pub fn set_thumbnail_xalign(&self, xalign: f32) Available on **crate feature `v1_3`** only.#### pub fn set_thumbnail_yalign(&self, yalign: f32) Available on **crate feature `v1_3`** only.#### pub fn set_title(&self, title: &str) #### pub fn set_tooltip(&self, tooltip: &str) #### pub fn connect_icon_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_indicator_activatable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_indicator_icon_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_indicator_tooltip_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### pub fn connect_keyword_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### pub fn connect_live_thumbnail_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### pub fn connect_loading_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_needs_attention_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_pinned_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_selected_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_thumbnail_xalign_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### pub fn connect_thumbnail_yalign_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### pub fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_tooltip_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for TabPage #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = TabPage Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, TabPage#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for TabPage #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for TabPage #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for TabPage #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for TabPage ### impl IsA<Accessible> for TabPage Auto Trait Implementations --- ### impl RefUnwindSafe for TabPage ### impl !Send for TabPage ### impl !Sync for TabPage ### impl Unpin for TabPage ### impl UnwindSafe for TabPage Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::TabView === ``` #[repr(transparent)]pub struct TabView { /* private fields */ } ``` Implementations --- ### impl TabView #### pub fn new() -> TabView #### pub fn builder() -> TabViewBuilder Creates a new builder-pattern struct instance to construct `TabView` objects. This method returns an instance of `TabViewBuilder` which can be used to create `TabView` objects. #### pub fn add_page( &self, child: &impl IsA<Widget>, parent: Option<&TabPage> ) -> TabPage #### pub fn add_shortcuts(&self, shortcuts: TabViewShortcuts) Available on **crate feature `v1_2`** only.#### pub fn append(&self, child: &impl IsA<Widget>) -> TabPage #### pub fn append_pinned(&self, child: &impl IsA<Widget>) -> TabPage #### pub fn close_other_pages(&self, page: &TabPage) #### pub fn close_page(&self, page: &TabPage) #### pub fn close_page_finish(&self, page: &TabPage, confirm: bool) #### pub fn close_pages_after(&self, page: &TabPage) #### pub fn close_pages_before(&self, page: &TabPage) #### pub fn default_icon(&self) -> Icon #### pub fn is_transferring_page(&self) -> bool #### pub fn menu_model(&self) -> Option<MenuModel#### pub fn n_pages(&self) -> i32 #### pub fn n_pinned_pages(&self) -> i32 #### pub fn page(&self, child: &impl IsA<Widget>) -> TabPage #### pub fn page_position(&self, page: &TabPage) -> i32 #### pub fn pages(&self) -> SelectionModel #### pub fn selected_page(&self) -> Option<TabPage#### pub fn shortcuts(&self) -> TabViewShortcuts Available on **crate feature `v1_2`** only.#### pub fn insert(&self, child: &impl IsA<Widget>, position: i32) -> TabPage #### pub fn insert_pinned(&self, child: &impl IsA<Widget>, position: i32) -> TabPage #### pub fn invalidate_thumbnails(&self) Available on **crate feature `v1_3`** only.#### pub fn prepend(&self, child: &impl IsA<Widget>) -> TabPage #### pub fn prepend_pinned(&self, child: &impl IsA<Widget>) -> TabPage #### pub fn remove_shortcuts(&self, shortcuts: TabViewShortcuts) Available on **crate feature `v1_2`** only.#### pub fn reorder_backward(&self, page: &TabPage) -> bool #### pub fn reorder_first(&self, page: &TabPage) -> bool #### pub fn reorder_forward(&self, page: &TabPage) -> bool #### pub fn reorder_last(&self, page: &TabPage) -> bool #### pub fn reorder_page(&self, page: &TabPage, position: i32) -> bool #### pub fn select_next_page(&self) -> bool #### pub fn select_previous_page(&self) -> bool #### pub fn set_default_icon(&self, default_icon: &impl IsA<Icon>) #### pub fn set_menu_model(&self, menu_model: Option<&impl IsA<MenuModel>>) #### pub fn set_page_pinned(&self, page: &TabPage, pinned: bool) #### pub fn set_selected_page(&self, selected_page: &TabPage) #### pub fn set_shortcuts(&self, shortcuts: TabViewShortcuts) Available on **crate feature `v1_2`** only.#### pub fn transfer_page(&self, page: &TabPage, other_view: &TabView, position: i32) #### pub fn connect_close_page<F: Fn(&Self, &TabPage) -> bool + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_create_window<F: Fn(&Self) -> Option<TabView> + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_indicator_activated<F: Fn(&Self, &TabPage) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_page_attached<F: Fn(&Self, &TabPage, i32) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_page_detached<F: Fn(&Self, &TabPage, i32) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_page_reordered<F: Fn(&Self, &TabPage, i32) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_setup_menu<F: Fn(&Self, Option<&TabPage>) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_default_icon_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_is_transferring_page_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_menu_model_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_n_pages_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_n_pinned_pages_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_pages_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_selected_page_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_shortcuts_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.### impl TabView #### pub fn nth_page(&self, position: i32) -> TabPage Trait Implementations --- ### impl Clone for TabView #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = TabView Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, TabView#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for TabView #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for TabView #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for TabView #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for TabView ### impl IsA<Accessible> for TabView ### impl IsA<Buildable> for TabView ### impl IsA<ConstraintTarget> for TabView ### impl IsA<Widget> for TabView Auto Trait Implementations --- ### impl RefUnwindSafe for TabView ### impl !Send for TabView ### impl !Sync for TabView ### impl Unpin for TabView ### impl UnwindSafe for TabView Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::TabViewShortcuts === ``` pub struct TabViewShortcuts(/* private fields */); ``` Available on **crate feature `v1_2`** only.Implementations --- ### impl TabViewShortcuts #### pub const NONE: Self = _ #### pub const CONTROL_TAB: Self = _ #### pub const CONTROL_SHIFT_TAB: Self = _ #### pub const CONTROL_PAGE_UP: Self = _ #### pub const CONTROL_PAGE_DOWN: Self = _ #### pub const CONTROL_HOME: Self = _ #### pub const CONTROL_END: Self = _ #### pub const CONTROL_SHIFT_PAGE_UP: Self = _ #### pub const CONTROL_SHIFT_PAGE_DOWN: Self = _ #### pub const CONTROL_SHIFT_HOME: Self = _ #### pub const CONTROL_SHIFT_END: Self = _ #### pub const ALT_DIGITS: Self = _ #### pub const ALT_ZERO: Self = _ #### pub const ALL_SHORTCUTS: Self = _ ### impl TabViewShortcuts #### pub const fn empty() -> Self Get a flags value with all bits unset. #### pub const fn all() -> Self Get a flags value with all known bits set. #### pub const fn bits(&self) -> u32 Get the underlying bits value. The returned value is exactly the bits set in this flags value. #### pub const fn from_bits(bits: u32) -> Option<SelfConvert from a bits value. This method will return `None` if any unknown bits are set. #### pub const fn from_bits_truncate(bits: u32) -> Self Convert from a bits value, unsetting any unknown bits. #### pub const fn from_bits_retain(bits: u32) -> Self Convert from a bits value exactly. #### pub fn from_name(name: &str) -> Option<SelfGet a flags value with the bits of a flag with the given name set. This method will return `None` if `name` is empty or doesn’t correspond to any named flag. #### pub const fn is_empty(&self) -> bool Whether all bits in this flags value are unset. #### pub const fn is_all(&self) -> bool Whether all known bits in this flags value are set. #### pub const fn intersects(&self, other: Self) -> bool Whether any set bits in a source flags value are also set in a target flags value. #### pub const fn contains(&self, other: Self) -> bool Whether all set bits in a source flags value are also set in a target flags value. #### pub fn insert(&mut self, other: Self) The bitwise or (`|`) of the bits in two flags values. #### pub fn remove(&mut self, other: Self) The intersection of a source flags value with the complement of a target flags value (`&!`). This method is not equivalent to `self & !other` when `other` has unknown bits set. `remove` won’t truncate `other`, but the `!` operator will. #### pub fn toggle(&mut self, other: Self) The bitwise exclusive-or (`^`) of the bits in two flags values. #### pub fn set(&mut self, other: Self, value: bool) Call `insert` when `value` is `true` or `remove` when `value` is `false`. #### pub const fn intersection(self, other: Self) -> Self The bitwise and (`&`) of the bits in two flags values. #### pub const fn union(self, other: Self) -> Self The bitwise or (`|`) of the bits in two flags values. #### pub const fn difference(self, other: Self) -> Self The intersection of a source flags value with the complement of a target flags value (`&!`). This method is not equivalent to `self & !other` when `other` has unknown bits set. `difference` won’t truncate `other`, but the `!` operator will. #### pub const fn symmetric_difference(self, other: Self) -> Self The bitwise exclusive-or (`^`) of the bits in two flags values. #### pub const fn complement(self) -> Self The bitwise negation (`!`) of the bits in a flags value, truncating the result. ### impl TabViewShortcuts #### pub const fn iter(&self) -> Iter<TabViewShortcutsYield a set of contained flags values. Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value. #### pub const fn iter_names(&self) -> IterNames<TabViewShortcutsYield a set of contained named flags values. This method is like `iter`, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded. Trait Implementations --- ### impl Binary for TabViewShortcuts #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter.### impl BitAnd<TabViewShortcuts> for TabViewShortcuts #### fn bitand(self, other: Self) -> Self The bitwise and (`&`) of the bits in two flags values. #### type Output = TabViewShortcuts The resulting type after applying the `&` operator.### impl BitAndAssign<TabViewShortcuts> for TabViewShortcuts #### fn bitand_assign(&mut self, other: Self) The bitwise and (`&`) of the bits in two flags values. ### impl BitOr<TabViewShortcuts> for TabViewShortcuts #### fn bitor(self, other: TabViewShortcuts) -> Self The bitwise or (`|`) of the bits in two flags values. #### type Output = TabViewShortcuts The resulting type after applying the `|` operator.### impl BitOrAssign<TabViewShortcuts> for TabViewShortcuts #### fn bitor_assign(&mut self, other: Self) The bitwise or (`|`) of the bits in two flags values. ### impl BitXor<TabViewShortcuts> for TabViewShortcuts #### fn bitxor(self, other: Self) -> Self The bitwise exclusive-or (`^`) of the bits in two flags values. #### type Output = TabViewShortcuts The resulting type after applying the `^` operator.### impl BitXorAssign<TabViewShortcuts> for TabViewShortcuts #### fn bitxor_assign(&mut self, other: Self) The bitwise exclusive-or (`^`) of the bits in two flags values. ### impl Clone for TabViewShortcuts #### fn clone(&self) -> TabViewShortcuts Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T) The bitwise or (`|`) of the bits in each flags value. #### fn extend_one(&mut self, item: A) 🔬This is a nightly-only experimental API. (`extend_one`)Extends a collection with exactly one element.#### fn extend_reserve(&mut self, additional: usize) 🔬This is a nightly-only experimental API. (`extend_one`)Reserves capacity in a collection for the given number of additional elements. #### const FLAGS: &'static [Flag<TabViewShortcuts>] = _ The set of defined flags.#### type Bits = u32 The underlying bits type.#### fn bits(&self) -> u32 Get the underlying bits value. Convert from a bits value exactly.#### fn empty() -> Self Get a flags value with all bits unset.#### fn all() -> Self Get a flags value with all known bits set.#### fn from_bits(bits: Self::Bits) -> Option<SelfConvert from a bits value. Convert from a bits value, unsetting any unknown bits.#### fn from_name(name: &str) -> Option<SelfGet a flags value with the bits of a flag with the given name set. Whether all bits in this flags value are unset.#### fn is_all(&self) -> bool Whether all known bits in this flags value are set.#### fn intersects(&self, other: Self) -> boolwhere Self: Sized, Whether any set bits in a source flags value are also set in a target flags value.#### fn contains(&self, other: Self) -> boolwhere Self: Sized, Whether all set bits in a source flags value are also set in a target flags value.#### fn insert(&mut self, other: Self)where Self: Sized, The bitwise or (`|`) of the bits in two flags values.#### fn remove(&mut self, other: Self)where Self: Sized, The intersection of a source flags value with the complement of a target flags value (`&!`). Self: Sized, The bitwise exclusive-or (`^`) of the bits in two flags values.#### fn set(&mut self, other: Self, value: bool)where Self: Sized, Call [`Flags::insert`] when `value` is `true` or [`Flags::remove`] when `value` is `false`.#### fn intersection(self, other: Self) -> Self The bitwise and (`&`) of the bits in two flags values.#### fn union(self, other: Self) -> Self The bitwise or (`|`) of the bits in two flags values.#### fn difference(self, other: Self) -> Self The intersection of a source flags value with the complement of a target flags value (`&!`). The bitwise exclusive-or (`^`) of the bits in two flags values.#### fn complement(self) -> Self The bitwise negation (`!`) of the bits in a flags value, truncating the result.### impl From<TabViewShortcuts> for Value #### fn from(v: TabViewShortcuts) -> Self Converts to this type from the input type.### impl FromIterator<TabViewShortcuts> for TabViewShortcuts #### fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self The bitwise or (`|`) of the bits in each flags value. ### impl<'a> FromValue<'a> for TabViewShortcuts #### type Checker = GenericValueTypeChecker<TabViewShortcutsValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecFlags #### type SetValue = TabViewShortcuts Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecFlagsBuilder<'_, TabViewShortcuts#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for TabViewShortcuts #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### type Item = TabViewShortcuts The type of the elements being iterated over.#### type IntoIter = Iter<TabViewShortcutsWhich kind of iterator are we turning this into?#### fn into_iter(self) -> Self::IntoIter Creates an iterator from a value. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter.### impl Not for TabViewShortcuts #### fn not(self) -> Self The bitwise negation (`!`) of the bits in a flags value, truncating the result. #### type Output = TabViewShortcuts The resulting type after applying the `!` operator.### impl Octal for TabViewShortcuts #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter.### impl PartialEq<TabViewShortcuts> for TabViewShortcuts #### fn eq(&self, other: &TabViewShortcuts) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PublicFlags for TabViewShortcuts #### type Primitive = u32 The type of the underlying storage.#### type Internal = InternalBitFlags The type of the internal field on the generated flags type.### impl StaticType for TabViewShortcuts #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Sub<TabViewShortcuts> for TabViewShortcuts #### fn sub(self, other: Self) -> Self The intersection of a source flags value with the complement of a target flags value (`&!`). This method is not equivalent to `self & !other` when `other` has unknown bits set. `difference` won’t truncate `other`, but the `!` operator will. #### type Output = TabViewShortcuts The resulting type after applying the `-` operator.### impl SubAssign<TabViewShortcuts> for TabViewShortcuts #### fn sub_assign(&mut self, other: Self) The intersection of a source flags value with the complement of a target flags value (`&!`). This method is not equivalent to `self & !other` when `other` has unknown bits set. `difference` won’t truncate `other`, but the `!` operator will. ### impl ToValue for TabViewShortcuts #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter.### impl ValueType for TabViewShortcuts #### type Type = TabViewShortcuts Type to get the `Type` from. ### impl Eq for TabViewShortcuts ### impl StructuralEq for TabViewShortcuts ### impl StructuralPartialEq for TabViewShortcuts Auto Trait Implementations --- ### impl RefUnwindSafe for TabViewShortcuts ### impl Send for TabViewShortcuts ### impl Sync for TabViewShortcuts ### impl Unpin for TabViewShortcuts ### impl UnwindSafe for TabViewShortcuts Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct libadwaita::TimedAnimation === ``` #[repr(transparent)]pub struct TimedAnimation { /* private fields */ } ``` Implementations --- ### impl TimedAnimation #### pub fn new( widget: &impl IsA<Widget>, from: f64, to: f64, duration: u32, target: impl IsA<AnimationTarget> ) -> TimedAnimation #### pub fn builder() -> TimedAnimationBuilder Creates a new builder-pattern struct instance to construct `TimedAnimation` objects. This method returns an instance of `TimedAnimationBuilder` which can be used to create `TimedAnimation` objects. #### pub fn is_alternate(&self) -> bool #### pub fn duration(&self) -> u32 #### pub fn easing(&self) -> Easing #### pub fn repeat_count(&self) -> u32 #### pub fn is_reverse(&self) -> bool #### pub fn value_from(&self) -> f64 #### pub fn value_to(&self) -> f64 #### pub fn set_alternate(&self, alternate: bool) #### pub fn set_duration(&self, duration: u32) #### pub fn set_easing(&self, easing: Easing) #### pub fn set_repeat_count(&self, repeat_count: u32) #### pub fn set_reverse(&self, reverse: bool) #### pub fn set_value_from(&self, value: f64) #### pub fn set_value_to(&self, value: f64) #### pub fn connect_alternate_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_duration_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_easing_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_repeat_count_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_reverse_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_value_from_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_value_to_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for TimedAnimation #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = TimedAnimation Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, TimedAnimation#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for TimedAnimation #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Animation ### impl<OT: ObjectType> PartialEq<OT> for TimedAnimation #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for TimedAnimation #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for TimedAnimation ### impl IsA<Animation> for TimedAnimation Auto Trait Implementations --- ### impl RefUnwindSafe for TimedAnimation ### impl !Send for TimedAnimation ### impl !Sync for TimedAnimation ### impl Unpin for TimedAnimation ### impl UnwindSafe for TimedAnimation Blanket Implementations --- ### impl<O> AnimationExt for Owhere O: IsA<Animation>, #### fn follows_enable_animations_setting(&self) -> bool Available on **crate feature `v1_3`** only.#### fn state(&self) -> AnimationState #### fn target(&self) -> AnimationTarget #### fn value(&self) -> f64 #### fn widget(&self) -> Widget #### fn pause(&self) #### fn play(&self) #### fn reset(&self) #### fn resume(&self) #### fn set_follow_enable_animations_setting(&self, setting: bool) Available on **crate feature `v1_3`** only.#### fn set_target(&self, target: &impl IsA<AnimationTarget>) #### fn skip(&self) #### fn connect_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_follow_enable_animations_setting_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_3`** only.#### fn connect_state_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_target_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### fn connect_value_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Toast === ``` #[repr(transparent)]pub struct Toast { /* private fields */ } ``` Implementations --- ### impl Toast #### pub fn new(title: &str) -> Toast #### pub fn builder() -> ToastBuilder Creates a new builder-pattern struct instance to construct `Toast` objects. This method returns an instance of `ToastBuilder` which can be used to create `Toast` objects. #### pub fn dismiss(&self) #### pub fn action_name(&self) -> Option<GString#### pub fn action_target_value(&self) -> Option<Variant#### pub fn button_label(&self) -> Option<GString#### pub fn custom_title(&self) -> Option<WidgetAvailable on **crate feature `v1_2`** only.#### pub fn priority(&self) -> ToastPriority #### pub fn timeout(&self) -> u32 #### pub fn title(&self) -> Option<GString#### pub fn uses_markup(&self) -> bool Available on **crate feature `v1_4`** only.#### pub fn set_action_name(&self, action_name: Option<&str>) #### pub fn set_action_target_value(&self, action_target: Option<&Variant>) #### pub fn set_button_label(&self, button_label: Option<&str>) #### pub fn set_custom_title(&self, widget: Option<&impl IsA<Widget>>) Available on **crate feature `v1_2`** only.#### pub fn set_detailed_action_name(&self, detailed_action_name: Option<&str>) #### pub fn set_priority(&self, priority: ToastPriority) #### pub fn set_timeout(&self, timeout: u32) #### pub fn set_title(&self, title: &str) #### pub fn set_use_markup(&self, use_markup: bool) Available on **crate feature `v1_4`** only.#### pub fn connect_button_clicked<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### pub fn connect_dismissed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId #### pub fn connect_action_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_action_target_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_button_label_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_custom_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_2`** only.#### pub fn connect_priority_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.### impl Toast #### pub fn set_action_target(&self, target: Option<&impl ToVariant>) Trait Implementations --- ### impl Clone for Toast #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Toast Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Toast#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Toast #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for Toast #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Toast #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Toast Auto Trait Implementations --- ### impl RefUnwindSafe for Toast ### impl !Send for Toast ### impl !Sync for Toast ### impl Unpin for Toast ### impl UnwindSafe for Toast Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ToastOverlay === ``` #[repr(transparent)]pub struct ToastOverlay { /* private fields */ } ``` Implementations --- ### impl ToastOverlay #### pub fn new() -> ToastOverlay #### pub fn add_toast(&self, toast: Toast) #### pub fn child(&self) -> Option<Widget#### pub fn set_child(&self, child: Option<&impl IsA<Widget>>) #### pub fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for ToastOverlay #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ToastOverlay Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ToastOverlay#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ToastOverlay #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for ToastOverlay #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ToastOverlay #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ToastOverlay ### impl IsA<Accessible> for ToastOverlay ### impl IsA<Buildable> for ToastOverlay ### impl IsA<ConstraintTarget> for ToastOverlay ### impl IsA<Widget> for ToastOverlay Auto Trait Implementations --- ### impl RefUnwindSafe for ToastOverlay ### impl !Send for ToastOverlay ### impl !Sync for ToastOverlay ### impl Unpin for ToastOverlay ### impl UnwindSafe for ToastOverlay Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ToolbarView === ``` #[repr(transparent)]pub struct ToolbarView { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl ToolbarView #### pub fn new() -> ToolbarView #### pub fn builder() -> ToolbarViewBuilder Creates a new builder-pattern struct instance to construct `ToolbarView` objects. This method returns an instance of `ToolbarViewBuilder` which can be used to create `ToolbarView` objects. #### pub fn add_bottom_bar(&self, widget: &impl IsA<Widget>) #### pub fn add_top_bar(&self, widget: &impl IsA<Widget>) #### pub fn bottom_bar_height(&self) -> i32 #### pub fn bottom_bar_style(&self) -> ToolbarStyle #### pub fn content(&self) -> Option<Widget#### pub fn is_extend_content_to_bottom_edge(&self) -> bool #### pub fn is_extend_content_to_top_edge(&self) -> bool #### pub fn reveals_bottom_bars(&self) -> bool #### pub fn reveals_top_bars(&self) -> bool #### pub fn top_bar_height(&self) -> i32 #### pub fn top_bar_style(&self) -> ToolbarStyle #### pub fn remove(&self, widget: &impl IsA<Widget>) #### pub fn set_bottom_bar_style(&self, style: ToolbarStyle) #### pub fn set_content(&self, content: Option<&impl IsA<Widget>>) #### pub fn set_extend_content_to_bottom_edge(&self, extend: bool) #### pub fn set_extend_content_to_top_edge(&self, extend: bool) #### pub fn set_reveal_bottom_bars(&self, reveal: bool) #### pub fn set_reveal_top_bars(&self, reveal: bool) #### pub fn set_top_bar_style(&self, style: ToolbarStyle) #### pub fn connect_bottom_bar_height_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_bottom_bar_style_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_extend_content_to_bottom_edge_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_extend_content_to_top_edge_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_reveal_bottom_bars_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_reveal_top_bars_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_top_bar_height_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_top_bar_style_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for ToolbarView #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ToolbarView Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ToolbarView#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ToolbarView #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for ToolbarView #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ToolbarView #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ToolbarView ### impl IsA<Accessible> for ToolbarView ### impl IsA<Buildable> for ToolbarView ### impl IsA<ConstraintTarget> for ToolbarView ### impl IsA<Widget> for ToolbarView Auto Trait Implementations --- ### impl RefUnwindSafe for ToolbarView ### impl !Send for ToolbarView ### impl !Sync for ToolbarView ### impl Unpin for ToolbarView ### impl UnwindSafe for ToolbarView Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ViewStack === ``` #[repr(transparent)]pub struct ViewStack { /* private fields */ } ``` Implementations --- ### impl ViewStack #### pub fn new() -> ViewStack #### pub fn builder() -> ViewStackBuilder Creates a new builder-pattern struct instance to construct `ViewStack` objects. This method returns an instance of `ViewStackBuilder` which can be used to create `ViewStack` objects. #### pub fn add(&self, child: &impl IsA<Widget>) -> ViewStackPage #### pub fn add_named( &self, child: &impl IsA<Widget>, name: Option<&str> ) -> ViewStackPage #### pub fn add_titled( &self, child: &impl IsA<Widget>, name: Option<&str>, title: &str ) -> ViewStackPage #### pub fn add_titled_with_icon( &self, child: &impl IsA<Widget>, name: Option<&str>, title: &str, icon_name: &str ) -> ViewStackPage Available on **crate feature `v1_2`** only.#### pub fn child_by_name(&self, name: &str) -> Option<Widget#### pub fn is_hhomogeneous(&self) -> bool #### pub fn page(&self, child: &impl IsA<Widget>) -> ViewStackPage #### pub fn pages(&self) -> SelectionModel #### pub fn is_vhomogeneous(&self) -> bool #### pub fn visible_child(&self) -> Option<Widget#### pub fn visible_child_name(&self) -> Option<GString#### pub fn remove(&self, child: &impl IsA<Widget>) #### pub fn set_hhomogeneous(&self, hhomogeneous: bool) #### pub fn set_vhomogeneous(&self, vhomogeneous: bool) #### pub fn set_visible_child(&self, child: &impl IsA<Widget>) #### pub fn set_visible_child_name(&self, name: &str) #### pub fn connect_hhomogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_pages_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_vhomogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_visible_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_visible_child_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for ViewStack #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ViewStack Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ViewStack#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ViewStack #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for ViewStack #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ViewStack #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ViewStack ### impl IsA<Accessible> for ViewStack ### impl IsA<Buildable> for ViewStack ### impl IsA<ConstraintTarget> for ViewStack ### impl IsA<Widget> for ViewStack Auto Trait Implementations --- ### impl RefUnwindSafe for ViewStack ### impl !Send for ViewStack ### impl !Sync for ViewStack ### impl Unpin for ViewStack ### impl UnwindSafe for ViewStack Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ViewStackPage === ``` #[repr(transparent)]pub struct ViewStackPage { /* private fields */ } ``` Implementations --- ### impl ViewStackPage #### pub fn badge_number(&self) -> u32 #### pub fn child(&self) -> Widget #### pub fn icon_name(&self) -> Option<GString#### pub fn name(&self) -> Option<GString#### pub fn needs_attention(&self) -> bool #### pub fn title(&self) -> Option<GString#### pub fn uses_underline(&self) -> bool #### pub fn is_visible(&self) -> bool #### pub fn set_badge_number(&self, badge_number: u32) #### pub fn set_icon_name(&self, icon_name: Option<&str>) #### pub fn set_name(&self, name: Option<&str>) #### pub fn set_needs_attention(&self, needs_attention: bool) #### pub fn set_title(&self, title: Option<&str>) #### pub fn set_use_underline(&self, use_underline: bool) #### pub fn set_visible(&self, visible: bool) #### pub fn connect_badge_number_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_needs_attention_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_visible_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for ViewStackPage #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ViewStackPage Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ViewStackPage#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ViewStackPage #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for ViewStackPage #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ViewStackPage #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ViewStackPage ### impl IsA<Accessible> for ViewStackPage Auto Trait Implementations --- ### impl RefUnwindSafe for ViewStackPage ### impl !Send for ViewStackPage ### impl !Sync for ViewStackPage ### impl Unpin for ViewStackPage ### impl UnwindSafe for ViewStackPage Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ViewStackPages === ``` #[repr(transparent)]pub struct ViewStackPages { /* private fields */ } ``` Available on **crate feature `v1_4`** only.Implementations --- ### impl ViewStackPages #### pub fn selected_page(&self) -> Option<ViewStackPage#### pub fn set_selected_page(&self, page: &ViewStackPage) #### pub fn connect_selected_page_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for ViewStackPages #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ViewStackPages Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ViewStackPages#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ViewStackPages #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Object ### impl<OT: ObjectType> PartialEq<OT> for ViewStackPages #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ViewStackPages #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ViewStackPages ### impl IsA<ListModel> for ViewStackPages ### impl IsA<SelectionModel> for ViewStackPages Auto Trait Implementations --- ### impl RefUnwindSafe for ViewStackPages ### impl !Send for ViewStackPages ### impl !Sync for ViewStackPages ### impl Unpin for ViewStackPages ### impl UnwindSafe for ViewStackPages Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> ListModelExt for Owhere O: IsA<ListModel>, #### fn item_type(&self) -> Type #### fn n_items(&self) -> u32 #### fn item(&self, position: u32) -> Option<Object#### fn items_changed(&self, position: u32, removed: u32, added: u32) #### fn connect_items_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, u32, u32, u32) + 'static, ### impl<T> ListModelExtManual for Twhere T: IsA<ListModel>, #### fn snapshot(&self) -> Vec<Object, GlobalGet an immutable snapshot of the container inside the `ListModel`. Any modification done to the returned container `Vec` will not be reflected on the `ListModel`.#### fn iter<LT>(&self) -> ListModelIter<'_, LT>where LT: IsA<Object>, If `T::static_type().is_a(self.item_type())` then it returns an iterator over the `ListModel` elements, else the types are not compatible and returns an `Err(...)`. T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<O> SelectionModelExt for Owhere O: IsA<SelectionModel>, #### fn selection(&self) -> Bitset #### fn selection_in_range(&self, position: u32, n_items: u32) -> Bitset #### fn is_selected(&self, position: u32) -> bool #### fn select_all(&self) -> bool #### fn select_item(&self, position: u32, unselect_rest: bool) -> bool #### fn select_range(&self, position: u32, n_items: u32, unselect_rest: bool) -> bool #### fn selection_changed(&self, position: u32, n_items: u32) #### fn set_selection(&self, selected: &Bitset, mask: &Bitset) -> bool #### fn unselect_all(&self) -> bool #### fn unselect_item(&self, position: u32) -> bool #### fn unselect_range(&self, position: u32, n_items: u32) -> bool #### fn connect_selection_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, u32, u32) + 'static, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ViewSwitcher === ``` #[repr(transparent)]pub struct ViewSwitcher { /* private fields */ } ``` Implementations --- ### impl ViewSwitcher #### pub fn new() -> ViewSwitcher #### pub fn builder() -> ViewSwitcherBuilder Creates a new builder-pattern struct instance to construct `ViewSwitcher` objects. This method returns an instance of `ViewSwitcherBuilder` which can be used to create `ViewSwitcher` objects. #### pub fn policy(&self) -> ViewSwitcherPolicy #### pub fn stack(&self) -> Option<ViewStack#### pub fn set_policy(&self, policy: ViewSwitcherPolicy) #### pub fn set_stack(&self, stack: Option<&ViewStack>) #### pub fn connect_policy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_stack_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for ViewSwitcher #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ViewSwitcher Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ViewSwitcher#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ViewSwitcher #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for ViewSwitcher #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ViewSwitcher #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ViewSwitcher ### impl IsA<Accessible> for ViewSwitcher ### impl IsA<Buildable> for ViewSwitcher ### impl IsA<ConstraintTarget> for ViewSwitcher ### impl IsA<Widget> for ViewSwitcher Auto Trait Implementations --- ### impl RefUnwindSafe for ViewSwitcher ### impl !Send for ViewSwitcher ### impl !Sync for ViewSwitcher ### impl Unpin for ViewSwitcher ### impl UnwindSafe for ViewSwitcher Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ViewSwitcherBar === ``` #[repr(transparent)]pub struct ViewSwitcherBar { /* private fields */ } ``` Implementations --- ### impl ViewSwitcherBar #### pub fn new() -> ViewSwitcherBar #### pub fn builder() -> ViewSwitcherBarBuilder Creates a new builder-pattern struct instance to construct `ViewSwitcherBar` objects. This method returns an instance of `ViewSwitcherBarBuilder` which can be used to create `ViewSwitcherBar` objects. #### pub fn reveals(&self) -> bool #### pub fn stack(&self) -> Option<ViewStack#### pub fn set_reveal(&self, reveal: bool) #### pub fn set_stack(&self, stack: Option<&ViewStack>) #### pub fn connect_reveal_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_stack_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for ViewSwitcherBar #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ViewSwitcherBar Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ViewSwitcherBar#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ViewSwitcherBar #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for ViewSwitcherBar #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ViewSwitcherBar #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ViewSwitcherBar ### impl IsA<Accessible> for ViewSwitcherBar ### impl IsA<Buildable> for ViewSwitcherBar ### impl IsA<ConstraintTarget> for ViewSwitcherBar ### impl IsA<Widget> for ViewSwitcherBar Auto Trait Implementations --- ### impl RefUnwindSafe for ViewSwitcherBar ### impl !Send for ViewSwitcherBar ### impl !Sync for ViewSwitcherBar ### impl Unpin for ViewSwitcherBar ### impl UnwindSafe for ViewSwitcherBar Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::ViewSwitcherTitle === ``` #[repr(transparent)]pub struct ViewSwitcherTitle { /* private fields */ } ``` 👎Deprecated: Since 1.4Implementations --- ### impl ViewSwitcherTitle #### pub fn new() -> ViewSwitcherTitle 👎Deprecated: Since 1.4#### pub fn builder() -> ViewSwitcherTitleBuilder 👎Deprecated: Since 1.4Creates a new builder-pattern struct instance to construct `ViewSwitcherTitle` objects. This method returns an instance of `ViewSwitcherTitleBuilder` which can be used to create `ViewSwitcherTitle` objects. #### pub fn stack(&self) -> Option<ViewStack👎Deprecated: Since 1.4#### pub fn subtitle(&self) -> GString 👎Deprecated: Since 1.4#### pub fn title(&self) -> GString 👎Deprecated: Since 1.4#### pub fn is_title_visible(&self) -> bool 👎Deprecated: Since 1.4#### pub fn is_view_switcher_enabled(&self) -> bool 👎Deprecated: Since 1.4#### pub fn set_stack(&self, stack: Option<&ViewStack>) 👎Deprecated: Since 1.4#### pub fn set_subtitle(&self, subtitle: &str) 👎Deprecated: Since 1.4#### pub fn set_title(&self, title: &str) 👎Deprecated: Since 1.4#### pub fn set_view_switcher_enabled(&self, enabled: bool) 👎Deprecated: Since 1.4#### pub fn connect_stack_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_title_visible_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4#### pub fn connect_view_switcher_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for ViewSwitcherTitle #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = ViewSwitcherTitle Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ViewSwitcherTitle#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ViewSwitcherTitle #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for ViewSwitcherTitle #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for ViewSwitcherTitle #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for ViewSwitcherTitle ### impl IsA<Accessible> for ViewSwitcherTitle ### impl IsA<Buildable> for ViewSwitcherTitle ### impl IsA<ConstraintTarget> for ViewSwitcherTitle ### impl IsA<Widget> for ViewSwitcherTitle Auto Trait Implementations --- ### impl RefUnwindSafe for ViewSwitcherTitle ### impl !Send for ViewSwitcherTitle ### impl !Sync for ViewSwitcherTitle ### impl Unpin for ViewSwitcherTitle ### impl UnwindSafe for ViewSwitcherTitle Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Struct libadwaita::Window === ``` #[repr(transparent)]pub struct Window { /* private fields */ } ``` Implementations --- ### impl Window #### pub const NONE: Option<&'static Window> = None #### pub fn new() -> Window #### pub fn builder() -> WindowBuilder Creates a new builder-pattern struct instance to construct `Window` objects. This method returns an instance of `WindowBuilder` which can be used to create `Window` objects. Trait Implementations --- ### impl Clone for Window #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = Window Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Window#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Window #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn class_init(class: &mut Class<Self>) Override the virtual methods of this class for the given subclass and do other class initialization. Instance specific initialization. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Window ### impl<OT: ObjectType> PartialEq<OT> for Window #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for Window #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for Window ### impl IsA<Accessible> for Window ### impl IsA<Buildable> for Window ### impl IsA<ConstraintTarget> for Window ### impl IsA<Native> for Window ### impl IsA<Root> for Window ### impl IsA<ShortcutManager> for Window ### impl IsA<Widget> for Window ### impl IsA<Window> for AboutWindow Available on **crate feature `v1_2`** only.### impl IsA<Window> for PreferencesWindow ### impl IsA<Window> for Window Auto Trait Implementations --- ### impl RefUnwindSafe for Window ### impl !Send for Window ### impl !Sync for Window ### impl Unpin for Window ### impl UnwindSafe for Window Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<O> AdwWindowExt for Owhere O: IsA<Window>, #### fn add_breakpoint(&self, breakpoint: Breakpoint) Available on **crate feature `v1_4`** only.#### fn content(&self) -> Option<Widget#### fn current_breakpoint(&self) -> Option<BreakpointAvailable on **crate feature `v1_4`** only.#### fn set_content(&self, content: Option<&impl IsA<Widget>>) #### fn connect_content_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Available on **crate feature `v1_4`** only.### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<O> GtkWindowExt for Owhere O: IsA<Window>, #### fn close(&self) #### fn destroy(&self) #### fn fullscreen(&self) #### fn fullscreen_on_monitor(&self, monitor: &Monitor) #### fn application(&self) -> Option<Application#### fn child(&self) -> Option<Widget#### fn is_decorated(&self) -> bool #### fn default_size(&self) -> (i32, i32) #### fn default_widget(&self) -> Option<Widget#### fn is_deletable(&self) -> bool #### fn must_destroy_with_parent(&self) -> bool #### fn focus(&self) -> Option<Widget#### fn gets_focus_visible(&self) -> bool #### fn group(&self) -> WindowGroup #### fn hides_on_close(&self) -> bool #### fn icon_name(&self) -> Option<GString#### fn is_mnemonics_visible(&self) -> bool #### fn is_modal(&self) -> bool #### fn is_resizable(&self) -> bool #### fn title(&self) -> Option<GString#### fn titlebar(&self) -> Option<Widget#### fn transient_for(&self) -> Option<Window#### fn has_group(&self) -> bool #### fn is_active(&self) -> bool #### fn is_fullscreen(&self) -> bool #### fn is_maximized(&self) -> bool #### fn maximize(&self) #### fn minimize(&self) #### fn present(&self) #### fn present_with_time(&self, timestamp: u32) #### fn set_application(&self, application: Option<&impl IsA<Application>>) #### fn set_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_decorated(&self, setting: bool) #### fn set_default_size(&self, width: i32, height: i32) #### fn set_default_widget(&self, default_widget: Option<&impl IsA<Widget>>) #### fn set_deletable(&self, setting: bool) #### fn set_destroy_with_parent(&self, setting: bool) #### fn set_display(&self, display: &impl IsA<Display>) #### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) #### fn set_focus_visible(&self, setting: bool) #### fn set_hide_on_close(&self, setting: bool) #### fn set_icon_name(&self, name: Option<&str>) #### fn set_mnemonics_visible(&self, setting: bool) #### fn set_modal(&self, modal: bool) #### fn set_resizable(&self, resizable: bool) #### fn set_startup_id(&self, startup_id: &str) #### fn set_title(&self, title: Option<&str>) #### fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>) #### fn set_transient_for(&self, parent: Option<&impl IsA<Window>>) #### fn unfullscreen(&self) #### fn unmaximize(&self) #### fn unminimize(&self) #### fn default_height(&self) -> i32 #### fn set_default_height(&self, default_height: i32) #### fn default_width(&self) -> i32 #### fn set_default_width(&self, default_width: i32) #### fn focus_widget(&self) -> Option<Widget#### fn set_focus_widget<P>(&self, focus_widget: Option<&P>)where P: IsA<Widget>, #### fn is_fullscreened(&self) -> bool #### fn set_fullscreened(&self, fullscreened: bool) #### fn set_maximized(&self, maximized: bool) #### fn connect_activate_default<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_default(&self) #### fn connect_activate_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn emit_activate_focus(&self) #### fn connect_close_request<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) -> Propagation + 'static, #### fn connect_enable_debugging<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> bool + 'static, #### fn emit_enable_debugging(&self, toggle: bool) -> bool #### fn connect_keys_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_application_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_child_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_decorated_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_height_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_default_width_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_deletable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_destroy_with_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_display_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_widget_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_fullscreened_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hide_on_close_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_icon_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_is_active_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_maximized_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonics_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_modal_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_resizable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_startup_id_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_title_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_transient_for_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<O> NativeExt for Owhere O: IsA<Native>, #### fn renderer(&self) -> Renderer #### fn surface(&self) -> Surface #### fn surface_transform(&self) -> (f64, f64) #### fn realize(&self) #### fn unrealize(&self) ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<O> RootExt for Owhere O: IsA<Root>, #### fn display(&self) -> Display #### fn focus(&self) -> Option<Widget#### fn set_focus(&self, focus: Option<&impl IsA<Widget>>) ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, ### impl<O> ShortcutManagerExt for Owhere O: IsA<ShortcutManager>, Struct libadwaita::WindowTitle === ``` #[repr(transparent)]pub struct WindowTitle { /* private fields */ } ``` Implementations --- ### impl WindowTitle #### pub fn new(title: &str, subtitle: &str) -> WindowTitle ##### Examples found in repository? examples/hello-world.rs (line 42) ``` 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 ``` ``` &varrfn main() { let application = Application::builder() .application_id("com.example.FirstAdwaitaApp") .build(); application.connect_startup(|_| { adw::init().unwrap(); }); application.connect_activate(|app| { // ActionRows are only available in Adwaita let row = ActionRow::builder() .activatable(true) .selectable(false) .title("Click me") .build(); row.connect_activated(|_| { eprintln!("Clicked!"); }); let list = ListBox::builder() .margin_top(32) .margin_end(32) .margin_bottom(32) .margin_start(32) // the content class makes the list look nicer .css_classes(vec![String::from("content")]) .build(); list.append(&row); // Combine the content in a box let content = Box::new(Orientation::Vertical, 0); // Adwaitas' ApplicationWindow does not include a HeaderBar content.append( &HeaderBar::builder() .title_widget(&adw::WindowTitle::new("First App", "")) .build(), ); content.append(&list); let window = ApplicationWindow::builder() .application(app) .default_width(350) // add content to window .content(&content) .build(); window.show(); }); application.run(); } ``` #### pub fn builder() -> WindowTitleBuilder Creates a new builder-pattern struct instance to construct `WindowTitle` objects. This method returns an instance of `WindowTitleBuilder` which can be used to create `WindowTitle` objects. #### pub fn subtitle(&self) -> GString #### pub fn title(&self) -> GString #### pub fn set_subtitle(&self, subtitle: &str) #### pub fn set_title(&self, title: &str) #### pub fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId #### pub fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId Trait Implementations --- ### impl Clone for WindowTitle #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### type ParamSpec = ParamSpecObject #### type SetValue = WindowTitle Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, WindowTitle#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for WindowTitle #### fn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Self) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### type Parent = Widget ### impl<OT: ObjectType> PartialEq<OT> for WindowTitle #### fn eq(&self, other: &OT) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<OT: ObjectType> PartialOrd<OT> for WindowTitle #### fn partial_cmp(&self, other: &OT) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl Eq for WindowTitle ### impl IsA<Accessible> for WindowTitle ### impl IsA<Buildable> for WindowTitle ### impl IsA<ConstraintTarget> for WindowTitle ### impl IsA<Widget> for WindowTitle Auto Trait Implementations --- ### impl RefUnwindSafe for WindowTitle ### impl !Send for WindowTitle ### impl !Sync for WindowTitle ### impl Unpin for WindowTitle ### impl UnwindSafe for WindowTitle Blanket Implementations --- ### impl<O> AccessibleExt for Owhere O: IsA<Accessible>, #### fn accessible_role(&self) -> AccessibleRole #### fn reset_property(&self, property: AccessibleProperty) #### fn reset_relation(&self, relation: AccessibleRelation) #### fn reset_state(&self, state: AccessibleState) #### fn set_accessible_role(&self, accessible_role: AccessibleRole) #### fn connect_accessible_role_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> AccessibleExtManual for Owhere O: IsA<Accessible>, #### fn update_property(&self, properties: &[Property<'_>]) #### fn update_relation(&self, relations: &[Relation<'_>]) #### fn update_state(&self, states: &[State]) ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. O: IsA<Buildable>, #### fn buildable_id(&self) -> Option<GString### impl<T> Cast for Twhere T: ObjectType, #### fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>, Upcasts an object to a superclass or interface `T`. T: ObjectType, Self: IsA<T>, Upcasts an object to a reference of its superclass or interface `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a subclass or interface implementor `T`. T: ObjectType, Self: MayDowncastTo<T>, Tries to downcast to a reference of its subclass or interface implementor `T`. T: ObjectType, Tries to cast to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `upcast` will do many checks at compile-time already. `downcast` will perform the same checks at runtime as `dynamic_cast`, but will also ensure some amount of compile-time safety. T: ObjectType, Tries to cast to reference to an object of type `T`. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while `downcast` and `upcast` will do many checks at compile-time already. T: ObjectType, Casts to `T` unconditionally. T: ObjectType, Casts to `&T` unconditionally. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec(_: *constGList, _: usize) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGPtrArray, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *constGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( _: *constGSList, _: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGList, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGPtrArray, num: usize ) -> Vec<T, Global### impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_container_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global#### unsafe fn from_glib_full_num_as_vec( ptr: *mutGSList, num: usize ) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *constGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(_: *constGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(_: *constGSList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGList) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGPtrArray) -> Vec<T, Global### impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mutGSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>, #### unsafe fn from_glib_none_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_container_as_vec(ptr: *mutGSList) -> Vec<T, Global#### unsafe fn from_glib_full_as_vec(ptr: *mutGSList) -> Vec<T, Global### impl<O> GObjectPropertyExpressionExt for Owhere O: IsA<Object>, #### fn property_expression(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property.#### fn property_expression_weak(&self, property_name: &str) -> PropertyExpression Create an expression looking up an object’s property with a weak reference.#### fn this_expression(property_name: &str) -> PropertyExpression Create an expression looking up a property in the bound `this` object.### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs, #### fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, #### fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>, ### impl<T> ObjectExt for Twhere T: ObjectType, #### fn is<U>(&self) -> boolwhere U: StaticType, Returns `true` if the object is an instance of (can be cast to) `T`.#### fn type_(&self) -> Type Returns the type of the object.#### fn object_class(&self) -> &Class<ObjectReturns the `ObjectClass` of the object. T: IsClass, Returns the class of the object.#### fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass, Returns the class of the object in the given type `T`. U: IsInterface, Returns the interface `T` of the object. Sets the property `property_name` of the object to value `value`. Sets the property `property_name` of the object to value `value`. Sets multiple properties of the object at once. Sets multiple properties of the object at once. V: for<'b> FromValue<'b> + 'static, Gets the property `property_name` of the object and cast it to the type V. Gets the property `property_name` of the object. Check if the object has a property `property_name` of the given `type_`. Freeze all property notifications until the return guard object is dropped. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. QD: 'static, Set arbitrary data on this object with the given `key`. QD: 'static, Return previously set arbitrary data of this object with the given `key`. QD: 'static, Retrieve previously set arbitrary data of this object with the given `key`. Block a given signal handler. Unblock a given signal handler.#### fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>) Stop emission of the currently emitted signal.#### fn stop_signal_emission_by_name(&self, signal_name: &str) Stop emission of the currently emitted signal by the (possibly detailed) signal name.#### fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>, Connect to the signal `signal_id` on this object. &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_name` on this object. &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId Connect a closure to the signal `signal_id` on this object. Limits the lifetime of `closure` to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to `invoke_with_values`, or `invoke` when using Rust closures.#### fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id. R: TryFromClosureReturnValue, Emit signal by its name. &self, signal_name: &str, args: &[Value] ) -> Option<ValueEmit signal by its name. &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by its name with details. &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by its name with details. &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue, Emit signal by signal id with details. &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<ValueEmit signal by signal id with details. Disconnect a previously connected signal handler.#### fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static, Connect to the `notify` signal of the object. F: Fn(&T, &ParamSpec) + 'static, Connect to the `notify` signal of the object. &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec), Connect to the `notify` signal of the object. Notify that the given property has changed its value. Notify that the given property has changed its value. F: FnOnce() + Send + 'static, Add a callback to be notified when the Object is disposed.#### fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static, Add a callback to be notified when the Object is disposed. &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType, Bind property `source_property` on this object to the `target_property` on the `target` object. Returns the strong reference count of this object.#### unsafe fn run_dispose(&self) Runs the dispose mechanism of the object. T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. T: TransparentPtrType, #### type GlibType = <T as GlibPtrDefault>::GlibType ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<O> WidgetExt for Owhere O: IsA<Widget>, #### fn action_set_enabled(&self, action_name: &str, enabled: bool) #### fn activate(&self) -> bool #### fn activate_action( &self, name: &str, args: Option<&Variant> ) -> Result<(), BoolError#### fn activate_default(&self) #### fn add_controller(&self, controller: impl IsA<EventController>) #### fn add_css_class(&self, css_class: &str) #### fn add_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn allocate( &self, width: i32, height: i32, baseline: i32, transform: Option<Transform> ) #### fn child_focus(&self, direction: DirectionType) -> bool #### fn compute_bounds(&self, target: &impl IsA<Widget>) -> Option<Rect#### fn compute_expand(&self, orientation: Orientation) -> bool #### fn compute_point( &self, target: &impl IsA<Widget>, point: &Point ) -> Option<Point#### fn compute_transform(&self, target: &impl IsA<Widget>) -> Option<Matrix#### fn contains(&self, x: f64, y: f64) -> bool #### fn create_pango_context(&self) -> Context #### fn create_pango_layout(&self, text: Option<&str>) -> Layout #### fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32 ) -> bool #### fn error_bell(&self) #### fn allocated_baseline(&self) -> i32 #### fn allocated_height(&self) -> i32 #### fn allocated_width(&self) -> i32 #### fn allocation(&self) -> Rectangle #### fn ancestor(&self, widget_type: Type) -> Option<Widget#### fn can_focus(&self) -> bool #### fn can_target(&self) -> bool #### fn is_child_visible(&self) -> bool #### fn clipboard(&self) -> Clipboard #### fn css_classes(&self) -> Vec<GString, Global#### fn css_name(&self) -> GString #### fn cursor(&self) -> Option<Cursor#### fn direction(&self) -> TextDirection #### fn display(&self) -> Display #### fn first_child(&self) -> Option<Widget#### fn focus_child(&self) -> Option<Widget#### fn gets_focus_on_click(&self) -> bool #### fn is_focusable(&self) -> bool #### fn font_map(&self) -> Option<FontMap#### fn font_options(&self) -> Option<FontOptions#### fn frame_clock(&self) -> Option<FrameClock#### fn halign(&self) -> Align #### fn has_tooltip(&self) -> bool #### fn height(&self) -> i32 #### fn hexpands(&self) -> bool #### fn is_hexpand_set(&self) -> bool #### fn last_child(&self) -> Option<Widget#### fn layout_manager(&self) -> Option<LayoutManager#### fn is_mapped(&self) -> bool #### fn margin_bottom(&self) -> i32 #### fn margin_end(&self) -> i32 #### fn margin_start(&self) -> i32 #### fn margin_top(&self) -> i32 #### fn widget_name(&self) -> GString #### fn native(&self) -> Option<Native#### fn next_sibling(&self) -> Option<Widget#### fn opacity(&self) -> f64 #### fn overflow(&self) -> Overflow #### fn pango_context(&self) -> Context #### fn parent(&self) -> Option<Widget#### fn preferred_size(&self) -> (Requisition, Requisition) #### fn prev_sibling(&self) -> Option<Widget#### fn primary_clipboard(&self) -> Clipboard #### fn is_realized(&self) -> bool #### fn receives_default(&self) -> bool #### fn request_mode(&self) -> SizeRequestMode #### fn root(&self) -> Option<Root#### fn scale_factor(&self) -> i32 #### fn get_sensitive(&self) -> bool #### fn settings(&self) -> Settings #### fn size(&self, orientation: Orientation) -> i32 #### fn size_request(&self) -> (i32, i32) #### fn state_flags(&self) -> StateFlags #### fn style_context(&self) -> StyleContext #### fn tooltip_markup(&self) -> Option<GString#### fn tooltip_text(&self) -> Option<GString#### fn valign(&self) -> Align #### fn vexpands(&self) -> bool #### fn is_vexpand_set(&self) -> bool #### fn get_visible(&self) -> bool #### fn width(&self) -> i32 #### fn grab_focus(&self) -> bool #### fn has_css_class(&self, css_class: &str) -> bool #### fn has_default(&self) -> bool #### fn has_focus(&self) -> bool #### fn has_visible_focus(&self) -> bool #### fn hide(&self) #### fn in_destruction(&self) -> bool #### fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>) #### fn insert_after( &self, parent: &impl IsA<Widget>, previous_sibling: Option<&impl IsA<Widget>> ) #### fn insert_before( &self, parent: &impl IsA<Widget>, next_sibling: Option<&impl IsA<Widget>> ) #### fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool #### fn is_drawable(&self) -> bool #### fn is_focus(&self) -> bool #### fn is_sensitive(&self) -> bool #### fn is_visible(&self) -> bool #### fn keynav_failed(&self, direction: DirectionType) -> bool #### fn list_mnemonic_labels(&self) -> Vec<Widget, Global#### fn map(&self) #### fn measure( &self, orientation: Orientation, for_size: i32 ) -> (i32, i32, i32, i32) #### fn mnemonic_activate(&self, group_cycling: bool) -> bool #### fn observe_children(&self) -> ListModel #### fn observe_controllers(&self) -> ListModel #### fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget#### fn queue_allocate(&self) #### fn queue_draw(&self) #### fn queue_resize(&self) #### fn realize(&self) #### fn remove_controller(&self, controller: &impl IsA<EventController>) #### fn remove_css_class(&self, css_class: &str) #### fn remove_mnemonic_label(&self, label: &impl IsA<Widget>) #### fn set_can_focus(&self, can_focus: bool) #### fn set_can_target(&self, can_target: bool) #### fn set_child_visible(&self, child_visible: bool) #### fn set_css_classes(&self, classes: &[&str]) #### fn set_cursor(&self, cursor: Option<&Cursor>) #### fn set_cursor_from_name(&self, name: Option<&str>) #### fn set_direction(&self, dir: TextDirection) #### fn set_focus_child(&self, child: Option<&impl IsA<Widget>>) #### fn set_focus_on_click(&self, focus_on_click: bool) #### fn set_focusable(&self, focusable: bool) #### fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>) #### fn set_font_options(&self, options: Option<&FontOptions>) #### fn set_halign(&self, align: Align) #### fn set_has_tooltip(&self, has_tooltip: bool) #### fn set_hexpand(&self, expand: bool) #### fn set_hexpand_set(&self, set: bool) #### fn set_layout_manager(&self, layout_manager: Option<impl IsA<LayoutManager>>) #### fn set_margin_bottom(&self, margin: i32) #### fn set_margin_end(&self, margin: i32) #### fn set_margin_start(&self, margin: i32) #### fn set_margin_top(&self, margin: i32) #### fn set_widget_name(&self, name: &str) #### fn set_opacity(&self, opacity: f64) #### fn set_overflow(&self, overflow: Overflow) #### fn set_parent(&self, parent: &impl IsA<Widget>) #### fn set_receives_default(&self, receives_default: bool) #### fn set_sensitive(&self, sensitive: bool) #### fn set_size_request(&self, width: i32, height: i32) #### fn set_state_flags(&self, flags: StateFlags, clear: bool) #### fn set_tooltip_markup(&self, markup: Option<&str>) #### fn set_tooltip_text(&self, text: Option<&str>) #### fn set_valign(&self, align: Align) #### fn set_vexpand(&self, expand: bool) #### fn set_vexpand_set(&self, set: bool) #### fn set_visible(&self, visible: bool) #### fn should_layout(&self) -> bool #### fn show(&self) #### fn size_allocate(&self, allocation: &Rectangle, baseline: i32) #### fn snapshot_child( &self, child: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot> ) #### fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: f64, src_y: f64 ) -> Option<(f64, f64)#### fn trigger_tooltip_query(&self) #### fn unmap(&self) #### fn unparent(&self) #### fn unrealize(&self) #### fn unset_state_flags(&self, flags: StateFlags) #### fn height_request(&self) -> i32 #### fn set_height_request(&self, height_request: i32) #### fn width_request(&self) -> i32 #### fn set_width_request(&self, width_request: i32) #### fn connect_destroy<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, TextDirection) + 'static, #### fn connect_hide<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) -> Propagation + 'static, #### fn connect_map<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, bool) -> Propagation + 'static, #### fn connect_move_focus<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, DirectionType) + 'static, #### fn emit_move_focus(&self, direction: DirectionType) #### fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static, #### fn connect_realize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_show<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, StateFlags) + 'static, #### fn connect_unmap<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_unrealize<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_can_target_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_css_classes_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_cursor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_focusable_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_halign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_focus_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_layout_manager_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_end_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_margin_top_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_opacity_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_overflow_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_root_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_sensitive_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_valign_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_visible_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, #### fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self) + 'static, ### impl<O> WidgetExtManual for Owhere O: IsA<Widget>, #### fn add_tick_callback<P>(&self, callback: P) -> TickCallbackIdwhere P: Fn(&Self, &FrameClock) -> ControlFlow + 'static, ### impl<O> ConstraintTargetExt for Owhere O: IsA<ConstraintTarget>, ### impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static, ### impl<Super, Sub> MayDowncastTo<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>, Enum libadwaita::AnimationState === ``` #[non_exhaustive]pub enum AnimationState { Idle, Paused, Playing, Finished, } ``` Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Idle ### Paused ### Playing ### Finished Trait Implementations --- ### impl Clone for AnimationState #### fn clone(&self) -> AnimationState Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: AnimationState) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for AnimationState #### type Checker = GenericValueTypeChecker<AnimationStateValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = AnimationState Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: AnimationState) -> ParamSpecEnumBuilder<'_, AnimationState#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for AnimationState #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &AnimationState) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &AnimationState) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<AnimationState> for AnimationState #### fn partial_cmp(&self, other: &AnimationState) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for AnimationState #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = AnimationState Type to get the `Type` from. ### impl Eq for AnimationState ### impl StructuralEq for AnimationState ### impl StructuralPartialEq for AnimationState Auto Trait Implementations --- ### impl RefUnwindSafe for AnimationState ### impl Send for AnimationState ### impl Sync for AnimationState ### impl Unpin for AnimationState ### impl UnwindSafe for AnimationState Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::BreakpointConditionLengthType === ``` #[non_exhaustive]pub enum BreakpointConditionLengthType { MinWidth, MaxWidth, MinHeight, MaxHeight, } ``` Available on **crate feature `v1_4`** only.Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### MinWidth ### MaxWidth ### MinHeight ### MaxHeight Trait Implementations --- ### impl Clone for BreakpointConditionLengthType #### fn clone(&self) -> BreakpointConditionLengthType Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: BreakpointConditionLengthType) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for BreakpointConditionLengthType #### type Checker = GenericValueTypeChecker<BreakpointConditionLengthTypeValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = BreakpointConditionLengthType Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: BreakpointConditionLengthType) -> ParamSpecEnumBuilder<'_, BreakpointConditionLengthType#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for BreakpointConditionLengthType #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &BreakpointConditionLengthType) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &BreakpointConditionLengthType) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<BreakpointConditionLengthType> for BreakpointConditionLengthType #### fn partial_cmp(&self, other: &BreakpointConditionLengthType) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for BreakpointConditionLengthType #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = BreakpointConditionLengthType Type to get the `Type` from. ### impl Eq for BreakpointConditionLengthType ### impl StructuralEq for BreakpointConditionLengthType ### impl StructuralPartialEq for BreakpointConditionLengthType Auto Trait Implementations --- ### impl RefUnwindSafe for BreakpointConditionLengthType ### impl Send for BreakpointConditionLengthType ### impl Sync for BreakpointConditionLengthType ### impl Unpin for BreakpointConditionLengthType ### impl UnwindSafe for BreakpointConditionLengthType Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::BreakpointConditionRatioType === ``` #[non_exhaustive]pub enum BreakpointConditionRatioType { MinAspectRatio, MaxAspectRatio, } ``` Available on **crate feature `v1_4`** only.Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### MinAspectRatio ### MaxAspectRatio Trait Implementations --- ### impl Clone for BreakpointConditionRatioType #### fn clone(&self) -> BreakpointConditionRatioType Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: BreakpointConditionRatioType) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for BreakpointConditionRatioType #### type Checker = GenericValueTypeChecker<BreakpointConditionRatioTypeValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = BreakpointConditionRatioType Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: BreakpointConditionRatioType) -> ParamSpecEnumBuilder<'_, BreakpointConditionRatioType#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for BreakpointConditionRatioType #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &BreakpointConditionRatioType) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &BreakpointConditionRatioType) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<BreakpointConditionRatioType> for BreakpointConditionRatioType #### fn partial_cmp(&self, other: &BreakpointConditionRatioType) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for BreakpointConditionRatioType #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = BreakpointConditionRatioType Type to get the `Type` from. ### impl Eq for BreakpointConditionRatioType ### impl StructuralEq for BreakpointConditionRatioType ### impl StructuralPartialEq for BreakpointConditionRatioType Auto Trait Implementations --- ### impl RefUnwindSafe for BreakpointConditionRatioType ### impl Send for BreakpointConditionRatioType ### impl Sync for BreakpointConditionRatioType ### impl Unpin for BreakpointConditionRatioType ### impl UnwindSafe for BreakpointConditionRatioType Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::CenteringPolicy === ``` #[non_exhaustive]pub enum CenteringPolicy { Loose, Strict, } ``` Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Loose ### Strict Trait Implementations --- ### impl Clone for CenteringPolicy #### fn clone(&self) -> CenteringPolicy Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: CenteringPolicy) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for CenteringPolicy #### type Checker = GenericValueTypeChecker<CenteringPolicyValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = CenteringPolicy Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: CenteringPolicy) -> ParamSpecEnumBuilder<'_, CenteringPolicy#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for CenteringPolicy #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &CenteringPolicy) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &CenteringPolicy) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<CenteringPolicy> for CenteringPolicy #### fn partial_cmp(&self, other: &CenteringPolicy) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for CenteringPolicy #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = CenteringPolicy Type to get the `Type` from. ### impl Eq for CenteringPolicy ### impl StructuralEq for CenteringPolicy ### impl StructuralPartialEq for CenteringPolicy Auto Trait Implementations --- ### impl RefUnwindSafe for CenteringPolicy ### impl Send for CenteringPolicy ### impl Sync for CenteringPolicy ### impl Unpin for CenteringPolicy ### impl UnwindSafe for CenteringPolicy Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::ColorScheme === ``` #[non_exhaustive]pub enum ColorScheme { Default, ForceLight, PreferLight, PreferDark, ForceDark, } ``` Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Default ### ForceLight ### PreferLight ### PreferDark ### ForceDark Trait Implementations --- ### impl Clone for ColorScheme #### fn clone(&self) -> ColorScheme Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: ColorScheme) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for ColorScheme #### type Checker = GenericValueTypeChecker<ColorSchemeValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = ColorScheme Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: ColorScheme) -> ParamSpecEnumBuilder<'_, ColorScheme#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ColorScheme #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &ColorScheme) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &ColorScheme) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<ColorScheme> for ColorScheme #### fn partial_cmp(&self, other: &ColorScheme) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for ColorScheme #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = ColorScheme Type to get the `Type` from. ### impl Eq for ColorScheme ### impl StructuralEq for ColorScheme ### impl StructuralPartialEq for ColorScheme Auto Trait Implementations --- ### impl RefUnwindSafe for ColorScheme ### impl Send for ColorScheme ### impl Sync for ColorScheme ### impl Unpin for ColorScheme ### impl UnwindSafe for ColorScheme Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::Easing === ``` #[non_exhaustive]pub enum Easing { Linear, EaseInQuad, EaseOutQuad, EaseInOutQuad, EaseInCubic, EaseOutCubic, EaseInOutCubic, EaseInQuart, EaseOutQuart, EaseInOutQuart, EaseInQuint, EaseOutQuint, EaseInOutQuint, EaseInSine, EaseOutSine, EaseInOutSine, EaseInExpo, EaseOutExpo, EaseInOutExpo, EaseInCirc, EaseOutCirc, EaseInOutCirc, EaseInElastic, EaseOutElastic, EaseInOutElastic, EaseInBack, EaseOutBack, EaseInOutBack, EaseInBounce, EaseOutBounce, EaseInOutBounce, } ``` Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Linear ### EaseInQuad ### EaseOutQuad ### EaseInOutQuad ### EaseInCubic ### EaseOutCubic ### EaseInOutCubic ### EaseInQuart ### EaseOutQuart ### EaseInOutQuart ### EaseInQuint ### EaseOutQuint ### EaseInOutQuint ### EaseInSine ### EaseOutSine ### EaseInOutSine ### EaseInExpo ### EaseOutExpo ### EaseInOutExpo ### EaseInCirc ### EaseOutCirc ### EaseInOutCirc ### EaseInElastic ### EaseOutElastic ### EaseInOutElastic ### EaseInBack ### EaseOutBack ### EaseInOutBack ### EaseInBounce ### EaseOutBounce ### EaseInOutBounce Implementations --- ### impl Easing #### pub fn ease(self, value: f64) -> f64 Trait Implementations --- ### impl Clone for Easing #### fn clone(&self) -> Easing Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: Easing) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for Easing #### type Checker = GenericValueTypeChecker<EasingValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = Easing Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: Easing) -> ParamSpecEnumBuilder<'_, Easing#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for Easing #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &Easing) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &Easing) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<Easing> for Easing #### fn partial_cmp(&self, other: &Easing) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for Easing #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = Easing Type to get the `Type` from. ### impl Eq for Easing ### impl StructuralEq for Easing ### impl StructuralPartialEq for Easing Auto Trait Implementations --- ### impl RefUnwindSafe for Easing ### impl Send for Easing ### impl Sync for Easing ### impl Unpin for Easing ### impl UnwindSafe for Easing Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::FlapFoldPolicy === ``` #[non_exhaustive]pub enum FlapFoldPolicy { Never, Always, Auto, } ``` 👎Deprecated: Since 1.4Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Never 👎Deprecated: Since 1.4### Always 👎Deprecated: Since 1.4### Auto 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for FlapFoldPolicy #### fn clone(&self) -> FlapFoldPolicy Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: FlapFoldPolicy) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for FlapFoldPolicy #### type Checker = GenericValueTypeChecker<FlapFoldPolicyValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = FlapFoldPolicy Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: FlapFoldPolicy) -> ParamSpecEnumBuilder<'_, FlapFoldPolicy#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for FlapFoldPolicy #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &FlapFoldPolicy) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &FlapFoldPolicy) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<FlapFoldPolicy> for FlapFoldPolicy #### fn partial_cmp(&self, other: &FlapFoldPolicy) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for FlapFoldPolicy #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = FlapFoldPolicy Type to get the `Type` from. ### impl Eq for FlapFoldPolicy ### impl StructuralEq for FlapFoldPolicy ### impl StructuralPartialEq for FlapFoldPolicy Auto Trait Implementations --- ### impl RefUnwindSafe for FlapFoldPolicy ### impl Send for FlapFoldPolicy ### impl Sync for FlapFoldPolicy ### impl Unpin for FlapFoldPolicy ### impl UnwindSafe for FlapFoldPolicy Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::FlapTransitionType === ``` #[non_exhaustive]pub enum FlapTransitionType { Over, Under, Slide, } ``` 👎Deprecated: Since 1.4Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Over 👎Deprecated: Since 1.4### Under 👎Deprecated: Since 1.4### Slide 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for FlapTransitionType #### fn clone(&self) -> FlapTransitionType Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: FlapTransitionType) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for FlapTransitionType #### type Checker = GenericValueTypeChecker<FlapTransitionTypeValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = FlapTransitionType Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: FlapTransitionType) -> ParamSpecEnumBuilder<'_, FlapTransitionType#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for FlapTransitionType #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &FlapTransitionType) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &FlapTransitionType) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<FlapTransitionType> for FlapTransitionType #### fn partial_cmp(&self, other: &FlapTransitionType) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for FlapTransitionType #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = FlapTransitionType Type to get the `Type` from. ### impl Eq for FlapTransitionType ### impl StructuralEq for FlapTransitionType ### impl StructuralPartialEq for FlapTransitionType Auto Trait Implementations --- ### impl RefUnwindSafe for FlapTransitionType ### impl Send for FlapTransitionType ### impl Sync for FlapTransitionType ### impl Unpin for FlapTransitionType ### impl UnwindSafe for FlapTransitionType Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::FoldThresholdPolicy === ``` #[non_exhaustive]pub enum FoldThresholdPolicy { Minimum, Natural, } ``` 👎Deprecated: Since 1.4Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Minimum 👎Deprecated: Since 1.4### Natural 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for FoldThresholdPolicy #### fn clone(&self) -> FoldThresholdPolicy Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: FoldThresholdPolicy) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for FoldThresholdPolicy #### type Checker = GenericValueTypeChecker<FoldThresholdPolicyValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = FoldThresholdPolicy Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: FoldThresholdPolicy) -> ParamSpecEnumBuilder<'_, FoldThresholdPolicy#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for FoldThresholdPolicy #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &FoldThresholdPolicy) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &FoldThresholdPolicy) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<FoldThresholdPolicy> for FoldThresholdPolicy #### fn partial_cmp(&self, other: &FoldThresholdPolicy) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for FoldThresholdPolicy #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = FoldThresholdPolicy Type to get the `Type` from. ### impl Eq for FoldThresholdPolicy ### impl StructuralEq for FoldThresholdPolicy ### impl StructuralPartialEq for FoldThresholdPolicy Auto Trait Implementations --- ### impl RefUnwindSafe for FoldThresholdPolicy ### impl Send for FoldThresholdPolicy ### impl Sync for FoldThresholdPolicy ### impl Unpin for FoldThresholdPolicy ### impl UnwindSafe for FoldThresholdPolicy Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::LeafletTransitionType === ``` #[non_exhaustive]pub enum LeafletTransitionType { Over, Under, Slide, } ``` 👎Deprecated: Since 1.4Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Over 👎Deprecated: Since 1.4### Under 👎Deprecated: Since 1.4### Slide 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for LeafletTransitionType #### fn clone(&self) -> LeafletTransitionType Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: LeafletTransitionType) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for LeafletTransitionType #### type Checker = GenericValueTypeChecker<LeafletTransitionTypeValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = LeafletTransitionType Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: LeafletTransitionType) -> ParamSpecEnumBuilder<'_, LeafletTransitionType#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for LeafletTransitionType #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &LeafletTransitionType) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &LeafletTransitionType) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<LeafletTransitionType> for LeafletTransitionType #### fn partial_cmp(&self, other: &LeafletTransitionType) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for LeafletTransitionType #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = LeafletTransitionType Type to get the `Type` from. ### impl Eq for LeafletTransitionType ### impl StructuralEq for LeafletTransitionType ### impl StructuralPartialEq for LeafletTransitionType Auto Trait Implementations --- ### impl RefUnwindSafe for LeafletTransitionType ### impl Send for LeafletTransitionType ### impl Sync for LeafletTransitionType ### impl Unpin for LeafletTransitionType ### impl UnwindSafe for LeafletTransitionType Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::LengthUnit === ``` #[non_exhaustive]pub enum LengthUnit { Px, Pt, Sp, } ``` Available on **crate feature `v1_4`** only.Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Px ### Pt ### Sp Implementations --- ### impl LengthUnit #### pub fn from_px(self, value: f64, settings: Option<&Settings>) -> f64 #### pub fn to_px(self, value: f64, settings: Option<&Settings>) -> f64 Trait Implementations --- ### impl Clone for LengthUnit #### fn clone(&self) -> LengthUnit Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: LengthUnit) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for LengthUnit #### type Checker = GenericValueTypeChecker<LengthUnitValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = LengthUnit Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: LengthUnit) -> ParamSpecEnumBuilder<'_, LengthUnit#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for LengthUnit #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &LengthUnit) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &LengthUnit) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<LengthUnit> for LengthUnit #### fn partial_cmp(&self, other: &LengthUnit) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for LengthUnit #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = LengthUnit Type to get the `Type` from. ### impl Eq for LengthUnit ### impl StructuralEq for LengthUnit ### impl StructuralPartialEq for LengthUnit Auto Trait Implementations --- ### impl RefUnwindSafe for LengthUnit ### impl Send for LengthUnit ### impl Sync for LengthUnit ### impl Unpin for LengthUnit ### impl UnwindSafe for LengthUnit Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::NavigationDirection === ``` #[non_exhaustive]pub enum NavigationDirection { Back, Forward, } ``` Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Back ### Forward Trait Implementations --- ### impl Clone for NavigationDirection #### fn clone(&self) -> NavigationDirection Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: NavigationDirection) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for NavigationDirection #### type Checker = GenericValueTypeChecker<NavigationDirectionValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = NavigationDirection Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: NavigationDirection) -> ParamSpecEnumBuilder<'_, NavigationDirection#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for NavigationDirection #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &NavigationDirection) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &NavigationDirection) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<NavigationDirection> for NavigationDirection #### fn partial_cmp(&self, other: &NavigationDirection) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for NavigationDirection #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = NavigationDirection Type to get the `Type` from. ### impl Eq for NavigationDirection ### impl StructuralEq for NavigationDirection ### impl StructuralPartialEq for NavigationDirection Auto Trait Implementations --- ### impl RefUnwindSafe for NavigationDirection ### impl Send for NavigationDirection ### impl Sync for NavigationDirection ### impl Unpin for NavigationDirection ### impl UnwindSafe for NavigationDirection Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::ResponseAppearance === ``` #[non_exhaustive]pub enum ResponseAppearance { Default, Suggested, Destructive, } ``` Available on **crate feature `v1_2`** only.Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Default ### Suggested ### Destructive Trait Implementations --- ### impl Clone for ResponseAppearance #### fn clone(&self) -> ResponseAppearance Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: ResponseAppearance) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for ResponseAppearance #### type Checker = GenericValueTypeChecker<ResponseAppearanceValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = ResponseAppearance Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: ResponseAppearance) -> ParamSpecEnumBuilder<'_, ResponseAppearance#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ResponseAppearance #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &ResponseAppearance) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &ResponseAppearance) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<ResponseAppearance> for ResponseAppearance #### fn partial_cmp(&self, other: &ResponseAppearance) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for ResponseAppearance #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = ResponseAppearance Type to get the `Type` from. ### impl Eq for ResponseAppearance ### impl StructuralEq for ResponseAppearance ### impl StructuralPartialEq for ResponseAppearance Auto Trait Implementations --- ### impl RefUnwindSafe for ResponseAppearance ### impl Send for ResponseAppearance ### impl Sync for ResponseAppearance ### impl Unpin for ResponseAppearance ### impl UnwindSafe for ResponseAppearance Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::SqueezerTransitionType === ``` #[non_exhaustive]pub enum SqueezerTransitionType { None, Crossfade, } ``` 👎Deprecated: Since 1.4Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### None 👎Deprecated: Since 1.4### Crossfade 👎Deprecated: Since 1.4Trait Implementations --- ### impl Clone for SqueezerTransitionType #### fn clone(&self) -> SqueezerTransitionType Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: SqueezerTransitionType) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for SqueezerTransitionType #### type Checker = GenericValueTypeChecker<SqueezerTransitionTypeValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = SqueezerTransitionType Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: SqueezerTransitionType) -> ParamSpecEnumBuilder<'_, SqueezerTransitionType#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for SqueezerTransitionType #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &SqueezerTransitionType) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &SqueezerTransitionType) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<SqueezerTransitionType> for SqueezerTransitionType #### fn partial_cmp(&self, other: &SqueezerTransitionType) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for SqueezerTransitionType #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = SqueezerTransitionType Type to get the `Type` from. ### impl Eq for SqueezerTransitionType ### impl StructuralEq for SqueezerTransitionType ### impl StructuralPartialEq for SqueezerTransitionType Auto Trait Implementations --- ### impl RefUnwindSafe for SqueezerTransitionType ### impl Send for SqueezerTransitionType ### impl Sync for SqueezerTransitionType ### impl Unpin for SqueezerTransitionType ### impl UnwindSafe for SqueezerTransitionType Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::ToastPriority === ``` #[non_exhaustive]pub enum ToastPriority { Normal, High, } ``` Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Normal ### High Trait Implementations --- ### impl Clone for ToastPriority #### fn clone(&self) -> ToastPriority Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: ToastPriority) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for ToastPriority #### type Checker = GenericValueTypeChecker<ToastPriorityValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = ToastPriority Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: ToastPriority) -> ParamSpecEnumBuilder<'_, ToastPriority#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ToastPriority #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &ToastPriority) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &ToastPriority) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<ToastPriority> for ToastPriority #### fn partial_cmp(&self, other: &ToastPriority) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for ToastPriority #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = ToastPriority Type to get the `Type` from. ### impl Eq for ToastPriority ### impl StructuralEq for ToastPriority ### impl StructuralPartialEq for ToastPriority Auto Trait Implementations --- ### impl RefUnwindSafe for ToastPriority ### impl Send for ToastPriority ### impl Sync for ToastPriority ### impl Unpin for ToastPriority ### impl UnwindSafe for ToastPriority Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::ToolbarStyle === ``` #[non_exhaustive]pub enum ToolbarStyle { Flat, Raised, RaisedBorder, } ``` Available on **crate feature `v1_4`** only.Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Flat ### Raised ### RaisedBorder Trait Implementations --- ### impl Clone for ToolbarStyle #### fn clone(&self) -> ToolbarStyle Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: ToolbarStyle) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for ToolbarStyle #### type Checker = GenericValueTypeChecker<ToolbarStyleValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = ToolbarStyle Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: ToolbarStyle) -> ParamSpecEnumBuilder<'_, ToolbarStyle#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ToolbarStyle #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &ToolbarStyle) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &ToolbarStyle) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<ToolbarStyle> for ToolbarStyle #### fn partial_cmp(&self, other: &ToolbarStyle) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for ToolbarStyle #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = ToolbarStyle Type to get the `Type` from. ### impl Eq for ToolbarStyle ### impl StructuralEq for ToolbarStyle ### impl StructuralPartialEq for ToolbarStyle Auto Trait Implementations --- ### impl RefUnwindSafe for ToolbarStyle ### impl Send for ToolbarStyle ### impl Sync for ToolbarStyle ### impl Unpin for ToolbarStyle ### impl UnwindSafe for ToolbarStyle Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum libadwaita::ViewSwitcherPolicy === ``` #[non_exhaustive]pub enum ViewSwitcherPolicy { Narrow, Wide, } ``` Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Narrow ### Wide Trait Implementations --- ### impl Clone for ViewSwitcherPolicy #### fn clone(&self) -> ViewSwitcherPolicy Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn from(v: ViewSwitcherPolicy) -> Self Converts to this type from the input type.### impl<'a> FromValue<'a> for ViewSwitcherPolicy #### type Checker = GenericValueTypeChecker<ViewSwitcherPolicyValue type checker.#### unsafe fn from_value(value: &'a Value) -> Self Get the contained value from a `Value`. #### type ParamSpec = ParamSpecEnum #### type SetValue = ViewSwitcherPolicy Preferred value to be used as setter for the associated ParamSpec.#### type BuilderFn = fn(_: &str, _: ViewSwitcherPolicy) -> ParamSpecEnumBuilder<'_, ViewSwitcherPolicy#### fn param_spec_builder() -> Self::BuilderFn ### impl Hash for ViewSwitcherPolicy #### fn hash<__H: Hasher>(&self, state: &mut __H) Feeds this value into the given `Hasher`. Read more1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized, Feeds a slice of this type into the given `Hasher`. #### fn cmp(&self, other: &ViewSwitcherPolicy) -> Ordering This method returns an `Ordering` between `self` and `other`. Read more1.21.0 · source#### fn max(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the maximum of two values. Read more1.21.0 · source#### fn min(self, other: Self) -> Selfwhere Self: Sized, Compares and returns the minimum of two values. Read more1.50.0 · source#### fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>, Restrict a value to a certain interval. #### fn eq(&self, other: &ViewSwitcherPolicy) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl PartialOrd<ViewSwitcherPolicy> for ViewSwitcherPolicy #### fn partial_cmp(&self, other: &ViewSwitcherPolicy) -> Option<OrderingThis method returns an ordering between `self` and `other` values if one exists. Read more1.0.0 · source#### fn lt(&self, other: &Rhs) -> bool This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more1.0.0 · source#### fn le(&self, other: &Rhs) -> bool This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more1.0.0 · source#### fn gt(&self, other: &Rhs) -> bool This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more1.0.0 · source#### fn ge(&self, other: &Rhs) -> bool This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. #### fn static_type() -> Type Returns the type identifier of `Self`.### impl ToValue for ViewSwitcherPolicy #### fn to_value(&self) -> Value Convert a value to a `Value`.#### fn value_type(&self) -> Type Returns the type identifer of `self`. #### type Type = ViewSwitcherPolicy Type to get the `Type` from. ### impl Eq for ViewSwitcherPolicy ### impl StructuralEq for ViewSwitcherPolicy ### impl StructuralPartialEq for ViewSwitcherPolicy Auto Trait Implementations --- ### impl RefUnwindSafe for ViewSwitcherPolicy ### impl Send for ViewSwitcherPolicy ### impl Sync for ViewSwitcherPolicy ### impl Unpin for ViewSwitcherPolicy ### impl UnwindSafe for ViewSwitcherPolicy Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> IntoClosureReturnValue for Twhere T: Into<Value>, #### fn into_closure_return_value(self) -> Option<Value### impl<T> Property for Twhere T: HasParamSpec, #### type Value = T ### impl<T> PropertyGet for Twhere T: HasParamSpec, #### type Value = T #### fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R, ### impl<T> StaticTypeExt for Twhere T: StaticType, #### fn ensure_type() Ensures that the type has been registered with the type system.### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Send + ToValue + ?Sized, #### fn to_send_value(&self) -> SendValue Returns a `SendValue` clone of `self`.### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static, #### fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.
PCAmixdata
cran
R
Package ‘PCAmixdata’ October 12, 2022 Type Package Title Multivariate Analysis of Mixed Data Version 3.1 Author <NAME> [aut, cre], <NAME> [aut], <NAME> [aut], <NAME> [aut], <NAME> [aut] Maintainer <NAME> <<EMAIL>> Description Implements principal component analysis, orthogonal rotation and multiple factor analysis for a mixture of quantitative and qualitative variables. Imports graphics License GPL (>= 2.0) RoxygenNote 6.0.1 Suggests knitr, rmarkdown VignetteBuilder knitr NeedsCompilation no Repository CRAN Date/Publication 2017-10-23 07:54:40 UTC R topics documented: decathlo... 2 dog... 3 flowe... 3 girond... 4 MFAmi... 5 PCAmi... 8 PCAro... 11 plot.MFAmi... 13 plot.PCAmi... 17 predict.MFAmi... 19 predict.PCAmi... 21 print.MFAmi... 22 print.PCAmi... 23 protei... 23 reco... 24 recodqua... 25 recodquan... 25 splitgroup... 26 splitmi... 27 summary.MFAmi... 27 summary.PCAmi... 28 supva... 29 supvar.MFAmi... 29 supvar.PCAmi... 30 tab.disjonctif.N... 31 vn... 32 win... 32 decathlon Performance in decathlon (data) Description The data used here refer to athletes’ performance during two sporting events. Usage data(decathlon) Format A data frame with 41 rows and 13 columns: the first ten columns corresponds to the performance of the athletes for the 10 events of the decathlon. The columns 11 and 12 correspond respectively to the rank and the points obtained. The last column is a categorical variable corresponding to the sporting event (2004 Olympic Game or 2004 Decastar) Source The references below. References Departement of Applied Mathematics, Agrocampus Rennes. <NAME>., <NAME>. & <NAME>. (2008). FactoMineR: An R Package for Multivariate Analysis. Journal of Statistical Software. 25(1). pp. 1-18. dogs Breeds of Dogs data Description Data refering to 27 breeds of dogs. Format A data frame with 27 rows (the breeds of dogs) and 7 columns: their size, weight and speed with 3 categories (small, medium, large), their intelligence (low, medium, high), their affectivity and aggressiveness with 3 categories (low, high), their function (utility, compagny, hunting). Source Originated by <NAME> (1982) and cited in Saporta G. (2011). flower Flower Characteristics Description 8 characteristics for 18 popular flowers. Usage data(flower) Format A data frame with 18 observations on 8 variables: [ , "V1"] factor winters [ , "V2"] factor shadow [ , "V3"] factor tubers [ , "V4"] factor color [ , "V5"] ordered soil [ , "V6"] ordered preference [ , "V7"] numeric height [ , "V8"] numeric distance V1 winters, is binary and indicates whether the plant may be left in the garden when it freezes. V2 shadow, is binary and shows whether the plant needs to stand in the shadow. V3 tubers, is asymmetric binary and distinguishes between plants with tubers and plants that grow in any other way. V4 color, is nominal and specifies the flower’s color (1 = white, 2 = yellow, 3 = pink, 4 = red, 5 = blue). V5 soil, is ordinal and indicates whether the plant grows in dry (1), normal (2), or wet (3) soil. V6 preference, is ordinal and gives someone’s preference ranking going from 1 to 18. V7 height, is interval scaled, the plant’s height in centimeters. V8 distance, is interval scaled, the distance in centimeters that should be left between the plants. Source The reference below. References <NAME>, <NAME> & <NAME> (1996): Clustering in an Object-Oriented Environ- ment. Journal of Statistical Software, 1. http://www.stat.ucla.edu/journals/jss/ gironde gironde Description A list of 4 datasets caracterizing conditions of life of 542 cities in Gironde. The four datasets cor- respond to four thematics relative to conditions of life. Each dataset contains a different number of variables (quantitative and/or qualitative). The first three datasets come from the 2009 pop- ulation census realized in Gironde by INSEE (Institut National de la Statistique et des Etudes Economiques). The fourth come from an IGN (Institut National de l’Information Geographique et forestiere) database. Usage data(gironde) Format A list of 4 data frames. Value gironde$employment This data frame contains the description of 542 cities by 9 quantitative vari- ables. These variables are related to employment conditions like, for instance, the average income (income), the percentage of farmers (farmer). gironde$housing This data frame contains the description of 542 cities by 5 variables (2 qualitative variables and 3 quantitative variables). These variables are related to housing conditions like, for instance, the population density (density), the percentage of counsil housing within the cities (council). gironde$services This data frame contains the description of 542 cities by 9 qualitative variables. These variables are related to the number of services within the cities, like, for instance, the number of bakeries (baker) or the number of post office (postof- fice). gironde$environment This data frame contains the description of 542 cities by 4 quantitative variables. These variables are related to the natural environment of the cities, like, for in- stance the percentage of agricultural land (agricul) or the percentage of buildings (building). Source www.INSEE.fr www.ign.fr http://siddt.grenoble.cemagref.fr/ Multivariate analysis of mixed data: The PCAmixdata R package, <NAME>, <NAME>, <NAME>, <NAME>, arXiv:1411.4911 [stat.CO] MFAmix Multiple factor analysis of mixed data Description Performs multiple factor analysis to analyze a set of individuals (observations) described by sev- eral groups of variables. Variables within a group can be a mixture of quantitative and qualitative variables. Usage MFAmix(data, groups, name.groups, ndim=5, rename.level=FALSE, graph = TRUE, axes = c(1, 2)) Arguments data a data frame with n rows and p columns containing all the variables. This data frame will be split into G groups according to the vector groups. groups a vector which gives the groups of the columns in data. name.groups a vector of size G which gives the names of the groups. ndim number of dimensions kept in the results (by default 5). rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: "variable_name=level_name". This prevents to have identical names for the levels. graph boolean, if TRUE the following graphics are displayed for the first two dimen- sions of PCAmix: plot of the individuals coordinates, plot of the squared load- ings of variables, plot of the partial axes, plot of the correlation circle (if quan- titative variables are available), plot of the levels component map (if qualitative variables are available). axes a length 2 vector specifying the axes to plot. Details Multiple Factor Analysis (MFA) developed by Escofier and Pages in 1983 is a method of factorial analysis to deal with multiple groups of variables collected on the same observations. The main idea of MFA is to normalize each group by dividing all the variables belonging to this group by the first eigenvalue coming from the Principal Component Analysis (PCA) of this group. Then, a usual PCA on all the weighted variables taken together is applied. Initially this method has been developed for groups only containing quantitative variables. Afterwards this method has been improved to deal simultaneously with groups of qualitative variables and groups of quantitative variables. The MFAmix method allows to perform MFA method for groups containing a mixture of quantitative and qualitative variables One of the outputs available in the MFAmix method are the squared loadings (sqload). Squared loadings for a qualitative variable are correlation ratios between the variable and the principal com- ponents. For a quantitative variable, squared loadings are the squared correlation between the vari- able and the principal components. Some others outputs are specific to MFA: • Coordinates of groups are the sum of the absolute contributions of variables belonging to the groups, • Partial individuals coordinates are factor coordinates of individuals according to a specific group. The partial coordinates can be achieved by projecting the data set of each group onto the principal component space of MFAmix, • Partial axes of a group are correlation between each principal components of the separated analyses of the group and the principal components of MFAmix. Value eig a matrix containing the eigenvalues, the percentages of variance and the cumu- lative percentages of variance. ind a list containing the results for the individuals (observations): • $coord: factor coordinates (scores) of the individuals, • $contrib: absolute contributions of the individuals, • $contrib.pct: relative contributions of the individuals, • $cos2: squared cosinus of the individuals. quanti a list containing the results for the quantitative variables: • $coord: factor coordinates (scores) of the quantitative variables, • $contrib: absolute contributions of the quantitative variables, • $contrib.pct: relative contributions of the quantitative variables (in per- centage), • $cos2: squared cosinus of the quantitative variables. levels a list containing the results for the levels of the qualitative variables: • $coord: factor coordinates (scores) of the levels, • $contrib: absolute contributions of the levels, • $contrib.pct: relative contributions of the levels (in percentage), • $cos2: squared cosinus of the levels. quali a list containing the results for the qualitative variables: • $contrib: absolute contributions of the qualitative variables (sum of abso- lute contributions of the levels of the qualitative variable), • $contrib.pct: relative contributions (in percentage) of the qualitative vari- ables (sum of relative contributions of the levels of the qualitative variable). sqload a matrix of dimension (p, ndim) containing the squared loadings of the quanti- tative and qualitative variables. coef the coefficients of the linear combinations used to construct the principal com- ponents of MFAmix, and to predict coordinates (scores) of new observations in the function predict.MFAmix. eig.separate a matrix containing the ndim first eigenvalues of the separated analyses of each group. separate.analyses the results for the separated analyses of each group. groups a list containing the results for the groups: • $Lg: Lg coefficients between groups, • $RV: RV coefficients between groups, • $contrib: contributions of the groups (sum of variable contributions be- longing to the group) • $contrib.pct: relative contributions of the groups times 100, partial.axes a matrix containing the coordinates of the partial axes. ind.partial a list of G matrices containing the coordinates of the partial individuals. listvar.group list the variables in each group. It is usefull to check the adequacy between the vector groups and the vector name.groups. global.pca an object of class PCAmix containing the results of MFAmix considered as a unique PCAmix. Author(s) <NAME> <<EMAIL>>, <NAME>, <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., <NAME>., <NAME>., Multivariate analysis of mixed data: The PCAmixdata R package, arXiv:1411.4911 [stat.CO]. Escofier, B. and <NAME>. (1994). Multiple factor analysis (afmult package). Computational statis- tics & data analysis, 18(1):121-140. <NAME>., <NAME>., and <NAME>. (2008). Factominer: an r package for multivariate analysis. Journal of statistical software, 25(1):1-18. See Also print.MFAmix, summary.MFAmix, predict.MFAmix, plot.MFAmix Examples data(gironde) class.var<-c(rep(1,9),rep(2,5),rep(3,9),rep(4,4)) names <- c("employment","housing","services","environment") dat<-cbind(gironde$employment[1:20,],gironde$housing[1:20,], gironde$services[1:20,],gironde$environment[1:20,]) res<-MFAmix(data=dat,groups=class.var, name.groups=names, rename.level=TRUE, ndim=3,graph=FALSE) summary(res) PCAmix Principal component analysis of mixed data Description Performs principal component analysis of a set of individuals (observations) described by a mixture of qualitative and quantitative variables. PCAmix includes ordinary principal component analysis (PCA) and multiple correspondence analysis (MCA) as special cases. Usage PCAmix(X.quanti = NULL, X.quali = NULL, ndim = 5, rename.level = FALSE, weight.col.quanti = NULL, weight.col.quali = NULL, graph = TRUE) Arguments X.quanti a numeric matrix of data, or an object that can be coerced to such a matrix (such as a numeric vector or a data frame with all numeric columns). X.quali a categorical matrix of data, or an object that can be coerced to such a matrix (such as a character vector, a factor or a data frame with all factor columns). ndim number of dimensions kept in the results (by default 5). rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: "variable_name=level_name". This prevents to have identical names of the levels. weight.col.quanti vector of weights for the quantitative variables. weight.col.quali vector of the weights for the qualitative variables. graph boolean, if TRUE the following graphics are displayed for the first two dimen- sions of PCAmix: component map of the individuals, plot of the squared load- ings of all the variables (quantitative and qualitative), plot of the correlation circle (if quantitative variables are available), component map of the levels (if qualitative variables are available). Details If X.quali is not specified (i.e. NULL), only quantitative variables are available and standard PCA is performed. If X.quanti is NULL, only qualitative variables are available and standard MCA is performed. Missing values are replaced by means for quantitative variables and by zeros in the indicator matrix for qualitative variables. PCAmix performs squared loadings in (sqload). Squared loadings for a qualitative variable are correlation ratios between the variable and the principal components. For a quantitative variable, squared loadings are the squared correlations between the variable and the principal components. Note that when all the p variables are qualitative, the factor coordinates (scores) of the n observa- tions are equal to the factor coordinates (scores) of standard MCA times square root of p and the eigenvalues are then equal to the usual eigenvalues of MCA times p. When all the variables are quantitative, PCAmix gives exactly the same results as standard PCA. Value eig a matrix containing the eigenvalues, the percentages of variance and the cumu- lative percentages of variance. ind a list containing the results for the individuals (observations): • $coord: factor coordinates (scores) of the individuals, • $contrib: absolute contributions of the individuals, • $contrib.pct: relative contributions of the individuals, • $cos2: squared cosinus of the individuals. quanti a list containing the results for the quantitative variables: • $coord: factor coordinates (scores) of the quantitative variables, • $contrib: absolute contributions of the quantitative variables, • $contrib.pct: relative contributions of the quantitative variables (in per- centage), • $cos2: squared cosinus of the quantitative variables. levels a list containing the results for the levels of the qualitative variables: • $coord: factor coordinates (scores) of the levels, • $contrib: absolute contributions of the levels, • $contrib.pct: relative contributions of the levels (in percentage), • $cos2: squared cosinus of the levels. quali a list containing the results for the qualitative variables: • $contrib: absolute contributions of the qualitative variables (sum of abso- lute contributions of the levels of the qualitative variable), • $contrib.pct: relative contributions (in percentage) of the qualitative vari- ables (sum of relative contributions of the levels of the qualitative variable). sqload a matrix of dimension (p, ndim) containing the squared loadings of the quanti- tative and qualitative variables. coef the coefficients of the linear combinations used to construct the principal com- ponents of PCAmix, and to predict coordinates (scores) of new observations in the function predict.PCAmix. M the vector of the weights of the columns used in the Generalized Singular Value Decomposition. Author(s) <NAME> <<EMAIL>>, <NAME>. References <NAME>., <NAME>., <NAME>., <NAME>., Multivariate analysis of mixed data: The PCAmixdata R package, arXiv:1411.4911 [stat.CO]. See Also print.PCAmix, summary.PCAmix, predict.PCAmix, plot.PCAmix Examples #PCAMIX: data(wine) str(wine) X.quanti <- splitmix(wine)$X.quanti X.quali <- splitmix(wine)$X.quali pca<-PCAmix(X.quanti[,1:27],X.quali,ndim=4) pca<-PCAmix(X.quanti[,1:27],X.quali,ndim=4,graph=FALSE) pca$eig pca$ind$coord #PCA: data(decathlon) quali<-decathlon[,13] pca<-PCAmix(decathlon[,1:10]) pca<-PCAmix(decathlon[,1:10], graph=FALSE) plot(pca,choice="ind",coloring.ind=quali,cex=0.8, posleg="topright",main="Scores") plot(pca, choice="sqload",main="Squared correlations") plot(pca, choice="cor",main="Correlation circle") pca$quanti$coord #MCA data(flower) mca <- PCAmix(X.quali=flower[,1:4],rename.level=TRUE) mca <- PCAmix(X.quali=flower[,1:4],rename.level=TRUE,graph=FALSE) plot(mca,choice="ind",main="Scores") plot(mca,choice="sqload",main="Correlation ratios") plot(mca,choice="levels",main="Levels") mca$levels$coord #Missing values data(vnf) PCAmix(X.quali=vnf,rename.level=TRUE) vnf2<-na.omit(vnf) PCAmix(X.quali=vnf2,rename.level=TRUE) PCArot Varimax rotation in PCAmix Description Orthogonal rotation in PCAmix by maximization of the varimax function expressed in terms of PCAmix squared loadings (correlation ratios for qualitative variables and squared correlations for quantitative variables). PCArot includes the ordinary varimax rotation in Principal Component Analysis (PCA) and a varimax-type rotation in Multiple Correspondence Analysis (MCA) as special cases. Usage PCArot(obj, dim, itermax = 100, graph = TRUE) Arguments obj an object of class PCAmix. dim number of rotated Principal Components. itermax maximum number of iterations in the Kaiser’s practical optimization algorithm based on successive pairwise planar rotations. graph boolean, if TRUE the following graphs are displayed for the first two dimen- sions after rotation: plot of the individuals (factor coordinates), plot of the vari- ables (squared loadings) plot of the correlation circle (if quantitative variables are available), plot of the levels component map (if qualitative variables are available). Details If X.quali is not specified (i.e. NULL) in the previous PCAmix step, only quantitative variables are available and standard varimax rotation in PCA is performed. If X.quanti is NULL, only qualitative variables are available and varimax-type rotation in MCA is performed. Note that p1 is the number of quantitative variables, p2 is the number of qualitative variables and m is the total number of levels of the p2 qualitative variables. Value eig variances of the ndim dimensions after rotation. ind$coord a n by dim quantitative matrix which contains the coordinates (scores) of the n individuals on the dim rotated principal components. quanti$coord a p1 by dim quantitative matrix which contains the coordinates (loadings) of the p1 quantitative variables after rotation. The coordinates of the quantitative variables after rotation are correlations with the rotated principal components. levels$coord a m by dim quantitative matrix which contains the coordinates of the m levels on the dim rotated principal components. quali$coord a p2 by dim quantitative matrix which contains the coordinates of the p2 qual- itative variables on the dim rotated principal components. Coordinates of the qualitative variables after rotation are correlation ratio with the rotated principal components. coef coefficients of the linear combinations used to construct the rotated principal components of PCAmix. theta angle of rotation if dim is equal to 2. T matrix of rotation. Author(s) <NAME> <<EMAIL>>, <NAME>, <NAME>, <NAME> References <NAME>., <NAME>., <NAME>. (2011), Orthogonal Rotation in PCAMIX. Advances in Clas- sification and Data Analysis, Vol. 6, pp. 131-146. <NAME>., <NAME>., <NAME>., <NAME>., Multivariate analysis of mixed data: The PCAmixdata R package, arXiv:1411.4911 [stat.CO]. <NAME>., (1991), Simple structure in Component Analysis Techniques for mixtures of quali- tative and quantitative variables, Psychometrika, 56, 197-212. See Also plot.PCAmix, summary.PCAmix, PCAmix, predict.PCAmix Examples #PCAMIX: data(wine) pca<-PCAmix(X.quanti=wine[,c(3:29)],X.quali=wine[,1:2],ndim=4,graph=FALSE) pca rot<-PCArot(pca,3) rot rot$eig #percentages of variances after rotation plot(rot,choice="ind",coloring.ind=wine[,1], posleg="bottomleft", main="Rotated scores") plot(rot,choice="sqload",main="Squared loadings after rotation") plot(rot,choice="levels",main="Levels after rotation") plot(rot,choice="cor",main="Correlation circle after rotation") #PCA: data(decathlon) quali<-decathlon[,13] pca<-PCAmix(decathlon[,1:10], graph=FALSE) rot<-PCArot(pca,3) plot(rot,choice="ind",coloring.ind=quali,cex=0.8, posleg="topright",main="Scores after rotation") plot(rot, choice="sqload", main="Squared correlations after rotation") plot(rot, choice="cor", main="Correlation circle after rotation") #MCA data(flower) mca <- PCAmix(X.quali=flower[,1:4],rename.level=TRUE,graph=FALSE) rot<-PCArot(mca,2) plot(rot,choice="ind",main="Scores after rotation") plot(rot, choice="sqload", main="Correlation ratios after rotation") plot(rot, choice="levels", main="Levels after rotation") plot.MFAmix Graphical outputs of MFAmix Description Displays the graphical outputs of MFAmix. Individuals (observations), quantitative variables and levels of the qualitative variables are plotted as points using their factor coordinates (scores) in MFAmix. All the variables (quantitative and qualitative) are plotted on the same graph as points using their squared loadings. The groups of variables are plotted using their contributions to the component coordinates. Partial axes and partial individuals of separated analyses can also be plot- ted. Usage ## S3 method for class 'MFAmix' plot(x, axes = c(1, 2), choice = "ind", label = TRUE, coloring.var = "not", coloring.ind = NULL, nb.partial.axes = 3, col.ind = NULL, col.groups = NULL, partial = NULL, lim.cos2.plot = 0, lim.contrib.plot = 0, xlim = NULL, ylim = NULL, cex = 1, main = NULL, leg = TRUE, posleg = "topleft", cex.leg = 0.8, col.groups.sup = NULL, posleg.sup = "topright", nb.paxes.sup = 3, ...) Arguments x an object of class MFAmix obtained with the function MFAmix. axes a length 2 vector specifying the components to plot. choice the graph to plot: • "ind" for the individuals, • "cor" for the correlation circle of the quantitative variables, • "levels" for the levels of of the qualitative variables, • "sqload" for the plot of the squared loadings of all the variables, • "groups" for the plot of the contributions of the groups, • "axes" for the correlation circle of the partial axes. label boolean, if FALSE the labels of the points are not plotted. coloring.var a value to choose among: • "type": the variables in the plot of the squared loadings are colored accord- ing to their type (quantitative or qualitative), • "groups": the variables are colored according to their group. • NULL: variables are not colored. coloring.ind a qualitative variable such as a character vector or a factor of size n (the num- ber of individuals). The individuals are colored according to the levels of this variable. If NULL, the individuals are not colored. nb.partial.axes f choice="axes", the maximum number of partial axes related to each group to plot on the correlation circle. By default equal to 3. col.ind a vector of colors, of size the number of levels of coloring.ind. If NULL, colors are chosen automatically. col.groups a vector of colors, of size the number of groups. If NULL, colors are chosen automatically. partial a vector of class character with the row names of the individuals, for which the partial individuals should be drawn. By default partial = NULL and no partial points are drawn. Partial points are colored according to col.groups lim.cos2.plot a value between 0 and 1. Points with squared cosinus below this value are not plotted. lim.contrib.plot a value between 0 and 100. Points with relative contributions (in percentage) below this value are not plotted. xlim a numeric vectors of length 2, giving the x coordinates range. If NULL (by default) the range is defined automatically (recommended). ylim a numeric vectors of length 2, giving the y coordinates range. If NULL (by default) the range is defined automatically (recommended). cex cf. function par in the graphics package main a string corresponding to the title of the graph to draw. leg boolean, if TRUE, a legend is displayed.. posleg position of the legend. cex.leg a numerical value giving the amount by which the legend should be magnified. Default is 0.8. col.groups.sup a vector of colors, of size the number of supplementary groups. If NULL, colors are chosen automatically. posleg.sup position of the legend for the supplementary groups. nb.paxes.sup if choice="axes", the maximum number of partial axes of supplementary groups ploted on the correlation circle. By default equal to 3. ... arguments to be passed to methods, such as graphical parameters. Details The observations can be colored according to the levels of a qualitative variable. The observa- tions, the quantitative variables and the levels can be selected according to their squared cosine (lim.cos2.plot) or their relative contribution (lim.contrib.plot) to the component map. Only points with squared cosine or relative contribution greater than a given threshold are plotted. Note that the relative contribution of a point to the component map (a plan) is the sum of the absolute contribu- tions to each dimension, divided by the sum of the corresponding eigenvalues. Author(s) , <<EMAIL>>, <NAME> References <NAME>., <NAME>., <NAME>., <NAME>., Multivariate analysis of mixed data: The PCAmixdata R package, arXiv:1411.4911 [stat.CO]. See Also summary.PCAmix,PCAmix,PCArot Examples data(gironde) class.var<-c(rep(1,9),rep(2,5),rep(3,9),rep(4,4)) names <- c("employment","housing","services","environment") dat <- cbind(gironde$employment[1:20,],gironde$housing[1:20,], gironde$services[1:20,],gironde$environment[1:20,]) res <- MFAmix(data=dat,groups=class.var, name.groups=names, rename.level=TRUE, ndim=3,graph=FALSE) #---- quantitative variables plot(res,choice="cor",cex=0.6) plot(res,choice="cor",cex=0.6,coloring.var="groups") plot(res,choice="cor",cex=0.6,coloring.var="groups", col.groups=c("red","yellow","pink","brown"),leg=TRUE) #----partial axes plot(res,choice="axes",cex=0.6) plot(res,choice="axes",cex=0.6,coloring.var="groups") plot(res,choice="axes",cex=0.6,coloring.var="groups", col.groups=c("red","yellow","pink","brown"),leg=TRUE) #----groups plot(res,choice="groups",cex=0.6) #no colors for groups plot(res,choice="groups",cex=0.6,coloring.var="groups") plot(res,choice="groups",cex=0.6,coloring.var="groups", col.groups=c("red","yellow","pink","blue")) #----squared loadings plot(res,choice="sqload",cex=0.8) #no colors for groups plot(res,choice="sqload",cex=0.8,coloring.var="groups", posleg="topright") plot(res,choice="sqload",cex=0.6,coloring.var="groups", col.groups=c("red","yellow","pink","blue"),ylim=c(0,1)) plot(res,choice="sqload",cex=0.8,coloring.var="type", cex.leg=0.9,posleg="topright") #----individuals plot(res,choice="ind",cex=0.6) #----individuals with squared cosine greater than 0.5 plot(res,choice="ind",cex=0.6,lim.cos2.plot=0.5) #----individuals colored with a qualitative variable nbchem <- gironde$services$chemist[1:20] plot(res,choice="ind",cex=0.6,coloring.ind=nbchem, posleg="topright") plot(res,choice="ind",coloring.ind=nbchem, col.ind=c("pink","brown","darkblue"),label=FALSE,posleg="topright") #----partial individuals colored by groups plot(res,choice="ind",partial=c("AUBIAC","ARCACHON"), cex=0.6,posleg="bottomright") #----levels of qualitative variables plot(res,choice="levels",cex=0.8) plot(res,choice="levels",cex=0.8,coloring.var="groups") #levels with squared cosine greater than 0.6 plot(res,choice="levels",cex=0.8, lim.cos2.plot=0.6) #supplementary groups data(wine) X.quanti <- splitmix(wine)$X.quanti[,1:5] X.quali <- splitmix(wine)$X.quali[,1,drop=FALSE] X.quanti.sup <- splitmix(wine)$X.quanti[,28:29] X.quali.sup <- splitmix(wine)$X.quali[,2,drop=FALSE] data <- cbind(X.quanti,X.quali) data.sup <- cbind(X.quanti.sup,X.quali.sup) groups <-c(1,2,2,3,3,1) name.groups <- c("G1","G2","G3") groups.sup <- c(1,1,2) name.groups.sup <- c("Gsup1","Gsup2") mfa <- MFAmix(data,groups,name.groups,ndim=4,rename.level=TRUE,graph=FALSE) mfa.sup <- supvar(mfa,data.sup,groups.sup,name.groups.sup,rename.level=TRUE) plot(mfa.sup,choice="sqload",coloring.var="groups") plot(mfa.sup,choice="axes",coloring.var="groups") plot(mfa.sup,choice="groups",coloring.var="groups") plot(mfa.sup,choice="levels",coloring.var="groups") plot(mfa.sup,choice="levels") plot(mfa.sup,choice="cor",coloring.var = "groups") plot.PCAmix Graphical outputs of PCAmix and PCArot Description Displays the graphical outputs of PCAmix and PCArot. The individuals (observations), the quan- titative variables and the levels of the qualitative variables are plotted as points using their factor coordinates (scores). All the variables (quantitative and qualitative) are plotted as points on the same graph using their squared loadings. Usage ## S3 method for class 'PCAmix' plot(x, axes = c(1, 2), choice = "ind", label = TRUE, coloring.ind = NULL, col.ind = NULL, coloring.var = FALSE, lim.cos2.plot = 0, lim.contrib.plot = 0, posleg = "topleft", xlim = NULL, ylim = NULL, cex = 1, leg = TRUE, main = NULL, cex.leg = 1, ...) Arguments x an object of class PCAmix obtained with the function PCAmix or PCArot. axes a length 2 vector specifying the components to plot. choice the graph to plot: • "ind" for the individuals component map, • "cor" for the correlation circle if quantitative variables are available in the data, • "levels" for the levels components map (if qualitative variables are available in the data), • "sqload" for the plot of the squared loadings of all the variables. label boolean, if FALSE the labels of the points are not plotted. coloring.ind a qualitative variable such as a character vector or a factor of size n (the num- ber of individuals). The individuals are colored according to the levels of this variable. If NULL, the individuals are not colored. col.ind a vector of colors, of size the number of levels of coloring.ind. If NULL, colors are chosen automatically. coloring.var boolean, if TRUE, the variables in the plot of the squared loadings are colored according to their type (quantitative or qualitative). lim.cos2.plot a value between 0 and 1. Points with squared cosinus below this value are not plotted. lim.contrib.plot a value between 0 and 100. Points with relative contributions (in percentage) below this value are not plotted. posleg position of the legend. xlim a numeric vectors of length 2, giving the x coordinates range. If NULL (by default) the range is defined automatically (recommended). ylim a numeric vectors of length 2, giving the y coordinates range. If NULL (by default) the range is defined automatically (recommended). cex cf. function par in the graphics package leg boolean, if TRUE, a legend is displayed. main a string corresponding to the title of the graph to draw. cex.leg a numerical value giving the amount by which the legend should be magnified. Default is 0.8. ... arguments to be passed to methods, such as graphical parameters. Details The observations can be colored according to the levels of a qualitative variable. The observa- tions, the quantitative variables and the levels can be selected according to their squared cosine (lim.cos2.plot) or their relative contribution (lim.contrib.plot) to the component map. Only points with squared cosine or relative contribution greater than a given threshold are plotted. Note that the relative contribution of a point to the component map (a plan) is the sum of the absolute contribu- tions to each dimension, divided by the sum of the corresponding eigenvalues. Author(s) <NAME> <<EMAIL>>, <NAME> References <NAME>., <NAME>., <NAME>., <NAME>., Multivariate analysis of mixed data: The PCAmixdata R package, arXiv:1411.4911 [stat.CO]. See Also summary.PCAmix,PCAmix,PCArot Examples data(gironde) base <- gironde$housing[1:20,] X.quanti <-splitmix(base)$X.quanti X.quali <- splitmix(base)$X.quali res<-PCAmix(X.quanti, X.quali, rename.level=TRUE, ndim=3,graph=FALSE) #----quantitative variables on the correlation circle plot(res,choice="cor",cex=0.8) #----individuals component map plot(res,choice="ind",cex=0.8) #----individuals colored with the qualitative variable "houses" houses <- X.quali$houses plot(res,choice="ind",cex=0.6,coloring.ind=houses) #----individuals selected according to their cos2 plot(res,choice="ind",cex=0.6,lim.cos2.plot=0.8) #----all the variables plotted with the squared loadings plot(res,choice="sqload",cex=0.8) #----variables colored according to their type (quanti or quali) plot(res,choice="sqload",cex=0.8,coloring.var=TRUE) #----levels component map plot(res,choice="levels",cex=0.8) #----example with supplementary variables data(wine) X.quanti <- splitmix(wine)$X.quanti[,1:5] X.quali <- splitmix(wine)$X.quali[,1,drop=FALSE] X.quanti.sup <-splitmix(wine)$X.quanti[,28:29] X.quali.sup <-splitmix(wine)$X.quali[,2,drop=FALSE] pca<-PCAmix(X.quanti,X.quali,ndim=4,graph=FALSE) pca2 <- supvar(pca,X.quanti.sup,X.quali.sup) plot(pca2,choice="levels") plot(pca2,choice="cor") plot(pca2,choice="sqload") predict.MFAmix Prediction of new scores in MFAmix Description This function performs the scores of new observations on the principal components of MFAmix. In other words, this function is projecting the new observations onto the principal components of MFAmix obtained previoulsy on a separated dataset. Note that the new observations must be described with the same variables than those used in MFAmix. The groups of variables must also be identical. Usage ## S3 method for class 'MFAmix' predict(object, data, rename.level = FALSE, ...) Arguments object an object of class MFAmix obtained with the function MFAmix. data a data frame containing the description of the new observations on all the vari- ables. This data frame will be split into G groups according to the vector groups. rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: "variable_name=level_name". This prevents to have identical names for the levels. ... urther arguments passed to or from other methods. They are ignored in this function. Value Returns the matrix of the scores of the new observations on the principal components or on the rotated principal components of MFAmix. Author(s) <NAME> <<EMAIL>>, <NAME>. References <NAME>., <NAME>., <NAME>., <NAME>., Multivariate analysis of mixed data: The PCAmixdata R package, arXiv:1411.4911 [stat.CO]. See Also MFAmix Examples data(gironde) class.var<-c(rep(1,9),rep(2,5),rep(3,9),rep(4,4)) names<-c("employment","housing","services","environment") dat<-cbind(gironde$employment,gironde$housing, gironde$services,gironde$environment) n <- nrow(dat) set.seed(10) sub <- sample(1:n,520) res<-MFAmix(data=dat[sub,],groups=class.var, name.groups=names, rename.level=TRUE, ndim=3,graph=FALSE) #Predict scores of new data pred<-predict(res,data=dat[-sub,]) plot(res,choice="ind",cex=0.6,lim.cos2.plot=0.7) points(pred[1:5,c(1,2)],col=2,pch=16,cex=0.6) text(pred[1:5,c(1,2)], labels = rownames(dat[-sub,])[1:5], col=2,pos=3,cex=0.6) predict.PCAmix Prediction of new scores in PCAmix or PCArot Description This function performs the scores of new observations on the principal components of PCAmix. If the components have been rotated, this function performs the scores of the new observations on the rotated principal components. In other words, this function is projecting the new observations onto the principal components of PCAmix (or PCArot) obtained previoulsy on a separated dataset. Note that the new observations must be described with the same variables than those used in PCAmix (or PCArot). Usage ## S3 method for class 'PCAmix' predict(object, X.quanti = NULL, X.quali = NULL, rename.level = FALSE, ...) Arguments object an object of class PCAmix obtained with the function PCAmix or PCArot. X.quanti a numeric data matrix or an object that can be coerced to such a matrix (such as a numeric vector or a data frame with all numeric columns). X.quali a categorical matrix of data, or an object that can be coerced to such a matrix (such as a character vector, a factor or a data frame with all factor columns). rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: "variable_name=level_name". This prevents to have identical names for the levels. ... urther arguments passed to or from other methods. They are ignored in this function. Value Returns the matrix of the scores of the new observations on the principal components or on the rotated principal components of PCAmix. Author(s) <NAME> <<EMAIL>>, <NAME>. References <NAME>., <NAME>., <NAME>., <NAME>., Multivariate analysis of mixed data: The PCAmixdata R package, arXiv:1411.4911 [stat.CO]. See Also PCAmix,PCArot Examples # quantitative data data(decathlon) n <- nrow(decathlon) sub <- sample(1:n,20) pca<-PCAmix(decathlon[sub,1:10], graph=FALSE) predict(pca,decathlon[-sub,1:10]) rot <- PCArot(pca,dim=4) predict(rot,decathlon[-sub,1:10]) # quantitative and qualitative data data(wine) str(wine) X.quanti <- splitmix(wine)$X.quanti X.quali <- splitmix(wine)$X.quali pca<-PCAmix(X.quanti[,1:27],X.quali,ndim=4,graph=FALSE) n <- nrow(wine) sub <- sample(1:n,10) pca<-PCAmix(X.quanti[sub,1:27],X.quali[sub,],ndim=4) pred <- predict(pca,X.quanti[-sub,1:27],X.quali[-sub,]) plot(pca,axes=c(1,2)) points(pred[,c(1,2)],col=2,pch=16) text(pred[,c(1,2)], labels = rownames(X.quanti[-sub,1:27]), col=2,pos=3) print.MFAmix Print a ’MFAmix’ object Description This is a method for the function print for objects of the class MFAmix. Usage ## S3 method for class 'MFAmix' print(x, ...) Arguments x an object of class MFAmix generated by the function PCAmix. ... further arguments to be passed to or from other methods. They are ignored in this function. See Also MFAmix print.PCAmix Print a ’PCAmix’ object Description This is a method for the function print for objects of the class PCAmix. Usage ## S3 method for class 'PCAmix' print(x, ...) Arguments x an object of class PCAmix generated by the functions PCAmix and PCArot. ... further arguments to be passed to or from other methods. They are ignored in this function. See Also PCAmix , PCArot protein Protein data Description The data measure the amount of protein consumed for nine food groups in 25 European countries. The nine food groups are red meat (RedMeat), white meat (WhiteMeat), eggs (Eggs), milk (Milk), fish (Fish), cereal (Cereal), starch (Starch), nuts (Nuts), and fruits and vegetables (FruitVeg). Format A data frame with 25 rows (the European countries) and 9 columns (the food groups) Source Originated by <NAME> and cited in Hand et al., A Handbook of Small Data Sets, (1994, p. 297). recod Recoding of the data matrices Description Recoding of the quantitative and of the qualitative data matrix. Usage recod(X.quanti, X.quali,rename.level=FALSE) Arguments X.quanti a numerical data matrix. X.quali a categorical data matrix. rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: "variable_name=level_name". Value X X.quanti and X.quali concatenated in a single matrix. Y X.quanti with missing values replaced with mean values concatenated with the indicator matrix of X.quali with missing values replaced by zeros. Z X.quanti standardized (centered and reduced by standard deviations) concate- nated with the indicator matrix of X.quali centered and reduced with the square roots of the relative frequencies of the categories. W X.quanti standardized (centered and reduced by standard deviations) concate- nated with the indicator matrix of X.quali centered. n the number of observations. p the total number of variables p1 the number of quantitative variables p2 the number of qualitative variables g the means of the columns of Y s the standard deviations of the columns of Y G The indicator matix of X.quali with missing values replaced by 0 Gcod The indicator matix G reduced with the square roots of the relative frequencies of the categories recodqual Recoding of the qualitative data matrix. Description Recoding of the qualitative data matrix. Usage recodqual(X,rename.level=FALSE) Arguments X the qualitative data matrix. rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: "variable_name=level_name". Value G The indicator matix of X with missing values replaced by 0. Examples data(vnf) X <- vnf[1:10,9:12] tab.disjonctif.NA(X) recodqual(X) recodquant Recoding of the quantitative data matrix Description Recoding of the quantitative data matrix. Usage recodquant(X) Arguments X the quantitative data matrix. Value Z the standardized quantitative data matrix (centered and reduced with the stan- dard deviations.) g the means of the columns of X s the standard deviations of the columns of X (population version with 1/n) Xcod The quantitative matrix X with missing values replaced with the column mean values. Examples data(decathlon) X <- decathlon[1:5,1:5] X[1,2] <- NA X[2,3] <-NA rec <- recodquant(X) splitgroups splitgroups Description If the p variables of a data matrix of dimension (n,p) are separated into G groups, this functions splits this data matrix into G datasets according the groups membership. Usage splitgroups(data, groups, name.groups) Arguments data the a data matrix into G datasets with n rows and p columns. groups a vector of size p whose values indicate at which group belongs each variable. name.groups a vector of size G which contains names for each group we want to create. The names are given in the increasing order of the numbers of the groups. Value data.groups a list of G data matrix: one matrix for each group. listvar.groups The list of the variables in each group. Examples data(decathlon) split <- splitgroups(decathlon,groups=c(rep(1,10),2,2,3), name.groups=c("Epreuve","Classement","Competition")) split$data.groups$Epreuve splitmix splitmix Description Splits a mixed data matrix in two data sets: one with the quantitative variables and one with the qualitative variables. Here, the columns of class "integer are considered quantitative. If you want this column to be considered as qualitative, it must be of class character of factor. Usage splitmix(data) Arguments data a data matrix or a data.frame with a mixture of quantitative and qualitative vari- ables. Value X.quanti a data matrix containing only the quantitative variables. X.quali A data.frame containing only the qualitative variables. Examples data(decathlon) data.split <- splitmix(decathlon) data.split$X.quanti data.split$X.quali summary.MFAmix Summary of a ’MFAmix’ object Description This is a method for the function summary for objects of the class MFAmix. Usage ## S3 method for class 'MFAmix' summary(object, ...) Arguments object an object of class MFAmix obtained with the function MFAmix. ... further arguments passed to or from other methods. Value Returns the total number of observations, the number of quantitative variables, the number of qual- itative variables with the total number of levels. And all those values are also given by groups. See Also plot.MFAmix,MFAmix summary.PCAmix Summary of a ’PCAmix’ object Description This is a method for the function summary for objects of the class PCAmix. Usage ## S3 method for class 'PCAmix' summary(object, ...) Arguments object an object of class PCAmix obtained with the function PCAmix or PCArot. ... further arguments passed to or from other methods. Value Returns the matrix of squared loadings. For quantitative variables (resp. qualitative), squared load- ings are the squared correlations (resp. the correlation ratios) with the scores or with the rotated (standardized) scores. See Also plot.PCAmix,PCAmix,PCArot, Examples data(wine) X.quanti <- wine[,c(3:29)] X.quali <- wine[,c(1,2)] pca<-PCAmix(X.quanti,X.quali,ndim=4, graph=FALSE) summary(pca) rot<-PCArot(pca,3,graph=FALSE) summary(rot) supvar Supplementary variables projection Description supvar is a generic function for adding supplementary variables in PCAmix or MFAmix. The function invokes invokes two methods which depend on the class of the first argument. Usage supvar(obj, ...) Arguments obj an object of class PCAmix or MFAmix. ... further arguments passed to or from other methods. Details This generic function has two methods supvar.PCAmix and supvar.MFAmix supvar.MFAmix Supplementary variables in MFAmix Description Performs the coordinates of supplementary variables and groups on the component of an object of class MFAmix. Usage ## S3 method for class 'MFAmix' supvar(obj, data.sup, groups.sup, name.groups.sup, rename.level = FALSE, ...) Arguments obj an object of class MFAmix. data.sup a numeric matrix of data. groups.sup a vector which gives the groups of the columns in data.sup. name.groups.sup a vector which gives the names of the supplementary groups. rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: "variable_name=level_name". This prevents to have identical names of the levels. ... further arguments passed to or from other methods. Examples data(wine) X.quanti <- splitmix(wine)$X.quanti[,1:5] X.quali <- splitmix(wine)$X.quali[,1,drop=FALSE] X.quanti.sup <- splitmix(wine)$X.quanti[,28:29] X.quali.sup <- splitmix(wine)$X.quali[,2,drop=FALSE] data <- cbind(X.quanti,X.quali) data.sup <- cbind(X.quanti.sup,X.quali.sup) groups <-c(1,2,2,3,3,1) name.groups <- c("G1","G2","G3") groups.sup <- c(1,1,2) name.groups.sup <- c("Gsup1","Gsup2") mfa <- MFAmix(data,groups,name.groups,ndim=4,rename.level=TRUE,graph=FALSE) mfa.sup <- supvar(mfa,data.sup,groups.sup,name.groups.sup,rename.level=TRUE) supvar.PCAmix Supplementary variables in PCAmix Description Performs the coordinates of supplementary variables on the component of an object of class PCAmix. Usage ## S3 method for class 'PCAmix' supvar(obj, X.quanti.sup = NULL, X.quali.sup = NULL, rename.level = FALSE, ...) Arguments obj an object of class PCAmix. X.quanti.sup a numeric matrix of data. X.quali.sup a categorical matrix of data. rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: "variable_name=level_name". This prevents to have identical names of the levels. ... further arguments passed to or from other methods. See Also PCAmix Examples data(wine) X.quanti <- splitmix(wine)$X.quanti[,1:5] X.quali <- splitmix(wine)$X.quali[,1,drop=FALSE] X.quanti.sup <-splitmix(wine)$X.quanti[,28:29] X.quali.sup <-splitmix(wine)$X.quali[,2,drop=FALSE] pca<-PCAmix(X.quanti,X.quali,ndim=4,graph=FALSE) pcasup <- supvar(pca,X.quanti.sup,X.quali.sup) tab.disjonctif.NA Built an indicator matrix Description This function built the indicator matrix of a qualitative data matrix. Missing observations are indi- cated as NAs. Usage tab.disjonctif.NA(tab, rename.level = FALSE) Arguments tab a categorical data matrix.. rename.level boolean, if TRUE all the levels of the qualitative variables are renamed as fol- lows: variable_name=level_name. Details This function uses the code of the function tab.disjonctif implemented in the package FactoMineR but is different. Here, a NA value appears when a category has not been observed in a row. In the function tab.disjonctif of the package FactoMineR, a new column is created in that case. Value Returns the indicator matrix with NA for missing observations. Examples data(vnf) X <- vnf[1:10,9:12] tab.disjonctif.NA(X) vnf User satisfaction survey with 1232 individuals and 14 questions Description A user satisfaction survey of pleasure craft operators on the “Canal des Deux Mers”, located in South of France, was carried out by the public corporation “Voies Navigables de France” (VNF) responsible for managing and developing the largest network of navigable waterways in Europe Usage data(vnf) Format A data frame with 1232 observations and 14 qualitative variables. Source <NAME>., <NAME>., <NAME>. and <NAME>. (2012). Handling missing values with Regularized Iterative Multiple Correspondence Analysis. Journal of classification, Vol. 29, pp. 91-116. wine Wine Description The data used here refer to 21 wines of Val de Loire. Usage data(wine) Format A data frame with 21 rows (the number of wines) and 31 columns: the first column corresponds to the label of origin, the second column corresponds to the soil, and the others correspond to sensory descriptors. Source Centre de recherche INRA d’Angers <NAME>., <NAME>. & <NAME>. (2008). FactoMineR: An R Package for Multivariate Analysis. Journal of Statistical Software. 25(1). pp. 1-18.
github.com/cloudnativer/kube-install
go
Go
README [¶](#section-readme) --- The highly available multiple kubernetes cluster can be installed offline with one click in binary mode, as well as schedule installation, addition of kubernetes node, deletion of kubernetes node, destruction of kubernetes master, rebuild of kubernetes master, and uninstallation of cluster. (There is no need to install any software on the target host. You can deploy the highly available kubernetes cluster offline only by using an empty host!) ![kube-install](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/kube-install-logo.jpg) Switch Languages: [English Documents](README0.7.md) | [繁体中文文档](README0.7-zh-hk.md) | [简体中文文档](README0.7-zh.md) | [日本語の文書](README0.7-jp.md) ### [1] Compatibility Compatibility matrix: | | | | | | --- | --- | --- | --- | | **kube-install Version** | **Supported Kubernetes Version** | **Supported OS Version** | **Documentation** | | kube-install v0.7.* | kubernetes v1.23, v1.22, v1.20, v1.19, v1.18, v1.17 | CentOS 7 , RHEL 7 , CentOS 8 , RHEL 8 , SUSE Linux 15 , Ubuntu 20 | <README0.7.md> | | kube-install v0.6.* | kubernetes v1.22, v1.21, v1.20, v1.19, v1.18, v1.17, v1.16, v1.15, v1.14 | CentOS 7 , RHEL 7 , CentOS 8 , RHEL 8 , SUSE Linux 15 | <README0.6.md> | | kube-install v0.5.* | kubernetes v1.21, v1.20, v1.19, v1.18, v1.17, v1.16, v1.15, v1.14 | CentOS 7 , RHEL 7 | <README0.5.md> | | kube-install v0.4.* | kubernetes v1.21, v1.20, v1.19, v1.18, v1.17, v1.16, v1.15, v1.14 | CentOS 7 , RHEL 7 | <README0.4.md> | | kube-install v0.3.* | kubernetes v1.18, v1.17, v1.16, v1.15, v1.14 | CentOS 7 | <README0.3.md> | | kube-install v0.2.* | kubernetes v1.14 | CentOS 7 | <README0.2.md> | | kube-install v0.1.* | kubernetes v1.14 | CentOS 7 | <README0.1.md> | Notice: kube-install supports CentOS 7, CentOS 8, SUSE 15, RHEL 7 and RHEL 8 operating system environments. For a list of supported operating system distributions, please refer to [OS support list](docs/os-support.md). ### [2] Download kube-install package You can download the `kube-install-*.tgz` package from <https://github.com/cloudnativer/kube-install/releases>. For example, we have downloaded the `kube-install-allinone-v0.7.3.tgz` package. ``` # cd /root/ # curl -O https://github.com/cloudnativer/kube-install/releases/download/v0.7.3/kube-install-allinone-v0.7.3.tgz # tar -zxvf kube-install-allinone-v0.7.3.tgz # cd /root/kube-install/ ``` Notice: If your network quality is poor and the download package is slow, you can use the download tool that supports breakpoint continuation to download. ### [3] Install kubernetes cluster by CLI If you have four servers,kubernetes master software is installed on the three servers (192.168.1.11, 192.168.1.12, 192.168.1.13), and kubernetes node software is installed on the four servers (192.168.1.11, 192.168.1.12, 192.168.1.13, 192.168.1.14). The operating system of the server is pure CentOS Linux or RHEL(Red Hat Enterprise Linux). It's like this: | | | | | | --- | --- | --- | --- | | **IP Address** | **Role** | **OS Version** | **Root Password** | | 192.168.1.11 | k8s-master,k8s-node,kube-install | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | | 192.168.1.12 | k8s-master,k8s-node | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | | 192.168.1.13 | k8s-master,k8s-node | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | | 192.168.1.14 | k8s-node | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | You expect the architecture after installation to be as follows: ![kube-install-arch](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/kube-install-arch-1.jpg) Notice: We use 192.168.1.11 as the kube-install host. In fact, you can use any host as kube-install host or any host outside the kubernetes cluster! #### 3.1 Initialize system environment Please operate in the root user environment. Perform the system environment initialization operation on the kube-install host selected above: ``` # cd /root/kube-install/ # ./kube-install -init -ostype "centos7" ``` Notice: Please make sure that the `-ostype` flag you entered is correct, only support `rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15` these types of "ostype". #### 3.2 Open the SSH password free channel Before installation, please open the SSH password free channel from localhost to the target host. You can open the SSH password free channel by manually, or using the `kube-install -exec sshcontrol` command. ``` # cd /root/kube-install/ # ./kube-install -exec sshcontrol -sship "192.168.1.11,192.168.1.12,192.168.1.13,192.168.1.14" -sshpass "cloudnativer" ``` Or click the `Open SSH Channel of Host` button in the web platform to SSH through. Here is the process of SSH connection, [click here to view more details](docs/webssh0.7.md) ! #### 3.3 One click Install kubernetes cluster Please operate in the root user environment. Execute on the kube-install host selected above: ``` # cd /root/kube-install/ # ./kube-install -exec install -master "192.168.1.11,192.168.1.12,192.168.1.13" -node "192.168.1.11,192.168.1.12,192.168.1.13,192.168.1.14" -k8sver "1.22" -ostype "centos7" -label "192168001011" ``` Notice: * Please make sure that the `-ostype` flag you entered is correct, only support `rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15` these types of "ostype". Since the lower versions of CentOS 7 and RedHat 7 may lack kernel modules, 'Kube install' provides the function of automatically upgrading the operating system kernels of CentOS 7 and rhel7 to 4.19. You can choose to use this function by `-upgradekernel` or manually optimize the operating system kernel yourself. * Please select the CNI plug-ins you need to install. At present, 'Kube install' supports CNI plug-ins such as `Flannel`, `Calico`, `Kube-router`, `weave` and `Cilium`. If you need to install "cilium", please upgrade the Linux kernel to version 4.9 or above. In addition, if you need to specify the directory path to the Kubernetes cluster installation, you can set it using the `-softdir` parameter. #### 3.4 Login kubernetes dashboard UI Execute the following command on the kube-install you selected to view the kube-dashboard console URL and key: ``` # cat /opt/kube-install/loginkey.txt ``` ![loginkey](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/loginkey2.jpg) Login to the kube-dashboard console UI using the URL and key in the `/opt/kube-install/loginkey.txt` document.Here are the relevant screenshots: ![kube-dashboard](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/kube-dashboard3.jpg) ![kube-dashboard](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/kube-dashboard4.jpg) ### [4] Install kubernetes cluster by web platform You can also install the Kubernetes cluster using the kube-install web platform. #### 4.1 Initialize system environment Please operate in the root user environment. Perform the system environment initialization operation on the kube-install host selected above: ``` # cd /root/kube-install/ # ./kube-install -init -ostype "centos7" ``` Notice: Please make sure that the `-ostype` flag you entered is correct, only support `rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15` these ty pes of "ostype". #### 4.2 Run kube-install web service First run the web management service with the `systemctl start kube-install` command, and then open `http://your_kube-install_host_IP:9080` with a web browser. ``` # systemctl start kube-install.service # # systemctl status kube-install.service ● kube-install.service - kube-install One click fast installation of highly available kubernetes cluster. Loaded: loaded (/etc/systemd/system/kube-install.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2021-08-20 14:30:55 CST; 21min ago Docs: https://cloudnativer.github.io/ Main PID: 2768 (kube-install) CGroup: /system.slice/kube-install.service └─2768 /go/src/kube-install/kube-install -daemon ... ``` Notice: Kube-install web service listens to `TCP 9080` by default. If you want to modify the listening address, you can set it by modifying the `kube-install -daemon -listen ip:port` parameter in the `/etc/systemd/system/kube-install.service` file, [click here to view more details](docs/systemd0.7.md) ! #### 4.3 Use the web platform to install Second, Click the `Install Kubernetes` button in the upper right corner to start the installation operation. ![kube-dashboard](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/webinstall001.jpg) Notice: Before starting the installation, please open the SSH password free channel from localhost to the target host.You can use the `kube-install -exec sshcontrol` command to SSH through, or click the `Open SSH Channel of Host` button in the upper right corner to SSH through. Here is the process of SSH connection, [click here to view more details](docs/webssh0.7.md) ! ![kube-dashboard](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/webinstall002.jpg) For the installation process using the web platform, [click here to view more details](docs/webinstall0.7.md) ! ### [5] Add Node, Delete Node, Rebuild Master, and Uninstall Kube-install can not only quickly install the highly available kubernetes cluster, but also add k8s-node, delete k8s-node, delete k8s-master and rebuild k8s-master. Suppose you expect to install two servers (192.168.1.15 and 192.168.1.16) as k8s-nodes and join the kubernetets cluster in Chapter [2]. | | | | | | --- | --- | --- | --- | | **IP Address** | **Role** | **OS Version** | **Root Password** | | 192.168.1.11 | k8s-master,k8s-node,kube-install | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | | 192.168.1.12 | k8s-master,k8s-node | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | | 192.168.1.13 | k8s-master,k8s-node | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | | 192.168.1.14 | k8s-node | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | | **192.168.1.15** | k8s-node | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | | **192.168.1.16** | k8s-node | CentOS Linux release 7 or Red Hat Enterprise Linux(RHEL) 7 | cloudnativer | Execute the following command on kube-install host: ``` # kube-install -exec addnode -node "192.168.1.15,192.168.1.16" -k8sver "1.22" -ostype "centos7" -label "192168001011" ``` Notice: Please make sure that the `-ostype` flag you entered is correct, only support `rhel7`, `rhel8`, `centos7`, `centos8`, `ubuntu20`, `suse15` these types of "ostype". In addition, if you need to specify the directory path to add Kubernetes node, you can set it using the `-softdir` parameter. The architecture after installation is shown in the following figure: ![kube-install-arch](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/kube-install-arch-2.jpg) You can also add Kubernetes node using the kube-install web platform. For the installation process using the web platform, click "Add Node" to fill in the form to complete the expansion of Kubernetes node. [click here to view more details](docs/webinstall0.7.md) ! ![kube-dashboard](https://github.com/cloudnativer/kube-install/raw/v0.7.4/docs/images/webnodeadd001.jpg) You can click "Enable Terminal" and "Web Terminal" to use the Web terminal to manage the Kubernetes node server. Notice: you can [click here to view more operation documents](docs/operation0.7.md) about add k8s-node, delete k8s-node, delete k8s-master, rebuild k8s-master, and uninstall cluster. ### [6] Command line help documentation You can execute `kube-install -help` command to view the command line help document of kube-install, or [click here to view more command line help documents](docs/parameters0.7.md). ### [7] How to build it The build can be completed automatically by executing the `make` command. You can also [see more detailed build instructions here](docs/build.md). ### [8] How to Contribute If you have problems in use, [you can click here submit issues to us](https://github.com/cloudnativer/kube-install/issues), or fork it and submit PR. ``` # git clone your-fork-code # git checkout -b your-new-branch # git commit -am "Fix bug or add some feature" # git push origin your-new-branch ``` Welcome to submit issues or PR to us. Thank you to every contributor! Documentation [¶](#section-documentation) --- ![The Go Gopher](/static/shared/gopher/airplane-1200x945.svg) There is no documentation for this package.
ObjectMapper
cocoapods
Objective-C
objectmapper === About ObjectMapper --- ObjectMapper is an open-source framework for Objective-C and Swift that simplifies the process of converting objects between different representations, such as JSON and native Swift/Obj-C objects. It provides a simple and convenient way to map JSON data to model objects (and vice versa) without the need for manual parsing or boilerplate code. With ObjectMapper, you can easily serialize/deserialize models to JSON, create model objects from JSON dictionaries, perform deep JSON mapping, convert between CamelCase and snake_case, handle nested objects, and much more. This documentation page provides a comprehensive guide on how to use ObjectMapper in your projects, including installation instructions, basic usage, advanced features, and best practices. Whether you are a beginner or an experienced developer, this guide will help you leverage the power of ObjectMapper in your iOS/MacOS projects. ### Table of Contents * [Installation](#installation) * [Basic Usage](#basic-usage) * [Mapping Options](#mapping-options) * [Nested Objects](#nested-objects) * [Array Mapping](#array-mapping) * [Custom Transformations](#custom-transformations) * [Key Paths](#key-paths) * [Best Practices](#best-practices) ### Installation To start using ObjectMapper in your project, follow these steps: * Step 1: Add ObjectMapper to your project using CocoaPods or Swift Package Manager * Step 2: Import the ObjectMapper module in your Swift or Obj-C files * Step 3: Start using ObjectMapper in your project ### Basic Usage Mapping between objects and JSON data is effortless with ObjectMapper. Here’s a basic example: **1. Define your model class:** ``` class Person: Mappable { var name: String? var age: Int? required init?(map: Map) {} func mapping(map: Map) { name <- map["name"] age <- map["age"] } } ``` **2. Deserialize JSON into a model object:** ``` let jsonString = "{\"name\":\"<NAME>\",\"age\":30}" if let person = Mapper<Person>().map(jsonString) { print(person.name) print(person.age) } ``` This code creates a `Person` object and assigns the values from the JSON string to the corresponding properties (`name` and `age`). ### Mapping Options ObjectMapper provides various mapping options to customize the mapping behavior. Some of the commonly used options are: * Converting data types * Mapping complex objects * Ignoring properties * Setting default values * Transforming values ### Nested Objects Mapping nested objects is straightforward with ObjectMapper. Consider the following example: ``` class Address: Mappable { var street: String? var city: String? required init?(map: Map) {} func mapping(map: Map) { street <- map["street"] city <- map["city"] } } class Person: Mappable { var name: String? var age: Int? var address: Address? required init?(map: Map) {} func mapping(map: Map) { name <- map["name"] age <- map["age"] address <- map["address"] } } ``` ### Array Mapping ObjectMapper supports mapping arrays of objects, which is useful when dealing with JSON arrays. Here’s an example: ``` let jsonArray = "[{\"name\":\"<NAME>\",\"age\":30}, {\"name\":\"<NAME>\",\"age\":25}]" if let people = Mapper<Person>().mapArray(jsonArray) { for person in people { print(person.name) print(person.age) } } ``` This code maps an array of JSON objects to an array of `Person` objects. ### Custom Transformations ObjectMapper allows you to define custom transformations for your model properties. You can transform data types, format dates, or apply any other custom logic during mapping. Here’s an example: ``` class Event: Mappable { var name: String? var date: Date? required init?(map: Map) {} func mapping(map: Map) { name <- map["name"] date <- (map["date"], CustomDateTransform()) } } struct CustomDateTransform: TransformType { typealias Object = Date typealias JSON = String init() {} func transformFromJSON(_ value: Any?) -> Object? { if let dateString = value as? String { let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd" return formatter.date(from: dateString) } return nil } func transformToJSON(_ value: Object?) -> JSON? { if let date = value { let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd" return formatter.string(from: date) } return nil } } ``` ### Key Paths ObjectMapper supports mapping JSON key paths to nested properties. This feature is useful when working with complex JSON structures or when the property names in your model class don’t match the JSON keys. Here’s an example: ``` class User: Mappable { var name: String? var email: String? var address: String? required init?(map: Map) {} func mapping(map: Map) { name <- map["user.name"] email <- map["user.email"] address <- map["user.details.address"] } } ``` ### Best Practices When using ObjectMapper, consider the following best practices: * Define model classes conforming to the `Mappable` protocol * Keep your model classes clean and focused on data representation * Use naming conventions compatible with your JSON keys * Make use of mapping options for handling specific cases * Ensure consistent data type mapping By following these best practices, you can maintain clean and efficient code while taking full advantage of ObjectMapper’s capabilities.
github.com/containers/conmon-rs
go
Go
README [¶](#section-readme) --- ![](https://github.com/containers/conmon-rs/raw/v0.6.1/.github/logo/conmon-rs.png) [![ci](https://github.com/containers/conmon-rs/workflows/ci/badge.svg)](https://github.com/containers/conmon-rs/actions) [![gh-pages](https://github.com/containers/conmon-rs/workflows/gh-pages/badge.svg)](https://github.com/containers/conmon-rs/actions) [![codecov](https://codecov.io/gh/containers/conmon-rs/branch/main/graph/badge.svg)](https://codecov.io/gh/containers/conmon-rs) [![dependencies](https://deps.rs/repo/github/containers/conmon-rs/status.svg)](https://deps.rs/repo/github/containers/conmon-rs) [![builds](https://img.shields.io/badge/packages-copr-orange.svg)](https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/package/conmon-rs) [![docs](https://img.shields.io/badge/docs-main-blue.svg)](https://containers.github.io/conmon-rs/conmonrs/index.html) [![go-docs](https://godoc.org/github.com/containers/conmon-rs?status.svg)](https://pkg.go.dev/github.com/containers/conmon-rs/pkg/client) A pod level OCI container runtime monitor. The goal of this project is to provide a container monitor in Rust. The scope of conmon-rs encompasses the scope of the c iteration of [conmon](https://github.com/containers/conmon), including daemonizing, holding open container standard streams, writing the exit code. However, the goal of conmon-rs also extends past that of conmon, attempting to become a monitor for a full pod (or a group of containers). Instead of a container engine creating a conmon per container (as well as subsequent conmons per container exec), the engine will spawn a conmon-rs instance when a pod is created. That instance will listen over an UNIX domain socket for new requests to create containers, and exec processes within them. ### Obtain the latest version We provide statically linked binaries for every successfully built commit on `main` via our [Google Cloud Storage Bucket](https://console.cloud.google.com/storage/browser/cri-o/conmon-rs). Our provided [get script](https://github.com/containers/conmon-rs/blob/v0.6.1/scripts/get) can be used to download the latest version: ``` > curl https://raw.githubusercontent.com/containers/conmon-rs/main/scripts/get | bash ``` It is also possible to select a specific git SHA or the output binary path by: ``` > curl https://raw.githubusercontent.com/containers/conmon-rs/main/scripts/get | \ bash -s -- -t $GIT_SHA -o $OUTPUT_PATH ``` The script automatically verifies the created sigstore signatures if the local system has [`cosign`](https://github.com/sigstore/cosign) available in its `$PATH`. More information about how to use conmon-rs can be found in the [usage documentation](https://github.com/containers/conmon-rs/blob/v0.6.1/usage.md). If you want to create a new conmon-rs release, please refer to the [release documentation](https://github.com/containers/conmon-rs/blob/v0.6.1/release.md). ### Architecture The whole application consists of two main components: 1. The Rust server: [conmon-rs/server](https://github.com/containers/conmon-rs/blob/v0.6.1/conmon-rs/server) ([docs](https://containers.github.io/conmon-rs/conmonrs/struct.Server.html)) 2. A golang client: [pkg/client](https://github.com/containers/conmon-rs/blob/v0.6.1/pkg/client) ([docs](https://pkg.go.dev/github.com/containers/conmon-rs/pkg/client#ConmonClient)) The golang client should act as main interface while it takes care of creating the server instance via the Command Line Interface (CLI) as well as communicating to the server via [Cap’n Proto](https://capnproto.org). The client itself hides the raw Cap’n Proto parts and exposes dedicated golang structures to provide a clean API surface. The following flow chart explains the client and container creation process: ![](https://github.com/containers/conmon-rs/raw/v0.6.1/.github/img/conmon-rs.png) ### Goals * Single conmon per pod (post MVP/stretch) * Keeping RSS under 3-4 MB * Support exec without respawning a new conmon * API with RPC to make it extensible (should support golang clients) * Act as pid namespace init * Join network namespace to solve running hooks inside the pod context * Use pidfds (it doesn't support getting exit code today, though) * Use io_uring * Plugin support for seccomp notification * Logging rate limiting (double buffer?) * Stats * IPv6 port forwarding ### Future development In the future, conmon-rs may: * Be extended to mirror the functionality for each runtime operation. + Thus reducing the amount of exec calls that must happen in the container engine, and reducing the amount of memory it uses. * Be in charge of configuring the namespaces for the pod + Taking over functionality that [pinns](https://github.com/cri-o/cri-o/tree/main/pinns) has historically done. None
shinyIRT
cran
R
Package ‘shinyIRT’ October 14, 2022 Type Package Title Item Response Theory Analysis with a 'shiny' Application Version 0.1 Author <NAME> [aut, cre] Maintainer <NAME> <<EMAIL>> Description Performing Item Response Theory analysis such as parameter estimation, ability estima- tion, item and model fit analyse, local independence assumption, dimensionality assumption, char- acteristic and information curves under various models with a user friendly 'shiny' interface. Imports magrittr, shiny, shinydashboard, shinycssloaders, readxl, stats, mirt, psych, irtoys License GPL (>= 3) Encoding UTF-8 LazyData true NeedsCompilation no Repository CRAN Date/Publication 2021-01-13 18:30:02 UTC R topics documented: shinyIR... 1 shinyIRT Item Response Theory Analysis with a Shiny Application Description Performing Item Response Thory analysis such as paramater estimation, ability estimation, item and model fit analyse, local independence assumption, dimensionality assumption, charachteristic and information curves under various models with a user friendly ’shiny’ interface. Usage shinyIRT() Value No return value, launches ’shiny’ application Examples if(interactive()){ ## Run this code for launching the 'shiny' application shinyIRT() }
denoiSeq
cran
R
Package ‘denoiSeq’ October 13, 2022 Type Package Title Differential Expression Analysis Using a Bottom-Up Model Version 0.1.1 Description Given count data from two conditions, it determines which transcripts are differen- tially expressed across the two conditions using Bayesian inference of the parameters of a bot- tom-up model for PCR amplification. This model is developed in <NAME>, Hi- <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>- <NAME>, <NAME>, and <NAME>- man (2012), <http://www.pnas.org/content/109/39/15865.full>, and results in a distri- bution for the counts that is a superposition of the binomial and negative binomial distribution. License GPL-2 Encoding UTF-8 LazyData true RoxygenNote 6.0.1 Imports methods, stats, utils Suggests knitr, rmarkdown VignetteBuilder knitr, rmarkdown NeedsCompilation no Author <NAME> [aut, cre], <NAME> [aut] Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2018-01-31 20:26:31 UTC R topics documented: denoise... 2 ERC... 3 getSamplesO... 4 readsDat... 4 result... 5 setInitValue... 6 setReplicate... 7 setStepSize... 8 simda... 8 tunedStepSiz... 9 denoiseq Differential expression analysis using a bottom-up model Description The denoiseq function perfoms default analysis by first normalising the counts and then estimating the model parameters using Bayesian inference. Size factors are estimated from count matrix and used for the normalisation. The Gibb’s sampling algorithm is then used to sample from the joint posterior distribution of the model parameters. Usage denoiseq(RDobject, steps, tuningSteps = floor(steps/3)) Arguments RDobject A readsData object. steps An integer representing the number of iterations. tuningSteps An integer representing the number of iterations to be used for tuning the step sizes. Defaulted to a third of steps. Details The denoiSeq package is based on a bottom-up model for PCR sequencing developed by Ndifon et al. (2012). The model generates, in a bottom-up manner, a probability distribution for the final copy number of a gene, that is a superposition of the negative binomial and the binomial distributions. The derived distribution has three main parameters, i.e N, p and f, which represent the initial gene amount before amplification, the amplification efficiency and the dilution rate, respectively. Bayesian inference is used to estimate the model parameters. The counts in each column are used to estimate the size factors (Anders and Huber, 2010) which are in turn used to normalise the counts. For an m by n matrix, inference aims at estimating the three sets of parameters, i.e p, f and Ni ’s (2m in total because we are considering 2 conditions with the same m genes in each). denoiseq uses the rows in each condition to estimate parameter Ni for each gene in that condition, and uses the entire dataset, combined from both conditions, to estimate p and f . For differential expression analysis, the primary parameters of interest are NiA and NiB (from conditions A and B respectively), for each gene i. Value The same readsData object but with a filled output slot. The output slot now contains 2 lists, i.e samples which contains posterior samples for each of the parameters Ni , p and f , and stepsize which contains the tuned step sizes. Examples #pre -filtering to remove lowly expressed genes ERCC <- ERCC[rowSums(ERCC)>0, ] RD <- new('readsData', counts = ERCC) steps <- 30 #30 steps are used for illustration here. Atleast 5000 steps are adequate. BI <- denoiseq(RD, steps) ERCC ERCC dataset Description RNA-seq data from biological replicates of 3 cell lines. This dataset contains a mixture of spike-in synthetic oligonucleotides that are mixed into samples A and B at four mixing ratios: 1/2, 2/3, 1 and 4. Usage ERCC Format A matrix with 92 rows and 10 columns: Conditions There are 5 columns for each of the conditions A and B. Transcripts There are 92 distinct transcripts distinguishable by their names. Source https://bitbucket.org/soccin/seqc/src/ccd0502ef25422e83b3f208f50f8e252f62f17a3/data/ ?at=master getSamplesOf Get posterior samples of a parameter Description Extracts posterior samples of individual parameters contained in the output slot of the readsData object returned by denoiSeq. Usage getSamplesOf(RDobject, parm, steps, condition = "A") Arguments RDobject A readsData object with a filled output slot. parm A parameter name string i.e p, f or gene name. steps An integer representing number of iterations used while calling denoiseq. condition A character (either A or B) representing the two experimental conditions. Value A vector of parameter samples, of length equal to steps. Examples #pre-filtering to remove lowly expressed genes ERCC <- ERCC[rowSums(ERCC)>0, ] RD <- new('readsData', counts = ERCC) steps <- 30 #30 steps are just for illustration here. Atleast 5000 steps are adequate. BI <- denoiseq(RD, steps) samples <- getSamplesOf(BI, 'ERCC-00051', steps) plot(samples, type='l', main = 'History plot of ERCC-00051') readsData An S4 class to represent summarised counts and the output of Bayesian inference. Description An S4 class to represent summarised counts and the output of Bayesian inference. Slots counts A positive integer matrix containing summarised counts for each genomic event (genes, exons, transcripts, etc) in the two conditions, A and B. replicates A list containing the indices of the columns that belong to each of the two experimen- tal conditions, A and B. It is defaulted to A = 1:(n/2), B = (n/2+1):n for an m by n matrix. geneNames A character vector containing the names of the genomic event. It is appropriately de- faulted to names of the matrix. initValues A list containing initial values for each parameter. Defaulted to N_A = rep(1, nrow(counts)), N_B = rep(1, nrow(counts)), p= 0.0001, f = 0.01. stepSizes A list containing step sizes for sampling each parameter. Defaulted to stepsizeN_A = rep(1, nrow(counts)), stepsizeN_B = rep(1, nrow(counts)), stepsize_p= 1e3, stepsize_f = 5e7 output A list containing the samples for each parameter which are generated by Bayesian infer- ence. It can only be filled inside the results function. results Compute the test statistic Description Extracts posterior samples of the parameters which are returned by denoiseq function and computes the summary and test statistics. Usage results(RDobject, steps, burnin = floor(steps/3), rope_limit = 0.5) Arguments RDobject A readsData object with a filled output slot. steps An integer representing the number of iterations. burnin An integer for the number of iterations to be considered as burn in values. A default value equivalent to a third of steps is used. rope_limit A float that delimits the range of the region of practical equivalence, ROPE. A default value of 0.5 is used. Details To calculate the test statistic, this function first log2 transforms the posterior samples of the two relevant parameters i.e NiA and NiB . It then randomly subtracts posterior samples of one of the parameters from the other and determines the proportion of this distribution of differences that lies in the region of practical equivalence (ROPE) (Kruschke, 2011). The genes can then be arranged in an ascending order of the ROPE_propn column and we can select the most differentially expressed genes as those whose ROPE_propn is less than a particular threshold value. Using both real and simulated data, optimal values between 0.0007 and 0.4 were obtained for the threshold. Value A dataframe with 3 columns namely; the log2 fold change (log2FC), the standard error of the log2 fold change (lgfcSE) and the test static (ROPE_propn). Examples #pre -filtering to remove lowly expressed genes ERCC <- ERCC[rowSums(ERCC) > 0, ] RD <- new('readsData', counts = ERCC) steps <- 30 #30 steps are just for illustration here. At least 5000 steps are adequate. BI <- denoiseq(RD, steps) rez <- results(BI, steps) head(rez) #Re-ordering according to most differentially expressed rez <- rez[with(rez, order( ROPE_propn)), ] head(rez, 10) #Determine significant genes using a threshold of 0.38. sgf <- rez[rez$ROPE_propn<0.38, ] head(sgf) dim(sgf) setInitValues Generic for altering the initValues slot Description Updates the value of the initValues slot for the readsData object supplied. Usage setInitValues(object, initval) ## S4 method for signature 'readsData' setInitValues(object, initval) Arguments object a readsData object initval A list of initial values for each of the parameters. Value The same readsData object with the initValues slot updated. Methods (by class) • readsData: Alters the value of the initValues slot of a readsData object. Examples RD <- new("readsData", counts = ERCC) initvals <- list(N_A = rep(2, 92), N_B = rep(1.5, 92), p = 0.0005, f = 0.03) RD <- setInitValues(RD, initvals) RD@initValues setReplicates Generic for the altering setReplicates slot. Description Updates the value of the replicates slot for the readsData object supplied. Usage setReplicates(object, repsval) ## S4 method for signature 'readsData' setReplicates(object, repsval) Arguments object a readsData object repsval A list of column indices for the samples in each condition. Value The same readsData object with the replicates slot updated. Methods (by class) • readsData: Alters the value of the replicates slot of a readsData object. Examples RD <- new("readsData", counts = ERCC) reps <- list(A = c(2,4,5,3,10),B = c(9,7,1,8,6)) RD <- setReplicates(RD, reps) RD@replicates setStepSizes Generic for altering the stepSizes slot. Description Updates the value of the stepSizes slot for the readsData object supplied. Usage setStepSizes(object, stepSizesval) ## S4 method for signature 'readsData' setStepSizes(object, stepSizesval) Arguments object a readsData object stepSizesval A list of step sizes for each of the parameters. Value The same readsData object with the stepSizes slot updated. Methods (by class) • readsData: Alters the value of the stepSizes slot of a readsData object. Examples RD <- new("readsData", counts = ERCC) ss <- list(N_A = rep(2, 92), N_B = rep(1.5, 92), p = 3e5, f = 3.5e7) RD <- setStepSizes(RD, ss) RD@stepSizes simdat simulated data Description A dataset containing simulated data based on parameter values N = 1,2,...,50 , p = 0.0017 and f =0.1,0.2,...,0.5. The values of N were repeated 15 times to generate 750 genes. This dataset contains 750 observational genes with 5 experimental samples for each condition, summarised as a 750 by 10 integer matrix. The first 428 genes are not differentially expressed between the two conditions whereas the last 322 genes are. The gene counts were generated in accordance to the probability distribution derived in Ndifon et al. Usage simdat Format A matrix with 750 rows and 10 columns: Conditions There are 5 columns for each of the conditions A and B. Transcripts There are 750 distinct genes without names. tunedStepSize Get values of the tuned step sizes. Description Extracts the tuned step sizes for sampling each parameter from the return value of denoiseq. Usage tunedStepSize(RDobject) Arguments RDobject A readsData object with a filled output slot. Value A list of the tuned step sizes for sampling each of the parameters. Examples #pre -filtering to remove lowly expressed genes ERCC <- ERCC[rowSums(ERCC)>0, ] RD <- new('readsData', counts = ERCC) steps <- 30 #30 steps are just for illustration here. Atleast 5000 steps are adequate. BI <- denoiseq(RD, steps) tunedStepSize(BI)
github.com/bzppx/bzppx-codepub
go
Go
README [¶](#section-readme) --- ![brand](https://github.com/bzppx/bzppx-codepub/raw/v0.8.4/docs/guide_res/images/brand.png) 暴走皮皮虾之代码发布系统,是现代的持续集成发布系统,由后台管理系统和agent两部分组成,一个运行着的agent就是一个节点,本系统并不是造轮子,是"鸟枪"到"大炮"的创新,对"前朝遗老"的革命. [![stable](https://img.shields.io/badge/stable-stable-green.svg)](https://github.com/bzppx/bzppx-codepub/) [![license](https://img.shields.io/github/license/bzppx/bzppx-codepub.svg?style=plastic)](#readme-) [![download_count](https://img.shields.io/github/downloads/bzppx/bzppx-codepub/total.svg?style=plastic)](https://github.com/bzppx/bzppx-codepub/releases) [![download](https://img.shields.io/github/release/bzppx/bzppx-codepub.svg?style=plastic)](https://github.com/bzppx/bzppx-codepub/releases) ### 特点 * 基于golang编写,站在巨人肩膀上,充分利用golang的协程,channel还有高并发的特点,甩其它基于虚拟机或者解释性语言编写的发布系统几条街. * 极速部署,其实部署是不存在的,本系统只需要下载二进制文件执行即可,想用立刻就能用. * GIT仓库支持,可以远程拉取GIT代码发布到集群节点上. * 集群发布,一个GIT仓库可以配置发布到N个节点的集群. * 命令支持,发布代码的前后,都可以自己定义执行一段系统命令,比如:重启程序. * 构建发布,java,c,c++,golang等编写的程序需要先编译"发布包",然后分发"发布包"到节点集群. * 封版管理,特有的封版本功能,同时具备封版白名单.公司在一些特殊时期,比如电商公司在某些促销或其它节日活动的时候,为了保证线上服务,往往需要对整个发布代码功能暂停,那么封版功能就十分好用了. * 高性能,发布代码的速度极快,对系统环境的要求很低. * 跨平台,Linux,windows,mac,树莓派,路由器等等... * 人性化的权限控制,一般一个部门的老大是超级管理员角色,老大只需要管理谁是管理员即可,管理员只需要管理用户即可,用户能发布代码.每层的权限系统都做控制. * 界面优美,交互简单,更符合现在的大众web审美. * 公告功能,有时候有些重要事情需要告知使用发布系统的开发者,那么公告功能就很好的解决了这个问题. * 集成外部登录,本系统支持通过外部系统认证用户,比如与公司的LDAP登录融合,只需要根据我们的开发文档花费几十分钟写个HTTP API接口即可. ### 安装 #### 1. codepub 安装 打开 <https://github.com/bzppx/bzppx-codepub/releases> 找到对应平台的版本下载编译好的压缩包 ``` # 创建目录 $ mkdir codepub $ cd codepub # 以 linux amd64 为例,下载版本 0.8 压缩包 $ wget https://github.com/bzppx/bzppx-codepub/releases/download/v0.8/bzppx-codepub-linux-amd64.tar.gz # 解压到当前目录 $ tar -zxvf bzppx-codepub-linux-amd64.tar.gz # 进入程序安装目录 $ cd install # 执行安装程序,默认端口为 8090,指定其他端口加参数 --port=8087 $ ./install # 浏览器访问 http://ip:8090 进入安装界面,完成安装配置 # Ctrl + C 停止 install 程序, 启动 codepub 管理后台 $ cd .. $ ./codepub --conf conf/codepub.conf ``` #### 2. codepub-agent 安装 请查看 <https://github.com/bzppx/bzppx-agent-codepub#### 3. nginx 配置反向代理 ``` upstream frontends { server 127.0.0.1:8088; # codepub 监听的ip:port } server { listen 80; server_name codepub.com www.codepub.com; location / { proxy_pass_header Server; proxy_set_header Host $http_host; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_pass http://frontends; } # 静态资源交由nginx管理 location /static { root /www/bzppx-codepub; # codepub 的根目录 expires 1d; add_header Cache-Control public; access_log off; } } ``` #### [详细文档](https://github.com/bzppx/bzppx-codepub-doc) ### 系统介绍 #### 1.用户功能 | - | 用户管理 | 设置管理员 | 发布代码 | 回滚代码 | 封版 | 公告管理 | 项目管理 | 节点管理 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | `超级管理员` | √ | √ | √ | √ | √ | √ | √ | √ | | `管理员` | √ | × | √ | √ | √ | √ | √ | √ | | `普通用户` | × | × | √ | √ | × | × | × | × | #### 2.系统界面,先睹为快 ##### 2.1 安装 ![install](https://github.com/bzppx/bzppx-codepub/raw/v0.8.4/docs/guide_res/images/install.png) ##### 2.2 登录 ![login](https://github.com/bzppx/bzppx-codepub/raw/v0.8.4/docs/guide_res/images/login.png) ##### 2.2 面板 ![login](https://github.com/bzppx/bzppx-codepub/raw/v0.8.4/docs/guide_res/images/index.png) ##### 2.3 添加节点 ![login](https://github.com/bzppx/bzppx-codepub/raw/v0.8.4/docs/guide_res/images/add-node.png) ##### 2.4 添加项目 ![login](https://github.com/bzppx/bzppx-codepub/raw/v0.8.4/docs/guide_res/images/add-project.png) ##### 2.5 发布代码 ![login](https://github.com/bzppx/bzppx-codepub/raw/v0.8.4/docs/guide_res/images/publish.png) ##### 2.6 节点进度 ![login](https://github.com/bzppx/bzppx-codepub/raw/v0.8.4/docs/guide_res/images/task.png) ### 开发 环境要求:go 1.8 ``` $ git clone https://github.com/bzppx/bzppx-codepub.git $ cd bzppx-codepub $ go build ./ ``` ### 反馈 欢迎提交意见和代码 <https://github.com/bzppx/bzppx-codepub/issues> 官方交流 QQ 群:547481058 #### License MIT #### 谢谢 Create By BZPPX Documentation [¶](#section-documentation) --- ![The Go Gopher](/static/shared/gopher/airplane-1200x945.svg) There is no documentation for this package.
chatter
rust
Rust
Crate chatter === Chatter provides a macro that translates a human-readable script into a format that can be easily used in Rust. Basic Usage --- The following is an example of a basic chatter script: ``` This is an example line This line is followed by a choice: - continue to branch 1 - switch to branch 2 -> branch_2 # branch_1 This line is in branch 1 -> end # branch_2 This line is in branch 2 # end ``` Chatter parses the above script into a useful format, a Chat. However, how that chat is run is left to the user. Chatterbox is an example of a cli runner. The basic flow of running a chat follows: ``` use chatter::{chatter, Chat, ChatContent, ChatPosition, Choice, Line}; fn main() { let example_chat = chatter! {r#" INSERT CHATTER SCRIPT HERE "#}; run(&example_chat); } fn run(chat: &Chat) { let mut current_position = ChatPosition::start(); while current_position != ChatPosition::end() { current_position = step(chat, current_position); } } fn step(chat: &Chat, position: ChatPosition) -> ChatPosition { let content = match chat.get(position) { Some(content) => content, None => return ChatPosition::end(), }; match content { ChatContent::Line(line) => handle_line(line), ChatContent::Choices(choices) => handle_choices(choices), } } fn handle_line(line: &Line) -> ChatPosition { // Present the line to the player // Wait for timer/player to skip // Return line.next() todo!() } fn handle_choices(choices: &Vec<Choice>) -> ChatPosition { // Present the choices to the player // Wait for player to make a selection // Return the selection choice's next() todo!() } ``` Tags --- To define more complex behaviour, you can use tags. Tags can be applied to both lines and choices. A chatter script example is provided below. ``` [Narrator] You attempt to open the door, but it doesn't budge. - [Player, strength_over_14] Kick down the door. - [Player, thievery_atleast_expert inventory_includes_lockpick] Pick the lock. - [Player] Call out "Is anyone in there?" - [Player] Walk way. ``` The list of tags for a line or choice can be obtained as strings. More usefully, Chatter provides a Tag trait. Some of the above choices include requirements. They could be represented by the following type: ``` use chatter::Tag; enum Requirement { Ability{ability: Ability, min: u32}, Skill{skill: Skill, level: SkillLevel}, Inventory{item: Item, count: u32} } impl Requirement { fn fufilled(&self, player: &Player) -> bool { todo!() } } impl Tag for Requirement { fn from(string: &str) -> Option<Self> { todo!() } } ``` The list of requirements (ignoring other tags) can be be easily obtained from a given Choice. Then, that choice could be offered to the player only if all the requirements are met. Chatter doesn’t define this behaviour - the interpretation and use of tags is left to the program using the library. A non-exhaustive list of possible uses follows: * Character names * Art selection (A character might have different art for different facial expressions, for example) * Text decoration (font, size, color, bold, italic) * Choice requirements (As above, but could also be used for NPC dialogue; if the player has no gold say A, else say B) * Choice randomization (tags could be used to assign weights) * Game state changes (enter combat, invetory changes, relationship/alignment changes) Chatter Definitions --- A **Line** is any line that doesn’t start with **-** or **#**. If it starts with square brackets, then the contents of the brackets are **Tag**s. Then, it must include text. **[tag] -> branch** is invalid. A **Choice** starts with **-** but otherwise the follows the same rules as a **Line**. **Choice**s must exist in groups of at least two. An empty line separates two seperate groups of **Choice**s. Any **Choice** without a **Goto** will be followed by the next line after the group. A **Branch** is a line that starts with **#** and acts as a marker for **Goto**s. A **Goto** is marked by **->** and must be followed by a branch label that exists. They be appended to the end of a **Line** or **Choice**, and indicate that the dialog moves to the relevant branch after that **Line** or if that **Choice** is selected. They can also be placed on a new line, applying to the whatever precedes it. **Tag**s are separated by commas and whitespace and contained within square brackets, at the start of a **Line** or **Choice**. **Tag**s and **Branch** names can only contain alphanumeric characters and underscores. Text in a **Line** or **Choice** can contain anything except a new line, or **->**. It also cannot start with **-** or **#**. Comments start with /* and end with */. **Line**s and **Choice**s don’t overflow; a new line indications a new **Line** or **Choice**. A More Complex Example --- A final, more complicated example of a chatter script follows: ``` [Guard] By order of the Jarl, stop right there! [Guard] You have commited crimes against Skyrim and her people. What say you in your defense? - [Player] You caught me. I'll pay off my bounty. -> bounty - [Player] I submit. Take me to jail. -> jail - [Player, starts_combat] I'd rather die than go to prison! - [Guard, random_weight_1.0 requires_imperial] Then suffer the Emperor's wrath. - [Guard, random_weight_1.0 requires_stormcloak] Skyrim has no use for your kind. - [Guard, random_weight_1.0] Then pay with your blood. - [Guard, random_weight_2.0] That can be arranged. - [Guard, random_weight_1.0] So be it. -> end # jail [Guard, imprison_player] I guess you're smarter than you look. -> end # bounty - [Guard, requires_player_male] Smart man. - [Guard, requires_player_female] Smart woman. [Guard] Now come along with us. We'll take any stolen goods, and you'll be free to go. [Guard] After you pay the fine, of course. # end ``` Macros --- * chatterThe macro for parsing chatter script into a Chat. The script must be a raw string literal, `r#"SCRIPT"#`. Structs --- * ChatRepresents a whole dialogue, created with the chatter macro. * ChatPositionEvery ChatContent in a Chat has a position, and every Line and Choice has a next position. No ChatContent ever exists at `ChatPosition::end()`. * ChoiceA Vec of choices represents a set of possible options, one of which can be taken. They allow the dialogue to branch. * LineRepresents a line of dialogue. A Chat that consists of just lines and no choices will play the same every time. Enums --- * ChatContentEither a Line or a Vec of Choices. Traits --- * TagA trait that allows more ergonomic checking tags on a Tagged type. * TaggedBoth Line and Choice can be tagged. Crate chatter === Chatter provides a macro that translates a human-readable script into a format that can be easily used in Rust. Basic Usage --- The following is an example of a basic chatter script: ``` This is an example line This line is followed by a choice: - continue to branch 1 - switch to branch 2 -> branch_2 # branch_1 This line is in branch 1 -> end # branch_2 This line is in branch 2 # end ``` Chatter parses the above script into a useful format, a Chat. However, how that chat is run is left to the user. Chatterbox is an example of a cli runner. The basic flow of running a chat follows: ``` use chatter::{chatter, Chat, ChatContent, ChatPosition, Choice, Line}; fn main() { let example_chat = chatter! {r#" INSERT CHATTER SCRIPT HERE "#}; run(&example_chat); } fn run(chat: &Chat) { let mut current_position = ChatPosition::start(); while current_position != ChatPosition::end() { current_position = step(chat, current_position); } } fn step(chat: &Chat, position: ChatPosition) -> ChatPosition { let content = match chat.get(position) { Some(content) => content, None => return ChatPosition::end(), }; match content { ChatContent::Line(line) => handle_line(line), ChatContent::Choices(choices) => handle_choices(choices), } } fn handle_line(line: &Line) -> ChatPosition { // Present the line to the player // Wait for timer/player to skip // Return line.next() todo!() } fn handle_choices(choices: &Vec<Choice>) -> ChatPosition { // Present the choices to the player // Wait for player to make a selection // Return the selection choice's next() todo!() } ``` Tags --- To define more complex behaviour, you can use tags. Tags can be applied to both lines and choices. A chatter script example is provided below. ``` [Narrator] You attempt to open the door, but it doesn't budge. - [Player, strength_over_14] Kick down the door. - [Player, thievery_atleast_expert inventory_includes_lockpick] Pick the lock. - [Player] Call out "Is anyone in there?" - [Player] Walk way. ``` The list of tags for a line or choice can be obtained as strings. More usefully, Chatter provides a Tag trait. Some of the above choices include requirements. They could be represented by the following type: ``` use chatter::Tag; enum Requirement { Ability{ability: Ability, min: u32}, Skill{skill: Skill, level: SkillLevel}, Inventory{item: Item, count: u32} } impl Requirement { fn fufilled(&self, player: &Player) -> bool { todo!() } } impl Tag for Requirement { fn from(string: &str) -> Option<Self> { todo!() } } ``` The list of requirements (ignoring other tags) can be be easily obtained from a given Choice. Then, that choice could be offered to the player only if all the requirements are met. Chatter doesn’t define this behaviour - the interpretation and use of tags is left to the program using the library. A non-exhaustive list of possible uses follows: * Character names * Art selection (A character might have different art for different facial expressions, for example) * Text decoration (font, size, color, bold, italic) * Choice requirements (As above, but could also be used for NPC dialogue; if the player has no gold say A, else say B) * Choice randomization (tags could be used to assign weights) * Game state changes (enter combat, invetory changes, relationship/alignment changes) Chatter Definitions --- A **Line** is any line that doesn’t start with **-** or **#**. If it starts with square brackets, then the contents of the brackets are **Tag**s. Then, it must include text. **[tag] -> branch** is invalid. A **Choice** starts with **-** but otherwise the follows the same rules as a **Line**. **Choice**s must exist in groups of at least two. An empty line separates two seperate groups of **Choice**s. Any **Choice** without a **Goto** will be followed by the next line after the group. A **Branch** is a line that starts with **#** and acts as a marker for **Goto**s. A **Goto** is marked by **->** and must be followed by a branch label that exists. They be appended to the end of a **Line** or **Choice**, and indicate that the dialog moves to the relevant branch after that **Line** or if that **Choice** is selected. They can also be placed on a new line, applying to the whatever precedes it. **Tag**s are separated by commas and whitespace and contained within square brackets, at the start of a **Line** or **Choice**. **Tag**s and **Branch** names can only contain alphanumeric characters and underscores. Text in a **Line** or **Choice** can contain anything except a new line, or **->**. It also cannot start with **-** or **#**. Comments start with /* and end with */. **Line**s and **Choice**s don’t overflow; a new line indications a new **Line** or **Choice**. A More Complex Example --- A final, more complicated example of a chatter script follows: ``` [Guard] By order of the Jarl, stop right there! [Guard] You have commited crimes against Skyrim and her people. What say you in your defense? - [Player] You caught me. I'll pay off my bounty. -> bounty - [Player] I submit. Take me to jail. -> jail - [Player, starts_combat] I'd rather die than go to prison! - [Guard, random_weight_1.0 requires_imperial] Then suffer the Emperor's wrath. - [Guard, random_weight_1.0 requires_stormcloak] Skyrim has no use for your kind. - [Guard, random_weight_1.0] Then pay with your blood. - [Guard, random_weight_2.0] That can be arranged. - [Guard, random_weight_1.0] So be it. -> end # jail [Guard, imprison_player] I guess you're smarter than you look. -> end # bounty - [Guard, requires_player_male] Smart man. - [Guard, requires_player_female] Smart woman. [Guard] Now come along with us. We'll take any stolen goods, and you'll be free to go. [Guard] After you pay the fine, of course. # end ``` Macros --- * chatterThe macro for parsing chatter script into a Chat. The script must be a raw string literal, `r#"SCRIPT"#`. Structs --- * ChatRepresents a whole dialogue, created with the chatter macro. * ChatPositionEvery ChatContent in a Chat has a position, and every Line and Choice has a next position. No ChatContent ever exists at `ChatPosition::end()`. * ChoiceA Vec of choices represents a set of possible options, one of which can be taken. They allow the dialogue to branch. * LineRepresents a line of dialogue. A Chat that consists of just lines and no choices will play the same every time. Enums --- * ChatContentEither a Line or a Vec of Choices. Traits --- * TagA trait that allows more ergonomic checking tags on a Tagged type. * TaggedBoth Line and Choice can be tagged. Macro chatter::chatter === ``` chatter!() { /* proc-macro */ } ``` The macro for parsing chatter script into a Chat. The script must be a raw string literal, `r#"SCRIPT"#`. Trait chatter::Tag === ``` pub trait Tag: Sized { // Required method fn from(string: &str) -> Option<Self>; } ``` A trait that allows more ergonomic checking tags on a Tagged type. Required Methods --- #### fn from(string: &str) -> Option<SelfConvert a tag name (alphanumeric and underscore characters) to a tag of this type. Implementors --- Struct chatter::Choice === ``` pub struct Choice { /* private fields */ } ``` A Vec of choices represents a set of possible options, one of which can be taken. They allow the dialogue to branch. Implementations --- ### impl Choice #### pub fn get_text(&self) -> &'static str #### pub fn get_next(&self) -> ChatPosition #### pub fn new( text: &'static str, tags: &'static [&'static str], next: Option<usize> ) -> Choice #### pub fn new_group(choices: Vec<Choice>) -> ChatContent Trait Implementations --- ### impl Tagged for Choice #### fn get_tag_names(&self) -> &'static [&'static str] #### fn includes_tag_name(&self, tag: &str) -> bool #### fn get_tags<T: Tag>(&self) -> Vec<TReturns all the instances of a tag of type `T`. Best used for tags that are not unqiue (such as choice requirements).#### fn get_tag<T: Tag>(&self) -> Option<TReturns the first instance of a tag of type `T`, if it exists. Best used for tags that are unique (such as a speaker name).#### fn includes_tag<T: Tag + PartialEq>(&self, tag: &T) -> bool Auto Trait Implementations --- ### impl RefUnwindSafe for Choice ### impl Send for Choice ### impl Sync for Choice ### impl Unpin for Choice ### impl UnwindSafe for Choice Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum chatter::ChatContent === ``` pub enum ChatContent { Line(Line), Choices(Vec<Choice>), } ``` Either a Line or a Vec of Choices. Variants --- ### Line(Line) ### Choices(Vec<Choice>) Auto Trait Implementations --- ### impl RefUnwindSafe for ChatContent ### impl Send for ChatContent ### impl Sync for ChatContent ### impl Unpin for ChatContent ### impl UnwindSafe for ChatContent Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Trait chatter::Tagged === ``` pub trait Tagged { // Required method fn get_tag_names(&self) -> &'static [&'static str]; // Provided methods fn includes_tag_name(&self, tag: &str) -> bool { ... } fn get_tags<T: Tag>(&self) -> Vec<T> { ... } fn get_tag<T: Tag>(&self) -> Option<T> { ... } fn includes_tag<T: Tag + PartialEq>(&self, tag: &T) -> bool { ... } } ``` Both Line and Choice can be tagged. Required Methods --- #### fn get_tag_names(&self) -> &'static [&'static str] Provided Methods --- #### fn includes_tag_name(&self, tag: &str) -> bool #### fn get_tags<T: Tag>(&self) -> Vec<TReturns all the instances of a tag of type `T`. Best used for tags that are not unqiue (such as choice requirements). #### fn get_tag<T: Tag>(&self) -> Option<TReturns the first instance of a tag of type `T`, if it exists. Best used for tags that are unique (such as a speaker name). #### fn includes_tag<T: Tag + PartialEq>(&self, tag: &T) -> bool Implementors --- ### impl Tagged for Choice ### impl Tagged for Line
tetra
rust
Rust
Crate tetra === Tetra is a simple 2D game framework written in Rust. It uses SDL2 for event handling and OpenGL 3.2+ for rendering. * Website * Tutorial * API Docs * FAQ ### Status Tetra is no longer being actively developed, as of January 2022. Bug fixes and dependency updates may still happen from time to time, but no new features are planned. Feature PRs may be accepted, as long as they do not come with a large maintainence burden - please open an issue/discussion thread if you’re thinking about making any large changes! For more information, see this blog post. ### Features * XNA/MonoGame-inspired API * Efficient 2D rendering, with draw call batching by default * Easy input handling, via polling or events, with support for gamepads * Deterministic game loop by default, à la Fix Your Timestep * Common building blocks built-in, such as: + Font rendering + Cameras + Screen scaling ### Installation To add Tetra to your project, add the following line to your `Cargo.toml` file: ``` tetra = "0.8" ``` You will also need to install the SDL2 native libraries - full details are provided in the documentation. ### Examples To get a simple window displayed on screen, the following code can be used: ``` use tetra::graphics::{self, Color}; use tetra::{Context, ContextBuilder, State}; struct GameState; impl State for GameState { fn draw(&mut self, ctx: &mut Context) -> tetra::Result { // Cornflower blue, as is tradition graphics::clear(ctx, Color::rgb(0.392, 0.584, 0.929)); Ok(()) } } fn main() -> tetra::Result { ContextBuilder::new("Hello, world!", 1280, 720) .build()? .run(|_| Ok(GameState)) } ``` You can see this example in action by running `cargo run --example hello_world`. The full list of examples is available here. ### Support/Feedback Tetra is fairly early in development, so you might run into bugs/flaky docs/general weirdness. Please feel free to open an issue/PR if you find something! You can also contact me via Twitter or the Rust Game Development Discord. Re-exports --- * `pub use crate::error::Result;` * `pub use crate::error::TetraError;` Modules --- * audioFunctions and types relating to audio playback. * errorFunctions and types relating to error handling. * graphicsFunctions and types relating to rendering. * inputFunctions and types relating to handling the player’s input. * mathFunctions and types relating to vector math (provided by the `vek` crate). * timeFunctions and types relating to measuring and manipulating time. * windowFunctions and types relating to the game window, and the environment it is running in. Structs --- * ContextA struct containing all of the ‘global’ state within the framework. * ContextBuilderSettings that can be configured when starting up a game. Enums --- * EventEvents that can occur while the game is running. Traits --- * StateImplemented by types that contain game state and provide logic for updating it and drawing it to the screen. Crate tetra === Tetra is a simple 2D game framework written in Rust. It uses SDL2 for event handling and OpenGL 3.2+ for rendering. * Website * Tutorial * API Docs * FAQ ### Status Tetra is no longer being actively developed, as of January 2022. Bug fixes and dependency updates may still happen from time to time, but no new features are planned. Feature PRs may be accepted, as long as they do not come with a large maintainence burden - please open an issue/discussion thread if you’re thinking about making any large changes! For more information, see this blog post. ### Features * XNA/MonoGame-inspired API * Efficient 2D rendering, with draw call batching by default * Easy input handling, via polling or events, with support for gamepads * Deterministic game loop by default, à la Fix Your Timestep * Common building blocks built-in, such as: + Font rendering + Cameras + Screen scaling ### Installation To add Tetra to your project, add the following line to your `Cargo.toml` file: ``` tetra = "0.8" ``` You will also need to install the SDL2 native libraries - full details are provided in the documentation. ### Examples To get a simple window displayed on screen, the following code can be used: ``` use tetra::graphics::{self, Color}; use tetra::{Context, ContextBuilder, State}; struct GameState; impl State for GameState { fn draw(&mut self, ctx: &mut Context) -> tetra::Result { // Cornflower blue, as is tradition graphics::clear(ctx, Color::rgb(0.392, 0.584, 0.929)); Ok(()) } } fn main() -> tetra::Result { ContextBuilder::new("Hello, world!", 1280, 720) .build()? .run(|_| Ok(GameState)) } ``` You can see this example in action by running `cargo run --example hello_world`. The full list of examples is available here. ### Support/Feedback Tetra is fairly early in development, so you might run into bugs/flaky docs/general weirdness. Please feel free to open an issue/PR if you find something! You can also contact me via Twitter or the Rust Game Development Discord. Re-exports --- * `pub use crate::error::Result;` * `pub use crate::error::TetraError;` Modules --- * audioFunctions and types relating to audio playback. * errorFunctions and types relating to error handling. * graphicsFunctions and types relating to rendering. * inputFunctions and types relating to handling the player’s input. * mathFunctions and types relating to vector math (provided by the `vek` crate). * timeFunctions and types relating to measuring and manipulating time. * windowFunctions and types relating to the game window, and the environment it is running in. Structs --- * ContextA struct containing all of the ‘global’ state within the framework. * ContextBuilderSettings that can be configured when starting up a game. Enums --- * EventEvents that can occur while the game is running. Traits --- * StateImplemented by types that contain game state and provide logic for updating it and drawing it to the screen. Type Definition tetra::error::Result === ``` pub type Result<T = ()> = Result<T, TetraError>; ``` A specialized `Result` type for Tetra. All Tetra functions with a recoverable failure condition will return this type. In your game code, you can either use it directly, or wrap it in your own error type. Enum tetra::error::TetraError === ``` #[non_exhaustive] pub enum TetraError { PlatformError(String), FailedToLoadAsset { reason: Error, path: PathBuf, }, InvalidColor, InvalidTexture(ImageError), InvalidShader(String), InvalidFont, InvalidSound(DecoderError), NotEnoughData { expected: usize, actual: usize, }, NoAudioDevice, FailedToChangeDisplayMode(String), TessellationError(TessellationError), } ``` The types of error that can occur in a Tetra game. Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### PlatformError(String) Returned when the underlying platform returns an unexpected error. This usually isn’t something your game can reasonably be expected to recover from. ### FailedToLoadAsset #### Fields `reason: Error`The underlying reason for the error. `path: PathBuf`The path to the asset that failed to load. Returned when your game fails to load an asset. This is usually caused by an incorrect file path, or some form of permission issues. ### InvalidColor Returned when a color is invalid. ### InvalidTexture(ImageError) Returned when a texture’s data is invalid. ### InvalidShader(String) Returned when a shader fails to compile. ### InvalidFont Returned when a font could not be read. ### InvalidSound(DecoderError) Returned when a sound cannot be decoded. ### NotEnoughData #### Fields `expected: usize`The number of bytes that were expected. `actual: usize`The number of bytes that were provided. Returned when not enough data is provided to fill a buffer. This may happen if you’re creating a texture from raw data and you don’t provide enough data. ### NoAudioDevice Returned when trying to play back audio without an available device. ### FailedToChangeDisplayMode(String) Returned when your game tried to change the display settings (e.g. fullscreen, vsync) but was unable to do so. ### TessellationError(TessellationError) Returned when a shape cannot be tessellated. Trait Implementations --- ### impl Debug for TetraError #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more1.0.0 · source#### fn description(&self) -> &str 👎Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting#### fn provide<'a>(&'a self, demand: &mut Demand<'a>) 🔬This is a nightly-only experimental API. (`error_generic_member_access`)Provides type based access to context intended for error reports. Read moreAuto Trait Implementations --- ### impl !RefUnwindSafe for TetraError ### impl Send for TetraError ### impl Sync for TetraError ### impl Unpin for TetraError ### impl !UnwindSafe for TetraError Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<S> FromSample<S> for S #### fn from_sample_(s: S) -> S ### impl<T, U> Into<U> for Twhere U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<F, T> IntoSample<T> for Fwhere T: FromSample<F>, #### fn into_sample(self) -> T ### impl<T> Pointable for T #### const ALIGN: usize = mem::align_of::<T>() The alignment of pointer.#### type Init = T The type for initializers.#### unsafe fn init(init: <T as Pointable>::Init) -> usize Initializes a with the given initializer. Dereferences the given pointer. Mutably dereferences the given pointer. Drops the object pointed to by the given pointer. E: Error + ?Sized, #### fn provide<'a>(&'a self, demand: &mut Demand<'a>) 🔬This is a nightly-only experimental API. (`provide_any`)Data providers should implement this method to provide *all* values they are able to provide by using `demand`. U: FromSample<T>, #### fn to_sample_(self) -> U ### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<S, T> Duplex<S> for Twhere T: FromSample<S> + ToSample<S>, Module tetra::audio === Functions and types relating to audio playback. Structs --- * SoundSound data that can be played back. * SoundInstanceA handle to a single instance of a `Sound`. Enums --- * SoundStateThe states that playback of a `SoundInstance` can be in. Functions --- * get_master_volumeGets the master volume for the game. * set_master_volumeSets the master volume for the game. Module tetra::error === Functions and types relating to error handling. Enums --- * TetraErrorThe types of error that can occur in a Tetra game. Type Definitions --- * ResultA specialized `Result` type for Tetra. Module tetra::graphics === Functions and types relating to rendering. This module implements a (hopefully!) efficent quad renderer, which will queue up drawing operations until it is absolutely necessary to send them to the graphics hardware. This allows us to minimize the number of draw calls made, speeding up rendering. Modules --- * animationFunctions and types relating to animations. * meshFunctions and types relating to meshes and shape drawing. * scalingFunctions and types relating to screen scaling. * textFunctions and types relating to text rendering. Structs --- * BlendStateDefines how colors should be blended when drawing to the screen. * CameraA camera that can be used to transform the player’s view of the scene. * CanvasA texture that can be used for off-screen rendering. * CanvasBuilderA builder for creating advanced canvas configurations. * ColorAn RGBA color. * DrawParamsParameters that can be manipulated when drawing an object. * GraphicsDeviceInfoInformation about the device currently being used to render graphics. * ImageDataRaw image data. * NineSliceInformation on how to slice a texture so that it can be stretched or squashed without distorting the borders. * RectangleA rectangle, represented by a top-left position, a width and a height. * ShaderA shader program, consisting of a vertex shader and a fragment shader. * StencilStateRepresents a global stencil configuration. * TextureA texture, held in GPU memory. Enums --- * BlendFactorDefines a multiplier that will be applied to a color or alpha value before blending it. * BlendOperationDefines a formula for blending two color or alpha values. * FilterModeFiltering algorithms that can be used when scaling an image. * StencilActionHow drawing operations should modify the stencil buffer. * StencilTestThe test for whether a pixel is visible when using a stencil. * TextureFormatIn-memory data formats for textures. Constants --- * DEFAULT_FRAGMENT_SHADERThe default fragment shader. * DEFAULT_VERTEX_SHADERThe default vertex shader. Traits --- * UniformValueImplemented for types that can be passed as a uniform value to a shader. Functions --- * clearClears the screen (or a canvas, if one is enabled) to the specified color. * clear_stencilClears the stencil buffer to the specified value. * flushSends queued data to the graphics hardware. * get_default_filter_modeReturns the filter mode that will be used by newly created textures and canvases. * get_device_infoRetrieves information about the device currently being used to render graphics. * get_transform_matrixReturns the current transform matrix. * presentPresents the result of drawing commands to the screen. * reset_blend_stateResets the blend mode to the default. * reset_canvasSets the renderer back to drawing to the screen directly. * reset_scissorDisables the scissor rectangle. * reset_shaderSets the renderer back to using the default shader. * reset_transform_matrixResets the transform matrix. * set_blend_stateSets the blend state used for future drawing operations. * set_canvasSets the renderer to redirect all drawing commands to the specified canvas. * set_color_maskSets which color components are drawn to the screen. * set_default_filter_modeSets the filter mode that will be used by newly created textures and canvases. * set_scissorSets the scissor rectangle. * set_shaderSets the shader that is currently being used for rendering. * set_stencil_stateSets the global stencil behavior. * set_transform_matrixSets the transform matrix. Module tetra::input === Functions and types relating to handling the player’s input. Gamepads --- When accessing gamepad state, you specify which gamepad you’re interested in via a ‘gamepad ID’. The first gamepad connected to the system has ID 0, the second has ID 1, and so on. If a controller is disconnected, the next controller to be connected will take its ID - otherwise, a new one will be allocated. This means that if you unplug a controller and then plug it back in, it should retain its existing ID. This behaviour might be made smarter in future versions. Examples --- The `keyboard` example demonstrates how to handle keyboard input. The `mouse` example demonstrates how to handle mouse input. The `gamepad` example demonstrates how to handle gamepad input. The `text_input` example demonstrates how to handle text entry. Enums --- * GamepadAxisAn axis of movement on a gamepad. * GamepadButtonA button on a gamepad. * GamepadStickA control stick on a gamepad. * KeyA physical key on a keyboard. * KeyLabelA key, as represented by the current system keyboard layout. * KeyModifierA key modifier on the keyboard. * MouseButtonA button on a mouse. Functions --- * get_clipboard_textGets the text currently stored in the system’s clipboard. * get_gamepad_axis_positionReturns the current position of the specified gamepad axis. * get_gamepad_buttons_downReturns an iterator of the buttons that are currently down on the specified gamepad. * get_gamepad_buttons_pressedReturns an iterator of the buttons that were pressed on the specified gamepad since the last update. * get_gamepad_buttons_releasedReturns an iterator of the buttons that were released on the specified gamepad since the last update . * get_gamepad_nameReturns the name of the specified gamepad, or `None` if it is not connected. * get_gamepad_stick_positionReturns the current position of the specified gamepad control stick. * get_key_labelReturns the label for the specified key in the current keyboard layout. * get_key_with_labelReturns the key that has the specified label in the current keyboard layout. * get_keys_downReturns an iterator of the keys that are currently down. * get_keys_pressedReturns an iterator of the keys that were pressed since the last update. * get_keys_releasedReturns an iterator of the keys that were released since the last update. * get_mouse_positionGet the position of the mouse. * get_mouse_wheel_movementGet the amount that the mouse wheel moved since the last update. * get_mouse_xGet the X co-ordinate of the mouse. * get_mouse_yGet the Y co-ordinate of the mouse. * get_text_inputReturns the text that the user entered since the last update. This will match the user’s keyboard and OS settings. * is_gamepad_button_downReturns true if the specified gamepad button is currently down. * is_gamepad_button_pressedReturns true if the specified gamepad button was pressed since the last update. * is_gamepad_button_releasedReturns true if the specified gamepad button was released since the last update. * is_gamepad_button_upReturns true if the specified gamepad button is currently up. * is_gamepad_connectedReturns true if the specified gamepad is currently connected. * is_gamepad_vibration_supportedReturns true if the specified gamepad supports vibration. * is_key_downReturns true if the specified key is currently down. * is_key_modifier_downReturns true if the specified key modifier is currently down. * is_key_modifier_upReturns true if the specified key modifier is currently up. * is_key_pressedReturns true if the specified key was pressed since the last update. * is_key_releasedReturns true if the specified key was released since the last update. * is_key_upReturns true if the specified key is currently up. * is_mouse_button_downReturns true if the specified mouse button is currently down. * is_mouse_button_pressedReturns true if the specified mouse button was pressed since the last update. * is_mouse_button_releasedReturns true if the specified mouse button was released since the last update. * is_mouse_button_upReturns true if the specified mouse button is currently up. * is_mouse_scrolled_downReturns true if the user scrolled down since the last update. * is_mouse_scrolled_upReturns true if the user scrolled up since the last update. * set_clipboard_textSets the contents of the system’s clipboard. * set_gamepad_vibrationSets the specified gamepad’s motors to vibrate indefinitely. * start_gamepad_vibrationSets the specified gamepad’s motors to vibrate for a set duration, specified in milliseconds. After this time has passed, the vibration will automatically stop. * stop_gamepad_vibrationStops the specified gamepad’s motors from vibrating. Module tetra::math === Functions and types relating to vector math (provided by the `vek` crate). `vek` is a Rust crate that provides vector math types that are well-documented and convenient to use. Rather than reinventing the wheel, Tetra re-exports the contents of that crate - both for its own internal use, and for you to use in your games. Ideally, the documentation for `vek` would be reproduced here for your convienence. Unfortunately, rustdoc currently doesn’t handle re-exports very well, so this would probably be more confusing than helpful. Until those issues are fixed, you can find the documentation for `vek` by clicking the re-export link below. Note that all of the important types in `vek` (such as `Vec2` and `Mat4`) are re-exported at the top level - you don’t need to dig down into the submodules when importing things. Re-exports --- * `pub use vek::*;` Module tetra::time === Functions and types relating to measuring and manipulating time. Enums --- * TimestepThe different timestep modes that a game can have. Functions --- * get_accumulatorReturns the amount of time that has accumulated between updates. * get_blend_factorReturns a value between 0.0 and 1.0, representing how far between updates the game loop currently is. * get_blend_factor_preciseReturns a precise value between 0.0 and 1.0, representing how far between updates the game loop currently is. * get_delta_timeReturns the amount of time that has passed since the last update or draw. * get_fpsReturns the current frame rate, averaged out over the last 200 frames. * get_timestepGets the current timestep of the application. * set_timestepSets the timestep of the application. Module tetra::window === Functions and types relating to the game window, and the environment it is running in. Enums --- * WindowPositionRepresents the position of a window on the screen. Functions --- * focusBrings the window to the front and gives it input focus. * get_current_monitorGets the index of the monitor that the window is currently on. * get_current_monitor_heightGets the height of the monitor that the window is currently on. * get_current_monitor_nameGets the name of the monitor that the window is currently on. * get_current_monitor_sizeGets the size of the monitor that the window is currently on. * get_current_monitor_widthGets the width of the monitor that the window is currently on. * get_dpi_scaleReturns the ratio of the logical resolution to the physical resolution of the current display on which the window is being displayed. * get_heightGets the height of the window. * get_maximum_sizeGets the maximum size of the window. * get_minimum_sizeGets the minimum size of the window. * get_monitor_countGets the number of monitors connected to the device. * get_monitor_heightGets the height of a monitor connected to the device. * get_monitor_nameGets the name of a monitor connected to the device. * get_monitor_sizeGets the size of a monitor connected to the device. * get_monitor_widthGets the width of a monitor connected to the device. * get_physical_heightReturns the height of the window in physical pixels. * get_physical_sizeReturns the size of the window in physical pixels. * get_physical_widthReturns the width of the window in physical pixels. * get_positionGets the position of the window. * get_sizeGets the size of the window. * get_titleGets the current title of the window. * get_widthGets the width of the window. * is_fullscreenReturns whether or not the window is currently in fullscreen mode. * is_key_repeat_enabledReturns whether or not key repeat is enabled. * is_mouse_grabbedReturns whether or not the mouse is currently grabbed by the window. * is_mouse_visibleReturns whether or not the mouse cursor is currently visible. * is_relative_mouse_modeReturns whether or not relative mouse mode is currently enabled. * is_screen_saver_enabledReturns whether or not the user’s screen saver can be displayed while the game is running. * is_visibleReturns whether the window is currently visible, or whether it has been hidden. * is_vsync_enabledReturns whether or not vsync is enabled. * maximizeMaximizes the window. * minimizeMinimizes the window. * quitQuits the game, if it is currently running. * restoreRestores the size and position of a minimized or maximized window. * set_decoratedSets whether or not the window should have decorations, such as a border and a close button. * set_fullscreenSets whether the window should be in fullscreen mode. * set_heightSets the height of the window. * set_iconSets the icon for the window. * set_key_repeat_enabledSets whether or not key repeat should be enabled. * set_maximum_sizeSets the maximum size of the window. * set_minimum_sizeSets the minimum size of the window. * set_mouse_grabbedSets whether or not the mouse is grabbed by the window. * set_mouse_visibleSets whether or not the mouse cursor should be visible. * set_positionSets the position of the window. * set_relative_mouse_modeSets whether or not relative mouse mode is enabled. * set_screen_saver_enabledSets whether or not the user’s screen saver can be displayed while the game is running. * set_sizeSets the size of the window. * set_titleSets the title of the window. * set_visibleSets whether or not the window should be visible to the user. * set_vsyncSets whether the window should be vsynced. * set_widthSets the width of the window. Struct tetra::Context === ``` pub struct Context { /* private fields */ } ``` A struct containing all of the ‘global’ state within the framework. Implementations --- ### impl Context #### pub fn run<S, F, E>(&mut self, init: F) -> Result<(), E>where S: State<E>, F: FnOnce(&mut Context) -> Result<S, E>, E: From<TetraError>, Runs the game. The `init` parameter takes a function or closure that creates a `State` implementation. A common pattern is to use method references to pass in your state’s constructor directly - see the example below for how this works. The error type returned by your `init` closure currently must match the error type returned by your `State` methods. This limitation may be lifted in the future. ##### Errors If the `State` returns an error from `update`, `draw` or `event`, the game will stop running and this method will return the error. ##### Examples ``` use tetra::{Context, ContextBuilder, State}; struct GameState; impl GameState { fn new(ctx: &mut Context) -> tetra::Result<GameState> { Ok(GameState) } } impl State for GameState { } fn main() -> tetra::Result { // Because GameState::new takes `&mut Context` and returns a `State` implementation // wrapped in a `Result`, you can use it without a closure wrapper: ContextBuilder::new("Hello, world!", 1280, 720) .build()? .run(GameState::new) } ``` Auto Trait Implementations --- ### impl !RefUnwindSafe for Context ### impl !Send for Context ### impl !Sync for Context ### impl Unpin for Context ### impl !UnwindSafe for Context Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<S> FromSample<S> for S #### fn from_sample_(s: S) -> S ### impl<T, U> Into<U> for Twhere U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<F, T> IntoSample<T> for Fwhere T: FromSample<F>, #### fn into_sample(self) -> T ### impl<T> Pointable for T #### const ALIGN: usize = mem::align_of::<T>() The alignment of pointer.#### type Init = T The type for initializers.#### unsafe fn init(init: <T as Pointable>::Init) -> usize Initializes a with the given initializer. Dereferences the given pointer. Mutably dereferences the given pointer. Drops the object pointed to by the given pointer. U: FromSample<T>, #### fn to_sample_(self) -> U ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<S, T> Duplex<S> for Twhere T: FromSample<S> + ToSample<S>, Struct tetra::ContextBuilder === ``` pub struct ContextBuilder { /* private fields */ } ``` Settings that can be configured when starting up a game. Serde --- Serialization and deserialization of this type (via Serde) can be enabled via the `serde_support` feature. Note that the available settings could change between releases of Tetra (semver permitting). If you need a config file schema that will be stable in the long term, consider making your own and then mapping it to Tetra’s API, rather than relying on `ContextBuilder` to not change. Implementations --- ### impl ContextBuilder #### pub fn new<S>(title: S, window_width: i32, window_height: i32) -> ContextBuilderwhere S: Into<String>, Create a new `ContextBuilder`, with a title and window size. #### pub fn title<S>(&mut self, title: S) -> &mut ContextBuilderwhere S: Into<String>, Sets the title of the window. Defaults to `"Tetra"`. #### pub fn size(&mut self, width: i32, height: i32) -> &mut ContextBuilder Sets the size of the window. Defaults to `1280` by `720`. #### pub fn vsync(&mut self, vsync: bool) -> &mut ContextBuilder Enables or disables vsync. Setting this flag does not guarantee that the requested vsync mode will be used - some platforms do not support vsync, and others *enforce* vsync. If you want to find out which vsync mode was actually chosen, you can call `window::is_vsync_enabled`. Defaults to `true`. #### pub fn fps_limit(&mut self, fps_limit: bool) -> &mut ContextBuilder Enables or disables the 1000 FPS limit. The framework will sleep for 1 millisecond on the main thread if this flag is set to true to provide a sensible FPS limit when running without vsync, and to avoid CPU usage skyrocketing on some systems. Defaults to `true`. #### pub fn timestep(&mut self, timestep: Timestep) -> &mut ContextBuilder Sets the game’s timestep. Defaults to `Timestep::Fixed(60.0)`. #### pub fn fullscreen(&mut self, fullscreen: bool) -> &mut ContextBuilder Sets whether or not the window should start in fullscreen. Defaults to `false`. #### pub fn maximized(&mut self, maximized: bool) -> &mut ContextBuilder Sets whether or not the window should start maximized. Defaults to `false`. #### pub fn minimized(&mut self, minimized: bool) -> &mut ContextBuilder Sets whether or not the window should start minimized. Defaults to `false`. #### pub fn resizable(&mut self, resizable: bool) -> &mut ContextBuilder Sets whether or not the window should be resizable. Defaults to `false`. #### pub fn borderless(&mut self, borderless: bool) -> &mut ContextBuilder Sets whether or not the window should be borderless. Defaults to `false`. #### pub fn multisampling(&mut self, multisampling: u8) -> &mut ContextBuilder Sets the number of samples that should be used for multisample anti-aliasing. The number of samples that can be used varies between graphics cards - `2`, `4` and `8` are reasonably well supported. Setting the number of samples to `0` will disable multisampling. Note that this setting only applies to the main backbuffer - multisampled canvases can be created via `Canvas::builder`. Defaults to `0`. #### pub fn stencil_buffer(&mut self, stencil_buffer: bool) -> &mut ContextBuilder Sets whether or not the window should have a stencil buffer. If this is enabled, you can use the stencil functions in the `graphics` module when rendering to the main backbuffer. Note that this setting only applies to the main backbuffer - to create a canvas with a stencil buffer, use `Canvas::builder`. Defaults to `false`. #### pub fn high_dpi(&mut self, high_dpi: bool) -> &mut ContextBuilder Sets whether or not the window should use a high-DPI backbuffer, on platforms that support it (e.g. MacOS with a retina display). Note that you may also need some platform-specific config to enable high-DPI rendering: * On Windows, set `dpiAware` to `true/pm` and `dpiAwareness` to `permonitorv2` in your application manifest. This should enable the best behaviour available, regardless of how old the user’s version of Windows is. + The `embed-resource` crate can be used to automate embedding an application manifest. + Alternatively, you can use the `SetProcessDPIAware` or `SetProcessDpiAwareness` Windows API functions to change these settings programatically, but Microsoft recommend not to do this. * On Mac, set `NSHighResolutionCapable` to `true` in your Info.plist. This is the default on Catalina and higher. Defaults to `false`. #### pub fn screen_saver_enabled( &mut self, screen_saver_enabled: bool ) -> &mut ContextBuilder Sets whether or not the user’s screen saver can be displayed while the game is running. Defaults to `false`. #### pub fn key_repeat(&mut self, key_repeat: bool) -> &mut ContextBuilder Sets whether or not key repeat should be enabled. Normally, a `KeyPressed` event will only be fired once, when the key is initially pressed. Enabling key repeat causes `KeyPressed` events to be fired continuously while the key is held down. Defaults to `false`. #### pub fn show_mouse(&mut self, show_mouse: bool) -> &mut ContextBuilder Sets whether or not the mouse cursor should be visible when it is within the game window. Defaults to `false`. #### pub fn grab_mouse(&mut self, grab_mouse: bool) -> &mut ContextBuilder Sets whether or not the mouse cursor should be grabbed by the game window at startup. Defaults to `false`. #### pub fn relative_mouse_mode( &mut self, relative_mouse_mode: bool ) -> &mut ContextBuilder Sets whether or not relative mouse mode should be enabled. While the mouse is in relative mode, the cursor is hidden and can move beyond the bounds of the window. The `delta` field of `Event::MouseMoved` can then be used to track the cursor’s changes in position. This is useful when implementing control schemes that require the mouse to be able to move infinitely in any direction (for example, FPS-style movement). While this mode is enabled, the absolute position of the mouse may not be updated - as such, you should not rely on it. Defaults to `false`. #### pub fn quit_on_escape(&mut self, quit_on_escape: bool) -> &mut ContextBuilder Sets whether or not the game should close when the Escape key is pressed. Defaults to `false`. #### pub fn debug_info(&mut self, debug_info: bool) -> &mut ContextBuilder Sets whether or not the game should print out debug info at startup. Please include this if you’re submitting a bug report! #### pub fn build(&self) -> Result<ContextBuilds the context. ##### Errors * `TetraError::PlatformError` will be returned if the context cannot be initialized. Trait Implementations --- ### impl Clone for ContextBuilder #### fn clone(&self) -> ContextBuilder Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> ContextBuilder Returns the “default value” for a type. Read moreAuto Trait Implementations --- ### impl RefUnwindSafe for ContextBuilder ### impl Send for ContextBuilder ### impl Sync for ContextBuilder ### impl Unpin for ContextBuilder ### impl UnwindSafe for ContextBuilder Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<S> FromSample<S> for S #### fn from_sample_(s: S) -> S ### impl<T, U> Into<U> for Twhere U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<F, T> IntoSample<T> for Fwhere T: FromSample<F>, #### fn into_sample(self) -> T ### impl<T> Pointable for T #### const ALIGN: usize = mem::align_of::<T>() The alignment of pointer.#### type Init = T The type for initializers.#### unsafe fn init(init: <T as Pointable>::Init) -> usize Initializes a with the given initializer. Dereferences the given pointer. Mutably dereferences the given pointer. Drops the object pointed to by the given pointer. T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. U: FromSample<T>, #### fn to_sample_(self) -> U ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<S, T> Duplex<S> for Twhere T: FromSample<S> + ToSample<S>, Enum tetra::Event === ``` #[non_exhaustive] pub enum Event { Resized { width: i32, height: i32, }, Restored, Minimized, Maximized, FocusGained, FocusLost, KeyPressed { key: Key, }, KeyReleased { key: Key, }, MouseButtonPressed { button: MouseButton, }, MouseButtonReleased { button: MouseButton, }, MouseMoved { position: Vec2<f32>, delta: Vec2<f32>, }, MouseWheelMoved { amount: Vec2<i32>, }, GamepadAdded { id: usize, }, GamepadRemoved { id: usize, }, GamepadButtonPressed { id: usize, button: GamepadButton, }, GamepadButtonReleased { id: usize, button: GamepadButton, }, GamepadAxisMoved { id: usize, axis: GamepadAxis, position: f32, }, GamepadStickMoved { id: usize, stick: GamepadStick, position: Vec2<f32>, }, TextInput { text: String, }, FileDropped { path: PathBuf, }, } ``` Events that can occur while the game is running. `State::event` will receive events as they occur. Examples --- The `events` example demonstrates how to handle events. Variants (Non-exhaustive) --- Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.### Resized #### Fields `width: i32`The new width of the game window. `height: i32`The new height of the game window. The game window was resized. ### Restored The game window was restored to normal size and position by the user, either by un-minimizing or un-maximizing. ### Minimized The game window was minimized by the user. ### Maximized The game window was maximized by the user. ### FocusGained The game window was focused by the user. ### FocusLost The game window was un-focused by the user. ### KeyPressed #### Fields `key: Key`The key that was pressed. A key on the keyboard was pressed. ### KeyReleased #### Fields `key: Key`The key that was released. A key on the keyboard was released. ### MouseButtonPressed #### Fields `button: MouseButton`The button that was pressed. A button on the mouse was pressed. ### MouseButtonReleased #### Fields `button: MouseButton`The button that was released. A button on the mouse was released. ### MouseMoved #### Fields `position: Vec2<f32>`The new position of the mouse, in window co-ordinates. If relative mouse mode is enabled, this field is not guarenteed to update. `delta: Vec2<f32>`The movement of the mouse, relative to the `position` of the previous `MouseMoved` event. The mouse was moved. ### MouseWheelMoved #### Fields `amount: Vec2<i32>`The amount that the wheel was moved. Most ‘normal’ mice can only scroll vertically, but some devices can also scroll horizontally. Use the Y component of the returned vector if you don’t care about horizontal scroll. Positive values correspond to scrolling up/right, negative values correspond to scrolling down/left. The mouse wheel was moved. ### GamepadAdded #### Fields `id: usize`The ID that was assigned to the gamepad. A gamepad was connected to the system. ### GamepadRemoved #### Fields `id: usize`The ID of the gamepad that was removed. A gamepad was removed from the system. ### GamepadButtonPressed #### Fields `id: usize`The ID of the gamepad. `button: GamepadButton`The button that was pressed. A button on a gamepad was pressed. ### GamepadButtonReleased #### Fields `id: usize`The ID of the gamepad. `button: GamepadButton`The button that was released. A button on a gamepad was released. ### GamepadAxisMoved #### Fields `id: usize`The ID of the gamepad. `axis: GamepadAxis`The axis that was moved. `position: f32`The new position of the axis. An axis on a gamepad was moved. ### GamepadStickMoved #### Fields `id: usize`The ID of the gamepad. `stick: GamepadStick`The stick that was moved. `position: Vec2<f32>`The new position of the stick. A control stick on a gamepad was moved. ### TextInput #### Fields `text: String`The text that was typed by the user. The user typed some text. ### FileDropped #### Fields `path: PathBuf`The path of the file that was dropped. The user dropped a file into the window. This event will be fired multiple times if the user dropped multiple files at the same time. Note that on MacOS, you must edit your `info.plist` file to set which document types you want your application to support, otherwise no `FileDropped` events will be fired. Trait Implementations --- ### impl Clone for Event #### fn clone(&self) -> Event Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read moreAuto Trait Implementations --- ### impl RefUnwindSafe for Event ### impl Send for Event ### impl Sync for Event ### impl Unpin for Event ### impl UnwindSafe for Event Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. ### impl<S> FromSample<S> for S #### fn from_sample_(s: S) -> S ### impl<T, U> Into<U> for Twhere U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<F, T> IntoSample<T> for Fwhere T: FromSample<F>, #### fn into_sample(self) -> T ### impl<T> Pointable for T #### const ALIGN: usize = mem::align_of::<T>() The alignment of pointer.#### type Init = T The type for initializers.#### unsafe fn init(init: <T as Pointable>::Init) -> usize Initializes a with the given initializer. Dereferences the given pointer. Mutably dereferences the given pointer. Drops the object pointed to by the given pointer. T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. U: FromSample<T>, #### fn to_sample_(self) -> U ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<S, T> Duplex<S> for Twhere T: FromSample<S> + ToSample<S>, Trait tetra::State === ``` pub trait State<E = TetraError> { // Provided methods fn update(&mut self, ctx: &mut Context) -> Result<(), E> { ... } fn draw(&mut self, ctx: &mut Context) -> Result<(), E> { ... } fn event(&mut self, ctx: &mut Context, event: Event) -> Result<(), E> { ... } } ``` Implemented by types that contain game state and provide logic for updating it and drawing it to the screen. Error Handling --- The methods on `State` allow you to return a `Result`, either explicitly or via the `?` operator. If an error is returned, the game will close and the error will be returned from the `Context::run` call that was used to start it. This allows you to propagate errors back to `main` for reporting/logging. The error type defaults to `TetraError`, but this can be overridden by adding a type parameter to your `State` implementation (e.g. `State<MyError>`). Examples --- The `hello_world` example demonstrates a minimal implementation of the `State` trait. The `error_handling` example demonstrates how custom error types can be used to implement more robust error handling. Provided Methods --- #### fn update(&mut self, ctx: &mut Context) -> Result<(), ECalled when it is time for the game to update. #### fn draw(&mut self, ctx: &mut Context) -> Result<(), ECalled when it is time for the game to be drawn. #### fn event(&mut self, ctx: &mut Context, event: Event) -> Result<(), ECalled when a window or input event occurs. Implementors ---
golang_org_doc_effective_go_html
free_programming_book
Go
Date: 2013-01-01 Categories: Tags: * Documentation * Effective Go ## Introduction Go is a new language. Although it borrows ideas from existing languages, it has unusual properties that make effective Go programs different in character from programs written in its relatives. A straightforward translation of a C++ or Java program into Go is unlikely to produce a satisfactory result—Java programs are written in Java, not Go. On the other hand, thinking about the problem from a Go perspective could produce a successful but quite different program. In other words, to write Go well, it's important to understand its properties and idioms. It's also important to know the established conventions for programming in Go, such as naming, formatting, program construction, and so on, so that programs you write will be easy for other Go programmers to understand. This document gives tips for writing clear, idiomatic Go code. It augments the language specification, the Tour of Go, and How to Write Go Code, all of which you should read first. Note added January, 2022: This document was written for Go's release in 2009, and has not been updated significantly since. Although it is a good guide to understand how to use the language itself, thanks to the stability of the language, it says little about the libraries and nothing about significant changes to the Go ecosystem since it was written, such as the build system, testing, modules, and polymorphism. There are no plans to update it, as so much has happened and a large and growing set of documents, blogs, and books do a fine job of describing modern Go usage. Effective Go continues to be useful, but the reader should understand it is far from a complete guide. See issue 28782 for context. ### Examples The Go package sources are intended to serve not only as the core library but also as examples of how to use the language. Moreover, many of the packages contain working, self-contained executable examples you can run directly from the golang.org web site, such as this one (if necessary, click on the word "Example" to open it up). If you have a question about how to approach a problem or how something might be implemented, the documentation, code and examples in the library can provide answers, ideas and background. ## Formatting Formatting issues are the most contentious but the least consequential. People can adapt to different formatting styles but it's better if they don't have to, and less time is devoted to the topic if everyone adheres to the same style. The problem is how to approach this Utopia without a long prescriptive style guide. With Go we take an unusual approach and let the machine take care of most formatting issues. The `gofmt` program (also available as `go fmt` , which operates at the package level rather than source file level) reads a Go program and emits the source in a standard style of indentation and vertical alignment, retaining and if necessary reformatting comments. If you want to know how to handle some new layout situation, run `gofmt` ; if the answer doesn't seem right, rearrange your program (or file a bug about `gofmt` ), don't work around it. As an example, there's no need to spend time lining up the comments on the fields of a structure. `Gofmt` will do that for you. Given the declaration > type T struct { name string // name of the object value int // its value } `gofmt` will line up the columns: > type T struct { name string // name of the object value int // its value } All Go code in the standard packages has been formatted with `gofmt` . Some formatting details remain. Very briefly: * Indentation * We use tabs for indentation and `gofmt` emits them by default. Use spaces only if you must. * Line length * Go has no line length limit. Don't worry about overflowing a punched card. If a line feels too long, wrap it and indent with an extra tab. * Parentheses * Go needs fewer parentheses than C and Java: control structures ( `if` , `for` , `switch` ) do not have parentheses in their syntax. Also, the operator precedence hierarchy is shorter and clearer, so > x<<8 + y<<16 means what the spacing implies, unlike in the other languages. ## Commentary Go provides C-style `/* */` block comments and C++-style `//` line comments. Line comments are the norm; block comments appear mostly as package comments, but are useful within an expression or to disable large swaths of code. Comments that appear before top-level declarations, with no intervening newlines, are considered to document the declaration itself. These “doc comments” are the primary documentation for a given Go package or command. For more about doc comments, see “Go Doc Comments”. ## Names Names are as important in Go as in any other language. They even have semantic effect: the visibility of a name outside a package is determined by whether its first character is upper case. It's therefore worth spending a little time talking about naming conventions in Go programs. ### Package names When a package is imported, the package name becomes an accessor for the contents. After > import "bytes" the importing package can talk about `bytes.Buffer` . It's helpful if everyone using the package can use the same name to refer to its contents, which implies that the package name should be good: short, concise, evocative. By convention, packages are given lower case, single-word names; there should be no need for underscores or mixedCaps. Err on the side of brevity, since everyone using your package will be typing that name. And don't worry about collisions a priori. The package name is only the default name for imports; it need not be unique across all source code, and in the rare case of a collision the importing package can choose a different name to use locally. In any case, confusion is rare because the file name in the import determines just which package is being used. Another convention is that the package name is the base name of its source directory; the package in `src/encoding/base64` is imported as `"encoding/base64"` but has name `base64` , not `encoding_base64` and not `encodingBase64` . The importer of a package will use the name to refer to its contents, so exported names in the package can use that fact to avoid repetition. (Don't use the `import .` notation, which can simplify tests that must run outside the package they are testing, but should otherwise be avoided.) For instance, the buffered reader type in the `bufio` package is called `Reader` , not `BufReader` , because users see it as `bufio.Reader` , which is a clear, concise name. Moreover, because imported entities are always addressed with their package name, `bufio.Reader` does not conflict with `io.Reader` . Similarly, the function to make new instances of `ring.Ring` —which is the definition of a constructor in Go—would normally be called `NewRing` , but since `Ring` is the only type exported by the package, and since the package is called `ring` , it's called just `New` , which clients of the package see as `ring.New` . Use the package structure to help you choose good names. Another short example is `once.Do` ; `once.Do(setup)` reads well and would not be improved by writing ``` once.DoOrWaitUntilDone(setup) ``` . Long names don't automatically make things more readable. A helpful doc comment can often be more valuable than an extra long name. ### Getters Go doesn't provide automatic support for getters and setters. There's nothing wrong with providing getters and setters yourself, and it's often appropriate to do so, but it's neither idiomatic nor necessary to put `Get` into the getter's name. If you have a field called `owner` (lower case, unexported), the getter method should be called `Owner` (upper case, exported), not `GetOwner` . The use of upper-case names for export provides the hook to discriminate the field from the method. A setter function, if needed, will likely be called `SetOwner` . Both names read well in practice: > owner := obj.Owner() if owner != user { obj.SetOwner(user) } ### Interface names By convention, one-method interfaces are named by the method name plus an -er suffix or similar modification to construct an agent noun: `Reader` , `Writer` , `Formatter` , `CloseNotifier` etc. There are a number of such names and it's productive to honor them and the function names they capture. `Read` , `Write` , `Close` , `Flush` , `String` and so on have canonical signatures and meanings. To avoid confusion, don't give your method one of those names unless it has the same signature and meaning. Conversely, if your type implements a method with the same meaning as a method on a well-known type, give it the same name and signature; call your string-converter method `String` not `ToString` . ### MixedCaps Finally, the convention in Go is to use `MixedCaps` or `mixedCaps` rather than underscores to write multiword names. ## Semicolons Like C, Go's formal grammar uses semicolons to terminate statements, but unlike in C, those semicolons do not appear in the source. Instead the lexer uses a simple rule to insert semicolons automatically as it scans, so the input text is mostly free of them. The rule is this. If the last token before a newline is an identifier (which includes words like `int` and `float64` ), a basic literal such as a number or string constant, or one of the tokens > break continue fallthrough return ++ -- ) } the lexer always inserts a semicolon after the token. This could be summarized as, “if the newline comes after a token that could end a statement, insert a semicolon”. A semicolon can also be omitted immediately before a closing brace, so a statement such as > go func() { for { dst <- <-src } }() needs no semicolons. Idiomatic Go programs have semicolons only in places such as `for` loop clauses, to separate the initializer, condition, and continuation elements. They are also necessary to separate multiple statements on a line, should you write code that way. One consequence of the semicolon insertion rules is that you cannot put the opening brace of a control structure ( `if` , `for` , `switch` , or `select` ) on the next line. If you do, a semicolon will be inserted before the brace, which could cause unwanted effects. Write them like this > if i < f() { g() } not like this > if i < f() // wrong! { // wrong! g() } ## Control structures The control structures of Go are related to those of C but differ in important ways. There is no `do` or `while` loop, only a slightly generalized `for` ; `switch` is more flexible; `if` and `switch` accept an optional initialization statement like that of `for` ; `break` and `continue` statements take an optional label to identify what to break or continue; and there are new control structures including a type switch and a multiway communications multiplexer, `select` . The syntax is also slightly different: there are no parentheses and the bodies must always be brace-delimited. ### If In Go a simple `if` looks like this: > if x > 0 { return y } Mandatory braces encourage writing simple `if` statements on multiple lines. It's good style to do so anyway, especially when the body contains a control statement such as a `return` or `break` . Since `if` and `switch` accept an initialization statement, it's common to see one used to set up a local variable. > if err := file.Chmod(0664); err != nil { log.Print(err) return err } In the Go libraries, you'll find that when an `if` statement doesn't flow into the next statement—that is, the body ends in `break` , `continue` , `goto` , or `return` —the unnecessary `else` is omitted. > f, err := os.Open(name) if err != nil { return err } codeUsing(f) This is an example of a common situation where code must guard against a sequence of error conditions. The code reads well if the successful flow of control runs down the page, eliminating error cases as they arise. Since error cases tend to end in `return` statements, the resulting code needs no `else` statements. > f, err := os.Open(name) if err != nil { return err } d, err := f.Stat() if err != nil { f.Close() return err } codeUsing(f, d) ### Redeclaration and reassignment An aside: The last example in the previous section demonstrates a detail of how the `:=` short declaration form works. The declaration that calls `os.Open` reads, > f, err := os.Open(name) This statement declares two variables, `f` and `err` . A few lines later, the call to `f.Stat` reads, > d, err := f.Stat() which looks as if it declares `d` and `err` . Notice, though, that `err` appears in both statements. This duplication is legal: `err` is declared by the first statement, but only re-assigned in the second. This means that the call to `f.Stat` uses the existing `err` variable declared above, and just gives it a new value. In a `:=` declaration a variable `v` may appear even if it has already been declared, provided: * this declaration is in the same scope as the existing declaration of `v` (if `v` is already declared in an outer scope, the declaration will create a new variable §), * the corresponding value in the initialization is assignable to `v` , and * there is at least one other variable that is created by the declaration. This unusual property is pure pragmatism, making it easy to use a single `err` value, for example, in a long `if-else` chain. You'll see it used often. § It's worth noting here that in Go the scope of function parameters and return values is the same as the function body, even though they appear lexically outside the braces that enclose the body. ### For The Go `for` loop is similar to—but not the same as—C's. It unifies `for` and `while` and there is no `do-while` . There are three forms, only one of which has semicolons. > // Like a C for for init; condition; post { } // Like a C while for condition { } // Like a C for(;;) for { } Short declarations make it easy to declare the index variable right in the loop. > sum := 0 for i := 0; i < 10; i++ { sum += i } If you're looping over an array, slice, string, or map, or reading from a channel, a `range` clause can manage the loop. > for key, value := range oldMap { newMap[key] = value } If you only need the first item in the range (the key or index), drop the second: > for key := range m { if key.expired() { delete(m, key) } } If you only need the second item in the range (the value), use the blank identifier, an underscore, to discard the first: > sum := 0 for _, value := range array { sum += value } The blank identifier has many uses, as described in a later section. For strings, the `range` does more work for you, breaking out individual Unicode code points by parsing the UTF-8. Erroneous encodings consume one byte and produce the replacement rune U+FFFD. (The name (with associated builtin type) `rune` is Go terminology for a single Unicode code point. See the language specification for details.) The loop > for pos, char := range "日本\x80語" { // \x80 is an illegal UTF-8 encoding fmt.Printf("character %#U starts at byte position %d\n", char, pos) } prints > character U+65E5 '日' starts at byte position 0 character U+672C '本' starts at byte position 3 character U+FFFD '�' starts at byte position 6 character U+8A9E '語' starts at byte position 7 Finally, Go has no comma operator and `++` and `--` are statements not expressions. Thus if you want to run multiple variables in a `for` you should use parallel assignment (although that precludes `++` and `--` ). > // Reverse a for i, j := 0, len(a)-1; i < j; i, j = i+1, j-1 { a[i], a[j] = a[j], a[i] } ### Switch Go's `switch` is more general than C's. The expressions need not be constants or even integers, the cases are evaluated top to bottom until a match is found, and if the `switch` has no expression it switches on `true` . It's therefore possible—and idiomatic—to write an `if` - `else` - `if` - `else` chain as a `switch` . > func unhex(c byte) byte { switch { case '0' <= c && c <= '9': return c - '0' case 'a' <= c && c <= 'f': return c - 'a' + 10 case 'A' <= c && c <= 'F': return c - 'A' + 10 } return 0 } There is no automatic fall through, but cases can be presented in comma-separated lists. > func shouldEscape(c byte) bool { switch c { case ' ', '?', '&', '=', '#', '+', '%': return true } return false } Although they are not nearly as common in Go as some other C-like languages, `break` statements can be used to terminate a `switch` early. Sometimes, though, it's necessary to break out of a surrounding loop, not the switch, and in Go that can be accomplished by putting a label on the loop and "breaking" to that label. This example shows both uses. > Loop: for n := 0; n < len(src); n += size { switch { case src[n] < sizeOne: if validateOnly { break } size = 1 update(src[n]) case src[n] < sizeTwo: if n+1 >= len(src) { err = errShortInput break Loop } if validateOnly { break } size = 2 update(src[n] + src[n+1]<<shift) } } Of course, the `continue` statement also accepts an optional label but it applies only to loops. To close this section, here's a comparison routine for byte slices that uses two `switch` statements: > // Compare returns an integer comparing the two byte slices, // lexicographically. // The result will be 0 if a == b, -1 if a < b, and +1 if a > b func Compare(a, b []byte) int { for i := 0; i < len(a) && i < len(b); i++ { switch { case a[i] > b[i]: return 1 case a[i] < b[i]: return -1 } } switch { case len(a) > len(b): return 1 case len(a) < len(b): return -1 } return 0 } ### Type switch A switch can also be used to discover the dynamic type of an interface variable. Such a type switch uses the syntax of a type assertion with the keyword `type` inside the parentheses. If the switch declares a variable in the expression, the variable will have the corresponding type in each clause. It's also idiomatic to reuse the name in such cases, in effect declaring a new variable with the same name but a different type in each case. > var t interface{} t = functionOfSomeType() switch t := t.(type) { default: fmt.Printf("unexpected type %T\n", t) // %T prints whatever type t has case bool: fmt.Printf("boolean %t\n", t) // t has type bool case int: fmt.Printf("integer %d\n", t) // t has type int case *bool: fmt.Printf("pointer to boolean %t\n", *t) // t has type *bool case *int: fmt.Printf("pointer to integer %d\n", *t) // t has type *int } ## Functions ### Multiple return values One of Go's unusual features is that functions and methods can return multiple values. This form can be used to improve on a couple of clumsy idioms in C programs: in-band error returns such as `-1` for `EOF` and modifying an argument passed by address. In C, a write error is signaled by a negative count with the error code secreted away in a volatile location. In Go, `Write` can return a count and an error: “Yes, you wrote some bytes but not all of them because you filled the device”. The signature of the `Write` method on files from package `os` is: > func (file *File) Write(b []byte) (n int, err error) and as the documentation says, it returns the number of bytes written and a non-nil `error` when `n` `!=` `len(b)` . This is a common style; see the section on error handling for more examples. A similar approach obviates the need to pass a pointer to a return value to simulate a reference parameter. Here's a simple-minded function to grab a number from a position in a byte slice, returning the number and the next position. > func nextInt(b []byte, i int) (int, int) { for ; i < len(b) && !isDigit(b[i]); i++ { } x := 0 for ; i < len(b) && isDigit(b[i]); i++ { x = x*10 + int(b[i]) - '0' } return x, i } You could use it to scan the numbers in an input slice `b` like this: > for i := 0; i < len(b); { x, i = nextInt(b, i) fmt.Println(x) } ### Named result parameters The return or result "parameters" of a Go function can be given names and used as regular variables, just like the incoming parameters. When named, they are initialized to the zero values for their types when the function begins; if the function executes a `return` statement with no arguments, the current values of the result parameters are used as the returned values. The names are not mandatory but they can make code shorter and clearer: they're documentation. If we name the results of `nextInt` it becomes obvious which returned `int` is which. > func nextInt(b []byte, pos int) (value, nextPos int) { Because named results are initialized and tied to an unadorned return, they can simplify as well as clarify. Here's a version of `io.ReadFull` that uses them well: > func ReadFull(r Reader, buf []byte) (n int, err error) { for len(buf) > 0 && err == nil { var nr int nr, err = r.Read(buf) n += nr buf = buf[nr:] } return } ### Defer Go's `defer` statement schedules a function call (the deferred function) to be run immediately before the function executing the `defer` returns. It's an unusual but effective way to deal with situations such as resources that must be released regardless of which path a function takes to return. The canonical examples are unlocking a mutex or closing a file. > // Contents returns the file's contents as a string. func Contents(filename string) (string, error) { f, err := os.Open(filename) if err != nil { return "", err } defer f.Close() // f.Close will run when we're finished. var result []byte buf := make([]byte, 100) for { n, err := f.Read(buf[0:]) result = append(result, buf[0:n]...) // append is discussed later. if err != nil { if err == io.EOF { break } return "", err // f will be closed if we return here. } } return string(result), nil // f will be closed if we return here. } Deferring a call to a function such as `Close` has two advantages. First, it guarantees that you will never forget to close the file, a mistake that's easy to make if you later edit the function to add a new return path. Second, it means that the close sits near the open, which is much clearer than placing it at the end of the function. The arguments to the deferred function (which include the receiver if the function is a method) are evaluated when the defer executes, not when the call executes. Besides avoiding worries about variables changing values as the function executes, this means that a single deferred call site can defer multiple function executions. Here's a silly example. > for i := 0; i < 5; i++ { defer fmt.Printf("%d ", i) } Deferred functions are executed in LIFO order, so this code will cause `4 3 2 1 0` to be printed when the function returns. A more plausible example is a simple way to trace function execution through the program. We could write a couple of simple tracing routines like this: > func trace(s string) { fmt.Println("entering:", s) } func untrace(s string) { fmt.Println("leaving:", s) } // Use them like this: func a() { trace("a") defer untrace("a") // do something.... } We can do better by exploiting the fact that arguments to deferred functions are evaluated when the `defer` executes. The tracing routine can set up the argument to the untracing routine. This example: > func trace(s string) string { fmt.Println("entering:", s) return s } func un(s string) { fmt.Println("leaving:", s) } func a() { defer un(trace("a")) fmt.Println("in a") } func b() { defer un(trace("b")) fmt.Println("in b") a() } func main() { b() } prints > entering: b in b entering: a in a leaving: a leaving: b For programmers accustomed to block-level resource management from other languages, `defer` may seem peculiar, but its most interesting and powerful applications come precisely from the fact that it's not block-based but function-based. In the section on `panic` and `recover` we'll see another example of its possibilities. ## Data `new` Go has two allocation primitives, the built-in functions `new` and `make` . They do different things and apply to different types, which can be confusing, but the rules are simple. Let's talk about `new` first. It's a built-in function that allocates memory, but unlike its namesakes in some other languages it does not initialize the memory, it only zeros it. That is, `new(T)` allocates zeroed storage for a new item of type `T` and returns its address, a value of type `*T` . In Go terminology, it returns a pointer to a newly allocated zero value of type `T` . Since the memory returned by `new` is zeroed, it's helpful to arrange when designing your data structures that the zero value of each type can be used without further initialization. This means a user of the data structure can create one with `new` and get right to work. For example, the documentation for `bytes.Buffer` states that "the zero value for `Buffer` is an empty buffer ready to use." Similarly, `sync.Mutex` does not have an explicit constructor or `Init` method. Instead, the zero value for a `sync.Mutex` is defined to be an unlocked mutex. The zero-value-is-useful property works transitively. Consider this type declaration. > type SyncedBuffer struct { lock sync.Mutex buffer bytes.Buffer } Values of type `SyncedBuffer` are also ready to use immediately upon allocation or just declaration. In the next snippet, both `p` and `v` will work correctly without further arrangement. > p := new(SyncedBuffer) // type *SyncedBuffer var v SyncedBuffer // type SyncedBuffer ### Constructors and composite literals Sometimes the zero value isn't good enough and an initializing constructor is necessary, as in this example derived from package `os` . > func NewFile(fd int, name string) *File { if fd < 0 { return nil } f := new(File) f.fd = fd f.name = name f.dirinfo = nil f.nepipe = 0 return f } There's a lot of boilerplate in there. We can simplify it using a composite literal, which is an expression that creates a new instance each time it is evaluated. > func NewFile(fd int, name string) *File { if fd < 0 { return nil } f := File{fd, name, nil, 0} return &f } Note that, unlike in C, it's perfectly OK to return the address of a local variable; the storage associated with the variable survives after the function returns. In fact, taking the address of a composite literal allocates a fresh instance each time it is evaluated, so we can combine these last two lines. > return &File{fd, name, nil, 0} The fields of a composite literal are laid out in order and must all be present. However, by labeling the elements explicitly as field `:` value pairs, the initializers can appear in any order, with the missing ones left as their respective zero values. Thus we could say > return &File{fd: fd, name: name} As a limiting case, if a composite literal contains no fields at all, it creates a zero value for the type. The expressions `new(File)` and `&File{}` are equivalent. Composite literals can also be created for arrays, slices, and maps, with the field labels being indices or map keys as appropriate. In these examples, the initializations work regardless of the values of `Enone` , `Eio` , and `Einval` , as long as they are distinct. > a := [...]string {Enone: "no error", Eio: "Eio", Einval: "invalid argument"} s := []string {Enone: "no error", Eio: "Eio", Einval: "invalid argument"} m := map[int]string{Enone: "no error", Eio: "Eio", Einval: "invalid argument"} `make` Back to allocation. The built-in function `make(T,` args `)` serves a purpose different from `new(T)` . It creates slices, maps, and channels only, and it returns an initialized (not zeroed) value of type `T` (not `*T` ). The reason for the distinction is that these three types represent, under the covers, references to data structures that must be initialized before use. A slice, for example, is a three-item descriptor containing a pointer to the data (inside an array), the length, and the capacity, and until those items are initialized, the slice is `nil` . For slices, maps, and channels, `make` initializes the internal data structure and prepares the value for use. For instance, > make([]int, 10, 100) allocates an array of 100 ints and then creates a slice structure with length 10 and a capacity of 100 pointing at the first 10 elements of the array. (When making a slice, the capacity can be omitted; see the section on slices for more information.) In contrast, `new([]int)` returns a pointer to a newly allocated, zeroed slice structure, that is, a pointer to a `nil` slice value. These examples illustrate the difference between `new` and `make` . > var p *[]int = new([]int) // allocates slice structure; *p == nil; rarely useful var v []int = make([]int, 100) // the slice v now refers to a new array of 100 ints // Unnecessarily complex: var p *[]int = new([]int) *p = make([]int, 100, 100) // Idiomatic: v := make([]int, 100) Remember that `make` applies only to maps, slices and channels and does not return a pointer. To obtain an explicit pointer allocate with `new` or take the address of a variable explicitly. ### Arrays Arrays are useful when planning the detailed layout of memory and sometimes can help avoid allocation, but primarily they are a building block for slices, the subject of the next section. To lay the foundation for that topic, here are a few words about arrays. There are major differences between the ways arrays work in Go and C. In Go, * Arrays are values. Assigning one array to another copies all the elements. * In particular, if you pass an array to a function, it will receive a copy of the array, not a pointer to it. * The size of an array is part of its type. The types `[10]int` and `[20]int` are distinct. The value property can be useful but also expensive; if you want C-like behavior and efficiency, you can pass a pointer to the array. > func Sum(a *[3]float64) (sum float64) { for _, v := range *a { sum += v } return } array := [...]float64{7.0, 8.5, 9.1} x := Sum(&array) // Note the explicit address-of operator But even this style isn't idiomatic Go. Use slices instead. ### Slices Slices wrap arrays to give a more general, powerful, and convenient interface to sequences of data. Except for items with explicit dimension such as transformation matrices, most array programming in Go is done with slices rather than simple arrays. Slices hold references to an underlying array, and if you assign one slice to another, both refer to the same array. If a function takes a slice argument, changes it makes to the elements of the slice will be visible to the caller, analogous to passing a pointer to the underlying array. A `Read` function can therefore accept a slice argument rather than a pointer and a count; the length within the slice sets an upper limit of how much data to read. Here is the signature of the `Read` method of the `File` type in package `os` : > func (f *File) Read(buf []byte) (n int, err error) The method returns the number of bytes read and an error value, if any. To read into the first 32 bytes of a larger buffer `buf` , slice (here used as a verb) the buffer. > n, err := f.Read(buf[0:32]) Such slicing is common and efficient. In fact, leaving efficiency aside for the moment, the following snippet would also read the first 32 bytes of the buffer. > var n int var err error for i := 0; i < 32; i++ { nbytes, e := f.Read(buf[i:i+1]) // Read one byte. n += nbytes if nbytes == 0 || e != nil { err = e break } } The length of a slice may be changed as long as it still fits within the limits of the underlying array; just assign it to a slice of itself. The capacity of a slice, accessible by the built-in function `cap` , reports the maximum length the slice may assume. Here is a function to append data to a slice. If the data exceeds the capacity, the slice is reallocated. The resulting slice is returned. The function uses the fact that `len` and `cap` are legal when applied to the `nil` slice, and return 0. > func Append(slice, data []byte) []byte { l := len(slice) if l + len(data) > cap(slice) { // reallocate // Allocate double what's needed, for future growth. newSlice := make([]byte, (l+len(data))*2) // The copy function is predeclared and works for any slice type. copy(newSlice, slice) slice = newSlice } slice = slice[0:l+len(data)] copy(slice[l:], data) return slice } We must return the slice afterwards because, although `Append` can modify the elements of `slice` , the slice itself (the run-time data structure holding the pointer, length, and capacity) is passed by value. The idea of appending to a slice is so useful it's captured by the `append` built-in function. To understand that function's design, though, we need a little more information, so we'll return to it later. ### Two-dimensional slices Go's arrays and slices are one-dimensional. To create the equivalent of a 2D array or slice, it is necessary to define an array-of-arrays or slice-of-slices, like this: > type Transform [3][3]float64 // A 3x3 array, really an array of arrays. type LinesOfText [][]byte // A slice of byte slices. Because slices are variable-length, it is possible to have each inner slice be a different length. That can be a common situation, as in our `LinesOfText` example: each line has an independent length. > text := LinesOfText{ []byte("Now is the time"), []byte("for all good gophers"), []byte("to bring some fun to the party."), } Sometimes it's necessary to allocate a 2D slice, a situation that can arise when processing scan lines of pixels, for instance. There are two ways to achieve this. One is to allocate each slice independently; the other is to allocate a single array and point the individual slices into it. Which to use depends on your application. If the slices might grow or shrink, they should be allocated independently to avoid overwriting the next line; if not, it can be more efficient to construct the object with a single allocation. For reference, here are sketches of the two methods. First, a line at a time: > // Allocate the top-level slice. picture := make([][]uint8, YSize) // One row per unit of y. // Loop over the rows, allocating the slice for each row. for i := range picture { picture[i] = make([]uint8, XSize) } And now as one allocation, sliced into lines: > // Allocate the top-level slice, the same as before. picture := make([][]uint8, YSize) // One row per unit of y. // Allocate one large slice to hold all the pixels. pixels := make([]uint8, XSize*YSize) // Has type []uint8 even though picture is [][]uint8. // Loop over the rows, slicing each row from the front of the remaining pixels slice. for i := range picture { picture[i], pixels = pixels[:XSize], pixels[XSize:] } ### Maps Maps are a convenient and powerful built-in data structure that associate values of one type (the key) with values of another type (the element or value). The key can be of any type for which the equality operator is defined, such as integers, floating point and complex numbers, strings, pointers, interfaces (as long as the dynamic type supports equality), structs and arrays. Slices cannot be used as map keys, because equality is not defined on them. Like slices, maps hold references to an underlying data structure. If you pass a map to a function that changes the contents of the map, the changes will be visible in the caller. Maps can be constructed using the usual composite literal syntax with colon-separated key-value pairs, so it's easy to build them during initialization. > var timeZone = map[string]int{ "UTC": 0*60*60, "EST": -5*60*60, "CST": -6*60*60, "MST": -7*60*60, "PST": -8*60*60, } Assigning and fetching map values looks syntactically just like doing the same for arrays and slices except that the index doesn't need to be an integer. > offset := timeZone["EST"] An attempt to fetch a map value with a key that is not present in the map will return the zero value for the type of the entries in the map. For instance, if the map contains integers, looking up a non-existent key will return `0` . A set can be implemented as a map with value type `bool` . Set the map entry to `true` to put the value in the set, and then test it by simple indexing. > attended := map[string]bool{ "Ann": true, "Joe": true, ... } if attended[person] { // will be false if person is not in the map fmt.Println(person, "was at the meeting") } Sometimes you need to distinguish a missing entry from a zero value. Is there an entry for `"UTC"` or is that 0 because it's not in the map at all? You can discriminate with a form of multiple assignment. > var seconds int var ok bool seconds, ok = timeZone[tz] For obvious reasons this is called the “comma ok” idiom. In this example, if `tz` is present, `seconds` will be set appropriately and `ok` will be true; if not, `seconds` will be set to zero and `ok` will be false. Here's a function that puts it together with a nice error report: > func offset(tz string) int { if seconds, ok := timeZone[tz]; ok { return seconds } log.Println("unknown time zone:", tz) return 0 } To test for presence in the map without worrying about the actual value, you can use the blank identifier ( `_` ) in place of the usual variable for the value. > _, present := timeZone[tz] To delete a map entry, use the `delete` built-in function, whose arguments are the map and the key to be deleted. It's safe to do this even if the key is already absent from the map. > delete(timeZone, "PDT") // Now on Standard Time ### Printing Formatted printing in Go uses a style similar to C's `printf` family but is richer and more general. The functions live in the `fmt` package and have capitalized names: `fmt.Printf` , `fmt.Fprintf` , `fmt.Sprintf` and so on. The string functions ( `Sprintf` etc.) return a string rather than filling in a provided buffer. You don't need to provide a format string. For each of `Printf` , `Fprintf` and `Sprintf` there is another pair of functions, for instance `Println` . These functions do not take a format string but instead generate a default format for each argument. The `Println` versions also insert a blank between arguments and append a newline to the output while the > fmt.Printf("Hello %d\n", 23) fmt.Fprint(os.Stdout, "Hello ", 23, "\n") fmt.Println("Hello", 23) fmt.Println(fmt.Sprint("Hello ", 23)) The formatted print functions `fmt.Fprint` and friends take as a first argument any object that implements the `io.Writer` interface; the variables `os.Stdout` and `os.Stderr` are familiar instances. Here things start to diverge from C. First, the numeric formats such as `%d` do not take flags for signedness or size; instead, the printing routines use the type of the argument to decide these properties. > var x uint64 = 1<<64 - 1 fmt.Printf("%d %x; %d %x\n", x, x, int64(x), int64(x)) prints > 18446744073709551615 ffffffffffffffff; -1 -1 If you just want the default conversion, such as decimal for integers, you can use the catchall format `%v` (for “value”); the result is exactly what `Println` would produce. Moreover, that format can print any value, even arrays, slices, structs, and maps. Here is a print statement for the time zone map defined in the previous section. > fmt.Printf("%v\n", timeZone) // or just fmt.Println(timeZone) which gives output: > map[CST:-21600 EST:-18000 MST:-25200 PST:-28800 UTC:0] For maps, `Printf` and friends sort the output lexicographically by key. When printing a struct, the modified format `%+v` annotates the fields of the structure with their names, and for any value the alternate format `%#v` prints the value in full Go syntax. > type T struct { a int b float64 c string } t := &T{ 7, -2.35, "abc\tdef" } fmt.Printf("%v\n", t) fmt.Printf("%+v\n", t) fmt.Printf("%#v\n", t) fmt.Printf("%#v\n", timeZone) prints > &{7 -2.35 abc def} &{a:7 b:-2.35 c:abc def} &main.T{a:7, b:-2.35, c:"abc\tdef"} map[string]int{"CST":-21600, "EST":-18000, "MST":-25200, "PST":-28800, "UTC":0} (Note the ampersands.) That quoted string format is also available through `%q` when applied to a value of type `string` or `[]byte` . The alternate format `%#q` will use backquotes instead if possible. (The `%q` format also applies to integers and runes, producing a single-quoted rune constant.) Also, `%x` works on strings, byte arrays and byte slices as well as on integers, generating a long hexadecimal string, and with a space in the format ( `% x` ) it puts spaces between the bytes. Another handy format is `%T` , which prints the type of a value. > fmt.Printf("%T\n", timeZone) prints > map[string]int If you want to control the default format for a custom type, all that's required is to define a method with the signature `String() string` on the type. For our simple type `T` , that might look like this. > func (t *T) String() string { return fmt.Sprintf("%d/%g/%q", t.a, t.b, t.c) } fmt.Printf("%v\n", t) to print in the format > 7/-2.35/"abc\tdef" (If you need to print values of type `T` as well as pointers to `T` , the receiver for `String` must be of value type; this example used a pointer because that's more efficient and idiomatic for struct types. See the section below on pointers vs. value receivers for more information.) Our `String` method is able to call `Sprintf` because the print routines are fully reentrant and can be wrapped this way. There is one important detail to understand about this approach, however: don't construct a `String` method by calling `Sprintf` in a way that will recur into your `String` method indefinitely. This can happen if the `Sprintf` call attempts to print the receiver directly as a string, which in turn will invoke the method again. It's a common and easy mistake to make, as this example shows. > type MyString string func (m MyString) String() string { return fmt.Sprintf("MyString=%s", m) // Error: will recur forever. } It's also easy to fix: convert the argument to the basic string type, which does not have the method. > type MyString string func (m MyString) String() string { return fmt.Sprintf("MyString=%s", string(m)) // OK: note conversion. } In the initialization section we'll see another technique that avoids this recursion. Another printing technique is to pass a print routine's arguments directly to another such routine. The signature of `Printf` uses the type `...interface{}` for its final argument to specify that an arbitrary number of parameters (of arbitrary type) can appear after the format. > func Printf(format string, v ...interface{}) (n int, err error) { Within the function `Printf` , `v` acts like a variable of type `[]interface{}` but if it is passed to another variadic function, it acts like a regular list of arguments. Here is the implementation of the function `log.Println` we used above. It passes its arguments directly to `fmt.Sprintln` for the actual formatting. > // Println prints to the standard logger in the manner of fmt.Println. func Println(v ...interface{}) { std.Output(2, fmt.Sprintln(v...)) // Output takes parameters (int, string) } We write `...` after `v` in the nested call to `Sprintln` to tell the compiler to treat `v` as a list of arguments; otherwise it would just pass `v` as a single slice argument. There's even more to printing than we've covered here. See the `godoc` documentation for package `fmt` for the details. By the way, a `...` parameter can be of a specific type, for instance `...int` for a min function that chooses the least of a list of integers: > func Min(a ...int) int { min := int(^uint(0) >> 1) // largest int for _, i := range a { if i < min { min = i } } return min } ### Append Now we have the missing piece we needed to explain the design of the `append` built-in function. The signature of `append` is different from our custom `Append` function above. Schematically, it's like this: > func append(slice []T, elements ...T) []T where T is a placeholder for any given type. You can't actually write a function in Go where the type `T` is determined by the caller. That's why `append` is built in: it needs support from the compiler. What `append` does is append the elements to the end of the slice and return the result. The result needs to be returned because, as with our hand-written `Append` , the underlying array may change. This simple example > x := []int{1,2,3} x = append(x, 4, 5, 6) fmt.Println(x) prints `[1 2 3 4 5 6]` . So `append` works a little like `Printf` , collecting an arbitrary number of arguments. But what if we wanted to do what our `Append` does and append a slice to a slice? Easy: use `...` at the call site, just as we did in the call to `Output` above. This snippet produces identical output to the one above. > x := []int{1,2,3} y := []int{4,5,6} x = append(x, y...) fmt.Println(x) Without that `...` , it wouldn't compile because the types would be wrong; `y` is not of type `int` . ## Initialization Although it doesn't look superficially very different from initialization in C or C++, initialization in Go is more powerful. Complex structures can be built during initialization and the ordering issues among initialized objects, even among different packages, are handled correctly. ### Constants Constants in Go are just that—constant. They are created at compile time, even when defined as locals in functions, and can only be numbers, characters (runes), strings or booleans. Because of the compile-time restriction, the expressions that define them must be constant expressions, evaluatable by the compiler. For instance, `1<<3` is a constant expression, while `math.Sin(math.Pi/4)` is not because the function call to `math.Sin` needs to happen at run time. In Go, enumerated constants are created using the `iota` enumerator. Since `iota` can be part of an expression and expressions can be implicitly repeated, it is easy to build intricate sets of values. ``` type ByteSize float64 const ( _ = iota // ignore first value by assigning to blank identifier KB ByteSize = 1 << (10 * iota) MB GB TB PB EB ZB YB ) ``` The ability to attach a method such as `String` to any user-defined type makes it possible for arbitrary values to format themselves automatically for printing. Although you'll see it most often applied to structs, this technique is also useful for scalar types such as floating-point types like `ByteSize` . > func (b ByteSize) String() string { switch { case b >= YB: return fmt.Sprintf("%.2fYB", b/YB) case b >= ZB: return fmt.Sprintf("%.2fZB", b/ZB) case b >= EB: return fmt.Sprintf("%.2fEB", b/EB) case b >= PB: return fmt.Sprintf("%.2fPB", b/PB) case b >= TB: return fmt.Sprintf("%.2fTB", b/TB) case b >= GB: return fmt.Sprintf("%.2fGB", b/GB) case b >= MB: return fmt.Sprintf("%.2fMB", b/MB) case b >= KB: return fmt.Sprintf("%.2fKB", b/KB) } return fmt.Sprintf("%.2fB", b) } The expression `YB` prints as `1.00YB` , while `ByteSize(1e13)` prints as `9.09TB` . The use here of `Sprintf` to implement `ByteSize` 's `String` method is safe (avoids recurring indefinitely) not because of a conversion but because it calls `Sprintf` with `%f` , which is not a string format: `Sprintf` will only call the `String` method when it wants a string, and `%f` wants a floating-point value. ### Variables Variables can be initialized just like constants but the initializer can be a general expression computed at run time. > var ( home = os.Getenv("HOME") user = os.Getenv("USER") gopath = os.Getenv("GOPATH") ) ### The init function Finally, each source file can define its own niladic `init` function to set up whatever state is required. (Actually each file can have multiple `init` functions.) And finally means finally: `init` is called after all the variable declarations in the package have evaluated their initializers, and those are evaluated only after all the imported packages have been initialized. Besides initializations that cannot be expressed as declarations, a common use of `init` functions is to verify or repair correctness of the program state before real execution begins. > func init() { if user == "" { log.Fatal("$USER not set") } if home == "" { home = "/home/" + user } if gopath == "" { gopath = home + "/go" } // gopath may be overridden by --gopath flag on command line. flag.StringVar(&gopath, "gopath", gopath, "override default GOPATH") } ## Methods ### Pointers vs. Values As we saw with `ByteSize` , methods can be defined for any named type (except a pointer or an interface); the receiver does not have to be a struct. In the discussion of slices above, we wrote an `Append` function. We can define it as a method on slices instead. To do this, we first declare a named type to which we can bind the method, and then make the receiver for the method a value of that type. > type ByteSlice []byte func (slice ByteSlice) Append(data []byte) []byte { // Body exactly the same as the Append function defined above. } This still requires the method to return the updated slice. We can eliminate that clumsiness by redefining the method to take a pointer to a `ByteSlice` as its receiver, so the method can overwrite the caller's slice. > func (p *ByteSlice) Append(data []byte) { slice := *p // Body as above, without the return. *p = slice } In fact, we can do even better. If we modify our function so it looks like a standard `Write` method, like this, > func (p *ByteSlice) Write(data []byte) (n int, err error) { slice := *p // Again as above. *p = slice return len(data), nil } then the type `*ByteSlice` satisfies the standard interface `io.Writer` , which is handy. For instance, we can print into one. > var b ByteSlice fmt.Fprintf(&b, "This hour has %d days\n", 7) We pass the address of a `ByteSlice` because only `*ByteSlice` satisfies `io.Writer` . The rule about pointers vs. values for receivers is that value methods can be invoked on pointers and values, but pointer methods can only be invoked on pointers. This rule arises because pointer methods can modify the receiver; invoking them on a value would cause the method to receive a copy of the value, so any modifications would be discarded. The language therefore disallows this mistake. There is a handy exception, though. When the value is addressable, the language takes care of the common case of invoking a pointer method on a value by inserting the address operator automatically. In our example, the variable `b` is addressable, so we can call its `Write` method with just `b.Write` . The compiler will rewrite that to `(&b).Write` for us. By the way, the idea of using `Write` on a slice of bytes is central to the implementation of `bytes.Buffer` . ## Interfaces and other types ### Interfaces Interfaces in Go provide a way to specify the behavior of an object: if something can do this, then it can be used here. We've seen a couple of simple examples already; custom printers can be implemented by a `String` method while `Fprintf` can generate output to anything with a `Write` method. Interfaces with only one or two methods are common in Go code, and are usually given a name derived from the method, such as `io.Writer` for something that implements `Write` . A type can implement multiple interfaces. For instance, a collection can be sorted by the routines in package `sort` if it implements `sort.Interface` , which contains `Len()` , `Less(i, j int) bool` , and `Swap(i, j int)` , and it could also have a custom formatter. In this contrived example `Sequence` satisfies both. > type Sequence []int // Methods required by sort.Interface. func (s Sequence) Len() int { return len(s) } func (s Sequence) Less(i, j int) bool { return s[i] < s[j] } func (s Sequence) Swap(i, j int) { s[i], s[j] = s[j], s[i] } // Copy returns a copy of the Sequence. func (s Sequence) Copy() Sequence { copy := make(Sequence, 0, len(s)) return append(copy, s...) } // Method for printing - sorts the elements before printing. func (s Sequence) String() string { s = s.Copy() // Make a copy; don't overwrite argument. sort.Sort(s) str := "[" for i, elem := range s { // Loop is O(N²); will fix that in next example. if i > 0 { str += " " } str += fmt.Sprint(elem) } return str + "]" } ### Conversions The `String` method of `Sequence` is recreating the work that `Sprint` already does for slices. (It also has complexity O(N²), which is poor.) We can share the effort (and also speed it up) if we convert the `Sequence` to a plain `[]int` before calling `Sprint` . > func (s Sequence) String() string { s = s.Copy() sort.Sort(s) return fmt.Sprint([]int(s)) } This method is another example of the conversion technique for calling `Sprintf` safely from a `String` method. Because the two types ( `Sequence` and `[]int` ) are the same if we ignore the type name, it's legal to convert between them. The conversion doesn't create a new value, it just temporarily acts as though the existing value has a new type. (There are other legal conversions, such as from integer to floating point, that do create a new value.) It's an idiom in Go programs to convert the type of an expression to access a different set of methods. As an example, we could use the existing type `sort.IntSlice` to reduce the entire example to this: > type Sequence []int // Method for printing - sorts the elements before printing func (s Sequence) String() string { s = s.Copy() sort.IntSlice(s).Sort() return fmt.Sprint([]int(s)) } Now, instead of having `Sequence` implement multiple interfaces (sorting and printing), we're using the ability of a data item to be converted to multiple types ( `Sequence` , `sort.IntSlice` and `[]int` ), each of which does some part of the job. That's more unusual in practice but can be effective. ### Interface conversions and type assertions Type switches are a form of conversion: they take an interface and, for each case in the switch, in a sense convert it to the type of that case. Here's a simplified version of how the code under `fmt.Printf` turns a value into a string using a type switch. If it's already a string, we want the actual string value held by the interface, while if it has a `String` method we want the result of calling the method. > type Stringer interface { String() string } var value interface{} // Value provided by caller. switch str := value.(type) { case string: return str case Stringer: return str.String() } The first case finds a concrete value; the second converts the interface into another interface. It's perfectly fine to mix types this way. What if there's only one type we care about? If we know the value holds a `string` and we just want to extract it? A one-case type switch would do, but so would a type assertion. A type assertion takes an interface value and extracts from it a value of the specified explicit type. The syntax borrows from the clause opening a type switch, but with an explicit type rather than the `type` keyword: > value.(typeName) and the result is a new value with the static type `typeName` . That type must either be the concrete type held by the interface, or a second interface type that the value can be converted to. To extract the string we know is in the value, we could write: > str := value.(string) But if it turns out that the value does not contain a string, the program will crash with a run-time error. To guard against that, use the "comma, ok" idiom to test, safely, whether the value is a string: > str, ok := value.(string) if ok { fmt.Printf("string value is: %q\n", str) } else { fmt.Printf("value is not a string\n") } If the type assertion fails, `str` will still exist and be of type string, but it will have the zero value, an empty string. As an illustration of the capability, here's an `if` - `else` statement that's equivalent to the type switch that opened this section. > if str, ok := value.(string); ok { return str } else if str, ok := value.(Stringer); ok { return str.String() } ### Generality If a type exists only to implement an interface and will never have exported methods beyond that interface, there is no need to export the type itself. Exporting just the interface makes it clear the value has no interesting behavior beyond what is described in the interface. It also avoids the need to repeat the documentation on every instance of a common method. In such cases, the constructor should return an interface value rather than the implementing type. As an example, in the hash libraries both `crc32.NewIEEE` and `adler32.New` return the interface type `hash.Hash32` . Substituting the CRC-32 algorithm for Adler-32 in a Go program requires only changing the constructor call; the rest of the code is unaffected by the change of algorithm. A similar approach allows the streaming cipher algorithms in the various `crypto` packages to be separated from the block ciphers they chain together. The `Block` interface in the `crypto/cipher` package specifies the behavior of a block cipher, which provides encryption of a single block of data. Then, by analogy with the `bufio` package, cipher packages that implement this interface can be used to construct streaming ciphers, represented by the `Stream` interface, without knowing the details of the block encryption. The `crypto/cipher` interfaces look like this: > type Block interface { BlockSize() int Encrypt(dst, src []byte) Decrypt(dst, src []byte) } type Stream interface { XORKeyStream(dst, src []byte) } Here's the definition of the counter mode (CTR) stream, which turns a block cipher into a streaming cipher; notice that the block cipher's details are abstracted away: > // NewCTR returns a Stream that encrypts/decrypts using the given Block in // counter mode. The length of iv must be the same as the Block's block size. func NewCTR(block Block, iv []byte) Stream `NewCTR` applies not just to one specific encryption algorithm and data source but to any implementation of the `Block` interface and any `Stream` . Because they return interface values, replacing CTR encryption with other encryption modes is a localized change. The constructor calls must be edited, but because the surrounding code must treat the result only as a `Stream` , it won't notice the difference. ### Interfaces and methods Since almost anything can have methods attached, almost anything can satisfy an interface. One illustrative example is in the `http` package, which defines the `Handler` interface. Any object that implements `Handler` can serve HTTP requests. > type Handler interface { ServeHTTP(ResponseWriter, *Request) } `ResponseWriter` is itself an interface that provides access to the methods needed to return the response to the client. Those methods include the standard `Write` method, so an `http.ResponseWriter` can be used wherever an `io.Writer` can be used. `Request` is a struct containing a parsed representation of the request from the client. For brevity, let's ignore POSTs and assume HTTP requests are always GETs; that simplification does not affect the way the handlers are set up. Here's a trivial implementation of a handler to count the number of times the page is visited. > // Simple counter server. type Counter struct { n int } func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) { ctr.n++ fmt.Fprintf(w, "counter = %d\n", ctr.n) } (Keeping with our theme, note how `Fprintf` can print to an `http.ResponseWriter` .) In a real server, access to `ctr.n` would need protection from concurrent access. See the `sync` and `atomic` packages for suggestions. For reference, here's how to attach such a server to a node on the URL tree. > import "net/http" ... ctr := new(Counter) http.Handle("/counter", ctr) But why make `Counter` a struct? An integer is all that's needed. (The receiver needs to be a pointer so the increment is visible to the caller.) > // Simpler counter server. type Counter int func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) { *ctr++ fmt.Fprintf(w, "counter = %d\n", *ctr) } What if your program has some internal state that needs to be notified that a page has been visited? Tie a channel to the web page. > // A channel that sends a notification on each visit. // (Probably want the channel to be buffered.) type Chan chan *http.Request func (ch Chan) ServeHTTP(w http.ResponseWriter, req *http.Request) { ch <- req fmt.Fprint(w, "notification sent") } Finally, let's say we wanted to present on `/args` the arguments used when invoking the server binary. It's easy to write a function to print the arguments. > func ArgServer() { fmt.Println(os.Args) } How do we turn that into an HTTP server? We could make `ArgServer` a method of some type whose value we ignore, but there's a cleaner way. Since we can define a method for any type except pointers and interfaces, we can write a method for a function. The `http` package contains this code: > // The HandlerFunc type is an adapter to allow the use of // ordinary functions as HTTP handlers. If f is a function // with the appropriate signature, HandlerFunc(f) is a // Handler object that calls f. type HandlerFunc func(ResponseWriter, *Request) // ServeHTTP calls f(w, req). func (f HandlerFunc) ServeHTTP(w ResponseWriter, req *Request) { f(w, req) } `HandlerFunc` is a type with a method, `ServeHTTP` , so values of that type can serve HTTP requests. Look at the implementation of the method: the receiver is a function, `f` , and the method calls `f` . That may seem odd but it's not that different from, say, the receiver being a channel and the method sending on the channel. To make `ArgServer` into an HTTP server, we first modify it to have the right signature. > // Argument server. func ArgServer(w http.ResponseWriter, req *http.Request) { fmt.Fprintln(w, os.Args) } `ArgServer` now has the same signature as `HandlerFunc` , so it can be converted to that type to access its methods, just as we converted `Sequence` to `IntSlice` to access `IntSlice.Sort` . The code to set it up is concise: > http.Handle("/args", http.HandlerFunc(ArgServer)) When someone visits the page `/args` , the handler installed at that page has value `ArgServer` and type `HandlerFunc` . The HTTP server will invoke the method `ServeHTTP` of that type, with `ArgServer` as the receiver, which will in turn call `ArgServer` (via the invocation `f(w, req)` inside ``` HandlerFunc.ServeHTTP ``` ). The arguments will then be displayed. In this section we have made an HTTP server from a struct, an integer, a channel, and a function, all because interfaces are just sets of methods, which can be defined for (almost) any type. ## The blank identifier We've mentioned the blank identifier a couple of times now, in the context of `for` `range` loops and maps. The blank identifier can be assigned or declared with any value of any type, with the value discarded harmlessly. It's a bit like writing to the Unix `/dev/null` file: it represents a write-only value to be used as a place-holder where a variable is needed but the actual value is irrelevant. It has uses beyond those we've seen already. ### The blank identifier in multiple assignment The use of a blank identifier in a `for` `range` loop is a special case of a general situation: multiple assignment. If an assignment requires multiple values on the left side, but one of the values will not be used by the program, a blank identifier on the left-hand-side of the assignment avoids the need to create a dummy variable and makes it clear that the value is to be discarded. For instance, when calling a function that returns a value and an error, but only the error is important, use the blank identifier to discard the irrelevant value. > if _, err := os.Stat(path); os.IsNotExist(err) { fmt.Printf("%s does not exist\n", path) } Occasionally you'll see code that discards the error value in order to ignore the error; this is terrible practice. Always check error returns; they're provided for a reason. > // Bad! This code will crash if path does not exist. fi, _ := os.Stat(path) if fi.IsDir() { fmt.Printf("%s is a directory\n", path) } ### Unused imports and variables It is an error to import a package or to declare a variable without using it. Unused imports bloat the program and slow compilation, while a variable that is initialized but not used is at least a wasted computation and perhaps indicative of a larger bug. When a program is under active development, however, unused imports and variables often arise and it can be annoying to delete them just to have the compilation proceed, only to have them be needed again later. The blank identifier provides a workaround. This half-written program has two unused imports ( `fmt` and `io` ) and an unused variable ( `fd` ), so it will not compile, but it would be nice to see if the code so far is correct. import ( "fmt" "io" "log" "os" ) func main() { fd, err := os.Open("test.go") if err != nil { log.Fatal(err) } // TODO: use fd. } ``` To silence complaints about the unused imports, use a blank identifier to refer to a symbol from the imported package. Similarly, assigning the unused variable `fd` to the blank identifier will silence the unused variable error. This version of the program does compile. > package main import ( "fmt" "io" "log" "os" ) var _ = fmt.Printf // For debugging; delete when done. var _ io.Reader // For debugging; delete when done. func main() { fd, err := os.Open("test.go") if err != nil { log.Fatal(err) } // TODO: use fd. _ = fd } By convention, the global declarations to silence import errors should come right after the imports and be commented, both to make them easy to find and as a reminder to clean things up later. ### Import for side effect An unused import like `fmt` or `io` in the previous example should eventually be used or removed: blank assignments identify code as a work in progress. But sometimes it is useful to import a package only for its side effects, without any explicit use. For example, during its `init` function, the `net/http/pprof` package registers HTTP handlers that provide debugging information. It has an exported API, but most clients need only the handler registration and access the data through a web page. To import the package only for its side effects, rename the package to the blank identifier: > import _ "net/http/pprof" This form of import makes clear that the package is being imported for its side effects, because there is no other possible use of the package: in this file, it doesn't have a name. (If it did, and we didn't use that name, the compiler would reject the program.) ### Interface checks As we saw in the discussion of interfaces above, a type need not declare explicitly that it implements an interface. Instead, a type implements the interface just by implementing the interface's methods. In practice, most interface conversions are static and therefore checked at compile time. For example, passing an `*os.File` to a function expecting an `io.Reader` will not compile unless `*os.File` implements the `io.Reader` interface. Some interface checks do happen at run-time, though. One instance is in the `encoding/json` package, which defines a `Marshaler` interface. When the JSON encoder receives a value that implements that interface, the encoder invokes the value's marshaling method to convert it to JSON instead of doing the standard conversion. The encoder checks this property at run time with a type assertion like: > m, ok := val.(json.Marshaler) If it's necessary only to ask whether a type implements an interface, without actually using the interface itself, perhaps as part of an error check, use the blank identifier to ignore the type-asserted value: > if _, ok := val.(json.Marshaler); ok { fmt.Printf("value %v of type %T implements json.Marshaler\n", val, val) } One place this situation arises is when it is necessary to guarantee within the package implementing the type that it actually satisfies the interface. If a type—for example, `json.RawMessage` —needs a custom JSON representation, it should implement `json.Marshaler` , but there are no static conversions that would cause the compiler to verify this automatically. If the type inadvertently fails to satisfy the interface, the JSON encoder will still work, but will not use the custom implementation. To guarantee that the implementation is correct, a global declaration using the blank identifier can be used in the package: > var _ json.Marshaler = (*RawMessage)(nil) In this declaration, the assignment involving a conversion of a `*RawMessage` to a `Marshaler` requires that `*RawMessage` implements `Marshaler` , and that property will be checked at compile time. Should the `json.Marshaler` interface change, this package will no longer compile and we will be on notice that it needs to be updated. The appearance of the blank identifier in this construct indicates that the declaration exists only for the type checking, not to create a variable. Don't do this for every type that satisfies an interface, though. By convention, such declarations are only used when there are no static conversions already present in the code, which is a rare event. ## Embedding Go does not provide the typical, type-driven notion of subclassing, but it does have the ability to “borrow” pieces of an implementation by embedding types within a struct or interface. Interface embedding is very simple. We've mentioned the `io.Reader` and `io.Writer` interfaces before; here are their definitions. > type Reader interface { Read(p []byte) (n int, err error) } type Writer interface { Write(p []byte) (n int, err error) } The `io` package also exports several other interfaces that specify objects that can implement several such methods. For instance, there is `io.ReadWriter` , an interface containing both `Read` and `Write` . We could specify `io.ReadWriter` by listing the two methods explicitly, but it's easier and more evocative to embed the two interfaces to form the new one, like this: > // ReadWriter is the interface that combines the Reader and Writer interfaces. type ReadWriter interface { Reader Writer } This says just what it looks like: A `ReadWriter` can do what a `Reader` does and what a `Writer` does; it is a union of the embedded interfaces. Only interfaces can be embedded within interfaces. The same basic idea applies to structs, but with more far-reaching implications. The `bufio` package has two struct types, `bufio.Reader` and `bufio.Writer` , each of which of course implements the analogous interfaces from package `io` . And `bufio` also implements a buffered reader/writer, which it does by combining a reader and a writer into one struct using embedding: it lists the types within the struct but does not give them field names. > // ReadWriter stores pointers to a Reader and a Writer. // It implements io.ReadWriter. type ReadWriter struct { *Reader // *bufio.Reader *Writer // *bufio.Writer } The embedded elements are pointers to structs and of course must be initialized to point to valid structs before they can be used. The `ReadWriter` struct could be written as > type ReadWriter struct { reader *Reader writer *Writer } but then to promote the methods of the fields and to satisfy the `io` interfaces, we would also need to provide forwarding methods, like this: > func (rw *ReadWriter) Read(p []byte) (n int, err error) { return rw.reader.Read(p) } By embedding the structs directly, we avoid this bookkeeping. The methods of embedded types come along for free, which means that `bufio.ReadWriter` not only has the methods of `bufio.Reader` and `bufio.Writer` , it also satisfies all three interfaces: `io.Reader` , `io.Writer` , and `io.ReadWriter` . There's an important way in which embedding differs from subclassing. When we embed a type, the methods of that type become methods of the outer type, but when they are invoked the receiver of the method is the inner type, not the outer one. In our example, when the `Read` method of a `bufio.ReadWriter` is invoked, it has exactly the same effect as the forwarding method written out above; the receiver is the `reader` field of the `ReadWriter` , not the `ReadWriter` itself. Embedding can also be a simple convenience. This example shows an embedded field alongside a regular, named field. > type Job struct { Command string *log.Logger } The `Job` type now has the `Printf` , `Println` and other methods of `*log.Logger` . We could have given the `Logger` a field name, of course, but it's not necessary to do so. And now, once initialized, we can log to the `Job` : > job.Println("starting now...") The `Logger` is a regular field of the `Job` struct, so we can initialize it in the usual way inside the constructor for `Job` , like this, > func NewJob(command string, logger *log.Logger) *Job { return &Job{command, logger} } or with a composite literal, > job := &Job{command, log.New(os.Stderr, "Job: ", log.Ldate)} If we need to refer to an embedded field directly, the type name of the field, ignoring the package qualifier, serves as a field name, as it did in the `Read` method of our `ReadWriter` struct. Here, if we needed to access the `*log.Logger` of a `Job` variable `job` , we would write `job.Logger` , which would be useful if we wanted to refine the methods of `Logger` . > func (job *Job) Printf(format string, args ...interface{}) { job.Logger.Printf("%q: %s", job.Command, fmt.Sprintf(format, args...)) } Embedding types introduces the problem of name conflicts but the rules to resolve them are simple. First, a field or method `X` hides any other item `X` in a more deeply nested part of the type. If `log.Logger` contained a field or method called `Command` , the `Command` field of `Job` would dominate it. Second, if the same name appears at the same nesting level, it is usually an error; it would be erroneous to embed `log.Logger` if the `Job` struct contained another field or method called `Logger` . However, if the duplicate name is never mentioned in the program outside the type definition, it is OK. This qualification provides some protection against changes made to types embedded from outside; there is no problem if a field is added that conflicts with another field in another subtype if neither field is ever used. ## Concurrency ### Share by communicating Concurrent programming is a large topic and there is space only for some Go-specific highlights here. Concurrent programming in many environments is made difficult by the subtleties required to implement correct access to shared variables. Go encourages a different approach in which shared values are passed around on channels and, in fact, never actively shared by separate threads of execution. Only one goroutine has access to the value at any given time. Data races cannot occur, by design. To encourage this way of thinking we have reduced it to a slogan: > Do not communicate by sharing memory; instead, share memory by communicating. This approach can be taken too far. Reference counts may be best done by putting a mutex around an integer variable, for instance. But as a high-level approach, using channels to control access makes it easier to write clear, correct programs. One way to think about this model is to consider a typical single-threaded program running on one CPU. It has no need for synchronization primitives. Now run another such instance; it too needs no synchronization. Now let those two communicate; if the communication is the synchronizer, there's still no need for other synchronization. Unix pipelines, for example, fit this model perfectly. Although Go's approach to concurrency originates in Hoare's Communicating Sequential Processes (CSP), it can also be seen as a type-safe generalization of Unix pipes. ### Goroutines They're called goroutines because the existing terms—threads, coroutines, processes, and so on—convey inaccurate connotations. A goroutine has a simple model: it is a function executing concurrently with other goroutines in the same address space. It is lightweight, costing little more than the allocation of stack space. And the stacks start small, so they are cheap, and grow by allocating (and freeing) heap storage as required. Goroutines are multiplexed onto multiple OS threads so if one should block, such as while waiting for I/O, others continue to run. Their design hides many of the complexities of thread creation and management. Prefix a function or method call with the `go` keyword to run the call in a new goroutine. When the call completes, the goroutine exits, silently. (The effect is similar to the Unix shell's `&` notation for running a command in the background.) > go list.Sort() // run list.Sort concurrently; don't wait for it. A function literal can be handy in a goroutine invocation. > func Announce(message string, delay time.Duration) { go func() { time.Sleep(delay) fmt.Println(message) }() // Note the parentheses - must call the function. } In Go, function literals are closures: the implementation makes sure the variables referred to by the function survive as long as they are active. These examples aren't too practical because the functions have no way of signaling completion. For that, we need channels. ### Channels Like maps, channels are allocated with `make` , and the resulting value acts as a reference to an underlying data structure. If an optional integer parameter is provided, it sets the buffer size for the channel. The default is zero, for an unbuffered or synchronous channel. > ci := make(chan int) // unbuffered channel of integers cj := make(chan int, 0) // unbuffered channel of integers cs := make(chan *os.File, 100) // buffered channel of pointers to Files Unbuffered channels combine communication—the exchange of a value—with synchronization—guaranteeing that two calculations (goroutines) are in a known state. There are lots of nice idioms using channels. Here's one to get us started. In the previous section we launched a sort in the background. A channel can allow the launching goroutine to wait for the sort to complete. > c := make(chan int) // Allocate a channel. // Start the sort in a goroutine; when it completes, signal on the channel. go func() { list.Sort() c <- 1 // Send a signal; value does not matter. }() doSomethingForAWhile() <-c // Wait for sort to finish; discard sent value. Receivers always block until there is data to receive. If the channel is unbuffered, the sender blocks until the receiver has received the value. If the channel has a buffer, the sender blocks only until the value has been copied to the buffer; if the buffer is full, this means waiting until some receiver has retrieved a value. A buffered channel can be used like a semaphore, for instance to limit throughput. In this example, incoming requests are passed to `handle` , which sends a value into the channel, processes the request, and then receives a value from the channel to ready the “semaphore” for the next consumer. The capacity of the channel buffer limits the number of simultaneous calls to `process` . > var sem = make(chan int, MaxOutstanding) func handle(r *Request) { sem <- 1 // Wait for active queue to drain. process(r) // May take a long time. <-sem // Done; enable next request to run. } func Serve(queue chan *Request) { for { req := <-queue go handle(req) // Don't wait for handle to finish. } } Once `MaxOutstanding` handlers are executing `process` , any more will block trying to send into the filled channel buffer, until one of the existing handlers finishes and receives from the buffer. This design has a problem, though: `Serve` creates a new goroutine for every incoming request, even though only `MaxOutstanding` of them can run at any moment. As a result, the program can consume unlimited resources if the requests come in too fast. We can address that deficiency by changing `Serve` to gate the creation of the goroutines. Here's an obvious solution, but beware it has a bug we'll fix subsequently: > func Serve(queue chan *Request) { for req := range queue { sem <- 1 go func() { process(req) // Buggy; see explanation below. <-sem }() } } The bug is that in a Go `for` loop, the loop variable is reused for each iteration, so the `req` variable is shared across all goroutines. That's not what we want. We need to make sure that `req` is unique for each goroutine. Here's one way to do that, passing the value of `req` as an argument to the closure in the goroutine: > func Serve(queue chan *Request) { for req := range queue { sem <- 1 go func(req *Request) { process(req) <-sem }(req) } } Compare this version with the previous to see the difference in how the closure is declared and run. Another solution is just to create a new variable with the same name, as in this example: > func Serve(queue chan *Request) { for req := range queue { req := req // Create new instance of req for the goroutine. sem <- 1 go func() { process(req) <-sem }() } } It may seem odd to write > req := req but it's legal and idiomatic in Go to do this. You get a fresh version of the variable with the same name, deliberately shadowing the loop variable locally but unique to each goroutine. Going back to the general problem of writing the server, another approach that manages resources well is to start a fixed number of `handle` goroutines all reading from the request channel. The number of goroutines limits the number of simultaneous calls to `process` . This `Serve` function also accepts a channel on which it will be told to exit; after launching the goroutines it blocks receiving from that channel. > func handle(queue chan *Request) { for r := range queue { process(r) } } func Serve(clientRequests chan *Request, quit chan bool) { // Start handlers for i := 0; i < MaxOutstanding; i++ { go handle(clientRequests) } <-quit // Wait to be told to exit. } ### Channels of channels One of the most important properties of Go is that a channel is a first-class value that can be allocated and passed around like any other. A common use of this property is to implement safe, parallel demultiplexing. In the example in the previous section, `handle` was an idealized handler for a request but we didn't define the type it was handling. If that type includes a channel on which to reply, each client can provide its own path for the answer. Here's a schematic definition of type `Request` . > type Request struct { args []int f func([]int) int resultChan chan int } The client provides a function and its arguments, as well as a channel inside the request object on which to receive the answer. > func sum(a []int) (s int) { for _, v := range a { s += v } return } request := &Request{[]int{3, 4, 5}, sum, make(chan int)} // Send request clientRequests <- request // Wait for response. fmt.Printf("answer: %d\n", <-request.resultChan) On the server side, the handler function is the only thing that changes. > func handle(queue chan *Request) { for req := range queue { req.resultChan <- req.f(req.args) } } There's clearly a lot more to do to make it realistic, but this code is a framework for a rate-limited, parallel, non-blocking RPC system, and there's not a mutex in sight. ### Parallelization Another application of these ideas is to parallelize a calculation across multiple CPU cores. If the calculation can be broken into separate pieces that can execute independently, it can be parallelized, with a channel to signal when each piece completes. Let's say we have an expensive operation to perform on a vector of items, and that the value of the operation on each item is independent, as in this idealized example. > type Vector []float64 // Apply the operation to v[i], v[i+1] ... up to v[n-1]. func (v Vector) DoSome(i, n int, u Vector, c chan int) { for ; i < n; i++ { v[i] += u.Op(v[i]) } c <- 1 // signal that this piece is done } We launch the pieces independently in a loop, one per CPU. They can complete in any order but it doesn't matter; we just count the completion signals by draining the channel after launching all the goroutines. > const numCPU = 4 // number of CPU cores func (v Vector) DoAll(u Vector) { c := make(chan int, numCPU) // Buffering optional but sensible. for i := 0; i < numCPU; i++ { go v.DoSome(i*len(v)/numCPU, (i+1)*len(v)/numCPU, u, c) } // Drain the channel. for i := 0; i < numCPU; i++ { <-c // wait for one task to complete } // All done. } Rather than create a constant value for numCPU, we can ask the runtime what value is appropriate. The function `runtime.NumCPU` returns the number of hardware CPU cores in the machine, so we could write > var numCPU = runtime.NumCPU() There is also a function `runtime.GOMAXPROCS` , which reports (or sets) the user-specified number of cores that a Go program can have running simultaneously. It defaults to the value of `runtime.NumCPU` but can be overridden by setting the similarly named shell environment variable or by calling the function with a positive number. Calling it with zero just queries the value. Therefore if we want to honor the user's resource request, we should write > var numCPU = runtime.GOMAXPROCS(0) Be sure not to confuse the ideas of concurrency—structuring a program as independently executing components—and parallelism—executing calculations in parallel for efficiency on multiple CPUs. Although the concurrency features of Go can make some problems easy to structure as parallel computations, Go is a concurrent language, not a parallel one, and not all parallelization problems fit Go's model. For a discussion of the distinction, see the talk cited in this blog post. ### A leaky buffer The tools of concurrent programming can even make non-concurrent ideas easier to express. Here's an example abstracted from an RPC package. The client goroutine loops receiving data from some source, perhaps a network. To avoid allocating and freeing buffers, it keeps a free list, and uses a buffered channel to represent it. If the channel is empty, a new buffer gets allocated. Once the message buffer is ready, it's sent to the server on `serverChan` . > var freeList = make(chan *Buffer, 100) var serverChan = make(chan *Buffer) func client() { for { var b *Buffer // Grab a buffer if available; allocate if not. select { case b = <-freeList: // Got one; nothing more to do. default: // None free, so allocate a new one. b = new(Buffer) } load(b) // Read next message from the net. serverChan <- b // Send to server. } } The server loop receives each message from the client, processes it, and returns the buffer to the free list. > func server() { for { b := <-serverChan // Wait for work. process(b) // Reuse buffer if there's room. select { case freeList <- b: // Buffer on free list; nothing more to do. default: // Free list full, just carry on. } } } The client attempts to retrieve a buffer from `freeList` ; if none is available, it allocates a fresh one. The server's send to `freeList` puts `b` back on the free list unless the list is full, in which case the buffer is dropped on the floor to be reclaimed by the garbage collector. (The `default` clauses in the `select` statements execute when no other case is ready, meaning that the `selects` never block.) This implementation builds a leaky bucket free list in just a few lines, relying on the buffered channel and the garbage collector for bookkeeping. ## Errors Library routines must often return some sort of error indication to the caller. As mentioned earlier, Go's multivalue return makes it easy to return a detailed error description alongside the normal return value. It is good style to use this feature to provide detailed error information. For example, as we'll see, `os.Open` doesn't just return a `nil` pointer on failure, it also returns an error value that describes what went wrong. By convention, errors have type `error` , a simple built-in interface. > type error interface { Error() string } A library writer is free to implement this interface with a richer model under the covers, making it possible not only to see the error but also to provide some context. As mentioned, alongside the usual `*os.File` return value, `os.Open` also returns an error value. If the file is opened successfully, the error will be `nil` , but when there is a problem, it will hold an `os.PathError` : > // PathError records an error and the operation and // file path that caused it. type PathError struct { Op string // "open", "unlink", etc. Path string // The associated file. Err error // Returned by the system call. } func (e *PathError) Error() string { return e.Op + " " + e.Path + ": " + e.Err.Error() } `PathError` 's `Error` generates a string like this: > open /etc/passwx: no such file or directory Such an error, which includes the problematic file name, the operation, and the operating system error it triggered, is useful even if printed far from the call that caused it; it is much more informative than the plain "no such file or directory". When feasible, error strings should identify their origin, such as by having a prefix naming the operation or package that generated the error. For example, in package `image` , the string representation for a decoding error due to an unknown format is "image: unknown format". Callers that care about the precise error details can use a type switch or a type assertion to look for specific errors and extract details. For `PathErrors` this might include examining the internal `Err` field for recoverable failures. > for try := 0; try < 2; try++ { file, err = os.Create(filename) if err == nil { return } if e, ok := err.(*os.PathError); ok && e.Err == syscall.ENOSPC { deleteTempFiles() // Recover some space. continue } return } The second `if` statement here is another type assertion. If it fails, `ok` will be false, and `e` will be `nil` . If it succeeds, `ok` will be true, which means the error was of type `*os.PathError` , and then so is `e` , which we can examine for more information about the error. ### Panic The usual way to report an error to a caller is to return an `error` as an extra return value. The canonical `Read` method is a well-known instance; it returns a byte count and an `error` . But what if the error is unrecoverable? Sometimes the program simply cannot continue. For this purpose, there is a built-in function `panic` that in effect creates a run-time error that will stop the program (but see the next section). The function takes a single argument of arbitrary type—often a string—to be printed as the program dies. It's also a way to indicate that something impossible has happened, such as exiting an infinite loop. > // A toy implementation of cube root using Newton's method. func CubeRoot(x float64) float64 { z := x/3 // Arbitrary initial value for i := 0; i < 1e6; i++ { prevz := z z -= (z*z*z-x) / (3*z*z) if veryClose(z, prevz) { return z } } // A million iterations has not converged; something is wrong. panic(fmt.Sprintf("CubeRoot(%g) did not converge", x)) } This is only an example but real library functions should avoid `panic` . If the problem can be masked or worked around, it's always better to let things continue to run rather than taking down the whole program. One possible counterexample is during initialization: if the library truly cannot set itself up, it might be reasonable to panic, so to speak. > var user = os.Getenv("USER") func init() { if user == "" { panic("no value for $USER") } } ### Recover When `panic` is called, including implicitly for run-time errors such as indexing a slice out of bounds or failing a type assertion, it immediately stops execution of the current function and begins unwinding the stack of the goroutine, running any deferred functions along the way. If that unwinding reaches the top of the goroutine's stack, the program dies. However, it is possible to use the built-in function `recover` to regain control of the goroutine and resume normal execution. A call to `recover` stops the unwinding and returns the argument passed to `panic` . Because the only code that runs while unwinding is inside deferred functions, `recover` is only useful inside deferred functions. One application of `recover` is to shut down a failing goroutine inside a server without killing the other executing goroutines. > func server(workChan <-chan *Work) { for work := range workChan { go safelyDo(work) } } func safelyDo(work *Work) { defer func() { if err := recover(); err != nil { log.Println("work failed:", err) } }() do(work) } In this example, if `do(work)` panics, the result will be logged and the goroutine will exit cleanly without disturbing the others. There's no need to do anything else in the deferred closure; calling `recover` handles the condition completely. Because `recover` always returns `nil` unless called directly from a deferred function, deferred code can call library routines that themselves use `panic` and `recover` without failing. As an example, the deferred function in `safelyDo` might call a logging function before calling `recover` , and that logging code would run unaffected by the panicking state. With our recovery pattern in place, the `do` function (and anything it calls) can get out of any bad situation cleanly by calling `panic` . We can use that idea to simplify error handling in complex software. Let's look at an idealized version of a `regexp` package, which reports parsing errors by calling `panic` with a local error type. Here's the definition of `Error` , an `error` method, and the `Compile` function. > // Error is the type of a parse error; it satisfies the error interface. type Error string func (e Error) Error() string { return string(e) } // error is a method of *Regexp that reports parsing errors by // panicking with an Error. func (regexp *Regexp) error(err string) { panic(Error(err)) } // Compile returns a parsed representation of the regular expression. func Compile(str string) (regexp *Regexp, err error) { regexp = new(Regexp) // doParse will panic if there is a parse error. defer func() { if e := recover(); e != nil { regexp = nil // Clear return value. err = e.(Error) // Will re-panic if not a parse error. } }() return regexp.doParse(str), nil } If `doParse` panics, the recovery block will set the return value to `nil` —deferred functions can modify named return values. It will then check, in the assignment to `err` , that the problem was a parse error by asserting that it has the local type `Error` . If it does not, the type assertion will fail, causing a run-time error that continues the stack unwinding as though nothing had interrupted it. This check means that if something unexpected happens, such as an index out of bounds, the code will fail even though we are using `panic` and `recover` to handle parse errors. With error handling in place, the `error` method (because it's a method bound to a type, it's fine, even natural, for it to have the same name as the builtin `error` type) makes it easy to report parse errors without worrying about unwinding the parse stack by hand: > if pos == 0 { re.error("'*' illegal at start of expression") } Useful though this pattern is, it should be used only within a package. `Parse` turns its internal `panic` calls into `error` values; it does not expose `panics` to its client. That is a good rule to follow. By the way, this re-panic idiom changes the panic value if an actual error occurs. However, both the original and new failures will be presented in the crash report, so the root cause of the problem will still be visible. Thus this simple re-panic approach is usually sufficient—it's a crash after all—but if you want to display only the original value, you can write a little more code to filter unexpected problems and re-panic with the original error. That's left as an exercise for the reader. ## A web server Let's finish with a complete Go program, a web server. This one is actually a kind of web re-server. Google provides a service at ``` chart.apis.google.com ``` that does automatic formatting of data into charts and graphs. It's hard to use interactively, though, because you need to put the data into the URL as a query. The program here provides a nicer interface to one form of data: given a short piece of text, it calls on the chart server to produce a QR code, a matrix of boxes that encode the text. That image can be grabbed with your cell phone's camera and interpreted as, for instance, a URL, saving you typing the URL into the phone's tiny keyboard. Here's the complete program. An explanation follows. import ( "flag" "html/template" "log" "net/http" ) var addr = flag.String("addr", ":1718", "http service address") // Q=17, R=18 var templ = template.Must(template.New("qr").Parse(templateStr)) func main() { flag.Parse() http.Handle("/", http.HandlerFunc(QR)) err := http.ListenAndServe(*addr, nil) if err != nil { log.Fatal("ListenAndServe:", err) } } func QR(w http.ResponseWriter, req *http.Request) { templ.Execute(w, req.FormValue("s")) } const templateStr = ` <html> <head> <title>QR Link Generator</title> </head> <body> {{if .}} <img src="http://chart.apis.google.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl={{.}}" /> <br> {{.}} <br> <br> {{end}} <form action="/" name=f method="GET"> <input maxLength=1024 size=70 name=s value="" title="Text to QR Encode"> <input type=submit value="Show QR" name=qr> </form> </body> </html> ` ``` The pieces up to `main` should be easy to follow. The one flag sets a default HTTP port for our server. The template variable `templ` is where the fun happens. It builds an HTML template that will be executed by the server to display the page; more about that in a moment. The `main` function parses the flags and, using the mechanism we talked about above, binds the function `QR` to the root path for the server. Then `http.ListenAndServe` is called to start the server; it blocks while the server runs. `QR` just receives the request, which contains form data, and executes the template on the data in the form value named `s` . The template package `html/template` is powerful; this program just touches on its capabilities. In essence, it rewrites a piece of HTML text on the fly by substituting elements derived from data items passed to `templ.Execute` , in this case the form value. Within the template text ( `templateStr` ), double-brace-delimited pieces denote template actions. The piece from `{{if .}}` to `{{end}}` executes only if the value of the current data item, called `.` (dot), is non-empty. That is, when the string is empty, this piece of the template is suppressed. The two snippets `{{.}}` say to show the data presented to the template—the query string—on the web page. The HTML template package automatically provides appropriate escaping so the text is safe to display. The rest of the template string is just the HTML to show when the page loads. If this is too quick an explanation, see the documentation for the template package for a more thorough discussion. And there you have it: a useful web server in a few lines of code plus some data-driven HTML text. Go is powerful enough to make a lot happen in a few lines.
pyneng_readthedocs_io_en_latest
free_programming_book
Markdown
The book covers Python basics with examples and tasks built around networking topics. On the one hand, this book is basic enough to be mastered by anyone, and on the other hand, covers all the main topics that will allow you to further grow on your own. This book is not intended to be an in-depth look at Python. The purpose of this book is to explain the basics of Python in clear language and provide an understanding of the necessary tools for practical use. Everything in the book is focused on network equipment and interaction with it. This immediately makes it possible to use the knowledge gained in the daily work of network engineers. All examples are shown using Cisco equipment as an example, but of course they apply to any other equipment. This book covers Python 3.7. The book was written by <NAME>. Translated from Russian by <NAME>. From the one hand, book is basic enough so everyone can handle it, from the other hand, book covers all main topics which allow you to develop skill independently in the future. Python deep dive is not a goal of this book. The goal is to explain Python basics in plain language and provide understanding of necessary tools for practical usage. Everything in this book is focused on network equipment and interaction with it. It right away gives opportunity to use knowledge gained at the course in network engineers daily work. All shown examples are based on Cisco equipment but, of course, they could be applied to any other equipment. ## Who is this book for?# For network engineers with or without programming experience. All examples and homework will be formed with a focus on network equipment. This book will be useful for network engineers who want to automate their daily basis routine tasks and want start coding but don’t know how to approach this. Still haven’t decided whether it worth reading this book? Read feedbacks. ## OS and Python requirements# All examples and terminal outputs in the book are shown on Debian Linux. Python 3.7 is used in this book but for the majority of examples Python 3.x will be enough. Only some examples requires Python version higher than 3.6. It always explicitly indicated and generally concerns some additional features. ## Examples# All examples from the book resides in repository. All examples have educational purpose. It means they not necessarily show the best solution since they are based on information which was covered in previous chapters. Moreover, often enough the examples in chapters are developing in tasks. In other words, in tasks you have to create better, more universal and, in general, more proper version of code. It’s better to write code from the book on your own or at least download examples and try to modify them. So the information will be better remembered. If you don’t have this possibility, for example when you read book on road, it’s better to repeat examples later on your own. In any case, it’s necessary to do tasks manually. ## Tasks# All tasks and auxiliary files can be downloaded from the same repository, where code examples are located. ## Book formats# Book is available in PDF and Epub formats. Both of them are being updated automatically. Date: 2015-01-01 Categories: Tags: ## Will there be a printed version of the book?# No, there will be no printed version. The book has existed in some form since late 2015 (in Russian). All this time the book has been changing. I love this opportunity to change the book, write something differently. ## Why is there no topic X in the book?# There are still a huge number of useful topics and it is simply impossible to fit all of them into one book. Of course, each reader has priorities and it seems that this particular module is very necessary for everyone, but there are a lot of such topics/modules. Globally, nothing will change in the book, new topics will not be added. ## How does this differ from the regular Python introductory book?# The main differences are three: The basics part is rather brief * Implies a certain domain of knowledge (network-based equipment) * All examples are focused on network equipment, as far as possible ## Why is this book specifically for network engineers?# There are several reasons: Network engineers already have experience in IT and some of concepts are familiar to them and it is likely that some programming basics will be familiar to most. This means that it will be much easier to deal with Python * Working in CLI and writing scripts is unlikely to frighten them * Network engineers have a familiar knowledge domain on which to build examples and tasks If you tell on abstract examples “about cats and bunnies”, it is one thing. But when you have the ability to use ideas from subject area in examples, things get easier, you get concrete ideas about how to improve a program, a script. And when a person tries to improve it, they start to deal with something new - it’s a very powerful way to move forward. ## Why Python?# The reasons are as follows: In the context of network equipment, Python is often used now * Some equipment has Python embedded or has an API that supports Python * Python is simple enough to learn (of course, it is relatively, and another language may seem simpler but it is rather to be because of experience with the language than because Python is complex) * With Python you will not quickly reach the limits of language capabilities * Python can be used not only to write scripts but also to develop applications. Of course, this is not the task of this book but at least you will spend your time on a language that will allow you to go further than simple scripts * For example GNS3 is written on Python And one more point - in the context of book, Python should not be seen as the only correct variant nor as the “correct” language. No, Python is just a tool like a screwdriver and we learn to use it for specific tasks. That is, there is no ideological background here, no “only Python” and no worship especially. It is strange to worship a screwdriver :-) Everything is simple - there is a good and convenient tool that will approach different tasks. He’s not the best language at all and he’s not the only language at all. Start with it and then you can choose something else if you want to - that knowledge will still be there. Thank you to all who expressed interest in the first announcement of the course - your interest confirmed that someone would need it. <NAME>, thank you for agreeing to course. It’s been interesting working with you and it’s given me an incentive to finish the course and I’m particularly glad that the knowledge that you’ve learned from course has found practical application. <NAME>, thank you very much :-) I have always been able to discuss with you any question on course. You helped me maintain my motivation and not get in a muddle. Communicating with you has inspired me to continue, especially in difficult moments. Thank you for your inspiration, positive emotions and support! Thanks to all those who wrote comments on book - thanks to you now book not only has fewer typographical errors and typos, but also the contents of book have improved. Thanks to all participants of online course - thanks to your questions book has become much better. <NAME>, thank you so much for volunteering to be an editor - number of errors is now going to zero :-) Resources that will come in handy during the learning process: ## Preparing the working environment# take a prepared virtual machine vmware or vagrant (virtualbox) * More about these options Working environment. ## Exercises# All tasks and auxiliary files can be downloaded from the repository. Tasks are duplicated in the book solely for a convenient overview of all tasks in the section. Since all supporting files, code, and tests are in the repository, it is best to do tasks in a copy of the repository. How to make a copy is described in section 2. Using Git and GitHub. Sometimes, a certain section can be especially difficult, in this case, you can stop at a minimum of tasks. This will allow you to move on and not abandon your studies. Later you can come back and finish the tasks. In general, of course, it is better to do all the tasks, since practice is the only way to properly learn the topic, but sometimes it is better to do fewer tasks and continue studying than to get stuck on one topic and abandon everything. ### Tests# There are automated tests in the repository for checking assignments. They help to check whether everything matches the task, and also give feedback on what does not correspond to the task. As a rule, after the first period of adaptation to tests, it becomes easier to do tasks with tests. ## Further reading# Almost every book chapter has subchapter “Further reading” which includes useful materials and references on the subject, plus references to official documentations. Moreover, I prepared a collection of resources on “Python for network engineers” topic where you can find a lot of useful articles, books, video courses and podcasts. Control structures * Control structures operating system * editor * operating system editor ## Preparing the virtual machine/host# tips for Preparing Windows * tips for Preparing Linux List of modules to be installed: You also need to install graphviz (example for debian): ## Cloud service# Another option is to use one of the following services: repl.it – this service provides an online Python interpreter as well as a graphics editor. * PythonAnywhere - a separate virtual machine. In the free version you can work only from the command line, that is, there is no graphical text editor ## Network equipment# For the 18th section of the book, you need to prepare virtual or real network equipment. All examples and tasks in which network equipment is used use the same number of devices: three routers with the following basic settings: SSH version 2 (version 2 is required), Telnet * Router IPs: 192.168.100.1, 192.168.100.2, 192.168.100.3 * IP addresses must be accessible from the virtual machine on which you perform tasks and can be assigned on physical/logical/loopback interfaces The topology can be arbitrary. Example topology: Basic config: ``` hostname R1 ! no ip domain lookup ip domain name pyneng ! crypto key generate rsa modulus 1024 ip ssh version 2 ! username cisco password cisco enable secret cisco ! line vty 0 4 logging synchronous login local transport input telnet ssh ``` On some interface, you need to configure an IP address ``` interface ... ip address 192.168.100.1 255.255.255.0 ``` Aliases (optional) Optionally, you can configure the EEM applet to display the commands that the user enters: ``` ! event manager applet COMM_ACC event cli pattern ".*" sync no skip no occurs 1 action 1 syslog msg "User $_cli_username entered $_cli_msg on device $_cli_host " ! ``` You can choose any OS and any editor but it is better to use Python version 3.7 because book uses this version. All examples in book were run on Debian, other operating systems may have a slightly different output. You can use Linux, macOS or Windows to perform tasks from a book. You can select any text editor or IDE that supports Python. Generally, working with Python requires minimal editor settings and often the editor recognizes Python by default. ## Thonny# Great editor for beginners: supports Python 3.10 and can install both itself and Python 3.10 at once * work with different versions of Python and virtual environments is conveniently done, you can select the version very clearly and this is not hidden in the depths of the settings * multiple debugger options * the nicer debugger is simply indispensable for beginners to learn Python, it shows step by step how each expression is evaluated in Python * the faster debugger generally works like a standard debugger * there are all the standard goodies with autocomplete, highlights, and so on (some may need to be enabled in the settings) * conveniently highlights unclosed quotes/brackets * supports Windows, Mac, Linux * user-friendly interface and it is possible to add/remove sections of the interface at will ## Mu editor# Mu editor is a simple Python editor for beginner programmers. Mu has clean and simple user interface. It has important features such as checking code against PEP 8 and debugger. Plus, Mu runs on different operating systems (macOS, Windows, Linux). ## IDE PyCharm# PyCharm — is an integrated development environment for Python. For beginners it may be difficult option due to the large number of settings but it depends on personal preferences. Pycharm supports a huge number of features, even in free version. Pycharm is a great IDE but I think it’s a little difficult for beginners. I wouldn’t recommend using it if you’re not familiar with it and you’re just starting to learn Python. You can always switch to it after book but for now it’s better to try something else. Pip will be used to install Python packages. It is a package management system used to install packages from Python Package Index (Pypi). Most likely, if you already have Python installed, pip is installed. Check pip version: If command failed, pip is not installed. Pip installation is described in documentation ## Module installation# Command to install modules `pip install` : ``` $ pip install tabulate ``` To delete package: ``` $ pip uninstall tabulate ``` In addition, it is sometimes necessary to update package: ``` $ pip install --upgrade tabulate ``` ## pip or pip3# Depending on how Python is installed and configured in system it may be necessary to use pip3 instead of pip. To check which option is used, you should execute command `pip --version` . A version where pip corresponds to Python 2.7: ``` $ pip --version pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7) ``` A version where pip3 corresponds to 3.7: If system uses pip3, then every time a Python module is installed in book it will be necessary to replace pip with pip3. Alternatively, call pip: ``` $ python3.7 -m pip install tabulate ``` Thus, it is always clear for which version of Python the package is installed. Virtual environments: Allow different projects to be isolated from each other * Packages that are needed by different projects are in different places - for example, if one project requires 1.0 package and another project requires the same package but version 3.1, they will not interfere with each other * Packages that are installed in virtual environments do not impact on global packages Python has several options for creating virtual environments. You can use any of them. To start with, you can use virtualenvwrapper and then eventually you can figure out which option you prefer. ## virtualenvwrapper# Virtual environments are created with virtualenvwrapper. ``` $ sudo pip3.7 install virtualenvwrapper ``` After installation, in . bashrc file in current user’s home folder, you need to add several lines: ``` export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3.7 export WORKON_HOME=~/venv . /usr/local/bin/virtualenvwrapper.sh ``` If you are using a command interpreter other than bash, see if it is supported in virtualenvwrapper documentation. Environment variable VIRTUALENVWRAPPER_PYTHON points to Python command line binary file, WORKON_HOME – points to location of virtual environments. The third line indicates location of script installed with virtualenvwrapper package. To start virtualenvwrapper.sh script work with virtual environments, bash must be restarted. Restart command interpreter: `$ exec bash` This may not always be the right option. More on Stack Overflow. ## Working with virtual environments# Creating a new virtual environment in which Python 3.7 is used by default: ``` $ mkvirtualenv --python=/usr/local/bin/python3.7 pyneng New python executable in PyNEng/bin/python Installing distribute........................done. Installing pip...............done. (pyneng)$ ``` The name of virtual environment is shown in parentheses before standard invitation. That means you’re inside it. Virtualenvwrapper uses Tab to autocomplete name of virtual environment. This is particularly useful when there are many virtual environments. Now “pyneng” directory was created in directory specified in environment variable WORKON_HOME: ``` (pyneng)$ ls -ls venv total 52 .... 4 -rwxr-xr-x 1 nata nata 99 Sep 30 16:41 preactivate 4 -rw-r--r-- 1 nata nata 76 Sep 30 16:41 predeactivate 4 -rwxr-xr-x 1 nata nata 91 Sep 30 16:41 premkproject 4 -rwxr-xr-x 1 nata nata 130 Sep 30 16:41 premkvirtualenv 4 -rwxr-xr-x 1 nata nata 111 Sep 30 16:41 prermvirtualenv 4 drwxr-xr-x 6 nata nata 4096 Sep 30 16:42 pyneng ``` Exit virtual environment: To move to created virtual environment, you should run “workon” command: ``` $ workon pyneng (pyneng)$ ``` If you want to go from one virtual environment to another, you don’t need to do deactivate, you can go directly through “workon”: ``` $ workon Test (Test)$ workon pyneng (pyneng)$ ``` If you want to remove virtual environment, you should use “rmvirtualenv”: ``` $ rmvirtualenv Test Removing Test... $ ``` See which packages are installed in a virtual environment using “lssitepackages”: ``` (pyneng)$ lssitepackages ANSI.py pexpect-3.3-py2.7.egg-info ANSI.pyc pickleshare-0.5-py2.7.egg-info decorator-4.0.4-py2.7.egg-info pickleshare.py decorator.py pickleshare.pyc decorator.pyc pip-1.1-py2.7.egg distribute-0.6.24-py2.7.egg pxssh.py easy-install.pth pxssh.pyc fdpexpect.py requests fdpexpect.pyc requests-2.7.0-py2.7.egg-info FSM.py screen.py FSM.pyc screen.pyc IPython setuptools.pth ipython-4.0.0-py2.7.egg-info simplegeneric-0.8.1-py2.7.egg-info ipython_genutils simplegeneric.py ipython_genutils-0.1.0-py2.7.egg-info simplegeneric.pyc path.py test_path.py path.py-8.1.1-py2.7.egg-info test_path.pyc path.pyc traitlets pexpect traitlets-4.0.0-py2.7.egg-info ``` ## Built-in venv module# Starting from version 3.5, it is recommended that Python use venv to create virtual environments: ``` $ python3.7 -m venv new/pyneng ``` Python or python3 can be used instead of python 3.7, depending on how Python 3.7 is installed. This command creates specified directory and all necessary subdirectories within it if they have not been created. Command creates the following directory structure: ``` $ ls -ls new/pyneng total 16 4 drwxr-xr-x 2 vagrant vagrant 4096 Aug 21 14:50 bin 4 drwxr-xr-x 2 vagrant vagrant 4096 Aug 21 14:50 include 4 drwxr-xr-x 3 vagrant vagrant 4096 Aug 21 14:50 lib 4 -rw-r--r-- 1 vagrant vagrant 75 Aug 21 14:50 pyvenv.cfg ``` To move to a virtual environment, you should execute command: ``` $ source new/pyneng/bin/activate ``` To exit virtual environment, use command “deactivate”: `$ deactivate` More about the venv module in documentation. ## Package installation# For example, let’s install simplejson package in virtual environment. ``` (pyneng)$ pip install simplejson ... Successfully installed simplejson Cleaning up... ``` If you open Python interpreter and import simplejson, it is available and there are no errors: ``` (pyneng)$ python >>> import simplejson >>> simplejson <module 'simplejson' from '/home/vagrant/venv/pyneng-py3-7/lib/python3.7/site-packages/simplejson/__init__.py'> >>> ``` But if you exit from virtual environment and try to do the same thing, there is no such module: $ python >>> import simplejson Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'simplejson' >>> ``` Before you start, check that when you call Python interpreter, the output is: ``` $ python Python 3.7.3 (default, May 13 2019, 15:44:23) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information. ``` Output shows that Python 3.7 is set. Invitation `>>>` , this is a standard invitation from Python interpreter. Interpreter call is executed by python command and to exit you need to type `quit()` , or press Ctrl+D. Note Book will use ipython instead of standard Python interpreter Further reading# Documentation: Python Setup and Usage pip venv virtualenvwrapper Editors and IDE: PythonEditors IntegratedDevelopmentEnvironments VIM and Python - a Match Made in Heaven Thonny: Thonny Thonny docs Thonny debug ## Task 1.1# Create a virtual environment * Create a virtual environment This is a difficult section to understand. Especially because this section is at the very beginning of the book. You can skip it, but I would highly recommend trying to understand the basics of git/Github and use it to store tasks. There are a lot of tasks in book and you have to store them somewhere. One option is to use Git and Github to do this. Of course, there are other ways to do this but Github can be used for other things in future. Tasks and examples from book are in a separate repository on Github. They can be downloaded as a zip archive but it is better to work with repository using Git, then you can see changes made and easily update repository. If this is the first time working with Git and especially if this is the first version control system you work with, there are a lot of information, so this chapter focuses on practical side of question and it says: How to start using Git and Github * How to perform basic setup * How to view information and/or changes There will be no much theory in this subsection but references to useful resources are listed. Try doing all basic settings for tasks and then continue reading the book. And at the end, when basic work with Git and Github is already routine, read more about them. What could Git be useful for: to store configurations and all configuration changes * to store documentation and all its versions * to store schemes and all its versions * to store code and its versions Github allows you to centrally store all above items, but it should be taken into account that these resources will be available to others as well. Github also has private repositories, but even these probably should not contain information such as passwords. Of course, main use of Github is to place code of various projects. In addition, Github can be also used to: host for your website (GitHub Pages) * Hosting for online presentations and a tool to create them (GitPitch) * together with GitBook, it is also a platform for publishing books, documentation, etc Git is a distributed version control system (Version Control System, VCS) that is widely used and released under GNU GPL v2 license. It can: track changes in files; * store multiple versions of the same file; * cancel changes made; * record who made changes and when. Git stores changes as a snapshot of entire repository. This snapshot is created after each “commit” command. Git installation: ``` $ sudo apt-get install git ``` ## Git initial setup# To start working with Git you need to specify user name and e-mail that will be used to synchronize local repository with Github repository: ``` $ git config --global user.name "username" $ git config --global user.email "<EMAIL>" ``` See Git settings: `$ git config --list` ## Repository initialization# Repository is initialized using “git init” command: ``` [~/tools/first_repo] $ git init Initialized empty Git repository in /home/vagrant/tools/first_repo/.git/ ``` After executing this command, current directory creates .git folder containing service files needed for Git. This is an additional functionality that is not required to work with Git but is very helpful in this regard. When working with Git it is very convenient when you can immediately determine whether you are in a regular directory or in a Git repository. In addition, it would be good to understand status of current repository. To do this, you need to install a special utility that will show status of repository. To install utility, copy its repository to user’s home directory under which you work: ``` cd ~ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt --depth=1 ``` And then add to the end of `~/.bashrc` file such lines: ``` GIT_PROMPT_ONLY_IN_REPO=1 source ~/.bash-git-prompt/gitprompt.sh ``` To apply changes, restart bash: `exec bash` In my configuration command line invitation is spread over several lines, so you will have a different one. Please note that additional information appears when you move to repository. Now, if you’re in a regular catalog, invitation is like this: ``` [~] vagrant@jessie-i386: $ ``` If you go to Git repository: There are a few basic commands you need to know to work with Git. ## git status# When working with Git it is important to understand current status of repository. For this purpose Git has a `git status` command Git reports that we are in master branch (this branch is auto-created and used by default) and that it has nothing to commit. Git also offers to create or copy files and then use `git add` command to start Git tracking them. Create README file and add “test” line to it ``` $ vi README $ echo "test" >> README ``` After that, invitation looks like this Invitation shows that there are two untracked files: Two files came out because I have undo-files configured for Vim. These are special files that allow you to undo changes not only in current file session but also in the previous sessions. Note that Git reports there are files that it does not track and tells you using which command you can start tracking. ## File .gitignore# Undo-file .README.un~ is a special file that does not need to be added to repository. Git has option to specify which files or directories to ignore. To do this, you need to create appropriate templates in `.gitignore` file in repository directory. To make Git ignore Vim undo-files you can add such a line to .gitignore file `*.un~` This means that Git must ignore all files that end with “.un~”. After that, git status shows Note that there is no .README.un~ file in the output. Once a file was added to repository .gitignore, files that are listed in it are being ignored. ## git add# Command `git add` is used to start Git tracking files. You can specify that you want to track a particular file Or all files Git status output Now files are in a section called “Changes to be committed”. ## git commit# After all necessary files have been added in staging, you can commit changes. Staging is a collection of files that will be added to the next commit. Command `git commit` has only one mandatory parameter - flag “-m”. It allows you to specify a message for this commit. After that, git status displays Phrase “nothing to commit, working directory clean” indicates that there are no changes to add to Git or to commit. ## git diff# Command `git diff` allows you to see the difference between different states. For example, README and .gitignore files have been changed in repository. Command `git status` shows that both files have been changed Command `git diff` command shows what changes have been made since last commit If you add changes made to staging via `git add` command and run `git diff` again, it will show nothing To show the difference between staging and last commit, add parameter `--staged` Commit changes ## git log# Command `git log` command shows when last changes were made By default, command displays all commits starting from the nearest time. With help of additional parameters it is possible not only to look at information about commits but also what changes have been made. Flag `-p` allows you to display the differences that have been made by each commit Shorter output option can be displayed with flag `--stat` In order to start working with GitHub, you need to register on it. It is better to use SSH key authentication to work safely with Github. Generation of a new SSH key (use e-mail that is linked to Github): ``` $ ssh-keygen -t rsa -b 4096 -C "<EMAIL>" ``` On all questions, just press Enter. It is more secure to use passphrase but if you press Enter when asked then passphrase will not be requested from you permanently during operations with repository. Start SSH agent: ``` $ eval "$(ssh-agent -s)" ``` Add key to SSH agent: ``` $ ssh-add ~/.ssh/id_rsa ``` ## Add SSH key to Github# To add a key you have to copy it. For example, you can display key with cat to copy it: ``` $ cat ~/.ssh/id_rsa.pub ``` After copying, go to Github. When you are on any Github page, in upper right-hand corner click on picture of your profile and select “Settings” in drop down list. In list on the left, select field “SSH and GPG keys”. Then press “New SSH key” and in “Title” field write key name (for example “Home”) and in field “Key” insert the content that was copied from file ~/. ssh/id_rsa.pub. If Github requests a password, enter your account password on Github. To check if everything has been successful, try executing command ``` ssh -T [email protected] ``` . The output should be as follows: ``` $ ssh -T [email protected] Hi username! You've successfully authenticated, but GitHub does not provide shell access. ``` Now you are ready to work with Git and Github. This chapter covers how to work with repository on your local machine. ## Creating a Github repository# To create a Github repository you need: log in to GitHub * In upper right corner press plus and select “New repository” to create a new repository * Name of repository should be entered in window that appears You can put “Initialize this repository with a README”. This will create a README.md file that only contains repository name. ## Cloning a Github repository# To work locally with repository, it should be cloned. Use `git clone` command to clone repository: ``` $ git clone ssh://[email protected]/pyneng/online-2-natasha-samoylenko.git Cloning into 'online-2-natasha-samoylenko'... remote: Counting objects: 241, done. remote: Compressing objects: 100% (191/191), done. remote: Total 241 (delta 43), reused 239 (delta 41), pack-reused 0 Receiving objects: 100% (241/241), 119.60 KiB | 0 bytes/s, done. Resolving deltas: 100% (43/43), done. Checking connectivity... done. ``` Compared to this command, you need to change: * `pyneng user name` for your Github user name * ``` online-2-natasha-samoylenko ``` repository name for your Github repository As a result, in current directory in which `git clone` was executed, a directory with name of repository will appear, in my case - “online-2-natasha-samoylenko”. This directory now contains the contents of Github repository. ## Working with repository# The previous command not only copied repository to use it locally, but also configured Git accordingly: Folder .git was created * All repository data is downloaded * Downloaded all changes that were in repository * Github repository is configured as a remote for local repository Now you have a complete local Git repository where you can work. Typically, sequence of steps will be as follows: Before starting, synchronize local content with Github using `git pull` command * Modifying repository files * Adding modified files to staging with “git add” command * Commit changes using `git commit` command * Transferring local changes to Github repository with `git push` command When working with tasks at work and at home, it is necessary to pay special attention to first and last step: The first step is to update local repository * The last step - load changes to Github ## Synchronizing local repository with remote repository# All commands are executed inside repository directory (in example above - online-2-natasha-samoylenko). If contents of local repository are the same as those of remote repository, output will be: If there were changes, output would be something like this: ``` $ git pull remote: Counting objects: 5, done. remote: Compressing objects: 100% (1/1), done. remote: Total 5 (delta 4), reused 5 (delta 4), pack-reused 0 Unpacking objects: 100% (5/5), done. From ssh://github.com/pyneng/online-2-natasha-samoylenko 89c04b6..fc4c721 master -> origin/master Updating 89c04b6..fc4c721 Fast-forward exercises/03_data_structures/task_3_3.py | 2 ++ 1 file changed, 2 insertions(+) ``` ## Adding new files or changes to existing files# If you want to add a specific file (in this case, README.md), you need to enter `git add README.md` command. All files of current directory are added by `git add .` command. ## Commit# You should specify message when you are running a commit. It is better if message is with meaning, rather than just “update” or similar. Commit could be done by a command similar to ``` git commit -m "Tasks 4.1-4.3 are completed" ``` ## Push on GitHub# Command “git push” is used to load all local changes to Github: ``` $ git push origin master Counting objects: 5, done. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 426 bytes | 0 bytes/s, done. Total 5 (delta 4), reused 0 (delta 0) remote: Resolving deltas: 100% (4/4), completed with 4 local objects. To ssh://[email protected]/pyneng/online-2-natasha-samoylenko.git fc4c721..edcf417 master -> master ``` Before executing `git push` you can run `git log -p/origin..` - it will show what changes you are going to add to your repository on Github. Date: 2017-01-01 Categories: Tags: All examples and tasks of book are published in a separate repository. ## Copying repository from Github# Examples and tasks are sometimes updated, so it will be more convenient to clone this repository to your machine and periodically update it. To copy a repository from Github, run `git clone` : ``` $ git clone https://github.com/natenka/pyneng-examples-exercises Cloning into 'pyneng-examples-exercises'... remote: Counting objects: 1263, done. remote: Compressing objects: 100% (504/504), done. remote: Total 1263 (delta 735), reused 1263 (delta 735), pack-reused 0 Receiving objects: 100% (1263/1263), 267.10 KiB | 444.00 KiB/s, done. Resolving deltas: 100% (735/735), done. Checking connectivity... done. ``` ## Updating local copy of repository# If you need to update local repository to synchronize it with Github version, you need to perform `git pull` from inside the created pyneng-examples-exercises directory. If there were no updates, output would be: If there were updates, output would be something like this: ``` $ git pull remote: Counting objects: 3, done. remote: Compressing objects: 100% (1/1), done. remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0 Unpacking objects: 100% (3/3), done. From https://github.com/natenka/pyneng-examples-exercises 49e9f1b..1eb82ad master -> origin/master Updating 49e9f1b..1eb82ad Fast-forward README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ``` Please note that only README.md file has been changed. ## View changes# If you want to see what changes have been made, you can use `git log` : ``` $ git log -p -1 commit 98e393c27e7aae4b41878d9d979c7587bfeb24b4 Author: <NAME> <<EMAIL>> Date: Fri Aug 18 17:32:07 2017 +0300 Update task_24_4.md diff --git a/exercises/24_ansible_for_network/task_24_4.md b/exercises/24_ansible_for_network/task_24_4.md index c4307fa..137a221 100644 --- a/exercises/24_ansible_for_network/task_24_4.md +++ b/exercises/24_ansible_for_network/task_24_4.md @@ -13,11 +13,12 @@ * apply ACL to interface ACL should be like: + ip access-list extended INET-to-LAN permit tcp 10.0.1.0 0.0.0.255 any eq www permit tcp 10.0.1.0 0.0.0.255 any eq 22 permit icmp any any - + Check playbook execution on R1 router. ``` In this command `-p` flag indicates that the output of Linux diff utility should be displayed for changes, not just commit comment. In turn, `-1` indicates that only the latest commit should be shown. ## View changes that will be synchronized# The previous version of `git log` relies on number of commands but this is not always convenient. Before executing `git pull` you can see what changes have been made since last synchronization. The following command shall be used: ``` $ git log -p ..origin/master commit 4c1821030d20b3682b67caf362fd777d098d9126 Author: <NAME> <<EMAIL>> Date: Mon May 29 07:53:45 2017 +0300 Update README.md diff --git a/tools/README.md b/tools/README.md index 2b6f380..4f8d4af 100644 --- a/tools/README.md +++ b/tools/README.md @@ -1 +1,4 @@ + +Here you can find PDF versions of configuration manuals of tools that are used on course. ``` In this case, changes were only in one file. This command will be very useful to see what changes have been made to tasks and which tasks. This will make it easier to navigate and to understand whether it is related to tasks you have already done and, if so, whether they should be changed. Note “..origin/master” in ``` git log -p ..origin/master ``` means to show all commits that are present in origin/master (in this case, it’s GitHub) but that are not in local copy of repository If changes were in tasks you haven’t yet done, this output will tell you which files should be copied from course repository to your personal repository (and maybe the entire section if you haven’t yet done tasks from this section). ## Task 2.1# Create your repository based on repository template with tasks and examples. To do this, press “Use this template”. Created repository will be a copy of pyneng-examples-exercises-en repository, but is not tied to it. It’s better to perform tasks in prepared files in exercises directory as tests for tasks depend on created directory structure. # 3. Getting started with Python# 3. Getting started with Python# This section covers: Python syntax Work in interactive mode Python variables The first thing that tends to catch your eye when it comes to Python syntax is that indentation matters: It determines which code is inside the block * When a block of code starts and ends Example of Python code: ``` a = 10 b = 5 if a > b: print("A greater than B") print(a - b) else: print("B is greater than or equal to A") print(b - a) print("End") def open_file(filename): print("Reading File", filename) with open(filename) as f: return f.read() print("Ready") ``` This code is shown for syntax demonstration. Although if/else statement has not yet been covered, it is likely that the meaning of code will be clear in general. Python understands which lines refer to “if” on indentation basis. Execution of a block `if a > b` ends when another string with the same indent as string `if a > b` appears. Similarly to block `else` . The second feature of Python is that some expressions must be followed by colon (for example, after `if a > b` and after `else` ). Several rules and recommendations on indentation: Tabs or spaces can be used as indents (it is better to use spaces or more precisely to configure editor so that Tab is 4 spaces - then when using Tab key, 4 spaces will be placed instead of 1 tab sign). * Number of spaces must be the same in one block (it is better to have the same number of spaces in whole code - popular option is to use 2-4 spaces, for example, this book uses 4 spaces). Another feature of code above is empty lines. It makes reading code easier. Other syntax features will be shown during process of familiarization with data structures in Python. Python has a special document that describes how best to write Python code PEP 8 - Style Guide for Python Code. ## Comments# When writing code you often need to leave a comment, for example, to describe features of code. Comments in Python can be one-line: ``` # A very important comment a = 10 b = 5 # A much needed comment ``` One-line comments start with hash sign. Note that comment can be in line where code itself is or in a separate line. If it is necessary to write several lines with comments in order to not put hash sign before each line, you can make a multi-line comment: ``` """ Very important and long comment """ a = 10 b = 5 ``` Three double or three single quotes may be used for a multi-line comment. Comments can be used both to comment on what happens in code and to exclude execution of a particular line or block of code (i.e., to comment it). Interpreter makes it possible to receive an instant response to executed actions. You can say that interpreter works as CLI (Command Line Interface) of network devices: each command will be executed immediately after pressing Enter. However, there is an exception: more complex objects (such as cycles or functions) are executed only after twice pressing Enter. In previous section, a standard interpreter was called to verify Python installation. There is also an improved interpreter IPython. IPython allows much more than standard interpreter called by “python” command. Some examples (IPython features are much broader): Autocomplete Tab commands or hints if there are more than one command version * More structured and understandable output of commands * Automatic indentation in loops and other objects * You can either walk through the command execution history or watch it with %history ‘magic’ command You can install IPython using pip (installation will be done in a virtual environment if configured): `pip install ipython` After that, you can move to IPython as follows: Command `quit` is used to exit. The following is how IPython will be used. To get acquainted with interpreter, you can use it as a calculator: In [2]: 22*45 Out[2]: 990 In [3]: 2**3 Out[3]: 8 ``` In IPython, input and output are marked: In - user input data * Out - result that command returns (if any) * Numbers after In or Out are sequential numbers of executed commands in current IPython session Example of string output by function ``` In [4]: print('Hello!') Hello! ``` When a loop is created in interpreter, for example, invitation changes to ellipsis inside loop. To complete loop and exit this shortcut, double press Enter: ``` In [5]: for i in range(5): ...: print(i) ...: 0 1 2 3 4 ``` ## help()# In IPython you can view help for an arbitrary object, function or method using `help` : ``` In [1]: help(str) Help on class str in module builtins: class str(object) | str(object='') -> str | str(bytes_or_buffer[, encoding[, errors]]) -> str | | Create a new string object from given object. If encoding or | errors is specified, then object must expose a data buffer | that will be decoded using given encoding and error handler. ... In [2]: help(str.strip) Help on method_descriptor: strip(...) S.strip([chars]) -> str The second option is: ``` In [3]: ?str Init signature: str(self, /, *args, **kwargs) Docstring: str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from given object. If encoding or errors is specified, then object must expose a data buffer that will be decoded using given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'. Type: type In [4]: ?str.strip Docstring: S.strip([chars]) -> str `print` # Function ``` In [6]: print('Hello!') Hello! In [7]: print(5*5) 25 ``` If you want to get several values in a row through a space, you have to enumerate them through a comma: ``` In [8]: print(1*5, 2*5, 3*5, 4*5) 5 10 15 20 In [9]: print('one', 'two', 'three') one two three ``` By default, at the end of each expression passed to Additional parameters of print function print ## dir()# Function `dir` can be used to see what attributes (variables tied to object) and methods (functions tied to object) are available. For example, for number the output will be (pay attention on various methods that allow arithmetic operations): ``` In [10]: dir(5) Out[10]: ['__abs__', '__add__', '__and__', ... 'bit_length', 'conjugate', 'denominator', 'imag', 'numerator', 'real'] ``` The same for string: ``` In [11]: dir('hello') Out[11]: ['__add__', '__class__', '__contains__', ... 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill'] ``` If you call `dir` with no value, it shows existing methods, attributes, and variables defined in current session of interpreter: ``` In [12]: dir() Out[12]: ['__builtin__', '__builtins__', '__doc__', '__name__', '_dh', ... '_oh', '_sh', 'exit', 'get_ipython', 'i', 'quit'] ``` For example, after creating variable a and test(): ``` In [13]: a = 'hello' In [14]: def test(): ....: print('test') ....: In [15]: dir() Out[15]: ... 'a', 'exit', 'get_ipython', 'i', 'quit', 'test'] ``` IPython has special commands that make work with interpreter easier. All of them are started with percent sign. ## %history# For example, `%history` command allows to look at history of commands entered by user in current IPython session. ``` In [1]: a = 10 In [2]: b = 5 In [3]: if a > b: ...: print("A is bigger") ...: A is bigger In [4]: %history a = 10 b = 5 if a > b: print("A is bigger") %history ``` With `%history` you can copy needed block of code. ## %time# Command `%time` shows how many seconds it took to execute expression. ``` In [5]: import subprocess In [6]: def ping_ip(ip_address): ..: reply = subprocess.run(['ping', '-c', '3', '-n', ip_address], ..: stdout=subprocess.PIPE, ..: stderr=subprocess.PIPE, ..: encoding='utf-8') ..: if reply.returncode == 0: ..: return True ..: else: ..: return False ..: In [7]: %time ping_ip('8.8.8.8') CPU times: user 0 ns, sys: 4 ms, total: 4 ms Wall time: 2.03 s Out[7]: True In [8]: %time ping_ip('8.8.8') CPU times: user 0 ns, sys: 8 ms, total: 8 ms Wall time: 12 s Out[8]: False In [9]: items = [1, 3, 5, 7, 9, 1, 2, 3, 55, 77, 33] In [10]: %time sorted(items) CPU times: user 0 ns, sys: 0 ns, total: 0 ns Wall time: 8.11 µs Out[10]: [1, 1, 2, 3, 3, 5, 7, 9, 33, 55, 77] ``` More about IPython you can find in IPython documentation. Briefly, information can be viewed in IPython via %quickref command: ``` IPython -- An enhanced Interactive Python - Quick Reference Card =========================================================== obj?, obj?? : Get help, or more help for object (also works as ?obj, ??obj). ?foo.*abc* : List names in 'foo' containing 'abc' in them. %magic : Information about IPython's 'magic' % functions. Magic functions are prefixed by % or %%, and typically take their arguments without brackets, quotes or even commas for convenience. Line magics take a single % and cell magics are prefixed with two %%. Example magic function calls: %alias d ls -F : 'd' is now an alias for 'ls -F' alias d ls -F : Works if 'alias' not a python name alist = %alias : Get list of aliases to 'alist' cd /usr/share : Obvious. cd -<tab> to choose from visited dirs. %cd?? : See help AND source for magic %cd %timeit x=10 : time 'x=10' statement with high precision. %%timeit x=2**100 x**100 : time 'x**100' with a setup of 'x=2**100'; setup code is not counted. This is an example of a cell magic. System commands: !cp a.txt b/ : System command escape, calls os.system() cp a.txt b/ : after %rehashx, most system commands work without ! cp ${f}.txt $bar : Variable expansion in magics and system commands files = !ls /usr : Capture sytem command output files.s, files.l, files.n: "a b c", ['a','b','c'], 'a\nb\nc' History: _i, _ii, _iii : Previous, next previous, next next previous input _i4, _ih[2:5] : Input history line 4, lines 2-4 exec _i81 : Execute input history line #81 again %rep 81 : Edit input history line #81 _, __, ___ : previous, next previous, next next previous output _dh : Directory history _oh : Output history %hist : Command history of current session. %hist -g foo : Search command history of (almost) all sessions for 'foo'. %hist -g : Command history of (almost) all sessions. %hist 1/2-8 : Command history containing lines 2-8 of session 1. %hist 1/ ~2/ : Command history of session 1 and 2 sessions before current. ``` Variables in Python do not require variable type declaration (since Python is a language with dynamic typing) and they are references to a memory area. Variable naming rules: Name of variable can consist only of letters, digits and an underscore * Name cannot start with a digit * Name cannot contain special characters @, $, % An example of creating variables in Python: ``` In [1]: a = 3 In [2]: b = 'Hello' In [3]: c, d = 9, 'Test' In [4]: print(a,b,c,d) 3 Hello 9 Test ``` Note that Python does not need to specify that “a” is a number, and “b” is a string. Variables are references to memory area. This can be demonstrated by using `id()` which shows object ID: ``` In [5]: a = b = c = 33 In [6]: id(a) Out[6]: 31671480 In [7]: id(b) Out[7]: 31671480 In [8]: id(c) Out[8]: 31671480 ``` In this example you can see that all three names refer to the same identifier, so it is the same object to which three references “a”, “b” and “c” point. Python numbers has one feature that can be slightly misleading: numbers from -5 to 256 are pre-created and stored in an array (list). Therefore, when you create a number from this range you actually create a reference to number in generated array. This feature is specific to implementation of CPython which is discussed in book This can be verified as follows: ``` In [9]: a = 3 In [10]: b = 3 In [11]: id(a) Out[11]: 4400936168 In [12]: id(b) Out[12]: 4400936168 In [13]: id(3) Out[13]: 4400936168 ``` Note that `a` , `b` and number `3` have identical identifiers. They are all references to an existing number in the list. If you do the same with number more than 256, all identifiers will be different: ``` In [14]: a = 500 In [15]: b = 500 In [16]: id(a) Out[16]: 140239990503056 In [17]: id(b) Out[17]: 140239990503032 In [18]: id(500) Out[18]: 140239990502960 ``` However, if you assign variables to each other, identifiers are all the same (in this version `a` , `b` and `c` are referring to the same object): ``` In [19]: a = b = c = 500 In [20]: id(a) Out[20]: 140239990503080 In [21]: id(b) Out[21]: 140239990503080 In [22]: id(c) Out[22]: 140239990503080 ``` Variable names should not overlap with names of operators and modules or other reserved words. Python has recommendations for naming functions, classes and variables: variable names are usually written in lowercase or in uppercase (e.g., DB_NAME, db_name) * function names are written in lowercase, with underline between words (for example get_names) * class names are given with capital letters without spaces, it is called CamelCase (for example, CiscoSwitch) ## Task 3.1# Install IPython in a virtual environment or globally in OS. After installation, running ipython command should open IPython interpreter (the output may differ slightly): Python has several data types: Numbers * Strings * Lists * Dictionaries * Tuples * Sets * Boolean These data types, in turn, can be classified by several criteria: mutable (lists, dictionaries and sets) * immutable (integers, strings and tuples) * ordered (lists, tuples, strings and dictionaries) * unordered (sets) With numbers it is possible to perform various mathematical operations. In [2]: 1.0 + 2 Out[2]: 3.0 In [3]: 10 - 4 Out[3]: 6 In [4]: 2**3 Out[4]: 8 ``` Division int and float: ``` In [5]: 10/3 Out[5]: 3.3333333333333335 In [6]: 10/3.0 Out[6]: 3.3333333333333335 ``` The round() function - round a number to a given precision in decimal digits: ``` In [9]: round(10/3.0, 2) Out[9]: 3.33 In [10]: round(10/3.0, 4) Out[10]: 3.3333 ``` Remainder of division: ``` In [11]: 10 % 3 Out[11]: 1 ``` Comparison operators ``` In [12]: 10 > 3.0 Out[12]: True In [13]: 10 < 3 Out[13]: False In [14]: 10 == 3 Out[14]: False In [15]: 10 == 10 Out[15]: True In [16]: 10 <= 10 Out[16]: True In [17]: 10.0 == 10 Out[17]: True ``` The int() function allows converting to int type. The second argument can specify number system: ``` In [18]: a = '11' In [19]: int(a) Out[19]: 11 ``` If you specify that string should be read as a binary number, the result is: ``` In [20]: int(a, 2) Out[20]: 3 ``` Convert to int from float: ``` In [21]: int(3.333) Out[21]: 3 In [22]: int(3.9) Out[22]: 3 ``` The bin() function produces a binary representation of a number (note that the result is a string): ``` In [23]: bin(8) Out[23]: '0b1000' In [24]: bin(255) Out[24]: '0b11111111' ``` Similarly, function hex() produces a hexadecimal value: ``` In [25]: hex(10) Out[25]: '0xa' ``` And, of course, you can do several changes at the same time: ``` In [26]: int('ff', 16) Out[26]: 255 In [27]: bin(int('ff', 16)) Out[27]: '0b11111111' ``` For more complex mathematical functions, Python has a `math` module: ``` In [28]: import math In [29]: math.sqrt(9) Out[29]: 3.0 In [30]: math.sqrt(10) Out[30]: 3.1622776601683795 In [31]: math.factorial(3) Out[31]: 6 In [32]: math.pi Out[32]: 3.141592653589793 ``` String in Python is: sequence of characters enclosed in quotes * ``` In [9]: 'Hello' Out[9]: 'Hello' In [10]: "Hello" Out[10]: 'Hello' In [11]: tunnel = """ ....: interface Tunnel0 ....: ip address 10.10.10.1 255.255.255.0 ....: ip mtu 1416 ....: ip ospf hello-interval 5 ....: tunnel source FastEthernet1/0 ....: tunnel protection ipsec profile DMVPN ....: """ In [12]: tunnel Out[12]: '\ninterface Tunnel0\n ip address 10.10.10.1 255.255.255.0\n ip mtu 1416\n ip ospf hello-interval 5\n tunnel source FastEthernet1/0\n tunnel protection ipsec profile DMVPN\n' In [13]: print(tunnel) interface Tunnel0 ip address 10.10.10.1 255.255.255.0 ip mtu 1416 ip ospf hello-interval 5 tunnel source FastEthernet1/0 tunnel protection ipsec profile DMVPN ``` Strings can be summed. Then they merge into one string: ``` In [14]: intf = 'interface' In [15]: tun = 'Tunnel0' In [16]: intf + tun Out[16]: 'interfaceTunnel0' In [17]: intf + ' ' + tun Out[17]: 'interface Tunnel0' ``` You can multiply a string by a number. In this case, string repeats specified number of times: ``` In [18]: intf * 5 Out[18]: 'interfaceinterfaceinterfaceinterfaceinterface' In [19]: '#' * 40 Out[19]: '########################################' ``` The fact that strings are an ordered data type allows to refer to characters in a string by a number starting from zero: ``` In [20]: string1 = 'interface FastEthernet1/0' In [21]: string1[0] Out[21]: 'i' ``` All characters in a string are numbered from zero. But if you need to refer to a character from the end, you can specify negative values (this time with 1). ``` In [22]: string1[1] Out[22]: 'n' In [23]: string1[-1] Out[23]: '0' ``` In addition to referring to a specific character you can make string slices by specifying a number range. Slicing starts with first number (included) and ends at second number (excluded): ``` In [24]: string1[0:9] Out[24]: 'interface' In [25]: string1[10:22] Out[25]: 'FastEthernet' ``` If no second number is specified, slice is until the end of string: ``` In [26]: string1[10:] Out[26]: 'FastEthernet1/0' ``` Slice last three character of string: ``` In [27]: string1[-3:] Out[27]: '1/0' ``` You can also specify a step in slice. For example, you can get odd numbers: In [29]: a[1::2] Out[29]: '13579' ``` Or you can get all even numbers of string `a` : ``` In [31]: a[::2] Out[31]: '02468' ``` Slices can also be used to get a string in reverse order: In [29]: a[::] Out[29]: '0123456789' In [30]: a[::-1] Out[30]: '9876543210' ``` Note Entries `a[::]` and `a[:]` give the same result but double colon makes it possible to indicate that not every element should be taken, but for example every second element. The `len` function allows you to get number of characters in a string: ``` In [1]: line = 'interface Gi0/1' In [2]: len(line) Out[2]: 15 ``` Note Function and method differ in that method is tied to a particular type of object and function is generally more universal and can be applied to objects of different types. For example, `len` function can be applied to strings, lists, dictionaries and so on, but `startswith` method only applies to strings. When automating, very often it will be necessary to work with strings, since config file, command output and commands sent - are strings. Knowledge of various methods (actions) that can be applied to strings helps to work with them more efficiently. Strings are immutable data type, so all methods that convert string returns a new string and the original string remains unchanged. ## Methods upper, lower, swapcase, capitalize# Methods `upper` , `lower` , `swapcase` , `capitalize` perform string case conversion: ``` In [25]: string1 = 'FastEthernet' In [26]: string1.upper() Out[26]: 'FASTETHERNET' In [27]: string1.lower() Out[27]: 'fastethernet' In [28]: string1.swapcase() Out[28]: 'fASTeTHERNET' In [29]: string2 = 'tunnel 0' In [30]: string2.capitalize() Out[30]: 'Tunnel 0' ``` It is very important to pay attention to the fact that methods often return the converted string. And, therefore, we must not forget to assign it to some variable (you can use the same). ``` In [31]: string1 = string1.upper() In [32]: print(string1) FASTETHERNET ``` ## Method count# Method `count` used to count how many times a character or substring occurs in a string: ``` In [33]: string1 = 'Hello, hello, hello, hello' In [34]: string1.count('hello') Out[34]: 3 In [35]: string1.count('ello') Out[35]: 4 In [36]: string1.count('l') Out[36]: 8 ``` ## Method find# You can pass a substring or character to `find` and it will return the lowest index where first character of the substring is (for the first match): ``` In [37]: string1 = 'interface FastEthernet0/1' In [38]: string1.find('Fast') Out[38]: 10 In [39]: string1[string1.find('Fast')::] Out[39]: 'FastEthernet0/1' ``` If no match is found, `find` method returns `-1` . ## Methods startswith, endswith# Checking if a string starts or ends with certain symbols (methods `startswith` , `endswith` ): ``` In [40]: string1 = 'FastEthernet0/1' In [41]: string1.startswith('Fast') Out[41]: True In [42]: string1.startswith('fast') Out[42]: False In [43]: string1.endswith('0/1') Out[43]: True In [44]: string1.endswith('0/2') Out[44]: False ``` ## Method replace# Replacing a sequence of characters in a string with another sequence (method `replace` ): ``` In [45]: string1 = 'FastEthernet0/1' In [46]: string1.replace('Fast', 'Gigabit') Out[46]: 'GigabitEthernet0/1' ``` ## Method strip# Often when a file is processed, the file is opened line by line. But at the end of each line, there are usually some special characters (and may be at the beginning). For example, new line character. To get rid of them, it is very convenient to use method `strip` : ``` In [47]: string1 = '\n\tinterface FastEthernet0/1\n' In [48]: print(string1) interface FastEthernet0/1 In [49]: string1 Out[49]: '\n\tinterface FastEthernet0/1\n' In [50]: string1.strip() Out[50]: 'interface FastEthernet0/1' ``` By default, `strip` method removes blank characters. This character set includes: `\t\n\r\f\v` Method `strip` can be passed as an argument of any characters. Then at the beginning and at the end of the line all characters that were specified in the line will be removed: ``` In [51]: ad_metric = '[110/1045]' In [52]: ad_metric.strip('[]') Out[52]: '110/1045' ``` Method `strip` removes special characters at the beginning and at the end of the line. If you want to remove characters only on the left or only on the right, you can use `lstrip` and `rstrip` . ## Method split# Method `split` splits the string using a symbol (or symbols) as separator and returns a list of strings: ``` In [53]: string1 = 'switchport trunk allowed vlan 10,20,30,100-200' In [54]: commands = string1.split() In [55]: print(commands) ['switchport', 'trunk', 'allowed', 'vlan', '10,20,30,100-200'] ``` In example above, `string1.split` splits the string by spaces and returns a list of strings. The list is saved to `commands` variable. By default, separator is a space symbol (spaces, tabs, new line), but you can specify any separator in parentheses: ``` In [56]: vlans = commands[-1].split(',') In [57]: print(vlans) ['10', '20', '30', '100-200'] ``` In `commands` list, the last element is a string with vlans, so the index -1 is used. Then string is split into parts using `split` ``` commands[-1].split(',') ``` . Since separator is a comma, this list is received ``` ['10', '20', '30', '100-200'] ``` . A useful feature of `split` method with default separator is that the string is not only split into a list of strings by whitespace characters, but the whitespace characters are also removed at the beginning and at the end of the line: ``` In [58]: string1 = ' switchport trunk allowed vlan 10,20,30,100-200\n\n' In [59]: string1.split() Out[59]: ['switchport', 'trunk', 'allowed', 'vlan', '10,20,30,100-200'] ``` Method `split` has another good feature: by default, method splits a string not by one whitespace character, but by any number. For example, this will be very useful when processing show commands: ``` In [60]: sh_ip_int_br = "FastEthernet0/0 15.0.15.1 YES manual up up" In [61]: sh_ip_int_br.split() Out[61]: ['FastEthernet0/0', '15.0.15.1', 'YES', 'manual', 'up', 'up'] ``` And this is the same string when one space is used as the separator: ``` In [62]: sh_ip_int_br.split(' ') Out[62]: ['FastEthernet0/0', '', '', '', '', '', '', '', '', '', '', '', '15.0.15.1', '', '', '', '', '', '', 'YES', 'manual', 'up', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'up'] ``` When working with strings, there are often situations where different data needs to be substituted in string template. This can be done by combining string parts and data, but Python has a more convenient way - strings formatting. String formatting can help, for example, in such situations: need to set values to a string by a certain template * need to format output by columns * need to convert numbers to binary format There are several options for string formatting: with operator `%` — older option * method `format` — relatively new option * f-строки — new option that appeared in Python 3.6 Although `format` is recommended, string formatting can often be found through `%` . ## String formatting with `format` method# Example of `format` method use: ``` In [1]: "interface FastEthernet0/{}".format('1') Out[1]: 'interface FastEthernet0/1' ``` A special symbol `{}` indicates that the value that is passed to `format` method is placed here. Each pair of curly braces represents one place for the substitution. Values that are placed in curly braces may be of different types. For example, it can be a string, number or list: ``` In [3]: print('{}'.format('10.1.1.1')) 10.1.1.1 In [4]: print('{}'.format(100)) 100 In [5]: print('{}'.format([10, 1, 1,1])) [10, 1, 1, 1] ``` You can align result in columns by formatting strings. In string formatting, you can specify how many characters are selected for the data. If number of characters in the data is less than number of characters selected, the missing characters are filled with blanks. For example, you can allign data in columns of equal width of 15 characters with right side alignment: In [4]: print("{:>15} {:>15} {:>15}".format(vlan, mac, intf)) 100 aabb.cc80.7000 Gi0/1 ``` Alignment to the left: ``` In [5]: print("{:15} {:15} {:15}".format(vlan, mac, intf)) 100 aabb.cc80.7000 Gi0/1 ``` Output template can also be multi-string: ``` In [6]: ip_template = ''' ...: IP address: ...: {} ...: ''' In [7]: print(ip_template.format('10.1.1.1')) IP address: 10.1.1.1 ``` You can also use string formatting to change the display format of numbers. For example, you can specify how many digits after the comma to show: ``` In [9]: print("{:.3f}".format(10.0/3)) 3.333 ``` Using string formatting, you can convert numbers to binary format: ``` In [11]: '{:b} {:b} {:b} {:b}'.format(192, 100, 1, 1) Out[11]: '11000000 1100100 1 1' ``` You can still specify additional parameters such as column width: ``` In [12]: '{:8b} {:8b} {:8b} {:8b}'.format(192, 100, 1, 1) Out[12]: '11000000 1100100 1 1' ``` You can also specify that numbers should be supplemented with zeros instead of spaces: ``` In [13]: '{:08b} {:08b} {:08b} {:08b}'.format(192, 100, 1, 1) Out[13]: '11000000 01100100 00000001 00000001' ``` You can enter names in curly braces. This makes it possible to pass arguments in any order and also makes template more understandable: ``` In [15]: '{ip}/{mask}'.format(mask=24, ip='10.1.1.1') Out[15]: '10.1.1.1/24' ``` Another useful feature of string formatting is argument number specification: ``` In [16]: '{1}/{0}'.format(24, '10.1.1.1') Out[16]: '10.1.1.1/24' ``` For example this can prevent repetitive transmission of the same values: ``` In [19]: ip_template = ''' ...: IP address: ...: {:<8} {:<8} {:<8} {:<8} ...: {:08b} {:08b} {:08b} {:08b} ...: ''' In [20]: print(ip_template.format(192, 100, 1, 1, 192, 100, 1, 1)) In example above the octet address has to be passed twice - one for decimal format and other for binary. By specifying value indexes that are passed to `format` method, it is possible to avoid duplication: ``` In [21]: ip_template = ''' ...: IP address: ...: {0:<8} {1:<8} {2:<8} {3:<8} ...: {0:08b} {1:08b} {2:08b} {3:08b} ...: ''' In [22]: print(ip_template.format(192, 100, 1, 1)) ## Strings formatting with f-Strings# Python 3.6 added a new version of string formatting - f-strings or interpolation of strings. The f-strings allow not only to set values to template, but also to perform calls to functions, methods, etc. In many situations f-strings are easier to use than format, and f-strings work faster than format and other methods of string formatting. ### Syntax# The same result with `format` method you can achieve by: ``` "IP: {ip}, mask: {mask}".format(ip=ip, mask=mask) ``` ``` In [5]: first_name = 'William' In [6]: second_name = 'Shakespeare' In [7]: f"{first_name.upper()} {second_name.upper()}" Out[7]: 'WILLIAM SHAKESPEARE' ``` Since for full explanation of f-strings it is necessary to show examples with loops and work with objects that have not yet been covered, this topic is also in the section Formatting lines with f-strings with additional examples and explanations. Python has very convenient functionality — literal strings concatenation ``` In [1]: s = ('Test' 'String') In [2]: s Out[2]: 'TestString' In [3]: s = 'Test' 'String' In [4]: s Out[4]: 'TestString' ``` You can even wrap parts of a line on different lines, but only if they are in parentheses: ``` In [5]: s = ('Test' ...: 'String') In [6]: s Out[6]: 'TestString' ``` This is very convenient to use in regex: ``` regex = ( '(\S+) +(\S+) +' '\w+ +\w+ +' '(up|down|administratively down) +' '(\w+)' ) ``` This way, the regex can be split and made easier to understand. Plus you can add explanatory comments in strings. ``` regex = ( '(\S+) +(\S+) +' # interface and IP '\w+ +\w+ +' '(up|down|administratively down) +' # Status '(\w+)' # Protocol ) ``` It is also convenient to use this technique when writing a long message: ``` In [7]: message = ('During command execution "{}" ' ...: 'such error occured "{}".\n' ...: 'Exclude this command from the list? [y/n]') In [8]: message Out[8]: 'During command execution "{}" such error occured "{}".\nExclude this command from the list? [y/n]' ``` List in Python is: sequence of elements separated by comma and enclosed in square brackets * mutable ordered data type Examples of lists: ``` In [1]: list1 = [10,20,30,77] In [2]: list2 = ['one', 'dog', 'seven'] In [3]: list3 = [1, 20, 4.0, 'word'] ``` Creating a list using a literal: ``` In [1]: vlans = [10, 20, 30, 50] ``` Literal is an expression that creates an object. Create a list using `list` function: ``` In [2]: list1 = list('router') In [3]: print(list1) ['r', 'o', 'u', 't', 'e', 'r'] ``` Since a list is an ordered data type just like a string, in lists you can refer to an item by number, make slices: ``` In [4]: list3 = [1, 20, 4.0, 'word'] In [5]: list3[1] Out[5]: 20 In [6]: list3[1::] Out[6]: [20, 4.0, 'word'] In [7]: list3[-1] Out[7]: 'word' In [8]: list3[::-1] Out[8]: ['word', 4.0, 20, 1] ``` You can reverse list by `reverse` method: ``` In [10]: vlans = ['10', '15', '20', '30', '100-200'] In [11]: vlans.reverse() In [12]: vlans Out[12]: ['100-200', '30', '20', '15', '10'] ``` Since lists are mutable, list elements can be changed: ``` In [13]: list3 Out[13]: [1, 20, 4.0, 'word'] In [14]: list3[0] = 'test' In [15]: list3 Out[15]: ['test', 20, 4.0, 'word'] ``` You can also create a list of lists. As in a regular list you can refer to items in nested lists: ``` In [16]: interfaces = [['FastEthernet0/0', '15.0.15.1', 'YES', 'manual', 'up', 'up'], ....: ['FastEthernet0/1', '10.0.1.1', 'YES', 'manual', 'up', 'up'], ....: ['FastEthernet0/2', '10.0.2.1', 'YES', 'manual', 'up', 'down']] In [17]: interfaces[0][0] Out[17]: 'FastEthernet0/0' In [18]: interfaces[2][0] Out[18]: 'FastEthernet0/2' In [19]: interfaces[2][1] Out[19]: '10.0.2.1' ``` The `len` function returns number of items in list: In [2]: len(items) Out[2]: 3 ``` And `sorted` function sorts list items in ascending order and returns a new list with sorted items: ``` In [1]: names = ['John', 'Michael', 'Antony'] In [2]: sorted(names) Out[2]: ['Antony', 'John', 'Michael'] ``` List is a mutable data type, so it is important to note that most list methods change a list in place without returning anything. `join` # Method `join` collects a list of strings into one string with separator specified before join: ``` In [16]: vlans = ['10', '20', '30'] In [17]: ','.join(vlans) Out[17]: '10,20,30' ``` Note Method `join` actually string method but since the value must be passed to it as a list, it is covered here. `append` # Method `append` adds specified item to the end of list: ``` In [18]: vlans = ['10', '20', '30', '100-200'] In [19]: vlans.append('300') In [20]: vlans Out[20]: ['10', '20', '30', '100-200', '300'] ``` Method `append` changes list on spot and does not return anything. `extend` # If you want to combine two lists you can use one of two methods: `extend` method or addition operation. These methods have an important difference: `extend` changes list to which method is applied and addition returns a new list that consists of two. Method `extend` : In [22]: vlans2 = ['300', '400', '500'] In [23]: vlans.extend(vlans2) In [24]: vlans Out[24]: ['10', '20', '30', '100-200', '300', '400', '500'] ``` Addition operation: In [28]: vlans2 = ['300', '400', '500'] In [29]: vlans + vlans2 Out[29]: ['10', '20', '30', '100-200', '300', '400', '500'] ``` Note that when adding lists in IPython the ‘Out’ line appeared. This means that the result of summation can be assigned to variable: ``` In [30]: result = vlans + vlans2 In [31]: result Out[31]: ['10', '20', '30', '100-200', '300', '400', '500'] ``` `pop` # Method `pop` removes item that corresponds to specified number. Method returns this item: In [29]: vlans.pop(-1) Out[29]: '100-200' In [30]: vlans Out[30]: ['10', '20', '30'] ``` Without number specified the last item in list is deleted. `remove` # Method `remove` removes specified item ( `remove` does not return deleted item): In [32]: vlans.remove('20') In [33]: vlans Out[33]: ['10', '30', '100-200'] ``` In `remove` you must specify item to be deleted, not its index. If item number is specified, error occurs: ``` In [34]: vlans.remove(-1) ------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-32-f4ee38810cb7> in <module>() ----> 1 vlans.remove(-1) ValueError: list.remove(x): x not in list ``` `index` # Method `index` - returns the first index of the passed value: In [36]: vlans.index('30') Out[36]: 2 ``` `insert` # Method `insert` allows to insert an item into a specific place in list: In [38]: vlans.insert(1, '15') In [39]: vlans Out[39]: ['10', '15', '20', '30', '100-200'] ``` `sort` # Method `sort` sorts list in place: ``` In [40]: vlans = [1, 50, 10, 15] In [41]: vlans.sort() In [42]: vlans Out[42]: [1, 10, 15, 50] ``` Dictionaries are mutable ordered data type: data in dictionary are pairs `key: value` * values are accessible by key, not by number as in lists * entries in dictionary stored in order they were added * since dictionaries are mutable, dictionary items can be changed, added, removed * key must be an immutable object: number, string, tuple * value can be data of any type In other programming languages a similar dictionary can be called an associative array, hash, or hash table. Example of dictionary: You can write it down like this: In order to get a value from dictionary you have to refer to key in the same way as in lists, only key will be used instead of number: In [2]: london['name'] Out[2]: 'London1' In [3]: london['location'] Out[3]: 'London Str' ``` Similarly, a new key-value pair could be added: ``` In [4]: london['vendor'] = 'Cisco' In [5]: print(london) {'vendor': 'Cisco', 'name': 'London1', 'location': 'London Str'} ``` Or rewritten: ``` In [6]: london['vendor'] = 'cisco ios' In [7]: print(london) {'vendor': 'cisco ios', 'name': 'London1', 'location': 'London Str'} ``` In dictionary you can use a dictionary as a value: ``` london_co = { 'r1': { 'hostname': 'london_r1', 'location': '21 New Globe Walk', 'vendor': 'Cisco', 'model': '4451', 'ios': '15.4', 'ip': '10.255.0.1' }, 'r2': { 'hostname': 'london_r2', 'location': '21 New Globe Walk', 'vendor': 'Cisco', 'model': '4451', 'ios': '15.4', 'ip': '10.255.0.2' }, 'sw1': { 'hostname': 'london_sw1', 'location': '21 New Globe Walk', 'vendor': 'Cisco', 'model': '3850', 'ios': '3.6.XE', 'ip': '10.255.0.101' } } ``` You can get values from nested dictionary by: ``` In [7]: london_co['r1']['ios'] Out[7]: '15.4' In [8]: london_co['r1']['model'] Out[8]: '4451' In [9]: london_co['sw1']['ip'] Out[9]: '10.255.0.101' ``` Function `sorted` sorts dictionary keys in ascending order and returns a new list with sorted keys: In [2]: sorted(london) Out[2]: ['location', 'name', 'vendor'] ``` `clear` # Method `clear` allows to clear dictionary: In [2]: london.clear() In [3]: london Out[3]: {} ``` `copy` # Method `copy` allows to create a full copy of dictionary. If one dictionary is equal to other: In [5]: london2 = london In [6]: id(london) Out[6]: 25489072 In [7]: id(london2) Out[7]: 25489072 In [8]: london['vendor'] = 'Juniper' In [9]: london2['vendor'] Out[9]: 'Juniper' ``` In this case `london2` is another name that refers to dictionary `london` . And when you change `london` dictionary, `london2` dictionary changes as well because it’s a link to the same object. Therefore, if you want to make a copy of dictionary, use `copy` method: In [11]: london2 = london.copy() In [12]: id(london) Out[12]: 25524512 In [13]: id(london2) Out[13]: 25563296 In [14]: london['vendor'] = 'Juniper' In [15]: london2['vendor'] Out[15]: 'Cisco' ``` `get` # If you query a key that is not present in dictionary, an error occurs: In [17]: london['ios'] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-17-b4fae8480b21> in <module>() ----> 1 london['ios'] KeyError: 'ios' ``` Method `get` queries for key and if there is no key, returns `None` instead. In [19]: print(london.get('ios')) None ``` Method get() also allows you to specify another value instead of `None` : ``` In [20]: print(london.get('ios', 'Ooops')) Ooops ``` `setdefault` # Method `setdefault` searches for key and if there is no key, instead of error it creates a key with `None` value. In [22]: ios = london.setdefault('ios') In [23]: print(ios) None In [24]: london Out[24]: {'name': 'London1', 'location': 'London Str', 'vendor': 'Cisco', 'ios': None} ``` If key is present, `setdefault` returns value that corresponds to it: ``` In [25]: london.setdefault('name') Out[25]: 'London1' ``` The second argument allows to specify which value should correspond to key: ``` In [26]: model = london.setdefault('model', 'Cisco3580') In [27]: print(model) Cisco3580 In [28]: london Out[28]: {'name': 'London1', 'location': 'London Str', 'vendor': 'Cisco', 'ios': None, 'model': 'Cisco3580'} ``` Method `setdefault` replaces this expression: ``` In [30]: if key in london: ...: value = london[key] ...: else: ...: london[key] = 'somevalue' ...: value = london[key] ...: ``` `keys, values, items` # Methods `keys` , `values` , `items` : In [25]: london.keys() Out[25]: dict_keys(['name', 'location', 'vendor']) In [26]: london.values() Out[26]: dict_values(['London1', 'London Str', 'Cisco']) In [27]: london.items() Out[27]: dict_items([('name', 'London1'), ('location', 'London Str'), ('vendor', 'Cisco')]) ``` All three methods return special view objects that contains keys, values, and key-value pairs of dictionary, respectively. A very important feature of view is that they change together with dictionary. And in fact, they just give you a way to look at objects, but they don’t make a copy of them. Example of uning `keys` : In [29]: keys = london.keys() In [30]: print(keys) dict_keys(['name', 'location', 'vendor']) ``` Now keys variable corresponds to view `dict_keys` , in which three keys: name, location and vendor. But if we add another key-value pair to dictionary, keys object will also change: ``` In [31]: london['ip'] = '10.1.1.1' In [32]: keys Out[32]: dict_keys(['name', 'location', 'vendor', 'ip']) ``` If you want to get a simple list of keys that will not be changed with dictionary changes, it is enough to convert view to list: ``` In [33]: list_keys = list(london.keys()) In [34]: list_keys Out[34]: ['name', 'location', 'vendor', 'ip'] ``` `del` # Remove key and value: In [36]: del london['name'] In [37]: london Out[37]: {'location': 'London Str', 'vendor': 'Cisco'} ``` `update` # Method `update` allows you to add contents of one dictionary to another dictionary: ``` In [38]: r1 = {'name': 'London1', 'location': 'London Str'} In [39]: r1.update({'vendor': 'Cisco', 'ios':'15.2'}) In [40]: r1 Out[40]: {'name': 'London1', 'location': 'London Str', 'vendor': 'Cisco', 'ios': '15.2'} ``` Values can be updated in the same way: ``` In [41]: r1.update({'name': 'london-r1', 'ios':'15.4'}) In [42]: r1 Out[42]: {'name': 'london-r1', 'location': 'London Str', 'vendor': 'Cisco', 'ios': '15.4'} ``` ## Literal# A dictionary can be created with help of a literal: ``` In [1]: r1 = {'model': '4451', 'ios': '15.4'} ``` ## dict# Construction `dict` allows you to create a dictionary in several ways. If you use strings as keys you can use this option to create a dictionary: ``` In [2]: r1 = dict(model='4451', ios='15.4') In [3]: r1 Out[3]: {'model': '4451', 'ios': '15.4'} ``` The second option of creating a dictionary with dict(): ``` In [4]: r1 = dict([('model','4451'), ('ios','15.4')]) In [5]: r1 Out[5]: {'model': '4451', 'ios': '15.4'} ``` ## dict.fromkeys# In a situation where you need to create a dictionary with known keys but so far empty values (or identical values), `fromkeys` method is very convenient: ``` In [5]: d_keys = ['hostname', 'location', 'vendor', 'model', 'ios', 'ip'] In [6]: r1 = dict.fromkeys(d_keys) In [7]: r1 Out[7]: {'hostname': None, 'location': None, 'vendor': None, 'model': None, 'ios': None, 'ip': None} ``` By default `fromkeys` sets `None` value. But you can also pass your own value: In [9]: models_count = dict.fromkeys(router_models, 0) In [10]: models_count Out[10]: {'ISR2811': 0, 'ISR2911': 0, 'ISR2921': 0, 'ASR9002': 0} ``` This option of creating a dictionary is not suitable for all cases. For example, if you use a mutable data type in value, a reference to the same object will be created: In [11]: routers = dict.fromkeys(router_models, []) ...: In [12]: routers Out[12]: {'ISR2811': [], 'ISR2911': [], 'ISR2921': [], 'ASR9002': []} In [13]: routers['ASR9002'].append('london_r1') In [14]: routers Out[14]: {'ISR2811': ['london_r1'], 'ISR2911': ['london_r1'], 'ISR2921': ['london_r1'], 'ASR9002': ['london_r1']} ``` In this case, each key refers to the same list. Therefore, when a value is added to one of lists, others are updated. A dictionary comprehension is better for this task. See section List, dict, set comprehensions Tuple in Python is: a sequence of elements separated by a comma and enclosed in parentheses * Roughly speaking, a tuple is a list that can’t be changed. We can say that the tuple has read-only permissions. It could be a defense against accidental change. Create an empty tuple: ``` In [1]: tuple1 = tuple() In [2]: print(tuple1) () ``` Tuple with one element (note the comma): ``` In [3]: tuple2 = ('password',) ``` Tuple from list: ``` In [4]: list_keys = ['hostname', 'location', 'vendor', 'model', 'ios', 'ip'] In [5]: tuple_keys = tuple(list_keys) In [6]: tuple_keys Out[6]: ('hostname', 'location', 'vendor', 'model', 'ios', 'ip') ``` Objects in tuple can be accessed as well as objects in list, by order number: ``` In [7]: tuple_keys[0] Out[7]: 'hostname' ``` But since tuple is immutable you cannot assign a new value: ``` In [8]: tuple_keys[1] = 'test' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-9-1c7162cdefa3> in <module>() ----> 1 tuple_keys[1] = 'test' TypeError: 'tuple' object does not support item assignment ``` Function `sorted` sorts tuple elements in ascending order and returns a new list with sorted elements: ``` In [2]: tuple_keys = ('hostname', 'location', 'vendor', 'model', 'ios', 'ip') In [3]: sorted(tuple_keys) Out[3]: ['hostname', 'ios', 'ip', 'location', 'model', 'vendor'] ``` Set is a mutable unordered data type. Set always contains only unique elements. Set in Python is a sequence of elements that are separated by a comma and placed in curly braces. Set can easily remove repetitive elements: ``` In [1]: vlans = [10, 20, 30, 40, 100, 10] In [2]: set(vlans) Out[2]: {10, 20, 30, 40, 100} In [3]: set1 = set(vlans) In [4]: print(set1) {40, 100, 10, 20, 30} ``` `add` # Method `add` adds an item to set: In [2]: set1.add(50) `discard` # Method `discard` allows deleting elements without showing an error if there is no element in set: In [4]: set1.discard(55) In [5]: set1 Out[5]: {10, 20, 30, 40, 50} In [6]: set1.discard(50) In [7]: set1 Out[7]: {10, 20, 30, 40} ``` `clear` # Method `clear` empties set: In [9]: set1.clear() In [10]: set1 Out[10]: set() ``` Sets are useful in performing different operations such as finding union of sets, intersection and so on. Union of sets can be obtained by `union` or operator `|` : ``` In [1]: vlans1 = {10,20,30,50,100} In [2]: vlans2 = {100,101,102,102,200} In [3]: vlans1.union(vlans2) Out[3]: {10, 20, 30, 50, 100, 101, 102, 200} In [4]: vlans1 | vlans2 Out[4]: {10, 20, 30, 50, 100, 101, 102, 200} ``` Intersection of sets can be obtained by `intersection` or operator `&` : ``` In [5]: vlans1 = {10,20,30,50,100} In [6]: vlans2 = {100,101,102,102,200} In [7]: vlans1.intersection(vlans2) Out[7]: {100} In [8]: vlans1 & vlans2 Out[8]: {100} ``` You cannot create an empty set using a literal set (in this case it will not be a set but a dictionary): ``` In [1]: set1 = {} In [2]: type(set1) Out[2]: dict ``` But an empty set can be created in this way: ``` In [3]: set2 = set() In [4]: type(set2) Out[4]: set ``` Set from string: ``` In [5]: set('long long long long string') Out[5]: {' ', 'g', 'i', 'l', 'n', 'o', 'r', 's', 't'} ``` Set from list: ``` In [6]: set([10, 20, 30, 10, 10, 30]) Out[6]: {10, 20, 30} ``` Boolean values in Python are two constants `True` and `False` . In Python, not only True and False are considered True and False values. Other True and False values tend to follow the condition logically. To check boolean value of object you can use `bool` : In [3]: empty_list = [] In [4]: bool(empty_list) Out[4]: False In [5]: bool(items) Out[5]: True In [6]: bool(0) Out[6]: False In [7]: bool(1) Out[7]: True ``` Python has several useful built-in features that allow data to be converted from one type to another. `int` # `int` converts a string to int: ``` In [1]: int("10") Out[1]: 10 ``` Using `int` function you can convert a binary number into a decimal number (binary number must be written as a string) ``` In [2]: int("11111111", 2) Out[2]: 255 ``` `bin` # You can convert a decimal number to binary format with `bin` : ``` In [3]: bin(10) Out[3]: '0b1010' In [4]: bin(255) Out[4]: '0b11111111' ``` `hex` # A similar function exists for conversion to hexadecimal format: ``` In [5]: hex(10) Out[5]: '0xa' In [6]: hex(255) Out[6]: '0xff' ``` `list` # Function `list` converts an argument to a list: ``` In [7]: list("string") Out[7]: ['s', 't', 'r', 'i', 'n', 'g'] In [8]: list({1, 2, 3}) Out[8]: [1, 2, 3] In [9]: list((1, 2, 3, 4)) Out[9]: [1, 2, 3, 4] ``` `set` # Function `set` converts an argument into a set: ``` In [10]: set([1, 2, 3, 3, 4, 4, 4, 4]) Out[10]: {1, 2, 3, 4} In [11]: set((1, 2, 3, 3, 4, 4, 4, 4)) Out[11]: {1, 2, 3, 4} In [12]: set("string string") Out[12]: {' ', 'g', 'i', 'n', 'r', 's', 't'} ``` This function is very useful when you need to get unique elements in a sequence. `tuple` # Function `tuple` converts argument into a tuple: ``` In [13]: tuple([1, 2, 3, 4]) Out[13]: (1, 2, 3, 4) In [14]: tuple({1, 2, 3, 4}) Out[14]: (1, 2, 3, 4) In [15]: tuple("string") Out[15]: ('s', 't', 'r', 'i', 'n', 'g') ``` This can be useful if you want an immutable object. `str` # Function `str` converts an argument into a string: ``` In [16]: str(10) Out[16]: '10' ``` This type of error can occur when converting data types: ``` In [1]: int('a') ------------------------------------------------------ ValueError Traceback (most recent call last) <ipython-input-42-b3c3f4515dd4> in <module>() ----> 1 int('a') ValueError: invalid literal for int() with base 10: 'a' ``` Error is perfectly logical. We’re trying to convert string ‘a’ into decimal format. For example, this can be useful when you want to go through a list of strings and convert to a number the strings that contain numbers, you can get that error. To avoid error, it would be nice to be able to check what we’re working with. `isdigit` # Python has such methods. For example, `isdigit` method can be used to check whether a string consists only of digits: ``` In [2]: "a".isdigit() Out[2]: False In [3]: "a10".isdigit() Out[3]: False In [4]: "10".isdigit() Out[4]: True ``` `isalpha` # Method `isalpha` makes it possible to check whether a string consists only of letters: ``` In [7]: "a".isalpha() Out[7]: True In [8]: "a100".isalpha() Out[8]: False In [9]: "a-- ".isalpha() Out[9]: False In [10]: "a ".isalpha() Out[10]: False ``` `isalnum` # Method `isalnum` makes it possible to check whether a string consists of letters or numbers: ``` In [11]: "a".isalnum() Out[1]: True In [12]: "a10".isalnum() Out[12]: True ``` `type` # Sometimes, depending on the result, a library or function can return different types of objects. For example, if there is one object, string is returned. If several, tuple is returned. We have to construct the program in different ways, depending on whether a string or a tuple has been returned. Method `type` function can help: ``` In [13]: type("string") Out[13]: str In [14]: type("string") == str Out[14]: True ``` Similar to tuple (and other data types): ``` In [15]: type((1, 2, 3)) Out[15]: tuple In [16]: type((1, 2, 3)) == tuple Out[16]: True In [17]: type((1, 2, 3)) == list Out[17]: False ``` Often, you need to perform several operations with data, for example: ``` In [1]: line = "switchport trunk allowed vlan 10,20,30" In [2]: words = line.split() In [3]: words Out[3]: ['switchport', 'trunk', 'allowed', 'vlan', '10,20,30'] In [4]: vlans_str = words[-1] In [5]: vlans_str Out[5]: '10,20,30' In [6]: vlans = vlans_str.split(",") In [7]: vlans Out[7]: ['10', '20', '30'] ``` In the script: ``` line = "switchport trunk allowed vlan 10,20,30" words = line.split() vlans_str = words[-1] vlans = vlans_str.split(",") print(vlans) ``` In this case, variables are used to store the intermediate result and subsequent methods/actions are performed with the variable. This is a completely normal version of the code, especially at first when it’s hard perceive more complex expressions. However, in Python, there are often expressions in which actions or methods are applied one after the other in one expression. For example, the previous code could be written like this: ``` line = "switchport trunk allowed vlan 10,20,30" vlans = line.split()[-1].split(",") print(vlans) ``` Since there are no expressions in parentheses that would indicate the priority of execution, everything is executed from left to right. First, `line.split()` is executed - we get the list, then to the resulting list applies `[-1]` - we get the last element of the list, the line `10,20,30` . The method `split(",")` is applied to this line and as a result we get the list `['10', '20', '30']` . The main nuance when writing such chains, the previous method/action should return something what the next method/action is waiting for. And it is imperative that something is returned, otherwise there will be an error. When sorting data like list of lists or list of tuples, `sorted` sorts by the first element of nested lists (tuples), and if the first element is the same, on the second: ``` In [1]: data = [[1, 100, 1000], [2, 2, 2], [1, 2, 3], [4, 100, 3]] In [2]: sorted(data) Out[2]: [[1, 2, 3], [1, 100, 1000], [2, 2, 2], [4, 100, 3]] ``` If the sort is done for a list of numbers that are written as strings, the sort will be lexicographic, not natural, and the order will be: ``` In [7]: vlans = ['1', '30', '11', '3', '10', '20', '30', '100'] In [8]: sorted(vlans) Out[8]: ['1', '10', '100', '11', '20', '3', '30', '30'] ``` For the sorting to be “correct” it is necessary to convert vlans to numbers. The same problem appears, for example, with IP addresses: ``` In [2]: ip_list = ["10.1.1.1", "10.1.10.1", "10.1.2.1", "10.1.11.1"] In [3]: sorted(ip_list) Out[3]: ['10.1.1.1', '10.1.10.1', '10.1.11.1', '10.1.2.1'] ``` How to solve the problem with sorting IP addresses is discussed in section “10. Useful functions”. Further reading# Documentation: Strings. String Methods Lists basics. More on lists Tuples. More on tuples Sets basics. More on sets Dict basics. More on dicts Common Sequence Operations String formatting: String formating usage examples Documentaion on string formating Python 3’s f-Strings: An Improved String Formatting Syntax (Guide) Python String Formatting Best Practices In section 4, the tests can be easily “tricked” into making the correct output without getting results from initial data using Python. This does not mean that the task was done correctly, it is just that at this stage it is difficult otherwise test the result. ## Task 4.1# Using the prepared nat string, get a new string where the FastEthernet interface is replaced with GigabitEthernet. Print the resulting new string to the standard output (stdout) using print. ``` nat = "ip nat inside source list ACL interface FastEthernet0/1 overload" ``` ## Task 4.2# Convert string in mac variable from XXXX:XXXX:XXXX format to XXXX.XXXX.XXXX format. Print the resulting new string to the standard output (stdout) using print. ## Task 4.3# Get the following list of VLANs from the config string: ``` ["1", "3", "10", "20", "30", "100"] ``` Here is a very important point that you need to get exactly the list (data type), and not, for example, a string that looks like the list shown. ``` config = "switchport trunk allowed vlan 1,3,10,20,30,100" ``` ## Task 4.4# Vlans list is a list of VLANs collected from all devices on the network, therefore there are duplicate VLAN numbers in the list. Get a new list of unique VLAN numbers from the vlans list, sorted in ascending order of numbers. To get the final list, you cannot delete specific vlans manually. ``` vlans = [10, 20, 30, 1, 2, 100, 10, 30, 3, 4, 10] ``` ## Task 4.5# From the strings command1 and command2, get a list of VLANs that exist in both command1 and command2 (intersection). In this case, the result should be a list: `['1', '3', '8']` . Write the resulting list to the result variable. (this is the variable that will be checked in the test) ``` command1 = "switchport trunk allowed vlan 1,2,3,5,8" command2 = "switchport trunk allowed vlan 1,3,8,9" ``` ## Task 4.6# Process the ospf_route string and print the information to the stdout as follows: ``` ospf_route = " 10.0.24.0/24 [110/41] via 10.0.13.3, 3d18h, FastEthernet0/0" ``` ## Task 4.7# Convert MAC address in mac string to binary string like this: ``` 101010101010101010111011101110111100110011001100 ``` Print the resulting new string to the standard output (stdout) using print. ## Task 4.8# Convert the IP address in the ip variable to binary and print output in columns to stdout: the first line must be decimal values * the second line is binary values The output should be ordered in the same way as in the example output below: in columns * column width 10 characters (in binary you need to add two spaces between columns to separate octets among themselves) Example output for address 10.1.1.1: ``` 10 1 1 1 00001010 00000001 00000001 00000001 ``` Restriction: All tasks must be done using the topics covered in this and previous chapters. `ip = "192.168.3.1"` Generally speaking, script is a regular file. This file stores the sequence of commands that you want to execute. Let’s start with basic script and print several strings on standard output. To do this, you need to create an access_template.py file with this content: First, items in list are combined into a string that is separated by `\n` and VLAN number is inserted into string using string formatting. After this you should save file and go to command line. This is how the script execution looks like: ``` $ python access_template.py switchport mode access switchport access vlan 5 switchport nonegotiate spanning-tree portfast spanning-tree bpduguard enable ``` All scripts that will be created in this course have an extension `.py` . You can say that it is a «good manners» - to create Python scripts with .py extension. In order for a file to be executable and not have to write “python” every time before calling a file, you need to: make file executable (for Linux) * the first line of file should have ``` #!/usr/bin/env python ``` or depending on which version of Python is used by default Example of access_template_exec.py file: After that: ``` chmod +x access_template_exec.py ``` Now you can call file like this: ``` $ ./access_template_exec.py ``` Very often script solves some common problem. For example, script processes a configuration file. Of course, in this case you don’t want to edit name of file every time with your hands in script. It will be much better to pass file name as script argument and then use already specified file. The sys module allows working with script arguments via argv. Example of access_template_argv.py: ``` from sys import argv interface = argv[1] vlan = argv[2] print('interface {}'.format(interface)) print('\n'.join(access_template).format(vlan)) ``` ``` $ python access_template_argv.py Gi0/7 4 interface Gi0/7 switchport mode access switchport access vlan 4 switchport nonegotiate spanning-tree portfast spanning-tree bpduguard enable ``` Arguments that have been passed to script are substituted as values in template. Several points need to be clarified: argv is a list * all arguments are in list and represented as strings * argv contains not only arguments that passed to script but also name of script itself In this case, argv list contains the following elements: ``` ['access_template_argv.py', 'Gi0/7', '4'] ``` First comes the name of script itself, then arguments in the same order. Sometimes it is necessary to get information from user. For example, request a password. The `input` function is used to get information from the user: ``` In [1]: print(input('What is your faivorite routing protocol? ')) What is your faivorite routing protocol? OSPF OSPF ``` In this case, information is immediately displayed to user, but in addition, information entered by user can be stored in a variable and can be used later in script. ``` In [2]: protocol = input('What is your faivorite routing protocol? ') What is your faivorite routing protocol? OSPF In [3]: print(protocol) OSPF ``` In parentheses, a question is usually written that specifies what information needs to be entered. A script that asks the user for information using input (file access_template_input.py): ``` interface = input('Enter interface type and number: ') vlan = input('Enter VLAN number: ') print('\n' + '-' * 30) print('interface {}'.format(interface)) print('\n'.join(access_template).format(vlan)) ``` First two lines request information from user. Line ``` print('\n' + '-' * 30) ``` is used to visually separate information request from the output. Script output: ``` $ python access_template_input.py Enter interface type and number: Gi0/3 Enter VLAN number: 55 ------------------------------ interface Gi0/3 switchport mode access switchport access vlan 55 switchport nonegotiate spanning-tree portfast spanning-tree bpduguard enable ``` ## Task 5.1# The task contains a dictionary with information about different devices. In the task you need: ask the user to enter the device name (r1, r2 or sw1). Print information about the corresponding device to standard output (information will be in the form of a dictionary). ``` $ python task_5_1.py Enter name of device: r1 {"location": "21 New Globe Walk", "vendor": "Cisco", "model": "4451", "ios": "15.4", "ip": "10.255.0.1"} ``` All tasks must be completed using only the topics covered. That is, this task can be solved without using the if condition. Restriction: You cannot change london_co dictionary. ## Task 5.1a# Modify the script from task 5.1 so that, in addition to the device name, the script requested and then printed the device parameter as well. ``` $ python task_5_1a.py Enter device name : r1 Enter parameter name: ios 15.4 ``` ## Task 5.1b# Modify the script from task 5.1a so that, when requesting a parameter, a list of possible parameters was displayed. The list of parameters must be obtained from the dictionary, rather than written manually. ``` $ python task_5_1b.py Enter device name: r1 Enter parameter name (ios, model, vendor, location, ip): ip 10.255.0.1 ``` ## Task 5.1c# Copy and modify the script from task 5.1b so that when you request a parameter that is not in the device dictionary, the message ‘There is no such parameter’ is displayed. The assignment applies only to the parameters of the devices, not to the devices themselves. Try typing a non-existent parameter, to see what the result will be. And then complete the task. If an existing parameter is selected, print information about the corresponding parameter. ``` $ python task_5_1c.py Enter device name: r1 Enter parameter name (ios, model, vendor, location, ip): ips No such parameter ``` ## Task 5.1d# Modify the script from task 5.1c so that, when requesting a parameter, the user could enter the parameter name in any case. ``` $ python task_5_1d.py Enter device name: r1 Enter parameter name (ios, model, vendor, location, ip): IOS 15.4 ``` ## Task 5.2# Ask the user to enter the IP network in the format: `10.1.1.0/24` . Then print information about the network and mask in this format: Check the script work on different network/mask combinations. Hint: You can get the mask in binary format like this: ``` In [1]: "1" * 28 + "0" * 4 Out[1]: "11111111111111111111111111110000" ``` You can then take 8 bits of the binary mask using slices and convert them to decimal. ## Task 5.2a# Copy and modify the script from task 5.2 so that, if the user entered a host address rather than a network address, convert the host address to a network address and print the network address and mask, as in task 5.2. An example of a network address (all host bits are equal to zero): 10.0.1.0/24 * 190.1.0.0/16 Host address example: 10.0.1.1/24 - host from network 10.0.1.0/24 * 10.0.5.195/28 - host from network 10.0.5.192/28 If the user entered the address 10.0.1.1/24, the output should look like this: Check the script work on different host/mask combinations, for example: 10.0.5.195/28, 10.0.1.1/24 Hint: The network address can be calculated from the binary host address and the netmask. If the mask is 28, then the network address is the first 28 bits host addresses + 4 zeros. For example, the host address 10.1.1.195/28 in binary will be: ``` bin_ip = "00001010000000010000000111000011" ``` Then the network address will be the first 28 characters from bin_ip + 0000 (4 because in total there can be 32 bits in the address, and 32 - 28 = 4) ``` 00001010000000010000000111000000 ``` ## Task 5.3# The script should prompt the user for input: interface mode (access/trunk) * interface number (Gi0/3) * VLAN number (for trunk mode, a list of VLANs will be entered) Depending on the selected mode, print corresponding access or trunk configuration on stdout (command templates are in the lists access_template and trunk_template). The output should first print the interface line and the interface number, and then the corresponding template in which the VLAN number (or the list of VLANs) is inserted. Hint: Leading up to this task was task 5.1. To make it easier to solve this task, you can look at task 5.1 and figure out exactly how different information is displayed in the task, depending on user input. Below are examples of script execution to make it easier to understand the task. ``` $ python task_5_3.py Enter interface mode (access/trunk): access Enter type and interface number: Fa0/6 Enter number of vlan (vlans): 3 interface Fa0/6 switchport mode access switchport access vlan 3 switchport nonegotiate spanning-tree portfast spanning-tree bpduguard enable ``` ``` $ python task_5_3.py Enter interface mode (access/trunk): trunk Enter type and interface number: Fa0/7 Enter number of vlan (vlans): 2,3,4,5 interface Fa0/7 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 2,3,4,5 ``` ## Task 5.3a# Copy and change the script from task 5.3 in such a way that, depending on the selected mode, different questions were asked in the request for the VLAN number or VLAN list: for access: ‘Enter VLAN number:’ * for trunk: ‘Enter the allowed VLANs:’ So far, all code has been executed sequentially - all lines of script have been executed in order in which they are written in file. This section covers program flow control: branching with `if/elif/else` * repeating actions using for and while loops * exception handling with `try/except` The `if/elif/else` statement allows make branches during program execution. The program goes into branch when a certain condition is met. In this statement only `if` is mandatory, `elif` and `else` are optional: * `if` condition is always checked first. * After `if` statement there must be some condition: if this condition is met (returns True), then actions in block `if` are executed. * `elif` can be used to make multiple branches, that is, to check incoming data for different conditions. * `elif` block is the same as `if` but it checked next. Roughly speaking, it is “otherwise if …” * There can be many `elif` blocks. * `else` block is executed if none of conditions `if` or `elif` were true. Example of if statement: ## Condition# `If` expression is based on conditions: conditions are always written after `if` and `elif` . Blocks if/elif are executed only when condition returns True, so the first thing to deal with is what is true and what is false in Python. ### True and False# In Python, apart from obvious True and False values, all other objects also have false or true value: For example, since an empty list is a false value, it is possible to check whether list is empty: ``` In [12]: list_to_test = [1, 2, 3] The same result could have been achieved somewhat differently: ### Comparison operators# Comparison operators can be used in conditions like: ``` In [3]: 5 > 6 Out[3]: False In [4]: 5 > 2 Out[4]: True In [5]: 5 < 2 Out[5]: False In [6]: 5 == 2 Out[6]: False In [7]: 5 == 5 Out[7]: True In [8]: 5 >= 5 Out[8]: True In [9]: 5 <= 10 Out[9]: True In [10]: 8 != 10 Out[10]: True ``` Note Note that equality is checked by double `==` . Example of use of comparison operators: ### Operator in# Operator `in` allows checking for the presence of element in a sequence (for example, element in a list or substrings in a string): ``` In [8]: 'Fast' in 'FastEthernet' Out[8]: True In [9]: 'Gigabit' in 'FastEthernet' Out[9]: False In [10]: vlan = [10, 20, 30, 40] In [11]: 10 in vlan Out[11]: True In [12]: 50 in vlan Out[12]: False ``` When used with dictionaries, `in` condition performs check by dictionary keys: In [16]: 'IOS' in r1 Out[16]: True In [17]: '4451' in r1 Out[17]: False ``` ### Operators and, or, not# Conditions can also use logical operators `and` , `or` , `not` : In [18]: vlan = [10, 20, 30, 40] In [19]: 'IOS' in r1 and 10 in vlan Out[19]: True In [20]: '4451' in r1 and 10 in vlan Out[20]: False In [21]: '4451' in r1 or 10 in vlan Out[21]: True In [22]: not '4451' in r1 Out[22]: True In [23]: '4451' not in r1 Out[23]: True ``` # Operator and# In Python `and` operator returns not a boolean value but a value of one of operands. If both operands are true, result is the last value: ``` In [24]: 'string1' and 'string2' Out[24]: 'string2' In [25]: 'string1' and 'string2' and 'string3' Out[25]: 'string3' ``` If one of operators is a false, result of expression will be the first false value: ``` In [26]: '' and 'string1' Out[26]: '' In [27]: '' and [] and 'string1' Out[27]: '' ``` # Operator or# Operator `or` , like operator `and` , returns one of operands value. When checking operands, the first true operand is returned: ``` In [28]: '' or 'string1' Out[28]: 'string1' In [29]: '' or [] or 'string1' Out[29]: 'string1' In [30]: 'string1' or 'string2' Out[30]: 'string1' ``` If all values are false, the last value is returned: ``` In [31]: '' or [] or {} Out[31]: {} ``` An important feature of `or` operator - operands, which are after the true operand, are not calculated: ``` In [33]: '' or sorted([44, 1, 67]) Out[33]: [1, 44, 67] In [34]: '' or 'string1' or sorted([44, 1, 67]) Out[34]: 'string1' ``` ## Example of if/elif/else statement# An example of a check_password.py script that checks length of password and whether password contains username: if len(password) < 8: print('Password is too short') elif username in password: print('Password contains username') else: print('Password for user {} is set'.format(username)) ``` Script check: ``` $ python check_password.py Enter username: nata Enter password: nata1234 Password contains username $ python check_password.py Enter username: nata Enter password: 123nata123 Password contains username $ python check_password.py Enter username: nata Enter password: 1234 Password is too short $ python check_password.py Enter username: nata Enter password: 123456789 Password for user nata is set ``` ## Ternary expression# It is sometimes more convenient to use a ternary operator than an extended form: ``` s = [1, 2, 3, 4] result = True if len(s) > 5 else False ``` It is best not to abuse it but in simple terms such a record can be useful. Very often the same step should be performed for a set of the same data type. For example, convert all strings in list to uppercase. Python uses `for` loop for such purposes. `For` loop iterates elements of specified sequence and performs actions specified for each element. Examples of sequences of elements that can be iterated by `for` : An example of converting strings in a list to uppercase without `for` loop: ``` In [1]: words = ['list', 'dict', 'tuple'] In [2]: upper_words = [] In [3]: words[0] Out[3]: 'list' In [4]: words[0].upper() # converting word to uppercase Out[4]: 'LIST' In [5]: upper_words.append(words[0].upper()) # converting and adding to new list In [6]: upper_words Out[6]: ['LIST'] In [7]: upper_words.append(words[1].upper()) In [8]: upper_words.append(words[2].upper()) In [9]: upper_words Out[9]: ['LIST', 'DICT', 'TUPLE'] ``` This solution has several nuances: the same action need to be repeated several times * code is tied to a certain number of elements in words list The same steps with the `for` loop: ``` In [10]: words = ['list', 'dict', 'tuple'] In [11]: upper_words = [] In [12]: for word in words: ...: upper_words.append(word.upper()) ...: In [13]: upper_words Out[13]: ['LIST', 'DICT', 'TUPLE'] ``` ``` for word in words: upper_words.append(word.upper()) ``` means “for each word in `words` list to perform actions in block `for` ”. In this case, `word` is the name of the variable, which refers to different values each iteration of the loop. Note The pythontutor project can be very helpful in understanding loops. The project visualize code execution and allows you to see what happens at every stage of code execution, which is especially useful in first steps of learning loops. The pythontutor allows you to upload your code, for instance, see example above. `For` loop can work with any sequence of elements. For example, the above code used a list and the loop iterated over the elements of the list. The for loop works in a similar way with tuples. When working with strings `for` loop iterates through string characters, for example: ``` In [1]: for letter in 'Test string': ...: print(letter) ...: T e s t s t r i n g ``` Loop uses a variable named letter. Although, it could be any name, it is better when name tells you which objects go through a loop. Sometimes it is necessary to use sequence of numbers in loop. In this case, it is best to use range Example of loop `for` with range() function: ``` In [2]: for i in range(10): ...: print('interface FastEthernet0/{}'.format(i)) ...: interface FastEthernet0/0 interface FastEthernet0/1 interface FastEthernet0/2 interface FastEthernet0/3 interface FastEthernet0/4 interface FastEthernet0/5 interface FastEthernet0/6 interface FastEthernet0/7 interface FastEthernet0/8 interface FastEthernet0/9 ``` This loop uses `range(10)` . Function range() generates numbers in range from zero to specified number (in this example, up to 10) not including it. In this example, loop runs through vlans list, so variable can be called vlan: ``` In [3]: vlans = [10, 20, 30, 40, 100] In [4]: for vlan in vlans: ...: print('vlan {}'.format(vlan)) ...: print(' name VLAN_{}'.format(vlan)) ...: vlan 10 name VLAN_10 vlan 20 name VLAN_20 vlan 30 name VLAN_30 vlan 40 name VLAN_40 vlan 100 name VLAN_100 ``` When a loop runs through dictionary, it actually goes through keys: ``` In [34]: r1 = { ...: 'ios': '15.4', ...: 'ip': '10.255.0.1', ...: 'hostname': 'london_r1', ...: 'location': '21 New Globe Walk', ...: 'model': '4451', ...: 'vendor': 'Cisco'} ...: In [35]: for k in r1: ...: print(k) ...: ios ip hostname location model vendor ``` If you want to print key-value pairs in loop, you can do this: ``` In [36]: for key in r1: ...: print(key + ' => ' + r1[key]) ...: ios => 15.4 ip => 10.255.0.1 hostname => london_r1 location => 21 New Globe Walk model => 4451 vendor => Cisco ``` Or use items() method which allows you to run loop over a key-value pair: ``` In [37]: for key, value in r1.items(): ...: print(key + ' => ' + value) ...: ios => 15.4 ip => 10.255.0.1 hostname => london_r1 location => 21 New Globe Walk model => 4451 vendor => Cisco ``` Method items() returns a special view object that displays key-value pairs: ``` In [38]: r1.items() Out[38]: dict_items([('ios', '15.4'), ('ip', '10.255.0.1'), ('hostname', 'london_r1'), ('location', '21 New Globe Walk'), ('model', '4451'), ('vendor', 'Cisco')]) ``` Loops `for` can be nested in each other. In this example, commands is a list of commands to execute on each interface in the fast_int list: ``` In [7]: commands = ['switchport mode access', 'spanning-tree portfast', 'spanning-tree bpduguard enable'] In [8]: fast_int = ['0/1', '0/3', '0/4', '0/7', '0/9', '0/10', '0/11'] In [9]: for intf in fast_int: ...: print('interface FastEthernet {}'.format(intf)) ...: for command in commands: ...: print(' {}'.format(command)) ...: interface FastEthernet 0/1 switchport mode access spanning-tree portfast spanning-tree bpduguard enable interface FastEthernet 0/3 switchport mode access spanning-tree portfast spanning-tree bpduguard enable interface FastEthernet 0/4 switchport mode access spanning-tree portfast spanning-tree bpduguard enable ... ``` The first `for` loop passes through interfaces in the fast_int list and the second through commands in commands list. Consider example of combining `for` and `if` . Generate_access_port_config.py file: ``` 1 access_template = ['switchport mode access', 2 'switchport access vlan', 3 'spanning-tree portfast', 4 'spanning-tree bpduguard enable'] 5 6 access = {'0/12': 10, '0/14': 11, '0/16': 17, '0/17': 150} 7 8 for intf, vlan in fast_int['access'].items(): 9 print('interface FastEthernet' + intf) 10 for command in access_template: 11 if command.endswith('access vlan'): 12 print(' {} {}'.format(command, vlan)) 13 else: 14 print(' {}'.format(command)) ``` Comments to the code: The first `for` loop iterates keys and values in nested fast_int[‘access’] dictionary * At this moment of loop the current key is stored in intf variable * At this moment of loop the current value is stored in vlan variable * String “interface Fastethernet” is displayed with interface number added * The second loop `for` iterates commands from access_template list * Since switchport access to vlan command requires a VLAN number: within second loop `for` commands are checked * if command ends with “access vlan” command is displayed and VLAN number is added to it * in all other cases, command is simply displayed ``` $ python generate_access_port_config.py interface FastEthernet0/12 switchport mode access switchport access vlan 10 spanning-tree portfast spanning-tree bpduguard enable interface FastEthernet0/14 switchport mode access switchport access vlan 11 spanning-tree portfast spanning-tree bpduguard enable interface FastEthernet0/16 switchport mode access switchport access vlan 17 spanning-tree portfast spanning-tree bpduguard enable interface FastEthernet0/17 switchport mode access switchport access vlan 150 spanning-tree portfast spanning-tree bpduguard enable ``` A `while` loop is another type of loop in Python. In the while loop, as in the if statement, you need to write a condition. If the condition is true, the actions inside the while block are executed. In this case, unlike if, after executing the code in the block, while returns to the beginning of the loop. When using `while` loops it is necessary to pay attention to whether the result when condition of loop is false will be reached. Consider an example: ``` In [1]: a = 5 In [2]: while a > 0: ...: print(a) ...: a -= 1 # This record is equal to: a = a - 1 ...: 5 4 3 2 1 ``` First, variable A is created with the value 5. Then, in `while` loop the condition `a > 0` is specified. That is, as long as the value of `a` is greater than 0, actions in the body of the loop will be executed. In this case, value of variable `a` will be displayed. In addition, in the body of the loop, with each pass, the value of `a` is decreased by one. Note Record `a -= 1` can be a bit unusual. Python allows this format to be used instead of `a = a - 1` . Similarly, you can write: `a += 1` , `a *= 2` , `a /= 2` . Since the value of `a` is decreasing, the loop will not be infinite, and at some point the expression `a > 0` will become false. The following example is based on example about password from section which describes `if` statement use Example of if/elif/else statement. In that example, you had to re-run the script if the password did not meet the requirements. Using a while loop, you can make the script ask for a password again if it does not meet the requirements (check_password_with_while.py): In this case, `while` loop is useful because it returns script back to the beginning of checks and allows password to be typed again but does not require script to restart. Now script works like this: ``` $ python check_password_with_while.py Enter username: nata Enter password: nata Password is too short Enter password once again: natanata Password contains username Python has several operators that allow to change default loop behavior. ## Break operator# Operator `break` allows early termination of loop: * `break` breaks current loop and continues executing the next expressions * if multiple nested loops are used, `break` interrupts internal loop and continues to execute expressions following the block. `Break` can be used in loops `for` and `while` Example of loop `for` : ``` In [1]: for num in range(10): ...: if num < 7: ...: print(num) ...: else: ...: break ...: 0 1 2 3 4 5 6 ``` ``` In [2]: i = 0 In [3]: while i < 10: ...: if i == 5: ...: break ...: else: ...: print(i) ...: i += 1 ...: 0 1 2 3 4 ``` Using break in the password request example (check_password_with_while_break.py file): while True: if len(password) < 8: print('Password is too short\n') elif username in password: print('Password contains username\n') else: print('Password for user {} is set'.format(username)) # exit while loop break password = input('Enter password once again: ') ``` Now it is possible not to repeat string ``` password = input('Enter password once again: ') ``` in each branch, it is enough to move it to the end of loop. And as soon as correct password is entered, `break` will take the program out of loop `while` . ## Continue operator# Operator `continue` returns control to the beginning of loop. That is, `continue` allows to «jump» remaining expressions in loop and go to the next iteration. Example of a loop `for` : ``` In [4]: for num in range(5): ...: if num == 3: ...: continue ...: else: ...: print(num) ...: 0 1 2 4 ``` ``` In [5]: i = 0 In [6]: while i < 6: ....: i += 1 ....: if i == 3: ....: print("Skip 3") ....: continue ....: print("No one will see it") ....: else: ....: print("Current value: ", i) ....: Current value: 1 Current value: 2 Skip 3 Current value: 4 Current value: 5 Current value: 6 ``` Use of `continue` in example with password request (check_password_with_while_continue.py file): Here you can exit loop by checking password_correct flag. When correct password is entered, flag is set to True and with `continue` a jump to the beginning of loop is occurred by skipping the last line with password request. The result will be: ``` $ python check_password_with_while_continue.py Enter username: nata Enter password: nata12 Password is too short Enter password once again: natalksdjflsdjf Password contains username ## Pass operator# Operator `pass` does nothing. Basically it is a placeholder. For example, `pass` can help when you need to specify a script structure. It can be set in loops, functions, classes. And it won’t affect execution of code. Example of using pass: ``` In [6]: for num in range(5): ....: if num < 3: ....: pass ....: else: ....: print(num) ....: 3 4 ``` In loops `for` and `while` you may optionally use `else` block. ## for/else# In loop `for` : but it does not execute if `break` was applied in loop. Example of loop `for` with `else` (block `else` is executed after loop `for` ): ``` In [1]: for num in range(5): ....: print(num) ....: else: ....: print("Run out of numbers") ....: 0 1 2 3 4 Run out of numbers ``` An example of loop `for` with `else` and `break` in loop (because of `break` , block `else` is not applied): ``` In [2]: for num in range(5): ....: if num == 3: ....: break ....: else: ....: print(num) ....: else: ....: print("Run out of numbers") ....: 0 1 2 ``` Example of loop `for` with `else` and `continue` in loop ( `continue` does not affect `else` block): ``` In [3]: for num in range(5): ....: if num == 3: ....: continue ....: else: ....: print(num) ....: else: ....: print("Run out of numbers") ....: 0 1 2 4 Run out of numbers ``` ## while/else# In loop `while` : but it does not execute if `break` was applied in loop. Example of a loop `while` with `else` (block `else` runs after loop `while` ): ``` In [4]: i = 0 In [5]: while i < 5: ....: print(i) ....: i += 1 ....: else: ....: print("The End") ....: 0 1 2 3 4 The End ``` An example of a loop `while` with `else` and `break` in loop (because of `break` , block `else` is not applied): ``` In [6]: i = 0 In [7]: while i < 5: ....: if i == 3: ....: break ....: else: ....: print(i) ....: i += 1 ....: else: ....: print("The End") ....: 0 1 2 ``` ## try/except# If you repeated examples that were used before, there could be situations where a mistake was made. It was probably a syntax error when a colon was missing, for example. Python generally reacts quite understandably to such errors and they can easily be corrected. However, even if the code is syntactically correct, errors can occur. In Python, these errors are called exceptions. Examples of exceptions: ``` In [1]: 2/0 ----------------------------------------------------- ZeroDivisionError: division by zero In [2]: 'test' + 2 ----------------------------------------------------- TypeError: must be str, not int ``` In this case, two exceptions were raised: `ZeroDivisionError` and `TypeError` . Most often, it is possible to predict what kind of exceptions will occur during execution of the program. For example, if program expects two numbers in input and output returns their sum and user has entered a string instead of one of numbers a TypeError error will appear as in example above. Python allows working with exceptions. They can be intercepted and acted upon if an exception has been occurred. When an exception appears, program is immediately interrupted. In order to work with exceptions `try/except` statement is used: ``` In [3]: try: ...: 2/0 ...: except ZeroDivisionError: ...: print("You can't divide by zero") ...: You can't divide by zero ``` The `try` statement works as follows: first execute expressions that are written in `try` block * if there are no exceptions during execution of `try` block, block `except` is skipped and the following code is executed * if there is an exception within `try` block, the rest part of `try` block is skipped if `except` block contains an exception which has been occurred, code in `except` block is executed * if exception that has raised is not specified in `except` block, program execution is interrupted and an error is generated Note that `Cool!` string in `try` block is not displayed: ``` In [4]: try: ...: print("Let's divide some numbers") ...: 2/0 ...: print('Cool!') ...: except ZeroDivisionError: ...: print("You can't divide by zero") ...: Let's divide some numbers You can't divide by zero ``` try/except statement may have many `except` if different actions are needed depending on type of error. For example, divide.py script divides two numbers entered by user: try: a = input("Enter first number: ") b = input("Enter second number: ") print("Result: ", int(a)/int(b)) except ValueError: print("Please enter only numbers") except ZeroDivisionError: print("You can't divide by zero") ``` ``` $ python divide.py Enter first number: 3 Enter second number: 1 Result: 3 $ python divide.py Enter first number: 5 Enter second number: 0 You can't divide by zero $ python divide.py Enter first number: qewr Enter second number: 3 Please enter only numbers ``` In this case, ValueError exception raised when user has entered a string instead of a number. ZeroDivisionError exception raised if second number is 0. If you do not need to print different messages on ValueError and ZeroDivisionError, you can do this (divide_ver2.py file): try: a = input("Enter first number: ") b = input("Enter second number: ") print("Result: ", int(a)/int(b)) except (ValueError, ZeroDivisionError): print("Something went wrong...") ``` ``` $ python divide_ver2.py Enter first number: wer Enter second number: 4 Something went wrong... $ python divide_ver2.py Enter first number: 5 Enter second number: 0 Something went wrong... ``` Note In block `except` you don’t have to specify a specific exception or exceptions. In that case, all exceptions would be intercepted. That is not recommended! ## try/except/else# Try/except has an optional `else` block. It is implemented if there is no exception. For example, if you need to perform any further operations with data that user entered, you can write them in `else` block (divide_ver3.py file): try: a = input("Enter first number: ") b = input("Enter second number: ") result = int(a)/int(b) except (ValueError, ZeroDivisionError): print("Something went wrong...") else: print("Result is squared: ", result``2) ``` Example of execution: ``` $ python divide_ver3.py Enter first number: 10 Enter second number: 2 Result is squared: 25 $ python divide_ver3.py Enter first number: werq Enter second number: 3 Something went wrong... ``` ## try/except/finally# Block `finally` is another optional block in `try` statement. It is always implemented, whether an exception has been raised or not. It’s about actions that you have to do anyway. For example, it could be a file closing. File divide_ver4.py с блоком finally: try: a = input("Enter first number: ") b = input("Enter second number: ") result = int(a)/int(b) except (ValueError, ZeroDivisionError): print("Something went wrong...") else: print("Result is squared: ", result``2) finally: print("And they lived happily ever after.") ``` ``` $ python divide_ver4.py Enter first number: 10 Enter second number: 2 Result is squared: 25 And they lived happily ever after. $ python divide_ver4.py Enter first number: qwerewr Enter second number: 3 Something went wrong... And they lived happily ever after. $ python divide_ver4.py Enter first number: 4 Enter second number: 0 Something went wrong... And they lived happily ever after. ``` ## When to use exceptions# As a rule, same code can be written with or without exceptions. For example, this version of code: ``` while True: a = input("Enter first number: ") b = input("Enter second number: ") try: result = int(a)/int(b) except ValueError: print("Only digits are supported") except ZeroDivisionError: print("You can't divide by zero") else: print(result) break ``` You can rewrite this without try/except (try_except_divide.py file): ``` while True: a = input("Enter first number: ") b = input("Enter second number: ") if a.isdigit() and b.isdigit(): if int(b) == 0: print("You can't divide by zero") else: print(int(a)/int(b)) break else: print("Only digits are supported") ``` But the same option without exceptions will not always be simple and understandable. It is important to assess in each specific situation which version of code is more comprehensible, compact and universal - with or without exceptions. If you’ve used some other programming language before, it’s possible that use of exceptions was considered a bad form. In Python this is not true. To get a little bit more into this issue, look at the links to additional material at the end of this section. Date: 2008-08-21 Categories: Tags: Further reading# Documentation: Compound statements (if, while, for, try) break, continue Errors and Exceptions Built-in Exceptions Articles: Write Cleaner Python: Use Exceptions Robust exception handling Python Exception Handling Techniques Stack Overflow: Why does python use ‘else’ after for and while loops? Is it a good practice to use try-except-else in Python? ## Task 6.1# The mac list contains MAC addresses in the format XXXX:XXXX:XXXX However, in Cisco equipment MAC addresses are in XXXX.XXXX.XXXX format. Write a code that converts MAC addresses to cisco format and adds them to a new list named result. Print the result list to the stdout using print function. ``` mac = ["aabb:cc80:7000", "aabb:dd80:7340", "aabb:ee80:7000", "aabb:ff80:7000"] ``` ## Task 6.2# Prompt the user to enter an IP address in the format 10.0.1.1. Depending on the type of address (described below), print to the stdout: ‘unicast’ - if the first byte is in the range 1-223 * ‘multicast’ - if the first byte is in the range 224-239 * ‘local broadcast’ - if the IP address is 255.255.255.255 * ‘unassigned’ - if the IP address is 0.0.0.0 * ‘unused’ - in all other cases ## Task 6.2a# Add verification of the entered IP address. An IP address is considered correct if it: consists of 4 numbers (not letters or other symbols) * numbers are separated by a dot * If the IP address is incorrect, print the message: ‘Invalid IP address’ The message “Invalid IP address” should be printed only once, even if several points above are not met. ## Task 6.2b# Add this functionality: If the address was entered incorrectly, request the address again. ## Task 6.3# A configuration generator for access ports is made in the script. Make a similar configuration generator for trunk ports. In trunks, the situation is complicated by the fact that there can be many VLANs, and you need to understand what to do with them (add, delete, overwrite). Therefore, in accordance with each port there is a list and the first (zero index) element of the list specifies how to interpret VLAN numbers that follow. Dict value and corresponding command: * `['add', '10', '20']` - switchport trunk allowed vlan add 10,20 * `['del', '17']` - switchport trunk allowed vlan remove 17 * `['only', '11', '30']` - switchport trunk allowed vlan 11,30 Task for ports 0/1, 0/2, 0/4: generate a configuration based on the trunk_template template * taking into account the keywords add, del, only The code should not be tied to specific port numbers. I.e, if there are other interface numbers in the trunk dictionary, the code should work. For data in the trunk_template dictionary, output to the standard output should be like this: ``` interface FastEthernet 0/1 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan add 10,20 interface FastEthernet 0/2 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 11,30 interface FastEthernet 0/4 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan remove 17 ``` ``` access_template = [ "switchport mode access", "switchport access vlan", "spanning-tree portfast", "spanning-tree bpduguard enable", ] trunk_template = [ "switchport trunk encapsulation dot1q", "switchport mode trunk", "switchport trunk allowed vlan", ] access = {"0/12": "10", "0/14": "11", "0/16": "17", "0/17": "150"} trunk = {"0/1": ["add", "10", "20"], "0/2": ["only", "11", "30"], "0/4": ["del", "17"]} for intf, vlan in access.items(): print("interface FastEthernet" + intf) for command in access_template: if command.endswith("access vlan"): print(f" {command} {vlan}") else: print(f" {command}") ``` In real life, in order to make full use of everything covered before this section you need to understand how to work with files. When working with network equipment (and not only), files can be: configurations (simple, non-structured text files) They are discussed in this section * configuration templates usually a special file format. * section Jinja configuration temlates discusses the use of Jinja2 to create configuration templates * files with connection options usually they are structured files in some particular format: YAML, JSON, CSV section Data serialization discusses how to handle such files * other Python scripts section Modules discusses how to work with modules (other Python scripts) This section covers simple text files. For example, Cisco configuration file. There are several aspects to working with files: opening/closing * reading * writing This section covers only the minimum required for working with files. More in Python documentation. To start working with a file you have to open it. `open` # Function `open` is most often used to open files: ``` file = open('file_name.txt', 'r') ``` In open() function: * `'file_name.txt'` - file name * You can specify not only the name but also the path (absolute or relative) * `'r'` - file opening mode Function `open` creates a file object to which different methods can then be applied to work with it. File opening modes: * `r` - open file in read-only mode (default) * `r+` - open file for reading and writing * `w` - open file for writing only * `w+` - open file for reading and writing * `a` - open file to add a data. Data is added to the end of file * `a+` - open file for reading and writing. Data is added to the end of file Note r - read; a - append; w - write Python has several file reading methods: * `read` - reads the contents of file to string * `readline` - reads file line by line * `readlines` - reads file lines and creates a list from the lines Let’s see how to read contents of files using the example of r1.txt: `read` # Method `read` reads the entire file to one string: In [2]: f.read() Out[2]: '!\nservice timestamps debug datetime msec localtime show-timezone year\nservice timestamps log datetime msec localtime show-timezone year\nservice password-encryption\nservice sequence-numbers\n!\nno ip domain lookup\n!\nip ssh version 2\n!\n' In [3]: f.read() Out[3]: '' ``` When reading a file once again an empty line is displayed in line 3. This is because the whole file is read when `read` method is called. And after the file has been read the cursor stays at the end of file. The cursor position can be controlled by `seek` method. `readline` # File can be read line by line using `readline` method: In [5]: f.readline() Out[5]: '!\n' In [6]: f.readline() Out[6]: 'service timestamps debug datetime msec localtime show-timezone year\n' ``` But most often it is easier to walk through a file object in a loop without using `read...` methods: In [8]: for line in f: ...: print(line) ...: ! `readlines` # Another useful method is `readlines` . It reads file lines to the list: In [10]: f.readlines() Out[10]: ['!\n', 'service timestamps debug datetime msec localtime show-timezone year\n', 'service timestamps log datetime msec localtime show-timezone year\n', 'service password-encryption\n', 'service sequence-numbers\n', '!\n', 'no ip domain lookup\n', '!\n', 'ip ssh version 2\n', '!\n'] ``` If you want to get lines of a file but without a new line character at the end, you can use `split` method and specify symbol `\n` as a separator: In [12]: f.read().split('\n') Out[12]: ['!', 'service timestamps debug datetime msec localtime show-timezone year', 'service timestamps log datetime msec localtime show-timezone year', 'service password-encryption', 'service sequence-numbers', '!', 'no ip domain lookup', '!', 'ip ssh version 2', '!', ''] ``` Note that the last item in list is an empty string. If you use `split` before `rstrip` , list will be without empty string at the end: ``` In [13]: f = open('r1.txt') In [14]: f.read().rstrip().split('\n') Out[14]: ['!', 'service timestamps debug datetime msec localtime show-timezone year', 'service timestamps log datetime msec localtime show-timezone year', 'service password-encryption', 'service sequence-numbers', '!', 'no ip domain lookup', '!', 'ip ssh version 2', '!'] ``` `seek` # Until now, file had to be reopened to read it again. This is because after reading methods a cursor is at the end of the file. And second reading returns an empty string. To read information from a file again you need to use the `seek` method which moves the cursor to the desired position. Example of file opening and content reading: ``` In [15]: f = open('r1.txt') If you call `read` method again an empty string returns: ``` In [17]: print(f.read()) ``` But with `seek` method you can go to the beginning of file (0 means the beginning of file): `In [18]: f.seek(0)` Once cursor has been set to the beginning of file you can read the content again: When writing information to a file, it is very important to specify the correct mode for opening the file, so as not to accidentally delete it: * `w` - open file for writing. If file exists, its content is removed * `a` - open file to add data. Data is appended to the end of the file Both modes create a file if it does not exist. The following methods are used to write to a file: * `write` - write one line to file * `writelines` - allows to send as argument a list of strings `write` # Method `write` expects string to write. For example, take a list of lines with configuration: Open r2.txt file in write mode: ``` In [2]: f = open('r2.txt', 'w') ``` Convert the list of commands to one large string using `join` : ``` In [3]: cfg_lines_as_string = '\n'.join(cfg_lines) In [4]: cfg_lines_as_string Out[4]: '!\nservice timestamps debug datetime msec localtime show-timezone year\nservice timestamps log datetime msec localtime show-timezone year\nservice password-encryption\nservice sequence-numbers\n!\nno ip domain lookup\n!\nip ssh version 2\n!' ``` Write a string to a file: ``` In [5]: f.write(cfg_lines_as_string) ``` Similarly, you can add a string manually: ``` In [6]: f.write('\nhostname r2') ``` After work with file is finished, it should be closed: `In [7]: f.close()` Since ipython supports cat command, you can easily see the content of file: `writelines` # Method `writelines` expects list of strings as an argument. Writing cfg_lines list into the file: In [9]: f = open('r2.txt', 'w') In [10]: f.writelines(cfg_lines) In [11]: f.close() In [12]: cat r2.txt !service timestamps debug datetime msec localtime show-timezone yearservice timestamps log datetime msec localtime show-timezone yearservice password-encryptionservice sequence-numbers!no ip domain lookup!ip ssh version 2! ``` As a result, all lines in the list were written into one line because there was no symbol `\n` at the end of lines. You can add newline character in different ways. For example, you can loop through a list: ``` In [13]: cfg_lines2 = [] In [14]: for line in cfg_lines: ....: cfg_lines2.append(line + '\n') ....: In [15]: cfg_lines2 Out[15]: ['!\n', 'service timestamps debug datetime msec localtime show-timezone year\n', 'service timestamps log datetime msec localtime show-timezone year\n', 'service password-encryption\n', 'service sequence-numbers\n', '!\n', 'no ip domain lookup\n', '!\n', 'ip ssh version 2\n', ``` If the final list is written anew to the file, then it will already contain newlines: ``` In [18]: f = open('r2.txt', 'w') In [19]: f.writelines(cfg_lines2) In [20]: f.close() Note In real life, the most common way to close files is use of `with` statement. It’s much more convenient way than to close file explicitly. But since you can also find `close` method in life, this section discusses how to use it. After you finish working with file you have to close it. In some cases Python can close file itself. But it’s best not to count on it and close file explicitly. `close` # Method close() met in File writing section. It was there to make sure that the content of file was written on disk. For this, Python has a separate `flush` method. But since in example with file writing there was no need to perform any more operations, file could be closed. Open the r1.txt file: ``` In [1]: f = open('r1.txt', 'r') ``` You can now read the content: The file object has a special `closed` attribute that lets you check whether a file is closed or not. If file is open, it returns `False` : ``` In [3]: f.closed Out[3]: False ``` Now close file and check `closed` again: ``` In [4]: f.close() In [5]: f.closed Out[5]: True ``` If you try to read file an exception will be raised: ``` In [6]: print(f.read()) ------------------------------------------------------------------ ValueError Traceback (most recent call last) <ipython-input-53-2c962247edc5> in <module>() ----> 1 print(f.read()) ValueError: I/O operation on closed file ``` The `with` statement is called the context manager. Python has a more convenient way of working with files than the ones used so far - statement `with` : ``` In [1]: with open('r1.txt', 'r') as f: ....: for line in f: ....: print(line) ....: ! In addition, statement `with` guarantees file closure automatically. Pay attention to how lines of the file are read: ``` for line in f: print(line) ``` When file needs to be run line by line, it is best to use this option. In previous output there were extra empty lines between lines of the file because To get rid of this you can use `rstrip` method: And of course, `with` statement can be used not only as a line-by-line reader, all methods that have been covered before also work: ## Open two files# Sometimes you have to work with two files simultaneously. For example, write some lines from one file to another. In this case you can open two files in `with` block as follows: In [6]: cat result.txt service timestamps debug datetime msec localtime show-timezone year service timestamps log datetime msec localtime show-timezone year service password-encryption service sequence-numbers ``` This is equivalent to: This subsection covers working with files and brings together topics: files, loops, and conditions. When processing output of commands or configuration, often it will be necessary to write summary data to the dictionary. It is not always obvious how to handle the output of commands and how to deal with the output in general. This subsection discusses several examples with increasing complexity. ## Parsing column output# This example will deal with the output of `sh ip int br` command. From the output of command we need to get interface name and IP address. Interface name is dictionary key and IP address is value. At the same time, match must be made only for those interfaces with IP address assigned. An example of `sh ip int br` output (sh_ip_int_br.txt file): Working_with_dict_example_1.py file: with open('sh_ip_int_br.txt') as f: for line in f: line = line.split() if line and line[1][0].isdigit(): interface, address, *other = line result[interface] = address Command `sh ip int br` displays the output with columns. So desired fields are in the same line. Script processes the output line by line and divides each line using split() method. The resulting list contains output columns. Because we need only interfaces on which IP address is configured, first character of second column is checked: if first character is a number the address is assigned to interface and string has to be processed. In ``` interface, address, *other = line ``` - variables are unpacked. Variable interface will have interface name, address will have IP address and other - all other fields. Since each line has a key-value pair, they are assigned to dictionary: ``` result[interface] = address ``` ``` {'FastEthernet0/0': '15.0.15.1', 'FastEthernet0/1': '10.0.12.1', 'FastEthernet0/2': '10.0.13.1', 'Loopback0': '10.1.1.1', 'Loopback100': '100.0.0.1'} ``` ## Getting key and value from different output lines# Very often the output of commands looks like that key and value are in different lines. And you have to figure out how to process the output to get right match. For example, from the output of sh ip int br command you need to get match interface name – MTU (sh_ip_interface.txt file): Interface name is in ``` Ethernet0/0 is up, line protocol is up ``` line and MTU in `MTU is 1500 bytes` line. For example, try to remember interface each time and print its value when MTU parameter is detected, together with MTU value: ``` In [2]: with open('sh_ip_interface.txt') as f: ...: for line in f: ...: if 'line protocol' in line: ...: interface = line.split()[0] ...: elif 'MTU is' in line: ...: mtu = line.split()[-2] ...: print('{:15}{}'.format(interface, mtu)) ...: Ethernet0/0 1500 Ethernet0/1 1500 Ethernet0/2 1500 Ethernet0/3 1500 Loopback0 1514 ``` Command output is organized in such a way that there is always a line with interface first and then a line with MTU after several lines. If you remember the name of interface every time it appears and at the time when line matches MTU, the last memorized interface is the one which matches this MTU. Now, if you want to create a dictionary that matches interface – MTU, it’s enough to write values when MTU was found. Working_with_dict_example_2.py file: with open('sh_ip_interface.txt') as f: for line in f: if 'line protocol' in line: interface = line.split()[0] elif 'MTU is' in line: mtu = line.split()[-2] result[interface] = mtu ``` {'Ethernet0/0': '1500', 'Ethernet0/1': '1500', 'Ethernet0/2': '1500', 'Ethernet0/3': '1500', 'Loopback0': '1514'} ``` This technique will be quite often useful because command output is generally organized in a very similar way. ## Nested dictionary# If you want to get several parameters from the output, it is very convenient to use a dictionary with a nested dictionary. For example, from output `sh ip interface` you need to get two parameters: IP address and MTU. First, output of information: In the first step, each value is stored in a variable and then all three values are displayed. Values are displayed when a string has MTU because it is the last string: ``` In [2]: with open('sh_ip_interface.txt') as f: ...: for line in f: ...: if 'line protocol' in line: ...: interface = line.split()[0] ...: elif 'Internet address' in line: ...: ip_address = line.split()[-1] ...: elif 'MTU' in line: ...: mtu = line.split()[-2] ...: print('{:15}{:17}{}'.format(interface, ip_address, mtu)) ...: Ethernet0/0 192.168.100.1/24 1500 Ethernet0/1 192.168.200.1/24 1500 Ethernet0/2 19.1.1.1/24 1500 Ethernet0/3 192.168.230.1/24 1500 Loopback0 4.4.4.4/32 1514 ``` It uses the same technique as in previous example but adds another nested dictionary: Each time an interface is detected, `result` dictionary creates a key with the name of interface that corresponds to an empty dictionary. This blank is used so that at the time when IP address or MTU is detected, parameter can be written into nested dictionary of the corresponding interface. The result of script execution will be a dictionary (here it is split into key-value pairs for convenience, in real script the dictionary output will be displayed in one line): ``` {'Ethernet0/0': {'ip': '192.168.100.1/24', 'mtu': '1500'}, 'Ethernet0/1': {'ip': '192.168.200.1/24', 'mtu': '1500'}, 'Ethernet0/2': {'ip': '19.1.1.1/24', 'mtu': '1500'}, 'Ethernet0/3': {'ip': '192.168.230.1/24', 'mtu': '1500'}, 'Loopback0': {'ip': '4.4.4.4/32', 'mtu': '1514'}} ``` ## Output with empty values# Sometimes, sections with empty values will be found in the output. For example, in case of output ``sh ip interface`` , interfaces may look like: ``` Ethernet0/1 is up, line protocol is up Internet protocol processing disabled Ethernet0/2 is administratively down, line protocol is down Internet protocol processing disabled Ethernet0/3 is administratively down, line protocol is down Internet protocol processing disabled ``` Consequently, there is no MTU or IP address. And if you execute previous script for a file with such interfaces, the result is this (output for file sh_ip_interface2.txt): ``` {'Ethernet0/0': {'ip': '192.168.100.2/24', 'mtu': '1500'}, 'Ethernet0/1': {}, 'Ethernet0/2': {}, 'Ethernet0/3': {}, 'Loopback0': {'ip': '2.2.2.2/32', 'mtu': '1514'}} ``` If you need to add interfaces to dictionary only when an IP address is assigned to interface, you need to move the creation of key with interface name to a moment when line with IP address is detected (working_with_dict_example_4.py file): In this case, the result will be a dictionary: ``` {'Ethernet0/0': {'ip': '192.168.100.2/24', 'mtu': '1500'}, 'Loopback0': {'ip': '2.2.2.2/32', 'mtu': '1514'}} ``` Date: 2011-09-20 Categories: Tags: Further reading# Documentation: Reading and Writing Files The with statement Articles: The Python “with” Statement by Example Stack Overflow: What is the python “with” statement designed for? ## Task 7.1# Process the lines from the ospf.txt file and print information for each line in this form to the stdout: ## Task 7.2# Create a script that will process the config_sw1.txt configuration file. The filename is passed as an argument to the script. The script should return to the stdout commands from the passed configuration file, excluding lines that start with ‘!’. There should be no blank lines in the output. ``` $ python task_7_2.py config_sw1.txt Current configuration : 2033 bytes version 15.0 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption hostname sw1 interface Ethernet0/0 duplex auto interface Ethernet0/1 switchport trunk encapsulation dot1q switchport trunk allowed vlan 100 switchport mode trunk duplex auto spanning-tree portfast edge trunk interface Ethernet0/2 duplex auto interface Ethernet0/3 switchport trunk encapsulation dot1q switchport trunk allowed vlan 100 duplex auto switchport mode trunk spanning-tree portfast edge trunk ... ``` ## Task 7.2a# Add this functionality: The script should not print to the stdout commands, which contain words from the ignore list. The script should also not print lines that begin with !. Check the script on the config_sw1.txt configuration file. The filename is passed as an argument to the script. ## Task 7.2b# Make a copy of the code from the task 7.2a. Add this functionality: instead of printing to stdout, the script should write the resulting lines to a file. File names must be passed as arguments to the script: name of the source configuration file name of the destination configuration file In this case, the lines that are contained in the ignore list and lines that start with ! must be filtered. ## Task 7.3# The script should process the lines in the CAM_table.txt file. Each line, where there is a MAC address, must be handled in such a way that the following table was printed on the stdout: ``` 100 01bb.c580.7000 Gi0/1 200 0a4b.c380.7000 Gi0/2 300 a2ab.c5a0.7000 Gi0/3 100 0a1b.1c80.7000 Gi0/4 500 02b1.3c80.7000 Gi0/5 200 1a4b.c580.7000 Gi0/6 300 0a1b.5c80.7000 Gi0/7 ``` ## Task 7.3a# Add this functionality: Sort output by VLAN number As a result, you should get the following output: ``` 10 01ab.c5d0.70d0 Gi0/8 10 0a1b.1c80.7000 Gi0/4 100 01bb.c580.7000 Gi0/1 200 0a4b.c380.7c00 Gi0/2 200 1a4b.c580.7000 Gi0/6 300 0a1b.5c80.70f0 Gi0/7 300 a2ab.c5a0.700e Gi0/3 500 02b1.3c80.7b00 Gi0/5 1000 0a4b.c380.7d00 Gi0/9 ``` Pay attention to vlan 1000 - it should be displayed last. Correct sorting can be achieved if vlan is a number, not a string. ## Task 7.3b# Add this functionality: Ask the user to enter the VLAN number. * Print information only for the specified VLAN. ``` Enter VLAN number: 10 10 0a1b.1c80.7000 Gi0/4 10 01ab.c5d0.70d0 Gi0/8 ``` This section covers topics that were not included in the previous sections and also provides examples of using Python to solve problems. While most examples will be file-oriented the same data-processing principles can be applied to network equipment. Only part with reading from file will be replaced to get output from hardware. Python 3.6 added a new version of string formatting - f-strings or interpolation of strings. The f-strings allow not only to set values to template but also to perform calls to functions, methods, etc. In many situations f-strings are easier to use than `format` and f-strings work faster than `format` and other methods of string formatting. ## Syntax# The same result with ``format`` method you can achieve by: ``"IP: {ip}, mask: {mask}".format(ip=ip, mask=mask)``. ``` ``` In [1]: octets = ['10', '1', '1', '1'] ## Special aspects of f-strings# When using f-strings you cannot first create a template and then use it as in `format` method. F-string is immediately executed and contains the values of variables that were defined earlier: In [8]: mask = 24 In [9]: print(f"IP: {ip}, mask: {mask}") IP: 10.1.1.1, mask: 24 ``` If you want to set other values you must create new variables (with the same names) and write f-string again: ``` In [11]: ip = '10.2.2.2' In [12]: mask = 24 In [13]: print(f"IP: {ip}, mask: {mask}") IP: 10.2.2.2, mask: 24 ``` When using f-strings in loops an f-string must be written in body of the loop to «catch» new variable values within each iteration: ``` In [1]: ip_list = ['10.1.1.1/24', '10.2.2.2/24', '10.3.3.3/24'] In [2]: for ip_address in ip_list: ...: ip, mask = ip_address.split('/') ...: print(f"IP: {ip}, mask: {mask}") ...: IP: 10.1.1.1, mask: 24 IP: 10.2.2.2, mask: 24 IP: 10.3.3.3, mask: 24 ``` ## Examples of f-string usage# Basic variable substitution: ``` In [1]: intf_type = 'Gi' In [2]: intf_name = '0/3' In [3]: f'interface {intf_type}/{intf_name}' Out[3]: 'interface Gi/0/3' ``` Column alignment: In [7]: for connection in topology: ...: l_device, l_port, r_device, r_port = connection ...: print(f'{l_device:10} {l_port:7} {r_device:10} {r_port:7}') ...: sw1 Gi0/1 r1 Gi0/2 sw1 Gi0/2 r2 Gi0/1 sw1 Gi0/3 r3 Gi0/0 sw1 Gi0/5 sw4 Gi0/2 ``` Column width can be specified by variable: In [7]: width = 10 In [8]: for connection in topology: ...: l_device, l_port, r_device, r_port = connection ...: print(f'{l_device:{width}} {l_port:{width}} {r_device:{width}} {r_port:{width}}') ...: sw1 Gi0/1 r1 Gi0/2 sw1 Gi0/2 r2 Gi0/1 sw1 Gi0/3 r3 Gi0/0 sw1 Gi0/5 sw4 Gi0/2 ``` Accessing a dictionary key: ``` In [1]: session_stats = {'done': 10, 'todo': 5} In [2]: if session_stats['todo']: ...: print(f"Pomodoros done: {session_stats['done']}, TODO: {session_stats['todo']}") ...: else: ...: print(f"Good job! All {session_stats['done']} pomodoros done!") ...: Pomodoros done: 10, TODO: 5 ``` Call len() function inside f-string: ``` In [2]: topology = [['sw1', 'Gi0/1', 'r1', 'Gi0/2'], ...: ['sw1', 'Gi0/2', 'r2', 'Gi0/1'], ...: ['sw1', 'Gi0/3', 'r3', 'Gi0/0'], ...: ['sw1', 'Gi0/5', 'sw4', 'Gi0/2']] ...: In [3]: print(f'Number of connections in topology: {len(topology)}') Number of connections in topology: 4 ``` Call upper() method inside f-string: ``` In [1]: name = 'python' In [2]: print(f'Zen of {name.upper()}') Zen of PYTHON ``` Converting numbers to binary format: In [8]: oct1, oct2, oct3, oct4 = ip.split('.') In [9]: print(f'{int(oct1):08b} {int(oct2):08b} {int(oct3):08b} {int(oct4):08b}') 00001010 00000001 00000001 00000001 ``` ## What to use format or f-strings# In many cases f-strings are more convenient to use as template looks more understandable and compact. However, there are cases when `format` method is more convenient. For example: ``` In [6]: ip = [10, 1, 1, 1] In [7]: oct1, oct2, oct3, oct4 = ip ...: print(f'{oct1:08b} {oct2:08b} {oct3:08b} {oct4:08b}') ...: 00001010 00000001 00000001 00000001 In [8]: template = "{:08b} "*4 In [9]: template.format(*ip) Out[9]: '00001010 00000001 00000001 00000001 ' ``` Another situation where `format` is usually more convenient to use: the need to use the same template many times in script. F-string will execute the first time and will set current values of variables and to use template again it has to be rewritten. This means that script will contain copies of the same line. At the same time `format` allows to create a template in one place and then use it again substituting variables as needed. This can be avoided by creating a function but creating a function to print a string based on template is not always justified. Example of creating a function: ``` In [1]: def show_me_ip(ip, mask): ...: return f"IP: {ip}, mask: {mask}" ...: In [2]: show_me_ip('10.1.1.1', 24) Out[2]: 'IP: 10.1.1.1, mask: 24' In [3]: show_me_ip('192.16.10.192', 28) Out[3]: 'IP: 192.16.10.192, mask: 28' ``` Variable unpacking is a special syntax that allows to assign elements of an iterable to variables. This functionality is often referred to as tuple unpacking but unpacking works on any iterable object, not only with tuples Example of variable unpacking: ``` In [1]: interface = ['FastEthernet0/1', '10.1.1.1', 'up', 'up'] In [2]: intf, ip, status, protocol = interface In [3]: intf Out[3]: 'FastEthernet0/1' In [4]: ip Out[4]: '10.1.1.1' ``` This option is much more convenient than the use of indexes: ``` In [5]: intf, ip, status, protocol = interface[0], interface[1], interface[2], interface[3] ``` When you unpack variables, each item in list falls into the corresponding variable. It is important to take into account that there should be exactly as many variables on the left as there are elements in the list. If amount of variables are less or more, there will be an exception: ``` In [6]: intf, ip, status = interface ------------------------------------------------------------ ValueError Traceback (most recent call last) <ipython-input-11-a304c4372b1a> in <module>() ----> 1 intf, ip, status = interface ValueError: too many values to unpack (expected 3) In [7]: intf, ip, status, protocol, other = interface ------------------------------------------------------------ ValueError Traceback (most recent call last) <ipython-input-12-ac93e78b978c> in <module>() ----> 1 intf, ip, status, protocol, other = interface ValueError: not enough values to unpack (expected 5, got 4) ``` ## Replacement of unnecessary elements `_` # Often only some of elements of an iterable are needed. Unpacking syntax requires that exactly as many variables as elements in the object being iterated be specified. If, for example, only VLAN, MAC and interface should be obtained from line, you still need to specify a variable for “DYNAMIC”: ``` In [8]: line = '100 01bb.c580.7000 DYNAMIC Gi0/1' In [9]: vlan, mac, item_type, intf = line.split() In [10]: vlan Out[10]: '100' In [11]: intf Out[11]: 'Gi0/1' ``` If record type is no longer needed, you can replace item_type variable with underline character: ``` In [12]: vlan, mac, _, intf = line.split() ``` This clearly indicates that this element is not needed. Underline character can be used more than once: ``` In [13]: dhcp = '00:09:BB:3D:D6:58 10.1.10.2 86250 dhcp-snooping 10 FastEthernet0/1' In [14]: mac, ip, _, _, vlan, intf = dhcp.split() In [15]: mac Out[15]: '00:09:BB:3D:D6:58' In [16]: vlan Out[16]: '10' ``` ## Use `*` # Variable unpacking supports a special syntax that allows unpacking of several elements into one. If you put `*` in front of variable name, all elements except those that are explicitly assigned will be written into it. For example, you can get the first element in first variable and the rest in rest: ``` In [18]: vlans = [10, 11, 13, 30] In [19]: first, *rest = vlans In [20]: first Out[20]: 10 In [21]: rest Out[21]: [11, 13, 30] ``` Variable with an asterisk will always contain a list: ``` In [22]: vlans = (10, 11, 13, 30) In [22]: first, *rest = vlans In [23]: first Out[23]: 10 In [24]: rest Out[24]: [11, 13, 30] ``` If there is only one item, unpacking will still work: ``` In [25]: first, *rest = vlans In [26]: first Out[26]: 55 In [27]: rest Out[27]: [] ``` There can be only one variable with an asterisk in the unpacking expression. ``` In [28]: vlans = (10, 11, 13, 30) In [29]: first, *rest, *others = vlans File "<ipython-input-37-dedf7a08933a>", line 1 first, *rest, *others = vlans ^ SyntaxError: two starred expressions in assignment ``` This variable may not only be at the end of expression: ``` In [30]: vlans = (10, 11, 13, 30) In [31]: *rest, last = vlans In [32]: rest Out[32]: [10, 11, 13] In [33]: last Out[33]: 30 ``` Thus, the first, second and last element can be specified: ``` In [34]: cdp = 'SW1 Eth 0/0 140 S I WS-C3750- Eth 0/1' In [35]: name, l_intf, *other, r_intf = cdp.split() In [36]: name Out[36]: 'SW1' In [37]: l_intf Out[37]: 'Eth' In [38]: r_intf Out[38]: '0/1' ``` ## Unpacking examples# ### Unpacking of iterable objects# These examples show that you can unpack not only lists, tuples and strings but also any other iterable objects. Unpacking the range: ``` In [39]: first, *rest = range(1, 6) In [40]: first Out[40]: 1 In [41]: rest Out[41]: [2, 3, 4, 5] ``` Unpacking zip: In [43]: b = [100, 200, 300, 400, 500] In [44]: zip(a, b) Out[44]: <zip at 0xb4df4facIn [45]: list(zip(a, b)) Out[45]: [(1, 100), (2, 200), (3, 300), (4, 400), (5, 500)] In [46]: first, *rest, last = zip(a, b) In [47]: first Out[47]: (1, 100) In [48]: rest Out[48]: [(2, 200), (3, 300), (4, 400)] In [49]: last Out[49]: (5, 500) ``` ### Example of unpacking in for loop# Example of a loop that runs through the keys: ``` In [50]: access_template = ['switchport mode access', ...: 'switchport access vlan', ...: 'spanning-tree portfast', ...: 'spanning-tree bpduguard enable'] ...: In [51]: access = {'0/12':10, ...: '0/14':11, ...: '0/16':17} ...: In [52]: for intf in access: ...: print('interface FastEthernet' + intf) ...: for command in access_template: ...: if command.endswith('access vlan'): ...: print(' {} {}'.format(command, access[intf])) ...: else: ...: print(' {}'.format(command)) ...: interface FastEthernet0/12 switchport mode access switchport access vlan 10 spanning-tree portfast spanning-tree bpduguard enable interface FastEthernet0/14 switchport mode access switchport access vlan 11 spanning-tree portfast spanning-tree bpduguard enable interface FastEthernet0/16 switchport mode access switchport access vlan 17 spanning-tree portfast spanning-tree bpduguard enable ``` Instead, you can run through key-value pairs and immediately unpack them into different variables: ``` In [53]: for intf, vlan in access.items(): ...: print('interface FastEthernet' + intf) ...: for command in access_template: ...: if command.endswith('access vlan'): ...: print(' {} {}'.format(command, vlan)) ...: else: ...: print(' {}'.format(command)) ...: ``` Example of unpacking list items in the loop: ``` In [54]: table Out[54]: [['100', 'a1b2.ac10.7000', 'DYNAMIC', 'Gi0/1'], ['200', 'a0d4.cb20.7000', 'DYNAMIC', 'Gi0/2'], ['300', 'acb4.cd30.7000', 'DYNAMIC', 'Gi0/3'], ['100', 'a2bb.ec40.7000', 'DYNAMIC', 'Gi0/4'], ['500', 'aa4b.c550.7000', 'DYNAMIC', 'Gi0/5'], ['200', 'a1bb.1c60.7000', 'DYNAMIC', 'Gi0/6'], ['300', 'aa0b.cc70.7000', 'DYNAMIC', 'Gi0/7']] In [55]: for line in table: ...: vlan, mac, _, intf = line ...: print(vlan, mac, intf) ...: 100 a1b2.ac10.7000 Gi0/1 200 a0d4.cb20.7000 Gi0/2 300 acb4.cd30.7000 Gi0/3 100 a2bb.ec40.7000 Gi0/4 500 aa4b.c550.7000 Gi0/5 200 a1bb.1c60.7000 Gi0/6 300 aa0b.cc70.7000 Gi0/7 ``` But it’s better to do this: ``` In [56]: for vlan, mac, _, intf in table: ...: print(vlan, mac, intf) ...: 100 a1b2.ac10.7000 Gi0/1 200 a0d4.cb20.7000 Gi0/2 300 acb4.cd30.7000 Gi0/3 100 a2bb.ec40.7000 Gi0/4 500 aa4b.c550.7000 Gi0/5 200 a1bb.1c60.7000 Gi0/6 300 aa0b.cc70.7000 Gi0/7 ``` Python supports special expressions that allow for compact creation of lists, dictionaries, and sets: list comprehensions * dict comprehensions * set comprehensions These expressions not only enable more compact objects to be created but also create them faster. Although they require a certain habit of use and understanding at first, they are very often used. ## List comprehensions# List comprehension is an expression like: ``` In [1]: vlans = [f'vlan {num}' for num in range(10, 16)] In general, it is an expression that converts an iterable object into a list. That is, a sequence of elements is converted and added to a new list. Expression above is similar to this loop: ``` In [3]: vlans = [] In [4]: for num in range(10, 16): ...: vlans.append(f'vlan {num}') ...: In list comprehensions you can use if. Thus, you can only add some objects to the list. For example, a loop selects only those elements that are digits, converts them and adds them to the resulting list only_digits: ``` In [6]: items = ['10', '20', 'a', '30', 'b', '40'] In [7]: only_digits = [] In [8]: for item in items: ...: if item.isdigit(): ...: only_digits.append(int(item)) ...: In [9]: print(only_digits) [10, 20, 30, 40] ``` A similar version with list comprehensions: ``` In [10]: items = ['10', '20', 'a', '30', 'b', '40'] In [11]: only_digits = [int(item) for item in items if item.isdigit()] In [12]: print(only_digits) [10, 20, 30, 40] ``` Of course, not all loops can be rewritten as a list comprehension but when it is possible to do so without making the expression more complex, it is better to use list comprehension. In Python, list comprehensions can also replace filter and map functions and are considered a clearer option. With list comprehension it is also convenient to get elements from nested dictionaries: In [14]: [london_co[device]['IOS'] for device in london_co] Out[14]: ['15.4', '15.4', '3.6.XE'] In [15]: [london_co[device]['IP'] for device in london_co] Out[15]: ['10.255.0.1', '10.255.0.2', '10.255.0.101'] ``` In fact, syntax of list comprehension looks like: ``` [expression for item1 in iterable1 if condition1 for item2 in iterable2 if condition2 ... for itemN in iterableN if conditionN ] ``` This means you can use several for in expression. For example, vlans list contains several nested lists with VLANs: It’s necessary to form only one list with VLAN numbers. The first option is to use for loop: ``` In [17]: result = [] In [18]: for vlan_list in vlans: ...: for vlan in vlan_list: ...: result.append(vlan) ...: List comprehension: In [21]: result = [vlan for vlan_list in vlans for vlan in vlan_list] Two sequences can be processed simultaneously using zip(): ``` In [23]: vlans = [100, 110, 150, 200] In [24]: names = ['mngmt', 'voice', 'video', 'dmz'] In [25]: result = [f'vlan {vl}\n name {name}' for vl, name in zip(vlans, names)] In [26]: print('\n'.join(result)) vlan 100 name mngmt vlan 110 name voice vlan 150 name video vlan 200 name dmz ``` ## Dict comprehensions# Dict comprehensions are similar to list comprehensions but they are used to create dictionaries. For example, the expression: ``` In [27]: d = {} In [28]: for num in range(1, 11): ...: d[num] = num**2 ...: Can be replaced with a dict comprehension: ``` In [30]: d = {num: num**2 for num in range(1, 11)} Another example in which you need to change an existing dictionary and convert all keys to lowercase. First, a solution without a dict comprehension: In [33]: lower_r1 = {} In [34]: for key, value in r1.items(): ...: lower_r1[key.lower()] = value ...: In [35]: lower_r1 Out[35]: {'hostname': 'london_r1', 'ios': '15.4', 'ip': '10.255.0.1', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'} ``` Dict comprehension version: In [37]: lower_r1 = {key.lower(): value for key, value in r1.items()} In [38]: lower_r1 Out[38]: {'hostname': 'london_r1', 'ios': '15.4', 'ip': '10.255.0.1', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'} ``` Like list comprehensions, dict comprehensions can be nested. Try to convert keys in nested dictionaries in the same way: In [40]: lower_london_co = {} In [41]: for device, params in london_co.items(): ...: lower_london_co[device] = {} ...: for key, value in params.items(): ...: lower_london_co[device][key.lower()] = value ...: In [42]: lower_london_co Out[42]: {'r1': {'hostname': 'london_r1', 'ios': '15.4', 'ip': '10.255.0.1', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'}, 'r2': {'hostname': 'london_r2', 'ios': '15.4', 'ip': '10.255.0.2', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'}, 'sw1': {'hostname': 'london_sw1', 'ios': '3.6.XE', 'ip': '10.255.0.101', 'location': '21 New Globe Walk', 'model': '3850', 'vendor': 'Cisco'}} ``` Similar conversion with dict comprehensions: ``` In [43]: result = {device: {key.lower(): value for key, value in params.items()} for device, params in london_co.items()} In [44]: result Out[44]: {'r1': {'hostname': 'london_r1', 'ios': '15.4', 'ip': '10.255.0.1', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'}, 'r2': {'hostname': 'london_r2', 'ios': '15.4', 'ip': '10.255.0.2', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'}, 'sw1': {'hostname': 'london_sw1', 'ios': '3.6.XE', 'ip': '10.255.0.101', 'location': '21 New Globe Walk', 'model': '3850', 'vendor': 'Cisco'}} ``` ## Set comprehensions# Set comprehensions are generally similar to list comprehensions. For example, get a set with unique VLAN numbers: ``` In [45]: vlans = [10, '30', 30, 10, '56'] In [46]: unique_vlans = {int(vlan) for vlan in vlans} In [47]: unique_vlans Out[47]: {10, 30, 56} ``` Similar solution without using of set comprehensions: ``` In [48]: vlans = [10, '30', 30, 10, '56'] In [49]: unique_vlans = set() In [50]: for vlan in vlans: ...: unique_vlans.add(int(vlan)) ...: In [51]: unique_vlans Out[51]: {10, 30, 56} ``` Date: 2015-12-01 Categories: Tags: Further reading# Documentation: PEP 3132 – Extended Iterable Unpacking Articles: List, Dict And Set Comprehensions By Example Python List Comprehensions: Explained Visually Stack Overflow: Answer with many unpacking examples When writing code, some of the steps are often repeated. It can be a small block of 3-5 lines, or it can be a fairly large sequence of steps. Copying code is a bad idea. Because if you have to update one of copies later, you have to update others. Instead, you create a special code block with name - function. And every time code has to be repeated, you just call a function. Function allows not only to name a block of code but also to make it more abstract through parameters. Parameters make it possible to pass different data for function. And get different results depending on input parameters. Section 9. Functions covers with creation of functions, section 10. Useful functions discusses useful built-in functions. Once code is divided into functions, there comes a time when you need to use function in another script. Of course, copying a function is as inconvenient as copying a normal code. Modules are used to reuse code from another Python script. Section 11. Modules is dedicated to creating your own modules and section 12. Useful modules covers useful modules from Python standard library. The last section 13. Iterators, iterable and generators is dedicated to iterable objects, iterators and generators. Function: has a name to run this code block as many times as you want launch of function code is called a function call * function parameters are usually defined when creating a function. function parameters determine which arguments a function can accept * arguments can be passed to functions * function code will be executed taking into account the specified arguments What are functions for? Typically, problems that code solves are very similar and often have something in common. For example, when working with configuration files each time it is necessary to perform such actions: file opening * deletion (or skipping) of lines starting with exclamation mark (for Cisco) * deleting (or skipping) empty lines * deleting new line characters at the end of lines * converting the result to a list Beyond that, actions can vary depending on what needs to be done. Often there’s a piece of code that repeats itself. Of course, you can copy it from one script to another. But this is very inconvenient because when you change code you have to update it in all files in which it is copied. It is much easier and more accurate to put this code into a function (it can also be several functions). And then you will call this function - in this file or another one. This section discusses when a function is in the same file. And in 11. Modules we will see how to reuse objects that are in other scripts. Creation of function: functions are created with a reserved word `def` * `def` followed by function name and parentheses * parameters that function accepts inside parentheses * after parentheses goes colon and from a new line with indent there is a block of code that function executes * optionally, the first line can be `docstring` * function can use `return` operator it is used to terminate and exit a function * most often `return` operator returns some value Note Function code used in this subsection can be copied from create_func file. Example of function: ``` In [1]: def configure_intf(intf_name, ip, mask): ...: print('interface', intf_name) ...: print('ip address', ip, mask) ...: ``` Function `configure_intf` creates an interface configuration with specified name and IP address. Function has three parameters: intf_name, ip, mask. When function is called the real data will replace these parameters. Note When function is created, it does nothing yet. Actions listed in it will be executed only when you call function. This is something like ACL in network equipment: when creating ACL in configuration, it does nothing until it is applied. ## Function call# When calling a function you must specify its name and pass arguments if necessary. Parameters are variables that are used to create a function. Arguments are the actual values (data) that are passed to functions when called. Function `configure_intf` expects three values when called because it was created with three parameters: ``` In [2]: configure_intf('F0/0', '10.1.1.1', '255.255.255.0') interface F0/0 ip address 10.1.1.1 255.255.255.0 In [3]: configure_intf('Fa0/1', '94.150.197.1', '255.255.255.248') interface Fa0/1 ip address 94.150.197.1 255.255.255.248 ``` The current version of the `configure_intf` function prints commands to a standard output, commands can be seen but the result of function cannot be saved to a variable. For example, `sorted` function does not simply print the sorting result to standard output stream but returns it, so it can be saved to variable in this way: ``` In [4]: items = [40, 2, 0, 22] In [5]: sorted(items) Out[5]: [0, 2, 22, 40] In [6]: sorted_items = sorted(items) In [7]: sorted_items Out[7]: [0, 2, 22, 40] ``` Note Note string `Out[5]` in ipython: this is how ipython shows that the function/method is returning something and shows what it returns. If you try to write the result of the `configure_intf` function to a variable, the value of the variable will be None: `.. code:: python` In [8]: result = configure_intf(‘Fa0/0’, ‘10.1.1.1’, ‘255.255.255.0’) interface Fa0/0 ip address 10.1.1.1 255.255.255.0 In [9]: print(result) None For a function to return a value, use `return` operator. ## Operator return# Operator `return` is used to return a value, and at the same time it exits the function. Function can return any Python object. By default, function always returns `None` . In order for `configure_intf` function to return a value that can then be assigned to a variable, you must use `return` operator: In [11]: result = configure_intf('Fa0/0', '10.1.1.1', '255.255.255.0') In [12]: print(result) interface Fa0/0 ip address 10.1.1.1 255.255.255.0 In [13]: result Out[13]: 'interface Fa0/0\nip address 10.1.1.1 255.255.255.0' ``` Now the result variable contains a line with commands to configure interface. In real life, function will almost always return some value. Another important aspect of `return` operator is that after `return` the function closes, meaning that the expressions that follow `return` are not executed. For example, in function below the line «Configuration is ready» will not be displayed because it stands after `return` : ``` In [14]: def configure_intf(intf_name, ip, mask): ...: config = f'interface {intf_name}\nip address {ip} {mask}' ...: return config ...: print('Configuration is ready') ...: In [15]: configure_intf('Fa0/0', '10.1.1.1', '255.255.255.0') Out[15]: 'interface Fa0/0\nip address 10.1.1.1 255.255.255.0' ``` Function can return multiple values. In this case, they are separated by a comma after `return` operator. In fact, function returns tuple: ``` In [16]: def configure_intf(intf_name, ip, mask): ...: config_intf = f'interface {intf_name}\n' ...: config_ip = f'ip address {ip} {mask}' ...: return config_intf, config_ip ...: In [17]: result = configure_intf('Fa0/0', '10.1.1.1', '255.255.255.0') In [18]: result Out[18]: ('interface Fa0/0\n', 'ip address 10.1.1.1 255.255.255.0') In [19]: type(result) Out[19]: tuple In [20]: intf, ip_addr = configure_intf('Fa0/0', '10.1.1.1', '255.255.255.0') In [21]: intf Out[21]: 'interface Fa0/0\n' In [22]: ip_addr Out[22]: 'ip address 10.1.1.1 255.255.255.0' ``` ## Documentation (docstring)# The first line in function definition is docstring, documentation string. This is a comment that is used to describe a function: ``` In [23]: def configure_intf(intf_name, ip, mask): ...: ''' ...: Fucntion generates interface configuration ...: ''' ...: config_intf = f'interface {intf_name}\n' ...: config_ip = f'ip address {ip} {mask}' ...: return config_intf, config_ip ...: In [24]: configure_intf? Signature: configure_intf(intf_name, ip, mask) Docstring: Fucntion generates interface configuration File: ~/repos/pyneng-examples-exercises/examples/06_control_structures/<ipython-input-23-2b2bd970db8f> Type: function ``` It is best to write short comments that describe function. For example, describe what function expects to input, what type of arguments should be and what will be the output. Besides, it is better to write a couple of sentences about what function does. This will help when in a month or two you will be trying to understand what function you wrote is doing. Variables in Python have a scope. Depending on location in code where variable has been defined, scope is also defined, it determines where variable will be available. When using variable names in a program, Python searches, creates or changes these names in the corresponding namespace each time. Namespace that is available at each moment depends on area in which code is located. Python has a LEGB rule that it uses for variables search. For example, when accessing a variable within a function, Python searches for a variable in this order in scopes (before the first match): L (local) - in local (within function) * E (enclosing) - in local area of outer functions (these are functions within which our function is located) * G (global) - in global (in script) * B (built-in) - in built-in (reserved Python values) Accordingly, there are local and global variables: local variables: variables that are defined within function * these variables become unavailable after exit from function * global variables: variables that are defined outside the function * these variables are ‘global’ only within a module * for example, to be available in another module they must be imported Example of local intf_config: In [2]: intf_config --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-2-5983e972fb1c> in <module> ----> 1 intf_config Note that intf_config variable is not available outside of function. To get the result of a function you must call a function and assign result to a variable: ``` In [3]: result = configure_intf('F0/0', '10.1.1.1', '255.255.255.0') In [4]: result Out[4]: 'interface F0/0\nip address 10.1.1.1 255.255.255.0' ``` The purpose of creating a function is typically to take a piece of code that performs a particular task to a separate object. This allows you to use this piece of code multiple times without having to re-create it in program. Typically, a function must perform some actions with input values and produce an output. When working with functions it is important to distinguish: parameters - variables that are used when creating a function. * arguments - actual values (data) that are passed to function when called. For a function to receive incoming values, it must be created with parameters (func_check_passwd.py file): In this case, function has two parameters: username and password. When defining a function in this way it is necessary to pass both arguments. If only one argument is passed, there is an error: Similarly, an error will occur if three or more arguments are passed. When creating a function you can specify which arguments must be passed and which must not. Accordingly, a function can be created with: required parameters * optional parameters (with default values) ## Required parameters# Required parameters - determine which arguments must be passed to functions. At the same time, they need to be passed exactly as many as parameters of function are specified (you cannot specify more or less) Function with mandatory parameters (func_params_types.py file): Function check_passwd() expects two arguments: username and password. ## Optional parameters (default parameters)# When creating a function you can specify default value for parameter in this way: ``` def check_passwd(username, password, min_length=8) ``` . In this case, min_length option is specified with default value and may not be passed when a function is called. Example of a `check_passwd` function with default parameter (func_check_passwd_optional_param.py file): ``` In [6]: def check_passwd(username, password, min_length=8): ...: if len(password) < min_length: ...: print('Password is too short') ...: return False ...: elif username in password: ...: print('Password contains username') ...: return False ...: else: ...: print(f'Password for user {username} has passed all checks') ...: return True ...: ``` Since min_length parameter has a default value the corresponding argument can be omitted when a function is called if default value fits you: ``` In [7]: check_passwd('nata', '12345') Password is too short Out[7]: False ``` If you want to change default value: ``` In [8]: check_passwd('nata', '12345', 3) Password for user nata has passed all checks Out[8]: True ``` When a function is called the arguments can be passed in two ways: as positional - passed in the same order in which they are defined at creation of function. That is, the order in which arguments are passed determines what value each argument will receive. * as keyword - passed with argument name and its value. In such a case, arguments can be stated in any order as their name is clearly indicated. Positional and keyword arguments can be mixed when calling a function. That is, it is possible to use both methods when passing arguments of the same function. In this process, Positional arguments must be indicated before keyword arguments. Look at different ways to pass arguments using check_passwd (func_check_check_passwd_optional_param.py file): ## Positional argument# Positional arguments when calling a function must be passed in the correct order (therefore they are called positional arguments). If you swap arguments when calling a function the error will likely occur depending on function. ## Keyword arguments# Keyword arguments: are passed with name of argument * thus they can be passed in any order If both arguments are keyword, they can be passed in any order: ``` In [9]: check_passwd(password='12345', username='nata', min_length=4) Password for user nata has passed all checks Out[9]: True ``` Please note that first there should always be positional arguments and then keyword arguments. If you do the opposite, there’s an error: ``` In [10]: check_passwd(password='12345', username='nata', 4) File "<ipython-input-10-7e8246b6b402>", line 1 check_passwd(password='12345', username='nata', 4) ^ SyntaxError: positional argument follows keyword argument ``` But in that combination it works: ``` In [11]: check_passwd('nata', '12345', min_length=3) Password for user nata has passed all checks Out[11]: True ``` In real life, it is often better to specify flags (parameters with True/False values) or numerical values as a keyword argument. If you set a good name for the parameter you can immediately know by its name what it does. For example, you can add a flag that will control whether or not a username should be checked in password: By default, flag is True which means check should be done: ``` In [14]: check_passwd('nata', '12345nata', min_length=3) Password contains username Out[14]: False In [15]: check_passwd('nata', '12345nata', min_length=3, check_username=True) Password contains username Out[15]: False ``` If you specify a value equal to False the verification will not be performed: ``` In [16]: check_passwd('nata', '12345nata', min_length=3, check_username=False) Password for user nata has passed all checks Out[16]: True ``` Sometimes it is necessary to make function accept not a fixed number of arguments, but any number. For such a case, in Python it is possible to create a function with a special parameter that accepts variable length arguments. This parameter can be both keyword and positional. Even if you don’t use it in your scripts there’s a good chance you’ll find it in someone else’s code. ## Variable length positional arguments# Parameter that takes positional variable length arguments is created by adding an asterisk before parameter name. Parameter can have any name but by agreement `*args` is the most common name. Example of a function: ``` In [1]: def sum_arg(a, *args): ....: print(a, args) ....: return a + sum(args) ....: ``` parameter `*args` - expects variable length arguments all other arguments as a tuple * Call a function with different number of arguments: ``` In [2]: sum_arg(1, 10, 20, 30) 1 (10, 20, 30) Out[2]: 61 In [3]: sum_arg(1, 10) 1 (10,) Out[3]: 11 In [4]: sum_arg(1) 1 () Out[4]: 1 ``` You can also create such a function: ``` In [5]: def sum_arg(*args): ....: print(args) ....: return sum(args) ....: In [6]: sum_arg(1, 10, 20, 30) (1, 10, 20, 30) Out[6]: 61 In [7]: sum_arg() () Out[7]: 0 ``` ## Keyword variable length arguments# Parameter that accepts keyword variable length arguments is created by adding two asterisk in front of parameter name. Name of parameter can be any but by agreement most commonly use name `**kwargs` (from keyword arguments). Example of a function: ``` In [8]: def sum_arg(a, **kwargs): ....: print(a, kwargs) ....: return a + sum(kwargs.values()) ....: ``` parameter `**kwargs` - expects keyword variable length arguments all other keyword arguments as a dictionary * Calling a function with different number of keyword arguments: ``` In [9]: sum_arg(a=10, b=10, c=20, d=30) 10 {'c': 20, 'b': 10, 'd': 30} Out[9]: 70 In [10]: sum_arg(b=10, c=20, d=30, a=10) 10 {'c': 20, 'b': 10, 'd': 30} Out[10]: 70 ``` In Python the expressions `*args` and `**kwargs` allow for another task - unpacking arguments. So far we’ve called all functions manually. Hence, we passed on all relevant arguments. In reality, it is usually necessary to pass data to function programmatically. And often data comes in the form of a Python object. ## Unpacking positional arguments# For example, when formatting strings you often need to pass multiple arguments to `format` method. And often these arguments are already in list or tuple. To pass them to `format` method you have to use indexes: In [2]: print('One: {}, Two: {}, Three: {}'.format(items[0], items[1], items[2])) One: 1, Two: 2, Three: 3 ``` Instead, you can take advantage of unpacking argument and do this: ``` In [4]: items = [1, 2, 3] In [5]: print('One: {}, Two: {}, Three: {}'.format(*items)) One: 1, Two: 2, Three: 3 ``` Another example is config_interface function (func_config_interface_unpacking.py file): ``` In [8]: def config_interface(intf_name, ip_address, mask): ..: interface = f'interface {intf_name}' ..: no_shut = 'no shutdown' ..: ip_addr = f'ip address {ip_address} {mask}' ..: result = [interface, no_shut, ip_addr] ..: return result ..: ``` Function expects such arguments: intf_name - interface name * ip_address - IP address * mask - subnet mask Function returns a list of strings to configure interface: ``` In [9]: config_interface('Fa0/1', '10.0.1.1', '255.255.255.0') Out[9]: ['interface Fa0/1', 'no shutdown', 'ip address 10.0.1.1 255.255.255.0'] In [11]: config_interface('Fa0/10', '10.255.4.1', '255.255.255.0') Out[11]: ['interface Fa0/10', 'no shutdown', 'ip address 10.255.4.1 255.255.255.0'] ``` Suppose you call a function and pass it information that has been obtained from another source, for example from database. For example, interfaces_info list contains parameters for configuring interfaces: ``` In [14]: interfaces_info = [['Fa0/1', '10.0.1.1', '255.255.255.0'], ...: ['Fa0/2', '10.0.2.1', '255.255.255.0'], ...: ['Fa0/3', '10.0.3.1', '255.255.255.0'], ...: ['Fa0/4', '10.0.4.1', '255.255.255.0'], ...: ['Lo0', '10.0.0.1', '255.255.255.255']] ...: ``` If you go through list in the loop and pass nested list as a function argument, an error will occur: ``` In [15]: for info in interfaces_info: ...: print(config_interface(info)) ...: --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-d34ced60c796> in <module> 1 for info in interfaces_info: ----> 2 print(config_interface(info)) 3 TypeError: config_interface() missing 2 required positional arguments: 'ip_address' and 'mask' ``` Error is quite logical: function expects three arguments and it is given 1 argument - a list. In such a situation it is necessary to unpack arguments. Just add `*` before passing the list as an argument and there is no error anymore: ``` In [16]: for info in interfaces_info: ...: print(config_interface(*info)) ...: ['interface Fa0/1', 'no shutdown', 'ip address 10.0.1.1 255.255.255.0'] ['interface Fa0/2', 'no shutdown', 'ip address 10.0.2.1 255.255.255.0'] ['interface Fa0/3', 'no shutdown', 'ip address 10.0.3.1 255.255.255.0'] ['interface Fa0/4', 'no shutdown', 'ip address 10.0.4.1 255.255.255.0'] ['interface Lo0', 'no shutdown', 'ip address 10.0.0.1 255.255.255.255'] ``` Python will unpack info list itself and pass list elements to function as arguments. Tuple can also be unpacked in this way. ## Unpacking keyword alrguments# Similarly, you can unpack dictionary to pass it as keyword arguments. Check_passwd function (func_check_pass_optional_param_2.py file): List of dictionaries `username_passwd` where username and password are specified: ``` In [20]: username_passwd = [{'username': 'cisco', 'password': 'cisco'}, ...: {'username': 'nata', 'password': 'natapass'}, ...: {'username': 'user', 'password': '123456789'}] ``` If you pass dictionary to check_passwd function, there is an error: ``` In [21]: for data in username_passwd: ...: check_passwd(data) ...: --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-21-ad848f85c77f> in <module> 1 for data in username_passwd: ----> 2 check_passwd(data) 3 Error is because the function has taken dictionary as one argument and believes that it lacks only password argument. If you add `**` before passing a dictionary to function, function will work properly: ``` In [22]: for data in username_passwd: ...: check_passwd(**data) ...: Password is too short Password contains username Password for user user has passed all checks In [23]: for data in username_passwd: ...: print(data) ...: check_passwd(**data) ...: {'username': 'cisco', 'password': 'cisco'} Password is too short {'username': 'nata', 'password': 'natapass'} Password contains username {'username': 'user', 'password': '123456789'} Password for user user has passed all checks ``` Python unpacks dictionary and passes it to function as keyword arguments. The `check_passwd(**data)` is converted to a ``` check_passwd(username='cisco', password='cisco') ``` Using variable length arguments and unpacking arguments you can pass arguments between functions. Let me give you an example. Function `check_passwd` (func_add_user_kwargs_example.py file): Function checks password and returns True if password has passed verification and False if not. Call function in ipython: ``` In [3]: check_passwd('nata', '12345', min_length=3) Password for user nata has passed all checks Out[3]: True In [4]: check_passwd('nata', '12345nata', min_length=3) Password contains username Out[4]: False In [5]: check_passwd('nata', '12345nata', min_length=3, check_username=False) Password for user nata has passed all checks Out[5]: True In [6]: check_passwd('nata', '12345nata', min_length=3, check_username=True) Password contains username Out[6]: False ``` We will create function that requests password for specified user, checks it and requests it again if password has not been checked or writes user and password to file if password has been verified In [8]: add_user_to_users_file('nata') Enter password for user nata: natasda Password is too short Enter password for user nata: natasdlajsl;fjd Password contains username Enter password for user nata: salkfdjsalkdjfsal;dfj Password for user nata has passed all checks In [9]: cat users.txt nata,salkfdjsalkdjfsal;dfj ``` In this version of add_user_to_users_file() function, it is not possible to regulate the minimum password length and whether to verify the presence of a username in password. In the following version of add_user_to_users_file() function, these features are added: ``` In [5]: def add_user_to_users_file(user, users_filename='users.txt', min_length=8, check_username=True): ...: while True: ...: passwd = input(f'Enter password for user {user}: ') ...: if check_passwd(user, passwd, min_length, check_username): ...: break ...: with open(users_filename, 'a') as f: ...: f.write(f'{user},{passwd}\n') ...: In [6]: add_user_to_users_file('nata', min_length=5) Enter password for user nata: natas2342 Password contains username Enter password for user nata: dlfjgkd Password for user nata has passed all checks ``` You can now specify min_length or check_username when calling a function. However, it was necessary to repeat parameters of `check_passwd` function in defining of function. This is not very good and when there are many parameters it is just inconvenient, especially considering that check_passwd function can have other parameters. This happens quite often and Python has a common solution to this problem: all arguments for internal function (in this case it is check_passwd) will be taken in **kwargs. Then, when calling check_passwd() function they will be unpacked into keyword arguments by the same `**kwargs` syntax. In [8]: add_user_to_users_file('nata', min_length=5) Enter password for user nata: alskfdjlksadjf Password for user nata has passed all checks In [9]: add_user_to_users_file('nata', min_length=5) Enter password for user nata: 345 Password is too short Enter password for user nata: 309487538 Password for user nata has passed all checks ``` In this version you can add arguments to check_passwd() function without having to duplicate them in add_user_to_users_file function. Further reading# Documenation: Defining Functions Built-in Functions Sorting HOW TO Functional Programming HOWTO Range function ## Task 9.1# Create generate_access_config function that generates configuration for access ports. a dictionary with interface as a key and VLAN as a value (access_config or access_config_2 dict) * access ports configuration template as a list of commands (access_mode_template list) The function should return a list of all ports in access mode with configuration based on the access_mode_template template. In this task, the beginning of the function is written and you just need to continue writing the function body itself. ``` [ "interface FastEthernet0/12", "switchport mode access", "switchport access vlan 10", "switchport nonegotiate", "spanning-tree portfast", "spanning-tree bpduguard enable", "interface FastEthernet0/17", "switchport mode access", "switchport access vlan 150", "switchport nonegotiate", "spanning-tree portfast", "spanning-tree bpduguard enable", ...] ``` Check the operation of the function using the access_config dictionary and the list of commands access_mode_template. If the previous check was successful, check the function again using the dictionary access_config_2 and make sure that the final list contains the correct interface numbers and vlans. access_config_2 = { "FastEthernet0/3": 100, "FastEthernet0/7": 101, "FastEthernet0/9": 107, } def generate_access_config(intf_vlan_mapping, access_template): """ intf_vlan_mapping is a dictionary with interface-VLAN mapping: {'FastEthernet0/12': 10, 'FastEthernet0/14': 11, 'FastEthernet0/16': 17} access_template - list of commands for the port in access mode Returns a list of commands. """ ``` ## Task 9.1a# Add this functionality: add an additional parameter that controls whether port-security configured parameter name ‘psecurity’ default is None to configure port-security, a list of commands must be passed as a value port-security (port_security_template list) The function should return a list of all ports in access mode with configuration based on the access_mode_template template and the port_security_template template, if passed. There should not be a new line character at the end of lines in the list. Check the operation of the function using the example of the access_config dictionary, with the generation of the configuration port-security and without. ``` print(generate_access_config(access_config, access_mode_template)) print(generate_access_config(access_config, access_mode_template, port_security_template)) ``` port_security_template = [ "switchport port-security maximum 2", "switchport port-security violation restrict", "switchport port-security" ] ## Task 9.2# Create generate_trunk_config function that generates configuration for access ports. intf_vlan_mapping: expects a dictionary with interface-VLAN mapping (trunk_config or trunk_config_2) * trunk_template: expects trunk port configuration template as command list (trunk_mode_template list) The function should return a list of commands with configuration based on the specified ports and trunk_mode_template. Check the operation of the function using the example of the trunk_config dictionary and a list of commands trunk_mode_template. If the previous check was successful, check the function again on the trunk_config_2 dictionary and make sure that the final list contains the correct numbers interfaces and vlans. ``` [ "interface FastEthernet0/1", "switchport mode trunk", "switchport trunk native vlan 999", "switchport trunk allowed vlan 10,20,30", "interface FastEthernet0/2", "switchport mode trunk", "switchport trunk native vlan 999", "switchport trunk allowed vlan 11,30", ...] ``` ``` trunk_mode_template = [ "switchport mode trunk", "switchport trunk native vlan 999", "switchport trunk allowed vlan", ] trunk_config_2 = { "FastEthernet0/11": [120, 131], "FastEthernet0/15": [111, 130], "FastEthernet0/14": [117], } ``` ## Task 9.2a# Change the function so that it returns a dictionary instead of a list of commands: - keys: interface names, like ‘FastEthernet0/1’ - values: the list of commands that you need execute on this interface Check the operation of the function using the example of the trunk_config dictionary and the trunk_mode_template template. ``` { "FastEthernet0/1": [ "switchport mode trunk", "switchport trunk native vlan 999", "switchport trunk allowed vlan 10,20,30", ], "FastEthernet0/2": [ "switchport mode trunk", "switchport trunk native vlan 999", "switchport trunk allowed vlan 11,30", ], "FastEthernet0/4": [ "switchport mode trunk", "switchport trunk native vlan 999", "switchport trunk allowed vlan 17", ], } ``` ``` trunk_mode_template = [ "switchport mode trunk", "switchport trunk native vlan 999", "switchport trunk allowed vlan" ] ## Task 9.3# Create a get_int_vlan_map function that handles the switch configuration file and returns a tuple of two dictionaries: A dictionary of ports in access mode, where the keys are port numbers, and the access VLAN values (numbers): A dictionary of ports in trunk mode, where the keys are port numbers, and the values are the list of allowed VLANs (list of numbers): ``` {"FastEthernet0/1": [10, 20], "FastEthernet0/2": [11, 30], "FastEthernet0/4": [17]} ``` ## Task 9.3a# Add this functionality: add support for configuration when the port is in VLAN 1 and the access port setting looks like this: ``` interface FastEthernet0/20 switchport mode access duplex auto ``` In this case, information should be added to the dictionary that the port in VLAN 1 Dictionary example: ``` {'FastEthernet0/12': 10, 'FastEthernet0/14': 11, 'FastEthernet0/20': 1 } ``` Check the operation of the function using the config_sw2.txt file. ## Task 9.4# Create a convert_config_to_dict function that handles the switch configuration file and returns a dictionary: All top-level commands (global configuration mode) will be keys. * If the top-level team has subcommands, they must be in the value from the corresponding key, in the form of a list (spaces at the beginning of the line must be removed). * If the top-level command has no subcommands, then the value will be an empty list When processing the configuration file, you should ignore the lines that begin with ‘!’, as well as lines containing words from the ignore list. To check if a line should be ignored, use the ignore_command function. The part of the dictionary that the function should return (the full output can be seen in test_task_9_4.py test): ``` { "version 15.0": [], "service timestamps debug datetime msec": [], "service timestamps log datetime msec": [], "no service password-encryption": [], "hostname sw1": [], "interface FastEthernet0/0": [ "switchport mode access", "switchport access vlan 10", ], "interface FastEthernet0/1": [ "switchport trunk encapsulation dot1q", "switchport trunk allowed vlan 100,200", "switchport mode trunk", ], "interface FastEthernet0/2": [ "switchport mode access", "switchport access vlan 20", ], } ``` def ignore_command(command, ignore): """ The function checks if the command contains a word from the ignore list. command is a string. Command to check ignore is a list. Word list Returns * True if the command contains a word from the ignore list * False - if not """ ignore_status = False for word in ignore: if word in command: ignore_status = True return ignore_status ``` # 10. Useful functions# 10. Useful functions# This section discusses the following functions: print range sorted enumerate zip all_any lambda map filter Function ``` print(*items, sep=' ', end='\n', file=sys.stdout, flush=False) ``` Function `sep` value and finishes output with `end` value. All elements that are passed as arguments are converted into strings: ``` In [4]: def f(a): ...: return a ...: In [5]: print(1, 2, f, range(10)) 1 2 <function f at 0xb4de926c> range(0, 10) ``` For functions f and range the result is equivalent to str: ``` In [6]: str(f) Out[6]: '<function f at 0xb4de926c>' In [7]: str(range(10)) Out[7]: 'range(0, 10)' ``` ## sep# Parameter `sep` controls which separator will be used between elements. By default, space is used: You can change `sep` value to any other string: ``` In [9]: print(1, 2, 3, sep='|') 1|2|3 In [10]: print(1, 2, 3, sep='\n') 1 2 3 In [11]: print(1, 2, 3, sep=f"\n{'-' * 10}\n") 1 ---------- 2 ---------- 3 ``` Note that all arguments that manage behavior of In some situations ``` In [12]: items = [1, 2, 3, 4, 5] In [13]: print(*items, sep=', ') 1, 2, 3, 4, 5 ``` ## end# Parameter `end` controls which value will be displayed after all elements are printed. By default, new line character is used: You can change `end` value to any other string: ``` In [20]: print(1, 2, 3, end='\n' + '-' * 10) 1 2 3 ---------- ``` ## file# Parameter `file` controls where values of Python allows to pass to `file` as an argument any object with write(string) method. ``` In [1]: f = open('result.txt', 'w') In [2]: for num in range(10): ...: print('Item {}'.format(num), file=f) ...: In [3]: f.close() In [4]: cat result.txt Item 0 Item 1 Item 2 Item 3 Item 4 Item 5 Item 6 Item 7 Item 8 Item 9 ``` ## flush# By default, when writing to a file or print to a standard output stream, the output is buffered. Function Example script that displays a number from 0 to 10 every second (print_nums.py file): for num in range(10): print(num) time.sleep(1) ``` Try running a script and make sure the numbers are displayed once per second. Now, a similar script but the numbers will appear in one line (print_nums_oneline.py file): for num in range(10): print(num, end=' ') time.sleep(1) ``` Try running a function. Numbers does not appear one per second but all appear after 10 seconds. This is because when output is displayed on standard output, `flush` is performed after new line character. In order to make script work properly `flush` should be set to True (print_nums_oneline_fixed.py file): for num in range(10): print(num, end=' ', flush=True) time.sleep(1) ``` Function `range` returns an immutable sequence of numbers as a `range` object. Function syntax: ``` range(stop) range(start, stop[, step]) ``` Parameters of function: start - from what number the sequence begins. By default - 0 * stop - on which number the sequence of numbers ends. Mentioned number is not included in range * step - with what step numbers increase. By default 1 Function `range` stores only start, stop and step values and calculates values as necessary. This means that regardless of the size of range that describes `range` function, it will always occupy a fixed amount of memory. The easiest `range` option is to pass only stop value: ``` In [1]: range(5) Out[1]: range(0, 5) In [2]: list(range(5)) Out[2]: [0, 1, 2, 3, 4] ``` If two arguments are passed, the first is used as start and the second as stop: ``` In [3]: list(range(1, 5)) Out[3]: [1, 2, 3, 4] ``` And in order to indicate sequence step, you have to pass three arguments: ``` In [4]: list(range(0, 10, 2)) Out[4]: [0, 2, 4, 6, 8] In [5]: list(range(0, 10, 3)) Out[5]: [0, 3, 6, 9] ``` Function `range` can also generate descending sequences of numbers: ``` In [6]: list(range(10, 0, -1)) Out[6]: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] In [7]: list(range(5, -1, -1)) Out[7]: [5, 4, 3, 2, 1, 0] ``` To get a descending sequence use a negative step and specify start by a greater number and stop by a smaller number. In descending sequence the steps can also be different: ``` In [8]: list(range(10, 0, -2)) Out[8]: [10, 8, 6, 4, 2] ``` Function supports negative start and stop values: ``` In [9]: list(range(-10, 0, 1)) Out[9]: [-10, -9, -8, -7, -6, -5, -4, -3, -2, -1] In [10]: list(range(0, -10, -1)) Out[10]: [0, -1, -2, -3, -4, -5, -6, -7, -8, -9] ``` The `range` object supports all operations that support sequences in Python, except addition and multiplication. Check whether a number falls within a range: ``` In [11]: nums = range(5) In [12]: nums Out[12]: range(0, 5) In [13]: 3 in nums Out[13]: True In [14]: 7 in nums Out[14]: False ``` Starting with Python 3.2 this check is performed in constant time (O(1)). You can get a specific range element: ``` In [15]: nums = range(5) In [16]: nums[0] Out[16]: 0 In [17]: nums[-1] Out[17]: 4 ``` Range supports slices: ``` In [18]: nums = range(5) In [19]: nums[1:] Out[19]: range(1, 5) In [20]: nums[:3] Out[20]: range(0, 3) ``` You can get range length: ``` In [21]: nums = range(5) In [22]: len(nums) Out[22]: 5 ``` And a minimum and maximum element: ``` In [23]: nums = range(5) In [24]: min(nums) Out[24]: 0 In [25]: max(nums) Out[25]: 4 ``` In addition, `range` object supports `index` method: ``` In [26]: nums = range(1, 7) In [27]: nums.index(3) Out[27]: 2 ``` Function `sorted` returns a new sorted list that is obtained from an iterable object that has been passed as an argument. Function also supports additional options that allow you to control sorting. The first aspect that is important to pay attention to - `sorted` returns a list. If you sort a list of items, a new list is returned: In [2]: sorted(list_of_words) Out[2]: ['', 'dict', 'list', 'one', 'two'] ``` When sorting a tuple also a list returns: ``` In [3]: tuple_of_words = ('one', 'two', 'list', '', 'dict') In [4]: sorted(tuple_of_words) Out[4]: ['', 'dict', 'list', 'one', 'two'] ``` Sorting set: ``` In [5]: set_of_words = {'one', 'two', 'list', '', 'dict'} In [6]: sorted(set_of_words) Out[6]: ['', 'dict', 'list', 'one', 'two'] ``` Sorting string: ``` In [7]: string_to_sort = 'long string' In [8]: sorted(string_to_sort) Out[8]: [' ', 'g', 'g', 'i', 'l', 'n', 'n', 'o', 'r', 's', 't'] ``` If you pass a dictionary to `sorted` the function will return sorted list of keys: In [10]: sorted(dict_for_sort) Out[10]: ['id', 'it_vlan', 'mngmt_vlan', 'name', 'port', 'to_id', 'to_name', 'user_vlan'] ``` ## reverse# The `reverse` flag allows you to control the sorting order. By default, sorting will be in ascending order of items: In [12]: sorted(list_of_words) Out[12]: ['', 'dict', 'list', 'one', 'two'] In [13]: sorted(list_of_words, reverse=True) Out[13]: ['two', 'one', 'list', 'dict', ''] ``` ## key# With `key` option you can specify how to perform sorting. The `key` parameter expects function by which the comparison should be performed. For example you can sort a list of strings by string length: In [15]: sorted(list_of_words, key=len) Out[15]: ['', 'one', 'two', 'list', 'dict'] ``` If you want to sort dictionary keys but ignore string register: ``` In [16]: dict_for_sort = { ...: 'id': 1, ...: 'name': 'London', ...: 'IT_VLAN': 320, ...: 'User_VLAN': 1010, ...: 'Mngmt_VLAN': 99, ...: 'to_name': None, ...: 'to_id': None, ...: 'port': 'G1/0/11' ...: } In [17]: sorted(dict_for_sort, key=str.lower) Out[17]: ['id', 'IT_VLAN', 'Mngmt_VLAN', 'name', 'port', 'to_id', 'to_name', 'User_VLAN'] ``` The `key` option can accept any functions, not only embedded ones. It is also convenient to use anonymous lambda() function. Using `key` option you can sort objects by any element. However, this requires either lambda() or special functions from operator module. For example, in order to sort the list of tuples with two items in the second element, you should use this technique: ``` In [18]: from operator import itemgetter In [20]: sorted(list_of_tuples, key=itemgetter(1)) Out[20]: [('DB_VLAN', 11), ('Mngmt_VLAN', 99), ('IT_VLAN', 320), ('User_VLAN', 1010)] ``` Date: 2019-10-16 Categories: Tags: Sometimes, when iterating objects in for loop, it is necessary not only to get object itself but also its sequence number. This can be done by creating an additional variable that will increase by one with each iteration. However, it is much more convenient to do this with iterator `enumerate` . Basic example: ``` In [15]: list1 = ['str1', 'str2', 'str3'] In [16]: for position, string in enumerate(list1): ...: print(position, string) ...: 0 str1 1 str2 2 str3 ``` `enumerate` can count not only from scratch but from any value that has been given to it after object: In [18]: for position, string in enumerate(list1, 100): ...: print(position, string) ...: 100 str1 101 str2 102 str3 ``` Sometimes it is necessary to check what iterator has generated. If you want to see full content that iterator generates you can use list() function: In [20]: list(enumerate(list1, 100)) Out[20]: [(100, 'str1'), (101, 'str2'), (102, 'str3')] ``` ## An example of using enumerate for EEM# This example uses Cisco EEM. In a nutshell, EEM allows you to perform some actions in response to an event. EEM applet looks like this: ``` event manager applet Fa0/1_no_shut event syslog pattern "Line protocol on Interface FastEthernet0/0, changed state to down" action 1 cli command "enable" action 2 cli command "conf t" action 3 cli command "interface fa0/1" action 4 cli command "no sh" ``` In EEM, in a situation where many actions need to be performed it is inconvenient to type `action x cli command` each time. Plus, most often, there is already a ready piece of configuration that must be executed by EEM. A simple Python script can generate EEM commands based on existing command list (enumerate_eem.py file): config = sys.argv[1] with open(config, 'r') as f: for i, command in enumerate(f, 1): print('action {:04} cli command "{}"'.format(i, command.rstrip())) ``` In this example, commands are read from a file and then EEM prefix is added to each line. File with commands looks like this (r1_config.txt): ``` en conf t no int Gi0/0/0.300 no int Gi0/0/0.301 no int Gi0/0/0.302 int range gi0/0/0-2 channel-group 1 mode active interface Port-channel1.300 encapsulation dot1Q 300 vrf forwarding Management ip address 10.16.19.35 255.255.255.248 ``` ``` $ python enumerate_eem.py r1_config.txt action 0001 cli command "en" action 0002 cli command "conf t" action 0003 cli command "no int Gi0/0/0.300" action 0004 cli command "no int Gi0/0/0.301" action 0005 cli command "no int Gi0/0/0.302" action 0006 cli command "int range gi0/0/0-2" action 0007 cli command " channel-group 1 mode active" action 0008 cli command "interface Port-channel1.300" action 0009 cli command " encapsulation dot1Q 300" action 0010 cli command " vrf forwarding Management" action 0011 cli command " ip address 10.16.19.35 255.255.255.248" ``` `zip` function: sequences are passed to function * zip returns an iterator with tuples in which n-tuple consists of n-elements of sequences that have been passed as arguments * for example, 10th tuple will contain 10th element of each of passed sequences * if sequences with different lengths have been passed to input, they will all be cut by the shortest sequence * the order of elements is respected Note Since `zip` is an iterator, `list` is used to show its contents Example of using zip: In [2]: b = [100, 200, 300] In [3]: list(zip(a, b)) Out[3]: [(1, 100), (2, 200), (3, 300)] ``` Use zip with lists of different lengths: In [5]: b = [10, 20, 30, 40, 50] In [6]: c = [100, 200, 300] In [7]: list(zip(a, b, c)) Out[7]: [(1, 10, 100), (2, 20, 200), (3, 30, 300)] ``` ## Using zip to create a dictionary# Example of using zip to create a dictionary: ``` In [4]: d_keys = ['hostname', 'location', 'vendor', 'model', 'IOS', 'IP'] In [5]: d_values = ['london_r1', '21 New Globe Walk', 'Cisco', '4451', '15.4', '10.255.0.1'] In [6]: list(zip(d_keys, d_values)) Out[6]: [('hostname', 'london_r1'), ('location', '21 New Globe Walk'), ('vendor', 'Cisco'), ('model', '4451'), ('IOS', '15.4'), ('IP', '10.255.0.1')] In [7]: dict(zip(d_keys, d_values)) Out[7]: {'IOS': '15.4', 'IP': '10.255.0.1', 'hostname': 'london_r1', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'} In [8]: r1 = dict(zip(d_keys, d_values)) In [9]: r1 Out[9]: {'IOS': '15.4', 'IP': '10.255.0.1', 'hostname': 'london_r1', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'} ``` In example below there is a separate list which stores keys and a dictionary which stores information about each device in form of list (to preserve order). Collect them in dictionary with keys from list and information from dictionary data: ``` In [10]: d_keys = ['hostname', 'location', 'vendor', 'model', 'IOS', 'IP'] In [11]: data = { ....: 'r1': ['london_r1', '21 New Globe Walk', 'Cisco', '4451', '15.4', '10.255.0.1'], ....: 'r2': ['london_r2', '21 New Globe Walk', 'Cisco', '4451', '15.4', '10.255.0.2'], ....: 'sw1': ['london_sw1', '21 New Globe Walk', 'Cisco', '3850', '3.6.XE', '10.255.0.101'] ....: } In [12]: london_co = {} In [13]: for k in data.keys(): ....: london_co[k] = dict(zip(d_keys, data[k])) ....: In [14]: london_co Out[14]: {'r1': {'IOS': '15.4', 'IP': '10.255.0.1', 'hostname': 'london_r1', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'}, 'r2': {'IOS': '15.4', 'IP': '10.255.0.2', 'hostname': 'london_r2', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'}, 'sw1': {'IOS': '3.6.XE', 'IP': '10.255.0.101', 'hostname': 'london_sw1', 'location': '21 New Globe Walk', 'model': '3850', 'vendor': 'Cisco'}} ``` Function `all` returns True if all elements are true (or object is empty). ``` In [1]: all([False, True, True]) Out[1]: False In [2]: all([True, True, True]) Out[2]: True For example, it is possible to check that all octets in an IP address are numbers: ``` In [4]: ip = '10.0.1.1' In [5]: all([i.isdigit() for i in ip.split('.')]) Out[5]: True In [6]: all([i.isdigit() for i in '10.1.1.a'.split('.')]) Out[6]: False ``` # any# Function `any` returns True if at least one element is true. ``` In [7]: any([False, True, True]) Out[7]: True In [8]: any([False, False, False]) Out[8]: False In [9]: any([]) Out[9]: False In [10]: any([i.isdigit() for i in '10.1.1.a'.split('.')]) Out[10]: True ``` For example, with `any` you can replace `ignore_command` function: for word in ignore: if word in command: return True return False ``` To this option: return any([word in command for word in ignore]) ``` In Python, `lambda` expression allows creation of anonymous functions - functions that are not tied to a name. Anonymous function: may contain only one expression can pass as many arguments as you want Standard function: ``` In [1]: def sum_arg(a, b): return a + b In [2]: sum_arg(1, 2) Out[2]: 3 ``` Similar anonymous function or `lambda` function: ``` In [3]: sum_arg = lambda a, b: a + b In [4]: sum_arg(1, 2) Out[4]: 3 ``` Note that there is no return operator in `lambda` function definition because there can only be one expression in this function that always returns a value and closes the function. Function `lambda` is convenient to use in expressions where you need to write a small function for data processing. For example, in `sorted` function you can use lambda expression to specify sorting key: In [6]: sorted(list_of_tuples, key=lambda x: x[1]) Out[6]: [('DB_VLAN', 11), ('Mngmt_VLAN', 99), ('IT_VLAN', 320), ('User_VLAN', 1010)] ``` Function `lambda` is also useful in `map` and `filter` functions which will be discussed in the following sections. Function `map` applies function to each element of sequence and returns iterator with result. For example, `map` can be used to perform element transformations. Convert all strings to uppercase: In [2]: map(str.upper, list_of_words) Out[2]: <map at 0xb45eb7ecIn [3]: list(map(str.upper, list_of_words)) Out[3]: ['ONE', 'TWO', 'LIST', '', 'DICT'] ``` In [4]: list(map(int, list_of_str)) Out[4]: [1, 2, 5, 10] ``` With `map` it is convenient to use lambda expressions: In [6]: list(map(lambda x: 'vlan {}'.format(x), vlans)) Out[6]: ['vlan 100', 'vlan 110', 'vlan 150', 'vlan 200', 'vlan 201', 'vlan 202'] ``` If `map` function expects two arguments, two lists are passed: ``` In [7]: nums = [1, 2, 3, 4, 5] In [8]: nums2 = [100, 200, 300, 400, 500] In [9]: list(map(lambda x, y: x*y, nums, nums2)) Out[9]: [100, 400, 900, 1600, 2500] ``` ## List comprehension instead of map# As a rule, you can use list comprehension instead of `map` . The list comprehension option is often clearer, and in some cases even faster. But `map` can be more effective when you have to generate a large number of elements because `map` is an iterator and list comprehension generates a list. Examples similar to those above in list comprehension version. Convert all strings to uppercase: In [49]: [str.upper(word) for word in list_of_words] Out[49]: ['ONE', 'TWO', 'LIST', '', 'DICT'] ``` In [51]: [int(i) for i in list_of_str] Out[51]: [1, 2, 5, 10] ``` String formatting: In [53]: ['vlan {}'.format(x) for x in vlans] Out[53]: ['vlan 100', 'vlan 110', 'vlan 150', 'vlan 200', 'vlan 201', 'vlan 202'] ``` Use `zip` to get pairs of elements: ``` In [54]: nums = [1, 2, 3, 4, 5] In [55]: nums2 = [100, 200, 300, 400, 500] In [56]: [x * y for x, y in zip(nums, nums2)] Out[56]: [100, 400, 900, 1600, 2500] ``` Function `filter()` applies function to all sequence elements and returns an iterator with those objects for which function has returned True. For example, return only those strings that contain numbers: In [2]: filter(str.isdigit, list_of_strings) Out[2]: <filter at 0xb45eb1ccIn [3]: list(filter(str.isdigit, list_of_strings)) Out[3]: ['100', '1', '50'] ``` From the list of numbers leave only odd: Similarly, only even ones: In [6]: list(filter(lambda x: len(x) > 2, list_of_words)) Out[6]: ['one', 'two', 'list', 'dict'] ``` ## List comprehension instead of filter# As a rule, you can use list comprehension instead of `filter` . Examples similar to those above in list comprehension version. Return only those strings that contain numbers: In [8]: [s for s in list_of_strings if s.isdigit()] Out[8]: ['100', '1', '50'] ``` Odd/even numbers: ``` In [9]: nums = [10, 111, 102, 213, 314, 515] In [10]: [n for n in nums if n % 2] Out[10]: [111, 213, 515] In [11]: [n for n in nums if not n % 2] Out[11]: [10, 102, 314] ``` In [13]: [word for word in list_of_words if len(word) > 2] Out[13]: ['one', 'two', 'list', 'dict'] ``` Module in Python is a plain text file with Python code and .py extention. It allows logical ordering and grouping of the code. Division into modules can be done, for example, by this logic: division of data, formatting and code logic * grouping functions and other objects by functionality The good thing about modules is that they allow you to reuse already written code and not copy it (for example, do not copy a previously written function). Python has several ways to import a module: * `import module` * `import module as` * * `from module import *` `import module` # Example of import module: ``` In [1]: dir() Out[1]: ['In', 'Out', ... 'exit', 'get_ipython', 'quit'] In [2]: import os In [3]: dir() Out[3]: ['In', 'Out', ... 'exit', 'get_ipython', 'os', 'quit'] ``` After importing the os module appeared in the output `dir` .This means that it is now in the current namespace. To call some function or method from os module you should specify `os.` and then object name: ``` In [4]: os.getlogin() Out[4]: 'natasha' ``` This import method is good because module objects do not enter the namespace of current program. That is, if you create a function named `getlogin` it will not conflict with the same function of os module. Note If file name contains a dot, the standard way of importing will not work. In such cases, another method is used. `import module as` # Construction import module as allows importing a module under a different name (usually shorter): ``` In [1]: import subprocess as sp In [2]: sp.check_output('ping -c 2 -n 8.8.8.8', shell=True) Out[2]: 'PING 8.8.8.8 (8.8.8.8): 56 data bytes\n64 bytes from 8.8.8.8: icmp_seq=0 ttl=48 time=49.880 ms\n64 bytes from 8.8.8.8: icmp_seq=1 ttl=48 time=46.875 ms\n\n--- 8.8.8.8 ping statistics ---\n2 packets transmitted, 2 packets received, 0.0% packet loss\nround-trip min/avg/max/stddev = 46.875/48.377/49.880/1.503 ms\n' ``` # Option from module import object is convenient to use when only few functions are needed from whole module: ``` In [1]: from os import getlogin, getcwd ``` These functions are now available in the current namespace: ``` In [2]: dir() Out[2]: ['In', 'Out', ... 'exit', 'get_ipython', 'getcwd', 'getlogin', 'quit'] ``` They can be called without module name: ``` In [3]: getlogin() Out[3]: 'natasha' In [4]: getcwd() Out[4]: '/Users/natasha/Desktop/Py_net_eng/code_test' ``` `from module import *` # Option `from module import *` imports all module names into the current namespace: ``` In [1]: from os import * In [2]: dir() Out[2]: ['EX_CANTCREAT', 'EX_CONFIG', ... 'wait', 'wait3', 'wait4', 'waitpid', 'walk', 'write'] In [3]: len(dir()) Out[3]: 218 ``` There are many objects in os module, so the output is shortened. At the end, length of the list of names of current namespace is specified. This import option is best not to use. With such code import it is not clear which function is taken, for example from os module. This makes it much harder to understand the code. Module is a file with `.py` extension and Python code. Example of creating your own modules and importing a function from one module to another. File check_ip_function.py: ip1 = '10.1.1.1' ip2 = '10.1.1' print('Checking IP...') print(ip1, check_ip(ip1)) print(ip2, check_ip(ip2)) ``` File check_ip_function.py has created check_ip function which checks that argument is an IP address. This is done by using ipaddress module which will be discussed in the next section. Function `ipaddress.ip_address` checks the correctness of IP address and generates ValueError exception if address is not validated. Function `check_ip` returns True if address is valid and False if not. If you run check_ip_function.py script, the output is: ``` $ python check_ip_function.py Checking IP... 10.1.1.1 True 10.1.1 False ``` The second script imports `check_ip` function and uses it to select from address list only those that passed the check (get_correct_ip.py file): First line imports check_ip function from check_ip_function.py module. ``` $ python get_correct_ip.py Cheking IP... 10.1.1.1 True 10.1.1 False Cheking list of IP addresses ['10.1.1.1', '8.8.8.8'] ``` Note that not only information from get_correct_ip.py script is displayed, but also information from check_ip_function.py. This is because any type of import executes the entire script. That is, even when import looks like , entire check_ip_function.py script is executed, not just check_ip function. As a result, all messages of imported script will be displayed. Messages from imported script are not scary, they are just confusing. Worse when script performed some kind of connection to equipment and when importing a function from it, we will have to wait for connection to take place. Python can specify that some strings should not be executed when importing. This is discussed in the following subsection. Note Function `return_correct_ip` can be replaced by a `filter` or a list comprehension. Above is used the longer but most likely more understandable option: ``` In [19]: list(filter(check_ip, ip_list)) Out[19]: ['10.1.1.1', '8.8.8.8'] In [20]: [ip for ip in ip_list if check_ip(ip)] Out[20]: ['10.1.1.1', '8.8.8.8'] In [21]: def return_correct_ip(ip_addresses): ...: return [ip for ip in ip_addresses if check_ip(ip)] ...: In [22]: return_correct_ip(ip_list) Out[22]: ['10.1.1.1', '8.8.8.8'] ``` # if __name__ == "__main__"# ``` if __name__ == "__main__" ``` # Often script can be executed independently and can be imported as a module by another script. Since importing a script runs this script, it is often necessary to specify that some strings should not be executed when importing. In previous example there were two scripts: check_ip_function.py and get_correct_ip.py. And when starting get_correct_ip.py, print() from check_ip_function.py was displayed. Python has a special technique that specifies that a code must not be executed at import: all lines that are in block are not executed at import. Variable `__name__` is a special variable that will be equal to `"__main__"` only if file is run as the main program and is set equal to module name when importing the module. That is, condition checks whether a file was run directly. As a rule, block includes all function calls and information output on the standard output stream. That is, in check_ip_function.py script this block conytains everything except import and `return_correct_ip` function: if __name__ == '__main__': ip1 = '10.1.1.1' ip2 = '10.1.1' print('Cheking IP...') print(ip1, check_ip(ip1)) print(ip2, check_ip(ip2)) ``` ``` $ python check_ip_function.py Cheking IP... 10.1.1.1 True 10.1.1 False ``` When you start check_ip_function.py script directly, all lines are executed, because `__name__` variable in this case is equal to `'__main__'` . Script get_correct_ip.py remains unchanged Execution of get_correct_ip.py script: ``` $ python get_correct_ip.py Checking list of IP addresses ['10.1.1.1', '8.8.8.8'] ``` Now the output contains only information from script getcorrect__ip.py. In general, it is better to write all code that calls functions and outputs something to the standard output stream inside block. Warning Starting with Section 11, for tests to work correctly you have to always write a function call in task file within block. The absence of this block will not cause errors in all tasks, but it will still avoid problems. Further reading# The Python Standard Library: Python Module Index Python 3 Module of the Week Docs: Python tutorial. Modules os argparse subprocess ipaddress Video: <NAME> - Modules and Packages: Live and Let Die! - PyCon 2015 argparse# Argparse docs PyMOTW tabulate# tabulate docs Pretty printing tables in Python Tabulate 0.7.1 with LaTeX & MediaWiki tables Stack Overflow: Printing Lists as Tabular Data. pprint# pprint — Data pretty printer PyMOTW. pprint — Pretty-Print Data Structures ## Task 11.1# Create a function parse_cdp_neighbors that handles show cdp neighbors command output. The function must have one parameter, command_output, which expects a single string of command output as an argument (not a filename). To do this, you need to read the entire contents of the file into a string, and then pass the string as an argument to the function (how to pass the command output is shown in the code below). The function should return a dictionary that describes the connections between devices. Function should return a dictionary: In the dictionary, interfaces must be written without a space between type and name. That is, so Fa0/0, and not so Fa 0/0. Check the operation of the function on the contents of the sh_cdp_n_sw1.txt file. In this case, the function should work on other files (the test checks the operation of the function on the output from sh_cdp_n_sw1.txt and sh_cdp_n_r3.txt). ``` def parse_cdp_neighbors(command_output): """ Here we pass the output of the command as single string because it is in this form that received command output from equipment. Taking the output of the command as an argument, instead of a filename, we make the function more generic: it can work both with files and with output from equipment. Plus, we learn to work with such a output. """ if __name__ == "__main__": with open("sh_cdp_n_sw1.txt") as f: print(parse_cdp_neighbors(f.read())) ``` ## Task 11.2# Create a create_network_map function that processes the show cdp neighbors command output from multiple files and merges it into one common topology. The function must have one parameter, filenames, which expects as an argument a list of filenames containing the output of the show cdp neighbors command. The function should return a dictionary that describes the connections between devices. The structure of the dictionary is the same as in task 11.1: Generate topology that matches the output from the files: Do not copy the code of the parse_cdp_neighbors and draw_topology functions. If the parse_cdp_neighbors function cannot process the output of one of the command output files, you need to correct the function code in task 11.1. ## Task 11.2a# Use the create_network_map function from task 11.2 to create the topology dict for files: Using the draw_topology function from the draw_network_graph.py file, draw schema for the topology dict received with create_network_map function. You need to figure out how to work with the draw_topology function on your own, by reading the function description in the draw_network_graph.py file. The resulting scheme will be written to the svg file - it can be opened with a browser. With the current topology dictionary, extra connections are drawn on the diagram. They occur because one CDP file (sh_cdp_n_r1.txt) describes connection ``` ("R1", "Eth0/0"): ("SW1", "Eth0/1") ``` and another (sh_cdp_n_sw1.txt) describes connection ``` ("SW1", "Eth0/1"): ("R1", "Eth0/0") ``` . In this task, you need to create a new function unique_network_map, which of these two connections will leave only one, for correct drawing of the schema. In this case, it does not matter which of the connections to leave. The unique_network_map function must have one topology_dict parameter, which expects a dictionary as an argument. It should be a dictionary resulting from the create_network_map function call. Dict example: ``` { ("R1", "Eth0/0"): ("SW1", "Eth0/1"), ("R2", "Eth0/0"): ("SW1", "Eth0/2"), ("R2", "Eth0/1"): ("SW2", "Eth0/11"), ("R3", "Eth0/0"): ("SW1", "Eth0/3"), ("R3", "Eth0/1"): ("R4", "Eth0/0"), ("R3", "Eth0/2"): ("R5", "Eth0/0"), ("SW1", "Eth0/1"): ("R1", "Eth0/0"), ("SW1", "Eth0/2"): ("R2", "Eth0/0"), ("SW1", "Eth0/3"): ("R3", "Eth0/0"), ("SW1", "Eth0/5"): ("R6", "Eth0/1"), } ``` The function should return a dictionary that describes the connections between devices. In the dictionary, you need to get rid of “duplicate” connections and leave only one of them. The structure of the final dict is the same as in task 11.2: After creating the function, try drawing the topology again, now for the dictionary returned by the unique_network_map function. The result should look the same as the diagram in task_11_2a_topology.svg Wherein: Connections must match the diagram Do not copy the code of the create_network_map and draw_topology functions. # 12. Useful modules# Hide navigation sidebar Hide table of contents sidebar Back to top Toggle Light / Dark / Auto color theme Toggle table of contents sidebar 12. Useful modules # This section covers these modules: Date: 2003-01-01 Categories: Tags: Subprocess module allows you to create new processes. It can then connect to standard input/output/error streams and receive a return code. Subprocess can for example execute any Linux commands from script. And depending on situation, get the output or just check that command has been performed correctly. In Python 3.5, syntax of subprocess module has changed. ## Function `subprocess.run()` # Function `subprocess.run()` is the main way of working with subprocess module. The easiest way to use a function is to call it in this way: In [2]: result = subprocess.run('ls') ipython_as_mngmt_console.md README.md version_control.md module_search.md useful_functions naming_conventions useful_modules ``` The result variable now contains a special CompletedProcess object. From this object you can get information about execution of process, such as return code: ``` In [3]: result Out[3]: CompletedProcess(args='ls', returncode=0) In [4]: result.returncode Out[4]: 0 ``` Code 0 means that program was executed successfully. If it is necessary to call a command with arguments, it should be passed in this way (as a list): ``` In [5]: result = subprocess.run(['ls', '-ls']) total 28 4 -rw-r--r-- 1 vagrant vagrant 56 Jun 7 19:35 ipython_as_mngmt_console.md 4 -rw-r--r-- 1 vagrant vagrant 1638 Jun 7 19:35 module_search.md 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 7 19:35 naming_conventions 4 -rw-r--r-- 1 vagrant vagrant 277 Jun 7 19:35 README.md 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 16 05:11 useful_functions 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 17 16:28 useful_modules 4 -rw-r--r-- 1 vagrant vagrant 49 Jun 7 19:35 version_control.md ``` Trying to execute a command using wildcard expressions, for example using `*` , will cause an error: ``` In [6]: result = subprocess.run(['ls', '-ls', '*md']) ls: cannot access *md: No such file or directory ``` To call commands in which wildcard expressions are used, you add shell argument and call a command: ``` In [7]: result = subprocess.run('ls -ls *md', shell=True) 4 -rw-r--r-- 1 vagrant vagrant 56 Jun 7 19:35 ipython_as_mngmt_console.md 4 -rw-r--r-- 1 vagrant vagrant 1638 Jun 7 19:35 module_search.md 4 -rw-r--r-- 1 vagrant vagrant 277 Jun 7 19:35 README.md 4 -rw-r--r-- 1 vagrant vagrant 49 Jun 7 19:35 version_control.md ``` Another feature of `run()` If you try to run a ping command, for example, this aspect will be visible: ``` In [8]: result = subprocess.run(['ping', '-c', '3', '-n', '8.8.8.8']) PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=43 time=55.1 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=43 time=54.7 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=43 time=54.4 ms ## Getting the result of a command execution# By default, run() function returns the result of a command execution to a standard output stream. If you want to get the result of command execution, add stdout argument with value subprocess.PIPE: ``` In [9]: result = subprocess.run(['ls', '-ls'], stdout=subprocess.PIPE) ``` Now you can get the result of command executing in this way: ``` In [10]: print(result.stdout) b'total 28\n4 -rw-r--r-- 1 vagrant vagrant 56 Jun 7 19:35 ipython_as_mngmt_console.md\n4 -rw-r--r-- 1 vagrant vagrant 1638 Jun 7 19:35 module_search.md\n4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 7 19:35 naming_conventions\n4 -rw-r--r-- 1 vagrant vagrant 277 Jun 7 19:35 README.md\n4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 16 05:11 useful_functions\n4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 17 16:30 useful_modules\n4 -rw-r--r-- 1 vagrant vagrant 49 Jun 7 19:35 version_control.md\n' ``` Note letter b before line. It means that module returned the output as a byte string. There are two options to translate it into unicode: decode received string * specify encoding argument Example with decode: ``` In [11]: print(result.stdout.decode('utf-8')) total 28 4 -rw-r--r-- 1 vagrant vagrant 56 Jun 7 19:35 ipython_as_mngmt_console.md 4 -rw-r--r-- 1 vagrant vagrant 1638 Jun 7 19:35 module_search.md 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 7 19:35 naming_conventions 4 -rw-r--r-- 1 vagrant vagrant 277 Jun 7 19:35 README.md 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 16 05:11 useful_functions 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 17 16:30 useful_modules 4 -rw-r--r-- 1 vagrant vagrant 49 Jun 7 19:35 version_control.md ``` Example with encoding: ``` In [12]: result = subprocess.run(['ls', '-ls'], stdout=subprocess.PIPE, encoding='utf-8') In [13]: print(result.stdout) total 28 4 -rw-r--r-- 1 vagrant vagrant 56 Jun 7 19:35 ipython_as_mngmt_console.md 4 -rw-r--r-- 1 vagrant vagrant 1638 Jun 7 19:35 module_search.md 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 7 19:35 naming_conventions 4 -rw-r--r-- 1 vagrant vagrant 277 Jun 7 19:35 README.md 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 16 05:11 useful_functions 4 drwxr-xr-x 2 vagrant vagrant 4096 Jun 17 16:31 useful_modules 4 -rw-r--r-- 1 vagrant vagrant 49 Jun 7 19:35 version_control.md ``` ## Output disabling# Sometimes it is enough to get only return code and need to disable output of execution result on standard output stream. This can be done by passing to run() function the stdout argument with value subprocess.DEVNULL: ``` In [14]: result = subprocess.run(['ls', '-ls'], stdout=subprocess.DEVNULL) In [15]: print(result.stdout) None In [16]: print(result.returncode) 0 ``` ## Working with standard error stream# If command was executed with error or failed, the output of command will fall on standard error stream. This can be obtained in the same way as the standard output stream: ``` In [17]: result = subprocess.run(['ping', '-c', '3', '-n', 'a'], stderr=subprocess.PIPE, encoding='utf-8') ``` Now result.stdout has empty string and result.stderr has standard output stream: ``` In [18]: print(result.stdout) None In [19]: print(result.stderr) ping: unknown host a In [20]: print(result.returncode) 2 ``` ## Examples of module use# Example of subprocess module use (subprocess_run_basic.py file): reply = subprocess.run(['ping', '-c', '3', '-n', '8.8.8.8']) if reply.returncode == 0: print('Alive') else: print('Unreachable') ``` ``` $ python subprocess_run_basic.py PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=43 time=54.0 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=43 time=54.4 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=43 time=53.9 ms --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 53.962/54.145/54.461/0.293 ms Alive ``` That is, the result of command execution is printed to standard output stream. Function ping_ip() checks the availability of IP address and returns True and stdout if address is available, or False and stderr if address is not available (subprocess_ping_function.py file): def ping_ip(ip_address): """ Ping IP address and return tuple: On success: * True * command output (stdout) On failure: * False * error output (stderr) """ reply = subprocess.run(['ping', '-c', '3', '-n', ip_address], stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8') if reply.returncode == 0: return True, reply.stdout else: return False, reply.stderr print(ping_ip('8.8.8.8')) print(ping_ip('a')) ``` ``` $ python subprocess_ping_function.py (True, 'PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.\n64 bytes from 8.8.8.8: icmp_seq=1 ttl=43 time=63.8 ms\n64 bytes from 8.8.8.8: icmp_seq=2 ttl=43 time=55.6 ms\n64 bytes from 8.8.8.8: icmp_seq=3 ttl=43 time=55.9 ms\n\n--- 8.8.8.8 ping statistics ---\n3 packets transmitted, 3 received, 0% packet loss, time 2003ms\nrtt min/avg/max/mdev = 55.643/58.492/63.852/3.802 ms\n') (False, 'ping: unknown host a\n') ``` Based on this function you can make a function that will check list of IP addresses and return as a result two lists: reachable and unreachable addresses. You will find it in tasks of section If number of IP addresses to check is large, you can use threading or multiprocessing modules to speed up verification. The os module allows you to work with the file system, with the environment, and manage processes. This subsection covers only a few useful features. For a more complete description of the module’s capabilities, see the documentation or article on pymotw. Module import: `In [1]: import os` ## os.environ# os.environ returns a dictionary with environment variables and their values. You can use square brackets to get variable if the environment variable definitely exists (an exception will be raised if the variable does not exist). ``` In [2]: os.environ["HOME"] Out[2]: '/home/nata' In [3]: os.environ["TOKEN"] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) Input In [3], in <cell line: 1>() ----> 1 os.environ["TOKEN"] File ~/venv/pyneng-py3-8-0/lib/python3.8/os.py:673, in _Environ.__getitem__(self, key) 670 value = self._data[self.encodekey(key)] 671 except KeyError: 672 # raise KeyError with the original key value --> 673 raise KeyError(key) from None 674 return self.decodevalue(value) KeyError: 'TOKEN' ``` Or use the get method, then if there is no environment variable, None is returned: ``` In [3]: os.environ.get("HOME") Out[3]: '/home/nata' In [4]: os.environ.get("TOKEN") ``` Technically, os.environ returns an object of type mapping, but at this point it’s easier to think of it as a dictionary. Environment variables are read the first time the os module is imported. If some variables were added while the script was running, they will not be available through `os.environ` . ## os.mkdir# os.mkdir allows you to create a directory: ``` In [2]: os.mkdir('test') In [3]: ls -ls total 0 0 drwxr-xr-x 2 nata nata 68 Jan 23 18:58 test/ ``` ## os.listdir# The listdir function returns a list of files and subdirectories in the specified directory. The order of the files in the list is arbitrary, if you need to sort them, you can use the sorted function. ``` In [2]: os.listdir("09_functions") Out[2]: ['test_task_9_4.py', 'task_9_2a.py', 'task_9_1a.py', 'test_task_9_2.py', 'task_9_3a.py', 'test_task_9_3a.py', 'task_9_3.py', 'test_task_9_3.py', 'config_sw2.txt', 'test_task_9_2a.py', 'config_sw1.txt', 'test_task_9_1a.py', 'test_task_9_1.py', 'task_9_4.py', 'task_9_1.py', 'config_r1.txt', 'task_9_2.py'] In [3]: sorted(os.listdir("09_functions")) Out[3]: ['config_r1.txt', 'config_sw1.txt', 'config_sw2.txt', 'task_9_1.py', 'task_9_1a.py', 'task_9_2.py', 'task_9_2a.py', 'task_9_3.py', 'task_9_3a.py', 'task_9_4.py', 'test_task_9_1.py', 'test_task_9_1a.py', 'test_task_9_2.py', 'test_task_9_2a.py', 'test_task_9_3.py', 'test_task_9_3a.py', 'test_task_9_4.py'] ``` The current directory can be specified as `"."` or call listdir with no arguments: ``` In [7]: os.listdir('.') Out[7]: ['cover3.png', 'dir2', 'dir3', 'README.txt', 'test'] In [7]: os.listdir() Out[7]: ['cover3.png', 'dir2', 'dir3', 'README.txt', 'test'] ``` ## os.path# Different operating systems (OS) have different path naming conventions, so there are multiple versions of the os.path module in the standard library. The os module automatically loads the necessary part to work with the current OS. For example, when running the same functions of the os module on Windows and Linux, different values will be considered as the path separator. If you need to work on Linux with Windows paths and vice versa, you can use the `posixpath` , `ntpath` modules instead of `os.path` . ### os.path.exists# The `os.path.exists` function checks if the specified path exists and returns True if it exists and False otherwise: ``` In [5]: os.path.exists('test') Out[5]: True In [6]: if not os.path.exists('test'): ...: os.mkdir('test') ...: ``` ### os.path.isdir, os.path.isfile# The `os.path.isdir` function returns True if the path leads to a directory, False otherwise: ``` In [4]: os.path.isdir("09_functions") Out[4]: True In [5]: os.path.isdir("/home/nata/repos/pyneng-tasks/exercises/09_functions/") Out[5]: True In [6]: os.path.isdir("/home/nata/repos/pyneng-tasks/exercises/09_functions/task_9_1.py") Out[6]: False In [7]: os.path.isdir("09_functions/task_9_1.py") Out[7]: False ``` The `os.path.isfile` function returns True if the path leads to a file and False otherwise: ``` In [9]: os.path.isfile("09_functions/task_9_1.py") Out[9]: True In [10]: os.path.isfile("09_functions/") Out[10]: False ``` Using the checks `os.path.isdir` , `os.path.isfile` and `os.listdir` , you can get lists of files and directories (in the example for the current directory). List of directories in the current directory: ``` In [8]: dirs = [d for d in os.listdir('.') if os.path.isdir(d)] In [9]: dirs Out[9]: ['dir2', 'dir3', 'test'] ``` List of files in the current directory: ``` In [10]: files = [f for f in os.listdir('.') if os.path.isfile(f)] In [11]: files Out[11]: ['cover3.png', 'README.txt'] ``` ### os.path.split# The os.path.split function splits the path into the “main part” and the end of the path at the last `/` and returns a tuple of two elements. This will automatically use a backslash for Windows. If there is no slash at the end of the path, the division will be like this ``` In [6]: os.path.split("book/25_additional_info/README.md") Out[6]: ('book/25_additional_info', 'README.md') In [8]: os.path.split("book/25_additional_info") Out[8]: ('book', '25_additional_info') ``` ``` In [7]: os.path.split("book/25_additional_info/") Out[7]: ('book/25_additional_info', '') In [9]: os.path.split("book/") Out[9]: ('book', '') ``` ``` In [39]: os.path.split("README.md") Out[39]: ('', 'README.md') ``` ### os.path.abspath# The os.path.abspath function returns the absolute path for the specified file or directory: ``` In [40]: os.path.abspath("09_functions") Out[40]: '/home/nata/repos/pyneng-tasks/exercises/09_functions' In [41]: os.path.abspath(".") Out[41]: '/home/nata/repos/pyneng-tasks/exercises' ``` Module `ipaddress` simplifies work with IP addresses. Note Since Python 3.3, `ipaddress` module is part of standard Python library. `ipaddress.ip_address` # Function `ipaddress.ip_address` allows to create an IPv4Address or IPv6Address respectively: In [2]: ipv4 = ipaddress.ip_address('10.0.1.1') In [3]: ipv4 Out[3]: IPv4Address('10.0.1.1') In [4]: print(ipv4) 10.0.1.1 ``` Object has several methods and attributes: ``` In [5]: ipv4. ipv4.compressed ipv4.is_loopback ipv4.is_unspecified ipv4.version ipv4.exploded ipv4.is_multicast ipv4.max_prefixlen ipv4.is_global ipv4.is_private ipv4.packed ipv4.is_link_local ipv4.is_reserved ipv4.reverse_pointer ``` With `is_` attributes you can check to what range the address belongs to: ``` In [6]: ipv4.is_loopback Out[6]: False In [7]: ipv4.is_multicast Out[7]: False In [8]: ipv4.is_reserved Out[8]: False In [9]: ipv4.is_private Out[9]: True ``` Different operations can be performed with received objects: ``` In [10]: ip1 = ipaddress.ip_address('10.0.1.1') In [11]: ip2 = ipaddress.ip_address('10.0.2.1') In [12]: ip1 > ip2 Out[12]: False In [13]: ip2 > ip1 Out[13]: True In [14]: ip1 == ip2 Out[14]: False In [15]: ip1 != ip2 Out[15]: True In [16]: str(ip1) Out[16]: '10.0.1.1' In [17]: int(ip1) Out[17]: 167772417 In [18]: ip1 + 5 Out[18]: IPv4Address('10.0.1.6') In [19]: ip1 - 5 Out[19]: IPv4Address('10.0.0.252') ``` `ipaddress.ip_network` # `ipaddress.ip_network` function allows you to create an object that describes the network (IPv4 or IPv6): ``` In [20]: subnet1 = ipaddress.ip_network('80.0.1.0/28') ``` As with an address, a network has various attributes and methods: ``` In [21]: subnet1.broadcast_address Out[21]: IPv4Address('80.0.1.15') In [22]: subnet1.with_netmask Out[22]: '80.0.1.0/255.255.255.240' In [23]: subnet1.with_hostmask Out[23]: '80.0.1.0/0.0.0.15' In [24]: subnet1.prefixlen Out[24]: 28 In [25]: subnet1.num_addresses Out[25]: 16 ``` Method `hosts` returns generator, so to view all hosts you should apply list() function: ``` In [26]: list(subnet1.hosts()) Out[26]: [IPv4Address('80.0.1.1'), IPv4Address('80.0.1.2'), IPv4Address('80.0.1.3'), IPv4Address('80.0.1.4'), IPv4Address('80.0.1.5'), IPv4Address('80.0.1.6'), IPv4Address('80.0.1.7'), IPv4Address('80.0.1.8'), IPv4Address('80.0.1.9'), IPv4Address('80.0.1.10'), IPv4Address('80.0.1.11'), IPv4Address('80.0.1.12'), IPv4Address('80.0.1.13'), IPv4Address('80.0.1.14')] ``` Method `subnets` allows dividing network (subnetting). By default, it splits network into two subnets: ``` In [27]: list(subnet1.subnets()) Out[27]: [IPv4Network('80.0.1.0/29'), IPv4Network(u'80.0.1.8/29')] ``` Prefixlen_diff parameter allows you to specify the number of bits for subnets: ``` In [28]: list(subnet1.subnets(prefixlen_diff=2)) Out[28]: [IPv4Network('80.0.1.0/30'), IPv4Network('80.0.1.4/30'), IPv4Network('80.0.1.8/30'), IPv4Network('80.0.1.12/30')] ``` With `new_prefix` parameter you can specify which mask should be configured: ``` In [29]: list(subnet1.subnets(new_prefix=30)) Out[29]: [IPv4Network('80.0.1.0/30'), IPv4Network('80.0.1.4/30'), IPv4Network('80.0.1.8/30'), IPv4Network('80.0.1.12/30')] In [30]: list(subnet1.subnets(new_prefix=29)) Out[30]: [IPv4Network('80.0.1.0/29'), IPv4Network(u'80.0.1.8/29')] ``` IP addresses of network can be iterated in a loop: ``` In [31]: for ip in subnet1: ....: print(ip) ....: 80.0.1.0 80.0.1.1 80.0.1.2 80.0.1.3 80.0.1.4 80.0.1.5 80.0.1.6 80.0.1.7 80.0.1.8 80.0.1.9 80.0.1.10 80.0.1.11 80.0.1.12 80.0.1.13 80.0.1.14 80.0.1.15 ``` And it is possible to get a specific address: ``` In [32]: subnet1[0] Out[32]: IPv4Address('80.0.1.0') In [33]: subnet1[5] Out[33]: IPv4Address('80.0.1.5') ``` This way you can check if IP address is in the network: ``` In [34]: ip1 = ipaddress.ip_address('80.0.1.3') In [35]: ip1 in subnet1 Out[35]: True ``` # The function allows you to create an IPv4Interface or IPv6Interface object, respectively: ``` In [36]: int1 = ipaddress.ip_interface('10.0.1.1/24') ``` Using methods of IPv4Interface object you can get an address, mask or interface network: ``` In [37]: int1.ip Out[37]: IPv4Address('10.0.1.1') In [38]: int1.network Out[38]: IPv4Network('10.0.1.0/24') In [39]: int1.netmask Out[39]: IPv4Address('255.255.255.0') ``` ## Example of module usage# Since module has built-in address correctness checks, you can use them, for example, to check whether an address is a network or host address: ``` In [40]: IP1 = '10.0.1.1/24' In [41]: IP2 = '10.0.1.0/24' In [42]: def check_if_ip_is_network(ip_address): ....: try: ....: ipaddress.ip_network(ip_address) ....: return True ....: except ValueError: ....: return False ....: In [43]: check_if_ip_is_network(IP1) Out[43]: False In [44]: check_if_ip_is_network(IP2) Out[44]: True ``` `tabulate` is a module that allows you to display table data beautifully. It is not part of standard Python library, so `tabulate` needs to be installed: `pip install tabulate` Module supports such tabular data types as: list of lists (in general case - iterable of iterables) * dictionary list (or any other iterable object with dictionaries). Keys are used as column names * dictionary with iterable objects. Keys are used as column names Function tabulate() is used to generate table: ``` In [1]: from tabulate import tabulate In [2]: sh_ip_int_br = [('FastEthernet0/0', '15.0.15.1', 'up', 'up'), ...: ('FastEthernet0/1', '10.0.12.1', 'up', 'up'), ...: ('FastEthernet0/2', '10.0.13.1', 'up', 'up'), ...: ('Loopback0', '10.1.1.1', 'up', 'up'), ...: ('Loopback100', '100.0.0.1', 'up', 'up')] ...: In [4]: print(tabulate(sh_ip_int_br)) --------------- --------- -- -- FastEthernet0/0 15.0.15.1 up up FastEthernet0/1 10.0.12.1 up up FastEthernet0/2 10.0.13.1 up up Loopback0 10.1.1.1 up up Loopback100 100.0.0.1 up up --------------- --------- -- -- ``` ## headers# Parameter headers allows you to pass an additional argument that specifies column names: ``` In [8]: columns = ['Interface', 'IP', 'Status', 'Protocol'] In [9]: print(tabulate(sh_ip_int_br, headers=columns)) Interface IP Status Protocol --------------- --------- -------- ---------- FastEthernet0/0 15.0.15.1 up up FastEthernet0/1 10.0.12.1 up up FastEthernet0/2 10.0.13.1 up up Loopback0 10.1.1.1 up up Loopback100 100.0.0.1 up up ``` Quite often, the first data set is headers. Then it is enough to specify headers equal to “firstrow”: ``` In [18]: data Out[18]: [('Interface', 'IP', 'Status', 'Protocol'), ('FastEthernet0/0', '15.0.15.1', 'up', 'up'), ('FastEthernet0/1', '10.0.12.1', 'up', 'up'), ('FastEthernet0/2', '10.0.13.1', 'up', 'up'), ('Loopback0', '10.1.1.1', 'up', 'up'), ('Loopback100', '100.0.0.1', 'up', 'up')] In [20]: print(tabulate(data, headers='firstrow')) Interface IP Status Protocol --------------- --------- -------- ---------- FastEthernet0/0 15.0.15.1 up up FastEthernet0/1 10.0.12.1 up up FastEthernet0/2 10.0.13.1 up up Loopback0 10.1.1.1 up up Loopback100 100.0.0.1 up up ``` If data is in the form of a list of dictionaries, you should specify headers equal to “keys”: ``` In [22]: list_of_dict Out[22]: [{'IP': '15.0.15.1', 'Interface': 'FastEthernet0/0', 'Protocol': 'up', 'Status': 'up'}, {'IP': '10.0.12.1', 'Interface': 'FastEthernet0/1', 'Protocol': 'up', 'Status': 'up'}, {'IP': '10.0.13.1', 'Interface': 'FastEthernet0/2', 'Protocol': 'up', 'Status': 'up'}, {'IP': '10.1.1.1', 'Interface': 'Loopback0', 'Protocol': 'up', 'Status': 'up'}, {'IP': '100.0.0.1', 'Interface': 'Loopback100', 'Protocol': 'up', 'Status': 'up'}] In [23]: print(tabulate(list_of_dict, headers='keys')) Interface IP Status Protocol --------------- --------- -------- ---------- FastEthernet0/0 15.0.15.1 up up FastEthernet0/1 10.0.12.1 up up FastEthernet0/2 10.0.13.1 up up Loopback0 10.1.1.1 up up Loopback100 100.0.0.1 up up ``` Dict with lists in values: ``` In [6]: vlans = {"sw1": [10, 20, 30, 40], "sw2": [1, 2, 10], "sw3": [1, 2, 3, 4, 5, 10, 11, 12]} In [7]: print(tabulate(vlans, headers="keys")) sw1 sw2 sw3 ----- ----- ----- 10 1 1 20 2 2 30 10 3 40 4 5 10 11 12 ``` ## Table style# `tabulate` supports different table styles. Table in Grid format: ``` In [24]: print(tabulate(list_of_dict, headers='keys', tablefmt="grid")) +-----------------+-----------+----------+------------+ | Interface | IP | Status | Protocol | +=================+===========+==========+============+ | FastEthernet0/0 | 15.0.15.1 | up | up | +-----------------+-----------+----------+------------+ | FastEthernet0/1 | 10.0.12.1 | up | up | +-----------------+-----------+----------+------------+ | FastEthernet0/2 | 10.0.13.1 | up | up | +-----------------+-----------+----------+------------+ | Loopback0 | 10.1.1.1 | up | up | +-----------------+-----------+----------+------------+ | Loopback100 | 100.0.0.1 | up | up | +-----------------+-----------+----------+------------+ ``` Table in Markdown format: ``` In [25]: print(tabulate(list_of_dict, headers='keys', tablefmt='pipe')) | Interface | IP | Status | Protocol | |:----------------|:----------|:---------|:-----------| | FastEthernet0/0 | 15.0.15.1 | up | up | | FastEthernet0/1 | 10.0.12.1 | up | up | | FastEthernet0/2 | 10.0.13.1 | up | up | | Loopback0 | 10.1.1.1 | up | up | | Loopback100 | 100.0.0.1 | up | up | ``` Table in HTML format: ``` In [26]: print(tabulate(list_of_dict, headers='keys', tablefmt='html')) <table> <thead> <tr><th>Interface </th><th>IP </th><th>Status </th><th>Protocol </th></tr> </thead> <tbody> <tr><td>FastEthernet0/0</td><td>15.0.15.1</td><td>up </td><td>up </td></tr> <tr><td>FastEthernet0/1</td><td>10.0.12.1</td><td>up </td><td>up </td></tr> <tr><td>FastEthernet0/2</td><td>10.0.13.1</td><td>up </td><td>up </td></tr> <tr><td>Loopback0 </td><td>10.1.1.1 </td><td>up </td><td>up </td></tr> <tr><td>Loopback100 </td><td>100.0.0.1</td><td>up </td><td>up </td></tr> </tbody> </table> ``` ## Alignment of columns# You can specify alignment for columns: ``` In [27]: print(tabulate(list_of_dict, headers='keys', tablefmt='pipe', stralign='center')) | Interface | IP | Status | Protocol | |:---------------:|:---------:|:--------:|:----------:| | FastEthernet0/0 | 15.0.15.1 | up | up | | FastEthernet0/1 | 10.0.12.1 | up | up | | FastEthernet0/2 | 10.0.13.1 | up | up | | Loopback0 | 10.1.1.1 | up | up | | Loopback100 | 100.0.0.1 | up | up | ``` Note that not only columns are displayed centrally, but Markdown syntax has been changed accordingly. Articles from author `tabulate` : Stack Overflow: Printing Lists as Tabular Data. Note the answer - it contains other tabulate analogues. Module `pprint` allows you to show Python objects beautifully. This saves the structure of object. You can use the result that produces `pprint` to create object. Module `pprint` is part of standard Python library. The simplest use of module is ```pprint``` function. For example, a dictionary with nested dictionaries is displayed as follows: ``` In [6]: london_co = {'r1': {'hostname': 'london_r1', 'location': '21 New Globe Wal ...: k', 'vendor': 'Cisco', 'model': '4451', 'IOS': '15.4', 'IP': '10.255.0.1'} ...: , 'r2': {'hostname': 'london_r2', 'location': '21 New Globe Walk', 'vendor ...: ': 'Cisco', 'model': '4451', 'IOS': '15.4', 'IP': '10.255.0.2'}, 'sw1': {' ...: hostname': 'london_sw1', 'location': '21 New Globe Walk', 'vendor': 'Cisco ...: ', 'model': '3850', 'IOS': '3.6.XE', 'IP': '10.255.0.101'}} ...: In [7]: from pprint import pprint In [8]: pprint(london_co) {'r1': {'IOS': '15.4', 'IP': '10.255.0.1', 'hostname': 'london_r1', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'}, 'r2': {'IOS': '15.4', 'IP': '10.255.0.2', 'hostname': 'london_r2', 'location': '21 New Globe Walk', 'model': '4451', 'vendor': 'Cisco'}, 'sw1': {'IOS': '3.6.XE', 'IP': '10.255.0.101', 'hostname': 'london_sw1', 'location': '21 New Globe Walk', 'model': '3850', 'vendor': 'Cisco'}} ``` List of lists: ``` In [13]: interfaces = [['FastEthernet0/0', '15.0.15.1', 'YES', 'manual', 'up', 'up ...: '], ['FastEthernet0/1', '10.0.1.1', 'YES', 'manual', 'up', 'up'], ['FastE ...: thernet0/2', '10.0.2.1', 'YES', 'manual', 'up', 'down']] ...: In [14]: pprint(interfaces) [['FastEthernet0/0', '15.0.15.1', 'YES', 'manual', 'up', 'up'], ['FastEthernet0/1', '10.0.1.1', 'YES', 'manual', 'up', 'up'], ['FastEthernet0/2', '10.0.2.1', 'YES', 'manual', 'up', 'down']] ``` String: ``` In [18]: tunnel Out[18]: '\ninterface Tunnel0\n ip address 10.10.10.1 255.255.255.0\n ip mtu 1416\n ip ospf hello-interval 5\n tunnel source FastEthernet1/0\n tunnel protection ipsec profile DMVPN\n' In [19]: pprint(tunnel) ('\n' 'interface Tunnel0\n' ' ip address 10.10.10.1 255.255.255.0\n' ' ip mtu 1416\n' ' ip ospf hello-interval 5\n' ' tunnel source FastEthernet1/0\n' ' tunnel protection ipsec profile DMVPN\n') ``` ## Nesting restriction# Function `pprint` has an additional depth parameter that allows limiting the depth of data structure display. For example, there’s a dictionary: You can only display keys with depth equal to 1: ``` In [5]: pprint(result, depth=1) {'interface Tunnel0': [...], 'ip access-list standard LDP': [...], 'router bgp 100': {...}, 'router ospf 1': [...]} ``` Hidden nesting levels are replaced with `...` . If you specify a depth of 2, the next level is displayed: ## pformat# pformat() is a function that displays the result as a string. It is convenient to use if you want to write a data structure into a file, for example to log. ``` In [15]: from pprint import pformat In [16]: formatted_result = pformat(result) ## Task 12.1# Create a ping_ip_addresses function that checks if IP addresses are pingable. The function expects a list of IP addresses as an argument. To check the availability of an IP address, use the ping command. ## Task 12.2# The ping_ip_addresses function from task 12.1 only accepts a list of addresses, but it would be convenient to be able to specify addresses using a range, for example 192.168.100.1-10. In this task, you need to create a function convert_ranges_to_ip_list that converts a list of IP addresses in different formats into a list where each IP address is listed separately. The function expects as an argument a list containing IP addresses and/or ranges of IP addresses. List items can be in the format: 10.1.1.1 * 10.1.1.1-10.1.1.10 * 10.1.1.1-10 If the address is specified as a range, the range must be expanded into individual addresses, including the last address in the range. To simplify the task, we can assume that only the last octet of the address changes in the range. The function returns a list of IP addresses. For example, if you pass the following list to the convert_ranges_to_ip_list function: ``` ['8.8.4.4', '1.1.1.1-3', '172.21.41.128-172.21.41.132'] ``` The function should return a list like this: ``` ['8.8.4.4', '1.1.1.1', '1.1.1.2', '1.1.1.3', '172.21.41.128', '172.21.41.129', '172.21.41.130', '172.21.41.131', '172.21.41.132'] ``` ## Task 12.3# Create a function print_ip_table that prints a table of available and unavailable IP addresses. The function expects two lists as arguments: The result of the function is printing a table to the stdout: ``` Reachable Unreachable ----------- ------------- 10.1.1.1 10.1.1.7 10.1.1.2 10.1.1.8 10.1.1.9 ``` # 13. Iterators, iterable and generators# 13. Iterators, iterable and generators# This section discusses: iterable iterators generator expressions Iteration is a generic term that describes the procedure for taking elements of something in turn. In a more general sense, it is a sequence of instructions that is repeated a certain number of times or before the specified condition is fulfilled. An iterable is an object that can return elements one at a time. It is also an object from which an iterator can be derived. Examples of iterables: all sequences: list, string, tuple * dicts * files In Python, the `iter` function is responsible for getting an iterator: `iter` function will work on any object that has `__iter__` or `__getitem__` method. `__iter__` method returns an iterator. If this method is not available, `iter` function checks if there is `__getitem__` method that allows getting elements by index. If method `__getitem__` is present an iterator is returned, which iterates through the elements using index (starting with 0). In practice, the use of `__getitem__` means that all sequence elements are iterable objects. For example, a list, a tuple, a string. Although these data types have `__iter__` method. Iterator is an object that returns its elements one at a time. From Python point of view, it is any object that has `__next__` method. This method returns the next item if any, or returns `StopIteration` exception when items are finished. In addition, iterator remembers which object it stopped at in the last iteration. In Python, each iterator has `__iter__` method - that is, every iterator is an iterable. This method simply returns iterator itself. An example of creating an iterator from a list: ``` In [3]: numbers = [1, 2, 3] In [4]: i = iter(numbers) ``` After elements are finished, `StopIteration` exception is raised. Note To make iterator to return elements again, it has to be re-created. Similar actions are performed when loop for processes a list: When we iterate over the list items, the `iter` function is first applied to the list to create the iterator, and then its `__next__` method is called until a `StopIteration` exception is raised. Iterators are useful because they give elements one at a time. For example, when working with a file, it is useful that memory will not contain the whole file, but only one line of a file. ## File as iterator# One of the most common examples of an iterator is a file (r1.txt): If you open a file with the `open` function, an object is returned that represents the file: This object is an iterator that can be verified by calling `__next__` method: ``` In [11]: f.__next__() Out[11]: '!\n' In [12]: f.__next__() Out[12]: 'service timestamps debug datetime msec localtime show-timezone year\n' ``` You can also go through lines using for loop: ``` In [13]: for line in f: ...: print(line.rstrip()) ...: service timestamps log datetime msec localtime show-timezone year service password-encryption service sequence-numbers ! no ip domain lookup ! ip ssh version 2 ! ``` When working with files, using a file as an iterator does not simply allow iterate file line by line - only one line is loaded into each iteration. This is very important when working with large files of thousands and hundreds of thousands of lines, such as log files. Therefore, when working with files in Python, the most commonly used expression is: ``` In [14]: with open('r1.txt') as f: ...: for line in f: ...: print(line.rstrip()) ...: ! service timestamps debug datetime msec localtime show-timezone year service timestamps log datetime msec localtime show-timezone year service password-encryption service sequence-numbers ! no ip domain lookup ! ip ssh version 2 ! ``` Generators are a special class of functions that allows you to easily create your own iterators. Unlike regular functions, a generator doesn’t just return a value and exit, but returns an iterator that returns the elements one at a time. Generators are not covered in this book and are only mentioned here because they are a fairly straightforward way to create iterators. More about generators A normal function exits if: execution reached the `return` statement * function code is ended (this works as `return None` expression) * an exception raised After function execution is finished the control is returned and program execution goes further. All arguments that were passed to function like local variables, all of this is lost. Only the result that returned a function remains. A function can return a list of elements, multiple objects or different results depending on arguments, but it always returns a single result. Generator generates values. Values are then returned on demand and after return of one value a function-generator is suspended until the next value is requested. Between requests, generator retains its state. Python allows generators to be created in two ways: generator expression * generator function ## generator expression# Generator expression uses the same syntax as a list comprehensions, but returns iterator, not list (notе the parentheses instead of the square brackets): ``` In [1]: genexpr = (x**2 for x in range(10000)) In [2]: genexpr Out[2]: <generator object <genexpr> at 0xb571ec8cIn [3]: next(genexpr) Out[3]: 0 In [4]: next(genexpr) Out[4]: 1 In [5]: next(genexpr) Out[5]: 4 ``` It is useful when working with a large iterable object or infinite iterator. Further reading# Documentation Python: Sequence types Iterator types Functional Programming HOWTO Articles: Iterables vs. Iterators vs. Generators A regular expression is a sequence of ordinary and special characters. This sequence specifies a template that is later used to find search pattern. When working with network equipment, regular expressions can be used, for example, to: retrieve information from show command output * select a portion of lines from show command output that matches the template * check whether there are certain settings in configuration A few examples are: After processing the output of show version command, you can collect information about OS version and uptime. * get from log file the lines that correspond to the template. * get from configuration those interfaces that do not have a description In addition, in network equipment the regular expressions can be used to filter the output of any show commands. In general, use of regular expressions will involve getting part of a text out of a large output. But that’s not the only thing they can be used for. For example, regular expressions can be used to perform string replacements or for dividing a string. These areas of use overlap with methods that apply to strings. And if problemi is clear and simple to solve with string methods, it is better to use them. This code will be easier to understand and, in addition, string methods work faster. But string methods may not solve all problems or may make problem much harder to solve. Regular expressions can help in this case. # 14. Regular expression (regex) syntax# Hide navigation sidebar Hide table of contents sidebar Back to top Toggle Light / Dark / Auto color theme Toggle table of contents sidebar 14. Regular expression (regex) syntax # Python uses `re` module to work with regular expressions (regex). To get started with regular expressions, you need to import `re` module. This section will use `search` function for all examples. And in the next chapter, the rest of functions of `re` module will be covered. Syntax of `search` function is: ``` match = re.search(pattern, string, flags=0) ``` Function `search` has three parameters: pattern - regular expression * string - string in which search pattern is searched * flags - change regex behavior (covered in next chapter) If a match is found, function will return special object Match. If there is no match, function will return None. Important distinction of `search` function is that it only looks for a first match. That is, if there are several substrings in a line that correspond to a regex, `search` will return only the first match found. The simplest example of a regex is a substring: In [3]: match = re.search('MTU', int_line) ``` In this example: first import module `re` * then goes an example of string int_line * in line 3 a search pattern is passed to `search` function plus string int_line in which the match is searched In this case we are simply looking for whether there is ‘MTU’ substring in string int_line. If it exists, `match` variable will contain a special Match object: ``` In [4]: print(match) <_sre.SRE_Match object; span=(2, 5), match='MTU'> ``` Match object has several methods that allow to get different information about received match. For example, `group` method shows that string matches an expression described. In this case, it’s just a ‘MTU’ substring: ``` In [5]: match.group() Out[5]: 'MTU' ``` If there was no match, `match` variable will have None value: In [7]: match = re.search('MU', int_line) In [8]: print(match) None ``` The full potential of regular expressions is revealed when using special characters. For example, symbol `\d` means a digit, `+` means repetition of previous symbol one or more times. If you combine them `\d+` , you get an expression that means one or more digits. Using this expression, you can get the part of string that describes bandwidth: In [10]: match = re.search('BW \d+', int_line) In [11]: match.group() Out[11]: 'BW 10000' ``` Regular expressions are particularly useful in getting certain substrings from a string. For example, it is necessary to get VLAN, MAC and ports from the output of such log message: ``` In [12]: log2 = 'Oct 3 12:49:15.941: %SW_MATM-4-MACFLAP_NOTIF: Host f04d.a206.7fd6 in vlan 1 is flapping between port Gi0/5 and port Gi0/16' ``` This can be done with regex: ``` In [13]: re.search('Host (\S+) in vlan (\d+) is flapping between port (\S+) and port (\S+)', log2).groups() Out[13]: ('f04d.a206.7fd6', '1', 'Gi0/5', 'Gi0/16') ``` Method `group` returns only those parts of original string that are in parentheses. Thus, by placing a part of expression in parentheses, you can specify which parts of the line you want to remember. Expression `\d+` has been used before - it describes one or more digits. And expression `\S+` describes all characters except whitespace (space, tab, etc.). The following subsections deal with special characters that are used in regular expressions. Note If you know what special characters mean in regular expressions, you can skip the following subsection and immediately switch to subsection about module `re` . Python has special designations for character sets: * `\d` - any digit * `\D` - any non-numeric value * `\s` - whitespace character * `\S` - all except whitespace characters * `\w` - any letter, digit or underline character * `\W` - all except letter, digit or underline character Note These are not all character sets that support Python. See documentation for details. Character sets allow you to write shorter expressions without having to list all necessary characters. For example, get time from log file string: ``` In [1]: log = '*Jul 7 06:15:18.695: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/3, changed state to down' In [2]: re.search('\d\d:\d\d:\d\d', log).group() Out[2]: '06:15:18' ``` Expression `\d\d:\d\d:\d\d` describes 3 pairs of numbers separated by colons. Getting MAC address from log message: In [4]: re.search('\w\w\w\w\.\w\w\w\w\.\w\w\w\w', log2).group() Out[4]: 'f03a.b216.7ad7' ``` ``` \w\w\w\w\.\w\w\w\w\.\w\w\w\w ``` describes 12 letters or digits that are divided into three groups of four characters and separated by dot. Symbol groups are very convenient, but for now it is necessary to manually specify a character repetition. The following subsection covers repetition symbols which will simplify description of expressions. * `regex+` - one or more repetitions of preceding element * `regex*` - zero or more repetitions of preceding element * `regex?` – zero or one repetition of preceding element * `regex{n}` - exactly n repetitions of preceding element * `regex{n,m}` - from n to m repetitions of preceding element * `regex{n,}` - n or more repetitions of preceding element `+` # Plus indicates that the previous expression can be repeated as many times as you like, but at least once. For example, here the repetition refers to letter ‘a’: In [2]: re.search('a+', line).group() Out[2]: 'aa' ``` And in this expression, string ‘a1’ is repeated: In [4]: re.search('(a1)+', line).group() Out[4]: 'a1a1' ``` Expresson `(a1)+` uses parentheses to specify that repetition is related to sequence of symbols ‘a1’. IP address can be described by `\d+\.\d+\.\d+\.\d+` . Plus is used to indicate that there can be several digits. Expression `\.` is required because the dot is a special symbol (it denotes any symbol). And in order to indicate that we are interested in a dot as a symbol, you have to screen it - put a backslash in front of a dot. Using this expression, you can get an IP address from sh_ip_int_br string: ``` In [5]: sh_ip_int_br = 'Ethernet0/1 192.168.200.1 YES NVRAM up up' In [6]: re.search('\d+\.\d+\.\d+\.\d+', sh_ip_int_br).group() Out[6]: '192.168.200.1' ``` Another example of an expression: `\d+\s+\S+` - describes a string which has digits first, then whitespace characters, and then non-whitespace characters (all except space, tab, and other similar characters). Using it you can get VLAN and MAC address from string: In [8]: re.search('\d+\s+\S+', line).group() Out[8]: '1500 aab1.a1a1.a5d3' ``` `*` # Asterisk indicates that the previous expression can be repeated 0 or more times. For example, if an asterisk stands after `a` symbol, it means a repetition of that symbol. Expression `ba*` means `b` and then zero or more repetitions of `a` : ``` In [9]: line = '100 a011.baaa.a5d3 FastEthernet0/1' In [10]: re.search('ba*', line).group() Out[10]: 'baaa' ``` If `b` occurs in line before `baaa` , then `b` will match: ``` In [11]: line = '100 ab11.baaa.a5d3 FastEthernet0/1' In [12]: re.search('ba*', line).group() Out[12]: 'b' ``` Suppose you write a regex that describes email addresses in two formats: <EMAIL> and <EMAIL>. That is, the left side of address can have either one word or two words separated by a dot. The first version is an example of email without a dot: ``` In [13]: email1 = '<EMAIL>' ``` This address can be described by `\w+@\w+\.\w+` : ``` In [14]: re.search('\w+@\w+\.\w+', email1).group() Out[14]: '<EMAIL>' ``` But such an expression is not suitable for an email address with a dot: ``` In [15]: email2 = '<EMAIL>' In [16]: re.search('\w+@\w+\.\w+', email2).group() Out[16]: '<EMAIL>' ``` Regex for email with a dot: ``` In [17]: re.search('\w+\.\w+@\w+\.\w+', email2).group() Out[17]: '<EMAIL>' ``` To describe both email, you have to specify that the dot is optional: `'\w+\.*\w+@\w+\.\w+'` This regex describes both options: ``` In [18]: email1 = '<EMAIL>' In [19]: email2 = '<EMAIL>' In [20]: re.search('\w+\.*\w+@\w+\.\w+', email1).group() Out[20]: '<EMAIL>' In [21]: re.search('\w+\.*\w+@\w+\.\w+', email2).group() Out[21]: '<EMAIL>' ``` `?` # In the last example, regex indicates that the dot is optional, but at the same time determines that it can appear many times. In this situation, it is more logical to use a question mark. It denotes zero or one repetition of a preceding expression or symbol. Now regex looks like `\w+\.?\w+@\w+\.\w+` : ``` In [22]: mail_log = ['Jun 18 14:10:35 client-ip=154.10.180.10 from=<EMAIL>, size=551', ...: 'Jun 18 14:11:05 client-ip=150.10.180.10 from=<EMAIL>, size=768'] In [23]: for message in mail_log: ...: match = re.search('\w+\.?\w+@\w+\.\w+', message) ...: if match: ...: print("Found email: ", match.group()) ...: Found email: <EMAIL> Found email: <EMAIL> ``` `{n}` # You can set how many times the previous expression should be repeated with curly braces. For example, expression `\w{4}\.\w{4}\.\w{4}` describes 12 letters or digits that are divided into three groups of four characters and separated by dot. This way you can get a MAC address: In [25]: re.search('\w{4}\.\w{4}\.\w{4}', line).group() Out[25]: 'aab1.a1a1.a5d3' ``` You can specify a repetition range in curly braces. For example, try to get all VLAN numbers from string mac_table: ``` In [26]: mac_table = ''' ...: sw1#sh mac address-table ...: Mac Address Table ...: ------------------------------------------- ...: ...: Vlan Mac Address Type Ports ...: ---- ----------- -------- ----- ...: 100 a1b2.ac10.7000 DYNAMIC Gi0/1 ...: 200 a0d4.cb20.7000 DYNAMIC Gi0/2 ...: 300 acb4.cd30.7000 DYNAMIC Gi0/3 ...: 1100 a2bb.ec40.7000 DYNAMIC Gi0/4 ...: 500 aa4b.c550.7000 DYNAMIC Gi0/5 ...: 1200 a1bb.1c60.7000 DYNAMIC Gi0/6 ...: 1300 aa0b.cc70.7000 DYNAMIC Gi0/7 ...: ''' ``` Since `search` only looks for the first match, expression `\d{1,4}` will have VLAN number: ``` In [27]: for line in mac_table.split('\n'): ...: match = re.search('\d{1,4}', line) ...: if match: ...: print('VLAN: ', match.group()) ...: VLAN: 1 VLAN: 100 VLAN: 200 VLAN: 300 VLAN: 1100 VLAN: 500 VLAN: 1200 VLAN: 1300 ``` Expression `\d{1,4}` describes one to four digits. Note that the output of command from equipment does not have a VLAN with number 1. Regex got a number 1 from somewhere. Number 1 was in the output from hostname in line ``` sw1#sh mac address-table ``` . To correct this, it suffices to complete an expression and indicate that at least one space must follow the numbers: ``` In [28]: for line in mac_table.split('\n'): ...: match = re.search('\d{1,4} +', line) ...: if match: ...: print('VLAN: ', match.group()) ...: VLAN: 100 VLAN: 200 VLAN: 300 VLAN: 1100 VLAN: 500 VLAN: 1200 VLAN: 1300 ``` * `.` - any character except new line character * `^` - beginning of line * `$` - end of line * `[abc]` - any symbol in square brackets * `[^abc]` - any symbol except those in square brackets * `a|b` - element a or b * `(regex)` - expression is treated as one element. In addition, substring that matches an expression is memorized `.` # Dot represents any symbol. Most often, a dot is used with repetition symbols `+` and `*` to indicate that any character can be found between certain expressions. For example, using expression `Interface.+Port ID.+` you can describe a line with interfaces in the output “sh cdp neighbors detail”: ``` In [1]: cdp = ''' ...: SW1#show cdp neighbors detail ...: ------------------------- ...: Device ID: SW2 ...: Entry address(es): ...: IP address: 10.1.1.2 ...: Platform: cisco WS-C2960-8TC-L, Capabilities: Switch IGMP ...: Interface: GigabitEthernet1/0/16, Port ID (outgoing port): GigabitEthernet0/1 ...: Holdtime : 164 sec ...: ''' In [2]: re.search('Interface.+Port ID.+', cdp).group() Out[2]: 'Interface: GigabitEthernet1/0/16, Port ID (outgoing port): GigabitEthernet0/1' ``` The result was only one string as the dot represents any character except line feed character. In addition, repetition characters `+` and `*` by default capture the longest string possible. This aspect is addressed in subsection “Greedy qualifiers”. `^` # Character `^` means the beginning of line. Expression `^\d+` corresponds to substring: In [4]: re.search('^\d+', line).group() Out[4]: '100' ``` Characters from beginning of line to pound sign (including pound): ``` In [5]: prompt = 'SW1#show cdp neighbors detail' In [6]: re.search('^.+#', prompt).group() Out[6]: 'SW1#' ``` `$` # Symbol `$` represents the end of a line. Expression `\S+$` describes any characters except whitespace at the end of line: In [8]: re.search('\S+$', line).group() Out[8]: 'FastEthernet0/1' ``` `[]` # Symbols that are listed in square brackets mean that any of these symbols will be a match. Thus, different registers can be described: In [10]: re.search('[Ff]ast', line).group() Out[10]: 'Fast' In [11]: re.search('[Ff]ast[Ee]thernet', line).group() Out[11]: 'FastEthernet' ``` Using square brackets, you can specify which characters may meet at a specific position. For example, expression `^.+[>#]` describes characters from the beginning of a line to `#` or `>` sign (including them). This expression can be used to get the name of device: ``` In [12]: commands = ['SW1#show cdp neighbors detail', ...: 'SW1>sh ip int br', ...: 'r1-london-core# sh ip route'] ...: In [13]: for line in commands: ...: match = re.search('^.+[>#]', line) ...: if match: ...: print(match.group()) ...: SW1# SW1> r1-london-core# ``` You can specify character ranges in square brackets. For example, any number from 0 to 9: In [15]: re.search('[0-9]+', line).group() Out[15]: '100' ``` Letters: In [17]: re.search('[a-z]+', line).group() Out[17]: 'aa' In [18]: re.search('[A-Z]+', line).group() Out[18]: 'F' ``` Several ranges may be indicated in square brackets: In [20]: re.search('[a-f0-9]+\.[a-f0-9]+\.[a-f0-9]+', line).group() Out[20]: 'aa12.35fe.a5d3' ``` ``` [a-f0-9]+\.[a-f0-9]+\.[a-f0-9]+ ``` describes three groups of symbols separated by a dot. Characters in each group can be letters a-f or digits 0-9. This expression describes MAC address. Another feature of square brackets is that the special symbols within square brackets lose their special meaning and are simply a symbol. For example, a dot inside square brackets will denote a dot, not any symbol. Expression ``` [a-f0-9]+[./][a-f0-9]+ ``` describes three groups of symbols: letters a-f or digits 0-9 * dot or slash * letters a-f or digits 0-9 For `line` string the match will be a such substring: In [22]: re.search('[a-f0-9]+[./][a-f0-9]+', line).group() Out[22]: 'aa12.35fe' ``` If first symbol in square brackets is `^` , match will be any symbol except those in brackets. ``` In [23]: line = 'FastEthernet0/0 15.0.15.1 YES manual up up' In [24]: re.search('[^a-zA-Z]+', line).group() Out[24]: '0/0 15.0.15.1 ' ``` In this case, expression describes everything except letters. `|` # Pipe symbol works like ‘or’: In [26]: re.search('Fast|0/1', line).group() Out[26]: 'Fast' ``` Note how `|` works - Fast и 0/1 are treated as an whole expression. So in the end, expression means that we’re looking for Fast or 0/1. `()` # Parentheses are used to group expressions. As in mathematical expressions, parentheses can be used to indicate which elements the operation is applied to. For example, expression ``` [0-9]([a-f]|[0-9])[0-9] ``` describes three characters: digit, then a letter or digit and digit: In [28]: re.search('[0-9]([a-f]|[0-9])[0-9]', line).group() Out[28]: '100' ``` Parentheses allow to indicate which expression is a one entity. This is particularly useful when using repetition symbols: ``` In [29]: line = 'FastEthernet0/0 15.0.15.1 YES manual up up' In [30]: re.search('([0-9]+\.)+[0-9]+', line).group() Out[30]: '15.0.15.1' ``` Parentheses not only allow you to group expressions. String that matches expression in parentheses is memorized. It can be obtained separately by special methods `groups` and `group(n)` . This is covered in subsection “Grouping”. By default, `*` , `+` , and `?` qualifiers are all greedy - they match as much text as possible. An example of greedy behavior: In [2]: line = '<text line> some text>' In [3]: match = re.search('<.*>', line) In [4]: match.group() Out[4]: '<text line> some text>' ``` In this case, expression captured maximum possible piece of symbols contained in `<>` . If greedy behavior need to be disabled, just add a question mark after the repetition symbols: ``` In [5]: line = '<text line> some text>' In [6]: match = re.search('<.*?>', line) In [7]: match.group() Out[7]: '<text line>' ``` But greed is often useful. For example, without turning off greed of the last plus, expression `\d+\s+\S+` describes line: In [9]: re.search('\d+\s+\S+', line).group() Out[9]: '1500 aab1.a1a1.a5d3' ``` Symbol `\S` denotes everything except whitespace characters. Therefore, expression `\S+` with greedy repetition symbol describes maximum long string until the first whitespace character. In this case up to the first space. If greed is disabled, the result is: ``` In [10]: re.search('\d+\s+\S+?', line).group() Out[10]: '1500 a' ``` Grouping indicates that sequence of symbols should be considered as a one. However, this is not the only advantage of grouping. In addition, by use of groups you can get only a certain portion of string that has been described by expression. For example, from a log file you should select strings in which “%SW_MATM-4-MACFLAP_NOTIF” match occur and then from each such string get MAC address, VLAN and interfaces. In this case, regex has to describe a string and all parts of string to be remembered are placed in parentheses. For example, from the log file, you need to select the lines that contain “%SW_MATM-4-MACFLAP_NOTIF”, and then get the MAC address, VLAN and interfaces from each such line. In this case, the regex not only describes the string, but also indicates all parts of the string to be returned in parentheses. Python has two options for using groups: Numbered groups * Named groups ## Numbered groups# Group is defined by placing expression in parentheses `()` . Inside expression, group are numbered from left to right starting with 1. Groups can then be selected by numbers to get text that corresponds to group expression. Example of groups use: ``` In [8]: line = "FastEthernet0/1 10.0.12.1 YES manual up up" In [9]: match = re.search('(\S+)\s+([\w.]+)\s+.*', line) ``` In this example, two groups are specified: first group - any characters other than whitespaces * second group - any letter or digit (symbol `\w` ) or dot The second group could be described as the first. Other version is just for example. You can now access a group by number. Group 0 is a string that corresponds to the entire match: ``` In [10]: match.group(0) Out[10]: 'FastEthernet0/1 10.0.12.1 YES manual up up' In [11]: match.group(1) Out[11]: 'FastEthernet0/1' In [12]: match.group(2) Out[12]: '10.0.12.1' ``` If necessary, you can list several group numbers: ``` In [13]: match.group(1, 2) Out[13]: ('FastEthernet0/1', '10.0.12.1') In [14]: match.group(2, 1, 2) Out[14]: ('10.0.12.1', 'FastEthernet0/1', '10.0.12.1') ``` Starting with Python 3.6, groups can be accessed as follows: ``` In [15]: match[0] Out[15]: 'FastEthernet0/1 10.0.12.1 YES manual up up' In [16]: match[1] Out[16]: 'FastEthernet0/1' In [17]: match[2] Out[17]: '10.0.12.1' ``` Method `groups` is used to return all substrings that correspond to groups: ``` In [18]: match.groups() Out[18]: ('FastEthernet0/1', '10.0.12.1') ``` ## Named groups# When expression is complex, it is not very convenient to determine number of group. Plus, when you modify an expression the order of groups can be changed and you will need to change the code that refers to groups. Named groups allow you to give a name to the group. Syntax of named group `(?P<name>regex)` : ``` In [19]: line = "FastEthernet0/1 10.0.12.1 YES manual up up" In [20]: match = re.search('(?P<intf>\S+)\s+(?P<address>\S+)\s+', line) ``` These groups can now be accessed by name: ``` In [21]: match.group('intf') Out[21]: 'FastEthernet0/1' In [22]: match.group('address') Out[22]: '10.0.12.1' ``` It is also very useful that with `groupdict` method you can get a dictionary where keys are the names of groups and values are the substrings that correspond to them: ``` In [23]: match.groupdict() Out[23]: {'address': '10.0.12.1', 'intf': 'FastEthernet0/1'} ``` And then you can add groups to regex and rely on their name instead of order: ``` In [24]: match = re.search('(?P<intf>\S+)\s+(?P<address>\S+)\s+\w+\s+\w+\s+(?P<status>up|down)\s+(?P<protocol>up|down)', line) In [25]: match.groupdict() Out[25]: {'address': '10.0.12.1', 'intf': 'FastEthernet0/1', 'protocol': 'up', 'status': 'up'} ``` Consider another example of using named groups. In this example, the task is to get from the output of ‘show ip dhcp snooping binding’ the fields: MAC address, IP address, VLAN and interface. File dhcp_snooping.txt contains the output of command ‘show ip dhcp snooping binding’: Let’s start with one string: In regex terms, named groups are used for those parts of the output that need to be remembered: ``` In [2]: match = re.search('(?P<mac>\S+) +(?P<ip>\S+) +\d+ +\S+ +(?P<vlan>\d+) +(?P<port>\S+)', line) ``` Comments on regex: * `(?P<mac>\S+) +` - group with name ‘mac’ matches any characters except whitespace characters. regex describes a sequence of any characters before space * `(?P<ip>\S+) +` - the same here: a sequence of any non-whitespace characters up to space. Group name - ‘ip’ * `\d+ +` - numerical sequence (one or more digits) followed by one or more spaces. Lease value gets here * `\S+ +` - sequence of any characters other than whitespace. This matches Type (in this case all of them ‘dhcp-snooping’) * `(?P<vlan>\d+) +` - named group ‘vlan’. Only numerical sequences with one or more characters are included here * `(?P<port>\S+)` - named group ‘port’. All characters except whitespace are included here As a result, `groupdict` method will return such a dictionary: ``` In [3]: match.groupdict() Out[3]: {'int': 'FastEthernet0/1', 'ip': '10.1.10.2', 'mac': '00:09:BB:3D:D6:58', 'vlan': '10'} ``` Since regex has worked well, you can create a script. In script all lines of dhcp_snooping.txt file are iterated and information about devices is displayed on the standard output stream (parse_dhcp_snooping.py): #'00:09:BB:3D:D6:58 10.1.10.2 86250 dhcp-snooping 10 FastEthernet0/1' regex = re.compile('(?P<mac>\S+) +(?P<ip>\S+) +\d+ +\S+ +(?P<vlan>\d+) +(?P<port>\S+)') result = [] with open('dhcp_snooping.txt') as data: for line in data: match = regex.search(line) if match: result.append(match.groupdict()) print(f'{len(result)} devices connected to switch') for num, comp in enumerate(result, 1): print(f'Parameters of device {num}:') for key in comp: print(f'{key:10}: {comp[key]:10}') ``` ``` $ python parse_dhcp_snooping.py 4 devices connected to switch Parameters of device 1: int: FastEthernet0/1 ip: 10.1.10.2 mac: 00:09:BB:3D:D6:58 vlan: 10 Parameters of device 2: int: FastEthernet0/10 ip: 10.1.5.2 mac: 00:04:A3:3E:5B:69 vlan: 5 Parameters of device 3: int: FastEthernet0/9 ip: 10.1.5.4 mac: 00:05:B3:7E:9B:60 vlan: 5 Parameters of device 4: int: FastEthernet0/3 ip: 10.1.10.6 mac: 00:09:BC:3F:A6:50 vlan: 10 ``` By default, everything that fell into the group is remembered. It’s called a capturing group. Sometimes parentheses are needed to indicate a part of expression that repeats. And, in doing so, you don’t need to remember an expression. For example, get a MAC address, VLAN and ports from log message: A regex that describes substrings: ``` In [2]: match = re.search('((\w{4}\.){2}\w{4}).+vlan (\d+).+port (\S+).+port (\S+)', log) ``` Expression consists of the following parts: * `((\w{4}\.){2}\w{4})` - MAC address gets here * `\w{4}\.` - this part describes 4 letters or digits and a dot * `(\w{4}\.){2}` - here parentheses are used to indicate that 4 letters or digits and a dot are repeated twice * `\w{4}` - then 4 letters or numbers * `.+vlan (\d+)` - VLAN number falls into the group * `.+port (\S+)` - first interface * `.+port (\S+)` - second interface Method `groups` returns: ``` In [3]: match.groups() Out[3]: ('f03a.b216.7ad7', 'b216.', '10', 'Gi0/5', 'Gi0/15') ``` The second element is essentially superfluous. It appeared in the output because of parentheses in expression `(\w{4}\.){2}` . In this case, you need to disable capture in the group. This is done by adding `?:` after the group’s opening parenthesis. Now the expression looks like this: ``` In [4]: match = re.search('((?:\w{4}\.){2}\w{4}).+vlan (\d+).+port (\S+).+port (\S+)', log) ``` Accordingly, `groups` method returns: ``` In [5]: match.groups() Out[5]: ('f03a.b216.7ad7', '10', 'Gi0/5', 'Gi0/15') ``` When working with groups, you can use the result that matched with the group, further in the same expression. For example, in the output of ‘sh ip bgp’ the last column describes AS Path attribute (through which autonomous systems the route passed): ``` In [1]: bgp = ''' ...: R9# sh ip bgp | be Network ...: Network Next Hop Metric LocPrf Weight Path ...: * 192.168.66.0/24 192.168.79.7 0 500 500 500 i ...: *> 192.168.89.8 0 800 700 i ...: * 192.168.67.0/24 192.168.79.7 0 0 700 700 700 i ...: *> 192.168.89.8 0 800 700 i ...: * 192.168.88.0/24 192.168.79.7 0 700 700 700 i ...: *> 192.168.89.8 0 0 800 800 i ...: ''' ``` Suppose you get those prefixes where the same AS number repeats several times in the path. This can be done by reference to a result that has been captured by the group. For example, such an expression displays all lines in which the same number is repeated at least twice: ``` In [2]: for line in bgp.split('\n'): ...: match = re.search(r'(\d+) \1', line) ...: if match: ...: print(line) ...: * 192.168.66.0/24 192.168.79.7 0 500 500 500 i * 192.168.67.0/24 192.168.79.7 0 0 700 700 700 i * 192.168.88.0/24 192.168.79.7 0 700 700 700 i *> 192.168.89.8 0 0 800 800 i ``` In this expression, `\1` denotes the result that falls into the group. Number one indicates a specific group. In this case, it’s Group 1, it’s only one group here. Similarly, you can describe strings where the same number occurs three times: ``` In [3]: for line in bgp.split('\n'): ...: match = re.search(r'(\d+) \1 \1', line) ...: if match: ...: print(line) ...: * 192.168.66.0/24 192.168.79.7 0 500 500 500 i * 192.168.67.0/24 192.168.79.7 0 0 700 700 700 i * 192.168.88.0/24 192.168.79.7 0 700 700 700 i ``` You can reffer to the result which was captured by named group: ``` In [129]: for line in bgp.split('\n'): ...: match = re.search('(?P<as>\d+) (?P=as)', line) ...: if match: ...: print(line) ...: * 192.168.66.0/24 192.168.79.7 0 500 500 500 i * 192.168.67.0/24 192.168.79.7 0 0 700 700 700 i * 192.168.88.0/24 192.168.79.7 0 700 700 700 i *> 192.168.89.8 0 0 800 800 i ``` Python uses `re` module to work with regular expressions. Core functions of `re` module: * `match` - searches a sequence at the beginning of the line * `search` - searches for first match with template * `findall` - searches for all matches with template. Returns the resulting strings as a list * `finditer` - searches for any matches with template. Returns an iterator * `compile` - compiles regex. You can then apply all of listed functions to this object * `fullmatch` - the entire line must conform to regex described In addition to functions that search matches, module has the following functions: * `re.sub` - for replacement in strings * `re.split` - to split string into parts In `re` module, several functions return Match object if a match is found: * `search` * `match` * `finditer` - returns an iterator with Match objects This subsection covers methods of Match object. Example of Match object: In [2]: match = re.search(r'Host (\S+) in vlan (\d+) .* port (\S+) and port (\S+)', log) In [3]: match Out[3]: <_sre.SRE_Match object; span=(47, 124), match='Host f03a.b216.7ad7 in vlan 10 is flapping betwee>' ``` The 3rd line output simply displays information about object. Therefore, it is not necessary to rely on what is displayed in match part as displayed line is cut by a fixed number of characters. `group` # Method `group` returns a substring that matches an expression or an expression in a group. If method is called without arguments, the whole substring is displayed: ``` In [4]: match.group() Out[4]: 'Host f03a.b216.7ad7 in vlan 10 is flapping between port Gi0/5 and port Gi0/15' ``` The same result returns group 0: ``` In [5]: match.group(0) Out[5]: 'Host f03a.b216.7ad7 in vlan 10 is flapping between port Gi0/5 and port Gi0/15' ``` Other numbers show only the contents of relevant group: ``` In [6]: match.group(1) Out[6]: 'f03a.b216.7ad7' In [7]: match.group(2) Out[7]: '10' In [8]: match.group(3) Out[8]: 'Gi0/5' In [9]: match.group(4) Out[9]: 'Gi0/15' ``` If you call a `group` method with a group number that is larger than number of existing groups, there is an error: ``` In [10]: match.group(5) ----------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-18-9df93fa7b44b> in <module>() ----> 1 match.group(5) IndexError: no such group ``` If you call a method with multiple group numbers, the result is a tuple with strings that correspond to matches: ``` In [11]: match.group(1, 2, 3) Out[11]: ('f03a.b216.7ad7', '10', 'Gi0/5') ``` Group may not get anything, then it will be matched with an empty string: In [13]: match = re.search(r'Host (\S+) in vlan (\D*)', log) In [14]: match.group(2) Out[14]: '' ``` If group describes a part of template and there are more than one match, method displays the last match: In [16]: match = re.search(r'Host (\w{4}\.)+', log) In [17]: match.group(1) Out[17]: 'b216.' ``` This is because expression in parentheses describes four letters or numbers, dot and then there is a plus. The first and the second part of MAC address matched to expression in parentheses. But only the last expression is remembered and returned. If named groups are used in expression, group name can be passed to `group` method and the corresponding substring can be obtained: In [20]: match.group('mac') Out[20]: 'f03a.b216.7ad7' In [21]: match.group('int2') Out[21]: 'Gi0/15' ``` Groups are also available via number: ``` In [22]: match.group(3) Out[22]: 'Gi0/5' In [23]: match.group(4) Out[23]: 'Gi0/15' ``` `groups` # Method `group` returns a tuple with strings in which the elements are those substrings that fall into respective groups: In [25]: match = re.search(r'Host (\S+) ' ...: r'in vlan (\d+) .* ' ...: r'port (\S+) ' ...: r'and port (\S+)', ...: log) ...: In [26]: match.groups() Out[26]: ('f03a.b216.7ad7', '10', 'Gi0/5', 'Gi0/15') ``` Method `group` has an optional parameter - default. It returned when anything that comes into group is optional. For example, with this line the match will be in both the first group and the second: In [28]: match.groups() Out[28]: ('100', 'aab1') ``` If there is nothing in the line after space, nothing will get into the group. But the match will be because it is stated in regex that the group is optional: ``` In [30]: line = '100 ' In [32]: match.groups() Out[32]: ('100', None) ``` Accordingly, for the second group the value is None. If `group` method is given a default value, it will be returned instead of None: ``` In [33]: line = '100 ' In [34]: match = re.search(r'(\d+) +(\w+)?', line) In [35]: match.groups(default=0) Out[35]: ('100', 0) In [36]: match.groups(default='No match') Out[36]: ('100', 'No match') ``` `groupdict` # Method `groupdict` returns a dictionary in which keys are group names and values are corresponding lines: In [39]: match.groupdict() Out[39]: {'int1': 'Gi0/5', 'int2': 'Gi0/15', 'mac': 'f03a.b216.7ad7', 'vlan': '10'} ``` `start` , `end` # `start` and `end` methods return indexes of the beginning and end of the match of regex. If methods are called without arguments, they return indexes for whole match: ``` In [40]: line = ' 10 aab1.a1a1.a5d3 FastEthernet0/1 ' In [42]: match.start() Out[42]: 2 In [43]: match.end() Out[43]: 42 In [45]: line[match.start():match.end()] Out[45]: '10 aab1.a1a1.a5d3 FastEthernet0/1' ``` You can pass number or name of the group to methods. Then they return indexes for this group: ``` In [46]: match.start(2) Out[46]: 9 In [47]: match.end(2) Out[47]: 23 In [48]: line[match.start(2):match.end(2)] Out[48]: 'aab1.a1a1.a5d3' ``` In [51]: match.start('mac') Out[51]: 52 In [52]: match.end('mac') Out[52]: 66 ``` `span` # Method `span` returns a tuple with an index of the beginning and end of substring. It works in a similar way to `start` and `end` methods, but returns a pair of numbers. Without arguments `span` returns indexes for whole match: ``` In [53]: line = ' 10 aab1.a1a1.a5d3 FastEthernet0/1 ' In [55]: match.span() Out[55]: (2, 42) ``` But you can also pass number of the group: ``` In [56]: line = ' 10 aab1.a1a1.a5d3 FastEthernet0/1 ' In [58]: match.span(2) Out[58]: (9, 23) ``` In [64]: match.span('mac') Out[64]: (52, 66) In [65]: match.span('vlan') Out[65]: (75, 77) ``` Function `search` : is used to find a substring that matches a template * returns Match object if a substring is found * returns `None` if no substring was found Function `search` is suitable when you need to find only one match in a string, for example when a regex describes the entire string or part of a string. Consider an example of using `search` function to parse a log file. File log.txt contains log messages indicating that the same MAC is too often re-learned on one or another interface. One of the reasons for these messages is loop in network. Contents of log.txt file: ``` %SW_MATM-4-MACFLAP_NOTIF: Host 01e2.4c18.0156 in vlan 10 is flapping between port Gi0/16 and port Gi0/24 %SW_MATM-4-MACFLAP_NOTIF: Host 01e2.4c18.0156 in vlan 10 is flapping between port Gi0/16 and port Gi0/24 %SW_MATM-4-MACFLAP_NOTIF: Host 01e2.4c18.0156 in vlan 10 is flapping between port Gi0/24 and port Gi0/19 %SW_MATM-4-MACFLAP_NOTIF: Host 01e2.4c18.0156 in vlan 10 is flapping between port Gi0/24 and port Gi0/16 ``` MAC address can jump between several ports. In this case it is very important to know from which ports MAC comes. Try to figure out which ports and which VLAN was the problem. Check regex with one line from log file: Regex is divided into parts for ease of reading. It has three groups: * `(\d+)` - describes VLAN number * `(\S+) and port (\S+)` - describes port numbers As a result, the following parts of line fell into the groups: ``` In [4]: match.groups() Out[4]: ('10', 'Gi0/16', 'Gi0/24') ``` In the resulting script, log.txt is processed line by line and port information is collected from each line. Since ports can be duplicated we add them immediately to the set in order to get a compilation of unique interfaces (parse_log_search.py file): regex = ('Host \S+ ' 'in vlan (\d+) ' 'is flapping between port ' '(\S+) and port (\S+)') print('Петля между портами {} в VLAN {}'.format(', '.join(ports), vlan)) ``` Try to get device parameters from ‘sh cdp neighbors detail’ output. Example of output for one neighbor: The goal is to get such fields: neighbor name (Device ID: SW2) * IP address of neighbor (IP address: 10.1.1.2) * neighbor platform (Platform: cisco WS-C2960-8TC-L) * IOS version (Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE9, RELEASE SOFTWARE (fc1)) And for convenience you need to get data in the form of a dictionary. Example of the resulting dictionary for SW2 switch: ``` {'SW2': {'ip': '10.1.1.2', 'platform': 'cisco WS-C2960-8TC-L', 'ios': 'C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE9'}} ``` Example is checked on file sh_cdp_neighbors_sw1.txt. The first solution (parse_sh_cdp_neighbors_detail_ver1.py file): def parse_cdp(filename): result = {} with open(filename) as f: for line in f: if line.startswith('Device ID'): neighbor = re.search('Device ID: (\S+)', line).group(1) result[neighbor] = {} elif line.startswith(' IP address'): ip = re.search('IP address: (\S+)', line).group(1) result[neighbor]['ip'] = ip elif line.startswith('Platform'): platform = re.search('Platform: (\S+ \S+),', line).group(1) result[neighbor]['platform'] = platform elif line.startswith('Cisco IOS Software'): ios = re.search('Cisco IOS Software, (.+), RELEASE', line).group(1) result[neighbor]['ios'] = ios The desired strings are selected using startswith() string method. And in a string, a regex takes required part of the string. It all ends up in a dictionary. It worked out well, but it can be done in a more compact way. The second version of solution (parse_sh_cdp_neighbors_detail_ver2.py file): with open(filename) as f: for line in f: match = re.search(regex, line) if match: if match.lastgroup == 'device': device = match.group(match.lastgroup) result[device] = {} else: result[device][match.lastgroup] = match.group( match.lastgroup) Explanations for the second option: in regex, all lines written via `|` sign (or) * if a match is found, `lastgroup` method is checked * `lastgroup` method returns name of the last named group in regex for which a match has been found * if a match was found for `device` group, the value that fells into the group is written to `device` variable * otherwise the mapping of ``` 'group name': 'corresponding value' ``` is written to dictionary Result will be the same: Function `match` : is used to search at the beginning of string that corresponds to regex * returns Match object if match is found * returns `None` if no match was found `Match` function differs from `search` in that `match` always looks for a match at the beginning of the line. For example, if you repeat the example that was used for `search` function, but with `match` : The result will be None: ``` In [6]: print(match) None ``` This is because `match` searches for Host word at the beginning of the line. But this message is in the middle. In this case it is easy to fix expression so that match() function finds match: Expression `\S+:` was added before Host word. Now match will be found: ``` In [11]: print(match) <_sre.SRE_Match object; span=(0, 104), match='%SW_MATM-4-MACFLAP_NOTIF: Host 01e2.4c18.0156 in In [12]: match.groups() Out[12]: ('10', 'Gi0/16', 'Gi0/24') ``` Example is similar to one used in `search` function with minor changes (parse_log_match match.py file): ``` $ python parse_log_match.py Loop between ports Gi0/19, Gi0/24, Gi0/16 in VLAN 10 ``` Function `finditer` : returns an iterator with Match objects * `finditer` returns iterator even if no match is found Function `finditer` is well suited to handle those commands whose output is displayed by columns. For example: ‘sh ip int br’, ‘sh mac address-table’, etc. In this case it can be applied to the entire output of command. Example of ‘sh ip int br’ output: regex for output processing: ``` In [9]: result = re.finditer(r'(\S+) +' ...: r'([\d.]+) +' ...: r'\w+ +\w+ +' ...: r'(up|down|administratively down) +' ...: r'(up|down)', ...: sh_ip_int_br) ...: ``` `result` variable contains an iterator: ``` In [12]: result Out[12]: <callable_iterator at 0xb583f46c> ``` Iterator contains Match objects: ``` In [16]: groups = [] In [18]: for match in result: ...: print(match) ...: groups.append(match.groups()) ...: <_sre.SRE_Match object; span=(103, 171), match='FastEthernet0/0 15.0.15.1 YES manual > <_sre.SRE_Match object; span=(172, 240), match='FastEthernet0/1 10.0.12.1 YES manual > <_sre.SRE_Match object; span=(241, 309), match='FastEthernet0/2 10.0.13.1 YES manual > <_sre.SRE_Match object; span=(379, 447), match='Loopback0 10.1.1.1 YES manual > <_sre.SRE_Match object; span=(448, 516), match='Loopback100 100.0.0.1 YES manual >' ``` Now in `groups` list there are tuples with strings that fallen into groups: ``` In [19]: groups Out[19]: [('FastEthernet0/0', '15.0.15.1', 'up', 'up'), ('FastEthernet0/1', '10.0.12.1', 'up', 'up'), ('FastEthernet0/2', '10.0.13.1', 'up', 'up'), ('Loopback0', '10.1.1.1', 'up', 'up'), ('Loopback100', '100.0.0.1', 'up', 'up')] ``` A similar result can be obtained by a list comprehension: ``` In [20]: regex = r'(\S+) +([\d.]+) +\w+ +\w+ +(up|down|administratively down) +(up|down)' In [21]: result = [match.groups() for match in re.finditer(regex, sh_ip_int_br)] In [22]: result Out[22]: [('FastEthernet0/0', '15.0.15.1', 'up', 'up'), ('FastEthernet0/1', '10.0.12.1', 'up', 'up'), ('FastEthernet0/2', '10.0.13.1', 'up', 'up'), ('Loopback0', '10.1.1.1', 'up', 'up'), ('Loopback100', '100.0.0.1', 'up', 'up')] ``` Now we will analyze the same log file that was used in `search` and `match` subsections. In this case it is possible to pass the entire contents of file (parse_log_finditer.py): with open('log.txt') as f: for m in re.finditer(regex, f.read()): vlan = m.group(1) ports.add(m.group(2)) ports.add(m.group(3)) In real life, a log file can be very large. In that case, it’s better to process it line by line. Output will be the same: `finditer` can handle output of ‘sh cdp neighbors detail’ as well as in re.search subsection. The script is almost identical to version with `re.search` (parse_sh_cdp_neighbors_detail_finditer.py file): def parse_cdp(filename): regex = (r'Device ID: (?P<device>\S+)' r'|IP address: (?P<ip>\S+)' r'|Platform: (?P<platform>\S+ \S+),' r'|Cisco IOS Software, (?P<ios>.+), RELEASE') with open(filename) as f: match_iter = re.finditer(regex, f.read()) for match in match_iter: if match.lastgroup == 'device': device = match.group(match.lastgroup) result[device] = {} elif device: result[device][match.lastgroup] = match.group(match.lastgroup) Now matches are searched throughout the file, not in every line separately: ``` with open(filename) as f: match_iter = re.finditer(regex, f.read()) ``` Then matches go through the loop: ``` with open(filename) as f: match_iter = re.finditer(regex, f.read()) for match in match_iter: ``` The rest is the same. Although the result is similar, `finditer` has more features, as you can specify not only what should be in searched string but also in strings around it. For example, you can specify exactly which IP address to take: ``` Device ID: SW2 Entry address(es): IP address: 10.1.1.2 Platform: cisco WS-C2960-8TC-L, Capabilities: Switch IGMP Native VLAN: 1 Duplex: full Management address(es): IP address: 10.1.1.2 ``` If you want to take the first IP address you can supplement a regex like this: Function `findall` : returns: list of strings that are described by regex if there are no groups in regex * list of strings that match with regex in the group if there is only one group in regex * list of tuples containing strings that matches with expression in the group if there are more than one group Consider the work of `findall` with an example of ‘sh mac address-table output’: ``` In [2]: mac_address_table = open('CAM_table.txt').read() In [3]: print(mac_address_table) sw1#sh mac address-table Mac Address Table ------------------------------------------- Vlan Mac Address Type Ports ---- ----------- -------- ----- 100 a1b2.ac10.7000 DYNAMIC Gi0/1 200 a0d4.cb20.7000 DYNAMIC Gi0/2 300 acb4.cd30.7000 DYNAMIC Gi0/3 100 a2bb.ec40.7000 DYNAMIC Gi0/4 500 aa4b.c550.7000 DYNAMIC Gi0/5 200 a1bb.1c60.7000 DYNAMIC Gi0/6 300 aa0b.cc70.7000 DYNAMIC Gi0/7 ``` The first example is a regex without groups. In this case `findall` returns a list of strings that matches with regex. For example, with `findall` you can get a list of matching strings with ``` vlan - mac – interface ``` and get rid of header in the output of command: ``` In [4]: re.findall(r'\d+ +\S+ +\w+ +\S+', mac_address_table) Out[4]: ['100 a1b2.ac10.7000 DYNAMIC Gi0/1', '200 a0d4.cb20.7000 DYNAMIC Gi0/2', '300 acb4.cd30.7000 DYNAMIC Gi0/3', '100 a2bb.ec40.7000 DYNAMIC Gi0/4', '500 aa4b.c550.7000 DYNAMIC Gi0/5', '200 a1bb.1c60.7000 DYNAMIC Gi0/6', '300 aa0b.cc70.7000 DYNAMIC Gi0/7'] ``` Note that `findall` returns a list of strings, not a Match object. As soon as a group appears in regex, `findall` behaves differently. If one group is used in the expression, `findall` returns a list of strings that matches with expression in the group: ``` In [5]: re.findall(r'\d+ +(\S+) +\w+ +\S+', mac_address_table) Out[5]: ['a1b2.ac10.7000', 'a0d4.cb20.7000', 'acb4.cd30.7000', 'a2bb.ec40.7000', 'aa4b.c550.7000', 'a1bb.1c60.7000', 'aa0b.cc70.7000'] ``` `findall` searches for a match of the entire string but returns a result similar to `group` method in Match object. If there are several groups, `findall` will return the list of tuples: ``` In [6]: re.findall(r'(\d+) +(\S+) +\w+ +(\S+)', mac_address_table) Out[6]: [('100', 'a1b2.ac10.7000', 'Gi0/1'), ('200', 'a0d4.cb20.7000', 'Gi0/2'), ('300', 'acb4.cd30.7000', 'Gi0/3'), ('100', 'a2bb.ec40.7000', 'Gi0/4'), ('500', 'aa4b.c550.7000', 'Gi0/5'), ('200', 'a1bb.1c60.7000', 'Gi0/6'), ('300', 'aa0b.cc70.7000', 'Gi0/7')] ``` If such features of `findall` function prevent you from getting the needed result, it is better to use `finditer` function, but sometimes this behavior is appropriate and convenient to use. An example of using `findall` in a log file parsing (parse_log_findall.py file): with open('log.txt') as f: result = re.findall(regex, f.read()) for vlan, port1, port2 in result: ports.add(port1) ports.add(port2) ``` $ python parse_log_findall.py Loop between ports Gi0/19, Gi0/16, Gi0/24 в VLAN 10 ``` Python has the ability to pre-compile a regular expression and then use it. This is particularly useful when regex is used a lot in the script. The use of a compiled expression can speed up processing and it is generally more convenient to use this option as the program divides the creation of a regex and its use. In addition, using `re.compile` function creates a RegexObject object that has several additional features that are not present in MatchObject object. To compile a regex, use `re.compile` : It returns RegexObject object: ``` In [53]: regex Out[53]: re.compile(r'\d+ +\S+ +\w+ +\S+', re.UNICODE) ``` RegexObject has such methods and attributes: ``` In [55]: [method for method in dir(regex) if not method.startswith('_')] Out[55]: ['findall', 'finditer', 'flags', 'fullmatch', 'groupindex', 'groups', 'match', 'pattern', 'scanner', 'search', 'split', 'sub', 'subn'] ``` Note that Regex object has `search` , `match` , `finditer` , `findall` methods available. These are the same functions that are available in module globally, but now they have to be applied to object. An example of using `search` method: In [68]: match = regex.search(line) ``` Now `search` should be called as method of regex object. The result is a Match object: ``` In [69]: match Out[69]: <_sre.SRE_Match object; span=(1, 43), match='100 a1b2.ac10.7000 DYNAMIC Gi0/1'In [70]: match.group() Out[70]: '100 a1b2.ac10.7000 DYNAMIC Gi0/1' ``` An example of compiling a regex and its use based on example of a log file (parse_log_compile.py file): with open('log.txt') as f: for m in regex.finditer(f.read()): vlan = m.group(1) ports.add(m.group(2)) ports.add(m.group(3)) This is a modified example of `finditer` usage. Description of regex changed: And now the call of `finditer` is executed as a regex object method: ``` for m in regex.finditer(f.read()): ``` ## Options that are available only when using re.compile# When using re.compile in `search` , `match` , `findall` , `finditer` and `fullmatch` methods, additional parameters appear: * `pos` - allows you to specify an index in string from where to start looking for a match * `endpos` - specifies from which index the search should be started Their use is similar to execution of a string slice. For example, this is the result without specifying `pos` , `endpos` parameters: ``` In [75]: regex = re.compile(r'\d+ +\S+ +\w+ +\S+') In [77]: match = regex.search(line) In [78]: match.group() Out[78]: '100 a1b2.ac10.7000 DYNAMIC Gi0/1' ``` In this case, the initial search position should be indicated: ``` In [79]: match = regex.search(line, 2) In [80]: match.group() Out[80]: '00 a1b2.ac10.7000 DYNAMIC Gi0/1' ``` The initial entry is the same as string slice: ``` In [81]: match = regex.search(line[2:]) In [82]: match.group() Out[82]: '00 a1b2.ac10.7000 DYNAMIC Gi0/1' ``` A final example is the use of two indexes: In [92]: match = regex.search(line, 2, 40) In [93]: match.group() Out[93]: '00 a1b2.ac10.7000 DYNAMIC Gi' ``` And a similar string slice: ``` In [94]: match = regex.search(line[2:40]) In [95]: match.group() Out[95]: '00 a1b2.ac10.7000 DYNAMIC Gi' ``` In `match` , `findall` , `finditer` and `fullmatch` methods `pos` and `endpos` parameters work similarly. When using re functions or creating a compiled regex you can specify additional flags that affect the behavior of regex. The `re` module supports flags (in parentheses - a short version of flag): * `re.ASCII` ( `re.A` ) * `re.IGNORECASE` ( `re.I` ) * `re.MULTILINE` ( `re.M` ) * `re.DOTALL` ( `re.S` ) * `re.VERBOSE` ( `re.X` ) * `re.LOCALE` ( `re.L` ) * `re.DEBUG` In this subsection the `re.DOTALL` flag is covered. Information about other flags is available in documentation. ## re.DOTALL# Regex can also be used for multiline string. For example, from `sh_cdp` string you need to get a device name, platform and IOS: ``` In [2]: sh_cdp = ''' ...: Device ID: SW2 ...: Entry address(es): ...: IP address: 10.1.1.2 ...: Platform: cisco WS-C2960-8TC-L, Capabilities: Switch IGMP ...: Interface: GigabitEthernet1/0/16, Port ID (outgoing port): GigabitEthernet0/1 ...: Holdtime : 164 sec ...: ...: Version : ...: Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE9, RELEASE SOFTWARE (fc1) ...: Technical Support: http://www.cisco.com/techsupport ...: Copyright (c) 1986-2014 by Cisco Systems, Inc. ...: Compiled Mon 03-Mar-14 22:53 by prod_rel_team ...: ...: advertisement version: 2 ...: VTP Management Domain: '' ...: Native VLAN: 1 ...: Duplex: full ...: Management address(es): ...: IP address: 10.1.1.2 ...: ''' ``` Of course, in this case it is possible to divide a string into parts and work with each string separately, but you can get necessary data without splitting. In this expression, strings with required data are described: In this case, there will be no match because by default a dot means any character other than a new line character: ``` In [4]: print(re.search(regex, sh_cdp)) None ``` You can change default behavior by using `re.DOTALL` flag: ``` In [5]: match = re.search(regex, sh_cdp, re.DOTALL) In [6]: match.groups() Out[6]: ('SW2', 'WS-C2960-8TC-L', '12.2(55)SE9') ``` Since new line character is now included, combination `.+` captures everything between data. Now try to use this regex to get information about all neighbors from sh_cdp_neighbors_sw1.txt file. Version : Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE9, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Version : Cisco IOS Software, 3800 Software (C3825-ADVENTERPRISEK9-M), Version 12.4(24)T1, RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport Version : Cisco IOS Software, 2900 Software (C3825-ADVENTERPRISEK9-M), Version 15.2(2)T1, RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport ``` Search for all regex matches: ``` In [7]: with open('sh_cdp_neighbors_sw1.txt') as f: ...: sh_cdp = f.read() ...: In [10]: for m in match: ...: print(m.groups()) ...: ('SW2', '2911', '15.2(2)T1') ``` At first glance, it seems that instead of three devices there was only one device in output. However, if you look at the results the tuple has Device ID from the first neighbor and platform and IOS from the last neighbor. A short output to ease understanding of result: ``` Device ID Local Intrfce Holdtme Capability Platform Port ID SW2 Gi 1/0/16 171 R S C2960 Gi 0/1 R1 Gi 1/0/22 158 R C3825 Gi 0/0 R2 Gi 1/0/21 177 R C2911 Gi 0/0 ``` This is because there is a `.+` combination between desired parts of the output. Without `re.DOTALL` flag, such an expression would capture everything before new line character, but with a flag it captures the longest possible piece of text because `+` is greedy. As a result, regex describes a string from the first Device ID to the last place where ``` Cisco IOS Software.+ Version ``` match occurs. This situation occurs very often when using `re.DOTALL` and in order to correct it remember to disable greedy behavior: ``` In [10]: regex = r'Device ID: (\S+).+?Platform: \w+ (\S+),.+?Cisco IOS Software.+? Version (\S+),' In [12]: for m in match: ...: print(m.groups()) ...: ('SW2', 'WS-C2960-8TC-L', '12.2(55)SE9') ('R1', '3825', '12.4(24)T1') ('R2', '2911', '15.2(2)T1') ``` Function `split` works similary to `split` method in strings, but in `re.split` function you can use regular expressions which means dividing a string into parts using more complex conditions. For example, `ospf_route` string should be split by spaces (as in `str.split` method): In [2]: re.split(r' +', ospf_route) Out[2]: ['O', '10.0.24.0/24', '[110/41]', 'via', '10.0.13.3,', '3d18h,', 'FastEthernet0/0'] ``` Similarly, commas can be removed: ``` In [3]: re.split(r'[ ,]+', ospf_route) Out[3]: ['O', '10.0.24.0/24', '[110/41]', 'via', '10.0.13.3', '3d18h', 'FastEthernet0/0'] ``` And if necessary, get rid of square brackets: ``` In [4]: re.split(r'[ ,\[\]]+', ospf_route) Out[4]: ['O', '10.0.24.0/24', '110/41', 'via', '10.0.13.3', '3d18h', 'FastEthernet0/0'] ``` Function `split` has a peculiarity of working with groups (expressions in parentheses). If you specify the same expression with parentheses, the resulting list will include separators. For example, word via is specified as a separator: ``` In [5]: re.split(r'(via|[ ,\[\]])+', ospf_route) Out[5]: ['O', ' ', '10.0.24.0/24', '[', '110/41', ' ', '10.0.13.3', ' ', '3d18h', ' ', 'FastEthernet0/0'] ``` To disable such behavior you should make a noncapture group. That is, disable capturing of group elements: ``` In [6]: re.split(r'(?:via|[ ,\[\]])+', ospf_route) Out[6]: ['O', '10.0.24.0/24', '110/41', '10.0.13.3', '3d18h', 'FastEthernet0/0'] ``` Function `re.sub` works similary to `replace` method in strings. But in `re.sub` you can use regex and therefore make substitutions using more complex conditions. Replace commas, square brackets and via word with space in ospf_route string: In [8]: re.sub(r'(via|[,\[\]])', ' ', ospf_route) Out[8]: 'O 10.0.24.0/24 110/41 10.0.13.3 3d18h FastEthernet0/0' ``` With `re.sub` you can transform a string. For example, convert mac_table string to: ``` In [9]: mac_table = ''' ...: 100 aabb.cc10.7000 DYNAMIC Gi0/1 ...: 200 aabb.cc20.7000 DYNAMIC Gi0/2 ...: 300 aabb.cc30.7000 DYNAMIC Gi0/3 ...: 100 aabb.cc40.7000 DYNAMIC Gi0/4 ...: 500 aabb.cc50.7000 DYNAMIC Gi0/5 ...: 200 aabb.cc60.7000 DYNAMIC Gi0/6 ...: 300 aabb.cc70.7000 DYNAMIC Gi0/7 ...: ''' In [4]: print(re.sub(r' *(\d+) +' ...: r'([a-f0-9]+)\.' ...: r'([a-f0-9]+)\.' ...: r'([a-f0-9]+) +\w+ +' ...: r'(\S+)', ...: r'\1 \2:\3:\4 \5', ...: mac_table)) ...: 100 aabb:cc10:7000 Gi0/1 200 aabb:cc20:7000 Gi0/2 300 aabb:cc30:7000 Gi0/3 100 aabb:cc40:7000 Gi0/4 500 aabb:cc50:7000 Gi0/5 200 aabb:cc60:7000 Gi0/6 300 aabb:cc70:7000 Gi0/7 ``` Regex is divided into groups: * `(\d+)` - the first group. VLAN number gets here * ``` ([a-f0-9]+).([a-f0-9]+).([a-f0-9]+) ``` - the following three groups (2, 3, 4) describe MAC address * `(\S+)` - the fifth group. Describes an interface. In a second regex these groups are used. To refer to a group a backslash and a group number are used. To avoid backslash screening, raw string is used. As a result, the corresponding substrings will be substituted instead of group numbers. For example, format of MAC address record was also changed. Regular expressions in Python: Websites for regular expressions checking: for Python - you can specify search, match, findall methods and flags. An example of a regular expression. Unfortunately, sometimes not all expressions are perceived. * Another site for Python - does not support methods but works well and has worked out the expressions which didn’t work in previous site. It’s perfect for one-line text. With the multiline, it worth considering that Python will have a different situation. General guidance on the use of regular expressions: Many examples of the use of regular expressions from basics to more complex themes Assistance in the study of regular expressions: ## Task 15.1# Create a get_ip_from_cfg function that expects the name of the file containing the device configuration as an argument. The function should process the configuration and return the IP addresses and masks that are configured on the interfaces as a list of tuples: the first element of the tuple is the IP address * the second element of the tuple is a mask ``` [("10.0.1.1", "255.255.255.0"), ("10.0.2.1", "255.255.255.0")] ``` ## Task 15.1a# Copy the get_ip_from_cfg function from task 15.1 and redesign it so that it returns a dictionary: key: interface name * value: a tuple with two lines: IP address * mask Add to the dictionary only those interfaces on which IP addresses are configured. ``` {"FastEthernet0/1": ("10.0.1.1", "255.255.255.0"), "FastEthernet0/2": ("10.0.2.1", "255.255.255.0")} ``` ## Task 15.1b# Check the get_ip_from_cfg function from task 15.1a on the config_r2.txt configuration. Note that there are two IP addresses assigned on the e0/1 interface: ``` interface Ethernet0/1 ip address 10.255.2.2 255.255.255.0 ip address 10.254.2.2 255.255.255.0 secondary ``` And in the dictionary returned by the get_ip_from_cfg function, only one of them (first or second) corresponds to the Ethernet0/1 interface. Copy the get_ip_from_cfg function from 15.1a and redesign it to return a list of tuples for each interface in the dictionary value. If only one address is assigned on the interface, there will be one tuple in the list. If several IP addresses are configured on the interface, then the list will contain several tuples. The interface name remains the key. Check the function in the config_r2.txt configuration and make sure the Ethernet0/1 interface matches a list of two tuples. ## Task 15.2# Create a function parse_sh_ip_int_br that expects as an argument the name of the file containing the output of the show ip int br command. The function should process the output of the show ip int br command and return the following fields: Interface * IP-Address * Status * Protocol The information should be returned as a list of tuples: ``` [("FastEthernet0/0", "10.0.1.1", "up", "up"), ("FastEthernet0/1", "10.0.2.1", "up", "up"), ("FastEthernet0/2", "unassigned", "down", "down")] ``` ## Task 15.3# Create a convert_ios_nat_to_asa function that converts NAT rules from cisco IOS syntax to cisco ASA. The function expects such arguments: the name of the file containing the Cisco IOS NAT rules * the name of the file in which to write the NAT rules for the ASA Check the function on the cisco_nat_config.txt file. Example cisco IOS NAT rules ``` ip nat inside source static tcp 10.1.2.84 22 interface GigabitEthernet0/1 20022 ip nat inside source static tcp 10.1.9.5 22 interface GigabitEthernet0/1 20023 ``` And the corresponding NAT rules for the ASA: ``` object network LOCAL_10.1.2.84 host 10.1.2.84 nat (inside,outside) static interface service tcp 22 20022 object network LOCAL_10.1.9.5 host 10.1.9.5 nat (inside,outside) static interface service tcp 22 20023 ``` In the file with the rules for the ASA: there should be no blank lines between the rules * there must be no spaces before the lines “object network” * there must be one space before the rest of the lines In all rules for ASA, the interfaces will be the same (inside, outside). ## Task 15.4# Create a get_ints_without_description function that expects as an argument the name of the file containing the device configuration. The function should process the configuration and return a list of interface names, which do not have a description (description command). An example of an interface with a description: ``` interface Ethernet0/2 description To P_r9 Ethernet0/2 ip address 10.0.19.1 255.255.255.0 mpls traffic-eng tunnels ip rsvp bandwidth ``` Interface without description: ``` interface Loopback0 ip address 10.1.1.1 255.255.255.255 ``` ## Task 15.5# Create a generate_description_from_cdp function that expects as an argument the name of the file that contains the output of the show cdp neighbors command. The function should process the show cdp neighbors command output and generate a description for the interfaces based on the command output. For example, if R1 has the following command output: ``` R1>show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Local Intrfce Holdtme Capability Platform Port ID SW1 Eth 0/0 140 S I WS-C3750- Eth 0/1 ``` For the Eth 0/0 interface, you need to generate the following description: ``` description Connected to SW1 port Eth 0/1 ``` The function must return a dictionary, in which the keys are the names of the interfaces, and the values are the command specifying the description of the interface: ``` 'Eth 0/0': 'description Connected to SW1 port Eth 0/1' ``` Check the operation of the function on the sh_cdp_n_sw1.txt file. This part of the book covers data writing and transmission. Data can be, for example: command output * processed output of commands as dictionary, list or similar * information from monitoring system So far, only the simplest option has been covered - writing information to a plain text file. This section covers data reading and writing in CSV, JSON and YAML formats: CSV - a tabular format of data presentation. It can be obtained, for example, by exporting data from a table or database. Similarly, data can be written in this format for further import into the table. * JSON - a format that is often used in API. In addition, this format will allow you to save data structures such as dictionaries or lists in a structured format and then read them from a JSON file and get the same data structures in Python. * YAML format is often used to describe playbooks. For example, it is used in Ansible. In addition, in this format it is convenient to write manually the parameters that should be read by scripts. Python allows objects of language itself to be written into files and read through Pickle module, but this topic is not covered in this book. Programs we write are not isolated. They download data from the Internet, read and write data on disk, transmit data over the network. So it’s very important to understand the difference between how a computer stores and transmits data and how that data is perceived by a person. We take text, computer takes bytes. Python 3, respectively, has two concepts: text - an immutable sequence of unicode characters. Type string (str) is used to store these characters * It is more correct to say that text is an immutable sequence of Unicode codes (codepoints). Date: 2020-01-01 Categories: Tags: Unicode is a standard that describes the representation and encoding of almost all languages and other characters. A few facts about Unicode: version 13.0 (March 2020) describes 143 859 codes * each code is a number that corresponds to a certain character * standard also defines the encoding - the way of representing the symbol code in bytes Each character in Unicode has a specific code. This is a number that is usually written as follows: `U+0073` , where 0073 - hexadecimal digits. Apart from the code, each symbol has its own unique name. For example, letter “s” corresponds to code `U+0073` and the name “LATIN SMALL LETTER S”. Examples of codes, names and corresponding symbols: * `U+0073` , “LATIN SMALL LETTER S” - s * `U+00F6` , “LATIN SMALL LETTER O WITH DIAERESIS” - ö * `U+1F383` , “JACK-O-LANTERN” - 🎃 * `U+2615` , “HOT BEVERAGE” - ☕ * `U+1f600` , “GRINNING FACE” - 😀 ## Encodings# Encodings allow to write character code in bytes. Unicode supports several encodings: UTF-8 * UTF-16 * UTF-32 One of the most popular encoding to date is UTF-8. This encoding uses a variable number of bytes to write Unicode characters. Examples of Unicode characters and their representation in bytes in UTF-8 encoding: H - `48` * i - `69` * 🛀 - `01 f6 c0` * 🚀 - `01 f6 80` * ☃ - `26 03` Python 3 has: strings - an immutable sequence of Unicode characters. Type string (str) is used to store these characters * ## Strings# ``` In [11]: hi = 'привет' In [12]: hi Out[12]: 'привет' In [15]: type(hi) Out[15]: str In [13]: beautiful = 'schön' In [14]: beautiful Out[14]: 'schön' ``` Since strings are a sequence of Unicode codes you can write a string in different ways. Unicode symbol can be written using its name: ``` In [1]: "\N{LATIN SMALL LETTER O WITH DIAERESIS}" Out[1]: 'ö' ``` Or by using this format: ``` In [4]: "\u00F6" Out[4]: 'ö' ``` You can write a string as a sequence of Unicode codes: ``` In [19]: hi1 = 'привет' In [20]: hi2 = '\u043f\u0440\u0438\u0432\u0435\u0442' In [21]: hi2 Out[21]: 'привет' In [22]: hi1 == hi2 Out[22]: True In [23]: len(hi2) Out[23]: 6 ``` Function ord() returns value of Unicode code for character: ``` In [6]: ord('ö') Out[6]: 246 ``` Function chr() returns Unicode character that corresponds to the code: ``` In [7]: chr(246) Out[7]: 'ö' ``` ## Bytes# Bytes are an immutable sequence of bytes. Bytes are denoted in the same way as strings but with addition of letter `b` before string: ``` In [30]: b1 = b'\xd0\xb4\xd0\xb0' In [31]: b2 = b"\xd0\xb4\xd0\xb0" In [32]: b3 = b'''\xd0\xb4\xd0\xb0''' In [36]: type(b1) Out[36]: bytes In [37]: len(b1) Out[37]: 4 ``` In Python, bytes that correspond to ASCII symbols are displayed as these symbols, not as their corresponding bytes. This may be a bit confusing but it is always possible to recognize bytes type by letter `b` : ``` In [38]: bytes1 = b'hello' In [39]: bytes1 Out[39]: b'hello' In [40]: len(bytes1) Out[40]: 5 In [41]: bytes1.hex() Out[41]: '68656c6c6f' In [42]: bytes2 = b'\x68\x65\x6c\x6c\x6f' In [43]: bytes2 Out[43]: b'hello' ``` If you try to write not an ASCII character in a byte literal, an error will occur: ``` In [44]: bytes3 = b'привет' File "<ipython-input-44-dc8b23504fa7>", line 1 bytes3 = b'привет' ^ SyntaxError: bytes can only contain ASCII literal characters. ``` You can’t avoid working with bytes. For example, when working with a network or a filesystem, most often the result is returned in bytes. Accordingly, you need to know how to convert bytes to string and vice versa. That’s what the encoding is for. Encoding can be represented as an encryption key that specifies: how to “encrypt” a string to bytes (str -> bytes). Encode method used (similar to encrypt) * how to “decrypt” bytes to string (bytes -> str). Decode method used (similar to decrypt) This analogy makes it clear that string-byte and byte-string transformations must use the same encoding. `encode` , `decode` # `encode` method is used to convert string to bytes: ``` In [1]: hi = 'привет' In [2]: hi.encode('utf-8') Out[2]: b'\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82' In [3]: hi_bytes = hi.encode('utf-8') ``` `decode` method to get a string from bytes: ``` In [4]: hi_bytes Out[4]: b'\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82' In [5]: hi_bytes.decode('utf-8') Out[5]: 'привет' ``` `str.encode` , `bytes.decode` # Method `encode` is also present in str class (as are other methods of working with strings): ``` In [6]: hi Out[6]: 'привет' In [7]: str.encode(hi, encoding='utf-8') Out[7]: b'\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82' ``` And `decode` method is available in bytes class (like other methods): ``` In [8]: hi_bytes Out[8]: b'\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82' In [9]: bytes.decode(hi_bytes, encoding='utf-8') Out[9]: 'привет' ``` In these methods, encoding can be used as a key argument (examples above) or as a positional argument: ``` In [10]: hi_bytes Out[10]: b'\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82' In [11]: bytes.decode(hi_bytes, 'utf-8') Out[11]: 'привет' ``` ## How to work with Unicode and bytes# There is a rule called a “Unicode sandwich”: bytes that the program reads must be converted to Unicode (string) as early as possible * inside the program work with Unicode * Unicode must be converted to bytes as soon as possible before transmitting Date: 2002-01-01 Categories: Tags: Consider a few examples of working with bytes and converting bytes to string. ## subprocess# Module subprocess returns the result of command as bytes: In [2]: result = subprocess.run(['ping', '-c', '3', '-n', '8.8.8.8'], ...: stdout=subprocess.PIPE) ...: If it is necessary to work with this output further you should immediately convert it to string: ``` In [4]: output = result.stdout.decode('utf-8') In [5]: print(output) PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=43 time=59.4 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=43 time=54.4 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=43 time=55.1 ms Module subprocess supports another conversion option - `encoding` parameter. If you specify it when you call run() function, the result will be as a string: ``` In [6]: result = subprocess.run(['ping', '-c', '3', '-n', '8.8.8.8'], ...: stdout=subprocess.PIPE, encoding='utf-8') ...: In [8]: print(result.stdout) PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=43 time=55.5 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=43 time=54.6 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=43 time=53.3 ms --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 53.368/54.534/55.564/0.941 ms ``` ## telnetlib# Depending on module, conversion between strings and bytes can be performed automatically or may be required explicitly. For example, `telnetlib` module must pass bytes to `read_until` and `write` methods: ``` import telnetlib import time t = telnetlib.Telnet('192.168.100.1') t.read_until(b'Username:') t.write(b'cisco\n') t.read_until(b'Password:') t.write(b'cisco\n') t.write(b'sh ip int br\n') time.sleep(5) output = t.read_very_eager().decode('utf-8') print(output) ``` Method returns bytes, so penultimate line uses decode. ## pexpect# Module `pexpect` waits for a string as an argument and returns bytes: ``` In [9]: import pexpect In [10]: output = pexpect.run('ls -ls') In [11]: output Out[11]: b'total 8\r\n4 drwxr-xr-x 2 vagrant vagrant 4096 Aug 28 12:16 concurrent_futures\r\n4 drwxr-xr-x 2 vagrant vagrant 4096 Aug 3 07:59 iterator_generator\r\n' And it also supports `encoding` parameter: ``` In [13]: output = pexpect.run('ls -ls', encoding='utf-8') ## Working with files# Until now, when working with files, the following expression was used: ``` with open(filename) as f: for line in f: print(line) ``` But actually, when you read a file you convert bytes to a string. And default encoding was used: In [2]: locale.getpreferredencoding() Out[2]: 'UTF-8' ``` Default encoding in file: In [3]: f Out[3]: <_io.TextIOWrapper name='r1.txt' mode='r' encoding='UTF-8'> ``` When working with files it is better to specify encoding explicitly because it may differ in different operating systems: ``` In [4]: with open('r1.txt', encoding='utf-8') as f: ...: for line in f: ...: print(line, end='') ...: ! service timestamps debug datetime msec localtime show-timezone year service timestamps log datetime msec localtime show-timezone year service password-encryption service sequence-numbers ! no ip domain lookup ! ip ssh version 2 ! ``` ## Conclusion# These examples are shown here to show that different modules can treat the issue of conversion between strings and bytes differently. And different functions and methods of these modules can expect arguments and return values of different types. However, all of these items are in documentation. When converting between strings and bytes it is very important to know exactly which encoding is used as well as to know the possibilities of different encodings. For example, ASCII codec cannot encode Cyrillic: ``` In [32]: hi_unicode = 'привет' In [33]: hi_unicode.encode('ascii') --------------------------------------------------------------------------- UnicodeEncodeError Traceback (most recent call last) <ipython-input-33-ec69c9fd2dae> in <module>() ----> 1 hi_unicode.encode('ascii') UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128) ``` Similarly, if the string “привет” is converted to bytes and you try to convert it into a string with ascii, we will also get an error: ``` In [34]: hi_unicode = 'привет' In [35]: hi_bytes = hi_unicode.encode('utf-8') In [36]: hi_bytes.decode('ascii') --------------------------------------------------------------------------- UnicodeDecodeError Traceback (most recent call last) <ipython-input-36-aa0ada5e44e9> in <module>() ----> 1 hi_bytes.decode('ascii') UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) ``` Another version of error where different encodings are used to conversion: ``` In [37]: de_hi_unicode = 'grüezi' In [38]: utf_16 = de_hi_unicode.encode('utf-16') In [39]: utf_16.decode('utf-8') --------------------------------------------------------------------------- UnicodeDecodeError Traceback (most recent call last) <ipython-input-39-4b4c731e69e4> in <module>() ----> 1 utf_16.decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte ``` Having mistakes is good. They’re telling what the problem is. It’s worse when it’s like this: ``` In [40]: hi_unicode = 'привет' In [41]: hi_bytes = hi_unicode.encode('utf-8') In [42]: hi_bytes Out[42]: b'\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82' In [43]: hi_bytes.decode('utf-16') Out[43]: '뿐胑룐닐뗐苑' ``` ## Error processing# Encode and decode methods have error-processing modes that indicate how to respond to a conversion error. ### Parameter errors in encode# By default `encode` uses `strict` mode - UnicodeError exception is generated when encoding errors occur. Examples of such behaviour are above. Instead, you can use `replace` to substitute character with a question mark: ``` In [44]: de_hi_unicode = 'grüezi' In [45]: de_hi_unicode.encode('ascii', 'replace') Out[45]: b'gr?ezi' ``` Or `namereplace` to replace character with the name: ``` In [46]: de_hi_unicode = 'grüezi' In [47]: de_hi_unicode.encode('ascii', 'namereplace') Out[47]: b'gr\\N{LATIN SMALL LETTER U WITH DIAERESIS}ezi' ``` In addition, characters that cannot be encoded may be completely ignored: In [49]: de_hi_unicode.encode('ascii', 'ignore') Out[49]: b'grezi' ``` ### Parameter errors in decode# The `decode` method also uses strict mode by default and generates a UnicodeDecodeError exception. If you change mode to ignore, as in encode, characters will simply be ignored: In [51]: de_hi_utf8 = de_hi_unicode.encode('utf-8') In [52]: de_hi_utf8 Out[52]: b'gr\xc3\xbcezi' In [53]: de_hi_utf8.decode('ascii', 'ignore') Out[53]: 'grezi' ``` Mode `replace` substitutes characters: ``` In [54]: de_hi_unicode = 'grüezi' In [55]: de_hi_utf8 = de_hi_unicode.encode('utf-8') In [56]: de_hi_utf8.decode('ascii', 'replace') Out[56]: 'gr��ezi' ``` Date: 2003-10-08 Categories: Tags: Python documentation: 🐍 Pragmatic Unicode - article, presentation and video * 🐍 Section «Strings» of the book “Dive Into Python 3” - very well written about Unicode, encodings and how all this works in Python Without binding to Python: Data serialization is about storing data in some format that is often structured. For example, it could be: files in YAML or JSON format * files in CSV format * database In addition, Python allows you to write down objects of language itself (this aspect is not covered, but if you are interested, look at the Pickle module). This section covers CSV, JSON, YAML formats and chapter 25 covers databases. YAML, JSON, CSV formats usage: you may have data about IP address and similar information to process in tables table can be exported to CSV format and processed by Python * software can return data in JSON format. Accordingly, by converting this data into a Python object you can work with it and do whatever you want * YAML is very convenient to use to describe parameters for example, it can be settings for different objects (IP addresses, VLANs, etc.) * at least knowing YAML format will be useful when using Ansible For each of these formats, Python has a module that makes them easier to work with. CSV (comma-separated value) - a tabular data format (for example, it may be data from a table or data from a database). In this format, each line of a file is a line of a table. Despite format name the separator can be not only a comma. Formats with a different separator may have their own name, for example, TSV (tab separated values), however, the name CSV usually means any separators). Example of a CSV file (sw_data.csv): ``` hostname,vendor,model,location sw1,Cisco,3750,London sw2,Cisco,3850,Liverpool sw3,Cisco,3650,Liverpool sw4,Cisco,3650,London ``` The standard Python library has a csv module that allows working with files in CSV format. Example of reading a file in CSV format (csv_read.py file): ``` $ python csv_read.py ['hostname', 'vendor', 'model', 'location'] ['sw1', 'Cisco', '3750', 'London'] ['sw2', 'Cisco', '3850', 'Liverpool'] ['sw3', 'Cisco', '3650', 'Liverpool'] ['sw4', 'Cisco', '3650', 'London'] ``` First list contains column names and remaining list contains the corresponding values. Note that `csv.reader` returns an iterator: In [2]: with open('sw_data.csv') as f: ...: reader = csv.reader(f) ...: print(reader) ...: <_csv.reader object at 0x10385b050> ``` If necessary it could be converted into a list in the following way: ``` In [3]: with open('sw_data.csv') as f: ...: reader = csv.reader(f) ...: print(list(reader)) ...: [['hostname', 'vendor', 'model', 'location'], ['sw1', 'Cisco', '3750', 'London'], ['sw2', 'Cisco', '3850', 'Liverpool'], ['sw3', 'Cisco', '3650', 'Liverpool'], ['sw4', 'Cisco', '3650', 'London']] ``` Most often column headers are more convenient to get by a separate object. This can be done in this way (csv_read_headers.py file): with open('sw_data.csv') as f: reader = csv.reader(f) headers = next(reader) print('Headers: ', headers) for row in reader: print(row) ``` Sometimes it is more convenient to get dictionaries in which keys are column names and values are column values. For this purpose, module has `DictReader` (csv_read_dict.py file): with open('sw_data.csv') as f: reader = csv.DictReader(f) for row in reader: print(row) print(row['hostname'], row['model']) ``` ``` $ python csv_read_dict.py {'hostname': 'sw1', 'vendor': 'Cisco', 'model': '3750', 'location': 'London, Globe Str 1 '} sw1 3750 {'hostname': 'sw2', 'vendor': 'Cisco', 'model': '3850', 'location': 'Liverpool'} sw2 3850 {'hostname': 'sw3', 'vendor': 'Cisco', 'model': '3650', 'location': 'Liverpool'} sw3 3650 {'hostname': 'sw4', 'vendor': 'Cisco', 'model': '3650', 'location': 'London, Grobe Str 1'} sw4 3650 ``` Prior to Python 3.8 OrderedDict type was returned, not dict. Similarly, a csv module can be used to write data to file in CSV format (csv_write.py file): with open('sw_data_new.csv', 'w') as f: writer = csv.writer(f) for row in data: writer.writerow(row) In example above, strings from list are written to the file and then the content of file is displayed on standard output stream. ``` $ python csv_write.py hostname,vendor,model,location sw1,Cisco,3750,"London, Best str" sw2,Cisco,3850,"Liverpool, Better str" sw3,Cisco,3650,"Liverpool, Better str" sw4,Cisco,3650,"London, Best str" ``` Note the interesting thing: strings in the last column are quoted and other values are not. This is because all strings in the last column have a comma. And quotes indicate what is an entire string. When a comma is inside quotation marks the csv module does not perceive it as a separator. Sometimes it’s better to have all strings quoted. Of course, in this case, example is simple enough but when there are more values in the strings, the quotes indicate where value begins and ends. Csv module allows you to control this. For all strings to be written in a CSV file with quotes you should change script this way (csv_write_quoting.py file): with open('sw_data_new.csv', 'w') as f: writer = csv.writer(f, quoting=csv.QUOTE_NONNUMERIC) for row in data: writer.writerow(row) Now the output is this: ``` $ python csv_write_quoting.py "hostname","vendor","model","location" "sw1","Cisco","3750","London, Best str" "sw2","Cisco","3850","Liverpool, Better str" "sw3","Cisco","3650","Liverpool, Better str" "sw4","Cisco","3650","London, Best str" ``` Now all values are quoted. And because model number is given as a string in original list, it is quoted here as well. Besides `writerow` method, `writerows` method is supported. It accepts any iterable object. So, previous example can be written this way (csv_writerows.py file): with open('sw_data_new.csv', 'w') as f: writer = csv.writer(f, quoting=csv.QUOTE_NONNUMERIC) writer.writerows(data) ### DictWriter# With `DictWriter` you can write dictionaries in CSV format. In general, `DictWriter` works as `writer` but since dictionaries are not ordered it is necessary to specify the order of columns in file. The `fieldnames` option is used for this purpose (csv_write_dict.py file): data = [{ 'hostname': 'sw1', 'location': 'London', 'model': '3750', 'vendor': 'Cisco' }, { 'hostname': 'sw2', 'location': 'Liverpool', 'model': '3850', 'vendor': 'Cisco' }, { 'hostname': 'sw3', 'location': 'Liverpool', 'model': '3650', 'vendor': 'Cisco' }, { 'hostname': 'sw4', 'location': 'London', 'model': '3650', 'vendor': 'Cisco' }] with open('csv_write_dictwriter.csv', 'w') as f: writer = csv.DictWriter( f, fieldnames=list(data[0].keys()), quoting=csv.QUOTE_NONNUMERIC) writer.writeheader() for d in data: writer.writerow(d) ``` ## Delimiter# Sometimes other values are used as a separator. In this case, it should be possible to tell module which separator to use. For example, if the file uses separator `;` (sw_data2.csv file): ``` hostname;vendor;model;location sw1;Cisco;3750;London sw2;Cisco;3850;Liverpool sw3;Cisco;3650;Liverpool sw4;Cisco;3650;London ``` Simply specify which separator is used in `reader` (csv_read_delimiter.py file): JSON (JavaScript Object Notation) - a text format for data storage and exchange. JSON syntax is very similar to Python and is user-friendly. As for CSV, Python has a module that allows easy writing and reading of data in JSON format. File sw_templates.json: There are two methods for reading in json module: * `json.load` - method reads JSON file and returns Python objects * `json.loads` - method reads string in JSON format and returns Python objects `json.load` # Reading JSON file to Python object (json_read_load.py file): with open('sw_templates.json') as f: templates = json.load(f) ``` $ python json_read_load.py {'access': ['switchport mode access', 'switchport access vlan', 'switchport nonegotiate', 'spanning-tree portfast', 'spanning-tree bpduguard enable'], 'trunk': ['switchport trunk encapsulation dot1q', 'switchport mode trunk', 'switchport trunk native vlan 999', 'switchport trunk allowed vlan']} access switchport mode access switchport access vlan switchport nonegotiate spanning-tree portfast spanning-tree bpduguard enable trunk switchport trunk encapsulation dot1q switchport mode trunk switchport trunk native vlan 999 switchport trunk allowed vlan ``` `json.loads` # Reading JSON string to Python object (json_read_loads.py file): with open('sw_templates.json') as f: file_content = f.read() templates = json.loads(file_content) The result will be similar to previous output. Writing a file in JSON format is also fairly easy. There are also two methods for writing information in JSON format in json module: * `json.dump` - method writes Python object to file in JSON format * `json.dumps` - method returns string in JSON format ### json.dumps()# Convert object to string in JSON format (json_write_dumps.py): with open('sw_templates.json', 'w') as f: f.write(json.dumps(to_json)) Method `json.dumps` is suitable for situations where you want to return a string in JSON format. For example, to pass it to the API. `json.dump` # Write a Python object to a JSON file (json_write_dump.py file): with open('sw_templates.json', 'w') as f: json.dump(to_json, f) When you want to write information in JSON format into a file, it is better to use `dump` method. ### Additional parameters of write methods# Methods `dump` and `dumps` can pass additional parameters to manage the output format. By default, these methods write information in a compact view. As a rule, when data is used by other programs, visual presentation of data is not important. If data in file needs to be read by person, this format is not very convenient to perceive. Fortunately, `json` module allows you to manage such things. By passing additional parameters to `dump` method (or `dumps` method) you can get a more readable output (json_write_indent.py file): with open('sw_templates.json', 'w') as f: json.dump(to_json, f, sort_keys=True, indent=2) Now the content of sw_templates.json file is: ### Changing data type# Another important aspect of data conversion to JSON format is that data will not always be the same type as source data in Python. For example, when you write a tuple to JSON it becomes a list: ``` In [1]: import json In [2]: trunk_template = ('switchport trunk encapsulation dot1q', ...: 'switchport mode trunk', ...: 'switchport trunk native vlan 999', ...: 'switchport trunk allowed vlan') In [3]: print(type(trunk_template)) <class 'tuple'In [4]: with open('trunk_template.json', 'w') as f: ...: json.dump(trunk_template, f, sort_keys=True, indent=2) ...: In [5]: cat trunk_template.json [ "switchport trunk encapsulation dot1q", "switchport mode trunk", "switchport trunk native vlan 999", "switchport trunk allowed vlan" ] In [6]: templates = json.load(open('trunk_template.json')) In [7]: type(templates) Out[7]: list In [8]: print(templates) ['switchport trunk encapsulation dot1q', 'switchport mode trunk', 'switchport trunk native vlan 999', 'switchport trunk allowed vlan'] ``` This is because JSON uses different data types and does not have matches for all Python data types. Python data conversion table to JSON: JSON conversion table to Python data: ### Limitation on data types# It’s not possible to write a dictionary in JSON format if it has tuples as a keys. ``` In [23]: to_json = {('trunk', 'cisco'): trunk_template, 'access': access_template} In [24]: with open('sw_templates.json', 'w') as f: ...: json.dump(to_json, f) ...: ... TypeError: key ('trunk', 'cisco') is not a string ``` By using additional parameter you can ignore such keys: ``` In [25]: to_json = {('trunk', 'cisco'): trunk_template, 'access': access_template} In [26]: with open('sw_templates.json', 'w') as f: ...: json.dump(to_json, f, skipkeys=True) ...: ...: In [27]: cat sw_templates.json {"access": ["switchport mode access", "switchport access vlan", "switchport nonegotiate", "spanning-tree portfast", "spanning-tree bpduguard enable"]} ``` Beside that, dictionary keys can only be strings in JSON. But if numbers are used in Python dictionary there will be no error. But conversion from numbers to strings will take place: ``` In [28]: d = {1:100, 2:200} In [29]: json.dumps(d) Out[29]: '{"1": 100, "2": 200}' ``` YAML (YAML Ain’t Markup Language) - another text format for writing data. YAML is more human-friendly than JSON, so it is often used to describe actions in software. Playbooks in Ansible, for example. ## YAML syntax# Like Python, YAML uses indents to specify the structure of document. But YAML can only use spaces and cannot use tabs. Another similarity with Python is that comments start with `#` and continue until the end of line. A list can be written in one line: ``` [switchport mode access, switchport access vlan, switchport nonegotiate, spanning-tree portfast, spanning-tree bpduguard enable] ``` Or every item in the list in separate row: When a list is written in such a block, each row must start with ``- `` (minus and space) and all lines in the list must be at the same indentation level. ### Dictionary# A dictionary can also be written in one line: ``` {vlan: 100, name: IT} ``` Or a block: ``` vlan: 100 name: IT ``` ### Strings# Strings in YAML don’t have to be quoted. This is convenient, but sometimes quotes should be used. For example, when a special character (special for YAML) is used in a string. This line, for example, should be quoted to be correctly understood by YAML: ``` command: "sh interface | include Queueing strategy:" ``` ### Combination of elements# A dictionary with two keys: access and trunk. Values that correspond to these keys - command lists: trunk: - switchport trunk encapsulation dot1q - switchport mode trunk - switchport trunk native vlan 999 - switchport trunk allowed vlan ``` List of dictionaries: ## PyYAML module# Python uses a PyYAML module to work with YAML. It is not part of the standard module library, so it needs to be installed: `pip install pyyaml` Work with it is similar to csv and json modules. ### Reading from YAML# Converting data from YAML file to Python objects (info.yaml file): Reading from YAML (yaml_read.py file): ``` import yaml from pprint import pprint with open('info.yaml') as f: templates = yaml.safe_load(f) pprint(templates) ``` ``` $ python yaml_read.py [{'BS': 1550, 'IT': 791, 'id': 11, 'name': 'Liverpool', 'to_id': 1, 'to_name': 'LONDON'}, {'BS': 1510, 'IT': 793, 'id': 12, 'name': 'Bristol', 'to_id': 1, 'to_name': 'LONDON'}, {'BS': 1650, 'IT': 892, 'id': 14, 'name': 'Coventry', 'to_id': 2, 'to_name': 'Manchester'}] ``` YAML format is very convenient for storing different parameters, especially if they are filled manually. ### Writing to YAML# Write Python objects to YAML (yaml_write.py file): to_yaml = {'trunk': trunk_template, 'access': access_template} with open('sw_templates.yaml', 'w') as f: yaml.dump(to_yaml, f, default_flow_style=False) with open('sw_templates.yaml') as f: print(f.read()) ``` File sw_templates.yaml: ``` access: - switchport mode access - switchport access vlan - switchport nonegotiate - spanning-tree portfast - spanning-tree bpduguard enable trunk: - switchport trunk encapsulation dot1q - switchport mode trunk - switchport trunk native vlan 999 - switchport trunk allowed vlan ``` In this section only basic read and write operations were covered with no additional parameters. More details can be found in the module documentation. In addition, PyMOTW has very good description of all Python modules that are part of the standard library (installed with Python): Example of getting JSON data via Github API: Date: 2019-10-11 Categories: Tags: ## Task 17.1# Create the write_dhcp_snooping_to_csv function, which processes the output of the show dhcp snooping binding command from different files and writes the processed data to the csv file. filenames - list of filenames with “show dhcp snooping binding” command output * For example, if a list with one file sw3_dhcp_snooping.txt was passed as an argument: ``` MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- -------------------- 00:E9:BC:3F:A6:50 100.1.1.6 76260 dhcp-snooping 3 FastEthernet0/20 00:E9:22:11:A6:50 100.1.1.7 76260 dhcp-snooping 3 FastEthernet0/21 Total number of bindings: 2 ``` The resulting csv file should contain the following content: ``` switch,mac,ip,vlan,interface sw3,00:E9:BC:3F:A6:50,100.1.1.6,3,FastEthernet0/20 sw3,00:E9:22:11:A6:50,100.1.1.7,3,FastEthernet0/21 ``` The first column in the csv file, the name of the switch, must be obtained from the file name, the rest - from the contents in the files. Check the function on the contents of the files sw1_dhcp_snooping.txt, sw2_dhcp_snooping.txt, sw3_dhcp_snooping.txt. ## Task 17.2# In this task you need: take the contents of several files with the output of the sh version command * parse command output using regular expressions and get device information * write this information to a file in CSV format To complete the task, you need to create two functions. parse_sh_version function: expects the output of the sh version command as an argument in single string (not a filename) * processes output using regular expressions * returns a tuple of three elements: ios - “12.4(5)T” * image - “flash:c2800-advipservicesk9-mz.124-5.T.bin” * uptime - “5 days, 3 hours, 3 minutes” The write_inventory_to_csv function must have two parameters: data_filenames - expects a list of filenames as an argument with the output of sh version * csv_filename - expects as an argument the name of a file (for example, routers_inventory.csv) to which information will be written in CSV format write_inventory_to_csv function writes the contents to a file, in CSV format and returns nothing. The write_inventory_to_csv function should do the following: process information from each file with sh version output: sh_version_r1.txt, sh_version_r2.txt, sh_version_r3.txt * using the parse_sh_version function, ios, image, uptime information should be obtained from each output * from the file name you need to get the hostname * after that all information should be written to a CSV file The routers_inventory.csv file should have the following columns (in this order): hostname, ios, image, uptime The code below has created a list of files using the glob module. You can uncomment the print(sh_version_files) line to see the content of the list. In addition, a list of headers has been created, which should be written to CSV. ``` import glob sh_version_files = glob.glob("sh_vers*") #print(sh_version_files) headers = ["hostname", "ios", "image", "uptime"] ``` ## Task 17.3# Create a function parse_sh_cdp_neighbors that processes the output of the show cdp neighbors command. The function expects, as an argument, the output of the command as a single string (not a filename). The function should return a dictionary that describes the connections between devices. The function should return a dictionary like this: ``` {"R4": {"Fa 0/1": {"R5": "Fa 0/1"}, "Fa 0/2": {"R6": "Fa 0/0"}}} ``` Check the function on the contents of the sh_cdp_n_sw1.txt file ## Task 17.3a# Create a generate_topology_from_cdp function that processes the show cdp neighbor command output from multiple files and writes the resulting topology to a single dictionary. The generate_topology_from_cdp function must be created with parameters: list_of_files - list of files from which to read the output of the sh cdp neighbor command * save_to_filename is the name of the YAML file where the topology will be saved. default is None. By default, the topology is not saved to a file. * topology is saved only if save_to_filename is file name as argument The function should return a dictionary that describes the connections between devices, regardless of whether the topology is saved to a file. ``` {"R4": {"Fa 0/1": {"R5": "Fa 0/1"}, "Fa 0/2": {"R6": "Fa 0/0"}}, "R5": {"Fa 0/1": {"R4": "Fa 0/1"}}, "R6": {"Fa 0/0": {"R4": "Fa 0/2"}}} ``` Check the work of the generate_topology_from_cdp function on the list of files: sh_cdp_n_r3.txt * sh_cdp_n_r4.txt * sh_cdp_n_r5.txt * sh_cdp_n_r6.txt Check the operation of the save_to_filename parameter and write the resulting dictionary to the topology.yaml file. You will need it in the next task. ## Task 17.3b# Create a transform_topology function that converts the topology to a format suitable for the draw_topology function. The function expects a YAML filename as an argument in which the topology is stored. The function must read data from the YAML file, transform it accordingly, so that the function returns a dictionary of the following form: ``` {("R4", "Fa 0/1"): ("R5", "Fa 0/1"), ("R4", "Fa 0/2"): ("R6", "Fa 0/0")} ``` The transform_topology function should not only change the format of the topology representation, but also remove the “duplicate” connections (they are best seen in the diagram that the draw_topology function generates from the draw_network_graph.py file). “Duplicate” connections are connections of this kind: Due to the fact that the same link is described twice, there will be extra connections on the diagram. The task is to leave only one of these links in the final dictionary, does not matter which one. Check the operation of the function on the topology.yaml file (must be created in task 17.3a). Based on the resulting dictionary, you need to generate a topology image using the draw_topology function. Do not copy draw_topology function code from draw_network_graph.py file. The result should look the same as the diagram in the task_17_3b_topology.svg file: Interfaces must be written with a space Fa 0/0 * Connections must match the diagram * There should be no “duplicate” links on the diagram ## Task 17.4# Create function write_last_log_to_csv. source_log - the name of the csv file from which the data is read (mail_log.csv) * The write_last_log_to_csv function processes the csv file mail_log.csv. The mail_log.csv file contains the logs of the username change. User cannot change email, only username. The write_last_log_to_csv function should select from the mail_log.csv file only the most recent entries for each user and write them to another csv file. In the output file, the first line should be the column headers as in the source_log file. For some users, there is only one record, and then it is necessary to write to the final file only her. For some users, there are multiple entries with different names. For example, a user with email <EMAIL> changed his username several times: ``` C=3PO,<EMAIL>,16/12/2019 17:10 C3PO,<EMAIL>,16/12/2019 17:15 C-3PO,<EMAIL>,16/12/2019 17:24 ``` Of these three records, only one should be written to the final file - the most recent: ``` C-3PO,<EMAIL>,16/12/2019 17:24 ``` It is convenient to use datetime objects from the datetime module for comparing dates. To make it easier to work with dates, the convert_str_to_datetime function has been created - it converts a date string in the format 11/10/2019 14:05 into a datetime object. The resulting datetime objects can be compared with each other. The second function, convert_datetime_to_str, does the opposite — it turns a datetime object into a string. It is not necessary to use the functions convert_str_to_datetime and convert_datetime_to_str ``` import datetime def convert_str_to_datetime(datetime_str): """ Converts a date string formatted as 11/10/2019 14:05 to a datetime object. """ return datetime.datetime.strptime(datetime_str, "%d/%m/%Y %H:%M") def convert_datetime_to_str(datetime_obj): """ Converts a datetime object to a date string in the format 11/10/2019 14:05. """ return datetime.datetime.strftime(datetime_obj, "%d/%m/%Y %H:%M") ``` SSH and Telnet connection * simultaneous connection to multiple devices * creating configuration templates with Jinja2 * SSH and Telnet connection simultaneous connection to multiple devices creating configuration templates with Jinja2 This section discusses how to connect to network devices via: SSH * Telnet Python has several modules that allow you to connect to network devices and execute commands: * `pexpect` - an implementation of `expect` in Python this module allows working with any interactive session: ssh, telnet, sftp, etc. * in addition, it makes possible to execute different commands in OS (this can also be done with other modules) * while pexpect may be less user-friendly than other modules, it implements a more general functionality and allows it to be used in situations where other modules do not work * `telnetlib` - this module allows you connecting via Telnet * `netmiko` version >= 1.0 also has Telnet support, so if `netmiko` supports the network devices you use, it is more convenient to use it * `paramiko` - his module allows you connecting via SSHv2 it is more convenient to use than `pexpect` but with narrower functionality (only supports SSH) * `netmiko` - module that simplifies the use of paramiko for network devices * `netmiko` is a “wrapper” which is oriented to work with network devices * `scrapli` - is a module that allows you to connect to network equipment using Telnet, SSH or NETCONF This section covers all five modules and describes how to connect to several devices in parallel. Three routers are used in section examples. There are no requirements for them, only configured SSHv2 and Telnet. Parameters used in these section: SSH version 2, Telnet * IP addresses: 192.168.100.1, 192.168.100.2, 192.168.100.3 During manual connection to device the password is also manually entered. When automating connection it is necessary to decide how password will be transmitted: Request password at start of the script and read user input. Disadvantage is that you can see which characters user is typing * Write login and password in some file (it’s not secure). As a rule, the same user uses the same login and password to connect to devices. And usually it’s enough to request login and password at the start of the script and then use them to connect to different devices. Unfortunately, if you use `input` the typed password will be visible. But it is better if no characters are displayed when entering a password. ## Module getpass# Module getpass allows you to request a password without displaying input characters: ``` In [1]: import getpass In [2]: password = getpass.getpass() Password: In [3]: print(password) testpass ``` ## Environment variables# Another way to store a password (or even a username) is by environment variables. For example, login and password are written in variables: ``` $ export SSH_USER=user $ export SSH_PASSWORD=userpass ``` And then Python reads values to variables in the script: USERNAME = os.environ.get('SSH_USER') PASSWORD = os.environ.get('SSH_PASSWORD') ``` Date: 2020-07-19 Categories: Tags: Module pexpect allows to automate interactive connections such as: telnet * ssh * ftp Pexpect is an implementation of expect in Python. First, pexpect module needs to be installed: `pip install pexpect` The logic of pexpect is: some program is running * pexpect expects a certain output (prompt, password request, etc.) * after receiving the output, it sends commands/data * last two actions are repeated as many times as necessary At the same time, pexpect does not implement utilities but uses ready-made ones. `pexpect.spawn` # Class `spawn` allows you to interact with called program by sending data and waiting for a response. For example, you can initiate SSH connecton: After executing this line, connection is established. Now you must specify which line to expect. In this case, wait for password request: ``` In [6]: ssh.expect('[Pp]assword') Out[6]: 0 ``` Note how line that pexpect expects is written as `[Pp]assword` . This is a regex that describes a `password` or `Password` string. That is, `expect` method can be used to pass a regex as an argument. Method `expect` returned number 0 as a result of the work. This number indicates that a match has been found and that this element with index zero. Index appears here because you can pass a list of strings. For example, you can pass a list with two elements: ``` In [7]: ssh = pexpect.spawn('ssh [email protected]') In [8]: ssh.expect(['password', 'Password']) Out[8]: 1 ``` Note that it now returns 1. This means that `Password` word matched. Now you can send password using `sendline` method: ``` In [9]: ssh.sendline('cisco') Out[9]: 6 ``` Method `sendline` sends a string, automatically adds a new line character to it based on the value of `os.linesep` and then returns a number indicating how many bytes were written. Note Pexpect has several methods for sending commands, not just sendline. To get into enable mode expect-sendline cycle repeats: ``` In [10]: ssh.expect('[>#]') Out[10]: 0 In [11]: ssh.sendline('enable') Out[11]: 7 In [12]: ssh.expect('[Pp]assword') Out[12]: 0 In [13]: ssh.sendline('cisco') Out[13]: 6 In [14]: ssh.expect('[>#]') Out[14]: 0 ``` Now we can send a command: ``` In [15]: ssh.sendline('sh ip int br') Out[15]: 13 ``` After sending the command, pexpect must be told until what point to read the output. We specify that it should read untill `#` : ``` In [16]: ssh.expect('#') Out[16]: 0 ``` Command output is in `before` attribute: Since the result is displayed as a sequence of bytes you should convert it to a string: ``` In [18]: show_output = ssh.before.decode('utf-8') In [19]: print(show_output) sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.1 YES NVRAM up up Ethernet0/1 192.168.200.1 YES NVRAM up up Ethernet0/2 19.1.1.1 YES NVRAM up up Ethernet0/3 192.168.230.1 YES NVRAM up up Ethernet0/3.100 10.100.0.1 YES NVRAM up up Ethernet0/3.200 10.200.0.1 YES NVRAM up up Ethernet0/3.300 10.30.0.1 YES NVRAM up up R1 ``` Session ends with a `close` call: `In [20]: ssh.close()` ## Special characters in shell# Pexpect does not interpret special shell characters such as `>` , `|` , `*` . For example, in order make command ``` ls -ls | grep SUMMARY ``` work, shell must be run as follows: ``` In [1]: import pexpect In [2]: p = pexpect.spawn('/bin/bash -c "ls -ls | grep pexpect"') In [3]: p.expect(pexpect.EOF) Out[3]: 0 In [4]: print(p.before) b'4 -rw-r--r-- 1 vagrant vagrant 3203 Jul 14 07:15 1_pexpect.py\r\n' In [5]: print(p.before.decode('utf-8')) 4 -rw-r--r-- 1 vagrant vagrant 3203 Jul 14 07:15 1_pexpect.py ``` ## pexpect.EOF# In the previous example we met pexpect.EOF. EOF — end of file This is a special value that allows you to react to the end of a command or session that has been run in spawn. When calling `ls -ls` command, pexpect does not receive an interactive session. Command is simply executed and that ends its work. Therefore, if you run this command and set prompt in `expect` , there is an error: ``` In [5]: p = pexpect.spawn('/bin/bash -c "ls -ls | grep SUMMARY"') In [6]: p.expect('nattaur') --------------------------------------------------------------------------- EOF Traceback (most recent call last) <ipython-input-9-9c71777698c2> in <module>() ----> 1 p.expect('nattaur') ... ``` If EOF passed to `expect` , there will be no error. `pexpect.expect` # In `pexpect.expect` as a value can be used: regex * EOF - this template allows you to react to EOF exception * TIMEOUT - timeout exception (default timeout = 30 seconds) * compiled regex Another very useful feature of `pexpect.expect` is that you can pass not a single value, but a list. For example: ``` In [7]: p = pexpect.spawn('/bin/bash -c "ls -ls | grep netmiko"') In [8]: p.expect(['py3_convert', pexpect.TIMEOUT, pexpect.EOF]) Out[8]: 2 ``` Here are some important points: when pexpect.expect is called with a list, you can specify different expected strings * apart strings, exceptions also can be specified * pexpect.expect returns number of element that matched in this case number 2 because EOF exception is number two in the list * with this format you can make branches in the program depending on the element which had a match # Example of pexpect use# Example of using pexpect when connecting to equipment and passing show command (file 1_pexpect.py): ssh.sendline("terminal length 0") ssh.expect(prompt) This part of function is responsible for switching to enable mode: ``` enable_status = ssh.expect([">", "#"]) if enable_status == 0: ssh.sendline("enable") ssh.expect("[Pp]assword") ssh.sendline(enable) ssh.expect(prompt) ``` If ``` ssh.expect([">", "#"]) ``` does not return index 0, it means that connection was not switched to enable mode automaticaly and it should be done separately. If index 1 is returned, then we are already in enable mode, for example, because device is configured with privilege 15. Another interesting point about this function: Here commands are sent in turn and `expect` waits for three options: prompt, timeout or EOF. If `expect` method didn’t catch `#` , value 1 will be returned and in this case a message is displayed, that symbol was not found. But in both cases, when a match is found or timeout the resulting output is written to dictionary. Thus, you can see what was received from device, even if prompt is not found. Output after script execution: ``` {'sh clock': 'sh clock\n*13:13:47.525 UTC Sun Jul 19 2020\n', 'sh int desc': 'sh int desc\n' 'Interface Status Protocol Description\n' 'Et0/0 up up \n' 'Et0/1 up up \n' 'Et0/2 up up \n' 'Et0/3 up up \n' 'Lo22 up up \n' 'Lo33 up up \n' 'Lo45 up up \n' 'Lo55 up up \n'} {'sh clock': 'sh clock\n*13:13:50.450 UTC Sun Jul 19 2020\n', 'sh int desc': 'sh int desc\n' 'Interface Status Protocol Description\n' 'Et0/0 up up \n' 'Et0/1 up up \n' 'Et0/2 admin down down \n' 'Et0/3 admin down down \n' 'Lo0 up up \n' 'Lo9 up up \n' 'Lo19 up up \n' 'Lo33 up up \n' 'Lo100 up up \n'} {'sh clock': 'sh clock\n*13:13:53.360 UTC Sun Jul 19 2020\n', 'sh int desc': 'sh int desc\n' 'Interface Status Protocol Description\n' 'Et0/0 up up \n' 'Et0/1 up up \n' 'Et0/2 admin down down \n' 'Et0/3 admin down down \n' 'Lo33 up up \n'} ``` ## Working with pexpect without disabling commands pagination# Sometimes the output of a command is very large and cannot be read completely or device is not makes it possible to disable pagination. In this case, a slightly different approach is needed. The same task will be repeated for other modules in this section. Example of using pexpect to work with paginated output of show command (1_pexpect_more.py file): ssh.sendline(command) output = "" while True: match = ssh.expect([prompt, "--More--", pexpect.TIMEOUT]) page = ssh.before.replace("\r\n", "\n") page = re.sub(" +\x08+ +\x08+", "\n", page) output += page if match == 0: break elif match == 1: ssh.send(" ") else: print("Error: timeout") break output = re.sub("\n +\n", "\n", output) return output if __name__ == "__main__": devices = ["192.168.100.1", "192.168.100.2", "192.168.100.3"] for ip in devices: result = send_show_command(ip, "cisco", "cisco", "cisco", "sh run") with open(f"{ip}_result.txt", "w") as f: f.write(result) ``` Now after sending the command, `expect` method waits for another option `--More--` - sign, that there will be one more page further. Since it’s not known in advance how many pages will be in the output, reading is performed in a loop `while True` . Loop is interrupted if prompt is met `#` or no prompt appears within 10 seconds or `--More--` . If `--More--` is met, pages are not over yet and you have to scroll through the next one. In Cisco, you need to press space bar to do this (without new line). Therefore, `send` method is used here, not `sendline` - sendline automatically adds a new line character. This string ``` page = re.sub(" +\x08+ +\x08+", "\n", page) ``` removes backspace symbols which are around `--More--` so they don’t end up in the final output. Date: 2017-11-03 Categories: Tags: Module telnetlib is part of standard Python library. This is telnet client implementation. It is also possible to connect via telnet using pexpect. The advantage of telnetlib is that this module is part of standard Python library. Telnetlib resembles pexpect but has several differences. The most notable difference is that telnetlib requires a pass of a byte string, rather than normal one. Connection is performed as follows: ``` In [1]: telnet = telnetlib.Telnet('192.168.100.1') ``` `read_until` # Method `read_until` specifies till which line the output should be read. However, as an argument, it is necessary to pass bytes, not the usual string: ``` In [2]: telnet.read_until(b'Username') Out[2]: b'\r\n\r\nUser Access Verification\r\n\r\nUsername' ``` Method `read_until` returns everything it has read before specified string. ## Method write# The `write` method is used to transmit data. You must pass a byte string as an argument: ``` In [3]: telnet.write(b'cisco\n') ``` Read output till Password and pass the password: ``` In [4]: telnet.read_until(b'Password') Out[4]: b': cisco\r\nPassword' In [5]: telnet.write(b'cisco\n') ``` You can now specify what should be read untill prompt and then send the command: ``` In [6]: telnet.read_until(b'>') Out[6]: b': \r\nR1>' In [7]: telnet.write(b'sh ip int br\n') ``` After sending a command, you can continue to use `read_until` method: `read_very_eager` # Or use another read method `read_very_eager` . When using `read_very_eager` method, you can send multiple commands and then read all available output: ``` In [9]: telnet.write(b'sh arp\n') In [10]: telnet.write(b'sh clock\n') In [11]: telnet.write(b'sh ip int br\n') In [12]: all_result = telnet.read_very_eager().decode('utf-8') In [13]: print(all_result) sh arp Protocol Address Age (min) Hardware Addr Type Interface Internet 10.30.0.1 - aabb.cc00.6530 ARPA Ethernet0/3.300 Internet 10.100.0.1 - aabb.cc00.6530 ARPA Ethernet0/3.100 Internet 10.200.0.1 - aabb.cc00.6530 ARPA Ethernet0/3.200 Internet 19.1.1.1 - aabb.cc00.6520 ARPA Ethernet0/2 Internet 192.168.100.1 - aabb.cc00.6500 ARPA Ethernet0/0 Internet 192.168.100.2 124 aabb.cc00.6600 ARPA Ethernet0/0 Internet 192.168.100.3 143 aabb.cc00.6700 ARPA Ethernet0/0 Internet 192.168.100.100 160 aabb.cc80.c900 ARPA Ethernet0/0 Internet 192.168.200.1 - 0203.e800.6510 ARPA Ethernet0/1 Internet 192.168.200.100 13 0800.27ac.16db ARPA Ethernet0/1 Internet 192.168.230.1 - aabb.cc00.6530 ARPA Ethernet0/3 R1>sh clock *19:18:57.980 UTC Fri Nov 3 2017 R1>sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.1 YES NVRAM up up Ethernet0/1 192.168.200.1 YES NVRAM up up Ethernet0/2 19.1.1.1 YES NVRAM up up Ethernet0/3 192.168.230.1 YES NVRAM up up Ethernet0/3.100 10.100.0.1 YES NVRAM up up Ethernet0/3.200 10.200.0.1 YES NVRAM up up Ethernet0/3.300 10.30.0.1 YES NVRAM up up R1> ``` Warning You should always set `time.sleep(n)` before using `read_very_eager` . With `read_until` will be a slightly different approach. You can execute the same three commands, but then get the output one by one because of reading till prompt string: ``` In [14]: telnet.write(b'sh arp\n') In [15]: telnet.write(b'sh clock\n') In [16]: telnet.write(b'sh ip int br\n') In [17]: telnet.read_until(b'>') Out[17]: b'sh arp\r\nProtocol Address Age (min) Hardware Addr Type Interface\r\nInternet 10.30.0.1 - aabb.cc00.6530 ARPA Ethernet0/3.300\r\nInternet 10.100.0.1 - aabb.cc00.6530 ARPA Ethernet0/3.100\r\nInternet 10.200.0.1 - aabb.cc00.6530 ARPA Ethernet0/3.200\r\nInternet 19.1.1.1 - aabb.cc00.6520 ARPA Ethernet0/2\r\nInternet 192.168.100.1 - aabb.cc00.6500 ARPA Ethernet0/0\r\nInternet 192.168.100.2 126 aabb.cc00.6600 ARPA Ethernet0/0\r\nInternet 192.168.100.3 145 aabb.cc00.6700 ARPA Ethernet0/0\r\nInternet 192.168.100.100 162 aabb.cc80.c900 ARPA Ethernet0/0\r\nInternet 192.168.200.1 - 0203.e800.6510 ARPA Ethernet0/1\r\nInternet 192.168.200.100 15 0800.27ac.16db ARPA Ethernet0/1\r\nInternet 192.168.230.1 - aabb.cc00.6530 ARPA Ethernet0/3\r\nR1>' In [18]: telnet.read_until(b'>') Out[18]: b'sh clock\r\n*19:20:39.388 UTC Fri Nov 3 2017\r\nR1>' `read_until` vs `read_very_eager` # An important difference between `read_until` and `read_very_eager` is how they react to the lack of output. Method `read_until` waits for a certain string. By default, if it does not exist, method will “freeze”. Timeout option allows you to specify how long to wait for the desired string: ``` In [20]: telnet.read_until(b'>', timeout=5) Out[20]: b'' ``` If no string appears during the specified time, an empty string is returned. Method `read_very_eager` simply returns an empty string if there is no output: ``` In [21]: telnet.read_very_eager() Out[21]: b'' ``` `expect` # Method `expect` allows you to specify a list with regular expressions. It works like pexpect but telnetlib always has to pass a list of regular expressions. You can then pass byte strings or compiled regular expressions: ``` In [22]: telnet.write(b'sh clock\n') In [23]: telnet.expect([b'[>#]']) Out[23]: (0, <_sre.SRE_Match object; span=(46, 47), match=b'>'>, b'sh clock\r\n*19:35:10.984 UTC Fri Nov 3 2017\r\nR1>') ``` Method `expect` returns tuple of their three elements: index of matched expression * object Match * byte string that contains everything read till regular expression including regular expression Accordingly, if necessary you can continue working with these elements: ``` In [24]: telnet.write(b'sh clock\n') In [25]: regex_idx, match, output = telnet.expect([b'[>#]']) In [26]: regex_idx Out[26]: 0 In [27]: match.group() Out[27]: b'>' In [28]: match Out[28]: <_sre.SRE_Match object; span=(46, 47), match=b'>'In [29]: match.group() Out[29]: b'>' In [30]: output Out[30]: b'sh clock\r\n*19:37:21.577 UTC Fri Nov 3 2017\r\nR1>' In [31]: output.decode('utf-8') Out[31]: 'sh clock\r\n*19:37:21.577 UTC Fri Nov 3 2017\r\nR1>' ``` Method `close` closes connection but it’s better to open and close connection using context manager: ``` In [32]: telnet.close() ``` Using Telnet object as context manager added in version 3.6 ## Telnetlib usage example# Working principle of telnetlib resembles pexpect, so the example below should be clear (2_telnetlib.py): def send_show_command(ip, username, password, enable, commands): with telnetlib.Telnet(ip) as telnet: telnet.read_until(b"Username") telnet.write(to_bytes(username)) telnet.read_until(b"Password") telnet.write(to_bytes(password)) index, m, output = telnet.expect([b">", b"#"]) if index == 0: telnet.write(b"enable\n") telnet.read_until(b"Password") telnet.write(to_bytes(enable)) telnet.read_until(b"#", timeout=5) telnet.write(b"terminal length 0\n") telnet.read_until(b"#", timeout=5) time.sleep(3) telnet.read_very_eager() result = {} for command in commands: telnet.write(to_bytes(command)) output = telnet.read_until(b"#", timeout=5).decode("utf-8") result[command] = output.replace("\r\n", "\n") return result Since bytes need to be passed to `write` method and new line character should be added each time, a small function `to_bytes` is created that does the conversion to bytes and adds a new line. Script execution: ``` {'sh int desc': 'sh int desc\n' 'Interface Status Protocol Description\n' 'Et0/0 up up \n' 'Et0/1 up up \n' 'Et0/2 up up \n' 'Et0/3 up up \n' 'R1#', 'sh ip int br': 'sh ip int br\n' 'Interface IP-Address OK? Method Status Protocol\n' 'Ethernet0/0 192.168.100.1 YES NVRAM up up \n' 'Ethernet0/1 192.168.200.1 YES NVRAM up up \n' 'Ethernet0/2 unassigned YES NVRAM up up \n' 'Ethernet0/3 192.168.130.1 YES NVRAM up up \n' 'R1#'} {'sh int desc': 'sh int desc\n' 'Interface Status Protocol Description\n' 'Et0/0 up up \n' 'Et0/1 up up \n' 'Et0/2 admin down down \n' 'Et0/3 admin down down \n' 'R2#', 'sh ip int br': 'sh ip int br\n' 'Interface IP-Address OK? Method Status Protocol\n' 'Ethernet0/0 192.168.100.2 YES NVRAM up up \n' 'Ethernet0/1 unassigned YES NVRAM up up \n' 'Ethernet0/2 unassigned YES NVRAM administratively down down \n' 'Ethernet0/3 unassigned YES NVRAM administratively down down \n' 'R2#'} {'sh int desc': 'sh int desc\n' 'Interface Status Protocol Description\n' 'Et0/0 up up \n' 'Et0/1 up up \n' 'Et0/2 admin down down \n' 'Et0/3 admin down down \n' 'R3#', 'sh ip int br': 'sh ip int br\n' 'Interface IP-Address OK? Method Status Protocol\n' 'Ethernet0/0 192.168.100.3 YES NVRAM up up \n' 'Ethernet0/1 unassigned YES NVRAM up up \n' 'Ethernet0/2 unassigned YES NVRAM administratively down down \n' 'Ethernet0/3 unassigned YES NVRAM administratively down down \n' ``` Example of using telnetlib to work with paginated output of show commands (2_telnetlib_more.py file): def send_show_command(ip, username, password, enable, command): with telnetlib.Telnet(ip) as telnet: telnet.read_until(b"Username") telnet.write(to_bytes(username)) telnet.read_until(b"Password") telnet.write(to_bytes(password)) index, m, output = telnet.expect([b">", b"#"]) if index == 0: telnet.write(b"enable\n") telnet.read_until(b"Password") telnet.write(to_bytes(enable)) telnet.read_until(b"#", timeout=5) time.sleep(3) telnet.read_very_eager() telnet.write(to_bytes(command)) result = "" while True: index, match, output = telnet.expect([b"--More--", b"#"], timeout=5) output = output.decode("utf-8") output = re.sub(" +--More--| +\x08+ +\x08+", "\n", output) result += output if index in (1, -1): break telnet.write(b" ") time.sleep(1) result.replace("\r\n", "\n") if __name__ == "__main__": devices = ["192.168.100.1", "192.168.100.2", "192.168.100.3"] for ip in devices: result = send_show_command(ip, "cisco", "cisco", "cisco", "sh run") pprint(result, width=120) ``` Paramiko is an implementation of SSHv2 protocol on Python. Paramiko provides client-server functionality. Book covers only client functionality. Since Paramiko is not part of standard Python module library, it needs to be installed: `pip install paramiko` Connection is established in this way: first, client is created and client configuration is set, then connection is initiated and an interactive session is returned: ``` In [2]: client = paramiko.SSHClient() In [3]: client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) In [4]: client.connect(hostname="192.168.100.1", username="cisco", password="cisco", ...: look_for_keys=False, allow_agent=False) SSHClient is a class that represents a connection to SSH server. It performs client authentication. String ``` set_missing_host_key_policy ``` is optional, it indicates which policy to use when connecting to a server whose key is unknown. Policy ``` paramiko.AutoAddPolicy() ``` automatically add new hostname and key to local HostKeys object. Method `connect` connects to SSH server and authenticates the connection. Parameters: * `look_for_keys` - by default paramiko performs key authentication. To disable this, put the flag in False * `allow_agent` - paramiko can connect to a local SSH agent. This is necessary when working with keys and since in this case authentication is done by login/password, it should be disabled. After execution of previous command there is already a connection to server. Method `invoke_shell` allows to set an interactive SSH session with server. ## Method send# Method `send` - sends specified string to session and returns amount of sent bytes. ``` In [7]: ssh.send("enable\n") Out[7]: 7 In [8]: ssh.send("cisco\n") Out[8]: 6 In [9]: ssh.send("sh ip int br\n") Out[9]: 13 ``` Warning In code, after `send` you will need to put time.sleep, especially between `send` and `recv` . Since this is an interactive session and commands are slow to type, everything works without pauses. ## Method recv# Method `recv` receives data from session. In parentheses, the maximum value in bytes that can be obtained is indicated. This method returns a received string ``` In [10]: ssh.recv(3000) Out[10]: b'\r\nR1>enable\r\nPassword: \r\nR1#sh ip int br\r\nInterface IP-Address OK? Method Status Protocol\r\nEthernet0/0 192.168.100.1 YES NVRAM up up \r\nEthernet0/1 192.168.200.1 YES NVRAM up up \r\nEthernet0/2 unassigned YES NVRAM up up \r\nEthernet0/3 192.168.130.1 YES NVRAM up up \r\nLoopback22 10.2.2.2 YES manual up up \r\nLoopback33 unassigned YES unset up up \r\nLoopback45 unassigned YES unset up up \r\nLoopback55 5.5.5.5 YES manual up up \r\nR1#' ``` Method `close` closes session: `In [11]: ssh.close()` ## Example of paramiko use# Example of paramiko use (3_paramiko.py file): def send_show_command( ip, username, password, enable, command, max_bytes=60000, short_pause=1, long_pause=5, ): cl = paramiko.SSHClient() cl.set_missing_host_key_policy(paramiko.AutoAddPolicy()) cl.connect( hostname=ip, username=username, password=password, look_for_keys=False, allow_agent=False, ) with cl.invoke_shell() as ssh: ssh.send("enable\n") ssh.send(f"{enable}\n") time.sleep(short_pause) ssh.send("terminal length 0\n") time.sleep(short_pause) ssh.recv(max_bytes) output = "" while True: try: part = ssh.recv(max_bytes).decode("utf-8") output += part time.sleep(0.5) except socket.timeout: break result[command] = output ``` {'sh arp': 'sh arp\r\n' 'Protocol Address Age (min) Hardware Addr Type Interface\r\n' 'Internet 192.168.100.1 - aabb.cc00.6500 ARPA Ethernet0/0\r\n' 'Internet 192.168.100.2 124 aabb.cc00.6600 ARPA Ethernet0/0\r\n' 'Internet 192.168.100.3 183 aabb.cc00.6700 ARPA Ethernet0/0\r\n' 'Internet 192.168.100.100 208 aabb.cc80.c900 ARPA Ethernet0/0\r\n' 'Internet 192.168.101.1 - aabb.cc00.6500 ARPA Ethernet0/0\r\n' 'Internet 192.168.102.1 - aabb.cc00.6500 ARPA Ethernet0/0\r\n' 'Internet 192.168.130.1 - aabb.cc00.6530 ARPA Ethernet0/3\r\n' 'Internet 192.168.200.1 - 0203.e800.6510 ARPA Ethernet0/1\r\n' 'Internet 192.168.200.100 18 6ee2.6d8c.e75d ARPA Ethernet0/1\r\n' 'R1#', 'sh clock': 'sh clock\r\n*08:25:22.435 UTC Mon Jul 20 2020\r\nR1#'} ``` Example of using paramiko to work with paginated output of show command (3_paramiko_more.py file): def send_show_command( ip, username, password, enable, command, max_bytes=60000, short_pause=1, long_pause=5, ): cl = paramiko.SSHClient() cl.set_missing_host_key_policy(paramiko.AutoAddPolicy()) cl.connect( hostname=ip, username=username, password=password, look_for_keys=False, allow_agent=False, ) with cl.invoke_shell() as ssh: ssh.send("enable\n") ssh.send(enable + "\n") time.sleep(short_pause) ssh.recv(max_bytes) output = "" while True: try: page = ssh.recv(max_bytes).decode("utf-8") output += page time.sleep(0.5) except socket.timeout: break if "More" in page: ssh.send(" ") output = re.sub(" +--More--| +\x08+ +\x08+", "\n", output) result[command] = output Netmiko is a module that makes it easier to use paramiko for network devices. Netmiko uses paramiko but also creates interface and methods needed to work with network devices. First you need to install netmiko: `pip install netmiko` ## Supported device types# Netmiko supports several types of devices: Arista vEOS * Cisco ASA * Cisco IOS * Cisco SG300 * HP Comware7 * HP ProCurve * Juniper Junos * Linux * and other The whole list can be viewed in module repository. ## Dictionary for defining device parameters# Dictionary may have the next parameters: ``` cisco_router = { 'device_type': 'cisco_ios', 'host': '192.168.1.1', 'username': 'user', 'password': 'userpass', 'secret': 'enablepass', 'port': 20022, } ``` ## Connect via SSH# ## Enable mode# Switch to enable mode: `ssh.enable()` Exit enable mode: ``` ssh.exit_enable_mode() ``` Netmiko has several ways to send commands: * `send_command` - send one command * `send_config_set` - send list of commands or command in configuration mode * - send commands from the file (uses `send_config_set` method inside) * `send_command_timing` - send command and wait for the output based on timer `send_command` # Method send_command allows you to send one command to device. ``` result = ssh.send_command('show ip int br') ``` sends command to device and gets the output until string with prompt or until specified string prompt is automatically determined * if your device does not determine it, you can simply specify a string till which to read the output * `send_command_expect` method previously worked this way, but since version 1.0.0 this is how send_command works and send_command_expect method is left for compatibility * method returns command output * the following parameters can be passed to method: * `command_string` - command * `expect_string` - to which substring to read the output * `delay_factor` - option allows to increase delay before the start of string search * `max_loops` - number of iterations before method gives out an error (exception). By default 500 * `strip_prompt` - remove prompt from the output. Removed by default * `strip_command` - remove command from output In most cases, only command will be sufficient to specify. `send_config_set` # Method `send_config_set` allows you to send command or multiple commands in configuration mode. Example: ``` commands = ['router ospf 1', 'network 10.0.0.0 0.255.255.255 area 0', 'network 192.168.100.0 0.0.0.255 area 1'] result = ssh.send_config_set(commands) ``` goes into configuration mode, * then passes all commands * and exits configuration mode * depending on device type, there may be no exit from configuration mode. For example, there will be no exit for IOS-XR because you first have to commit changes sends commands from specified file to configuration mode. Example of use: ``` result = ssh.send_config_from_file('config_ospf.txt') ``` Method opens a file, reads commands and passes them to `send_config_set` method. ## Additional methods# Besides the above methods for sending commands, netmiko supports such methods: * `config_mode` - switch to configuration mode: `ssh.config_mode` * `exit_config_mode` - exit configuration mode: `ssh.exit_config_mode` * `check_config_mode` - check whether netmiko is in configuration mode (returns True if in configuration mode and False if not): ``` ssh.check_config_mode ``` * `find_prompt` - returns the current prompt of device: `ssh.find_prompt` * `commit` - commit on IOS-XR and Juniper: `ssh.commit` * `disconnect` - terminate SSH connection Note Variable ssh is a pre-created SSH connection: ## Telnet support# Since version 1.0.0 netmiko supports Telnet connections, so far only for Cisco IOS devices. Inside netmiko uses telnetlib to connect via Telnet. But, at the same time, it provides the same interface for work as for SSH connection. In order to connect via Telnet, it is enough in the dictionary that defines connection parameters specify device type `cisco_ios_telnet` : Otherwise, methods that apply to SSH apply to Telnet. An example similar to SSH (4_netmiko_telnet.py file): if __name__ == "__main__": device = { "device_type": "cisco_ios_telnet", "host": "192.168.100.1", "username": "cisco", "password": "cisco", "secret": "cisco", } result = send_show_command(device, ["sh clock", "sh ip int br"]) pprint(result, width=120) ``` Other methods works similarly: * `send_command_timing` * `find_prompt` * `send_config_set` * * `check_enable_mode` * `disconnect` ## Example of netmiko use# Example of netmiko use (4_netmiko.py file): if __name__ == "__main__": with open("devices.yaml") as f: devices = yaml.safe_load(f) for device in devices: result = send_show_command(device, ["sh clock", "sh ip int br"]) pprint(result, width=120) ``` In this example `terminal length` command is not passed because netmiko executes this command by default. The result of script execution: ``` {'sh clock': '*09:12:15.210 UTC Mon Jul 20 2020', 'sh ip int br': 'Interface IP-Address OK? Method Status Protocol\n' 'Ethernet0/0 192.168.100.1 YES NVRAM up up \n' 'Ethernet0/1 192.168.200.1 YES NVRAM up up \n' 'Ethernet0/2 unassigned YES NVRAM up up \n' 'Ethernet0/3 192.168.130.1 YES NVRAM up up \n'} {'sh clock': '*09:12:24.507 UTC Mon Jul 20 2020', 'sh ip int br': 'Interface IP-Address OK? Method Status Protocol\n' 'Ethernet0/0 192.168.100.2 YES NVRAM up up \n' 'Ethernet0/1 unassigned YES NVRAM up up \n' 'Ethernet0/2 unassigned YES NVRAM administratively down down \n' 'Ethernet0/3 unassigned YES NVRAM administratively down down \n'} {'sh clock': '*09:12:33.573 UTC Mon Jul 20 2020', 'sh ip int br': 'Interface IP-Address OK? Method Status Protocol\n' 'Ethernet0/0 192.168.100.3 YES NVRAM up up \n' 'Ethernet0/1 unassigned YES NVRAM up up \n' 'Ethernet0/2 unassigned YES NVRAM administratively down down \n' 'Ethernet0/3 unassigned YES NVRAM administratively down down \n'} ``` Example of using netmiko with paginated output of show command (4_netmiko_more.py file): ``` from netmiko import ConnectHandler, NetmikoTimeoutException import yaml def send_show_command(device_params, command): with ConnectHandler(**device_params) as ssh: ssh.enable() prompt = ssh.find_prompt() ssh.send_command("terminal length 100") ssh.write_channel(f"{command}\n") output = "" while True: try: page = ssh.read_until_pattern(f"More|{prompt}") output += page if "More" in page: ssh.write_channel(" ") elif prompt in output: break except NetmikoTimeoutException: break return output if __name__ == "__main__": with open("devices.yaml") as f: devices = yaml.safe_load(f) print(send_show_command(devices[0], "sh run")) ``` Date: 2021-01-30 Categories: Tags: scrapli is a module that allows you to connect to network equipment using Telnet, SSH or NETCONF. Just like netmiko, scrapli can use paramiko or telnetlib (and other modules) for the connection itself, but it provides the same interface for different types of connections and different equipment. Installing scrapli: `pip install scrapli` Note Book covers scrapli version 2021.1.30. The three main components of scrapli are: transport is a specific way to connect to equipment * channel - the next level above the transport, which is responsible for sending commands, receiving output and other interactions with equipment * driver is the interface for working with scrapli. There are both specific drivers, for example, IOSXEDriver, which understands how to interact with a specific type of equipment, and the basic Driver, which provides a minimal interface for working via SSH/Telnet. Available transport options: system - the built-in SSH client, it is assumed that the client is used on Linux/MacOS * paramiko - the paramiko module * ssh2 - the ssh2-python module (wrapper around the C library libssh2) * telnet - telnetlib * asyncssh - asyncssh module * asynctelnet - async telnet client Most of the examples will be using the system transport. Since the module interface is the same for all synchronous transport options, to use a different transport, you just need to specify it (for telnet transport, you must also specify the port). Asynchronous transport options (asyncssh, asynctelnet) are covered in the Advanced Python for network engineers (russian) Supported platforms: Cisco IOS-XE * Cisco NX-OS * Juniper JunOS * Arista EOS In addition to these platforms, there are also scrapli community platforms. And one of the advantages of scrapli is that it is relatively easy to add new platforms. There are two connection options in scrapli: using the general Scrapli class, which selects the required driver by the platform parameter, or a specific driver, for example, IOSXEDriver. The same parameters are passed to the specific driver and Scrapli. In addition to these options, there are also generic (base) drivers. If the scrapli (or scrapli community) does not support the required platform, you can add the platform to the scrapli community or use generic drivers (not covered in the book): ## Connection parameters# Basic connection parameters: host - IP address or hostname * auth_username - username for authentication * auth_password - password for authentication * auth_secondary - enable password * auth_strict_key - strict key checking (True by default) * platform - must be specified when using Scrapli * transport - which transport to use * transport_options - options for a specific transport The connection process is slightly different depending on whether you are using a context manager or not. When connecting without a context manager, you first need to pass parameters to the driver or Scrapli, and then call the open method: In [2]: ssh = Scrapli(**r1) In [3]: ssh.open() ``` After that, you can send commands: ``` In [4]: ssh.get_prompt() Out[4]: 'R1#' In [5]: ssh.close() ``` When using a context manager, you don’t need to call open: ``` In [8]: with Scrapli(**r1_driver) as ssh: ...: print(ssh.get_prompt()) ...: R1# ``` ## Using the driver# Available drivers Example of connection using the IOSXEDriver driver (connecting to Cisco IOS): ``` In [11]: from scrapli.driver.core import IOSXEDriver In [12]: r1_driver = { ...: "host": "192.168.100.1", ...: "auth_username": "cisco", ...: "auth_password": "cisco", ...: "auth_secondary": "cisco", ...: "auth_strict_key": False, ...: } In [13]: with IOSXEDriver(**r1_driver) as ssh: ...: print(ssh.get_prompt()) ...: R1# ``` Scrapli has several methods for sending commands: * `send_command` - send one show command * `send_commands` - send a list of show commands * ``` send_commands_from_file ``` - send show commands from a file * `send_config` - send one command in configuration mode * `send_configs` - send a list of commands in configuration mode * ``` send_configs_from_file ``` - send commands from file in configuration mode All of these methods return a Response object, not the output of the command as a string. ## Response object# The send_command method and other methods for sending commands return a Response object (not the output of the command). Response allows you to get not only the output of the command, but also such things as the execution time of the command, whether there were errors during the execution of the command, structured output using textfsm, and so on. You can get the output of the command by accessing the result attribute: ``` In [17]: reply.result Out[17]: '*17:31:54.232 UTC Wed Mar 31 2021' ``` The raw_result attribute contains a byte string with complete output: ``` In [18]: reply.raw_result Out[18]: b'\n*17:31:54.232 UTC Wed Mar 31 2021\nR1#' ``` For commands that take longer than normal show, it may be necessary to know the command execution time: ``` In [18]: r = ssh.send_command("ping 10.1.1.1") In [19]: r.result Out[19]: 'Type escape sequence to abort.\nSending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:\n.....\nSuccess rate is 0 percent (0/5)' In [20]: r.elapsed_time Out[20]: 10.047594 In [21]: r.start_time Out[21]: datetime.datetime(2021, 4, 1, 7, 10, 56, 63697) In [22]: r.finish_time Out[22]: datetime.datetime(2021, 4, 1, 7, 11, 6, 111291) ``` The channel_input attribute returns the command that was sent to the equipment: ``` In [23]: r.channel_input Out[23]: 'ping 10.1.1.1' ``` ## send_command method# The `send_command` method allows you to send one command to a device. ``` In [14]: reply = ssh.send_command("sh clock") ``` Method parameters (all these parameters must be passed as keyword arguments): * `strip_prompt` - remove a prompt from the output. Deleted by default * `failed_when_contains` - if the output contains the specified line or one of the lines in the list, the command will be considered as completed with an error * `timeout_ops` - maximum time to execute a command, by default it is 30 seconds for IOSXEDriver An example of using the `send_command` method: The timeout_ops parameter specifies how long to wait for the command to execute: ``` In [19]: ssh.send_command("ping 8.8.8.8", timeout_ops=20) Out[19]: Response <Success: True> ``` If the command does not complete within the specified time, a ScrapliTimeout exception will be raised (output is truncated): ``` In [20]: ssh.send_command("ping 8.8.8.8", timeout_ops=2) --------------------------------------------------------------------------- ScrapliTimeout Traceback (most recent call last) <ipython-input-20-e062fb19f0e6> in <module> ----> 1 ssh.send_command("ping 8.8.8.8", timeout_ops=2) ``` In addition to receiving normal command output, scrapli also allows you to receive structured output, for example using the textfsm_parse_output method: ``` In [21]: reply = ssh.send_command("sh ip int br") In [22]: reply.textfsm_parse_output() Out[22]: [{'intf': 'Ethernet0/0', 'ipaddr': '192.168.100.1', 'status': 'up', 'proto': 'up'}, {'intf': 'Ethernet0/1', 'ipaddr': '192.168.200.1', 'status': 'up', 'proto': 'up'}, {'intf': 'Ethernet0/2', 'ipaddr': 'unassigned', 'status': 'up', 'proto': 'up'}, {'intf': 'Ethernet0/3', 'ipaddr': '192.168.130.1', 'status': 'up', 'proto': 'up'}] ``` What is TextFSM and how to work with it is covered in chapter 21. Scrapli uses ready-made templates in order to receive structured output and in basic cases does not require knowledge of TextFSM. ## Error detection# Methods for sending commands automatically check the output for errors. For each vendor/type of equipment, these are different errors, plus you can specify which lines in the output will be considered an error. By default, IOSXEDriver will consider the following lines as errors: ``` In [21]: ssh.failed_when_contains Out[21]: ['% Ambiguous command', '% Incomplete command', '% Invalid input detected', '% Unknown command'] ``` The `failed` attribute of the Response object returns `False` if the command finished without error and `True` if it failed. ``` In [23]: reply = ssh.send_command("sh clck") In [24]: reply.result Out[24]: " ^\n% Invalid input detected at '^' marker." In [25]: reply Out[25]: Response <Success: FalseIn [26]: reply.failed Out[26]: True ``` ## send_config method# The `send_config` method allows you to send one configuration mode command. Example: ``` In [33]: r = ssh.send_config("username user1 password password1") ``` Since scrapli removes the command from the output, by default, when using `send_config` , the result attribute will contain an empty string (if there was no error while executing the command): ``` In [34]: r.result Out[34]: '' ``` You can add the parameter `strip_prompt=False` and then the prompt will appear in the output: ``` In [37]: r = ssh.send_config("username user1 password password1", strip_prompt=False) In [38]: r.result Out[38]: 'R1(config)#' ``` ## send_commands, send_configs# The send_commands, send_configs methods differ from send_command, send_config in that they can send several commands. In addition, these methods do not return a Response, but a MultiResponse object, which can generally be thought of as a list of Response objects, one for each command. ``` In [44]: reply = ssh.send_commands(["sh clock", "sh ip int br"]) In [45]: reply Out[45]: MultiResponse <Success: True; Response Elements: 2In [46]: for r in reply: ...: print(r) ...: print(r.result) ...: Response <Success: True> *08:38:20.115 UTC Thu Apr 1 2021 Response <Success: True> Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.1 YES NVRAM up up Ethernet0/1 192.168.200.1 YES NVRAM up up Ethernet0/2 unassigned YES NVRAM up up Ethernet0/3 192.168.130.1 YES NVRAM up up In [47]: reply.result Out[47]: 'sh clock\n*08:38:20.115 UTC Thu Apr 1 2021sh ip int br\nInterface IP-Address OK? Method Status Protocol\nEthernet0/0 192.168.100.1 YES NVRAM up up\nEthernet0/1 192.168.200.1 YES NVRAM up up\nEthernet0/2 unassigned YES NVRAM up up\nEthernet0/3 192.168.130.1 YES NVRAM up up' In [48]: reply[0] Out[48]: Response <Success: TrueIn [49]: reply[1] Out[49]: Response <Success: TrueIn [50]: reply[0].result Out[50]: '*08:38:20.115 UTC Thu Apr 1 2021' ``` When sending multiple commands, it is also very convenient to use the `stop_on_failed` parameter. By default, it is False, so all commands are executed, but if you specify `stop_on_failed=True` , after an error occurs in some command, the following commands will not be executed: ``` In [59]: reply = ssh.send_commands(["ping 192.168.100.2", "sh clck", "sh ip int br"], stop_on_failed=True) In [60]: reply Out[60]: MultiResponse <Success: False; Response Elements: 2In [61]: reply.result Out[61]: "ping 192.168.100.2\nType escape sequence to abort.\nSending 5, 100-byte ICMP Echos to 192.168.100.2, timeout is 2 seconds:\n!!!!!\nSuccess rate is 100 percent (5/5), round-trip min/avg/max = 1/2/6 mssh clck\n ^\n% Invalid input detected at '^' marker." In [62]: for r in reply: ...: print(r) ...: print(r.result) ...: Response <Success: True> Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.100.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/6 ms Response <Success: False> ^ % Invalid input detected at '^' marker. ``` ## Telnet connection# To connect to equipment via Telnet, you must specify transport equal to `telnet` and be sure to specify the port parameter equal to 23 (or the port that you use to connect via Telnet): r1 = { "host": "192.168.100.1", "auth_username": "cisco", "auth_password": "cisco2", "auth_secondary": "cisco", "auth_strict_key": False, "transport": "telnet", "port": 23, # must be specified when connecting telnet } ## Scrapli examples# Basic example of sending show command: r1 = { "host": "192.168.100.1", "auth_username": "cisco", "auth_password": "cisco", "auth_secondary": "cisco", "auth_strict_key": False, "timeout_socket": 5, # timeout for establishing socket/initial connection "timeout_transport": 10, # timeout for ssh|telnet transport } Basic example of sending config commands: def send_show(device, show_commands): if type(show_commands) == str: show_commands = [show_commands] cmd_dict = {} with Scrapli(**r1) as ssh: for cmd in show_commands: reply = ssh.send_command(cmd) cmd_dict[cmd] = reply.result return cmd_dict if __name__ == "__main__": print("show".center(20, "#")) output = send_show(r1, ["sh ip int br", "sh ver | i uptime"]) pprint(output, width=120) ``` An example of sending configuration commands with error checking: def send_cfg(device, cfg_commands, strict=False): output = "" if type(cfg_commands) == str: cfg_commands = [cfg_commands] with Scrapli(**r1) as ssh: reply = ssh.send_configs(cfg_commands, stop_on_failed=strict) for cmd_reply in reply: if cmd_reply.failed: print( f"An error occurred while executing the command::\n{reply.result}\n" ) output = reply.result return output if __name__ == "__main__": output_cfg = send_cfg( r1, ["interfacelo11", "ip address 11.1.1.1 255.255.255.255"], strict=True ) print(output_cfg) ``` Date: 2016-03-01 Categories: Tags: Further reading# Documentation: pexpect telnetlib paramiko Client paramiko Channel netmiko scrapli scrapli-cfg time datetime getpass Articles: Netmiko Library Automate SSH connections with netmiko Network Automation Using Python: BGP Configuration A Tale of Five Python SSH Libraries Commentary Code examples: netmiko scrapli netmiko, paramiko, telnetlib, scrapli, pexpect Date: 2019-03-13 Categories: Tags: ## Task 18.1# Create send_show_command function. The function connects via SSH (using netmiko) to ONE device and executes the specified command. The function should return a string with the command output. The script should send command command to all devices from the devices.yaml file using the send_show_command function (this part of the code is written). if __name__ == "__main__": command = "sh ip int br" with open("devices.yaml") as f: devices = yaml.safe_load(f) for dev in devices: print(send_show_command(dev, command)) ``` ## Task 18.1a# Copy the send_show_command function from task 18.1 and rewrite it to handle the exception that is thrown on authentication failure on the device. When an error occurs, an exception message should be printed to stdout. To verify, change the password on the device or in the devices.yaml file. ## Task 18.1b# Copy the send_show_command function from task 18.1a and rewrite it to handle not only the exception that is raised when authentication fails on the device, but also the exception that is raised when the IP address of the device is not available. When an error occurs, an exception message should be printed to standard output. To check, change the IP address on the device or in the devices.yaml file. ## Task 18.2# Create send_config_commands function The function connects via SSH (using netmiko) to ONE device and executes a list of commands in configuration mode based on the passed arguments. config_commands - list of configuration commands to be executed The function should return a string with the results of the command: ``` In [7]: r1 Out[7]: {'device_type': 'cisco_ios', 'ip': '192.168.100.1', 'username': 'cisco', 'password': 'cisco', 'secret': 'cisco'} In [8]: commands Out[8]: ['logging 10.255.255.1', 'logging buffered 20010', 'no logging console'] In [9]: result = send_config_commands(r1, commands) In [10]: result Out[10]: 'config term\nEnter configuration commands, one per line. End with CNTL/Z.\nR1(config)#logging 10.255.255.1\nR1(config)#logging buffered 20010\nR1(config)#no logging console\nR1(config)#end\nR1#' In [11]: print(result) config term Enter configuration commands, one per line. End with CNTL/Z. R1(config)#logging 10.255.255.1 R1(config)#logging buffered 20010 R1(config)#no logging console R1(config)#end R1# ``` ``` commands = [ 'logging 10.255.255.1', 'logging buffered 20010', 'no logging console' ] ``` ## Task 18.2a# Copy the send_config_commands function from job 18.2 and add the log parameter. The log parameter controls whether information is displayed about which device the connection is to: if log is equal to True - information is printed * if log is equal to False - information is not printed By default, log is equal to True. ``` In [13]: result = send_config_commands(r1, commands) Connecting to 192.168.100.1... In [14]: result = send_config_commands(r1, commands, log=False) In [15]: ``` ## Task 18.2b# Copy the send_config_commands function from task 18.2a and add error checking. When executing each command, the script should check the output for the following errors: Invalid input detected, Incomplete command, Ambiguous command If an error occurs while executing any of the commands, the function should print a message to the stdout with information about what error occurred, in which command and on which device, for example: The “logging” command was executed with the error “Incomplete command.” on the device 192.168.100.1 Errors should always be printed, regardless of the value of the log parameter. At the same time, the log parameter should still control whether the message “Connecting to 192.168.100.1…” will be displayed. Send_config_commands should now return a tuple of two dictionaries: ``` In [16]: commands Out[16]: ['logging 0255.255.1', 'logging', 'a', 'logging buffered 20010', 'ip http server'] In [17]: result = send_config_commands(r1, commands) Connecting to 192.168.100.1... "logging 0255.255.1" command was executed with error "Invalid input detected at '^' marker." on device 192.168.100.1 "logging" command was executed with error "Incomplete command." on device 192.168.100.1 "a" command was executed with error "Ambiguous command: "a"" on device 192.168.100.1 In [18]: pprint(result, width=120) ({'ip http server': 'config term\n' 'Enter configuration commands, one per line. End with CNTL/Z.\n' 'R1(config)#ip http server\n' 'R1(config)#', 'logging buffered 20010': 'config term\n' 'Enter configuration commands, one per line. End with CNTL/Z.\n' 'R1(config)#logging buffered 20010\n' 'R1(config)#'}, {'a': 'config term\n' 'Enter configuration commands, one per line. End with CNTL/Z.\n' 'R1(config)#a\n' '% Ambiguous command: "a"\n' 'R1(config)#', 'logging': 'config term\n' 'Enter configuration commands, one per line. End with CNTL/Z.\n' 'R1(config)#logging\n' '% Incomplete command.\n' '\n' 'R1(config)#', 'logging 0255.255.1': 'config term\n' 'Enter configuration commands, one per line. End with CNTL/Z.\n' 'R1(config)#logging 0255.255.1\n' ' ^\n' "% Invalid input detected at '^' marker.\n" '\n' 'R1(config)#'}) In [19]: good, bad = result In [20]: good.keys() Out[20]: dict_keys(['logging buffered 20010', 'ip http server']) In [21]: bad.keys() Out[21]: dict_keys(['logging 0255.255.1', 'logging', 'a']) ``` Examples of commands with errors: ``` R1(config)#logging 0255.255.1 ^ % Invalid input detected at '^' marker. R1(config)#a % Ambiguous command: "a" ``` Lists of command lists with and without errors: ## Task 18.2c# Copy the send_config_commands function from task 18.2b and remake it as follows: If an error occurs while executing a command, ask the user whether to continue executing other commands. Answer options [y]/n: y - execute other commands. This is the default, so any key is interpreted as y * n or no - do not execute other commands The send_config_commands function should still return a tuple of two dictionaries: ``` In [11]: result = send_config_commands(r1, commands) Connecting to 192.168.100.1... "logging 0255.255.1" command was executed with error "Invalid input detected at '^' marker." on device 192.168.100.1 Continue commands execution? [y]/n: y "logging" command was executed with error "Incomplete command." on device 192.168.100.1 Continue commands execution? [y]/n: n In [12]: pprint(result) ({}, {'logging': 'config term\n' 'Enter configuration commands, one per line. End with CNTL/Z.\n' 'R1(config)#logging\n' '% Incomplete command.\n' '\n' 'R1(config)#', 'logging 0255.255.1': 'config term\n' 'Enter configuration commands, one per line. End with ' 'CNTL/Z.\n' 'R1(config)#logging 0255.255.1\n' ' ^\n' "% Invalid input detected at '^' marker.\n" '\n' 'R1(config)#'}) ``` Lists of commands with and without errors: ## Task 18.3# Create a send_commands function (use netmiko to connect via SSH). show - one show command (string) * config - a list with commands to be executed in configuration mode TypeError: send_commands() takes 1 positional argument but 2 were given ``` Depending on which argument was passed, the send_commands function calls different functions internally. When calling the send_commands function, only one of the show, config arguments should always be passed. If both arguments are passed, a ValueError exception should be raised. A combination of an argument and a corresponding function: show - the send_show_command function from task 18.1 * config - send_config_commands function from task 18.2 The function returns a string with the results of executing single command or multiple commands. Check function operation: with a list of config commands in variable commands * single show command in variable command ``` In [14]: send_commands(r1, show='sh clock') Out[14]: '*17:06:12.278 UTC Wed Mar 13 2019' In [15]: send_commands(r1, config=['username user5 password pass5', 'username user6 password pass6']) Out[15]: 'config term\nEnter configuration commands, one per line. End with CNTL/Z.\nR1(config)#username user5 password pass5\nR1(config)#username user6 password pass6\nR1(config)#end\nR1#' ``` Commands example: ``` commands = ['logging 10.255.255.1', 'logging buffered 20010'] command = 'sh ip int br' ``` When you need to connect to a large number of devices, it will take quite a long time to complete the connections one by one. Of course, it will be faster than manual connection, but it would be faster to connect to equipment in parallel. Module concurrent.futures is used for parallel connection to devices in this section. All these “long” and “faster” are relative concepts, but in this section we will learn to measure exact script execution time to compare how quick the connection is established. There are several options for estimating execution time of the script. The simplest options are: Linux time utility * and Python datetime module When measuring the execution time of script in this case, high accuracy is not important. The main thing is to compare the execution time of script in different variants. `time` # Linux `time` utility allows you to measure the execution time of a script. To use `time` utility it is enough to write `time` before starting the script: ``` $ time python thread_paramiko.py ... real 0m4.712s user 0m0.336s sys 0m0.064s ``` We are interested in real time. In this case, it’s 4.7 seconds. `datetime` # The second option is a `datetime` module. This module allows working with time and dates in Python. Example: start_time = datetime.now() #Code is running here time.sleep(5) print(datetime.now() - start_time) ``` Output: ``` $ python test.py 0:00:05.004949 ``` First, we need to work out the terms: process - roughly speaking, it’s a launched program. Separate resources are allocated to the process: memory, processor time * thread - execution unit in the process. Thread share resources of the process to which they relate. Python (or, more precisely, CPython - the implementation used in the book) is optimized to work in single-threaded mode. This is good if program uses only one thread. And, at the same time, Python has certain nuances of running in multithreaded mode. This is because CPython uses GIL (global interpreter lock). GIL does not allow multiple threads to execute Python code at the same time. If you don’t go into detail, GIL can be visualized as a sort of flag that carried over from thread to thread. Whoever has the flag can do the job. The flag is transmitted either every Python instruction or, for example, when some type of input-output operation is performed. Therefore, different threads will not run in parallel and the program will simply switch between them executing them at different times. However, if in the program there is some “wait” (packages from the network, user request, time.sleep pause), then in such program the threads will be executed as if in parallel. This is because during such pauses the flag (GIL) can be passed to another thread. That is, threads are well suited for tasks that involve input-output (IO) operations: Connection to equipment and network connectivity in general * Working with file system * Downloading files In the Internet it is often possible to find phrases like «In Python it is better not to use threads at all». Unfortunately, such phrases are not always written in context, namely that it is about specific tasks that are tied to CPU. The next sections discuss how to use threads to connect via Telnet/SSH. Script execution time will be checked comparing the sequential execution and execution using processes. ## Processes# Processes allow to execute tasks on different computer cores. This is important for tasks that are tied to CPU. For each process a copy of resources is created, a memory is allocated, each process has its own GIL. This also makes processes “heavier” than threads. In addition, the number of processes that run in parallel depends on the number of cores and CPU and is usually estimated in dozens, while the number of threads for input-output operations can be estimated in hundreds. Processes and threads can be combined but this complicates the program and at the base level for input-output operations it is better to stop at threads. Combining threads and processes, i.e., starting a process in a program and then starting threads inside it, makes troubleshooting difficult. And I’d recomend not use that option. Although it is usually better to use threads for input-output tasks, for some modules it is better to use processes because they may not work correctly with threads. In addition to processes and threads, there is another version of concurrent connections to device: asynchronous programming. This option is not covered in the book. How many threads you need to use when connecting to device? There is no clear answer to this question. The number of threads depends at least on which computer runs the script (OS, memory, processor), on network itself (delays). So instead of looking for the perfect number of threads, you have to measure the number on your computer, your network, your script. For example, in the examples to this section there is a script netmiko_count_threads.py that runs the same function with different threads and displays runtime information. Function by default uses a small number of devices from the devices_all.yaml file and a small number of threads, but it can be adapted to any number based on your network. Example of connecting to 5,000 devices with different number of threads: ``` Number of devices: 5460 #30 threads ---------------------------------------- Execution time: 0:09:17.187867 #50 threads ---------------------------------------- Execution time: 0:09:17.604252 #70 threads ---------------------------------------- Execution time: 0:09:17.117332 #90 threads ---------------------------------------- Execution time: 0:09:16.693774 #100 threads ---------------------------------------- Execution time: 0:09:17.083294 #120 threads ---------------------------------------- Execution time: 0:09:17.945270 #140 threads ---------------------------------------- Execution time: 0:09:18.114993 #200 threads ---------------------------------------- Execution time: 0:11:12.951247 #300 threads ---------------------------------------- Execution time: 0:14:03.790432 ``` In this case, the execution time with 30 threads and 120 threads is the same and after time only increases. This is because switching between threads also takes a lot of time and the more streams the more switching. And from some moment it makes no sense to increase number of threads. For this example (this PC, code and number of devices), the optimal number is approximately 50 threads. We’re not taking 30 here in order to make a reserve. When working with threads there are several recommendations and rules. If they are respected, it is easier to work with threads and it is likely that there will be no problem with threads. Of course, from time to time, there will be tasks that will require violations of recommendations. However, before doing so, it is better to try to meet the task by adhering to recommendations. If this is not possible, then we should look for ways to secure the solution so that the data is not damaged. Very important feature of working with threads: with a small number of threads and small test tasks “everything works”. For example, printing output when connected to 20 devices in 5 threads will work normally. But when connected to a large number of devices with a large number of threads, it turns out that sometimes messages overlap. This peculiarity appears very often, so do not trust the version when “everything works” on basic examples, follow the rules of working with threads. Before dealing with rules we have to deal with term “thread safety”. Thread safety is a concept that describes work with multithreaded programs. Code is considered to be thread-safe if it can work normally with multiple threads. For example, In general, there is no problem if each thread works with its own resources. For example, each thread writes data to its own file. However, this is not always possible or can complicate the solution. If you have to write from different threads to the same resource, there are two options: Write to the same resource after job in thread is finished. For example, a function has been executed in threads 1, 2 and 3, its result is obtained in turn (consecutively) from each thread, and then written into a file. * Use a thread-safe alternative (not always available and/or easy). For example, use a logging module instead of Recommendations when working with threads: Do not write to the same resource from different threads if resource or what you write is not intended for multithreading. It is easy to find out by google something like “python write to file from threads”. There are nuances to this recommendation. For example, you can write from different threads to the same file if you use a Lock or a thread-safe queue. These options are often difficult to use and are not covered in the book. It’s likely that 95 percent of problems you’ll be facing can be solved without them. This category includes writing/changing lists/dictionaries/sets from different threads. These objects are inherently thread-safe but there is no guarantee that when you change the same list from different threads, data in the list will be correct. If you want to use a common container for different threads, use queue from Queue module. It’s thread-safe and you can work with it from different threads. If there is a possibility, avoid communication between threads in the course of their work. This is not an easy task and it is best to avoid it. * Follow the KISS (Keep it simple, stupid) principle - try to make solution as simple as possible. These recommendations are generally written for those who are just beginning to program on Python. However, they tend to be relevant to most programmers who write applications for users rather than frameworks. Module concurrent.futures which will be covered further, simplifies implementation of the first principle “Do not write to the same resource from different threads… “. The module interface itself encourages this, but of course it does not prohibit breaking it. However, before getting to know concurrent.futures, you should read fundamentals of logging module. It will be used instead of Date: 2019-06-05 Categories: Tags: Module logging - a module from Python standard library that allows you to configure logging from the script. Module logging has a lot of features and a lot of configuration options. Only basic configuration option is discussed in this section. The easiest way to configure logging in script, use logging.basicConfig: ``` import logging logging.basicConfig( format='%(threadName)s %(name)s %(levelname)s: %(message)s', level=logging.INFO, ) ``` In this version, the settings are: all messages will be displayed on standard output * messages of INFO level and above will be displayed * each message will contain thread information, log name, message level, and message itself Now, to output a log message in this script, you need to write `logging.info("test")` . Example of script with logging settings (logging_basics.py file): ``` from datetime import datetime import logging import netmiko import yaml # this string indicates that paramiko log messages will be displayed # only if they have WARNING level or higher logging.getLogger("paramiko").setLevel(logging.WARNING) def send_show(device, show): start_msg = '===> {} Connection: {}' received_msg = '<=== {} Received: {}' ip = device["ip"] logging.info(start_msg.format(datetime.now().time(), ip)) if __name__ == "__main__": with open('devices.yaml') as f: devices = yaml.safe_load(f) for dev in devices: print(send_show(dev, 'sh clock')) ``` ``` $ python logging_basics.py MainThread root INFO: ===> 12:26:12.767168 Connection: 192.168.100.1 MainThread root INFO: <=== 12:26:18.307017 Received: 192.168.100.1 *12:26:18.137 UTC Wed Jun 5 2019 MainThread root INFO: ===> 12:26:18.413913 Connection: 192.168.100.2 MainThread root INFO: <=== 12:26:23.991715 Received: 192.168.100.2 *12:26:23.819 UTC Wed Jun 5 2019 MainThread root INFO: ===> 12:26:24.095452 Connection: 192.168.100.3 MainThread root INFO: <=== 12:26:29.478553 Received: 192.168.100.3 *12:26:29.308 UTC Wed Jun 5 2019 ``` There are still many features in logging module. This section only uses basic configuration option. For more information on features of the module, see Logging HOWTO Module `concurrent.futures` provides a high-level interface for working with processes and threads. For both threads and processes the same interface is used which makes it easy to switch between them. If you compare this module with threading or multiprocessing, it has fewer features but with `concurrent.futures` it’s easier to work and interface easier to understand. Concurrent.futures module allows to solve the problem of starting multiple threads/processes and getting data from them. For this purpose, module uses two classes: * `ThreadPoolExecutor` - for threads handling * `ProcessPoolExecutor` - for process handling Both classes use the same interface, so it is enough to deal with one and then just switch to other if necessary. Create an Executor object using ThreadPoolExecutor: ``` executor = ThreadPoolExecutor(max_workers=5) ``` After creating an Executor object, it has three methods: `shutdown` , `map` , and `submit` . Method `shutdown` is responsible for the completion of threads/processes, `map` and `submit` methods are responsible for starting functions in different threads/processes. Note In fact, map and submit can run not only functions but any callable object. However, only functions will be covered further. Method `shutdown` indicates that Executor object must be finished. However, if to `shutdown` method pass `wait=True` (default value), it will not return the result until all functions running in threads have been completed. If `wait=False` , `shutdown` method returns instantly but script itself will not exit until all functions have been completed. Generally, `shutdown` is not explicitly used because when creating an Executor object in a context manager, `shutdown` is automatically called at the end of a block with `wait=True` . ``` with ThreadPoolExecutor(max_workers=5) as executor: ... ``` Since map and submit methods start a function in threads or processes, code must at least have a function that performs one action and must be run in different threads with different arguments of the function. For example, if you need to ping multiple IP addresses in different threads you need to create a function that pings one IP address and then run this function in different threads for different IP addresses using concurrent.futures. Method syntax: ``` map(func, *iterables, timeout=None) ``` Method `map` is similar to built-in map function: applying `func` function to one or more iterable objects. Each call to a function is then started in a separate thread/process. Method `map` returns an iterator with function results for each element of object being iterated. The results are arranged in the same order as elements in iterable object. When working with thread/process pools, a certain number of threads/processes are created and the code is executed in these threads. For example, if the pool is created with 5 threads and function has to be started for 10 different devices, connection will be performed first to the first five devices and then, as they liberated, to the others. An example of using a `map` function with ThreadPoolExecutor (netmiko_threads_map_basics.py file): import netmiko import yaml Since function should be passed to `map` method, `send_show` function is created which connects to devices, passes specified show command and returns the result with command output. Function `send_show` outputs log message at the beginning and at the end of work. This will determine when function has worked for the particular device. Also within function it is specified that when connecting to device with address 192.168.100.1, the pause for 5 seconds is required - thus router with this address will respond longer. Last 4 lines of code are responsible for connecting to devices in separate threads: ``` with ThreadPoolExecutor(max_workers=3) as executor: ``` - ThreadPoolExecutor class is initiated in `with` block with indicated number of threads. * ``` result = executor.map(send_show, devices, repeat('sh clock')) ``` - `map` method is similar to `map` function, but here the `send_show` function is called in different threads. However, in different threads the function will be called with different arguments: elements of iterable object `devices` and the same command “sh clock”. * since instead of a list of commands only one command is used, it must be repeated in some way, so that `map` method will set this command to different devices. It uses `repeat` function - it repeats command exactly as many times as `map` requests * `map` method returns generator. This generator contains results of functions. Results are in the same order as devices in the list of devices, so `zip` function is used to combine device IP addresses and command output. Execution result: ``` $ python netmiko_threads_map_basics.py ThreadPoolExecutor-0_0 root INFO: ===> 08:28:55.950254 Connection: 192.168.100.1 ThreadPoolExecutor-0_1 root INFO: ===> 08:28:55.963198 Connection: 192.168.100.2 ThreadPoolExecutor-0_2 root INFO: ===> 08:28:55.970269 Connection: 192.168.100.3 ThreadPoolExecutor-0_1 root INFO: <=== 08:29:11.968796 Received: 192.168.100.2 ThreadPoolExecutor-0_2 root INFO: <=== 08:29:15.497324 Received: 192.168.100.3 ThreadPoolExecutor-0_0 root INFO: <=== 08:29:16.854344 Received: 192.168.100.1 192.168.100.1 *08:29:16.663 UTC Thu Jul 4 2019 192.168.100.2 *08:29:11.744 UTC Thu Jul 4 2019 192.168.100.3 *08:29:15.374 UTC Thu Jul 4 2019 ``` The first three messages indicate when connection was made and to which device: ``` ThreadPoolExecutor-0_0 root INFO: ===> 08:28:55.950254 Connection: 192.168.100.1 ThreadPoolExecutor-0_1 root INFO: ===> 08:28:55.963198 Connection: 192.168.100.2 ThreadPoolExecutor-0_2 root INFO: ===> 08:28:55.970269 Connection: 192.168.100.3 ``` The following three messages show time of receipt of information and completion of the function: ``` ThreadPoolExecutor-0_1 root INFO: <=== 08:29:11.968796 Received: 192.168.100.2 ThreadPoolExecutor-0_2 root INFO: <=== 08:29:15.497324 Received: 192.168.100.3 ThreadPoolExecutor-0_0 root INFO: <=== 08:29:16.854344 Received: 192.168.100.1 ``` Since `sleep` was added for the first device for 5 seconds, information from the first router was actually received later. However, since `map` method returns values in the same order as devices in `device` list, the result is: ``` 192.168.100.1 *08:29:16.663 UTC Thu Jul 4 2019 192.168.100.2 *08:29:11.744 UTC Thu Jul 4 2019 192.168.100.3 *08:29:15.374 UTC Thu Jul 4 2019 ``` ## Map exception handling# Example of `map` with exception handling: if __name__ == '__main__': with open('devices.yaml') as f: devices = yaml.safe_load(f) pprint(send_command_to_devices(devices, 'sh ip int br')) ``` Example is generally similar to the previous one but NetMikoAuthenticationException was introduced in `send_show` function, and the code that started `send_show` function in threads is now in ``` send_command_to_devices ``` function. When using `map` method, exception handling is best done within a function that runs in threads, in this case `send_show` function. Method `submit` differs from `map` method: * `submit` runs only one function in thread * `submit` can run different functions with different unrelated arguments, when `map` must run with iterable objects as arguments * `submit` immediately returns the result without having to wait for function execution * `submit` returns special Future object that represents execution of function. * `submit` returns Future in order that the call of `submit` does not block the code. Once `submit` has returned Future, code can be executed further. And once all functions in threads are running, you can start requesting Future if results are ready. Or take advantage of special function `as_completed` , which requests the result itself and code gets it when it’s ready * `submit` returns results in readiness order, not in argument order * `submit` can pass key arguments when `map` only position arguments Method `submit` uses Future object - an object that represents a delayed computation. This object can be requested for status (completed or not), and results or exceptions can be obtained from the job. Future does not need to be created manually, these objects are created by `submit` . Example of running a function in threads using `submit` (netmiko_threads_submit_basics.py file) with ThreadPoolExecutor(max_workers=2) as executor: future_list = [] for device in devices: future = executor.submit(send_show, device, 'sh clock') future_list.append(future) # the same in the form of list comprehensions: # future_list = [executor.submit(send_show, device, 'sh clock') for device in devices] for f in as_completed(future_list): print(f.result()) ``` The rest of the code has not changed, so you only need to understand the block which runs `send_show` function in threads: The rest of the code has not changed, so only block that runs `send_show` needs an attention: Now block `with` has two cycles: * `future_list` - a list of Future objects: * `submit` function is used to create Future object * `submit` expects the name of function to be executed and its arguments * the next cycle runs through future_list using `as_completed` function. This function returns a Future objects only when they have finished or been cancelled. Future is then returned as soon as work is completed, not in the order of adding to future_list Note Creation of list with Future can be done with list comprehensions: ``` future_list = [executor.submit(send_show, device, 'sh clock') for device in devices] ``` ``` $ python netmiko_threads_submit_basics.py ThreadPoolExecutor-0_0 root INFO: ===> 17:32:59.088025 Connection: 192.168.100.1 ThreadPoolExecutor-0_1 root INFO: ===> 17:32:59.094103 Connection: 192.168.100.2 ThreadPoolExecutor-0_1 root INFO: <=== 17:33:11.639672 Received: 192.168.100.2 {'192.168.100.2': '*17:33:11.429 UTC Thu Jul 4 2019'} ThreadPoolExecutor-0_1 root INFO: ===> 17:33:11.849132 Connection: 192.168.100.3 ThreadPoolExecutor-0_0 root INFO: <=== 17:33:17.735761 Received: 192.168.100.1 {'192.168.100.1': '*17:33:17.694 UTC Thu Jul 4 2019'} ThreadPoolExecutor-0_1 root INFO: <=== 17:33:23.230123 Received: 192.168.100.3 {'192.168.100.3': '*17:33:23.188 UTC Thu Jul 4 2019'} ``` Please note that the order is not preserved and depends on which function was previously completed. ## Future# An example of running `send_show` function with `submit` and displaying information about Future (note the status of Future at different points in time): ``` In [1]: from concurrent.futures import ThreadPoolExecutor In [2]: from netmiko_threads_submit_futures import send_show In [3]: executor = ThreadPoolExecutor(max_workers=2) In [4]: f1 = executor.submit(send_show, r1, 'sh clock') ...: f2 = executor.submit(send_show, r2, 'sh clock') ...: f3 = executor.submit(send_show, r3, 'sh clock') ...: ThreadPoolExecutor-0_0 root INFO: ===> 17:53:19.656867 Connection: 192.168.100.1 ThreadPoolExecutor-0_1 root INFO: ===> 17:53:19.657252 Connection: 192.168.100.2 In [5]: print(f1, f2, f3, sep='\n') <Future at 0xb488e2ac state=running> <Future at 0xb488ef2c state=running> <Future at 0xb488e72c state=pendingThreadPoolExecutor-0_1 root INFO: <=== 17:53:25.757704 Received: 192.168.100.2 ThreadPoolExecutor-0_1 root INFO: ===> 17:53:25.869368 Connection: 192.168.100.3 In [6]: print(f1, f2, f3, sep='\n') <Future at 0xb488e2ac state=running> <Future at 0xb488ef2c state=finished returned dict> <Future at 0xb488e72c state=runningThreadPoolExecutor-0_0 root INFO: <=== 17:53:30.431207 Received: 192.168.100.1 ThreadPoolExecutor-0_1 root INFO: <=== 17:53:31.636523 Received: 192.168.100.3 In [7]: print(f1, f2, f3, sep='\n') <Future at 0xb488e2ac state=finished returned dict> <Future at 0xb488ef2c state=finished returned dict> <Future at 0xb488e72c state=finished returned dict> ``` In order to look at Future, several lines with information output are added to the script (netmiko_threads_submit_futures.py): def send_command_to_devices(devices, command): data = {} with ThreadPoolExecutor(max_workers=2) as executor: future_list = [] for device in devices: future = executor.submit(send_show, device, command) future_list.append(future) print('Future: {} for device {}'.format(future, device['host'])) for f in as_completed(future_list): result = f.result() print('Future done {}'.format(f)) data.update(result) return data ``` $ python netmiko_threads_submit_futures.py Future: <Future at 0xb5ed938c state=running> for device 192.168.100.1 ThreadPoolExecutor-0_0 root INFO: ===> 07:14:26.298007 Connection: 192.168.100.1 Future: <Future at 0xb5ed96cc state=running> for device 192.168.100.2 Future: <Future at 0xb5ed986c state=pending> for device 192.168.100.3 ThreadPoolExecutor-0_1 root INFO: ===> 07:14:26.299095 Connection: 192.168.100.2 ThreadPoolExecutor-0_1 root INFO: <=== 07:14:32.056003 Received: 192.168.100.2 ThreadPoolExecutor-0_1 root INFO: ===> 07:14:32.164774 Connection: 192.168.100.3 Future done <Future at 0xb5ed96cc state=finished returned dict> ThreadPoolExecutor-0_0 root INFO: <=== 07:14:36.714923 Received: 192.168.100.1 Future done <Future at 0xb5ed938c state=finished returned dict> ThreadPoolExecutor-0_1 root INFO: <=== 07:14:37.577327 Received: 192.168.100.3 Future done <Future at 0xb5ed986c state=finished returned dict> {'192.168.100.1': '*07:14:36.546 UTC Fri Jul 26 2019', '192.168.100.2': '*07:14:31.865 UTC Fri Jul 26 2019', '192.168.100.3': '*07:14:37.413 UTC Fri Jul 26 2019'} ``` Since two threads are used by default, only two out of three Future shows running status. The third is in pending state and is waiting for queue to arrive. ## Processing of exceptions# If there is an exception in function execution, it will be generated when the result is obtained For example, in device.yaml file the password for device 192.168.100.2 was changed to the wrong one: ``` $ python netmiko_threads_submit.py ===> 06:29:40.871851 Connection to device: 192.168.100.1 ===> 06:29:40.872888 Connection to device: 192.168.100.2 ===> 06:29:43.571296 Connection to device: 192.168.100.3 <=== 06:29:48.921702 Received result from device: 192.168.100.3 <=== 06:29:56.269284 Received result from device: 192.168.100.1 Traceback (most recent call last): ... File "/home/vagrant/venv/py3_convert/lib/python3.6/site-packages/netmiko/base_connection.py", line 500, in establish_connection raise NetMikoAuthenticationException(msg) netmiko.ssh_exception.NetMikoAuthenticationException: Authentication failure: unable to connect cisco_ios 192.168.100.2:22 Authentication failed. ``` Since an exception occurs when result is obtained, it is easy to add exception processing (netmiko_threads_submit_exception.py file): ``` $ python netmiko_threads_submit_exception.py ThreadPoolExecutor-0_0 root INFO: ===> 07:21:21.190544 Connection: 192.168.100.1 ThreadPoolExecutor-0_1 root INFO: ===> 07:21:21.191429 Connection: 192.168.100.2 ThreadPoolExecutor-0_1 root INFO: ===> 07:21:23.672425 Connection: 192.168.100.3 Authentication failure: unable to connect cisco_ios 192.168.100.2:22 Authentication failed. ThreadPoolExecutor-0_1 root INFO: <=== 07:21:29.095289 Received: 192.168.100.3 ThreadPoolExecutor-0_0 root INFO: <=== 07:21:31.607635 Received: 192.168.100.1 {'192.168.100.1': '*07:21:31.436 UTC Fri Jul 26 2019', '192.168.100.3': '*07:21:28.930 UTC Fri Jul 26 2019'} ``` Of course, exception handling can be performed within `send_show` function, but it is just an example of how you can work with exceptions when using a Future. Date: 2019-07-26 Categories: Tags: Interface of concurrent.futures module is very convenient because migration from threads to processes is done by replacing ThreadPoolExecutor with ProcessPoolExecutor, so all examples below are completely similar to examples with threads. ## Method map# To use processes instead of threads, it is sufficient to change ThreadPoolExecutor to ProcessPoolExecutor: ``` $ python netmiko_processes_map.py MainThread root INFO: ===> 08:35:50.931629 Connection: 192.168.100.2 MainThread root INFO: ===> 08:35:50.931295 Connection: 192.168.100.1 MainThread root INFO: <=== 08:35:56.353774 Received: 192.168.100.2 MainThread root INFO: ===> 08:35:56.469854 Connection: 192.168.100.3 MainThread root INFO: <=== 08:36:01.410230 Received: 192.168.100.1 MainThread root INFO: <=== 08:36:02.067678 Received: 192.168.100.3 {'192.168.100.1': '*08:36:01.242 UTC Fri Jul 26 2019', '192.168.100.2': '*08:35:56.185 UTC Fri Jul 26 2019', '192.168.100.3': '*08:36:01.900 UTC Fri Jul 26 2019'} ``` ## Method submit# File netmiko_processes_submit_exception.py: ``` from concurrent.futures import ProcessPoolExecutor, as_completed from pprint import pprint from datetime import datetime import time from itertools import repeat import logging ``` $ python netmiko_processes_submit_exception.py MainThread root INFO: ===> 08:38:08.780267 Connection: 192.168.100.1 MainThread root INFO: ===> 08:38:08.781355 Connection: 192.168.100.2 MainThread root INFO: <=== 08:38:14.420339 Received: 192.168.100.2 MainThread root INFO: ===> 08:38:14.529405 Connection: 192.168.100.3 MainThread root INFO: <=== 08:38:19.224554 Received: 192.168.100.1 MainThread root INFO: <=== 08:38:20.162920 Received: 192.168.100.3 {'192.168.100.1': '*08:38:19.058 UTC Fri Jul 26 2019', '192.168.100.2': '*08:38:14.250 UTC Fri Jul 26 2019', '192.168.100.3': '*08:38:19.995 UTC Fri Jul 26 2019'} ``` Date: 2009-02-01 Categories: Tags: Further reading# Python documentation: concurrent.futures — Launching parallel tasks threading multiprocessing queue PEP 3148 PyMOTW. concurrent.futures — Manage Pools of Concurrent Tasks GIL# Can’t we get rid of the Global Interpreter Lock? Understanding the Python GIL Python threads and the GIL concurrent.futures# A quick introduction to the concurrent.futures module Python - paralellizing CPU-bound tasks with concurrent.futures concurrent.futures in Python 3 Useful questions and answers on stackoverflow# How many processes should I run in parallel? How many threads is too many? ## Task 19.1# Create a ping_ip_addresses function that checks if IP addresses are pingable. Checking IP addresses should be done concurrent in different threads. Ping_ip_addresses function parameters: ip_list - list of IP addresses * You can create any additional functions to complete the task. To check the availability of an IP address, use ping. A hint about working with concurrent.futures: If you need to ping several IP addresses in different threads, you need to create a function that will ping one IP address, and then run this function in different threads for different IP addresses using concurrent.futures (this last part must be done in the ping_ip_addresses function). ## Task 19.2# command - show command * ``` R1#sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.1 YES NVRAM up up Ethernet0/1 192.168.200.1 YES NVRAM up up R2#sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.2 YES NVRAM up up Ethernet0/1 10.1.1.1 YES NVRAM administratively down down R3#sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.3 YES NVRAM up up Ethernet0/1 unassigned YES NVRAM administratively down down ``` ## Task 19.3# commands_dict - a dictionary that specifies which device to send which command. Dictionary example - commands * ``` R1#sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.1 YES NVRAM up up Ethernet0/1 192.168.200.1 YES NVRAM up up R2#sh int desc Interface Status Protocol Description Et0/0 up up Et0/1 up up Et0/2 admin down down Et0/3 admin down down Lo9 up up Lo19 up up R3#sh run | s ^router ospf router ospf 1 network 0.0.0.0 255.255.255.255 area 0 ``` ``` # This dictionary is only needed to check the operation of the code; # you can change the IP addresses in it. # The test takes addresses from the devices.yaml file commands = { "192.168.100.3": "sh run | s ^router ospf", "192.168.100.1": "sh ip int br", "192.168.100.2": "sh int desc", } ``` ## Task 19.3a# commands_dict - a dictionary that specifies which device to send which commands. Dictionary example - commands * ``` R2#sh arp Protocol Address Age (min) Hardware Addr Type Interface Internet 192.168.100.1 87 aabb.cc00.6500 ARPA Ethernet0/0 Internet 192.168.100.2 - aabb.cc00.6600 ARPA Ethernet0/0 R1#sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.1 YES NVRAM up up Ethernet0/1 192.168.200.1 YES NVRAM up up R1#sh arp Protocol Address Age (min) Hardware Addr Type Interface Internet 10.30.0.1 - aabb.cc00.6530 ARPA Ethernet0/3.300 Internet 10.100.0.1 - aabb.cc00.6530 ARPA Ethernet0/3.100 R3#sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.3 YES NVRAM up up Ethernet0/1 unassigned YES NVRAM administratively down down R3#sh ip route | ex - 10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks O 10.1.1.1/32 [110/11] via 192.168.100.1, 07:12:03, Ethernet0/0 O 10.30.0.0/24 [110/20] via 192.168.100.1, 07:12:03, Ethernet0/0 ``` Commands can be written to a file in any order. To complete the task, you can create any additional functions, as well as use the functions created in previous tasks. Check the operation of the function on devices from the devices.yaml file and the commands dictionary ``` # This dictionary is only needed to check the operation of the code; # you can change the IP addresses in it. # The test takes addresses from the devices.yaml file commands = { "192.168.100.3": ["sh ip int br", "sh ip route | ex -"], "192.168.100.1": ["sh ip int br", "sh int desc"], "192.168.100.2": ["sh int desc"], } ``` ## Task 19.4# Create a send_commands_to_devices function that sends a show or config command to different devices in concurrent threads and then writes the output of the commands to a file. show - the show command to be sent (by default, the value is None) * config - configuration mode commands to be sent (default None) * TypeError: send_commands_to_devices() takes 2 positional argument but 3 were given ``` When calling the send_commands_to_devices function, only one of the show, config arguments should always be passed. If both arguments are passed, a ValueError exception should be raised. ``` R1#sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.1 YES NVRAM up up Ethernet0/1 192.168.200.1 YES NVRAM up up R2#sh arp Protocol Address Age (min) Hardware Addr Type Interface Internet 192.168.100.1 76 aabb.cc00.6500 ARPA Ethernet0/0 Internet 192.168.100.2 - aabb.cc00.6600 ARPA Ethernet0/0 Internet 192.168.100.3 173 aabb.cc00.6700 ARPA Ethernet0/0 R3#sh ip int br Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.100.3 YES NVRAM up up Ethernet0/1 unassigned YES NVRAM administratively down down ``` ``` In [5]: send_commands_to_devices(devices, 'result.txt', show='sh clock') In [6]: cat result.txt R1#sh clock *04:56:34.668 UTC Sat Mar 23 2019 R2#sh clock *04:56:34.687 UTC Sat Mar 23 2019 R3#sh clock *04:56:40.354 UTC Sat Mar 23 2019 In [11]: send_commands_to_devices(devices, 'result.txt', config='logging 10.5.5.5') In [12]: cat result.txt config term Enter configuration commands, one per line. End with CNTL/Z. R1(config)#logging 10.5.5.5 R1(config)#end R1# config term Enter configuration commands, one per line. End with CNTL/Z. R2(config)#logging 10.5.5.5 R2(config)#end R2# config term Enter configuration commands, one per line. End with CNTL/Z. R3(config)#logging 10.5.5.5 R3(config)#end R3# In [13]: commands = ['router ospf 55', 'network 0.0.0.0 255.255.255.255 area 0'] In [13]: send_commands_to_devices(devices, 'result.txt', config=commands) In [14]: cat result.txt config term Enter configuration commands, one per line. End with CNTL/Z. R1(config)#router ospf 55 R1(config-router)#network 0.0.0.0 255.255.255.255 area 0 R1(config-router)#end R1# config term Enter configuration commands, one per line. End with CNTL/Z. R2(config)#router ospf 55 R2(config-router)#network 0.0.0.0 255.255.255.255 area 0 R2(config-router)#end R2# config term Enter configuration commands, one per line. End with CNTL/Z. R3(config)#router ospf 55 R3(config-router)#network 0.0.0.0 255.255.255.255 area 0 R3(config-router)#end R3# ``` Jinja2 is a template language used in Python. Jinja is not the only template language (template engine) for Python and not the only template language in general. Jinja2 is used to generate documents based on one or more templates. Examples of use: templates for generating HTML pages * templates for generating configuration files in Unix/Linux * templates for generating network device configuration files You can install Jinja2 using pip: `pip install jinja2` Note Further, terms Jinja and Jinja2 are used interchangeably. The main idea of Jinja is to separate data and template. This allows you to use the same template but not the same data. In the simplest case, template is simply a text file that specifies locations of Jinja variables. Example of Jinja template: ``` hostname {{name}} ! interface Loopback255 description Management loopback ip address 10.255.{{id}}.1 255.255.255.255 ! interface GigabitEthernet0/0 description LAN to {{name}} sw1 {{int}} ip address {{ip}} 255.255.255.0 ! router ospf 10 router-id 10.255.{{id}}.1 auto-cost reference-bandwidth 10000 network 10.0.0.0 0.255.255.255 area 0 ``` Comments to template: In Jinja, variables are written in double curly braces. * When script is executed, these variables are replaced with desired values. This template can be used to generate configuration of different devices by substituting other sets of variables. Template templates/router_template.txt is a plain text file: ``` hostname {{name}} ! interface Loopback10 description MPLS loopback ip address 10.10.{{id}}.1 255.255.255.255 ! interface GigabitEthernet0/0 description WAN to {{name}} sw1 G0/1 ! interface GigabitEthernet0/0.1{{id}}1 description MPLS to {{to_name}} encapsulation dot1Q 1{{id}}1 ip address 10.{{id}}.1.2 255.255.255.252 ip ospf network point-to-point ip ospf hello-interval 1 ip ospf cost 10 ! interface GigabitEthernet0/1 description LAN {{name}} to sw1 G0/2 ! interface GigabitEthernet0/1.{{IT}} description PW IT {{name}} - {{to_name}} encapsulation dot1Q {{IT}} xconnect 10.10.{{to_id}}.1 {{id}}11 encapsulation mpls backup peer 10.10.{{to_id}}.2 {{id}}21 backup delay 1 1 ! interface GigabitEthernet0/1.{{BS}} description PW BS {{name}} - {{to_name}} encapsulation dot1Q {{BS}} xconnect 10.10.{{to_id}}.1 {{to_id}}{{id}}11 encapsulation mpls backup peer 10.10.{{to_id}}.2 {{to_id}}{{id}}21 backup delay 1 1 ! router ospf 10 router-id 10.10.{{id}}.1 auto-cost reference-bandwidth 10000 network 10.0.0.0 0.255.255.255 area 0 ! ``` Data file routers_info.yml ``` - id: 11 name: Liverpool to_name: LONDON IT: 791 BS: 1550 to_id: 1 - id: 12 name: Bristol to_name: LONDON IT: 793 BS: 1510 to_id: 1 - id: 14 name: Coventry to_name: Manchester IT: 892 BS: 1650 to_id: 2 ``` Script to generate configurations router_config_generator_ver2.py ``` from jinja2 import Environment, FileSystemLoader import yaml env = Environment(loader=FileSystemLoader('templates')) template = env.get_template('router_template.txt') with open('routers_info.yml') as f: routers = yaml.safe_load(f) for router in routers: r1_conf = router['name'] + '_r1.txt' with open(r1_conf, 'w') as f: f.write(template.render(router)) ``` File router_config_generator.py imports from jinja2 module: * `FileSystemLoader` - a loader that allows working with a file system path to directory where templates are located is specified here * in this case template is in templates directory * * `Environment` - a class for describing environment parameters. In this * case only loader is specified, but you can specify how to process a template Note that template is now in `templates` directory. So far, only variable substitution has been used in Jinja2 template examples. This is the simplest and most understandable example of using templates. Syntax of Jinja templates is not limited to this. In Jinja2 templates you can use : variables * conditions (if/else) * loops (for) * filters - special built-in methods that allow to convert variables * tests - are used to check whether a variable matches a condition In addition, Jinja supports inheritance between templates and also allows adding the contents of one template to another. This section covers only few possibilities. More information about Jinja2 templates can be found in documentation. All files used as examples in this subsection are in 3_template_syntax/ directory Script cfg_gen.py will be used to generate templates. ``` from jinja2 import Environment, FileSystemLoader import yaml import sys import os # python cfg_gen.py templates/for.txt data_files/for.yml template_dir, template = os.path.split(sys.argv[1]) vars_file = sys.argv[2] env = Environment( loader=FileSystemLoader(template_dir), trim_blocks=True, lstrip_blocks=True) template = env.get_template(template_file) with open(vars_file) as f: vars_dict = yaml.safe_load(f) print(template.render(vars_dict)) ``` In order to see the result, you have to call the script and give it two arguments: template * file with variables in YAML format The result will be displayed on standard output stream. ``` $ python cfg_gen.py templates/variables.txt data_files/vars.yml ``` Parameters trim_blocks and lstrip_blocks are described in the following subsection. ## trim_blocks, lstrip_blocks# Parameter `trim_blocks` removes the first empty line after block if its value is True (default False). Effect of using the flag is showed on example templates/env_flags.txt: If cfg_gen.py script starts without trim_blocks, lstrip_blocks: new lines occur because of `for` block. ``` {% for ibgp in bgp.ibgp_neighbors %} ``` By default, the same behavior will be with any other Jinja blocks. When trim_blocks flag is added: ``` env = Environment(loader=FileSystemLoader(TEMPLATE_DIR), trim_blocks=True) ``` Empty lines after block were removed. In front of ``` neighbor ... remote-as ``` lines two spaces appeared. This is because there is a space in front of `for` block. Once lstrip_blocks has been disabled, spaces and tabs in front of the block are added to the first line of block. This does not affect the next lines. Therefore, lines with ``` neighbor ... update-source ``` are displayed with one space. Parameter `lstrip_blocks` controls whether spaces and tabs will be removed from the beginning of line to the beginning of block (untill opening curly bracket). If add `lstrip_blocks=True` : ``` env = Environment(loader=FileSystemLoader(TEMPLATE_DIR), trim_blocks=True, lstrip_blocks=True) ``` ## Disabling lstrip_blocks for block# Sometimes you need to disable lstrip_blocks in block. For example, if `lstrip_blocks` is set to True in an environment, but must be disabled for the second block in template (templates/flagenv_s2.txt file): Plus sign after percent sign disables lstrip_blocks for the block, in this case, only in the beginning. If done this way (plus is added in the end block expression): It will be disabled for the end of the block: ## Removing whitespace from block# Similarly, you can control whitespace removal for a block. For this example, flags are not set in environment: Template templates/env_flags3.txt: Note the minus at the beginning of second block. Minus removes all whitespace characters, in this case, at the beginning of the block. router bgp 100 neighbor 10.0.0.2 remote-as 100 neighbor 10.0.0.2 update-source lo100 If you add minus to the end of the block: Empty string at the end of the block will be deleted: Try to add minus at the end of expressions describing the block and look at the result: Variables in template are given in double curly braces: Variable values are set based on dictionary that is passed to template. Variable that is passed on in a dictionary may not only be a number or a string, but also for example, a list or a dictionary. Inside template, you can refer to the item by number or key. Template example templates/variables.txt with usage of different variable variants: vlan {{ vlans[0] }} router ospf 1 router-id 10.0.0.{{ id }} auto-cost reference-bandwidth 10000 network {{ ospf.network }} area {{ ospf['area'] }} ``` And corresponding data_files/vars.yml file with variables: ``` id: 3 name: R3 vlans: - 10 - 20 - 30 ospf: network: 10.0.1.0 0.0.0.255 area: 0 ``` Note the use of vlans variable in template: since vlans variable is a list, you can specify which item from list we need If a dictionary is passed (as in case of ospf variable), you can refer to dictionary objects inside template using one of the variants: ``` ospf.network or ospf['network'] ``` ``` $ python cfg_gen.py templates/variables.txt data_files/vars.yml hostname R3 vlan 10 Loop `for` allows you to walk through sequence of elements. Loop `for` must be written inside `{% %}` . Furthermore, the end of the loop must be explicitly indicated: ``` {% for vlan in vlans %} vlan {{ vlan }} {% endfor %} ``` Template example templates/for.txt using a loop: File data_files/for.yml with variables: In `for` , it is possible to go through both the list elements (for example, ospf list) and the dictionary (vlans dictionary). And similarly, through any sequence. The result will be: ``` $ python cfg_gen.py templates/for.txt data_files/for.yml hostname R3 `if` allows you to add a condition to template. For example, you can use `if` to add parts of template depending on the presence of variables in data dictionary. `if` statement must also be within inside `{% %}` . End of condition must be explicitly stated: ``` {% if ospf %} router ospf 1 router-id 10.0.0.{{ id }} auto-cost reference-bandwidth 10000 {% endif %} ``` Template example templates/if.txt: `if ospf` expression works the same way as in Python: if variable exists and is not empty, the result is True. If there is no variable or it is empty, the result is False. That is, in this template the OSPF configuration is generated only if variable `ospf` exists and is not empty. Configuration will be generated with two data variants. First with data_files/if.yml that does not contain `ospf` variable: ``` id: 3 name: R3 vlans: 10: Marketing 20: Voice 30: Management ``` ``` $ python cfg_gen.py templates/if.txt data_files/if.yml hostname R3 Now a similar template but with data_files/if_ospf.yml file: Now the result will be: ``` hostname R3 As in Python, Jinja is allowed to make branches in condition. Template example templates/if_vlans.txt: Data file data_files/if_vlans.yml: In this example, different commands are generated depending on value of `action` parameter. In template you could also use this option to refer to nested dictionaries: This will result in the following configuration: Using `if` you can also filter which elements of sequence will be iterated in `for` loop. Template example templates/if_for.txt with filter in `for` loop: ``` {% for vlan, name in vlans.items() if vlan > 15 %} vlan {{ vlan }} name {{ name }} {% endfor %} ``` Data file (data_files/if_for.yml): ``` vlans: 10: Marketing 20: Voice 30: Management ``` ``` $ python cfg_gen.py templates/if_for.txt data_files/if_for.yml vlan 20 name Voice vlan 30 name Management ``` In Jinja, variables can be changed by filters. Filters are separated from variable by a vertical line (pipe `|` ) and may contain additional arguments. In addition, several filters can be applied to variable. In this case, filters are simply written consecutively and each of them is separated by a vertical line. Jinja supports a large number of built-in filters. We will look at only a few of them. Other filters can be found in documentation. You can also easily create your own filters. We will not cover this possibility but it is well documented. ## default# Filter `default` allows you to set default value for variable. If variable is defined, it will be displayed, if variable is not defined, the value specified in default filter will be displayed. Template example templates/filter_default.txt: If variable ref_bw is defined in dictionary, its value will be set. If there is no variable, the value of 10000 will be substituted. Data file (data_files/filter_default.yml): By default, if variable is defined and its value is empty, it will be assumed that variable and its value exist. If you want default value to be set also when variable is empty (i.e., treated as False in Python), you need to specify additional parameter `boolean=true` . For example, if data file is: If with the same data file the template will be changed as follows: Note Instead of ``` default(10000, boolean=true) ``` you can write default(10000, true) The result will be (default value is set): ## dictsort# Filter `dictsort` allows you to sort the dictionary. By default, sorting is done by keys but by changing filter parameters you can sort by values. Filter syntax: ``` dictsort(value, case_sensitive=False, by='key') ``` After `dictsort` sorts the dictionary, it returns a list of tuples, not a dictionary. Template example templates/filter_dictsort.txt using `dictsort` filter: Note that filter awaits a dictionary, not a list of tuples or iterator. Data file (data_files/filter_dictsort.yml): The result of execution will be (interfaces are ordered): ## join# Filter `join` works just like `join` method in Python. With `join` filter you can combine sequence of elements into a string with an optional separator between elements. Template example templates/filter_join.txt using `join` filter: Data file (data_files/filter_join.yml): Besides filters, Jinja also supports tests. Tests allow variables to be tested for a certain condition. Jinja supports a large number of built-in tests. We will look at only a few of them. The rest of tests you can find in documentation. ## defined# Test `defined` allows you to check if variable is present in the data dictionary. Template example templates/test_defined.txt: ``` router ospf 1 {% if ref_bw is defined %} auto-cost reference-bandwidth {{ ref_bw }} {% else %} auto-cost reference-bandwidth 10000 {% endif %} {% for networks in ospf %} network {{ networks.network }} area {{ networks.area }} {% endfor %} ``` This example is more cumbersome than `default` filter option, but this test may be useful if depending on whether a variable is defined or not, different commands need to be executed. Data file (data_files/test_defined.yml): ## iterable# Test `iterable` checks whether the object is an iterator. Due to these checks, it is possible to make branches in template which will take into account the type of variable. Template templates/test_iterable.txt (indents made to make an idea of branches more clear): Data file (data_files/test_iterable.yml): Note the last line: `vlans: 10` . In this case, 10 is no longer in the list and `join` filter does not work. But, due to `is iterable` test (in this case the result will be false), in this case template goes into `else` branch. The result of execution: ``` $ python cfg_gen.py templates/test_iterable.txt data_files/test_iterable.yml interface Fa0/1 switchport trunk allowed vlan add 10,20 interface Fa0/2 switchport trunk allowed vlan 10,30 interface Fa0/3 switchport trunk allowed vlan remove 10 ``` Such indents appeared because the template uses indents but does not have `lstrip_blocks=True` installed (it removes spaces and tabs at the beginning of the line). You can assign values to variables inside template. These can be new variables or there may be modified values of variables that have been passed to template. In this way you can remember a value that for example was obtained by using several filters. Then use variable name instead of repeating all filters. Template example templates/set.txt in which `set` expression is used to specify shorter parameter names: ``` {% for intf, params in trunks | dictsort %} {% set vlans = params.vlans %} {% set action = params.action %} Note the second and third lines: ``` {% set vlans = params.vlans %} {% set action = params.action %} ``` In this way new variables are created and these new values are used. It makes template look clearer. Data file (data_files/set.yml): ``` $ python cfg_gen.py templates/set.txt data_files/set.yml interface Fa0/1 switchport trunk allowed vlan add 10,20 interface Fa0/2 switchport trunk allowed vlan 10,30 interface Fa0/3 switchport trunk allowed vlan remove 10 ``` `Include` expression allows you to add one template to another. Variables that are transmitted as data must contain all data for both the master template and the one that is added through `include` . Template templates/vlans.txt: Template templates/ospf.txt: Template templates/bgp.txt: ``` router bgp {{ bgp.local_as }} {% for ibgp in bgp.ibgp_neighbors %} neighbor {{ ibgp }} remote-as {{ bgp.local_as }} neighbor {{ ibgp }} update-source {{ bgp.loopback }} {% endfor %} {% for ebgp in bgp.ebgp_neighbors %} neighbor {{ ebgp }} remote-as {{ bgp.ebgp_neighbors[ebgp] }} {% endfor %} ``` Template templates/switch.txt uses created templates ospf and vlans: ``` {% include 'vlans.txt' %} Data file for configuration generation (data_files/switch.yml): ``` $ python cfg_gen.py templates/switch.txt data_files/switch.yml vlan 10 name Marketing vlan 20 name Voice vlan 30 name Management The resulting configuration is as if lines from templates ospf.txt and vlans.txt were in switch.txt template. Template templates/router.txt: {% include 'bgp.txt' %} logging {{ log_server }} ``` In this case, in addition to `include` , another line in template was added to show that `include` expressions can be mixed with normal template. Data file (data_files/router.yml): ``` ospf: - network: 10.0.1.0 0.0.0.255 area: 0 - network: 10.0.2.0 0.0.0.255 area: 2 - network: 10.1.1.0 0.0.0.255 area: 0 bgp: local_as: 100 loopback: lo100 ibgp_neighbors: - 10.0.0.2 - 10.0.0.3 ebgp_neighbors: 90.1.1.1: 500 80.1.1.1: 600 log_server: 10.1.1.1 ``` The result of script execution will be: router bgp 100 neighbor 10.0.0.2 remote-as 100 neighbor 10.0.0.2 update-source lo100 neighbor 10.0.0.3 remote-as 100 neighbor 10.0.0.3 update-source lo100 neighbor 90.1.1.1 remote-as 500 neighbor 80.1.1.1 remote-as 600 logging 10.1.1.1 ``` Thanks to `include` , template templates/ospf.txt is used both in template templates/switch.txt and in template templates/router.txt, instead of repeating the same thing twice. Template inheritance is a very powerful functionality that avoids repetition of the same in different templates. When using inheritance, there are: * `base template` - template that describes template skeleton. * this template may contain any ordinary expressions or text. In addition, special `blocks` are defined in this template. * * `child template` - template that extends base template by filling in specified blocks. * child templates can overwrite or supplement blocks defined in base template. Example of base template templates/base_router.txt: ``` ! {% block services %} service timestamps debug datetime msec localtime show-timezone year service timestamps log datetime msec localtime show-timezone year service password-encryption service sequence-numbers {% endblock %} ! no ip domain lookup ! ip ssh version 2 ! {% block ospf %} router ospf 1 auto-cost reference-bandwidth 10000 {% endblock %} ! {% block bgp %} {% endblock %} ! {% block alias %} {% endblock %} ! line con 0 logging synchronous history size 100 line vty 0 4 logging synchronous history size 100 transport input ssh ! ``` Note four blocks that are created in template: ``` {% block services %} service timestamps debug datetime msec localtime show-timezone year service timestamps log datetime msec localtime show-timezone year service password-encryption service sequence-numbers {% endblock %} ! {% block ospf %} router ospf 1 auto-cost reference-bandwidth 10000 {% endblock %} ! {% block bgp %} {% endblock %} ! {% block alias %} {% endblock %} ``` These are blanks for the corresponding configuration sections. A child template that uses this base template as a base can fill all or only some of the blocks. Child template templates/hq_router.txt: The first line in template templates/hq_router.txt is very important: It is said that template hq_router.txt will be constructed on the basis of template base_router.txt. Inside child template, everything happens inside blocks. Due to the blocks that have been defined in base template, child template can extend the parent template. Note that lines described in child template outside blocks are ignored. There are four blocks in base template: services, ospf, bgp, alias. In child template only two of them are filled: ospf and alias. That’s the convenience of inheritance. You don’t have to fill all blocks in every child template. In this way ospf and alias blocks are used differently. In base template, ospf block already has part of configuration: ``` {% block ospf %} router ospf 1 auto-cost reference-bandwidth 10000 {% endblock %} ``` Therefore, child template has a choice: use this configuration and supplement it or completely rewrite everything in child template. In this case the configuration is supplemented. That is why in child template templates/hq_router.txt the ospf block starts with expression `{{ super() }}` : `{{ super() }}` transfers content of this block from parent template to child template. Because of this, lines from parent are moved to child template. Note Expression `super` doesn’t have to be at the beginning of the block. It could be anywhere in the block. Content of base template are moved to where `super` expression is located. `alias` block simply describes the alias. And even if there were some settings in parent template, they would be substituted by content of child template. Let’s recap the rules for working with blocks. If block is created in parent template: no content - in child template you can fill this block or ignore it. If block is filled, it will contain only what was written in child template (example - `alias` block) * with content - in child template you can perform such actions: ignore block - in this case, child template will get content from parent template (example - services block) * rewrite block - then child template will contain only what it has * move content of the block from parent template and supplement it - then child template will contain both the content of the block from parent template and the content from child template. To pass content from parent template the expression `{{ super() }}` is used (example - ospf block) Data file for template configuration generation (data_files/hq_router.yml): ``` $ python cfg_gen.py templates/hq_router.txt data_files/hq_router.yml ! service timestamps debug datetime msec localtime show-timezone year service timestamps log datetime msec localtime show-timezone year service password-encryption service sequence-numbers ! no ip domain lookup ! ip ssh version 2 ! router ospf 1 auto-cost reference-bandwidth 10000 network 10.0.1.0 0.0.0.255 area 0 network 10.0.2.0 0.0.0.255 area 2 network 10.1.1.0 0.0.0.255 area 0 ! ! alias configure sh do sh alias exec ospf sh run | s ^router ospf alias exec bri show ip int bri | exc unass alias exec id show int desc alias exec top sh proc cpu sorted | excl 0.00%__0.00%__0.00% alias exec c conf t alias exec diff sh archive config differences nvram:startup-config system:running-config alias exec desc sh int desc | ex down ! line con 0 logging synchronous history size 100 line vty 0 4 logging synchronous history size 100 transport input ssh ! ``` Note that in ospf block there are commands from base template and commands from child template. Date: 2014-03-01 Categories: Tags: Further reading# Documentation: General documentation Jinja2 Template syntax Articles: Network Configuration Templates Using Jinja2. Matt Oswalt Python And Jinja2 Tutorial. Jeremy Schulman Configuration Generator with Python and Jinja2 Custom filters for a Jinja2 based Config Generator ## Task 20.1# Create generate_config function. template - path to the template file (for example, “templates/for.txt”) * The function should return the generated configuration string. Check the operation of the function on the templates/for.txt template and data from the data_files/for.yml file. # function call should looks like if __name__ == "__main__": data_file = "data_files/for.yml" template_file = "templates/for.txt" with open(data_file) as f: data = yaml.safe_load(f) print(generate_config(template_file, data)) ``` ## Task 20.2# Create template templates/cisco_router_base.txt. The templates/cisco_router_base.txt template should include the content of the templates: templates/cisco_base.txt * templates/alias.txt * templates/eem_int_desc.txt Template text cannot be copied. Test the template templates/cisco_router_base.txt using the generate_config function from task 20.1. Do not copy the code of the generate_config function. As data, use the information from the data_files/router_info.yml file. ## Task 20.3# Create a template templates/ospf.txt based on the OSPF configuration in the cisco_ospf.txt file. A configuration example is given to show the syntax. What values should be variables: process number. Variable name - process * router-id. Variable name - router_id * reference-bandwidth. Variable name - ref_bw * interfaces on which to enable OSPF. The variable name is ospf_intf. In place of this variable, a list of dictionaries with the following keys is expected: name - interface name, like Fa0/1, Vlan10, Gi0/0 * ip - interface IP address, like 10.0.1.1 * area - zone number * passive - whether the interface is passive. Valid values: True or False For all interfaces in the ospf_intf list, you need to generate the following lines: ``` network x.x.x.x 0.0.0.0 area x ``` If the interface is passive, the line must be added for it: `passive-interface x` For interfaces that are not passive, in interface configuration mode, you need to add the line: ``` ip ospf hello-interval 1 ``` All commands must be in the appropriate configuration mode. Check the resulting template templates/ospf.txt, against the data in the data_files/ospf.yml file, using the generate_config function from task 20.1. Do not copy the code of the generate_config function. The result should be a configuration of the following type (the commands in router ospf mode do not have to be in this order, the main thing is that they are in the correct config section): ``` router ospf 10 router-id 10.0.0.1 auto-cost reference-bandwidth 20000 network 10.255.0.1 0.0.0.0 area 0 network 10.255.1.1 0.0.0.0 area 0 network 10.255.2.1 0.0.0.0 area 0 network 10.0.10.1 0.0.0.0 area 2 network 10.0.20.1 0.0.0.0 area 2 passive-interface Fa0/0.10 passive-interface Fa0/0.20 interface Fa0/1 ip ospf hello-interval 1 interface Fa0/1.100 ip ospf hello-interval 1 interface Fa0/1.200 ip ospf hello-interval 1 ``` ## Задание 20.4# Create a template templates/add_vlan_to_switch.txt that will be used if you need to add a VLAN to the switch. The template must support the following features: add VLAN and VLAN name * adding VLANs as access, on the specified interface * adding VLANs to the list of allowed, on specified trunks If VLAN needs to be added as access, you need to configure the interface mode and add it to VLAN: ``` interface Gi0/1 switchport mode access switchport access vlan 5 ``` For trunks, you only need to add VLANs to the allowed list: ``` interface Gi0/10 switchport trunk allowed vlan add 5 ``` The variable names should be chosen based on the sample data in the data_files/add_vlan_to_switch.yaml file. Check the templates/add_vlan_to_switch.txt template against the data in data_files/add_vlan_to_switch.yaml using the generate_config function from task 20.1. Do not copy the code of the generate_config function. ## Task 20.5# Create templates templates/gre_ipsec_vpn_1.txt and templates/gre_ipsec_vpn_2.txt that generate IPsec over GRE configuration between two routers. The templates/gre_ipsec_vpn_1.txt template creates the configuration for one side of the tunnel, and templates gre_ipsec_vpn_2.txt for the other. Examples of the final configuration that should be generated from templates in the files: cisco_vpn_1.txt and cisco_vpn_2.txt. Templates must be created manually by copying parts of the config into the corresponding templates. Create a create_vpn_config function that uses these templates to generate a VPN configuration based on the data in the data dictionary. template1 - the name of the template file that creates the configuration for one side of the tunnel * template2 - the name of the template file that creates the configuration for the second side of the tunnel * The function must return a tuple with two configurations (strings) that are derived from templates. Examples of VPN configurations that the create_vpn_config function should return in the cisco_vpn_1.txt and cisco_vpn_2.txt files. ## Task 20.5a# Create a configure_vpn function that uses the templates from task 20.5 to configure VPN on routers based on the data in the data dictionary. src_device_params - dictionary with connection parameters for device 1 * dst_device_params - dictionary with connection parameters for device 2 * src_template - a template that creates the configuration for side 1 * dst_template - a template that creates the configuration for side 2 * The function should configure the VPN based on templates and data on each device using netmiko. The function returns a tuple with the output of commands from two routers (the output returned by the netmiko send_config_set method). The first element of the tuple is the output from the first device (string), the second element of the tuple is the output from the second device. In this task, the data dictionary does not specify the Tunnel interface number to use. The number must be determined independently based on information from the equipment. If the router does not have Tunnel interfaces, take the number 0, if there is, take the nearest free number, but the same for two routers. For example, if the src router has the following interfaces: Tunnel1, Tunnel4. And on the dst router are: Tunnel2, Tunnel3, Tunnel8. The first free number that is the same for two routers will be 5. And you will need to configure the Tunnel 5 interface. For this task, the test verifies that the function works on the first two devices from the devices.yaml file. And it checks that the output contains commands for configuring interfaces, but does not check the configured tunnel numbers and other commands. The tunnels must be configured, but the test has been simplified so that there are fewer constraints on the task. On network devices that does not support any software interface, the output of show commands is returned as a string. And although it’s partly structured, it’s still just a string. And it has to be processed in some way to get Python objects, like a dictionary or a list. For example, it is possible to handle the output of a command line by line using regular expressions to get Python objects. But there is a more convenient option: TextFSM TextFSM - a library created by Google to handle output from network devices. It allows you to create templates to process the output of a command. Using TextFSM is better than simple line processing, as templates give a better idea of how output will be handled and templates are easier to share. That means it’s easier to find templates that have already been created and use them or share your own. First, library must be installed: `pip install textfsm` To use TextFSM you should create a template to handle the output of command. Example of traceroute command output: For example, you have to get hops that packet went through. In this case TextFSM template will look like this (traceroute.template file): ``` Value ID (\d+) Value Hop (\S+) First two lines define variables: * `Value ID (\d+)` - this line defines an `ID` variable that describes a regular expression: `(\d+)` - one or more digits, here are the hop numbers * `Value Hop (\S+)` - line that defines a `Hop` variable that describes an IP address by such regular expression After `Start` line, the template itself begins. In this case, it’s very simple: first goes caret sign, then two spaces and `ID` and `Hop` variables * in TextFSM the variables are written like this: `${variable name}` * word `Record` at the end means that lines that matches regular expression will be processed and included in the results of TextFSM (we’ll look at this in the next section) Script to process output of traceroute command with TextFSM (parse_traceroute.py): with open('traceroute.template') as template: fsm = textfsm.TextFSM(template) result = fsm.ParseText(traceroute) print(fsm.header) print(result) ``` ``` $ python parse_traceroute.py ['ID', 'Hop'] [['1', '10.0.12.1'], ['2', '15.0.0.5'], ['3', '57.0.0.7'], ['4', '79.0.0.9']] ``` Lines that match the described template are returned as a list of lists. Each element is a list that consists of two elements: hop number and IP address. Let’s sort out the content of script: traceroute - a variable that contains traceroute command output * ``` template = open('traceroute.template') ``` - content of TextFSM template file is read into a template variable * ``` fsm = textfsm.TextFSM(template) ``` - class that processes a template and creates an object from it in TextFSM * ``` result = fsm.ParseText(traceroute) ``` - method that handles output according to a template and returns a list of lists in which each element is a processed string * At the end, `print(fsm.header)` header is displayed which contains variable names and processing result We can work with that output further. For example, periodically execute traceroute command and compare whether the number of hops and their order has changed. To work with TextFSM you need command output and template: different commands need different templates * TextFSM returns a tabular processing result (as a list of lists) * this output is easily converted to csv format or to a list of dictionaries This section covers template syntax based on TextFSM documentation. The following section shows examples of syntax usage. Therefore, you can move to the next section and return to this section as necessary for those situations for which there is no example and when you need to recall the meaning of parameter. TextFSM template describes how data should be processed. Each template consists of two parts: value definitions (or variable definitions) - these variables describe which columns will be in the table view * state definitions Example of traceroute command examination: ``` Value ID (\d+) Value Hop (\d+(\.\d+){3}) ## Value definition# Only value definitions should be used in value section. The only exception there may be comments in this section. This section should not contain empty strings. For TextFSM, an empty string means the end of value definition section. Format of value description: ``` Value [option[,option...]] name regex ``` Syntax of value description (for each option below we will consider examples): * `Value` - keyword that indicates that a value is being created. It must be specified * option - options that define how to work with a variable. If several options are to be specified, they must be separated by a comma, without spaces. These options are supported: * `Filldown` - value that previously matched with a regex, remembered until the next processing line (if has not been explicitly cleared or matched again). This means that the last column value that matches regex is stored and used in the following strings if this column is not present. * `Key` - determines that this field contains a unique string identifier * `Required` - string that is processed will only be written if this value is present. * `List` - value is a list, and each match with a regex will add an item to the list. By default, each next match overwrites the previous one. * `Fillup` - works as Filldown but fills empty value up until it finds a match. Not compatible with Required. * `name` - name of value that will be used as column name. Reserved names should not be used as value names. * `regex` - regex that describes a value. regex should be in curly braces. ## State definition# After defining values, we need to defiine states: each state definition must be separated by an empty line (at least one) * first line - state name * then follows lines that describe rules. Rules must start with one or two spaces and caret symbol `^` Initial state is always `Start` . Input data is compared to the current state but rule line can specify that you want to go to a different state. Checking is done line-by-line until `EOF` (end of file) is reached or the current state goes to `End` state. ### Reserved states# The following states are reserved: * `Start` - state that must be specified. Without it the template won’t work. * `End` - state that completes processing of incoming strings and does not execute `EOF` state. * `EOF` - implicit state that always executes when processing reaches the end of the file. It looks like this: ``` EOF ^.* -> Record ``` `EOF` writes down the current string before it is finished. If this behavior needs to be changed you should explicitly write EOF at the end of template: `EOF` # State rules# Each state consists of one or more rules: TextFSM handles incoming strings and compares them to rules * if rule (regex) matches the string, actions in rule are executed and for the next string the process is repeated from the beginning of state. Rules should be written in this format: `^regex [-> action]` In rule: each rule must start with two spaces and caret symbol `^` . Caret symbol `^` means the beginning of a line and must always be clearly indicated * regex - regex in which variables can be used to specify variable you can use syntax like `$ValueName` or `${ValueName}` (preferred format) * in rule, variables are substituted by regex * if you want to explicitly specify end of line, use `$$` ## Action in rules# After regex, rule may indicate actions: there must be `->` character between regex and action * actions can consist of three parts in such format: `L.R S` * `L - Line Action` - actions that apply to an input string * `R - Record Action` - actions that apply to collected values * `S - State Transition` - changing state * By default `Next.NoRecord` is used ### Line Actions# Line Actions: * `Next` - process the line, read the next line and start checking it from the beginning. This action is used by default unless otherwise specified * `Continue` - continue to process rules as if there was no match while values are assigned ### Record Action# `Record Action` - optional action that can be specified after Line Action. They must be separated by a dot. Types of actions: * `NoRecord` - do nothing. This is default action when no other is specified * `Record` - all variables except those with Filldown option are reset. * `Clear` - reset all variables except those where Filldown option is specified. * `Clearall` - reset all variables. You need to split actions with a dot only if you want to specify both Line and Record actions. If you need to specify only one of them, dot is not required. ### State Transition# A new state can be specified after action: state must be one of reserved or defined in template * if input line matches: all actions are executed, * the next line is read, * then the current state changes to a new state and processing continues in new state. If rule uses `Continue` action, it is not possible to change state inside this rule. This rule is needed to avoid loops in sequence of states. ### Error Action# `Error` stops all line processing, discards all lines that have been collected so far and returns an exception. Syntax of this action is: ``` ^regex -> Error [word|"string"] ``` This section discusses examples of templates and TextFSM usage. Section uses parse_output.py script to process command output by template. It is not tied to a specific template and output: template and command output will be passed as arguments: ``` import sys import textfsm from tabulate import tabulate template = sys.argv[1] output_file = sys.argv[2] with open(template) as f, open(output_file) as output: re_table = textfsm.TextFSM(f) header = re_table.header result = re_table.ParseText(output.read()) print(result) print(tabulate(result, headers=header)) ``` ``` $ python parse_output.py template command_output ``` Note Module `tabulate` is used to output data in tabular form (it must be installed if you want to use this script). A similar output could be received with string formatting but with tabulate it is easier to do. Data processing by template is always done in the same way. Therefore, script will be the same only template and data will be different. Starting with a simple example we’ll figure out how to use TextFSM. ## show clock# The first example is a review of “sh clock” command output (output/sh_clock.txt file): ``` 15:10:44.867 UTC Sun Nov 13 2016 ``` First of all, you have to define variables in template: at the beginning of each line there must be a keyword Value * each variable defines column in table * next word - variable name * after name, in parentheses - a regex that describes data Definition of variables is as follows: Tips on special symbols: * `.` - any character * `+` - one or more repetitions of previous character * `\S` - all characters except whitespace * `\w` - any letter or number * `\d` - any number Once variables are defined, an empty line and `Start` state must follow, and then the rule follows starting with space and `^` symbol (templates/sh_clock.template file): Start ^${Time}.* ${Timezone} ${WeekDay} ${Month} ${MonthDay} ${Year} -> Record ``` Because in this case only one line in the output, it is not necessary to write `Record` action in template. But it is better to use it in situations where you have to write values and get used to this syntax and not make mistakes when you need to process multiple lines. When TextFSM handles output strings it substitutes variable by its values. In the end, rule will look like: ``` ^(..:..:..).* (\S+) (\w+) (\w+) (\d+) (\d+) ``` When this regex applies to “show clock” output, each regex group will have a corresponding value: 1 group: 15:10:44 * 2 group: UTC * 3 group: Sun * 4 group: Nov * 5 group: 13 * 6 group: 2016 In addition to explicit `Record` action which specifies that record should be placed in final table, the `Next` rule is also used by default. It specifies that you want to go to the next line of text. Since there is only one line in “sh clock” command output, the processing is completed. The result of script is: ``` $ python parse_output.py templates/sh_clock.template output/sh_clock.txt Time Timezone WeekDay Month MonthDay Year -------- ---------- --------- ------- ---------- ------ 15:10:44 UTC Sun Nov 13 2016 ``` ## show ip interface brief# In case when you need to process data displayed in columns, TextFSM template is the most convenient. Template for “show ip interface brief” output (templates/sh_ip_int_br.template file): ``` Value INTF (\S+) Value ADDR (\S+) Value STATUS (up|down|administratively down) Value PROTO (up|down) Start ^${INTF}\s+${ADDR}\s+\w+\s+\w+\s+${STATUS}\s+${PROTO} -> Record ``` In this case, the rule can be written in one line. Output command (output/sh_ip_int_br.txt file): ``` $ python parse_output.py templates/sh_ip_int_br.template output/sh_ip_int_br.txt INT ADDR STATUS PROTO --------------- ---------- -------- ------- FastEthernet0/0 15.0.15.1 up up FastEthernet0/1 10.0.12.1 up up FastEthernet0/2 10.0.13.1 up up FastEthernet0/3 unassigned up up Loopback0 10.1.1.1 up up Loopback100 100.0.0.1 up up ``` ## show cdp neighbors detail# Now try to process output of command “show cdp neighbors detail”. Peculiarity of this command is that the data are not in the same line but in different lines. File output/sh_cdp_n_det.txt contains output of “show cdp neighbors detail”: From command output you need to get such fields: LOCAL_HOST - name of device from prompt * DEST_HOST - neighbor name * MGMNT_IP - neighbor IP address * PLATFORM - model of neighbor device * LOCAL_PORT - local interface that connects to a neighbor * REMOTE_PORT - neighbor port * IOS_VERSION - neighbor IOS version Template looks like this (templates/sh_cdp_n_det.template file): ``` $ python parse_output.py templates/sh_cdp_n_det.template output/sh_cdp_n_det.txt LOCAL_HOST DEST_HOST MGMNT_IP PLATFORM LOCAL_PORT REMOTE_PORT IOS_VERSION ------------ ----------- ---------- ---------- --------------------- ------------------ ------------- SW1 R2 10.2.2.2 Cisco 2911 GigabitEthernet1/0/21 GigabitEthernet0/0 15.2(2)T1 ``` Although rules with variables are described in different lines and accordingly work with different lines, TextFSM collects them into one line of the table. That is, variables that are defined at the beginning of template determine the string of resulting table. Note that sh_cdp_n_det.txt file has three neighbors, but table has only one neighbor, the last one. ### Record# This is because `Record` action is not specified in template. And only the last line left in final table. Corrected template: Now the result is: Output from all three devices. But LOCAL_HOST variable is not displayed in every line, only in the first one. ### Filldown# This is because the prompt from which variable value is taken appears only once. And in order to make it appear in the next lines, use `Filldown` action for LOCAL_HOST variable: Now we get this output: LOCAL_HOST now appears in all three lines. But there was another strange effect - the last line in which only LOCAL_HOST column is filled. ### Required# The thing is, all variables we’ve determined are optional. Also, one variable with `Filldown` parameter. And to get rid of the last line, you have to make at least one variable mandatory by using `Required` option: ``` Value Filldown LOCAL_HOST (\S+) Value Required DEST_HOST (\S+) Value MGMNT_IP (.*) Value PLATFORM (.*) Value LOCAL_PORT (.*) Value REMOTE_PORT (.*) Value IOS_VERSION (\S+) Now we get the correct output: ## show ip route ospf# Consider the case where we need to process output of “show ip route ospf” command and in routing table there are several routes to the same network. For routes to the same network, instead of multiple lines where network is repeated, one record will be created in which all available next-hop addresses are in list. Example of “show ip route ospf” output (output/sh_ip_route_ospf.txt file): ``` R1#sh ip route ospf Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP + - replicated route, % - next hop override 10.0.0.0/8 is variably subnetted, 10 subnets, 2 masks O 10.1.1.0/24 [110/20] via 10.0.12.2, 1w2d, Ethernet0/1 O 10.2.2.0/24 [110/20] via 10.0.13.3, 1w2d, Ethernet0/2 O 10.3.3.3/32 [110/11] via 10.0.12.2, 1w2d, Ethernet0/1 O 10.4.4.4/32 [110/11] via 10.0.13.3, 1w2d, Ethernet0/2 [110/11] via 10.0.14.4, 1w2d, Ethernet0/3 O 10.5.5.5/32 [110/21] via 10.0.13.3, 1w2d, Ethernet0/2 [110/21] via 10.0.12.2, 1w2d, Ethernet0/1 [110/21] via 10.0.14.4, 1w2d, Ethernet0/3 O 10.6.6.0/24 [110/20] via 10.0.13.3, 1w2d, Ethernet0/2 ``` For this example we simplify the task and assume that routes can only be OSPF and only with “O” designation (i.e., only intra-zone routes). Start ^O +${network}/${mask}\s\[${distance}/${metric}\]\svia\s${nexthop}, -> Record ``` All right, but we’ve lost path options for routes 10.4.4.4/32 and 10.5.5.5/32. This is logical, because there is no rule that would be appropriate for such a line. Add a rule to template for lines with partial entries: Partial entries are missing networks and masks, but in previous examples we have already covered Filldown and, if desired, it can be applied here. But for this example we will use another option - List. Use `List` option for nexthop variable: Now nexthop column displays a list but so far with one element. When using `List` the value is a list, and each match with a regex will add an item to the list. By default, each next match overwrites the previous one. If, for example, leave Record action for full lines only: Now the result is not quite correct, address hops are assigned to wrong routes. This happens because writing is done on full route entry, then hops of incomplete route entries are collected in the list (other variables are overwritten) and when the next full route entry appears, the list is written to it. ``` O 10.4.4.4/32 [110/11] via 10.0.13.3, 1w2d, Ethernet0/2 [110/11] via 10.0.14.4, 1w2d, Ethernet0/3 O 10.5.5.5/32 [110/21] via 10.0.13.3, 1w2d, Ethernet0/2 [110/21] via 10.0.12.2, 1w2d, Ethernet0/1 [110/21] via 10.0.14.4, 1w2d, Ethernet0/3 O 10.6.6.0/24 [110/20] via 10.0.13.3, 1w2d, Ethernet0/2 ``` In fact, incomplete route entry should really be written when the next full route entry appears, but at the same time they should be written to appropriate route. The following should be done: once full route entry is met, the previous values should be written down and then continue to process the same full route entry to get its information. In TextFSM, you can do this with `Continue.Record` : ``` ^O -> Continue.Record ``` Here, `Record` action tells you to write down the current value of variables. Since there are no variables in this rule, what was in the previous values is written. `Continue` action says to continue working with the current line as if there was no match. So, the next line of template will work. The resulting template (templates/sh_ip_route_ospf.template): Start ^O -> Continue.Record ^O +${network}/${mask}\s\[${distance}/${metric}\]\svia\s${nexthop}, ^\s+\[${distance}/${metric}\]\svia\s${nexthop}, ``` ## show etherchannel summary# TextFSM is convenient to use to parse output that is displayed by columns or to process output that is in different lines. Templates are less convenient when it is necessary to get several identical elements from one line. Example of “show etherchannel summary” output (output/sh_etherchannel_summary.txt file): In this case, it is necessary to get: port-channel name and number. For example, Po1 * list of all the ports in it. For example, ``` ['Fa0/1', 'Fa0/2', 'Fa0/3'] ``` The difficulty is that ports are in the same line and TextFSM cannot specify the same variable multiple times in line. But it is possible to search multiple times for a match in a line. Template has two variables: CHANNEL - name and number of aggregated port * MEMBERS - list of ports that are included in an aggregated port. List – type which is specified for this variable. ``` CHANNEL MEMBERS --------- ---------- Po1 ['Fa0/1'] Po3 ['Fa0/11'] ``` So far, only the first port is in output but we need all ports to hit. In this case after match is found, you should continue processing string with ports. That is, use Continue action and describe the following expression. The only line in template describes the first port. Add a line that describes the next port. The next version of template: The second line describes the same expression, but MEMBERS variable is moved to the next port. ``` CHANNEL MEMBERS --------- -------------------- Po1 ['Fa0/1', 'Fa0/2'] Po3 ['Fa0/11', 'Fa0/12'] ``` Similarly, lines that describe the third and fourth ports should be written to template. But, because the output can have a different number of ports, you have to move Record rule to separate line so that it is not tied to a specific number of ports in string. For example, if Record is located after the line that describes four ports, for a situation with fewer ports in the line the entry will not be executed. The resulting template (templates/sh_ether_channelsummary.txt file): The result of processing: ``` CHANNEL MEMBERS --------- ---------------------------------------- Po1 ['Fa0/1', 'Fa0/2', 'Fa0/3'] Po3 ['Fa0/11', 'Fa0/12', 'Fa0/13', 'Fa0/14'] ``` Now all ports are in output. The template assumes a maximum of four ports in line. If there are more ports, add the corresponding lines to template. Another version of “sh etherchannel summary” output (output/sh_etherchannel_summary2.txt file): In this output a new version appears - lines containing only ports. To process this version you should modify template (templates/sh_etherchannel_summary2.txt file): ``` CHANNEL MEMBERS --------- ------------------------------------------------------------ Po1 ['Fa0/1', 'Fa0/2', 'Fa0/3'] Po3 ['Fa0/11', 'Fa0/12', 'Fa0/13', 'Fa0/14', 'Fa0/15', 'Fa0/16'] ``` This concludes our work with TextFSM templates. Examples of templates for Cisco and other vendors can be seen in project ntc-ansible. With TextFSM it is possible to process output of commands and get a structured result. However, it is still necessary to manually specify which template will handle show commands each time TextFSM is used. It would be much more convenient to have some mapping between command and template so that you can write a common script that performs connections to devices, sends commands, chooses template and parse output according to template. TextFSM has such feature. To use it, you should create a file that describes mapping between commands and templates. In TextFSM it is called `index` . This file should be in a directory with templates and should have this format: first line - column names * every next line is a pattern match to a command * mandatory columns with fixed position (mandatory first and last, respectively): first column - names of templates * last column - the corresponding command. This column uses a special format to describe that a command may not be fully written * other columns are optional in example below there are columns Hostname, Vendor. They allow you to refine your device information to determine which template to use. For example, show version command may be in Cisco and HP devices. Of course, having only commands are not sufficient to determine which template to use. In this case, you can pass information about the type of equipment used with command and then you can define the correct template. * all columns except the first column support regular expressions. Regular expressions are not supported inside `[[]]` Example of index file: ``` Template, Hostname, Vendor, Command sh_cdp_n_det.template, .*, Cisco, sh[[ow]] cdp ne[[ighbors]] de[[tail]] sh_clock.template, .*, Cisco, sh[[ow]] clo[[ck]] sh_ip_int_br.template, .*, Cisco, sh[[ow]] ip int[[erface]] br[[ief]] sh_ip_route_ospf.template, .*, Cisco, sh[[ow]] ip rou[[te]] o[[spf]] ``` Note how commands are written: ``` sh[[ow]] ip int[[erface]] br[[ief]] ``` . Record will be converted to ``` sh((ow)?)? ip int((erface)?)? br((ief)?)? ``` . This means that TextFSM will be able to determine which template to use even if command is not fully written. For example, such command variants will work: sh ip int br * show ip inter bri ## How to use CLI table# Let’s see how to use `clitable` class and index file. `templates` directory contains such templates and index file: ``` sh_cdp_n_det.template sh_clock.template sh_ip_int_br.template sh_ip_route_ospf.template index ``` First we try to work with CLI Table in ipython to see what features this class has and then we look at the final script. First, we import `clitable` class: ``` In [1]: from textfsm import clitable ``` Warning There are different ways to import `clitable` depending on textfsm version: * `import clitable` for version <= 0.4.1 * ``` from textfsm import clitable ``` for version >= 1.1.0 See textfsm version: `pip show textfsm` . We will check `clitable` on the last example from previous section - “show ip route ospf” command. Read the output that is stored in output/sh_ip_route_ospf.txt file to string: ``` In [2]: with open('output/sh_ip_route_ospf.txt') as f: ...: output_sh_ip_route_ospf = f.read() ...: ``` First, you should initialize a class by giving it name of file in which mapping between templates and commands is stored, and specify name of directory in which templates are stored: ``` In [3]: cli_table = clitable.CliTable('index', 'templates') ``` Specify which command should be passed and specify additional attributes that will help to identify template. To do this, you should create a dictionary in which keys are names of columns that are defined in index file. In this case, it is not necessary to specify vendor name, since “sh ip route ospf” command corresponds to only one template. ``` In [4]: attributes = {'Command': 'show ip route ospf' , 'Vendor': 'Cisco'} ``` Command output and dictionary with parameters should be passed to ParseCmd method: ``` In [5]: cli_table.ParseCmd(output_sh_ip_route_ospf, attributes) ``` As a result we have processed output of “sh ip route ospf” command in cli_table object. cli_table methods (to see all methods, call dir(cli_table)): ``` In [6]: cli_table. cli_table.AddColumn cli_table.NewRow cli_table.index cli_table.size cli_table.AddKeys cli_table.ParseCmd cli_table.index_file cli_table.sort cli_table.Append cli_table.ReadIndex cli_table.next cli_table.superkey cli_table.CsvToTable cli_table.Remove cli_table.raw cli_table.synchronised cli_table.FormattedTable cli_table.Reset cli_table.row cli_table.table cli_table.INDEX cli_table.RowWith cli_table.row_class cli_table.template_dir cli_table.KeyValue cli_table.extend cli_table.row_index cli_table.LabelValueTable cli_table.header cli_table.separator ``` For example, if you call `print(cli_table)` you get this: ``` In [7]: print(cli_table) Network, Mask, Distance, Metric, NextHop 10.0.24.0, /24, 110, 20, ['10.0.12.2'] 10.0.34.0, /24, 110, 20, ['10.0.13.3'] 10.2.2.2, /32, 110, 11, ['10.0.12.2'] 10.3.3.3, /32, 110, 11, ['10.0.13.3'] 10.4.4.4, /32, 110, 21, ['10.0.13.3', '10.0.12.2', '10.0.14.4'] 10.5.35.0, /24, 110, 20, ['10.0.13.3'] ``` FormattedTable method produces a table output: This can be useful for displaying information. To get a structured output from cli_table object, such as a list of lists, you have to refer to object in this way: ``` In [9]: data_rows = [list(row) for row in cli_table] In [11]: data_rows Out[11]: [['10.0.24.0', '/24', '110', '20', ['10.0.12.2']], ['10.0.34.0', '/24', '110', '20', ['10.0.13.3']], ['10.2.2.2', '/32', '110', '11', ['10.0.12.2']], ['10.3.3.3', '/32', '110', '11', ['10.0.13.3']], ['10.4.4.4', '/32', '110', '21', ['10.0.13.3', '10.0.12.2', '10.0.14.4']], ['10.5.35.0', '/24', '110', '20', ['10.0.13.3']]] ``` You can get column names separately: ``` In [12]: header = list(cli_table.header) In [14]: header Out[14]: ['Network', 'Mask', 'Distance', 'Metric', 'NextHop'] ``` The output is now similar to that of the previous section. Assemble everything into one script (textfsm_clitable.py file): ``` import clitable output_sh_ip_route_ospf = open('output/sh_ip_route_ospf.txt').read() cli_table = clitable.CliTable('index', 'templates') attributes = {'Command': 'show ip route ospf' , 'Vendor': 'Cisco'} cli_table.ParseCmd(output_sh_ip_route_ospf, attributes) print('CLI Table output:\n', cli_table) print('Formatted Table:\n', cli_table.FormattedTable()) data_rows = [list(row) for row in cli_table] header = list(cli_table.header) print(header) for row in data_rows: print(row) ``` In exercises to this section there will be a task to combine described procedure into a function and task to get a list of dictionaries. ``` $ python textfsm_clitable.py CLI Table output: Network, Mask, Distance, Metric, NextHop 10.0.24.0, /24, 110, 20, ['10.0.12.2'] 10.0.34.0, /24, 110, 20, ['10.0.13.3'] 10.2.2.2, /32, 110, 11, ['10.0.12.2'] 10.3.3.3, /32, 110, 11, ['10.0.13.3'] 10.4.4.4, /32, 110, 21, ['10.0.13.3', '10.0.12.2', '10.0.14.4'] 10.5.35.0, /24, 110, 20, ['10.0.13.3'] ['Network', 'Mask', 'Distance', 'Metric', 'NextHop'] ['10.0.24.0', '/24', '110', '20', ['10.0.12.2']] ['10.0.34.0', '/24', '110', '20', ['10.0.13.3']] ['10.2.2.2', '/32', '110', '11', ['10.0.12.2']] ['10.3.3.3', '/32', '110', '11', ['10.0.13.3']] ['10.4.4.4', '/32', '110', '21', ['10.0.13.3', '10.0.12.2', '10.0.14.4']] ['10.5.35.0', '/24', '110', '20', ['10.0.13.3']] ``` Now with TextFSM it is possible not only to get a structured output, but also to automatically determine which template to use by command and optional arguments. Date: 2015-02-26 Categories: Tags: Programmatic Access to CLI Devices with TextFSM. <NAME> (26.02.2015) - TextFSM basics and development ideas that formed the basis of ntc-ansible module * Parse CLI outputs with TextFSM. <NAME> (24.08.2015) - an example of using TextFSM to parse a large file with sh inventory output. Explains TextFSM syntax in more detail * Creating Templates for TextFSM and ntc_show_command. <NAME> (27.08.2015) - TextFSM syntax is discussed in more detail and examples of ntc-ansible module usage are shown (note that syntax of module has already changed slightly) * TextFSM and Structured Data. <NAME> (22.10.2015) - an introductory article on TextFSM. This does not describe syntax but gives an overview of what TextFSM is and an example of its use Projects that use TextFSM: TextFSM templates (from ntc-ansible module): ## Task 21.1# Create parse_command_output function. Function parameters: command_output - output the corresponding show command (string) The function should return a list: the first element is a list with column names * the rest of the items are lists, which contain the results of processing the output of the show command Check the operation of the function on the output of the sh ip int br command from the equipment and on the templates/sh_ip_int_br.template template. # this is how a function call should look if __name__ == "__main__": r1_params = { "device_type": "cisco_ios", "host": "192.168.100.1", "username": "cisco", "password": "cisco", "secret": "cisco", } with ConnectHandler(**r1_params) as r1: r1.enable() output = r1.send_command("sh ip int br") result = parse_command_output("templates/sh_ip_int_br.template", output) print(result) ``` ## Task 21.1a# Create parse_output_to_dict function. command_output - output of the corresponding show command (string) The function should return a list of dictionaries: Check the operation of the function on the output of the command output/sh_ip_int_br.txt and the template templates/sh_ip_int_br.template. ## Task 21.2# Create a TextFSM template to parse the output of the sh ip dhcp snooping binding command and write it to templates/sh_ip_dhcp_snooping.template The command output is located in the file output/sh_ip_dhcp_snooping.txt. The template should process and return the values of such columns: mac - 00:04:A3:3E:5B:69 * ip - 10.1.10.6 * vlan - 10 * intf - FastEthernet0/10 Check the work of the template using the parse_command_output function from task 21.1. ## Task 21.3# Create function parse_command_dynamic. command_output - command output (string) * attributes_dict - an attribute dict containing the following key-value pairs: ‘Command’: command * ‘Vendor’: vendor * templ_path - directory where templates are stored. The default is “templates” Check the function on the output of the sh ip int br command. ## Task 21.4# Create function send_and_parse_show_command. device_dict - a dict with connectin parameters for one device * index - file index name, default value “index” The function should connect to one device, send a show command using netmiko, and then parse the command output using TextFSM. ## Task 21.5# Create function send_and_parse_command_parallel. The send_and_parse_command_parallel function must run the send_and_parse_show_command function from task 21.4 in concurrent threads. Send_and_parse_command_parallel function parameters: devices - a list of dicts with connection parameters for devices * command - command * The function should return a dictionary: keys - the IP address of the device from which the output was received * values - a list of dicts (the output returned by the send_and_parse_show_command function) ``` {'192.168.100.1': [{'address': '192.168.100.1', 'intf': 'Ethernet0/0', 'protocol': 'up', 'status': 'up'}, {'address': '192.168.200.1', 'intf': 'Ethernet0/1', 'protocol': 'up', 'status': 'up'}], '192.168.100.2': [{'address': '192.168.100.2', 'intf': 'Ethernet0/0', 'protocol': 'up', 'status': 'up'}, {'address': '10.100.23.2', 'intf': 'Ethernet0/1', 'protocol': 'up', 'status': 'up'}]} ``` Object-oriented programming (OOP) - a programming methodology in which a program consists of objects that interact with each other. Objects are created on basis of class defined in code and typically combine data and actions that can be performed with data into a single whole. It is possible to write code without using OOP, but at a minimum learning of OOP basics will help to better understand what an object, class, method, variable are. These are things that are used in Python all the time. In addition, knowledge of OOP will be useful in reading someone else’s code. For example, it will be easier to understand netmiko code. Date: 2021-02-02 Categories: Tags: Class - an element of a program that describes some data type. Class describes a template for creating objects, typically specifies variables of object and actions that can be performed on object. * Instance - an object that is a representative of a class. * Method - a function that is defined within a class and describes an action that class supports * Instance variable (sometimes instance attribute) - data that refer to an object * Class variable - data that refer to class and shared by all class instances * Instance attribute - variables and methods that refer to objects (instances) created on the basis of a class. Every object has its own copy of attributes. A real-life OOP example: Building project - it is a class * Particular house which was built according to project - instance * Features such as color of house, number of windows - instance variables (of this particular house) * House can be sold, repainted, repaired - methods For example, when working with netmiko, the first thing to do was create connection: ssh = ConnectHandler(**device) ``` The `ssh` variable is an object that represents the real connection to equipment. Thanks to the type function, you can find out by an instance what class is the ssh object: ``` In [3]: type(ssh) Out[3]: netmiko.cisco.cisco_ios.CiscoIosSSH ``` `ssh` has its own methods and variables that depend on the state the current object. For example, the instance variable `ssh.host` is available for every instance of the class ``` netmiko.cisco.cisco_ios.CiscoIosSSH ``` and returns IP address or hostname, whichever is specified in the device dictionary: ``` In [4]: ssh.host Out[4]: '192.168.100.1' ``` Method `send_command` executes a command on the network device: ``` In [5]: ssh.send_command("sh clock") Out[5]: '*10:08:50.654 UTC Tue Feb 2 2021' ``` The `enable` method goes into enable mode and the `ssh` object saves state: before and after the transition, a different prompt is visible: ``` In [6]: ssh.find_prompt() Out[6]: 'R1>' In [7]: ssh.enable() Out[7]: 'enable\r\nPassword: \r\nR1#' In [8]: ssh.find_prompt() Out[8]: 'R1#' ``` This example illustrates important aspects of OOP: data integration, data handling and state preservation. Until now, when writing code, data and actions have been separated. Most often, actions are described as functions, and data is passed as arguments to these functions. When a class is created, data and actions are combined. Of course, these data and actions are linked. That is, those actions that are characteristic of an object of this type, and not some arbitrary actions, become class methods. For example, in an class instance `str` , all methods refer to working with this string: ``` In [10]: s = 'string' In [11]: s.upper() Out[11]: 'STRING' In [12]: s.center(20, '=') Out[12]: '=======string=======' ``` Class does not have to store a state - string is immutable data type and all methods return new strings and do not change the original string. Above, the following syntax is used when referring to instance attributes (variables and methods): `objectname.attribute` . This entry `s.lower()` means: call `lower` method on `s` object. Calling methods and variables is the same, but to call a method you have to add parentheses and pass all necessary arguments. Everything described has been used repeatedly in the book but now we will deal with formal terminology. Note that the basis is explained here given that the reader has no experience with OOP. Some examples are not very correct from Python’s ideology point of view, but they help to better understand how it works. At the end, an explanation is given of how this should be done in proper way. Keyword `class` is used in python to create classes. The easiest class you can create in Python: ``` In [1]: class Switch: ...: pass ...: ``` Class names: usually class names in Python are written in CamelCase format. To create a class instance, call class: In [3]: print(sw1) <__main__.Switch object at 0xb44963ac> ``` Using dot notation, it is possible to get values of instance variables, create new variables and assign a new value to existing ones: ``` In [5]: sw1.hostname = 'sw1' In [6]: sw1.model = 'Cisco 3850' ``` In another instance of Switch class, the variables may be different: ``` In [7]: sw2 = Switch() In [8]: sw2.hostname = 'sw2' In [9]: sw2.model = 'Cisco 3750' ``` You can see value of instance variables using the same dot notation: ``` In [10]: sw1.model Out[10]: 'Cisco 3850' In [11]: sw2.model Out[11]: 'Cisco 3750' ``` Before we start dealing with class methods, let’s see an example of a function that waits as an argument an instance variable of Switch class and displays information about it using instance variables `hostname` and `model` : ``` In [1]: def info(sw_obj): ...: print(f'Hostname: {sw_obj.hostname}\nModel: {sw_obj.model}') ...: In [3]: sw1.hostname = 'sw1' In [4]: sw1.model = 'Cisco 3850' In [5]: info(sw1) Hostname: sw1 Model: Cisco 3850 ``` In `info` function, `sw_obj` awaits an instance of `Switch` class. Most likely, there is nothing new about this example, because in the same way earlier we wrote functions that wait for a string as an argument and then call some methods in this string. This example will help you to understand `info` method that we will add to Switch class. To add a method you have to create a function within class: If you look closely, `info` method looks exactly like `info` function, only instead of `sw_obj` name the `self` is used. Why there is a strange `self` name here will be explained later and in the meantime we will see how to call `info` method: In example above, first an instance of Switch class is created, then `hostname` and `model` variables are added to instance and then `info` method is called. Method `info` outputs information about switch using values that are stored in instance variables. Method call is different from the function call: we do not pass a link to an instance of `Switch` class. We don’t need that because we call method from instance itself. Another unclear thing - why we wrote `self` then? Python transforms such a call: To this one: ``` In [38]: Switch.info(sw1) Hostname: sw1 Model: Cisco 3850 ``` In the second case, `self` parameter already makes more sense, it actually accepts the reference to instance and displays information on this basis. From objects usage point of view, it is more convenient to call methods using the first syntax version, so it is almost always used. When a class instance method is called the instance reference is passed by the first argument. In this case, instance is passed implicitly but parameter must be stated explicitly. This conversion is not a feature of user classes and works for embedded data types in the same way. For example, standard way to call `append` method in the list is: ``` In [4]: a = [1, 2, 3] In [5]: a.append(5) In [6]: a Out[6]: [1, 2, 3, 5] ``` The same can be done using the second option, calling through a class: In [8]: list.append(a, 5) In [9]: a Out[9]: [1, 2, 3, 5] ``` Parameter `self` was specified before in method definition, as well as when using instance variables in method. Parameter `self` is a reference to a particular instance of class. Parameter `self` is not a special name but an arrangement. Instead of `self` you can use a different name but you shouldn’t do that. Example of using a different name instead of `self` : ``` In [15]: class Switch: ...: def info(sw_object): ...: print(f'Hostname: {sw_object.hostname}\nModel: {sw_object.model}') ...: ``` It will work the same way: Warning Although technically you can use another name but always use `self` . In all “usual” methods of class the first parameter will always be `self` . Furthermore, creating an instance variable within a class is also done via `self` . An example of Switch class with new generate_interfaces method: generate_interfaces method must generate a list with interfaces based on specified type and quantity and create variable in an instance of class. First, an option of creating a usual variable within method: ``` In [5]: class Switch: ...: def generate_interfaces(self, intf_type, number_of_intf): ...: interfaces = [f'{intf_type}{number}' for number in range(1, number_of_intf+1)] ...: ``` In this case, class instances will not have interfaces variable: ``` In [6]: sw1 = Switch() In [7]: sw1.generate_interfaces('Fa', 10) In [8]: sw1.interfaces --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-8-e6b457e4e23e> in <module>() ----> 1 sw1.interfaces AttributeError: 'Switch' object has no attribute 'interfaces' ``` This variable does not exist because it exists only within method and visibility area of method is the same as function. Even other methods of the same class do not see variables in other methods. For list with interfaces to be available as a variable in instances, you have to assign value in self.interfaces: ``` In [9]: class Switch: ...: def info(self): ...: print(f'Hostname: {self.hostname}\nModel: {self.model}') ...: ...: def generate_interfaces(self, intf_type, number_of_intf): ...: interfaces = [f'{intf_type}{number}' for number in range(1, number_of_intf + 1)] ...: self.interfaces = interfaces ...: ``` Now, after generate_interfaces method is called interfaces variable is created in instance: ``` In [10]: sw1 = Switch() In [11]: sw1.generate_interfaces('Fa', 10) In [12]: sw1.interfaces Out[12]: ['Fa1', 'Fa2', 'Fa3', 'Fa4', 'Fa5', 'Fa6', 'Fa7', 'Fa8', 'Fa9', 'Fa10'] ``` # Method __init__# `__init__` # For `info` method to work correctly the instance should have `hostname` and `model` variables. If these variables are not available, an error will occur: In [59]: sw2 = Switch() In [60]: sw2.info() --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-60-5a006dd8aae1> in <module>() ----> 1 sw2.info() <ipython-input-57-30b05739380d> in info(self) 1 class Switch: 2 def info(self): ----> 3 print(f'Hostname: {self.hostname}\nModel: {self.model}') AttributeError: 'Switch' object has no attribute 'hostname' ``` Almost always, when an object is created it has some initial data. For example, to create a connection to device with netmiko you have to pass connection parameters. In Python these initial object data are specified in `__init__` . Method `__init__` is executed after Python has created a new instance and `__init__` method is passed arguments with which instance was created: ``` In [32]: class Switch: ...: def __init__(self, hostname, model): ...: self.hostname = hostname ...: self.model = model ...: ...: def info(self): ...: print(f'Hostname: {self.hostname}\nModel: {self.model}') ...: ``` Note that each instance created from this class will have variables: `self.model` and `self.hostname` . Now, when creating an instance of Switch class you have to specify `hostname` and `model` : ``` In [33]: sw1 = Switch('sw1', 'Cisco 3850') ``` Accordingly, `info` method works without error: ``` In [36]: sw1.info() Hostname: sw1 Model: Cisco 3850 ``` Note `__init__` method is sometimes called a class constructor, although technically in Python `__new__` method is executed first and then `__init__` . In most cases there is no necessety to create `__new__` method. An important feature of `__init__` method is that it should not return anything. Python will generate an exception if it tries to do this. The class that describes the network: ``` class Network: def __init__(self, network): self.network = network self.hosts = tuple(str(ip) for ip in ipaddress.ip_network(network).hosts()) self.allocated = [] Using the class: ``` In [2]: net1 = Network("10.1.1.0/29") In [3]: net1.allocate("10.1.1.1") In [4]: net1.allocate("10.1.1.2") In [5]: net1.allocated Out[5]: ['10.1.1.1', '10.1.1.2'] In [6]: net1.allocate("10.1.1.100") --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-6-9a4157e02c78> in <module> ----> 1 net1.allocate("10.1.1.100") <ipython-input-1-c5255d37a7fd> in allocate(self, ip) 12 raise ValueError(f"IP address {ip} is already in the allocated list") 13 else: ---> 14 raise ValueError(f"IP address {ip} does not belong to {self.network}") 15 ValueError: IP address 10.1.1.100 does not belong to 10.1.1.0/29 In [7]: net1.hosts Out[7]: ('10.1.1.1', '10.1.1.2', '10.1.1.3', '10.1.1.4', '10.1.1.5', '10.1.1.6') ``` Each method in class has its own local visibility area. This means that one class method does not see variables of another class method. For variables to be available, you have to assign their instance through `self.name` . Basically, method is a function tied to an object. Therefore, all nuances that concern function apply to methods. Variable instances are available in another method because instance itself is passed as a first argument to each method. In example below in `__init__` method, `hostname` and `model` variables are assigned to an instance and then used in `info` due to instance being passed as a first argument: ``` class Switch: def __init__(self, hostname, model): self.hostname = hostname self.model = model def info(self): print(f'Hostname: {self.hostname}\nModel: {self.model}') ``` Besides instance variables, there are also class variables. They are are created by specifying variables inside the class itself, not a method: ``` class Network: all_allocated_ip = [] def __init__(self, network): self.network = network self.hosts = tuple( str(ip) for ip in ipaddress.ip_network(network).hosts() ) self.allocated = [] Class variables can be accessed in different ways: The option allows you to access the value of class variable or add an element if the class variable is a mutable data type. The disadvantage of this option is that if in the method you write ``` self.all_allocated_ip = ... ``` , instead of changing the class variable, an instance variable will be created. The option will work correctly, but a small drawback this option is that the class name is written manually. You can use the third option instead, since `type(self)` returns a class. Now the class has a variable all_allocated_ip which is written all IP addresses that are allocated on the networks: ``` In [3]: net1 = Network("10.1.1.0/29") In [4]: net1.allocate("10.1.1.1") ...: net1.allocate("10.1.1.2") ...: net1.allocate("10.1.1.3") ...: In [5]: net1.allocated Out[5]: ['10.1.1.1', '10.1.1.2', '10.1.1.3'] In [6]: net2 = Network("10.2.2.0/29") In [7]: net2.allocate("10.2.2.1") ...: net2.allocate("10.2.2.2") ...: In [9]: net2.allocated Out[9]: ['10.2.2.1', '10.2.2.2'] In [10]: Network.all_allocated_ip Out[10]: ['10.1.1.1', '10.1.1.2', '10.1.1.3', '10.2.2.1', '10.2.2.2'] ``` The variable is accessible not only through the class, but also through the instances: ``` In [40]: Network.all_allocated_ip Out[40]: ['10.1.1.1', '10.1.1.2', '10.1.1.3', '10.2.2.1', '10.2.2.2'] In [41]: net1.all_allocated_ip Out[41]: ['10.1.1.1', '10.1.1.2', '10.1.1.3', '10.2.2.1', '10.2.2.2'] In [42]: net2.all_allocated_ip Out[42]: ['10.1.1.1', '10.1.1.2', '10.1.1.3', '10.2.2.1', '10.2.2.2'] ``` ## Task 22.1# Create a Topology class that represents the topology of the network. When creating an instance of a class, a dictionary that describes the topology is passed as an argument. The dictionary may contain “duplicate” connections. “Duplicate” connections are a situation when there are two connections in the dictionary: The task is to leave only one of these links in the final dictionary, no matter which one. In each instance, a topology instance variable must be created, which contains the topology dictionary, but already without “duplicates”. The topology instance variable should contain a dict without “duplicates” immediately after instance creation. ``` In [2]: top = Topology(topology_example) ``` After that, the topology variable should be available: ``` In [3]: top.topology Out[3]: {('R1', 'Eth0/0'): ('SW1', 'Eth0/1'), ('R2', 'Eth0/0'): ('SW1', 'Eth0/2'), ('R2', 'Eth0/1'): ('SW2', 'Eth0/11'), ('R3', 'Eth0/0'): ('SW1', 'Eth0/3'), ('R3', 'Eth0/1'): ('R4', 'Eth0/0'), ('R3', 'Eth0/2'): ('R5', 'Eth0/0')} ``` ``` topology_example = {('R1', 'Eth0/0'): ('SW1', 'Eth0/1'), ('R2', 'Eth0/0'): ('SW1', 'Eth0/2'), ('R2', 'Eth0/1'): ('SW2', 'Eth0/11'), ('R3', 'Eth0/0'): ('SW1', 'Eth0/3'), ('R3', 'Eth0/1'): ('R4', 'Eth0/0'), ('R3', 'Eth0/2'): ('R5', 'Eth0/0'), ('SW1', 'Eth0/1'): ('R1', 'Eth0/0'), ('SW1', 'Eth0/2'): ('R2', 'Eth0/0'), ('SW1', 'Eth0/3'): ('R3', 'Eth0/0')} ``` ## Task 22.1a# Transfer the functionality of removing “duplicates” to the _normalize method. In this case, the __init__ method should look like this: ``` class Topology: def __init__(self, topology_dict): self.topology = self._normalize(topology_dict) ``` ## Task 22.1b# Copy the Topology class from either task 22.1a or 22.1 and modify it. Add a delete_link method that deletes the specified connection. The method should also remove the “reverse” connection, if any (an example is given below). If there is no such link, the message “There is no such link” should be printed. Removing a link: ``` In [9]: t.delete_link(('R3', 'Eth0/1'), ('R4', 'Eth0/0')) Deleting the “reverse” link: the dictionary contains an entry ``` ('R3', 'Eth0/2'): ('R5', 'Eth0/0') ``` , but calling the delete_link method specifying the key and value in reverse order ``` ('R5', 'Eth0/0'): ('R3', 'Eth0/2') ``` should delete the connection: ``` In [11]: t.delete_link(('R5', 'Eth0/0'), ('R3', 'Eth0/2')) In [12]: t.topology Out[12]: {('R1', 'Eth0/0'): ('SW1', 'Eth0/1'), ('R2', 'Eth0/0'): ('SW1', 'Eth0/2'), ('R2', 'Eth0/1'): ('SW2', 'Eth0/11'), ('R3', 'Eth0/0'): ('SW1', 'Eth0/3')} ``` ``` In [13]: t.delete_link(('R5', 'Eth0/0'), ('R3', 'Eth0/2')) There is no such link ``` ## Task 22.1c# Add a delete_node method that deletes all connections to the specified device. If there is no such device, the message “There is no such device” is printed. ``` In [1]: t = Topology(topology_example) Removing a device: ``` In [3]: t.delete_node('SW1') In [4]: t.topology Out[4]: {('R2', 'Eth0/1'): ('SW2', 'Eth0/11'), ('R3', 'Eth0/1'): ('R4', 'Eth0/0'), ('R3', 'Eth0/2'): ('R5', 'Eth0/0')} ``` ``` In [5]: t.delete_node('SW1') There is no such device ``` ## Task 22.1d# Add the add_link method, which adds the specified link if it is not already in the topology. If the connection exists, print the message “Such a connection already exists”, If one of the sides is in the topology, display the message “A link to one of the ports exists”. In [9]: t.add_link(('R1', 'Eth0/4'), ('R7', 'Eth0/0')) In [11]: t.add_link(('R1', 'Eth0/4'), ('R7', 'Eth0/0')) Such a connection already exists In [12]: t.add_link(('R1', 'Eth0/4'), ('R7', 'Eth0/5')) A link to one of the ports exists ``` ## Task 22.2# Create a CiscoTelnet class that connects via Telnet to Cisco equipment. When instantiating the class, a Telnet connection should be created, as well as the transition to enable mode. The class must use the telnetlib module to connect via Telnet. The CiscoTelnet class, in addition to __init__, must have at least two methods: _write_line - takes a string as an argument and sends the string converted to bytes to the hardware and adds a line end character at the end. The _write_line method must be used inside the class. * send_show_command - takes the show command as an argument and returns the output received from the device __init__ method parameters: ip - IP address * username - username * password - password * secret - enable password ``` In [2]: from task_22_2 import CiscoTelnet In [4]: r1 = CiscoTelnet(**r1_params) In [5]: r1.send_show_command("sh ip int br") Out[5]: 'sh ip int br\r\nInterface IP-Address OK? Method Status Protocol\r\nEthernet0/0 192.168.100.1 YES NVRAM up up \r\nEthernet0/1 192.168.200.1 YES NVRAM up up \r\nEthernet0/2 unassigned YES manual up up \r\nEthernet0/3 192.168.130.1 YES NVRAM up up \r\nR1#' ``` Note The _write_line method is needed in order to be able to shorten a line: ``` self.telnet.write(line.encode("ascii") + b"\n") ``` to this: ``` self._write_line(line) ``` He shouldn’t do anything else. ## Task 22.2a# Copy the CiscoTelnet class from job 22.2 and modify the send_show_command method by adding three parameters: parse - controls what will be returned: normal command output or a list of dicts received after parsing command output using TextFSM. If parse=True, a list of dicts should be returned, and parse=False normal output. The default is True. * templates - path to the directory with templates. The default is “templates” * In [2]: from task_22_2a import CiscoTelnet Using the send_show_command method: ``` In [4]: r1.send_show_command("sh ip int br", parse=True) Out[4]: [{'intf': 'Ethernet0/0', 'address': '192.168.100.1', 'status': 'up', 'protocol': 'up'}, {'intf': 'Ethernet0/1', 'address': '192.168.200.1', 'status': 'up', 'protocol': 'up'}, {'intf': 'Ethernet0/2', 'address': '192.168.130.1', 'status': 'up', 'protocol': 'up'}] In [5]: r1.send_show_command("sh ip int br", parse=False) Out[5]: 'sh ip int br\r\nInterface IP-Address OK? Method Status Protocol\r\nEthernet0/0 192.168.100.1 YES NVRAM up up \r\nEthernet0/1 192.168.200.1 YES NVRAM up...' ``` ## Task 22.2b# Copy the CiscoTelnet class from task 22.2a and add the send_config_commands method. The send_config_commands method must be able to send one configuration mode command and a list of commands. The method should return output similar to the send_config_set method of netmiko (example output below). ``` In [1]: from task_22_2b import CiscoTelnet ``` In [5]: r1.send_config_commands('logging 10.1.1.1') Out[5]: 'conf t\r\nEnter configuration commands, one per line. End with CNTL/Z.\r\nR1(config)#logging 10.1.1.1\r\nR1(config)#end\r\nR1#' In [6]: r1.send_config_commands(['interface loop55', 'ip address 5.5.5.5 255.255.255.255']) Out[6]: 'conf t\r\nEnter configuration commands, one per line. End with CNTL/Z.\r\nR1(config)#interface loop55\r\nR1(config-if)#ip address 5.5.5.5 255.255.255.255\r\nR1(config-if)#end\r\nR1#' ``` ## Task 22.2c# Copy the CiscoTelnet class from task 22.2b and modify the send_config_commands method to check for errors. The send_config_commands method must have an additional strict parameter: strict=True means that when an error is encountered, a ValueError must be raised (default) * strict=False means that when an error is found, you only need to print the error message to the stdout The method should return output similar to the send_config_set method of netmiko (example output below). The text of the exception and error in the example below. ``` In [1]: from task_22_2c import CiscoTelnet In [4]: commands_with_errors = ['logging 0255.255.1', 'logging', 'a'] In [5]: correct_commands = ['logging buffered 20010', 'ip http server'] In [6]: commands = commands_with_errors+correct_commands ``` ``` In [7]: print(r1.send_config_commands(commands, strict=False)) When executing the command "logging 0255.255.1" on device 192.168.100.1, an error occurred -> Invalid input detected at '^' marker. When executing the command "logging" on device 192.168.100.1, an error occurred -> Incomplete command. When executing the command "a" on device 192.168.100.1, an error occurred -> Ambiguous command: "a" conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#logging 0255.255.1 ^ % Invalid input detected at '^' marker. R1(config)#a % Ambiguous command: "a" R1(config)#logging buffered 20010 R1(config)#ip http server R1(config)#end R1# In [8]: print(r1.send_config_commands(commands, strict=True)) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-8-0abc1ed8602e> in <module> ----> 1 print(r1.send_config_commands(commands, strict=True)) ValueError: When executing the command "logging 0255.255.1" on device 192.168.100.1, an error occurred -> Invalid input detected at '^' marker. ``` Special methods in Python - methods that are responsible for “standard” possibilities of objects and are called automatically when these possibilities are used. For example, expression `a + b` where a and b are numbers that is converted to such a call `a.__add__(b)` . That is, special method `__add__` is responsible for the addition operation. All special methods start and end with double underscore, therefore in English they are often called dunder methods, shortened from “double underscore”. Note Special methods are often called magic methods. Special methods are responsible for such features as working in context managers, creating iterators and iterable objects, addition operations, multiplication and others. By adding special methods to objects that are created by user, we make them look like built in Python objects. ## One underscore before name# One underscore before method name indicates that method is an internal feature of implementation and it should not be used directly. For example, CiscoSSH class uses paramiko to connect to equipment: class CiscoSSH: def __init__(self, ip, username, password, enable, disable_paging=True): self.client = paramiko.SSHClient() self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self.client.connect( hostname=ip, username=username, password=password, look_for_keys=False, allow_agent=False) After creating an instance of the class, not only send_show_command method is available but also client and ssh attributes (3rd line is tab tips in ipython): In [3]: r1. client send_show_command() ssh ``` If you want to specify that client and ssh are internal attributes that are needed for class operation but are not intended for user, you need to underscore name below: ``` class CiscoSSH: def __init__(self, ip, username, password, enable, disable_paging=True): self._client = paramiko.SSHClient() self._client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self._client.connect( hostname=ip, username=username, password=password, look_for_keys=False, allow_agent=False) self._ssh = self._client.invoke_shell() self._ssh.send('enable\n') self._ssh.send(enable + '\n') if disable_paging: self._ssh.send('terminal length 0\n') time.sleep(1) self._ssh.recv(1000) def send_show_command(self, command): self._ssh.send(command + '\n') time.sleep(2) result = self._ssh.recv(5000).decode('ascii') return result ``` Often such methods and attributes are called private but this does not mean that methods and variables are not available to user. This conversion is only performed if less than two underscores endings or no underscores. Although methods were created without `_Switch` , it was added. If you create a subclass then `__configure` method will not rewrite parent class method Switch: ### Two underscores before and after name# Python also denotes special methods. These methods are called when using Python functions and operators and allow to implement a certain functionality. As a rule, such methods need not be called directly. But for example, when creating your own class it may be necessary to describe such method in order to object can support some operations in Python. For example, in order to get length of an object it must support `__len__` method. # Methods __str__, __repr__# # Methods `__str__` , `__repr__` # Special methods `__str__` and `__repr__` are responsible for string representation of the object. They are used in different places. Consider example of IPAddress class that is responsible for representing IPv4 address: After creating class instances, they have a default string view that looks like this (the same output is displayed when ``` In [2]: ip1 = IPAddress('10.1.1.1') In [4]: str(ip1) Out[4]: '<__main__.IPAddress object at 0xb4e4e76c>' In [5]: str(ip2) Out[5]: '<__main__.IPAddress object at 0xb1bd376c>' ``` Unfortunately, this presentation is not very informative. It would be better to show information about which address this instance represents. Special method `__str__` is responsible for displaying information when using `str` function. As an argument this method expects only instance and must return string. In [7]: ip1 = IPAddress('10.1.1.1') In [9]: str(ip1) Out[9]: 'IPAddress: 10.1.1.1' In [10]: str(ip2) Out[10]: 'IPAddress: 10.2.2.2' ``` A second string view which is used in Python objects is displayed when using `repr` function and when adding objects to containers such as lists: ``` In [11]: ip_addresses = [ip1, ip2] In [12]: ip_addresses Out[12]: [<__main__.IPAddress at 0xb4e40c8c>, <__main__.IPAddress at 0xb1bc46ac>] In [13]: repr(ip1) Out[13]: '<__main__.IPAddress object at 0xb4e40c8c>' ``` Method `__repr__` is responsible for this output and it should also return a string, but it would return a string by copying which you can get an instance of a class: In [15]: ip1 = IPAddress('10.1.1.1') In [16]: ip2 = IPAddress('10.2.2.2') In [17]: ip_addresses = [ip1, ip2] In [18]: ip_addresses Out[18]: [IPAddress('10.1.1.1'), IPAddress('10.2.2.2')] In [19]: repr(ip1) Out[19]: "IPAddress('10.1.1.1')" ``` Special methods are also responsible for arithmetic operations support, for example, `__add__` method is responsible for addition operation: `__add__(self, other)` Let’s add to IPAddress class the support of summing with numbers, but in order not to complicate method implementation we will take an advantage of `ipaddress` module possibilities. In [2]: ipaddress1 = ipaddress.ip_address('10.1.1.1') In [3]: int(ipaddress1) Out[3]: 167837953 In [4]: ipaddress.ip_address(167837953) Out[4]: IPv4Address('10.1.1.1') ``` IPAddress class with `__add__` : def __add__(self, other): ip_int = int(ipaddress.ip_address(self.ip)) sum_ip_str = str(ipaddress.ip_address(ip_int + other)) return IPAddress(sum_ip_str) ``` ip_int variable refers to source address value in decimal format. And sum_ip_str is a string with IP address obtained by adding two numbers. In general, it is desirable that the summation operation returns an instance of the same class, so in the last line of method an instance of IPAddress class is created and a string with resulting address is passed to it as an argument. Now IPAddress class instances support addition with number. As a result we get a new instance of IPAddress class. ``` In [6]: ip1 = IPAddress('10.1.1.1') In [7]: ip1 + 5 Out[7]: IPAddress('10.1.1.6') ``` Since ipaddress module is used within method and it supports creating IP address only from a decimal number, it is necessary to limit method to work only with `int` data type. If the second element was an object of another type, an exception must be generated. The exception and error message are taken from a similar error in the `ipaddress.ip_address` function: ``` In [8]: a1 = ipaddress.ip_address('10.1.1.1') In [9]: a1 + 4 Out[9]: IPv4Address('10.1.1.5') In [10]: a1 + 4.0 --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-10-a0a045adedc5> in <module> ----> 1 a1 + 4.0 TypeError: unsupported operand type(s) for +: 'IPv4Address' and 'float' ``` Now IPAddress class looks like: def __add__(self, other): if not isinstance(other, int): raise TypeError(f"unsupported operand type(s) for +:" f" 'IPAddress' and '{type(other).__name__}'") ip_int = int(ipaddress.ip_address(self.ip)) sum_ip_str = str(ipaddress.ip_address(ip_int + other)) return IPAddress(sum_ip_str) ``` If the second operand is not an instanse of `int` class, a TypeError exception is generated. In exception, information is displayed that summation is not supported between IPAddress class instances and operand class instance. Class name is derived from class itself, after calling type: `type(other).__name__` . Check for summation with decimal number and error generation: ``` In [12]: ip1 = IPAddress('10.1.1.1') In [13]: ip1 + 5 Out[13]: IPAddress('10.1.1.6') In [14]: ip1 + 5.0 --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-14-5e619f8dc37a> in <module> ----> 1 ip1 + 5.0 In [15]: ip1 + '1' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-c5ce818f55d8> in <module> ----> 1 ip1 + '1' Manual of special methods Numeric magic methods Special methods are responsible not only for support of operations like addition and comparison, but also for protocol support. Protocol - set of methods that must be implemented in object to make object support a certain behavior. For example, Python has protocols like iteration, context manager, containers and others. After creating certain methods in the object, it will behave as built-in and use an interface understood by all who write on Python. A table with abstract classes describing which methods an object should have to make it support a certain protocol `iterable` - object that can return elements one at a time. For Python, it is any object that has `__iter__` or `__getitem__` method. If an object has `__iter__` method, the iterable becomes an iterator by calling `iter(name)` where `name` - name of iterable. If `__iter__` method is not present, Python iterates elements using `__getitem__` (also by calling `iter` function). In [3]: iterable_1[0] Calling __getitem__ Out[3]: 1 In [4]: for i in iterable_1: ...: print('>>>>', i) ...: Calling __getitem__ >>>> 1 Calling __getitem__ >>>> 2 Calling __getitem__ >>>> 3 Calling __getitem__ >>>> 4 Calling __getitem__ In [5]: list(map(str, iterable_1)) Calling __getitem__ Calling __getitem__ Calling __getitem__ Calling __getitem__ Calling __getitem__ Out[5]: ['1', '2', '3', '4'] ``` If object has `__iter__` method (which must return iterator), it is used for values iteration: def __iter__(self): print('Вызываю __iter__') return iter(self.items) In [13]: for i in iterable_1: ...: print('>>>>', i) ...: Calling __iter__ >>>> 1 >>>> 2 >>>> 3 >>>> 4 In [14]: list(map(str, iterable_1)) Calling __iter__ Out[14]: ['1', '2', '3', '4'] ``` In Python, `iter` function is responsible for getting an iterator: `iter` function will work on any object that has `__iter__` or `__getitem__` method. Method `__iter__` returns an iterator. If this method is not available, `iter` function checks availability of `__getitem__` method that can get elements by index. If `__getitem__` method exists, elements will be iterated through index (starting with 0). `iterator` - object that returns its elements one at a time. From Python point of view, it is any object that has `__next__` method. This method returns the next item if any or raises `Stopiteration` exception when items are ended. In addition, iterator remembers which object it stopped at in the last iteration. Each iterator also has `__iter__` method - that is, every iterator is an iterable object. This method returns iterator itself. An example of creating iterator from list: In [4]: i = iter(lista) ``` After elements are ended, `Stopiteration` exception is raised. In order for iterator to return elements again, it has to be re-created. Similar steps are performed when `for` loop iterates items in the list: When we iterate list items, `iter` function is first applied to the list to create an iterator and then `__next__` method is called until `Stopiteration` exception raised. An example of `my_for` function that works with any iterable and loosely imitates built-in function `for` (actually gititem are iterated over by iter function): ``` def my_for(iterable): if getattr(iterable, "__iter__", None): print('Есть __iter__') iterator = iter(iterable) while True: try: print(next(iterator)) except StopIteration: break elif getattr(iterable, "__getitem__", None): print('Нет __iter__, но есть __getitem__') index = 0 while True: try: print(iterable[index]) index += 1 except IndexError: break ``` Check function on object that has `__iter__` : ``` In [18]: my_for([1, 2, 3, 4]) Есть __iter__ 1 2 3 4 ``` Check function on object that does not have `__iter__` but has `__getitem__` : In [20]: iterable_1 = Items([1, 2, 3, 4, 5]) In [21]: my_for(iterable_1) Нет __iter__, но есть __getitem__ Calling __getitem__ 1 Calling __getitem__ 2 Calling __getitem__ 3 Calling __getitem__ 4 Calling __getitem__ 5 Calling __getitem__ ``` ## Iterator creation# Example of Network class: ``` In [10]: import ipaddress ...: ...: class Network: ...: def __init__(self, network): ...: self.network = network ...: subnet = ipaddress.ip_network(self.network) ...: self.addresses = [str(ip) for ip in subnet.hosts()] ``` Example of Network class instance creation: In [15]: net1 Out[15]: <__main__.Network at 0xb3124a6cIn [16]: net1.addresses Out[16]: ['10.1.1.193', '10.1.1.194'] In [17]: net1.network Out[17]: '10.1.1.192/30' ``` Create an iterator from Network class: def __iter__(self): print('Вызываю __iter__') return self def __next__(self): print('Вызываю __next__') if self._index < len(self.addresses): current_address = self.addresses[self._index] self._index += 1 return current_address else: raise StopIteration ``` Method `__iter__` in iterator must return object itself, therefore `return self` is specified in method and `__next__` method returns elements one at a time and raises `StopIteration` exception when elements have run out. In [15]: for ip in net1: ...: print(ip) ...: Calling __iter__ Calling __next__ 10.1.1.193 Calling __next__ 10.1.1.194 Calling __next__ ``` Most of the time, iterator is a disposable object and once we’ve iterated elements, we can’t do it again: ``` In [16]: for ip in net1: ...: print(ip) ...: Calling __iter__ Calling __next__ ``` ## Creation of iterable# Very often it is sufficient for class to be an iterable and not necessarily an iterator. If an object is iterable, it can be used in `for` loop, `map` functions, `filter` , `sorted` , `enumerate` and others. It is also generally easier to make an iterable than an iterator. In order for Network class to be iterable, class must have `__iter__` ( `__next__` is not needed) and method must return iterator. Since in this case, Network iterates addresses that are in `self.addresses` list, the easiest option to return iterator is to return `iter(self.addresses)` : def __iter__(self): return iter(self.addresses) ``` Now all Network class instances will be iterable objects: ``` In [18]: net1 = Network('10.1.1.192/30') In [19]: for ip in net1: ...: print(ip) ...: 10.1.1.193 10.1.1.194 ``` In the most basic version, sequence protocol (sequence) includes two methods: `__len__` and `__getitem__` . In more complete version also methods: `__contains__` , `__iter__` , `__reversed__` , `index` and `count` . If sequence is mutable, several other methods are added. Add `__len__` and `__getitem__` methods to Network class: ``` In [1]: class Network: ...: def __init__(self, network): ...: self.network = network ...: subnet = ipaddress.ip_network(self.network) ...: self.addresses = [str(ip) for ip in subnet.hosts()] ...: ...: def __iter__(self): ...: return iter(self.addresses) ...: ...: def __len__(self): ...: return len(self.addresses) ...: ...: def __getitem__(self, index): ...: return self.addresses[index] ...: ``` Method `__len__` is called by `len` function: ``` In [2]: net1 = Network('10.1.1.192/30') In [3]: len(net1) Out[3]: 2 ``` And `__getitem__` method is called when you acess item by index: ``` In [4]: net1[0] Out[4]: '10.1.1.193' In [5]: net1[1] Out[5]: '10.1.1.194' In [6]: net1[-1] Out[6]: '10.1.1.194' ``` `__getitem__` method is responsible not only for access by index, but also for slices: ``` In [7]: net1 = Network('10.1.1.192/28') In [8]: net1[0] Out[8]: '10.1.1.193' In [9]: net1[3:7] Out[9]: ['10.1.1.196', '10.1.1.197', '10.1.1.198', '10.1.1.199'] In [10]: net1[3:] Out[10]: ['10.1.1.196', '10.1.1.197', '10.1.1.198', '10.1.1.199', '10.1.1.200', '10.1.1.201', '10.1.1.202', '10.1.1.203', '10.1.1.204', '10.1.1.205', '10.1.1.206'] ``` In this case, because `__getitem__` method uses a `list` , errors are processed correctly automatically: ``` In [11]: net1[100] --------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-11-09ca84e34cb6> in <module> ----> 1 net1[100] IndexError: list index out of range TypeError: list indices must be integers or slices, not str ``` Remaining methods of sequence protocol: * `__contains__` - this method is responsible for checking the presence of element in sequence `'10.1.1.198' in net1` . If object does not define this method, the presence of element is checked by iteration of elements using `__iter__` and if this method is also unavailable, then by index iteration with `__getitem__` . * `__reversed__` - is used by built-in `reversed` function. This method is usually best not to create and rely on the fact that `reversed` function in absence of `__reversed__` method will use methods `__len__` and `__getitem__` . * `index` - returns index of element. Works exactly the same as `index` method in lists and tuples. * `count` - returns number of values. Works exactly the same as `count` method in lists and tuples. Context manager allows specified actions to be performed at the beginning and end of `with` block. Two methods are responsible for context manager: * `__enter__(self)` - indicates what should be done at the beginning of `with` block. Value that returns method is assigned to variable after `as` . * ``` __exit__(self, exc_type, exc_value, traceback) ``` - indicates what should be done at the end of `with` block or when it is interrupted. If there is an exception within block, then exc_type, exc_value, traceback will contain exception information, if there is no exception they will be equal to None. Examples of context manager usage: file opening/closing * opening/closing of SSH/Telnet session * transactions handling in database CiscoSSH class uses paramiko to connect to the equipment: ``` class CiscoSSH: def __init__(self, ip, username, password, enable, disable_paging=True): client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) Example of class usage: In [10]: r1.send_show_command('sh clock') Out[10]: 'sh clock\r\n*12:58:47.523 UTC Sun Jul 28 2019\r\nR1#' In [11]: r1.send_show_command('sh ip int br') Out[11]: 'sh ip int br\r\nInterface IP-Address OK? Method Status Protocol\r\nEthernet0/0 192.168.100.1 YES NVRAM up up \r\nEthernet0/1 192.168.200.1 YES NVRAM up up \r\nEthernet0/2 19.1.1.1 YES NVRAM up up \r\nEthernet0/3 192.168.230.1 YES NVRAM up up \r\nLoopback0 4.4.4.4 YES NVRAM up up \r\nLoopback90 90.1.1.1 YES manual up up \r\nR1#' ``` In order for the class to support work in context manager, it is necessary to add methods `__enter__` and `__exit__` : ``` class CiscoSSH: def __init__(self, ip, username, password, enable, disable_paging=True): print('Метод __init__') client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) def __enter__(self): print('Метод __enter__') return self def __exit__(self, exc_type, exc_value, traceback): print('Метод __exit__') self.ssh.close() Example of class usage in context manager: ``` In [14]: with CiscoSSH('192.168.100.1', 'cisco', 'cisco', 'cisco') as r1: ...: print(r1.send_show_command('sh clock')) ...: Метод __init__ Метод __enter__ sh clock *13:05:50.677 UTC Sun Jul 28 2019 R1# Метод __exit__ ``` Even if an exception occurs within block, `__exit__` method is executed: ``` In [18]: with CiscoSSH('192.168.100.1', 'cisco', 'cisco', 'cisco') as r1: ...: result = r1.send_show_command('sh clock') ...: result / 2 ...: Метод __init__ Метод __enter__ Метод __exit__ --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-18-b9ff1fa74be2> in <module> 1 with CiscoSSH('192.168.100.1', 'cisco', 'cisco', 'cisco') as r1: 2 result = r1.send_show_command('sh clock') ----> 3 result / 2 4 TypeError: unsupported operand type(s) for /: 'str' and 'int' ``` ## Task 23.1# In this task, you must create an IPAddress class. When creating an instance of a class, the IP address and mask are passed as an argument, and the correctness of the address and mask must be checked: The address is considered to be correctly specified if it: consists of 4 numbers separated by a dot * the mask is considered correct if the mask is a number and a number in the range from 8 to 32 inclusiveA If the mask or address fails validation, you must raise a ValueError with the appropriate text (output below). Also, when creating a class, two instance variables must be created: ip and mask, which contain the address and mask, respectively. ip and mask attributes In [3]: ip1.ip Out[3]: '10.1.1.1' In [4]: ip1.mask Out[4]: 24 ``` Checking the correctness of the address (traceback is shortened) ``` In [5]: ip1 = IPAddress('10.1.1/24') --------------------------------------------------------------------------- ... ValueError: Incorrect IPv4 address Checking the correctness of the mask (traceback is shortened) In [6]: ip1 = IPAddress('10.1.1.1/240') --------------------------------------------------------------------------- ... ValueError: Incorrect mask ``` ## Task 23.1a# Copy and modify the IPAddress class from task 23.1. Add two string views for instances of the IPAddress class. How string representations should look like should be determined from the output below. ``` In [5]: ip1 = IPAddress('10.1.1.1/24') In [6]: str(ip1) Out[6]: 'IP address 10.1.1.1/24' In [7]: print(ip1) IP address 10.1.1.1/24 In [8]: ip1 Out[8]: IPAddress('10.1.1.1/24') In [9]: ip_list = [] In [10]: ip_list.append(ip1) In [11]: ip_list Out[11]: [IPAddress('10.1.1.1/24')] In [12]: print(ip_list) [IPAddress('10.1.1.1/24')] ``` ## Task 23.2# Copy the CiscoTelnet class from any 22.2x task and add context manager support to the class. When exiting the context manager block, the connection should be closed. Example of work: In [15]: from task_23_2 import CiscoTelnet In [16]: with CiscoTelnet(**r1_params) as r1: ...: print(r1.send_show_command('sh clock')) ...: sh clock *19:17:20.244 UTC Sat Apr 6 2019 R1# ``` ## Task 23.3# Copy and modify the Topology class from job 22.1x. In this task, you need to add a method that will allow you to add two instances of the Topology class. The addition should return a new instance of the Topology class. Creating two instances of the Topology class: ``` In [1]: t1 = Topology(topology_example) In [3]: topology_example2 = {('R1', 'Eth0/4'): ('R7', 'Eth0/0'), ('R1', 'Eth0/6'): ('R9', 'Eth0/0')} In [4]: t2 = Topology(topology_example2) Summing instances of the Topology class: ``` In [6]: t3 = t1 + t2 In [7]: t3.topology Out[7]: {('R1', 'Eth0/0'): ('SW1', 'Eth0/1'), ('R1', 'Eth0/4'): ('R7', 'Eth0/0'), ('R1', 'Eth0/6'): ('R9', 'Eth0/0'), ('R2', 'Eth0/0'): ('SW1', 'Eth0/2'), ('R2', 'Eth0/1'): ('SW2', 'Eth0/11'), ('R3', 'Eth0/0'): ('SW1', 'Eth0/3'), ('R3', 'Eth0/1'): ('R4', 'Eth0/0'), ('R3', 'Eth0/2'): ('R5', 'Eth0/0')} ``` Checking that the original instances haven’t changed: ``` In [9]: t1.topology Out[9]: {('R1', 'Eth0/0'): ('SW1', 'Eth0/1'), ('R2', 'Eth0/0'): ('SW1', 'Eth0/2'), ('R2', 'Eth0/1'): ('SW2', 'Eth0/11'), ('R3', 'Eth0/0'): ('SW1', 'Eth0/3'), ('R3', 'Eth0/1'): ('R4', 'Eth0/0'), ('R3', 'Eth0/2'): ('R5', 'Eth0/0')} ## Task 23.3a# In this task, you need to make sure that instances of the Topology class are iterables. The base of the Topology class can be taken from either task 22.1x or task 23.3. After creating an instance of a class, the instance should act like an iterable object. Each iteration should return a tuple that describes one connection. The order of output of connections can be any. ``` In [1]: top = Topology(topology_example) In [2]: for link in top: ...: print(link) ...: (('R1', 'Eth0/0'), ('SW1', 'Eth0/1')) (('R2', 'Eth0/0'), ('SW1', 'Eth0/2')) (('R2', 'Eth0/1'), ('SW2', 'Eth0/11')) (('R3', 'Eth0/0'), ('SW1', 'Eth0/3')) (('R3', 'Eth0/1'), ('R4', 'Eth0/0')) (('R3', 'Eth0/2'), ('R5', 'Eth0/0')) ``` Inheritance allows creation of new classes based on existing ones. There are child and parents classes: child class inherits parent class. In inheritance, child class inherits all methods and attributes of parent class. Example of ConnectSSH class that performs SSH connection using paramiko: class ConnectSSH: def __init__(self, ip, username, password): self.ip = ip self.username = username self.password = password self._MAX_READ = 10000 client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self._ssh = client.invoke_shell() time.sleep(1) self._ssh.recv(self._MAX_READ) def __enter__(self): return self def __exit__(self, exc_type, exc_value, traceback): self._ssh.close() def close(self): self._ssh.close() def send_show_command(self, command): self._ssh.send(command + '\n') time.sleep(2) result = self._ssh.recv(self._MAX_READ).decode('ascii') return result def send_config_commands(self, commands): if isinstance(commands, str): commands = [commands] for command in commands: self._ssh.send(command + '\n') time.sleep(0.5) result = self._ssh.recv(self._MAX_READ).decode('ascii') return result ``` This class will be used as the basis for classes that are responsible for connecting to devices of different vendors. For example, CiscoSSH class will be responsible for connecting to Cisco devices and will inherit ConnectSSH class. Inheritance syntax: ``` class CiscoSSH(ConnectSSH): pass ``` After that, all ConnectSSH methods and attributes are available in CiscoSSH class: In [4]: r1.ip Out[4]: '192.168.100.1' In [5]: r1._MAX_READ Out[5]: 10000 In [6]: r1.send_show_command('sh ip int br') Out[6]: 'sh ip int br\r\nInterface IP-Address OK? Method Status Protocol\r\nEthernet0/0 192.168.100.1 YES NVRAM up up \r\nEthernet0/1 192.168.200.1 YES NVRAM up up \r\nEthernet0/2 19.1.1.1 YES NVRAM up up \r\nEthernet0/3 192.168.230.1 YES NVRAM up up \r\nLoopback0 4.4.4.4 YES NVRAM up up \r\nLoopback33 3.3.3.3 YES manual up up \r\nLoopback90 90.1.1.1 YES manual up up \r\nR1#' In [7]: r1.send_show_command('enable') Out[7]: 'enable\r\nPassword: ' In [8]: r1.send_show_command('cisco') Out[8]: '\r\nR1#' In [9]: r1.send_config_commands(['conf t', 'int loopback 33', ...: 'ip address 3.3.3.3 255.255.255.255', 'end']) Out[9]: 'conf t\r\nEnter configuration commands, one per line. End with CNTL/Z.\r\nR1(config)#int loopback 33\r\nR1(config-if)#ip address 3.3.3.3 255.255.255.255\r\nR1(config-if)#end\r\nR1#' ``` After inheriting all methods of parent class, child class can: leave them unchanged * rewrite them completely * supplement method * add your methods In CiscoSSH class you have to create `__init__` method and add parameters to it: * `enable_password` - enable password * `disable_paging` - is responsible for paging turning on/off Method `__init__` can be created entirely from scratch but basic SSH connection logic is the same in ConnectSSH and CiscoSSH, so it is better to add necessary parameters and call `__init__` method of ConnectSSH class for connection. There are several options for calling parent method, for example, all of these options will call `send_show_command` method of parent class from child class CiscoSSH: ``` command_result = ConnectSSH.send_show_command(self, command) command_result = super(CiscoSSH, self).send_show_command(command) command_result = super().send_show_command(command) ``` The first version of ``` ConnectSSH.send_show_command ``` explicitly specifies the name of parent class - this is the most understandable version for perception, but its disadvantage is that when a parent class name is changed the name will have to be changed in all places where parent class methods were called. This option also has disadvantages when using multiple inheritance. The second and third options are essentially equivalent but the third option is shorter, so we will use it. CiscoSSH class with `__init__` method: Method `__init__` in CiscoSSH class added `enable_password` and `disable_paging` parameters and uses them accordingly to enter enable mode and disable paging. Example: In [11]: r1.send_show_command('sh clock') Out[11]: 'sh clock\r\n*11:30:50.280 UTC Mon Aug 5 2019\r\nR1#' ``` Now when connecting, switch enters enable mode and paging is disabled by default, so you can try to run a long command like sh run. Another method that should be further developed is `send_config_commands` method: since CiscoSSH class is designed to work with Cisco, you can add switching to configuration mode before commands and exit after. def config_mode(self): self._ssh.send('conf t\n') time.sleep(0.5) result = self._ssh.recv(self._MAX_READ).decode('ascii') return result def exit_config_mode(self): self._ssh.send('end\n') time.sleep(0.5) result = self._ssh.recv(self._MAX_READ).decode('ascii') return result def send_config_commands(self, commands): result = self.config_mode() result += super().send_config_commands(commands) result += self.exit_config_mode() return result ``` Example of `send_config_commands` method use: In [13]: r1.send_config_commands(['interface loopback 33', ...: 'ip address 3.3.3.3 255.255.255.255']) Out[13]: 'conf t\r\nEnter configuration commands, one per line. End with CNTL/Z.\r\nR1(config)#interface loopback 33\r\nR1(config-if)#ip address 3.3.3.3 255.255.255.255\r\nR1(config-if)#end\r\nR1#' ``` ## Task 24.1# Create a CiscoSSH class that inherits the BaseSSH class from the base_connect_class.py file. Create an __init__ method in the CiscoSSH class so that after connecting via SSH, it switches to enable mode. ``` In [2]: from task_24_1 import CiscoSSH In [3]: r1 = CiscoSSH(**device_params) ## Task 24.1a# Copy and update the CiscoSSH class from task 24.1. Before connecting via SSH, you need to check if the dictionary with the connection parameters contains the following parameters: username, password, secret. If any parameter is missing, ask the user for a value and then connect. If all parameters are present, connect. ``` In [1]: from task_24_1a import CiscoSSH In [2]: device_params = { ...: 'device_type': 'cisco_ios', ...: 'host': '192.168.100.1', ...: } In [3]: r1 = CiscoSSH(**device_params) Enter username: cisco Enter password: cisco Enter enable passwod: cisco ## Task 24.2# Create a MyNetmiko class that inherits the CiscoIosSSH class from netmiko. Write the __init__ method in the MyNetmiko class so that after connecting via SSH, it switches to enable mode. Check that the send_command and send_config_set methods are available in the MyNetmiko class (they are inherited automatically, this is just for checking). ``` In [2]: from task_24_2 import MyNetmiko ## Task 24.2a# Copy and update the MyNetmiko class from task 24.2. Add the _check_error_in_command method that checks for such errors: Invalid input detected, Incomplete command, Ambiguous command The method expects a command and command output as an argument. If no error is found in the output, the method returns nothing. If an error is found in the output, the method should raise an ErrorInCommand exception with a message about which error was detected, on which device, and in which command. An ErrorInCommand exception is created in the task file. Rewrite send_command method to include error checking. ``` In [2]: from task_24_2a import MyNetmiko In [5]: r1.send_command('sh ip br') --------------------------------------------------------------------------- ErrorInCommand Traceback (most recent call last) <ipython-input-2-1c60b31812fd> in <module>() ----> 1 r1.send_command('sh ip br') ... ErrorInCommand: When executing the command "sh ip br" on device 192.168.100.1, an error occurred "Invalid input detected at '^' marker." ``` ## Task 24.2b# Copy the class MyNetmiko from task 24.2a. Add error checking to the send_config_set method using the _check_error_in_command method. The send_config_set method should send commands one at a time and check each for errors. If no errors are encountered while executing the commands, the send_config_set method returns the output of the commands. ``` In [2]: from task_24_2b import MyNetmiko In [4]: r1.send_config_set('lo') --------------------------------------------------------------------------- ErrorInCommand Traceback (most recent call last) <ipython-input-2-8e491f78b235> in <module>() ----> 1 r1.send_config_set('lo') ## Task 24.2c# Copy the class MyNetmiko from task 24.2b. Check that the send_command method, in addition to a command, also accepts additional arguments, for example, strip_command. If an error occurs, rewrite the method to accept any arguments that netmiko supports. In [4]: r1.send_command('sh ip int br', strip_command=False) Out[4]: 'sh ip int br\nInterface IP-Address OK? Method Status Protocol\nEthernet0/0 192.168.100.1 YES NVRAM up up \nEthernet0/1 192.168.200.1 YES NVRAM up up \nEthernet0/2 190.16.200.1 YES NVRAM up up \nEthernet0/3 192.168.230.1 YES NVRAM up up \nEthernet0/3.100 10.100.0.1 YES NVRAM up up \nEthernet0/3.200 10.200.0.1 YES NVRAM up up \nEthernet0/3.300 10.30.0.1 YES NVRAM up up ' In [5]: r1.send_command('sh ip int br', strip_command=True) Out[5]: 'Interface IP-Address OK? Method Status Protocol\nEthernet0/0 192.168.100.1 YES NVRAM up up \nEthernet0/1 192.168.200.1 YES NVRAM up up \nEthernet0/2 190.16.200.1 YES NVRAM up up \nEthernet0/3 192.168.230.1 YES NVRAM up up \nEthernet0/3.100 10.100.0.1 YES NVRAM up up \nEthernet0/3.200 10.200.0.1 YES NVRAM up up \nEthernet0/3.300 10.30.0.1 YES NVRAM up up ' ``` ## Task 24.2d# Copy class MyNetmiko from task 24.2c or task 24.2b. Add the ignore_errors parameter to the send_config_set method. If ignore_errors=True, no error checking is needed and the method should work exactly like the send_config_set method in netmiko. If ignore_errors=False, errors should be checked. By default, errors should be ignored. In [6]: r1.send_config_set('lo') Out[6]: 'config term\nEnter configuration commands, one per line. End with CNTL/Z.\nR1(config)#lo\n% Incomplete command.\n\nR1(config)#end\nR1#' In [7]: r1.send_config_set('lo', ignore_errors=True) Out[7]: 'config term\nEnter configuration commands, one per line. End with CNTL/Z.\nR1(config)#lo\n% Incomplete command.\n\nR1(config)#end\nR1#' In [8]: r1.send_config_set('lo', ignore_errors=False) --------------------------------------------------------------------------- ErrorInCommand Traceback (most recent call last) <ipython-input-8-704f2e8d1886> in <module>() ----> 1 r1.send_config_set('lo', ignore_errors=False) The use of databases is another way of storing information. Databases are useful not only in storing information. Using DBMS it is possible to make information slices according to different parameters. Database (DB) - data stored according to a certain scheme. This scheme describes relationships between data. DB language (language tools) - used to describe database structure, manage data (add, edit, delete, receive), manage access rights to database and its objects, and manage transactions. Database Management System (DBMS) - a software tool that enables management of DB. DBMS must support appropriate language(s) for DB management. SQL (structured query language) - used to describe database structure, manage data (add, edit, delete, receive), manage access rights to database and its objects, and manage transactions. SQL language is divided into the following categories: DDL (Data Definition Language) * DML (Data Manipulation Language) * DCL (Data Control Language) * TCL (Transaction Control Language) Each category has its own operators (not all operators are listed): DDL CREATE - create new table, DBMS, schemas * ALTER - change of existing table, columns * DROP - removing existing objects from DBMS * DML SELECT - data selection * INSERT - adding new data * UPDATE - updating existing data * DELETE - deleting data * DCL GRANT - Allow users to read/write certain objects to DBMS * REVOKE - - withdrawal of prior authorizations * TCL COMMIT - committing of transaction * ROLLBACK - rollback of all changes made in the current transaction ## SQL and Python# Two approaches can be used to work with a relational DBMS in Python: work with a library that corresponds to a specific database and use SQL language to work with database. For example, sqlite uses sqlite3 module * work with ORM which uses an object-oriented approach to work with database. For example, Sqlalchemy Date: 2014-10-29 Categories: Tags: SQLite — a built-in SQL machine implementation. Sqlite is often used as an embedded DBMS in applications. The word SQL server is not used here because server is not needed there - all functionality that is embedded in SQL server is implemented inside a library (and therefore within program that uses it). ## SQLite CLI# SQLite package also includes a command line utility for working with SQLite. Utility is presented as a sqlite3 executable file (sqlite3.exe for Windows) and can be used to execute SQL commands manually. With this utility it is very convenient to check the correctness of SQL commands as well as to get acquainted with SQL language in general. Let’s try to use this utility to figure out basic SQL commands that will be needed to work with database. We’ll figure out how to build a database first. If you are using Linux or Mac OS, it is likely that sqlite3 is installed. If you are using Windows you can download sqlite3 here. To create a database (or open an already created database), you simply call sqlite3: ``` $ sqlite3 testDB.db SQLite version 3.8.7.1 2014-10-29 13:59:56 Enter ".help" for usage hints. sqlite> ``` Inside sqlite3 you can execute SQL commands or so-called metacommands (or dot commands). Metacommands include several special commands to work with SQLite. They refer only to sqlite3 utility, not to SQL language. There is no need to put `;` at the end of command. Examples of metacommands: * `.help` - a prompt with a list of all metacommands * `.exit` or `.quit` - exit sqlite3 session * `.databases` - shows connected databases * `.tables` - shows available tables Examples: ``` sqlite> .help .backup ?DB? FILE Backup DB (default "main") to FILE .bail ON|OFF Stop after hitting an error. Default OFF .databases List names and files of attached databases ... sqlite> .databases seq name file --- -------- ---------------------------------- 0 main /home/nata/py_for_ne/db/db_article/testDB.db ``` ## litecli# The standard Sqlite CLI interface has several disadvantages: no autocomplete commands * no tips * all content of a column is not always displayed All these deficiencies are fixed in litecli. So it’s best to use it. Installation of litecli: ``` $ pip install litecli ``` Open database in litecli: ``` $ litecli example.db Version: 1.0.0 Mail: https://groups.google.com/forum/#!forum/litecli-users Github: https://github.com/dbcli/litecli example.db> ``` CREATE TABLE statement allows you to create tables. First connect to database or create it with litecli: ``` $ litecli new_db.db Version: 1.0.0 Mail: https://groups.google.com/forum/#!forum/litecli-users Github: https://github.com/dbcli/litecli new_db.db> ``` Create a switch table which stores information about switches: In this example, we described switch table: we defined which fields would be in the table and which types of values would be in them. Additionally, mac field is primary key. That automatically means that: field must be unique * field cannot have null value (in SQLite this must be stated explicitly) In this example this is quite logical as MAC address must be unique. There are no entries in the table at the moment, only a definition. You can view definition with this command: ``` new_db.db> .schema switch +-----------------------------------------------------------------------------------------------+ | sql | +-----------------------------------------------------------------------------------------------+ | CREATE TABLE switch (mac text not NULL primary key, hostname text, model text, location text) | +-----------------------------------------------------------------------------------------------+ Time: 0.037s ``` DROP operator removes table along with schema and all data. You can delete table like this: INSERT operator is used to add data to the table. If table was deleted in previous step, create it: There are several options for adding entries, depending on whether all fields are filled and whether or not they follow the field order. If values for all fields are specified you can add an entry in this way (the order of fields must be respected): ``` new_db.db> INSERT into switch values ('0010.A1AA.C1CC', 'sw1', 'Cisco 3750', 'London, Green Str'); Query OK, 1 row affected Time: 0.008s ``` If you want to specify not all fields or specify them randomly, this entry is used: ``` new_db.db> INSERT into switch (mac, model, location, hostname) values ('0020.A2AA.C2CC', 'Cisco 3850', 'London, Green Str', 'sw2'); Query OK, 1 row affected Time: 0.009s ``` SELECT operator allows you to query information from the table. `SELECT *` means that all fields in the table must be displayed. Then indicates from which table data is requested: `from switch` . Thus, it is possible to specify specific columns to be derived and in what order: WHERE operator is used to specify a query. With the help of this operator it is possible to specify certain conditions under which data is selected. If condition is met the corresponding value is returned from table, if not - it is not returned. Now there are only two enties in switch table: To create more entries in table you need to create more rows. Litecli has a source command that lets you upload SQL commands from a file. File add_rows_to_testdb.txt is prepared to add entries: ``` INSERT into switch values ('0030.A3AA.C1CC', 'sw3', 'Cisco 3750', 'London, Green Str'); INSERT into switch values ('0040.A4AA.C2CC', 'sw4', 'Cisco 3850', 'London, Green Str'); INSERT into switch values ('0050.A5AA.C3CC', 'sw5', 'Cisco 3850', 'London, Green Str'); INSERT into switch values ('0060.A6AA.C4CC', 'sw6', 'C3750', 'London, Green Str'); INSERT into switch values ('0070.A7AA.C5CC', 'sw7', 'Cisco 3650', 'London, Green Str'); ``` To upload commands from a file you should execute the command: ``` new_db.db> source add_rows_to_testdb.txt Query OK, 1 row affected Time: 0.023s Now switch table looks like: Using the WHERE clause, you can show only those switches whose model is 3850: ``` new_db.db> SELECT * from switch WHERE model = 'Cisco 3850'; +----------------+----------+------------+-------------------+ | mac | hostname | model | location | +----------------+----------+------------+-------------------+ | 0020.A2AA.C2CC | sw2 | Cisco 3850 | London, Green Str | | 0040.A4AA.C2CC | sw4 | Cisco 3850 | London, Green Str | | 0050.A5AA.C3CC | sw5 | Cisco 3850 | London, Green Str | +----------------+----------+------------+-------------------+ 3 rows in set Time: 0.033s ``` WHERE operator allows you to specify more than a specific field value. If you add LIKE operator to it you can specify a field template. Like with characters `_` and `%` indicates what the value should look like: * `_` - denotes one character or number * `%` - denotes zero, one or many characters For example, if model field is written in different formats the previous query will not be able to extract needed switches. For sw6 switch the model field is written in this format: C3750, but for sw1 and sw3 switches: Cisco 3750. In this version, WHERE query does not show sw6: ``` new_db.db> SELECT * from switch WHERE model = 'Cisco 3750'; +----------------+----------+------------+-------------------+ | mac | hostname | model | location | +----------------+----------+------------+-------------------+ | 0010.A1AA.C1CC | sw1 | Cisco 3750 | London, Green Str | | 0030.A3AA.C1CC | sw3 | Cisco 3750 | London, Green Str | +----------------+----------+------------+-------------------+ 2 rows in set Time: 0.037s ``` If with WHERE operator use `LIKE` operator: ``` new_db.db> SELECT * from switch WHERE model LIKE '%3750'; +----------------+----------+------------+-------------------+ | mac | hostname | model | location | +----------------+----------+------------+-------------------+ | 0010.A1AA.C1CC | sw1 | Cisco 3750 | London, Green Str | | 0030.A3AA.C1CC | sw3 | Cisco 3750 | London, Green Str | | 0060.A6AA.C4CC | sw6 | C3750 | London, Green Str | +----------------+----------+------------+-------------------+ 3 rows in set Time: 0.040s ``` ALTER TABKE statement allows you to change an existing table: add new columns or rename the table. Add new fields to the table: mngmt_ip - switch IP address in management VLAN * mngmt_vid - VLAN ID of management VLAN Adding entries using ALTER TABLE: Now table looks like this (new fields are set to NULL): UPDATE operator is used to change an existing table entry. Usually, UPDATE is used with WHERE operator to specify which entry to change. With UPDATE you can fill in new columns in the table. For example, add an IP address for sw1 switch: ``` new_db.db> UPDATE switch set mngmt_ip = '10.255.1.1' WHERE hostname = 'sw1'; Query OK, 1 row affected Time: 0.009s ``` Now table is like this: VLAN number can be changed in the same way: ``` new_db.db> UPDATE switch set mngmt_vid = 255 WHERE hostname = 'sw1'; Query OK, 1 row affected Time: 0.009s You can change several fields at a time: ``` new_db.db> UPDATE switch set mngmt_ip = '10.255.1.2', mngmt_vid = 255 WHERE hostname = 'sw2' Query OK, 1 row affected Time: 0.009s To avoid filling fields mngmt_ip and mngmt_vid manually, fill in the rest from update_fields_in_testdb.txt file (command ``` source update_fields_in_testdb.txt ``` ): ``` UPDATE switch set mngmt_ip = '10.255.1.3', mngmt_vid = 255 WHERE hostname = 'sw3'; UPDATE switch set mngmt_ip = '10.255.1.4', mngmt_vid = 255 WHERE hostname = 'sw4'; UPDATE switch set mngmt_ip = '10.255.1.5', mngmt_vid = 255 WHERE hostname = 'sw5'; UPDATE switch set mngmt_ip = '10.255.1.6', mngmt_vid = 255 WHERE hostname = 'sw6'; UPDATE switch set mngmt_ip = '10.255.1.7', mngmt_vid = 255 WHERE hostname = 'sw7'; ``` After commands upload table is as follows: Now suppose that sw1 was replaced from 3750 model to 3850. Accordingly, not only model field but also MAC address field was changed. Making changes: ``` new_db.db> UPDATE switch set model = 'Cisco 3850', mac = '0010.D1DD.E1EE' WHERE hostname = 'sw1'; Query OK, 1 row affected Time: 0.009s ``` REPLACE operator is used to add or replace data in the table. REPLACE operator may not be supported in all DBMS. When a field uniqueness condition is violated, an expression with REPLACE operator: deletes the existing string that caused the violation * adds a new line An example of uniqueness condition rule violation: ``` new_db.db> INSERT INTO switch VALUES ('0030.A3AA.C1CC', 'sw3', 'Cisco 3850', 'London, Green Str', '10.255.1.3', 255); UNIQUE constraint failed: switch.mac ``` There are two types of REPLACE expression: Or a shorter version: The result of any of these commands is to replace sw3 switch model: In this case, MAC address in new entry is the same as in existing one, so the replacement occurs. If not all fields have been specified, the new entry will contain only those fields that have been specified. This is because REPLACE first removes an existing entry. For entry which was added without uniqueness violation, REPLACE functions as a normal INSERT: ``` new_db.db> REPLACE INTO switch VALUES ('0080.A8AA.C8CC', 'sw8', 'Cisco 3850', 'London, Green Str', '10.255.1.8', 255); Query OK, 1 row affected Time: 0.009s DELETE operator is used to delete enties. It is commonly used together with WHERE operator. For example, switch table is: Deleting information about sw8 switch is performed as follows: ``` new_db.db> DELETE from switch where hostname = 'sw8'; You're about to run a destructive command. Do you want to proceed? (y/n): y Your call! Query OK, 1 row affected Time: 0.008s ``` No line with sw8 switch in the table now: ORDER BY operator is used to sort the output by a certain field, ascending or descending. To do this it should be added to SELECT operator. If you perform a simple SELECT query, the output is: With help of ORDER BY operator you can get entries from switch table by sorting them by switch name: By default, sorting is ascending, so query could be without ASC parameter: Sorting by IP address descending: AND operator allows grouping of several conditions: ``` new_db.db> select * from switch where model = 'Cisco 3850' and mngmt_ip LIKE '10.255.%'; +----------------+----------+------------+-------------------+------------+-----------+ | mac | hostname | model | location | mngmt_ip | mngmt_vid | +----------------+----------+------------+-------------------+------------+-----------+ | 0010.D1DD.E1EE | sw1 | Cisco 3850 | London, Green Str | 10.255.1.1 | 255 | | 0020.A2AA.C2CC | sw2 | Cisco 3850 | London, Green Str | 10.255.1.2 | 255 | | 0040.A4AA.C2CC | sw4 | Cisco 3850 | London, Green Str | 10.255.1.4 | 255 | | 0050.A5AA.C3CC | sw5 | Cisco 3850 | London, Green Str | 10.255.1.5 | 255 | | 0030.A3AA.C1CC | sw3 | Cisco 3850 | London, Green Str | 10.255.1.3 | 255 | +----------------+----------+------------+-------------------+------------+-----------+ 5 rows in set Time: 0.034s ``` # OR# Operator OR: # IN# Operator IN: ``` new_db.db> select * from switch where model in ('Cisco 3750', 'C3750'); +----------------+----------+-------+-------------------+------------+-----------+ | mac | hostname | model | location | mngmt_ip | mngmt_vid | +----------------+----------+-------+-------------------+------------+-----------+ | 0060.A6AA.C4CC | sw6 | C3750 | London, Green Str | 10.255.1.6 | 255 | +----------------+----------+-------+-------------------+------------+-----------+ 1 row in set Time: 0.034s ``` # NOT# Operator NOT: Python uses sqlite3 module to work with SQLite. `Connection` object - this object can be said to represent a database. Example of creating a connection: Once you have created a connection you should create a Cursor object which is the main way to work with database. Cursor is created from DB connection: There are several methods for execution of SQL commands in module: * `execute` - method for executing one SQL expression * `executemany` - method allows to execute one SQL expression for a sequence of parameters (or for iterator) * `executescript` - method allows to execute multiple SQL expressions at once ## Method execute# Method `execute` allows one SQL command to be executed. First, create connection and cursor: ``` In [1]: import sqlite3 In [2]: connection = sqlite3.connect('sw_inventory.db') In [3]: cursor = connection.cursor() ``` Creates a switch table using `execute` : ``` In [4]: cursor.execute("create table switch (mac text not NULL primary key, hostname text, model text, location text)") Out[4]: <sqlite3.Cursor at 0x1085be880> ``` SQL expressions can be parameterized - data can be substituted by special values. Due to this you can use the same SQL command to pass different data. For example, switch table needs to be filled with data from data list: ``` In [5]: data = [ ...: ('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str'), ...: ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str'), ...: ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str'), ...: ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str')] ``` You can use this query: ``` In [6]: query = "INSERT into switch values (?, ?, ?, ?)" ``` Question marks in command are used to fill in the data that will be passed to `execute` . Data can now be passed as follows: ``` In [7]: for row in data: ...: cursor.execute(query, row) ...: ``` The second argument that is passed to `execute` must be a tuple. If you want to pass a tuple with one element, `(value, )` entry is used. For changes to be applied, commit must be executed (note that `commit` method is called at the connection): ``` In [8]: connection.commit() ``` Now, when querying from sqlite3 command line you can see these rows in switch table: ``` $ litecli sw_inventory.db Version: 1.0.0 Mail: https://groups.google.com/forum/#!forum/litecli-users Github: https://github.com/dbcli/litecli sw_inventory.db> SELECT * from switch; +----------------+----------+------------+-------------------+ | mac | hostname | model | location | +----------------+----------+------------+-------------------+ | 0000.AAAA.CCCC | sw1 | Cisco 3750 | London, Green Str | | 0000.BBBB.CCCC | sw2 | Cisco 3780 | London, Green Str | | 0000.AAAA.DDDD | sw3 | Cisco 2960 | London, Green Str | | 0011.AAAA.CCCC | sw4 | Cisco 3750 | London, Green Str | +----------------+----------+------------+-------------------+ 4 rows in set Time: 0.039s sw_inventory.db> ``` ## Method executemany# Method `executemany` allows one SQL command to be executed for parameter sequence (or for iteratoAr). Using `executemany` method you can add a similar data list to switch table by a single command. For example, you should add data from data2 list to switch table: ``` In [9]: data2 = [ ...: ('0000.1111.0001', 'sw5', 'Cisco 3750', 'London, Green Str'), ...: ('0000.1111.0002', 'sw6', 'Cisco 3750', 'London, Green Str'), ...: ('0000.1111.0003', 'sw7', 'Cisco 3750', 'London, Green Str'), ...: ('0000.1111.0004', 'sw8', 'Cisco 3750', 'London, Green Str')] ``` To do this, use a similar request: ``` In [10]: query = "INSERT into switch values (?, ?, ?, ?)" ``` Now you can pass data to executemany(): ``` In [11]: cursor.executemany(query, data2) Out[11]: <sqlite3.Cursor at 0x10ee5e810In [12]: connection.commit() ``` After commit, data is available in the table: ``` $ litecli sw_inventory.db Version: 1.0.0 Mail: https://groups.google.com/forum/#!forum/litecli-users Github: https://github.com/dbcli/litecli sw_inventory.db> SELECT * from switch; +----------------+----------+------------+-------------------+ | mac | hostname | model | location | +----------------+----------+------------+-------------------+ | 0000.AAAA.CCCC | sw1 | Cisco 3750 | London, Green Str | | 0000.BBBB.CCCC | sw2 | Cisco 3780 | London, Green Str | | 0000.AAAA.DDDD | sw3 | Cisco 2960 | London, Green Str | | 0011.AAAA.CCCC | sw4 | Cisco 3750 | London, Green Str | | 0000.1111.0001 | sw5 | Cisco 3750 | London, Green Str | | 0000.1111.0002 | sw6 | Cisco 3750 | London, Green Str | | 0000.1111.0003 | sw7 | Cisco 3750 | London, Green Str | | 0000.1111.0004 | sw8 | Cisco 3750 | London, Green Str | +----------------+----------+------------+-------------------+ 8 rows in set Time: 0.034s ``` Method `executemany` placed corresponding tuples to SQL command and all data was added to the table. ## Method executescript# Method `executescript` allows multiple SQL expressions to be executed at once. This method is particularly useful when creating tables: ``` In [13]: connection = sqlite3.connect('new_db.db') In [14]: cursor = connection.cursor() In [15]: cursor.executescript(''' ...: create table switches( ...: hostname text not NULL primary key, ...: location text ...: ); ...: ...: create table dhcp( ...: mac text not NULL primary key, ...: ip text, ...: vlan text, ...: interface text, ...: switch text not null references switches(hostname) ...: ); ...: ''') Out[15]: <sqlite3.Cursor at 0x10efd67a0> ``` There are several ways to get query results in sqlite3: using `fetch...` - depending on the method one, more or all rows are returned * using cursor as an iterator - iterator returns ## Method fetchone# Method `fetchone` returns one data row. Example of fetching information from sw_inventory.db database: ``` In [16]: import sqlite3 In [17]: connection = sqlite3.connect('sw_inventory.db') In [18]: cursor = connection.cursor() In [19]: cursor.execute('select * from switch') Out[19]: <sqlite3.Cursor at 0x104eda810In [20]: cursor.fetchone() Out[20]: ('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str') ``` Note that while the SQL query requests all table content, `fetchone` returned only one row. If you re-call method, it returns the next row: ``` In [21]: print(cursor.fetchone()) ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str') ``` Similarly, method will return the next rows. After processing all rows, method starts returning None. In this way, method can be used in the loop, for example: ``` In [22]: cursor.execute('select * from switch') Out[22]: <sqlite3.Cursor at 0x104eda810In [23]: while True: ...: next_row = cursor.fetchone() ...: if next_row: ...: print(next_row) ...: else: ...: break ...: ('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str') ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str') ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str') ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str') ('0000.1111.0001', 'sw5', 'Cisco 3750', 'London, Green Str') ('0000.1111.0002', 'sw6', 'Cisco 3750', 'London, Green Str') ('0000.1111.0003', 'sw7', 'Cisco 3750', 'London, Green Str') ('0000.1111.0004', 'sw8', 'Cisco 3750', 'London, Green Str') ``` ## Method fetchmany# Method `fetchmany` returns a list of data rows. Method syntax: ``` cursor.fetchmany([size=cursor.arraysize]) ``` Size parameter allows you to specify how many rows are returned. By default the size parameter is `cursor.arraysize` : ``` In [24]: print(cursor.arraysize) 1 ``` For example, you can return three rows at a time from query: ``` In [25]: cursor.execute('select * from switch') Out[25]: <sqlite3.Cursor at 0x104eda810In [26]: from pprint import pprint In [27]: while True: ...: three_rows = cursor.fetchmany(3) ...: if three_rows: ...: pprint(three_rows) ...: else: ...: break ...: [('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str'), ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str'), ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str')] [('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0001', 'sw5', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0002', 'sw6', 'Cisco 3750', 'London, Green Str')] [('0000.1111.0003', 'sw7', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0004', 'sw8', 'Cisco 3750', 'London, Green Str')] ``` Method displays required number of rows and if amount of rows are less than the size parameter, it returns remaining rows. ## Method fetchall# Method `fetchall` returns all rows as a list: ``` In [28]: cursor.execute('select * from switch') Out[28]: <sqlite3.Cursor at 0x104eda810In [29]: cursor.fetchall() Out[29]: [('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str'), ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str'), ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str'), ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0001', 'sw5', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0002', 'sw6', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0003', 'sw7', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0004', 'sw8', 'Cisco 3750', 'London, Green Str')] ``` An important aspect of method - it returns all remaining rows. That is, if `fetchone` method was used before `fetchall` , then `fetchall` would return remaining query rows: ``` In [30]: cursor.execute('select * from switch') Out[30]: <sqlite3.Cursor at 0x104eda810In [31]: cursor.fetchone() Out[31]: ('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str') In [32]: cursor.fetchone() Out[32]: ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str') In [33]: cursor.fetchall() Out[33]: [('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str'), ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0001', 'sw5', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0002', 'sw6', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0003', 'sw7', 'Cisco 3750', 'London, Green Str'), ('0000.1111.0004', 'sw8', 'Cisco 3750', 'London, Green Str')] ``` Method `fetchmany` works similarly in this aspect. If you want to process the resulting strings, use cursor as an iterator. It is not necessary to use fetch methods. If you use `execute` methods, the cursor is returned. Since cursor can be used as an iterator you can use it, for example, in `for` loop: ``` In [34]: result = cursor.execute('select * from switch') In [35]: for row in result: ...: print(row) ...: ('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str') ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str') ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str') ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str') ('0000.1111.0001', 'sw5', 'Cisco 3750', 'London, Green Str') ('0000.1111.0002', 'sw6', 'Cisco 3750', 'London, Green Str') ('0000.1111.0003', 'sw7', 'Cisco 3750', 'London, Green Str') ('0000.1111.0004', 'sw8', 'Cisco 3750', 'London, Green Str') ``` The same option will work without assigning a variable: ``` In [36]: for row in cursor.execute('select * from switch'): ...: print(row) ...: ('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str') ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str') ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str') ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str') ('0000.1111.0001', 'sw5', 'Cisco 3750', 'London, Green Str') ('0000.1111.0002', 'sw6', 'Cisco 3750', 'London, Green Str') ('0000.1111.0003', 'sw7', 'Cisco 3750', 'London, Green Str') ('0000.1111.0004', 'sw8', 'Cisco 3750', 'London, Green Str') ``` Execute methods are available in Connection object and in Cursor object but `fetch` methods are only available in Cursor object. When using `execute` methods with Connection object, cursor is returned as a result of `execute` method. It can be used as an iterator and receive data without `fetch` methods. This allows you not to create cursor when working with sqlite3 module. Example of the resulting script (create_sw_inventory_ver1.py): con = sqlite3.connect('sw_inventory2.db') con.execute('''create table switch (mac text not NULL primary key, hostname text, model text, location text)''' ) ``` $ python create_sw_inventory_ver1.py ('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str') ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str') ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str') ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str') ``` Let’s see an example of how to use `execute` method when an error occurs. In switch table the mac field must be unique. If you try to write an overlapping MAC address, there is an error: ``` In [37]: con = sqlite3.connect('sw_inventory2.db') In [38]: query = "INSERT into switch values ('0000.AAAA.DDDD', 'sw7', 'Cisco 2960', 'London, Green Str')" In [39]: con.execute(query) ------------------------------------------------------------ IntegrityError Traceback (most recent call last) <ipython-input-56-ad34d83a8a84> in <module>() ----> 1 con.execute(query) IntegrityError: UNIQUE constraint failed: switch.mac ``` Accordingly, you can catch the exception: ``` In [40]: try: ...: con.execute(query) ...: except sqlite3.IntegrityError as e: ...: print("Error occurred: ", e) ...: Error occurred: UNIQUE constraint failed: switch.mac ``` Note that you should catch ``` sqlite3.IntegrityError ``` exception, not `IntegrityError` . After operations are completed the changes must be saved (apply `commit` ), and then you can close connection if it is no longer needed. Python allows you to use Connection object as a context manager. In that case, you don’t have to explicitly commit. At the same time: If an exception occurs the transaction automatically rolls back * if no exception, commit applies automatically Example of using a database connection as a context manager (create_sw_inventory_ver2.py): con = sqlite3.connect('sw_inventory3.db') con.execute('''create table switch (mac text not NULL primary key, hostname text, model text, location text)''' ) except sqlite3.IntegrityError as e: print('Error occured: ', e) Note that although a transaction will be rolled back when an exception occurs, the exception itself must still be intercepted. To check this functionality you should write to the table the data in which MAC address is repeated. But before, in order to not repeat parts of the code, it is better to split the code by functions in create_sw_inventory_ver2.py file: ``` from pprint import pprint import sqlite3 def create_connection(db_name): ''' Function creates a connection to db_name database and returns it ''' connection = sqlite3.connect(db_name) return connection def write_data_to_db(connection, query, data): ''' Function awaits arguments: * connection - connection to DB * query - query to execute * data - data to be passed as a list of tuples Function attempts to write all data from *data* list. If data is saved successfully, changes are saved to database and returns True. If an error occurs during the writing process, transaction rolls back and function returns False. ''' try: with connection: connection.executemany(query, data) except sqlite3.IntegrityError as e: print('Error occured: ', e) return False else: print('Data writing was successful') return True def get_all_from_db(connection, query): ''' Function awaits arguments: * connection - connection to DB * query - query to execute Function returns data from database ''' result = [row for row in connection.execute(query)] return result if __name__ == '__main__': con = create_connection('sw_inventory3.db') print('DB creation...') schema = '''create table switch (mac text primary key, hostname text, model text, location text)''' con.execute(schema) print('Write data to DB:') pprint(data) write_data_to_db(con, query_insert, data) print('\nChecking DB content') pprint(get_all_from_db(con, query_get_all)) The result of script execution is: ``` $ python create_sw_inventory_ver2_functions.py Table creation... Data writing to DB: [('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str'), ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str'), ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str'), ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str')] Data writing was successful Now let’s check how `write_data_to_db` function will work when there are identical MAC addresses in the data. File create_sw_inventory_ver3.py uses functions from create_sw_inventory_ver2_functions.py file and implies that the script will run after the previous data is written: query_insert = "INSERT into switch values (?, ?, ?, ?)" query_get_all = "SELECT * from switch" print("\nChecking current content of DB") pprint(dbf.get_all_from_db(con, query_get_all)) print('-' * 60) print("Trying to write data with a duplicate MAC address:") pprint(data2) dbf.write_data_to_db(con, query_insert, data2) print("\nChecking DB content") pprint(dbf.get_all_from_db(con, query_get_all)) In data2 list, sw7 switch has the same MAC address as sw3 switch already existing in database. ``` $ python create_sw_inventory_ver3.py Cheking current DB content [('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str'), ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str'), ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str'), ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str')] ------------------------------------------------------------ Attempt to write data with repeating MAC address: [('0055.AAAA.CCCC', 'sw5', 'Cisco 3750', 'London, Green Str'), ('0066.BBBB.CCCC', 'sw6', 'Cisco 3780', 'London, Green Str'), ('0000.AAAA.DDDD', 'sw7', 'Cisco 2960', 'London, Green Str'), ('0088.AAAA.CCCC', 'sw8', 'Cisco 3750', 'London, Green Str')] Error occurred: UNIQUE constraint failed: switch.mac Note that the content of switch table before and after adding of information is the same. This means that no line from data2 list has been written. This is because `executemany` method is used and within the same transaction we try to write all four lines. If an error occurs with one of them, all changes are reversed. Sometimes it’s exactly the kind of behavior you need. If you want to ignore only row with errors you should use `execute` method and write each row separately. File create_sw_inventory_ver4.py has `write_rows_to_db` function which writes data in turn and if there is an error, only changes for specific data are rolled back: def write_rows_to_db(connection, query, data, verbose=False): ''' Function awaits arguments: * connection - connection to DB * query - query to execute * data - data to be passed as a list of tuples Function attempts to write a tuples in turn from *data* list. If tuple can be written successfully, changes are saved to database. If an error occurs while writing the tuple, transaction rolls back. Flag *verbose* controls whether messages about successful or unsuccessful tuple writing attempt. ''' for row in data: try: with connection: connection.execute(query, row) except sqlite3.IntegrityError as e: if verbose: print("Error occurred while writing data '{}'".format(', '.join(row), e)) else: if verbose: print("Data writing was successful '{}'".format( ', '.join(row))) print('\nChecking current content of DB') pprint(dbf.get_all_from_db(con, query_get_all)) print('-' * 60) print('Trying to write data with a duplicate MAC address:') pprint(data2) write_rows_to_db(con, query_insert, data2, verbose=True) print('\nChecking DB content') pprint(dbf.get_all_from_db(con, query_get_all)) The execution result is (missing only sw7): ``` $ python create_sw_inventory_ver4.py Cheking current DB content [('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str'), ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str'), ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str'), ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str')] ------------------------------------------------------------ Attempt to write data with repeating MAC address: [('0055.AAAA.CCCC', 'sw5', 'Cisco 3750', 'London, Green Str'), ('0066.BBBB.CCCC', 'sw6', 'Cisco 3780', 'London, Green Str'), ('0000.AAAA.DDDD', 'sw7', 'Cisco 2960', 'London, Green Str'), ('0088.AAAA.CCCC', 'sw8', 'Cisco 3750', 'London, Green Str')] Data "0055.AAAA.CCCC, sw5, Cisco 3750, London, Green Str" writing was successful Data "0066.BBBB.CCCC, sw6, Cisco 3780, London, Green Str" writing was successful While writing data "0000.AAAA.DDDD, sw7, Cisco 2960, London, Green Str" the error occured Data "0088.AAAA.CCCC, sw8, Cisco 3750, London, Green Str" writing was successful Cheking DB content [('0000.AAAA.CCCC', 'sw1', 'Cisco 3750', 'London, Green Str'), ('0000.BBBB.CCCC', 'sw2', 'Cisco 3780', 'London, Green Str'), ('0000.AAAA.DDDD', 'sw3', 'Cisco 2960', 'London, Green Str'), ('0011.AAAA.CCCC', 'sw4', 'Cisco 3750', 'London, Green Str'), ('0055.AAAA.CCCC', 'sw5', 'Cisco 3750', 'London, Green Str'), ('0066.BBBB.CCCC', 'sw6', 'Cisco 3780', 'London, Green Str'), ('0088.AAAA.CCCC', 'sw8', 'Cisco 3750', 'London, Green Str')] ``` In section 15 there was an example of reviewing the output of command “show ip dhcp snooping binding”. In the output we received information about parameters of connected devices (interface, IP, MAC, VLAN). In this version you can only see all devices connected to switch. If you want to find out others based on one of the parameters, it’s not convenient in this way. For example, if you want to get information based on IP address about to which interface the host is connected, which MAC address it has and in which VLAN it is, then script is not very simple and more importantly, not convenient. Let’s write information obtained from the output “sh ip dhcp snooping binding” to SQLite. This will allow do queries based on any parameter and get missing ones. For this example, it is sufficient to create a single table where information will be stored. Table is defined in a separate dhcp_snooping_schema.sql file: ``` create table if not exists dhcp ( mac text not NULL primary key, ip text, vlan text, interface text ); ``` For all fields the data type is “text”. MAC address is the primary key of our table which is logical because MAC address must be unique. Additionally, by using expression ``` create table if not exists ``` - SQLite will only create a table if it does not exist. Now you have to create a database file, connect to database and create a table (create_sqlite_ver1.py file): print('Creating schema...') with open('dhcp_snooping_schema.sql', 'r') as f: schema = f.read() conn.executescript(schema) print("Done") Comments to file: during execution of ``` conn = sqlite3.connect('dhcp_snooping.db') ``` : file dhcp_snooping.db is created if it does not exist * Connection object is created * table is created in database (if it does not exist) based on commands specified in dhcp_snooping_schema.sql file: dhcp_snooping_schema.sql file opens * `schema = f.read()` - whole file is read in one string * ``` conn.executescript(schema) ``` - executescript() method allows SQL to execute commands that are written in the file Execution of script: ``` $ python create_sqlite_ver1.py Creating schema... Done ``` The result should be a database file and a dhcp table. You can check that table has been created with sqlite3 utility which allows you to execute queries directly in command line. List of tables created is shown as follows: ``` $ sqlite3 dhcp_snooping.db "SELECT name FROM sqlite_master WHERE type='table'" dhcp ``` Now it is necessary to write information from the output of “sh ip dhcp snooping binding” command to the table (dhcp_snooping.txt file): In the second version of the script, the output in dhcp_snooping.txt file is processed with regular expressions and then entries are added to database (create_sqlite_ver2.py file): print('Creating schema...') with open('dhcp_snooping_schema.sql', 'r') as f: schema = f.read() conn.executescript(schema) print('Done') For now, you should delete database file every time because script tries to create it every time you start. in regular expression that processes the output of “sh ip dhcp snooping binding”, numbered groups are used instead of named groups as it was in example of section `https://pyneng.readthedocs.io/en/latest/book/14_regex/4a_group_example.html>`__ groups were created only for those elements we are interested in * result - a list that stores the result of processing the command output but now there is no dictionaries but tuples with results * this is necessary to enable them to be immediately written to database * Scroll elements in received list of tuples * This script uses another version of database entry * `query` string containes a query. But instead of values, question marks are given. This query type allows dynamicly substite field values. * then `execute` method is passed a query string and `row` tuple where values are Execute the script: ``` $ python create_sqlite_ver2.py Creating schema... Done Inserting DHCP Snooping data ``` Let’s check if data has been written: ``` $ sqlite3 dhcp_snooping.db "select * from dhcp" -- Loading resources from /home/vagrant/.sqliterc mac ip vlan interface ----------------- ---------- ---------- --------------- 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 00:04:A3:3E:5B:69 10.1.5.2 5 FastEthernet0/1 00:05:B3:7E:9B:60 10.1.5.4 5 FastEthernet0/9 00:09:BC:3F:A6:50 10.1.10.6 10 FastEthernet0/3 ``` Now let’s try to ask by a certain parameter: ``` $ sqlite3 dhcp_snooping.db "select * from dhcp where ip = '10.1.5.2'" -- Loading resources from /home/vagrant/.sqliterc mac ip vlan interface ----------------- ---------- ---------- ---------------- 00:04:A3:3E:5B:69 10.1.5.2 5 FastEthernet0/10 ``` That is, it is now possible to get others parameters based on one parameter. Let’s modify the script to make it check for the presence of dhcp_snooping.db. If you have a database file you don’t need to create a table, we believe it has already been created. File create_sqlite_ver3.py: ``` import os import sqlite3 import re data_filename = 'dhcp_snooping.txt' db_filename = 'dhcp_snooping.db' schema_filename = 'dhcp_snooping_schema.sql' db_exists = os.path.exists(db_filename) if not db_exists: print('Creating schema...') with open(schema_filename, 'r') as f: schema = f.read() conn.executescript(schema) print('Done') else: print('Database exists, assume dhcp table does, too.') Now there is a verification of the presence of database file and dhcp_snooping.db file will only be created if it does not exist. Data is also written only if dhcp_snooping.db file is not created. Separating the process of creating a table and completing it with the data is specified in tasks to the section. If no file (delete it first): ``` $ rm dhcp_snooping.db $ python create_sqlite_ver3.py Creating schema... Done Inserting DHCP Snooping data ``` Let’s check. In case the file already exists but the data is not written: ``` $ rm dhcp_snooping.db $ python create_sqlite_ver1.py Creating schema... Done $ python create_sqlite_ver3.py Database exists, assume dhcp table does, too. Inserting DHCP Snooping data ``` If both DB and data are exist: ``` $ python create_sqlite_ver3.py Database exists, assume dhcp table does, too. Inserting DHCP Snooping data Error occurred: UNIQUE constraint failed: dhcp.mac Error occurred: UNIQUE constraint failed: dhcp.mac Error occurred: UNIQUE constraint failed: dhcp.mac Error occurred: UNIQUE constraint failed: dhcp.mac ``` Now we make a separate script that sends queries to database and displays results. It should: expect parameters from user: parameter name * parameter value * provide normal output on request File get_data_ver1.py: key, value = sys.argv[1:] keys = ['mac', 'ip', 'vlan', 'interface'] keys.remove(key) #Allows to further access data in columns by column name conn.row_factory = sqlite3.Row query = 'select * from dhcp where {} = ?'.format(key) result = conn.execute(query, (value, )) for row in result: for k in keys: print('{:12}: {}'.format(k, row[k])) print('-' * 40) ``` key, value are read from arguments that passed to script selected key is removed from keys list. Thus, only parameters that you want to display are left in the list * connecting to DB ``` conn.row_factory = sqlite3.Row ``` - allows further access data in column based on column names * Select rows from database where key is equal to specified value in SQL the values can be set by a question mark but you cannot give a column name. Therefore, the column name is substituted by row formatting and the value by SQL tool. * Pay attention to `(value,)` - tuple with one element is passed * The resulting information is displayed to standard output stream: iterate over the results obtained and show only those fields that are in keys list Let’s check the script. Show host parameters with IP 10.1.10.2: ``` $ python get_data_ver1.py ip 10.1.10.2 Show hosts in VLAN 10: ``` $ python get_data_ver1.py vlan 10 The second version of the script to get data with minor improvements: Instead of rows formatting, a dictionary that contains queries corresponding to each key is used. * Checking the key that was selected * Method `keys` is used to get all columns that match the query File get_data_ver2.py: query_dict = { 'vlan': 'select mac, ip, interface from dhcp where vlan = ?', 'mac': 'select vlan, ip, interface from dhcp where mac = ?', 'ip': 'select vlan, mac, interface from dhcp where ip = ?', 'interface': 'select vlan, mac, ip from dhcp where interface = ?' } key, value = sys.argv[1:] keys = query_dict.keys() if not key in keys: print('Enter key from {}'.format(', '.join(keys))) else: conn = sqlite3.connect(db_filename) conn.row_factory = sqlite3.Row query = query_dict[key] result = conn.execute(query, (value, )) for row in result: for row_name in row.keys(): print('{:12}: {}'.format(row_name, row[row_name])) print('-' * 40) ``` There are several drawbacks to this script: does not check number of arguments that are passed to the script * It would be good to collect information from different switches. To do this, you should add a field that indicates on which switch the entry was found In addition, a lot of work needs to be done in the script that creates database and writes the data. All improvements will be done in tasks of this section. Further reading# Documentation: SQLite Tutorial - SQLite detailed description Module documentation sqlite3 sqlite3 на сайте PyMOTW Articles: A thorough guide to SQLite database operations in Python Date: 2019-03-08 Categories: Tags: ## Task 25.1# You need to create two scripts: create_db.py * add_data.py create_db.py - this script should contain the functionality for creating a database: check for the presence of a database file * if the file does not exist, according to the description of the database schema in the dhcp_snooping_schema.sql file, the database must be created * the name of the database file is dhcp_snooping.db The database should contain two tables (the schema is described in the dhcp_snooping_schema.sql file): switches - it contains data about switches * dhcp - information obtained from the output of sh ip dhcp snooping binding is stored here An example of script execution when there is no dhcp_snooping.db file: After creating the file: add_data.py script adds data to the database. This script should add data from sh ip dhcp snooping binding output and switch information Accordingly, there should be two parts in the add_data.py file: information about switches is added to the switches table. Switch data are in the switches.yml file * information based on the output of sh ip dhcp snooping binding is added to the dhcp table output from three switches in files: files sw1_dhcp_snooping.txt, sw2_dhcp_snooping.txt, sw3_dhcp_snooping.txt * since the dhcp table has changed, and now there is a switch field, it must also be filled. The switch name is derived from the data file name An example of script execution when the database has not yet been created: ``` $ python add_data.py The database does not exist. Before adding data, you need to create it ``` An example of executing the script for the first time after creating the database: ``` $ python add_data.py Adding data to the switches table... Add data to dhcp table... ``` An example of script execution after the data has been added to the table (the order of adding data can be arbitrary, but messages must output similarly to the output below): ``` $ python add_data.py Adding data to the switches table... While adding data: ('sw1', 'London, 21 New Globe Walk') An error occurred: UNIQUE constraint failed: switches.hostname While adding data: ('sw2', 'London, 21 New Globe Walk') An error occurred: UNIQUE constraint failed: switches.hostname While adding data: ('sw3', 'London, 21 New Globe Walk') An error occurred: UNIQUE constraint failed: switches.hostname Adding data to the dhcp table... While adding data: ('00:09:BB:3D:D6:58', '10.1.10.2', '10', 'FastEthernet0/1', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:04:A3:3E:5B:69', '10.1.5.2', '5', 'FastEthernet0/10', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:05:B3:7E:9B:60', '10.1.5.4', '5', 'FastEthernet0/9', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:07:BC:3F:A6:50', '10.1.10.6', '10', 'FastEthernet0/3', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:09:BC:3F:A6:50', '192.168.100.100', '1', 'FastEthernet0/7', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:E9:BC:3F:A6:50', '100.1.1.6', '3', 'FastEthernet0/20', 'sw3') An error occurred: UNIQUE constraint failed: dhcp.mac ... ``` At this stage, both scripts are called with no arguments. ## Task 25.2# In this task, you need to create the get_data.py script. The script can be passed arguments and, depending on the arguments, you need to display different information. If the script is called: with no arguments, print the entire contents of the dhcp table * with two arguments, display information from the dhcp table that matches the field and value * with any other number of arguments, print a message that the script only supports two or zero arguments The database file can be copied from task 25.1. Examples of output for different numbers and values of arguments: Information about devices with the following parameters: vlan 10 ----------------- ---------- -- --------------- --- 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 sw1 00:07:BC:3F:A6:50 10.1.10.6 10 FastEthernet0/3 sw1 00:A9:BB:3D:D6:58 10.1.10.20 10 FastEthernet0/7 sw2 ----------------- ---------- -- --------------- --- $ python get_data.py ip 10.1.10.2 Information about devices with the following parameters: ip 10.1.10.2 ----------------- --------- -- --------------- --- 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 sw1 ----------------- --------- -- --------------- --- $ python get_data.py vln 10 This parameter is not supported. Valid parameter values: mac, ip, vlan, interface, switch $ python get_data.py ip vlan 10 Please enter two or zero arguments ``` ## Task 25.3# In previous tasks, information was added to an empty database. In this task, the script should work correctly even in a situation where the database already contains information. Copy the add_data.py script from task 25.1 and try running it again on the existing database. The output should be like this: ``` $ python add_data.py Adding data to the switches table... While adding data: ('sw1', 'London, 21 New Globe Walk') An error occurred: UNIQUE constraint failed: switches.hostname While adding data: ('sw2', 'London, 21 New Globe Walk') An error occurred: UNIQUE constraint failed: switches.hostname While adding data: ('sw3', 'London, 21 New Globe Walk') An error occurred: UNIQUE constraint failed: switches.hostname Adding data to the dhcp table... While adding data: ('00:09:BB:3D:D6:58', '10.1.10.2', '10', 'FastEthernet0/1', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:04:A3:3E:5B:69', '10.1.5.2', '5', 'FastEthernet0/10', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:05:B3:7E:9B:60', '10.1.5.4', '5', 'FastEthernet0/9', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:07:BC:3F:A6:50', '10.1.10.6', '10', 'FastEthernet0/3', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac While adding data: ('00:09:BC:3F:A6:50', '192.168.100.100', '1', 'FastEthernet0/7', 'sw1') An error occurred: UNIQUE constraint failed: dhcp.mac ... (the command output is abbreviated) ``` When creating the database schema, it was explicitly stated that the MAC address field must be unique. Therefore, when adding an entry with the same MAC address, an exception (error) is raised. Task 25.1 handles the exception and writes a message to stdout. In this task, it is assumed that information is periodically read from the switches and written to files. After that, the information from the files must be transferred to the database. At the same time, there may be changes in the new data: MAC disappeared, MAC switched to another port/vlan, a new MAC appeared, etc. In this task, in the dhcp table, you need to create a new field, active, which will indicate whether the record is up-to-date. The new database schema is located in the dhcp_snooping_schema.sql file. The active field can have the following values: 0 - means False. Used to mark an entry as inactive * 1 - True. Used to indicate that a record is active Every time information from files with DHCP snooping output is added again, all existing entries (for this switch) must be marked as inactive (active = 0). You can then update the information and mark the new records as active (active = 1). Thus, the old records will remain in the database for MAC addresses that are currently inactive, and updated information for active addresses will appear. For example, the dhcp table contains the following entries: ``` mac ip vlan interface switch active ----------------- ---------- ---------- ---------------- ---------- ---------- 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 sw1 1 00:04:A3:3E:5B:69 10.1.5.2 5 FastEthernet0/10 sw1 1 00:05:B3:7E:9B:60 10.1.5.4 5 FastEthernet0/9 sw1 1 00:07:BC:3F:A6:50 10.1.10.6 10 FastEthernet0/3 sw1 1 00:09:BC:3F:A6:50 192.168.10 1 FastEthernet0/7 sw1 1 ``` And you need to add the following information from the file: After adding the data, the table should look like this: ``` mac ip vlan interface switch active ----------------- --------------- ---------- --------------- ---------- ---------- 00:09:BC:3F:A6:50 192.168.100.100 1 FastEthernet0/7 sw1 0 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 sw1 1 00:04:A3:3E:5B:69 10.1.15.2 15 FastEthernet0/15 sw1 1 00:05:B3:7E:9B:60 10.1.5.4 5 FastEthernet0/9 sw1 1 00:07:BC:3F:A6:50 10.1.10.6 10 FastEthernet0/5 sw1 1 ``` The new information should overwrite the previous one: MAC 00:04:A3:3E:5B:69 went to a different port and got into a different interface and got a different IP address * MAC 00:07:BC:3F:A6:50 switched to another port If some MAC address is not in the new file, it must be left in the database with the value active = 0: MAC addresses 00:09:BC:3F:A6:50 not in new information (turned off the computer) Modify the add_data.py script so that the new conditions are met and the active field is populated. To check task and operation of a new field, first add information to the database from files sw*_dhcp_snooping.txt, and then add information from files new_data/sw*_dhcp_snooping.txt. The data should look like this (the lines can be in any order) ``` ----------------- --------------- -- ---------------- --- - 00:09:BC:3F:A6:50 192.168.100.100 1 FastEthernet0/7 sw1 0 00:C5:B3:7E:9B:60 10.1.5.40 5 FastEthernet0/9 sw2 0 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 sw1 1 00:04:A3:3E:5B:69 10.1.15.2 15 FastEthernet0/15 sw1 1 00:05:B3:7E:9B:60 10.1.5.4 5 FastEthernet0/9 sw1 1 00:07:BC:3F:A6:50 10.1.10.6 10 FastEthernet0/5 sw1 1 00:E9:BC:3F:A6:50 100.1.1.6 3 FastEthernet0/20 sw3 1 00:E9:22:11:A6:50 100.1.1.7 3 FastEthernet0/21 sw3 1 00:A9:BB:3D:D6:58 10.1.10.20 10 FastEthernet0/7 sw2 1 00:B4:A3:3E:5B:69 10.1.5.20 5 FastEthernet0/5 sw2 1 00:A9:BC:3F:A6:50 10.1.10.65 20 FastEthernet0/2 sw2 1 00:A9:33:44:A6:50 10.1.10.77 10 FastEthernet0/4 sw2 1 ----------------- --------------- -- ---------------- --- - ``` ## Task 25.4# Copy file get_data.py from task 25.2. Add to the script support for the active column, which we added in task 25.3. Now, when requesting information, active records should be displayed first, and then, inactive ones. If there are no inactive records, do not display the “Inactive records” header. ``` $ python get_data.py The dhcp table has the following entries: Active entries: ----------------- ---------- -- ---------------- --- - 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 sw1 1 00:04:A3:3E:5B:69 10.1.15.2 15 FastEthernet0/15 sw1 1 00:05:B3:7E:9B:60 10.1.5.4 5 FastEthernet0/9 sw1 1 00:07:BC:3F:A6:50 10.1.10.6 10 FastEthernet0/5 sw1 1 00:E9:BC:3F:A6:50 100.1.1.6 3 FastEthernet0/20 sw3 1 00:E9:22:11:A6:50 100.1.1.7 3 FastEthernet0/21 sw3 1 00:A9:BB:3D:D6:58 10.1.10.20 10 FastEthernet0/7 sw2 1 00:B4:A3:3E:5B:69 10.1.5.20 5 FastEthernet0/5 sw2 1 00:A9:BC:3F:A6:50 10.1.10.65 20 FastEthernet0/2 sw2 1 00:A9:33:44:A6:50 10.1.10.77 10 FastEthernet0/4 sw2 1 ----------------- ---------- -- ---------------- --- - Inactive entries: ----------------- --------------- - --------------- --- - 00:09:BC:3F:A6:50 192.168.100.100 1 FastEthernet0/7 sw1 0 00:C5:B3:7E:9B:60 10.1.5.40 5 FastEthernet0/9 sw2 0 ----------------- --------------- - --------------- --- - $ python get_data.py vlan 5 Active entries: ----------------- --------- - --------------- --- - 00:05:B3:7E:9B:60 10.1.5.4 5 FastEthernet0/9 sw1 1 00:B4:A3:3E:5B:69 10.1.5.20 5 FastEthernet0/5 sw2 1 ----------------- --------- - --------------- --- - Inactive entries: ----------------- --------- - --------------- --- - 00:C5:B3:7E:9B:60 10.1.5.40 5 FastEthernet0/9 sw2 0 ----------------- --------- - --------------- --- - Active entries: ----------------- ---------- -- --------------- --- - 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 sw1 1 00:07:BC:3F:A6:50 10.1.10.6 10 FastEthernet0/5 sw1 1 00:A9:BB:3D:D6:58 10.1.10.20 10 FastEthernet0/7 sw2 1 00:A9:33:44:A6:50 10.1.10.77 10 FastEthernet0/4 sw2 1 ----------------- ---------- -- --------------- --- - ``` ## Task 25.5# After completing tasks 25.1 - 25.5, information about inactive records remains in the database. And, if some MAC address did not appear in new records, the record with it may remain in the database forever. And while it can be useful to see where the MAC address was last located, it is not very useful to keep this information permanently. Instead, you can delete a record if, for example, it has been stored in the database for more than a month. In order to be able to delete records by date, you need to enter a new field in which the last time the record was added will be recorded. The new field is called last_active and must contain a string in the format: YYYY-MM-DD HH:MM:SS. In this task you need to: change the dhcp table accordingly and add a new field. The table can be changed from cli sqlite, but the dhcp_snooping_schema.sql file must also be changed * modify the add_data.py script to add time to each entry You can get a string with time and date in the specified format using the datetime function in an SQL query. The syntax is as follows: ``` sqlite> insert into dhcp (mac, ip, vlan, interface, switch, active, last_active) ...> values ('00:09:BC:3F:A6:50', '192.168.100.100', '1', 'FastEthernet0/7', 'sw1', '0', datetime('now')); ``` That is, instead of the value that is written to the database, you must specify datetime(‘now’). After this command, the following entry will appear in the database: ``` mac ip vlan interface switch active last_active ----------------- --------------- ---- --------------- ------ ------ ------------------- 00:09:BC:3F:A6:50 192.168.100.100 1 FastEthernet0/7 sw1 0 2021-03-09 07:46:31 ``` ## Task 25.5a# After completing task 25.5, the dhcp table has a new last_active field. Update the add_data.py script so that it removes all records that were active more than 7 days ago. In order to get such records, you can manually update the last_active field in some records and set the time to 7 or more days. The task file shows an example of working with objects of the datetime module. Shows how to get the date 7 days ago. It will be necessary to compare the last_active time with this date. Please note that date strings that are written to the database can be compared with each other. now = datetime.today().replace(microsecond=0) week_ago = now - timedelta(days=7) #print(now) #print(week_ago) #print(now > week_ago) #print(str(now) > str(week_ago)) ``` ## Task 25.6# This task contains the parse_dhcp_snooping.py file. You cannot change anything in the parse_dhcp_snooping.py file. The file creates several functions and describes the command line arguments that the file takes. There is support for arguments to perform all the actions that, in the previous tasks, were performed in the files create_db.py, add_data.py and get_data.py. The parse_dhcp_snooping.py file contains this line: import parse_dhcp_snooping_functions as pds And the goal of this task is to create all the necessary functions in the parse_dhcp_snooping_functions.py file based on the information in the parse_dhcp_snooping.py file. From the parse_dhcp_snooping.py file, you need to decide: what functions should be in the parse_dhcp_snooping_functions.py file * what parameters to create in these functions It is necessary to create the corresponding functions and transfer to them the functionality that is described in the previous tasks. All the necessary information is present in the create, add, get functions, in the parse_dhcp_snooping.py file. In principle, to complete the task, it is not necessary to understand the argparse module, but, you can read about it in this section To make it easier to get started, try creating the required functions in parse_dhcp_snooping_functions.py and just print the function arguments. Then, you can create functions that request information from the database (the database can be copied from previous jobs). You can create any helper functions in parse_dhcp_snooping_functions.py, not just those called from parse_dhcp_snooping.py. Check all operations: creating a database * adding information about switches * adding information based on the output of sh ip dhcp snooping binding from files * selection of information from the database (by parameter and all information) To make it easier to understand what the script call will look like, here are some examples. The examples show the option when the database has active and last_active fields, but you can also use the option without these fields. optional arguments: -h, --help show this help message and exit --db DB_FILE database name -k {mac,ip,vlan,interface,switch} parameter for searching records -v VALUE parameter value -a show all database content optional arguments: -h, --help show this help message and exit --db DB_FILE database name -s if the flag is set, add switch data, otherwise add DHCP records $ python parse_dhcp_snooping.py create_db Creating a dhcp_snooping.db database with dhcp_snooping_schema.sql schema Creating database... $ python parse_dhcp_snooping.py add sw[1-3]_dhcp_snooping.txt Adding information from files sw1_dhcp_snooping.txt, sw2_dhcp_snooping.txt, sw3_dhcp_snooping.txt Adding data on DHCP records to dhcp_snooping.db $ python parse_dhcp_snooping.py add -s switches.yml Adding switch data $ python parse_dhcp_snooping.py get The dhcp table has the following entries: $ python parse_dhcp_snooping.py get -k vlan -v 10 Data from the database: dhcp_snooping.db Information about devices with the following parameters: vlan 10 ----------------- ---------- -- --------------- --- - ------------------- 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 sw1 1 2019-03-08 16:47:52 00:07:BC:3F:A6:50 10.1.10.6 10 FastEthernet0/3 sw1 1 2019-03-08 16:47:52 00:A9:BB:3D:D6:58 10.1.10.20 10 FastEthernet0/7 sw2 1 2019-03-08 16:47:52 ----------------- ---------- -- --------------- --- - ------------------- $ python parse_dhcp_snooping.py get -k vln -v 10 usage: parse_dhcp_snooping.py get [-h] [--db DB_FILE] [-k {mac,ip,vlan,interface,switch}] [-v VALUE] [-a] parse_dhcp_snooping.py get: error: argument -k: invalid choice: 'vln' (choose from 'mac', 'ip', 'vlan', 'interface', 'switch') ``` Starting with “4. Python Data Types”, automated tests are used to validate tasks. They help to check whether everything matches the task, and also give feedback on what does not correspond to the task. As a rule, after the first period of adaptation to tests, it becomes easier to do tasks with tests. In addition to the positive points listed above, in the tests you can also see what the final result is needed: to clarify the data structure and little things that can affect the result. To run the tests, `pyneng.py` is used - a script that is located in the job repository. ## Where to solve tasks# Tasks must be done in prepared files. For example, section 04_data_structures contains task 4.3. Open the exercises/04_data_structures/task_4_3.py file and write code for the task directly in this file after the task description. This is important because tests are tied to the fact that solution for the tasks is written in specific files and in a specific directory structure. In addition to the fact that the tasks must be solved in the prepared files, be sure to copy the entire exercises directory (or even better, the entire pyneng-examples-exercises-en repository), since tests depend on files in the exercises directory, not only on files in the specific tasks directory. ## Installing the pyneng script# First, you need to install it so that you don’t have to write `python pyneng.py` every time. To install the script, the pyneng.py and setup.py files must be in the repository. These files are located in the root of the repository. You need to go to your repository, for example (write the name of your repository): `cd my_repo/` Then, inside the repository, give the command `pip install .` This will install the module and make it possible to call it in any directory using the word pyneng. ## pyneng utility# Stages of work with tasks: Completion of tasks * Checking that the task is working as needed `python task_4_2.py` or running the script in the editor/IDE * Checking assignments with tests `pyneng 1-5` * If the tests pass, look at the solutions `pyneng 1-5 -a` Note The second step is very important because it is much easier to find syntax errors and similar problems with the script at this stage than when running the code through a test in step 3. The script makes it easier to run tests, since you do not need to specify any parameters, by default the output is set to verbose and runs with the pytest-clarity plugin, which improves diff when the solution is different from correct result. Also, some things are hidden, for example, the warning that pytest shows, so as not to distract from the task. Tests can still be run with pytest if you are used to it or have used it before. The pyneng script is just a wrapper around running pytest. The second part of the script’s work is copying the answers to the tasks. This part is done for convenience, so that you do not have to look for answers and is made in such a way that first the task must pass the test and only after that `pyneng -a` will work and show the answers (copy them to the current directory). To copy responses, the script clones the asnwers repository into the user’s home directory, copies the task(s) answer, and deletes the repository with answers. ## Checking tasks with tests# After completing the task, it must be checked using tests. To run the tests, you need to call pyneng in the task directory. For example, if you are doing section 4 of the tasks, you need to run pyneng from the exercises/04_data_structures directory Testing all tasks of the current section: `pyneng` Running tests for task 4.1: `pyneng 1` Running tests for task 4.1, 4.2, 4.3: `pyneng 1-3` If there are tasks with letters, for example, in section 7, you can run it in such a way to start checking for tasks 7.2a, 7.2b (you must be in the 07_files directory): `pyneng 2a-b` or so to run all 7.2x tasks with and without letters: `pyneng 2*` ## How to get answers# If the tasks pass the tests, you can see the answers to the tasks. To do this, add `-a` to the previous versions of the command. Such a call means running tests for tasks 1 and 2 and copying the answers if the tests passed: `pyneng 1-2 -a` For the specified tasks, tests will run, and for those tasks that passed the tests, the answers will be copied to the answer_task_x.py files in the current directory. ## pyneng output# ### Warning# At the end of the test output, “1 warning” is often written. This can be ignored, warnings are mainly related to the operation of some modules and are hidden so as not to distract from the tasks. ### Tests passed# ### Test failed# When some tests fail, the output shows the difference between what the output should look like and what output was received. The differences are shown as Left and Right, unfortunately there is no such thing that the correct option is highlighted in green, and the wrong one is highlighted in red, you need to look at the situation. Every time you display differences, there is a line in front of them like this: ``` assert correct_stdout in out.strip() ``` another example: ``` return_value == correct_return_value ``` Starting with section “9. Functions” automatic tests are used to check tasks. They help to check that everything conforms to the task and also provide feedback on what is not up to task. Usually, after the first period of adaptation it becomes easier to do tasks with tests. In addition to above-mentioned positive features, tests can also show what result is expected: clarify structure of data and details that may affect the result. Pytest is used to run tests - a framework for writing tests. First, you need to install pytest and pyyaml: ``` pip install pytest pip install pyyaml ``` Although you don’t have to write tests code but to understand it you should look at an example of a test. For example, there is the following code with `check_ip` function: Function `check_ip` checks whether the argument given to it is an IP address. An example of calling a function with different arguments: ``` In [1]: import ipaddress ...: ...: ...: def check_ip(ip): ...: try: ...: ipaddress.ip_address(ip) ...: return True ...: except ValueError as err: ...: return False ...: In [2]: check_ip('10.1.1.1') Out[2]: True In [3]: check_ip('10.1.') Out[3]: False In [4]: check_ip('a.a.a.a') Out[4]: False In [5]: check_ip('500.1.1.1') Out[5]: False ``` Now it is necessary to write a test for `check_ip` function. Test must check that function returns True when correct address is passed and False when wrong argument is passed. To simplify task, test can be written in the same file. In pytest, test can be a normal function with a name that starts with `test_` . Inside function you have to write conditions that are checked. In pytest this is done with `assert` . ## assert# `assert` does nothing if expression is True and generates an exception if expression is False: ``` In [6]: assert 5 > 1 In [7]: a = 4 In [8]: assert a in [1,2,3,4] In [9]: assert a not in [1,2,3,4] --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-9-1956288e2d8e> in <module> ----> 1 assert a not in [1,2,3,4] AssertionError: In [10]: assert 5 < 1 --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-10-b224d03aab2f> in <module> ----> 1 assert 5 < 1 AssertionError: ``` After `assert` and expression you can write a message. If there is a message, it is displayed in exception: ``` In [11]: assert a not in [1,2,3,4], "a not in a list" --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-11-7a8f87272a54> in <module> ----> 1 assert a not in [1,2,3,4], "a not in a list" AssertionError: a not in a list ``` ## Test example# pytest uses `assert` to specify which conditions must be met in order for test to be considered passed. In pytest, you can write test as a normal function but function name must start with `test_` . Below is `test_check_ip` test which verify `check_ip` function by passing two values to it: correct address and wrong one, and after each check the message is written: Code is written in check_ip_functions.py. Now you have to figure out how to call tests. The easiest option is to write `pytest` word. In this case, pytest will automatically detect tests in the current directory. However, pytest has certain rules, not only by name of function but also by name of test files - file names should also start with `test_` . If rules are respected, pytest will automatically find tests, if not - you have to specify a test file. In the case of example above, you have to call a command: check_ip_functions.py . [100%] ======================= 1 passed in 0.02 seconds ======================= ``` By default if tests pass, each test (test_check_ip function) is marked with a dot. Since in this case there is only one test - `test_check_ip` function, there is a dot after name check_ip_functions.py and it is also written below that 1 test has passed. Now, suppose the function does not work correctly and always returns False (write return False at the beginning of function). In this case, test execution will look like: check_ip_functions.py F [100%] =============================== FAILURES =============================== ____________________________ test_check_ip _____________________________ def test_check_ip(): > assert check_ip('10.1.1.1') == True, 'If IP is correct, the fucntion returns True' E AssertionError: If IP is correct, the fucntion returns True E assert False == True E + where False = check_ip('10.1.1.1') check_ip_functions.py:14: AssertionError ======================= 1 failed in 0.06 seconds ======================= ``` If test fails, pytest displays more information and shows where things went wrong. In this case, after execution of ``` assert check_ip('10.1.1.1') == True ``` string, the expression did not return True result, so an exception was generated. Below, pytest shows what it has compared: `assert False == True` and specifies that False is `check_ip('10.1.1.1')` . Looking at the output, one suspects that something is wrong with `check_ip` function because it returns False to correct address. Most tests are written in separate files. For this example, test is only one but it is still in a separate file. File test_check_ip_function.py: ``` from check_ip_functions import check_ip File check_ip_functions.py: In that case, test can be run without specifying a file: ``` $ pytest ================= test session starts ======================== platform linux -- Python 3.6.3, pytest-4.6.2, py-1.5.2, pluggy-0.12.0 rootdir: /home/vagrant/repos/general/pyneng.github.io/code_examples/pytest collected 1 item test_check_ip_function.py . [100%] ================= 1 passed in 0.02 seconds ==================== ``` Pytest in course is primarily used for self-tests of tasks. However, this test is not optional - task is considered done when it complies with all specified points and passes tests. For my part, I also check tasks with automatic tests and then look at the code, write comments if necessary and show a solution option. At first, tests require effort but through a couple of sections they will help solve tasks. Tests that are written for course are not a benchmark or best practice of test writing. Tests are written with maximum emphasis on clarity and many things are done differently. When solving tasks especially when there are doubts about the final format of data to be obtained, it is better to look into test. For example, if task_9_1.py the corresponding test will be in test/test_task_9_1.py. Test example tests/test_task_9_1.py: ``` import pytest import task_9_1 import sys sys.path.append('..') from common_functions import check_function_exists, check_function_params # Checks is function generate_access_config is created in task task_9_1 def test_function_created(): check_function_exists(task_9_1, 'generate_access_config') # Cheks fucntion parameters def test_function_params(): check_function_params(function=task_9_1.generate_access_config, param_count=2, param_names=['intf_vlan_mapping', 'access_template']) def test_function_return_value(): access_vlans_mapping = { 'FastEthernet0/12': 10, 'FastEthernet0/14': 11, 'FastEthernet0/16': 17 } template_access_mode = [ 'switchport mode access', 'switchport access vlan', 'switchport nonegotiate', 'spanning-tree portfast', 'spanning-tree bpduguard enable' ] correct_return_value = ['interface FastEthernet0/12', 'switchport mode access', 'switchport access vlan 10', 'switchport nonegotiate', 'spanning-tree portfast', 'spanning-tree bpduguard enable', 'interface FastEthernet0/14', 'switchport mode access', 'switchport access vlan 11', 'switchport nonegotiate', 'spanning-tree portfast', 'spanning-tree bpduguard enable', 'interface FastEthernet0/16', 'switchport mode access', 'switchport access vlan 17', 'switchport nonegotiate', 'spanning-tree portfast', 'spanning-tree bpduguard enable'] return_value = task_9_1.generate_access_config(access_vlans_mapping, template_access_mode) assert return_value != None, "Functon returns nothing" assert type(return_value) == list, "Function has to return a list" assert return_value == correct_return_value, "Function return wrong value" ``` Note correct_return_value variable - this variable contains the resulting list that should return generate_access_config function. Therefore for example, if question has arisen of whether to add spaces before commands or a new line at the end, you can look at what the result requires. Also check your output against the output in variable_return_value. ## How to run tests for tasks verification# The most important thing is where to run tests: all tests must be run from a directory with section tasks, not from a test directory. For example, in section 09_functions such a directory structure with tasks: ``` [~/repos/pyneng-7/pyneng-online-may-aug-2019/exercises/09_functions] vagrant: [master|✔] $ tree . ├── config_r1.txt ├── config_sw1.txt ├── config_sw2.txt ├── conftest.py ├── task_9_1a.py ├── task_9_1.py ├── task_9_2a.py ├── task_9_2.py ├── task_9_3a.py ├── task_9_3.py ├── task_9_4.py └── tests ├── test_task_9_1a.py ├── test_task_9_1.py ├── test_task_9_2a.py ├── test_task_9_2.py ├── test_task_9_3a.py ├── test_task_9_3.py └── test_task_9_4.py ``` In this case, you have to run tests from 09_functions directory: ``` [~/repos/pyneng-7/pyneng-online-may-aug-2019/exercises/09_functions] vagrant: [master|✔] $ pytest tests/test_task_9_1.py ========================= test session starts ========================== platform linux -- Python 3.7.3, pytest-4.6.2, py-1.5.2, pluggy-0.12.0 rootdir: /home/vagrant/repos/pyneng-7/pyneng-online-may-aug-2019/exercises/09_functions collected 3 items tests/test_task_9_1.py ... [100%] ... If you run tests from tests directory, errors will appear. ``` ## conftest.py# In addition to test directory there is a conftest.py file - special file in which you can write functions (more precisely fixtures) common to different tests. For example, this file contains functions that connect via SSH/Telnet to equipment. ## Useful commands# Run one test: ``` $ pytest tests/test_task_9_1.py ``` Run one test with more detailed output (shows diff between data in test and what is received from function): ``` $ pytest tests/test_task_9_1.py -vv ``` Start all tests of one section: ``` [~/repos/pyneng-7/pyneng-online-may-aug-2019/exercises/09_functions] vagrant: [master|✔] $ pytest ======================= test session starts ======================== platform linux -- Python 3.6.3, pytest-4.6.2, py-1.5.2, pluggy-0.12.0 rootdir: /home/vagrant/repos/pyneng-7/pyneng-online-may-aug-2019/exercises/09_functions collected 21 items tests/test_task_9_1.py ..F [ 14%] tests/test_task_9_1a.py FFF [ 28%] tests/test_task_9_2.py FFF [ 42%] tests/test_task_9_2a.py FFF [ 57%] tests/test_task_9_3.py FFF [ 71%] tests/test_task_9_3a.py FFF [ 85%] tests/test_task_9_4.py FFF [100%] ... ``` Starts all tests of the same section with error messages displayed in one line: `$ pytest --tb=line` `argparse` is a module for handling command line arguments. Examples of what a module does: create arguments and options with which script can be called * specify argument types, default values * indicate which actions correspond to arguments * call functions when argument is specified * show messages with hints of script usage `argparse` is not the only module for handling command line arguments. And not even the only one in standard library. This book covers only `argparse` , but in addition it is worth looking at modules that are not part of standard Python library. For example, click. Note A good article, compares different command line argument processing modules (covered argparse, click and docopt). Example of ping_function.py script: ``` import subprocess import argparse parser.add_argument('-a', action="store", dest="ip") parser.add_argument('-c', action="store", dest="count", default=2, type=int) rc, message = ping_ip(args.ip, args.count) print(message) ``` Creation of a parser: ``` parser = argparse.ArgumentParser(description='Ping script') ``` Adding arguments: ``` parser.add_argument('-a', action="store", dest="ip") ``` rgument that is passed after `-a` option is saved to variable `ip` * ``` parser.add_argument('-c', action="store", dest="count", default=2, type=int) ``` argument that is passed after `-c` option will be saved to variable `count` , but will be converted to a number first. If no argument was specified, the default is 2 String is specified after all arguments have been defined. After running it, variable `args` contains all arguments that were passed to the script. They can be accessed using `args.ip` syntax. Let’s try a script with different arguments. If both arguments are passed: ``` $ python ping_function.py -a 8.8.8.8 -c 5 Namespace(count=5, ip='8.8.8.8') PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: icmp_seq=0 ttl=48 time=48.673 ms 64 bytes from 8.8.8.8: icmp_seq=1 ttl=48 time=49.902 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=48 time=48.696 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=48 time=50.040 ms 64 bytes from 8.8.8.8: icmp_seq=4 ttl=48 time=48.831 ms Namespace is an object that returns parse_args() method ``` Pass only IP address: ``` $ python ping_function.py -a 8.8.8.8 Namespace(count=2, ip='8.8.8.8') PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: icmp_seq=0 ttl=48 time=48.563 ms 64 bytes from 8.8.8.8: icmp_seq=1 ttl=48 time=49.616 ms Call script without arguments: ``` $ python ping_function.py Namespace(count=2, ip=None) Traceback (most recent call last): File "ping_function.py", line 31, in <module> rc, message = ping_ip( args.ip, args.count ) File "ping_function.py", line 16, in ping_ip stderr=temp) File "/usr/local/lib/python3.6/subprocess.py", line 336, in check_output ````kwargs).stdout File "/usr/local/lib/python3.6/subprocess.py", line 403, in run with Popen(*popenargs, ````kwargs) as process: File "/usr/local/lib/python3.6/subprocess.py", line 707, in __init__ restore_signals, start_new_session) File "/usr/local/lib/python3.6/subprocess.py", line 1260, in _execute_child restore_signals, start_new_session, preexec_fn) TypeError: expected str, bytes or os.PathLike object, not NoneType ``` If function was called without arguments when `argparse` is not used, an error would occur that not all arguments are specified. Because of `argparse` the argument is actually passed, but it has `None` value. You can see this in ``` Namespace(count=2, ip=None) ``` string. In such a script the IP address must be specified at all times. And in `argparse` you can specify that argument is mandatory. To do this, change `-a` option: add `required=True` at the end: ``` parser.add_argument('-a', action="store", dest="ip", required=True) ``` Now, if you call a script without arguments, the output is: ``` $ python ping_function.py usage: ping_function.py [-h] -a IP [-c COUNT] ping_function.py: error: the following arguments are required: -a ``` Now you see a clear message that you need to specify a mandatory argument and a usage hint. Also, thanks to `argparse` , `help` is available: ``` $ python ping_function.py -h usage: ping_function.py [-h] -a IP [-c COUNT] optional arguments: -h, --help show this help message and exit -a IP -c COUNT ``` Note that in message all options are in `optional arguments` section. `argparse` itself determines that options are specified because they start with `-` and only one letter in name. Set IP address as a positional argument (ping_function_ver2.py file): ``` import subprocess from tempfile import TemporaryFile import argparse parser.add_argument('host', action="store", help="IP or name to ping") parser.add_argument('-c', action="store", dest="count", default=2, type=int, help="Number of packets") rc, message = ping_ip( args.host, args.count ) print(message) ``` Now instead of giving `-a` option you can simply pass IP address. It will be automatically saved in `host` variable. And it’s automatically considered as a mandatory. Тhat is, it is no longer necessary to specify `required=True` and `dest="ip"` . In addition, script specifies messages that will be displayed when you call `help` . Now script call looks like this: ``` $ python ping_function_ver2.py 8.8.8.8 -c 2 Namespace(host='8.8.8.8', count=2) PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: icmp_seq=0 ttl=48 time=49.203 ms 64 bytes from 8.8.8.8: icmp_seq=1 ttl=48 time=51.764 ms `help` message: ``` $ python ping_function_ver2.py -h usage: ping_function_ver2.py [-h] [-c COUNT] host positional arguments: host IP or name to ping optional arguments: -h, --help show this help message and exit -c COUNT Number of packets ``` ## Nested parsers# Consider one of the methods to organize a more complex hierarchy of arguments. Note This example will show more features of `argparse` but they are not limited to that, so if you use `argparse` you should check module documentation or article on PyMOTW. File parse_dhcp_snooping.py: ``` # -*- coding: utf-8 -*- import argparse # Default values: DFLT_DB_NAME = 'dhcp_snooping.db' DFLT_DB_SCHEMA = 'dhcp_snooping_schema.sql' def create(args): print("Creating DB {} with DB schema {}".format((args.name, args.schema))) def add(args): if args.sw_true: print("Adding switch data to database") else: print("Reading info from file(s) \n{}".format(', '.join(args.filename))) print("\nAdding data to db {}".format(args.db_file)) def get(args): if args.key and args.value: print("Geting data from DB: {}".format(args.db_file)) print("Request data for host(s) with {} {}".format((args.key, args.value))) elif args.key or args.value: print("Please give two or zero args\n") print(show_subparser_help('get')) else: print("Showing {} content...".format(args.db_file)) parser = argparse.ArgumentParser() subparsers = parser.add_subparsers(title='subcommands', description='valid subcommands', help='description') add_parser = subparsers.add_parser('add', help='add data to db') add_parser.add_argument('filename', nargs='+', help='file(s) to add to db') add_parser.add_argument('--db', dest='db_file', default=DFLT_DB_NAME, help='db name') add_parser.add_argument('-s', dest='sw_true', action='store_true', help='add switch data if set, else add normal data') add_parser.set_defaults(func=add) get_parser = subparsers.add_parser('get', help='get data from db') get_parser.add_argument('--db', dest='db_file', default=DFLT_DB_NAME, help='db name') get_parser.add_argument('-k', dest="key", choices=['mac', 'ip', 'vlan', 'interface', 'switch'], help='host key (parameter) to search') get_parser.add_argument('-v', dest="value", help='value of key') get_parser.add_argument('-a', action='store_true', help='show db content') get_parser.set_defaults(func=get) Now not only a parser is created as in previous example, but also nested parsers. Nested parsers will be displayed as commands. In fact, they will be used as mandatory arguments. With help of nested parsers a hierarchy of arguments and options is created. Arguments that are added to nested parser will be available as arguments for this parser. For example, this part creates a nested `create_db` parser and adds `-n` option: ``` create_parser = subparsers.add_parser('create_db', help='create new db') create_parser.add_argument('-n', dest='name', default=DFLT_DB_NAME, help='db filename') ``` Syntax for creating nested parsers and adding arguments to them is the same: Method `add_argument` adds an argument. Here, syntax is exactly the same as without nested parsers. String ``` create_parser.set_defaults(func=create) ``` specifies that the `create` function will be called when calling the `create_parser` parser. Function `create` receives as an argument all arguments that have been passed. And within function you can access to necessary arguments: ``` def create(args): print("Creating DB {} with DB schema {}".format(args.name, args.schema)) ``` If you call `help` for this script, the output is: ``` $ python parse_dhcp_snooping.py -h usage: parse_dhcp_snooping.py [-h] {create_db,add,get} ... Note that each nested parser that is created in the script is displayed as a command in usage hint: ``` usage: parse_dhcp_snooping.py [-h] {create_db,add,get} ... ``` Each nested parser now has its own `help` : In addition to nested parsers, there are also several new features of `argparse` in this example. `metavar` # Parser `create_parser` uses a new argument - `metavar` : ``` create_parser.add_argument('-n', metavar='db-filename', dest='name', default=DFLT_DB_NAME, help='db filename') create_parser.add_argument('-s', dest='schema', default=DFLT_DB_SCHEMA, help='db schema filename') ``` Argument `metavar` allows you to specify argument name to show it in `usage` message and `help` : Look at the difference between `-n` and `-s` options: after `-n` option in both `usage` and `help` the name is specified in the `metavar` parameter * after `-s` option the name is specified to which value is saved `nargs` # Parser `add_parser` uses `nargs` : ``` add_parser.add_argument('filename', nargs='+', help='file(s) to add to db') ``` Parameter `nargs` allows to specify a certain number of elements that must be entered into this argument. In this case, all arguments that have been passed to the script after `filename` argument will be included in `nargs` list, but at least one argument must be passed. In this case, `help` message looks like: optional arguments: -h, --help show this help message and exit --db DB_FILE db name -s add switch data if set, else add normal data ``` If you pass several files, they’ll be in the list. And since `add` function simply displays file names, the output is: ``` $ python parse_dhcp_snooping.py add filename test1.txt test2.txt Reading info from file(s) filename, test1.txt, test2.txt `nargs` supports such values as: * `N` - - number of arguments should be specified. Arguments will be in list (even if only one is specified) * `?` - 0 or 1 argument * `*` - all arguments will be in list * `+` - all arguments will be in list, but at least one argument has to be passed `choices` # Parser `get_parser` uses `choices` : ``` get_parser.add_argument('-k', dest="key", choices=['mac', 'ip', 'vlan', 'interface', 'switch'], help='host key (parameter) to search') ``` For some arguments it is important that the value is selected only from certain options. In such cases you can specify `choices` . For this parser `help` looks like this: optional arguments: -h, --help show this help message and exit --db DB_FILE db name -k {mac,ip,vlan,interface,switch} host key (parameter) to search -v VALUE value of key -a show db content ``` And if you choose the wrong option: ``` $ python parse_dhcp_snooping.py get -k test usage: parse_dhcp_snooping.py get [-h] [--db DB_FILE] [-k {mac,ip,vlan,interface,switch}] [-v VALUE] [-a] parse_dhcp_snooping.py get: error: argument -k: invalid choice: 'test' (choose from 'mac', 'ip', 'vlan', 'interface', 'switch') ``` In this example it is important to specify allowed options that could be chosen because based on chosen option the SQL-query is generated. And thanks to `choices` there is no pissibility to specify parameter that is not allowed. ### Parser import# In parse_dhcp_snooping.py, the last two lines will only be executed if script has been called as a main script. Therefore, if you import a file these lines will not be called. Trying to import parser into another file (call_pds.py file): ``` from parse_dhcp_snooping import parser Call `help` message: ``` $ python call_pds.py -h usage: call_pds.py [-h] {create_db,add,get} ... Invoking the argument: ``` $ python call_pds.py add test.txt test2.txt Reading info from file(s) test.txt, test2.txt Everything works without a problem. ### Passing of arguments manually# The last feature of `argparse` is the ability to pass arguments manually. Arguments can be passed as a list when calling `parse_args` method (call_pds2.py file): ``` from parse_dhcp_snooping import parser, get args = parser.parse_args('add test.txt test2.txt'.split()) args.func(args) ``` It is necessary to use `split` method since `parse_args` method expects list of arguments. The result will be the same as if script was called with arguments: ``` $ python call_pds2.py Reading info from file(s) test.txt, test2.txt # String formatting with % operator# # String formatting with `%` operator# Example of `%` operator use: ``` In [2]: "interface FastEthernet0/%s" % '1' Out[2]: 'interface FastEthernet0/1' ``` Old string format syntax uses these symbols: * `%s` - string or any other object with a string type * `%d` - integer * `%f` - float Output data columns of equal width of 15 characters with right side alignment: In [4]: print("%15s %15s %15s" % (vlan, mac, intf)) 100 aabb.cc80.7000 Gi0/1 ``` Left side alignment: ``` In [6]: print("%-15s %-15s %-15s" % (vlan, mac, intf)) 100 aabb.cc80.7000 Gi0/1 ``` You can also use string formatting to influence the appearance of numbers. For example, you can specify how many digits to show after comma: ``` In [8]: print("%.3f" % (10.0/3)) 3.333 ``` String formatting still has many possibilities. Good examples and explanations of two string formatting options can be found here. Python has certain objects naming convention In general, it is better to adhere to this convention. However, if a particular library or module uses different convention, it is worth following the style used in them. Variable names should not overlap with operators and names of modules or other reserved values. Variable names are usually written entirely in large or small letters. It is better to stick to one of option within a script/module/package. If variables are constants for module, it is better to use names written in capital letters: ``` DB_NAME = 'dhcp_snooping.db' TESTING = True ``` For ordinary variables it is better to use lower case names: ``` db_name = 'dhcp_snooping.db' testing = True ``` ## Module and package names# Names of modules and packages are given in small letters. Modules can use underscores to make names more understandable. For packages it is better to select short names. ## Function names# Function names are given in small letters with underscores between words. ``` def ignore_command(command, ignore): ignore_command = False for word in ignore: if word in command: return True return ignore_command ``` ## Class names# Class names are given with capital letters, no spaces. ``` class CiscoSwitch: def __init__(self, name, vendor='cisco', model='3750'): self.name = name self.vendor = vendor self.model = model ``` ## Underscore in name# In Python, one underscore is used to simply indicate that data is discarded. For example, if you want to get MAC address, IP address, VLAN and interface from line string and discard the rest of fields, you can use this option: In [2]: mac, ip, _, _, vlan, intf = line.split() In [3]: print(mac, ip, vlan, intf) 00:09:BB:3D:D6:58 10.1.10.2 10 FastEthernet0/1 ``` This record indicates that we do not need the third and fourth elements. You can do this: ``` In [4]: mac, ip, lease, entry_type, vlan, intf = line.split() ``` But then it may be unclear why lease and entry_type variables are not used any further. It is better to call variable names like ignored. A similar technique can be used when a loop variable is not needed: ``` In [5]: [0 for _ in range(10)] Out[5]: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ``` ### Underscore in interpreter# In the python and ipython interpreter undesrcore is used to get result of the last experision. ``` In [6]: [0 for _ in range(10)] Out[6]: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] In [7]: _ Out[7]: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] In [8]: a = _ In [9]: a Out[9]: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ``` ### Single underscore# ### One underscore before name# One underscore before name indicates that the name is used as an internal name. For example, if one underscore is specified in name of function or method, this means that the object is an internal implementation and should not be used directly. But also, when importing `from module import *` the objects that start with underscore will not be imported. For instanse, example.py file contains these variables and functions: ``` db_name = 'dhcp_snooping.db' _path = '/home/nata/pyneng/' def func1(arg): print arg def _func2(arg): print arg ``` If you import all objects from module, those that start with underscore will not be imported: ``` In [7]: from example import * In [8]: db_name Out[8]: 'dhcp_snooping.db' In [9]: _path ... NameError: name '_path' is not defined In [10]: func1(1) 1 In [11]: _func2(1) ... NameError: name '_func2' is not defined ``` ### One underscore after name# One underscore after name is used when the name of object or parameter overlaps with the embedded names. Example: ``` In [12]: line = '00:09:BB:3D:D6:58 10.1.10.2 86250 dhcp-snooping 10 FastEthernet0/1' In [13]: mac, ip, lease, type_, vlan, intf = line.split() ``` ## Two underscores# This transformation is only performed if less than two underscore endings or no underscores. Although methods were created without `_Switch` , it was added. If you create a subclass, then `__configure` method will not rewrite method of parent Switch class: ## Two underscores before and after name# Python also denotes special methods in this way. These methods are called when using Python functions and operators and allow for implementation of a certain functionality. As a rule, such methods need not be called directly. But for example, when creating your own class it may be necessary to describe such method in order to make object support some operations in Python. For example, in order to get object length, it must support `__len__` method. Another special method `__str__` is called when `str` function is called. If it is necessary to get a certain output, you have to create this method in the class: ``` In [10]: class Switch(object): ...: ...: def set_name(self, name): ...: self.name = name ...: ...: def __configure(self): ...: pass ...: ...: def __str__(self): ...: return 'Switch {}'.format(self.name) ...: In [11]: sw1 = Switch() In [12]: sw1.set_name('sw1') In [13]: print sw1 Switch sw1 In [14]: str(sw1) Out[14]: 'Switch sw1' ``` There are many such special methods in Python. Some useful links where you can read about a particular method: ## Unicode# Python 2.7 has two string types: `str` and `unicode` : ``` In [1]: line = 'test' In [2]: line2 = u'test' ``` In Python 3, string is `str` type but in addition `bytes` type appeared in Python 3: ``` In [3]: line = 'test' In [4]: line.encode('utf-8') Out[4]: b'\xd1\x82\xd0\xb5\xd1\x81\xd1\x82' In [5]: byte_str = b'test' ``` ## print function# In Python 2.7 ``` In [6]: print 1, 'test' 1 test ``` In Python 3 print - function: ``` In [7]: print(1, 'test') 1 test ``` In Python 2.7 it is possible to put arguments in parentheses, but it doesn’t make ``` In [8]: print(1, 'test') (1, 'test') ``` In Python 3, using Python 2.7 syntax will result in an error: ``` In [9]: print 1, 'test' File "<ipython-input-2-328abb6b105d>", line 1 print 1, 'test' ^ SyntaxError: Missing parentheses in call to 'print' ``` ## input instead of raw_input# In Python 2.7, `raw_input` function was used to get information from user as a string: ``` In [10]: number = raw_input('Number: ') Number: 55 In [11]: number Out[11]: '55' ``` Python 3 uses `input` : ``` In [12]: number = input('Number: ') Number: 55 In [13]: number Out[13]: '55' ``` ## range instead of xrange# Python 2.7 had two functions * `range` - returns list * `xrange` - returns iterator Example `range` and `xrange` in Python 2.7: ``` In [14]: range(5) Out[14]: [0, 1, 2, 3, 4] In [15]: xrange(5) Out[15]: xrange(5) In [16]: list(xrange(5)) Out[16]: [0, 1, 2, 3, 4] ``` Python 3 has only a `range` function and it returns an iterator: ``` In [17]: range(5) Out[17]: range(0, 5) In [18]: list(range(5)) Out[18]: [0, 1, 2, 3, 4] ``` ## Dictionary methods# Several changes have occurred in dictionary methods. `dict.keys` , `values` , `items` # Methods `keys` , `values` , `items` in Python 3 return `views` instead of lists. The peculiarity of view is that they change with the change of dictionary. And in fact, they just give you a way to look at corresponding objects but they don’t make a copy of them. Python 3 has no methods: viewitems, viewkeys, viewvalues * iteritems, iterkeys, itervalues For comparison, dictionary methods in Python 2.7: ``` In [19]: d = {1:100, 2:200, 3:300} In [20]: d. d.clear d.get d.iteritems d.keys d.setdefault d.viewitems d.copy d.has_key d.iterkeys d.pop d.update d.viewkeys d.fromkeys d.items d.itervalues d.popitem d.values d.viewvalues ``` And in Python 3: ``` In [21]: d = {1:100, 2:200, 3:300} In [22]: d. clear() get() pop() update() copy() items() popitem() values() fromkeys() keys() setdefault() ``` ## Variables unpacking# In Python 3 it is possible to use `*` when unpacking variables: ``` In [23]: a, *b, c = [1,2,3,4,5] In [24]: a Out[24]: 1 In [25]: b Out[25]: [2, 3, 4] In [26]: c Out[26]: 5 ``` Python 2.7 does not support this syntax: ``` In [27]: a, *b, c = [1,2,3,4,5] File "<ipython-input-10-e3f57143ffb4>", line 1 a, *b, c = [1,2,3,4,5] ^ SyntaxError: invalid syntax ``` ## Iterator instead of list# In Python 2.7 map, filter and zip returned a list: ``` In [28]: map(str, [1,2,3,4,5]) Out[28]: ['1', '2', '3', '4', '5'] In [29]: filter(lambda x: x>3, [1,2,3,4,5]) Out[29]: [4, 5] In [30]: zip([1,2,3], [100,200,300]) Out[30]: [(1, 100), (2, 200), (3, 300)] ``` In Python 3, they return an iterator: ``` In [31]: map(str, [1,2,3,4,5]) Out[31]: <map at 0xb4ee3fecIn [32]: filter(lambda x: x>3, [1,2,3,4,5]) Out[32]: <filter at 0xb448c68cIn [33]: zip([1,2,3], [100,200,300]) Out[33]: <zip at 0xb4efc1ec> ``` ## subprocess.run# Python 3.5 introduced the new `run` function in subprocess module. It provides a more user-friendly interface for working with module and getting output of commands. Accordingly, `run` function is used instead of `call` and `check_output` functions. But `call` and `check_output` functions remain. ## Jinja2# In Jinja2 module it is no longer necessary to use such code, since the default encoding is utf-8: ``` import sys reload(sys) sys.setdefaultencoding('utf-8') ``` In the templates themselves as in Python, dictionary methods have changed. Here, you should use `items` instead of `iteritems` . ## Modules pexpect, telnetlib, paramiko# Modules pexpect, telnetlib, paramiko send and receive bytes, so you have to make encode/decode accordingly. In netmiko this conversion is performed automatically. ## Trivia# Name of Queue module changed to queue * Starting from Python 3.6, csv.DictReader returns OrderedDict instead of a regular dictionary. ## Additional information# Below are links to resources with information about changes in Python 3. In order to do tasks on Windows, you need to install Python and Cmder. ## Installing Python 3.7# Download and install Python 3.7. Be sure to check the “Add Python 3.7 to PATH” checkbox. After installation, check: `python --version` The output should be: `Python 3.7.7` Note If you are not going to use the Mu editor, you can install 3.8 as well, but it is better to look at Mu first. For the basic topics covered in the course, there are practically no changes in 3.8, so you can safely use Python 3.7. ## Cmder# Since we work with git on the course, you need to install Cmder to work on the course. To do this, select “Download Full”. After installing Cmder, git is immediately available in it and you need to figure out how it works and configure it to work with Github. ## Installing Mu# The only caveat with installing Mu on windows is that it is better to install it via pip so that the modules that are installed in pip are visible. That is, you need to install it like this: ``` pip install mu-editor ``` Not through the Windows Installer. ## Tips for completing tasks on windows# The pexpect module does not work on Windows, and since it is not needed to perform tasks, this only affects the fact that it will not be possible to repeat the examples from the book. All other modules work, but with some there are nuances. ### graphviz# To complete the tasks in sections 11 and 17, you will need graphviz. And you will need to install the Python module: `pip install graphviz` And app graphviz. After installation add graphviz to PATH. ### csv# When working with csv on Windows, you always need to specify `newline =""` when opening a file: ``` with open(output, "w", newline="") as dest: writer = csv.writer(dest) ``` ### textfsm# Some of the modules that textfsm uses are not available for Windows. And at the same time, they are not needed for our use of textfsm. For textfsm to work correctly on Windows, you need to comment out some lines in the terminal.py file in the textfsm directory. How to find the directory textfsm. First, we look at where the site-packages directory is located: In [3]: sys.path Out[3]: ... 'c:\\users\\nata\\appdata\\local\\programs\\python\\python37\\lib\\site-packages', ... ``` Then we go to this directory and inside it we look for the textfsm directory. In the textfsm directory, open the terminal.py file and comment out the lines in this way: ``` # import fcntl import getopt import os import re import struct import sys # import termios import time # import tty ``` After that, the code using textfsm should work on Windows. ### Working with network equipment# In the last third of the course, you will need network equipment to complete the assignments. You can use real or virtual network equipment and any equipment control system: GNS3, UNL or other. Where to download GNS3 Option to connect to virtual devices via Loopback right click on start and select Device manager * press Action, select Add legacy hardware * Click Next * select “Install the hardware that i manually select from a list”. Click Next * select Network adapters. Click Next * select Microsoft in the left column and Microsoft KM-TEST Loopback in the right. Click Next * click Next * click Finish * Be sure to restart the machine afterwards Then in GNS3 select this loopback interface for connecting the “cloud”. ## Installing Python 3.7 on Debian 9# If you are installing on a clean OS, it is best to install these packages: ``` sudo apt-get install build-essential checkinstall sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev sudo apt-get install libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev ``` Installing Python 3.7 ``` wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz tar xvf Python-3.7.3.tgz cd Python-3.7.3 ./configure --enable-optimizations --enable-loadable-sqlite-extensions sudo make altinstall ``` After that, you can create a virtual environment. ## Virtual environment# ``` python3.7 -m pip install virtualenvwrapper ``` After installation, in `~/.bashrc` file in current user’s home folder, you need to add several lines: ``` export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3.7 export WORKON_HOME=~/venv . /usr/local/bin/virtualenvwrapper.sh ``` Restart command interpreter: `exec bash` Create a virtual environment using Python 3.7 (the same command will take you to a virtual environment): ``` mkvirtualenv --python=/usr/local/bin/python3.7 pyneng-py3 ``` ## List of modules that need to be installed to complete tasks# You also need to install graphviz on the OS (example for debian): Information is usually hard to grasp from the first time. Especially new information. If you do your homework and make notes during your study, you learn a lot more information than if you just read a book. But most likely, in some way you’ll have to read about the same information several times. Book provides only basics of Python and therefore it is necessary to continue to learn and to repeat already completed topics and to learn new ones. And there are a lot of options: automate something at work * learn more Python for network automation * learn Python without binding to network equipment These resources are listed selectively, considering you’ve already read the book. But in addition, I’ve made a compilation of resources where other materials can be found. ## You have ideas for the scripts you want to write# Most likely, after reading the book there will be ideas what you can automate at work. It’s a great option, because it’s always easier to learn on a real problem. But it is better to go beyond work tasks and study Python further. Python allows you to do quite a lot with only basic knowledge. Therefore, with work tasks it is not always possible to increase level of knowledge, but knowing Python better you can usually solve the same problems much more easily. So it’s best not to stop and learn. The following resources are connected to network equipment and generally Python. Depending on from what materials you learn best you can select a book or video course from list ## Python for network equipment automation# Books: Network Programmability and Automation: Skills for the Next-Generation Network Engineer * Mastering Python Networking (<NAME>) - is partly similar to what was discussed in this book but there are many new themes. Plus, examples are considered not only on Cisco equipment but on Juniper and Arista as well. Blogs - will let you know news in this field: Packet Pushers often have podcasts about automation: Show 176 – Intro To Python & Automation For Network Engineers * Show 198 – Kirk Byers On Network Automation With Python & Ansible * Show 270: Design & Build 9: Automation With Python And Netmiko Projects: CiscoConfParse - library that parses Cisco IOS configurations. It can: check existing router/switch configurations, get a certain part of configuration, change configuration * NAPALM - NAPALM (Network Automation and Programmability Abstraction Layer with Multivendor support) - library that allows working with network equipment of different vendors using a unified API * NOC Project - NOC is scalable, high-performance and open-source OSS system for ISP, service and content providers * Requests - library for working with HTTP * SaltStack - Ansible analogue * Scapy - network utility that allows you to manipulate network packages * StackStorm - event-driven automation commonly used for auto-remediation, security responses, facilitated troubleshooting, complex deployments and more ## General Python# ### Books# Basic level: Think Python - good book on Python basics. There are tasks in the book. * Python Crash Course: A Hands-On, Project-Based Introduction to Programming - a book on Python basics. Half of the book is dedicated to “standard” description of Python basics and in the second half these bases are used for projects. There are tasks in the book. * Automate the Boring Stuff with Python - in this book you can find many ideas on automation of daily work. These topics are: working with PDF, Excel, Word, sending letters, working with pictures, working with the web Medium/advanced level: Python Tricks - excellent for 2-3 book on Python. Book describes various aspects of Python and how to use it correctly. The book is fairly new (late 2017) and covers Python 3. * Effective Python: 59 Specific Ways to Write Better Python (Effective Software Development Series) - book of useful advice on how best to write code * Dive Into Python 3 - briefly covers fundamentals of Python and then more advanced topics: closure, generators, tests and so on. Book written in 2009 but covers Python 3 and 99% of topics remained unchanged. * Problem Solving with Algorithms and Data Structures using Python - excellent book on data structures and algorithms. Many examples and homework. * Fluent Python - excellent book on more advanced topics. Even topics that are obsolete in the current version of Python (asyncio) are worth reading for a perfect explanation of topic. * Python Cookbook - great recipe book. A huge number of scenarios are considered with solutions and explanations. ### Courses# MITx - 6.00.1x Introduction to Computer Science and Programming Using Python - a very good course in Python. It’s a great way to continue your study after book. In it you will repeat material on Python basics but from a different angle and learn a lot of new things. There’s a lot of practical tasks and it’s pretty intense. * Python от Computer Science Center - an excellent video lecture on Python. There are some basics and more advanced topics ### Coding challenges# HackerRank - on this resource tasks are broken down by fields: algorithms, regular expressions, databases and others. But there are basic tasks as well ### Podcasts# Podcasts will generally broaden the horizon and give an idea of various Python projects, modules and libraries:
repolr
cran
R
Package ‘repolr’ October 14, 2022 Type Package Title Repeated Measures Proportional Odds Logistic Regression Version 3.4 Date 2016-02-26 Author <NAME> Maintainer <NAME> <<EMAIL>> Description Fits linear models to repeated ordinal scores using GEE methodology. License GPL-3 Imports Rcpp (>= 0.11.3), Matrix, methods LinkingTo Rcpp, RcppArmadillo NeedsCompilation yes Repository CRAN Date/Publication 2016-02-27 10:11:34 R topics documented: repolr-packag... 2 achille... 5 begoni... 6 confint.repol... 7 HHSpai... 8 mobilit... 8 ord.expan... 9 polycut... 10 predict.repol... 11 QI... 12 Qo... 13 summary.repol... 13 vcov.repol... 14 work.cor... 15 repolr-package Repeated Measures Proportional Odds Logistic Regression using GEE Description The package allows regression models to be fitted to repeated ordinal scores, for the proportional odds model, using a generalized estimating equation (GEE) methodology. The algorithm estimates the correlation parameter by minimizing the generalized variance of the regression parameters at each step of the fitting algorithm. Parameter estimation is available for the uniform and first-order autoregressive correlation models, for data potentially recorded at irregularly spaced time intervals. A test for the proportional odds assumption is available, as is an option to fit a polynomial model to the the cut-point parameters. Usage repolr(formula, subjects, data, times, categories, corr.mod = "independence", alpha = 0.5, po.test = FALSE, fixed = FALSE, poly = NULL, space = NULL, diffmeth = "analytic", fit.opt = rep(NA, 5)) Arguments formula a formula, as for other regression models. subjects a character string specifying the name of the subject variable. data a dataframe in which to interpret the variables occurring in the formula. times a vector of times which occur within subject clusters; e.g. for four evenly spaced times c(1, 2, 3, 4). categories a numeric variable indicating the number of ordinal score categories. corr.mod a character string specifying the correlation structure. The following are permit- ted: “ar1”, “uniform” and “independence”. alpha an initial value for the correlation parameter. po.test a logical variable; if true a score test for proportional odds is reported. fixed a logical variable; if true the correlation is fixed at the initial value (alpha) during model fitting. poly a numeric variable indicating the order of the polynomial contrasts used for the cut-point model. space a vector indicating the category spacing when fitting the polynomial model; can generally be set to 1:categories diffmeth a character string specifying the method used for estimation of alpha. The folowing are available:“analytic” and “numeric” fit.opt a vector of options to control the behaviour of the fitting algorithm. Details The repolr function fits models for repeated ordinal scores using GEE methodology. The user is required to specify, as a minimum: (i) a data set name (data), (ii) a model formula (formula), (iii) a cluster identification variable (subjects), (iv) a time variable (time) and (v) the number of categories used for the response variable (categories). The data may contain records with missing data for either the response variable or the explanatory variables. The response variable must have at least three ordered categories (K greater than or equal to 3) and, as K-1 cut-point parameters are estimated, an additional intercept term can not be explicitly included in the model formula. A subject variable, which takes integer values from 1 to N with no missing values allowed, indicates the data clusters (patients or experimental units) and a time variable indicates the within cluster ordering; times must be ordered integers starting from one and spaced to indicate the relative distance between successive times. For instance, four observations at equally spaced times would be entered as 1, 2, 3 and 4, whereas if the first two observations were separated by half the time interval of the other observations then coding would be 1, 2, 4 and 6. The data must be pre-sorted by time clusters within each subject, and complete, i.e. where data is missing for a particular time it must be indicated as such. the datasets provided with this package provide exemplars of the required data formatting; e.g. HHSpain and QoL. The available options for the correlation model (corstr) are AR1, uniform, fixed and independence, with default setting independence. Additionally there are a number of other algorithm related options. The algorithm is generally robust to the initial value for alpha (default setting = 0.5), where es- timation is rerquired, however a starting value for alpha can be set. If required the correlation parameter, set via alpha, can be fixed throughout model fitting, and not updated, by setting the option fixed to TRUE. The partial derivatives of the log of the determinant of the robust variance matrix (generalized variance), with respect to alpha, can either be determined analytically (“analytic” setting for diffmeth) or numerically by finite differencing (“numeric” setting for diffmeth). The latter method is often quicker for complex regression models, or if K is large. Function poly, specifies the order of fitted orthogonal polynomial contrasts for the cut-point pa- rameters; the default setting for repolr is to fit the complete set of cut-point parameters. Fitting polynomial contrasts can be particularly useful for long ordinal scores, where K is large, or where a particular form for the cut-point parameters is preferred; e.g. increasing uniformly at the extremes of the score scale. The order of the polynomial must be an integer less than K-1. The function requires one additional argument, space, that indicates the spacing between categories. This is nor- mally set to 1:categories when all categories are observed, but can be modified to provide more realsitic models if for instance some categories are not observed. The proportional odds assumption can be tested, using a score test, by setting the option po.test to TRUE. The fit.opt argument provides control of the fitting algorithm; the defaults are c(cmaxit = 10, omaxit = 5, ctol = 0.001, otol = 0.00001, h = 0.01). These control the maximum number of iterations for updating estimates of alpha, the maximum number of iterations for updating the regression parameters within each of the updating steps for alpha, the convergence tolerances for estimation of alpha and the regression parameters, and the interval h for finite differencing, if the “numeric” option is selected. Model fitting is implemented via a suite of of functions developed using RcppArmadillo (Rcpp) that construct correlations between derived binary variables at each time-point (smat) and between time-points (cmat). Complete (sparse) model covariance matrices are constructed using hgmat and alphpow, with model parameter estimation implemented in ordgee, using current estimates of the inverse of the correlation matrix from icormat. Function upalpha provides updates of correlation parameter estimates, and potest implements the test of proportional odds. These functions are not documented in detail here as they are primarily for internal use within repolr. There use outside of this setting is not recommended. Value The function summary.repolr is used to obtain and print a summary of the fitted model. The fitted model is an object of class “repolr” and has the following values: poly.mod polynomial model for cut points: a list with elements poly, polycuts and space. y the response variable. linear.predictors a vector of linear predictors. fitted.values a vector of the fitted values. coefficients a named vector of regression coefficients. robust.var the robust (sandwich) variance matrix. naive.var the naive variance matrix. alpha an estimate of the correlation parameter. convergence a logical variable to reported if convergence was achieved. iter the number of iterations. grad1 first derivative of generalized variance at convergence. grad2 second derivative of generalized variance at convergence. crit convergence criterion. po.test results of po test: a list with elements po.stat, po.df and po.chi. References Parsons NR, Costa ML, <NAME>, <NAME>. Repeated measures proportional odds logistic regres- sion analysis of ordinal score data in the statistical software package R. Computational Statistics and Data Analysis 2009; 53:632-641. Parsons NR, <NAME>, <NAME>. A generalized estimating equation method for fitting autocorrelated ordinal score data with an application in horticultural research. Journal of the Royal Statistical Society C 2006; 55:507-524. Stiger TR, <NAME>X, <NAME>. Testing proportionality in the proportional odds model fitted with GEE. Statistics in Medicine 1999; 18:1419-1433. Parsons NR. Proportional-odds models for repeated composite and long ordinal outcome scales. Statistics in Medicine 2013; 32:3181-3191. See Also QIC, polycuts, work.corr Examples data(HHSpain) mod.0 <- repolr(HHSpain~Sex*Time, data=HHSpain, categories=4, subjects="Patient", times=c(1,2,5), corr.mod="uniform", alpha=0.5) summary(mod.0) summary(update(mod.0, diffmeth = "numeric")) summary(update(mod.0, fixed = TRUE, alpha =0.5)) achilles <NAME> Description EuroQol activity scores, measured on a three point ordinal score scale, post-surgery for 48 patients at three occasions. Usage data(achilles) Format A data frame with 144 observations on the following four variables. Patient a patient identifier variable. Treat post-surgery treatments are either immediate mobilisation in a carbon-fibre orthosis with three 1.5cm heel raises (1) or traditional plaster cast immobilisation (2). Time recorded at baseline (1), six months (2) and one year (3) post-surgery. Activity ability to undertake usual activities post-surgery; this was scored by each patient as either no problem (1), some problem (2) or an inability (3) to perform usual activity (e.g. work, leisure, housework etc). Source <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., Donell, S.T. (2006). Randomised controlled trials of immediate weight-bearing mobilisation for rupture of the tendon Achillis. Journal of Bone and Joint Surgery (British) 88-B, 69-77. Examples data(achilles) head(achilles) begonia Begonia Pot Plant Quality Scores Description Begonia pot plant quality scores (for 2 varieties and 3 transport chains), during 5 weeks in simulated shelf-life conditions (temperature, light and irrigation). Quality scores were originally made on an ordinal scale from 1 to 10 (highest quality). However, only categories 2 to 9 were used, so these were re-coded to scale from 1 to 8. In addition to overall quality scores, a range of plant physiological characteristics were also observed. Usage data(begonia) Format A data frame with 720 observations on the following variables. Pot pot plant identifier; 1 to 144. Plot location in growing compartment; 1 to 48. Week week number in simulated shelf-life; 1 to 5. Temp temperature in compartment; 16C or 21C. Light light level in compartment; High or Low. Chain transport chain; Cold, Comm (commercial) or Optm (optimum). Irrig irrigation in compartment; Cont (control) or Fluct (fluctuating). Variety variety; Balli or Batik. Qual quality score; 1 to 8. FDrop count of dropped flowers. CBDrop count of dropped coloured buds. GBDrop count of dropped green buds. FDam count of damaged flowers. FSing count of single flowers. FDoub count of double flowers. LYell count of yellow leaves. Source Parsons NR, Edmondson RN, Gilmour SG. A generalized estimating equation method for fitting autocorrelated ordinal score data with an application in horticultural research. Journal of the Royal Statistical Society C 2006; 55:507-524. Examples data(begonia) head(begonia) confint.repolr Confidence Intervals for repolr Model Parameters Description Computes confidence intervals for one or more parameters in a fitted repolr model object. Usage ## S3 method for class 'repolr' confint(object, parm, level = 0.95, robust.var = TRUE, ...) Arguments object is a model fitted using repolr. parm a specification of which parameters are to be used, either a vector of numbers or a vector of names. If missing, all parameters are considered. level the confidence level required. robust.var logical; if TRUE, intervals are based on the robust variance matrix. ... further arguments passed to or from other methods. Details The method assumes normality and uses as default the estimated robust variance matrix. Value A matrix (or vector) with columns giving lower and upper confidence limits for each parameter. Examples data(HHSpain) mod.0 <- repolr(HHSpain~Sex*Time, data=HHSpain, categories=4, subjects="Patient", times=c(1,2,5), corr.mod="uniform", alpha=0.5) confint(mod.0, robust.var = FALSE) HHSpain Harris Hip Pain Scores Description Harris hip pain scores, measured on a four point ordinal score scale, post-surgery for 58 patients at three occasions. Usage data(HHSpain) Format A data frame with 174 observations on the following four variables. Patient a patient identifier variable. Sex a factor with levels F or M Time recorded at baseline (1), two years (2) and five years (5) post-surgery. HHSpain a pain score coded as none (1), slight (2), mild (3) and moderate or marked (4). Examples data(HHSpain) head(HHSpain) mobility Mobility after Hip Fracture Fixation Surgery Description Patient mobility score after hip fracture fixation surgery, using two distinct procedures. Usage data(mobility) Format A data frame with 600 observations on the following variables. subject patient identifier. time assessemnt occasions; month 1, 2, 3 and 4. treat intervention group; A or B. age patient age in years. gender gender; F or M. mobility mobility score; 1, 2 and 3. Examples data(mobility) head(mobility) ord.expand Expand Ordinal Data for Model Fitting with repolr Description Expands ordinal score data into an appropriate form, K-1 new binary variables for an ordinal score with K categories, for model fitting using repolr. Usage ord.expand(space, formula, times, poly, data, subjects, categories) Arguments space a vector indicating the category spacing when fitting the polynomial model. formula a formula, as for other regression models. times a vector of times which occur within subject clusters. poly a numeric variable indicating the order of the polynomial contrasts used for the cut-point model. data a dataframe in which to interpret the variables occurring in the formula. subjects a character string specifying the name of the subject variable. categories a numeric variable indicating the number of ordinal score categories. Details For internal use with repolr. Value An expanded dataframe. polycuts Estimates Cut-point Parameters for Fitted repolr Model Description After fitting a model using repolr, function polycuts gives estimates and standard errors for the K-1 cut-point parameters, based on the polynomial model from the fit of repolr. Polynomial cut- point parameter estimates from the orginal model are also shown. Usage polycuts(object, digits = 3, robust.var = TRUE) Arguments object is a model fitted using repolr. digits the number of decimal places to display in reported summaries. robust.var a logical variable: if TRUE standard errors are based on robust variance estimates, otherwise naive estimates are used. Value coef polynomial parameter estimates from repolr. poly a vector of K-1 cut-point parameters. order the order of the polynomial. Examples data(HHSpain) mod.0 <- repolr(HHSpain~Sex*Time, data=HHSpain, categories=4, subjects="Patient", times=c(1,2,5), corr.mod="uniform", alpha=0.5) summary(mod.0) mod.1 <- update(mod.0, poly=1) summary(mod.1) polycuts(mod.1) mod.2 <- update(mod.0, poly=2) summary(mod.2) polycuts(mod.2) predict.repolr Predict Method for Fitted repolr Model Description Calculates predictions and standard errors of predictions for a fitted repolr model object. Usage ## S3 method for class 'repolr' predict(object, newdata = NULL, se.fit = FALSE, robust.var = TRUE, type = c("link", "response", "terms"), ...) Arguments object is a model fitted using repolr. newdata optionally, a data frame in which to find variables with which to predict; if missing the model fitted values are reported. se.fit Logical indicating if standard errors are required. robust.var logical; if TRUE, standard errors are based on the robust variance matrix. type is the type of prediction required. The default “link” is to use the scale of the linear predictors; i.e. the log-odds of cumulative probabilities. The alternative is to report the predicted cumulative probabilities; “response”. The “terms” option returns the matrix of fitted values for each model term on the scale of the linear predictor. ... further arguments passed to or from other methods. Details If newdata is missing predictions are based on the data used to fit the repolr model. If newdata are supplied then the format of these data must conform to the same format required for model fitting using repolr. See repolr for details. Value fit Predictions. se.fit Estimated standard errors. Examples data(HHSpain) mod.0 <- repolr(HHSpain~Sex*Time, data=HHSpain, categories=4, subjects="Patient", times=c(1,2,5), corr.mod="uniform", alpha=0.5) predict(mod.0, newdata = data.frame(Patient = rep(100, 3), Time = c(1, 2, 5), Sex = factor(rep(1, 3), levels=1:2, labels=c("F", "M"))), type="link", se.fit = TRUE) QIC Quasilikelihood Information Criterion Description The quasilikelihood information criterion (QIC) developed by Pan (2001) is a modification of the Akaike information criterion (AIC) for models fitted by GEE. QIC is used for choosing the best correaltion structure and QICu is used for choosing the best subset of covariates. The quasilikelihood (QLike) is also reported for completeness. When choosing between two or more models, with different subset of covariates, the one with the smallest QICu measure is preferred and similarly, when choosing between competing correlation structures, with the same subset of covariates in both, the model with the smallest QIC measure is preferred. Usage QIC(object, digits = 3) Arguments object is a fitted model using repolr. digits the number of decimal places to display in reported summaries. Value QLike model quasilikelihood. QIC model QIC. QICu model QICu. References Pan W. Akaikes information criterion in generalized estimating equations. Biometrics 2001; 57:120- 125. Examples data(HHSpain) mod.0 <- repolr(HHSpain~Time, data=HHSpain, categories=4, subjects="Patient", times=c(1,2,5), corr.mod="independence", alpha=0.5) QIC(mod.0) QIC(update(mod.0, formula = HHSpain~Time + Sex))$QICu QIC(update(mod.0, formula = HHSpain~Time * Sex))$QICu QoL Quality of Life Scores Description Quality of life scores after hip replacement. Usage data(QoL) Format A data frame with 336 observations on the following four variables. QoL a numeric vector. Patient a numeric vector. Time a numeric vector. Treat a factor with levels A B. Examples data(QoL) head(QoL) summary.repolr Summary of Fitted repolr Model Description Function to summarise the fit of a repolr model. Usage ## S3 method for class 'repolr' summary(object, digits, robust.var, ...) Arguments object fitted model. digits integer for number formatting. robust.var logical; if TRUE, standard errors are based on robust variance estimates ... further arguments passed to or from other methods. Details Default is to use robust variance estimates. However, if robust.var is set to FALSE, naive variance estimates are used. vcov.repolr Calculates the Variance-Covariance Matrix for Fitted repolr Model Description Returns the variance-covariance matrix of the main parameters of a fitted repolr model object. Usage ## S3 method for class 'repolr' vcov(object, robust.var = TRUE, ...) Arguments object is a model fitted using repolr. robust.var logical; if TRUE, outputs the robust variance matrix. ... further arguments passed to or from other methods. Details Default is to output the estimated robust variance matrix. However, if robust.var is set to FALSE, the naive variance matrix is reported. Value A matrix of the estimated covariances between the parameter estimates. Examples data(HHSpain) mod.0 <- repolr(HHSpain~Sex*Time, data=HHSpain, categories=4, subjects="Patient", times=c(1,2,5), corr.mod="uniform", alpha=0.5) vcov(mod.0, robust.var = FALSE) work.corr Working Correlation Matrix for Fitted repolr Model Description The working correlation matrix for the selected model; “ar1”, “uniform” or “independence”. Usage work.corr(object, digits = 3) Arguments object is a model fitted using repolr. digits integer for number formatting. Value A T(K-1) correlation matrix. Examples data(HHSpain) mod.0 <- repolr(HHSpain~Sex*Time, data=HHSpain, categories=4, subjects="Patient", times=c(1,2,5), corr.mod="uniform", alpha=0.5) work.corr(mod.0)
xkcd
cran
R
Package ‘xkcd’ October 14, 2022 Type Package Title Plotting ggplot2 Graphics in an XKCD Style Version 0.0.6 Date 2018-07-10 Author <NAME> Maintainer <NAME> <<EMAIL>> Description Plotting ggplot2 graphs using the XKCD style. License GPL-3 Depends ggplot2 (>= 3.0), extrafont Imports Hmisc, stats URL NeedsCompilation no RoxygenNote 6.0.1 Repository CRAN Date/Publication 2018-07-11 15:30:02 UTC R topics documented: xkcd-packag... 2 theme_xkc... 3 xkcdaxi... 3 xkcdlin... 4 xkcdma... 6 xkcdrec... 7 xkcd-package Plotting ggplot2 Graphics in an XKCD Style Description Plotting ggplot2 graphs using the XKCD style. Details The DESCRIPTION file: Package: xkcd Type: Package Title: Plotting ggplot2 Graphics in an XKCD Style Version: 0.0.6 Date: 2018-07-10 Author: <NAME> Maintainer: <NAME> <<EMAIL>> Description: Plotting ggplot2 graphs using the XKCD style. License: GPL-3 Depends: ggplot2 (>= 3.0), extrafont Imports: Hmisc, stats URL: NeedsCompilation: no Packaged: 2016-01-13 10:16:52 UTC; emilio RoxygenNote: 6.0.1 Index of help topics: theme_xkcd Creates an XKCD theme xkcd-package Plotting ggplot2 Graphics in an XKCD Style xkcdaxis Plot the axis xkcdline Draw lines or circunferences xkcdman Draw a stick figure xkcdrect Draw fuzzy rectangles Further information is available in the following vignettes: xkcd-intro Using xkcd (source, pdf) Author(s) <NAME> Maintainer: <NAME> <<EMAIL>> Examples ## Not run: vignette("xkcd-intro") theme_xkcd Creates an XKCD theme Description This function creates an XKCD theme Usage theme_xkcd() Value A layer with the theme. Note See the vignette vignette("xkcd-intro") Examples ## Not run: p <- ggplot() + geom_point(aes(mpg, wt), data=mtcars) + theme_xkcd() p ## End(Not run) xkcdaxis Plot the axis Description This function plots the axis Usage xkcdaxis(xrange, yrange, ...) Arguments xrange The range of the X axe. yrange The range of the Y axe. ... Other arguments. Details It plots the axis of the graph. Value A layer with the axis. Examples ## Not run: xrange <- range(mtcars$mpg) yrange <- range(mtcars$wt) p <- ggplot() + geom_point(aes(mpg, wt), data=mtcars) + xkcdaxis(xrange,yrange) p ## End(Not run) xkcdline Draw lines or circunferences Description It draws a handwritten line. Usage xkcdline(mapping, data, typexkcdline = "segment", mask = TRUE, ...) Arguments mapping Mapping between variables and aesthetics generated by aes. See Details. data Dataset used in this layer. typexkcdline A string value. If it is segment, it draws a segment. If it is circunference, it plots a circunference. mask Logical. If it is TRUE, it erases the pictures that are under the line. ... Optional arguments. Details This function draws handwritten lines or circles. It draws a segment or a circunference in an XKCD style. If it is a segment, the following aesthetics are required: 1. xbegin: x position of the point from. 2. ybegin: y position of the point from. 3. xend: x position of the point to. 4. yend: y position of the point to. If it is a circunference, the following aesthetics are required: 1. x: x position of the center. 2. y: y position of the center. 3. diameter: diameter of the circunference. Additionally, you can use the aesthetics of geom_path. Value A layer. See Also aes, geom_path Examples data <- data.frame(x1=c(1,2), y1=c(10,20), xend=c(2.5,0.5), yend=c(20,10), model=c("low","high")) ggplot() + xkcdline(mapping=aes(x=x1 +y1, y=y1, xend =xend, yend= yend, color = model), data=data) ggplot() + xkcdline(mapping=aes(x=x1 +y1, y=y1, xend =xend, yend= yend, color = model), data=data) + facet_grid(. ~ model) ggplot() + xkcdline(mapping=aes(x=x1 +y1, y=y1, diameter =xend), data=data, type="circunference") xkcdman Draw a stick figure Description It draws a stick figure Usage xkcdman(mapping, data, ...) Arguments mapping Mapping between variables and aesthetics generated by aes. See Details. data Dataset used in this layer. ... Optional arguments. Details This function draws a stick figure. The following aesthetics are required: 1. x: x position of the center of the head. 2. y: y position of the center of the head. 3. scale: scale of the man. It is the size of the man (in units of the Y axis). 4. ratioxy: Ratio x to y of the graph (Use ratioxy <- diff(xrange) / diff(yrange)) 5. angleofspine: angle between the spine and a horizontal line that passes by the center of the head. 6. anglerighthumerus, anglelefthumerus: angle between the right/left humerus and a horizontal line that passes by the top of the spine. 7. anglerightradius, angleleftradius: angle between the right/left radius and a horizontal line that passes by the end of the right/left humerus. 8. anglerightleg, anglelefthleg: angle between the right/left left and a horizontal line that passes by the end of the end of the spine. 9. angleofneck: angle between the begin of spine and a horizontal line that passes by the center of the head. Angles are in radians. Additionally, you can use the aesthetics of geom_path, and xkcdline. Value A layer. See Also aes, geom_path, xkcdline Examples datascaled <- data.frame(x=c(-3,3),y=c(-30,30)) p <- ggplot(data=datascaled, aes(x=x,y=y)) + geom_point() xrange <- range(datascaled$x) yrange <- range(datascaled$y) ratioxy <- diff(xrange) / diff(yrange) mapping <- aes(x=x, y=y, scale=scale, ratioxy=ratioxy, angleofspine = angleofspine, anglerighthumerus = anglerighthumerus, anglelefthumerus = anglelefthumerus, anglerightradius = anglerightradius, angleleftradius = angleleftradius, anglerightleg = anglerightleg, angleleftleg = angleleftleg, angleofneck = angleofneck, color = color ) dataman <- data.frame( x= c(-1,0,1), y=c(-10,0,10), scale = c(10,7,5), ratioxy = ratioxy, angleofspine = seq(- pi / 2, -pi/2 + pi/8, l=3) , anglerighthumerus = -pi/6, anglelefthumerus = pi + pi/6, anglerightradius = 0, angleleftradius = runif(3,- pi/4, pi/4), angleleftleg = 3*pi/2 + pi / 12 , anglerightleg = 3*pi/2 - pi / 12, angleofneck = runif(3, min = 3 * pi / 2 - pi/10 , max = 3 * pi / 2 + pi/10), color=c("A","B","C")) p + xkcdman(mapping,dataman) xkcdrect Draw fuzzy rectangles Description It draws fuzzy rectangles. Usage xkcdrect(mapping, data, ...) Arguments mapping Mapping between variables and aesthetics generated by aes. See Details. data Dataset used in this layer. ... Optional arguments. Details This function draws fuzzy rectangles. It plots rectangles. The following aesthetics are required: 1. xmin 2. ymin 3. xmax 4. ymax Additionally, you can use the aesthetics of geom_path and geom_rect. Value A layer. See Also aes, geom_path Examples volunteers <- data.frame(year=c(2007:2011), number=c(56470, 56998,59686, 61783, 64251)) p <- ggplot() + xkcdrect(aes(xmin = year, xmax= year +0.3, ymin=number, ymax = number + 3600), volunteers, fill="red", colour="black") p
robustfa
cran
R
Package ‘robustfa’ April 16, 2023 Type Package Title Object Oriented Solution for Robust Factor Analysis Version 1.1-0 Date 2023-03-21 Author <NAME> [cre] (<https://orcid.org/0000-0002-0837-8281>), Ying-Ying Zhang (Robert) [aut] Maintainer <NAME> <<EMAIL>> Description Outliers virtually exist in any datasets of any application field. To avoid the impact of outliers, we need to use robust estimators. Classical estimators of multivariate mean and covariance matrix are the sample mean and the sample covariance matrix. Outliers will affect the sample mean and the sample covariance matrix, and thus they will affect the classical factor analysis which depends on the classical estimators (<NAME>., <NAME>., Filzmoser, P. and <NAME>. (2003) <doi:10.1016/S0047-259X(02)00007-6>). So it is necessary to use the robust estimators of the sample mean and the sample covariance matrix. There are several robust estimators in the literature: Minimum Covariance Determinant estimator, Orthogonalized Gnanadesikan-Kettenring, Minimum Volume Ellipsoid, M, S, and Stahel-Donoho. The most direct way to make multivariate analysis more robust is to replace the sample mean and the sample covariance matrix of the classical estimators to robust estimators (<NAME>., <NAME>. and <NAME>. (2006) <doi:10.1002/0470010940>) (<NAME>. and <NAME>. (2009) <doi:10.18637/jss.v032.i03>), which is our choice of robust factor analysis. We created an object oriented solution for robust factor analysis based on new S4 classes. License GPL (>= 2) Depends rrcov, R (>= 2.15.0) Imports methods, stats4, stats Suggests grid, lattice, cluster, mclust, MASS, ellipse, knitr, rmarkdown LazyLoad yes LazyData yes Encoding UTF-8 RoxygenNote 7.2.1 VignetteBuilder knitr, rmarkdown NeedsCompilation no Repository CRAN Date/Publication 2023-04-16 14:40:02 UTC R topics documented: robustfa-packag... 3 computeScore... 4 compute_cov_co... 5 detai... 6 Fa-clas... 7 FaClassi... 10 FaClassic-clas... 11 FaCo... 13 FaCov-clas... 14 factorScorePc... 16 factorScorePf... 18 FaRobust-clas... 20 fsOrde... 22 getCenter-method... 23 getEigenvalues-method... 23 getFa-method... 23 getLoadings-method... 24 getQuan-method... 24 getScores-method... 24 getSdev-method... 25 myFaPrin... 25 myplotD... 26 plot-method... 27 predict-method... 29 print-method... 30 stock61... 31 summary-method... 32 SummaryFa-clas... 33 Ulogical-clas... 34 Unumeric-clas... 34 robustfa-package An Object Oriented Solution for Robust Factor Analysis Description Outliers virtually exist in any datasets of any application field. To avoid the impact of outliers, we need to use robust estimators. Classical estimators of multivariate mean and covariance matrix are the sample mean and the sample covariance matrix. Outliers will affect the sample mean and the sample covariance matrix, and thus they will affect the classical factor analysis which depends on the classical estimators (<NAME>., Rousseeuw, P.J., <NAME>. and <NAME>. (2003) doi:10.1016/ S0047259X(02)000076). So it is necessary to use the robust estimators of the sample mean and the sample covariance matrix. There are several robust estimators in the literature: MCD, OGK, MVE, M, S, and Stahel-Donoho. The most direct way to robustify multivariate anal-ysis is to replace the sample mean and the sample covariance matrix of the classical estimators to robust estima-tors (<NAME>., <NAME>. and <NAME>. (2006) doi:10.1002/0470010940) (Todorov, V. and <NAME>. (2009) doi:10.18637/jss.v032.i03), which is our choice of robust factor analysis. robustfa is an object oriented solution for robust factor analysis. In the solution, new S4 classes "Fa", "FaClassic", "FaRobust", "FaCov", "SummaryFa" are created. Details Package: robustfa Type: Package Version: 1.0-5 Date: 2013-11-09 License: GPL (>= 2) Depends: methods The most important functions are: FaClassic, FaCov, factorScorePca, factorScorePfa Author(s) <NAME> (Robert) Maintainer: <NAME> (Robert) <<EMAIL>> References Zhang, <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. Examples library("robustfa") computeScores Compute Factor Scores Description Compute factor scores on the result of factor analysis method, the method is one of "mle", "pca", and "pfa". Usage computeScores(out, x = data, covmat = covmat, cor = cor, scoresMethod = scoresMethod) Arguments out The result of factorScorePca(), factorScorePfa(), or factanal(). It is a list. x A numeric matrix. covmat A list with components: cov, center, and n.obs. cor A logical value indicating whether the calculation should use the covariance matrix (cor = FALSE) or the correlation matrix (cor = TRUE). scoresMethod Type of scores to produce, if any. The default is "none", "regression" gives Thompson’s scores, "Bartlett" gives Bartlett’s weighted least-squares scores. Value The output is a list. Except for the components of out, it also has components: scoringCoef The scoring coefficients. scores The matrix of scores. meanF The sample mean of the scores. corF The sample correlation matrix of the scores. eigenvalues The eigenvalues of the running matrix. covariance The covariance matrix. correlation The correlation matrix. usedMatrix The used matrix (running matrix) to compute scoringCoef etc.. reducedCorrelation NULL. The reduced correlation matrix, reducedCorrelation is calculated in fac- torScorePfa.R. scoringCoef = F = meanF = corF = NULL if scoresMethod = "none". Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. Examples data("stock611") stock604 = stock611[-c(92,2,337,338,379,539,79), ] data = as.matrix(stock604[, 3:12]) factors = 2 cor = TRUE scoresMethod = "regression" covx = rrcov::Cov(data) covmat = list(cov = rrcov::getCov(covx), center = rrcov::getCenter(covx), n.obs = [email protected]) out = stats::factanal(factors = factors, covmat = covmat) out = computeScores(out, x = data, covmat = covmat, cor = cor, scoresMethod = scoresMethod) out compute_cov_cor Compute the Robust Covariance and Correlation Matrix of A Numeric Matrix Description Compute the robust covariance and correlation matrix of a numeric matrix. The function is used to check whether S_r != S_r_tilda and R_r == R_r_tilda? Usage compute_cov_cor(x, control) Arguments x A numeric matrix or an object that can be coerced to a numeric matrix. control A control object (S4) for one of the available control classes, e.g. CovControlMcd-class, CovControlOgk-class, CovControlSest-class, etc., containing estimation options. The class of this object defines which estimator will be used. Alter- natively a character string can be specified which names the estimator - one of auto, sde, mcd, ogk, m, mve, sfast, surreal, bisquare, rocke. If "auto" is specified or the argument is missing, the function will select the estimator. Value A list with the following components: S_r The robust covariance matrix of cov_x. S_r_tilda The robust covariance matrix of cov_scale_x. R_r The robust correlation matrix of cov_x. R_r_tilda The robust correlation matrix of cov_scale_x. cov_x = rrcov::CovRobust(x = x, control = control) cov_scale_x = rrcov::CovRobust(x = scale(x), control = control) Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis. Examples data("hbk") hbk.x = hbk[,1:3] compute_cov_cor(x = hbk.x, control = "mcd") detail Show Details of an Object Description Show details of an object. Usage detail(x) Arguments x Any R object to be tested. Value A list with components: x The argument x. isS4 Logical, indicates whether x is an S4 object. isObject Logical, indicates whether x is an object, i.e., with a class attribute. class The class of x. attributes The attributes of x. Usually result$attributes is also a list. Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also isS4, is.object, class, attributes Examples data(stock611) detail(stock611) facovRegOgk=FaCov(x=scale(stock611[,3:12]), factors=3, cov.control = rrcov::CovControlOgk(), scoresMethod = "regression"); facovRegOgk detail(facovRegOgk) Fa-class Class "Fa" Description Class "Fa" is a virtual base class for all classical and robust FA classes. "Fa" searves as a base class for deriving all other classes representing the results of the classical and robust Factor Analysis methods. Objects from the Class A virtual Class: No objects may be created from it. Slots call: Object of class "language" an unevaluated function call. converged: Object of class "Ulogical" a logical character indicates whether the iterations con- verged. loadings: Object of class "matrix" the matrix of variable loadings. communality: Object of class "Uvector" the communality. uniquenesses: Object of class "vector" the uniquenesses computed. cor: Object of class "Ulogical" A logical value indicating whether the calculation should use the covariance matrix (cor = FALSE) or the correlation matrix (cor = TRUE). covariance: Object of class "matrix" The robust/classical covariance matrix. correlation: Object of class "matrix" The robust/classical correlation matrix. usedMatrix: Object of class "matrix" The used matrix (running matrix). It may be the covariance or correlation matrix according to the value of cor. reducedCorrelation: Object of class "Umatrix" The last reduced correlation matrix. reduced- Correlation is only calculated in factorScorePfa.R. criteria: Object of class "Unumeric". The results of the optimization: the value of the negative log-likelihood and information on the iterations used. factors: Object of class "numeric" the number of factors. dof: Object of class "Unumeric". The number of degrees of freedom of the factor analysis model. method: Object of class "character". The method: one of "mle", "pca", and "pfa". scores: Object of class "Umatrix". If requested, a matrix of scores. scoresMethod: Object of class "character". The scores method: one of "none", "regression", and "Bartlett". scoringCoef: Object of class "Umatrix" the matrix of scoring coefficients. meanF: Object of class "Uvector" the column means of scores. corF: Object of class "Umatrix" the correlation matrix of the scores. STATISTIC: Object of class "Unumeric". The significance-test statistic, if it can be computed. PVAL: Object of class "Unumeric". The significance-test P value, if it can be computed. n.obs: Object of class "numeric". The number of observations. center: Object of class "Uvector". The center of the data. eigenvalues: Object of class "vector" the eigenvalues. cov.control: Object of class "UCovControl". Record the cov control method. Methods getCenter signature(obj = "Fa"): center of the data getEigenvalues signature(obj = "Fa"): the eigenvalues of the covariance/correlation matrix getFa signature(obj = "Fa"): returns an S3 list of class fa for compatibility with the function factanal(). Thus the standard screeplot() can be used. getLoadings signature(obj = "Fa"): returns the matrix loadings getQuan signature(obj = "Fa"): returns the number of observations used in the computation, i.e., n.obs getScores signature(obj = "Fa"): if requested, a matrix of scores. getSdev signature(obj = "Fa"): returns the standard deviations of the factor analysis, i.e., the square roots of the eigenvalues of the covariance/correlation matrix plot signature(x = "Fa", y = "missing"): produces a scatterplot of the factor scores (if which = "factorScore") or shows the eigenvalues plot (if which = "screeplot") predict signature(object = "Fa"): calculates prediction using the results in object. The new- data argument is an optional data frame or matrix in which to look for variables with which to predict. If newdata is omitted, the scores are used. print signature(x = "Fa"): prints the results. obj = print(obj) summary signature(object = "Fa"): produce result summaries of an object of class "Fa". Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (1937) The statistical conception of mental factors. British Journal of Psychology, 28, 97–104. <NAME>. (1938) Methods of estimating mental factors. Nature, 141, 609–610. <NAME>. (1963) Statistical Estimation in Factor Analysis. Almqvist and Wicksell. <NAME>. and <NAME>. (1971) Factor Analysis as a Statistical Method. Second edition. Butterworths. <NAME>. (1951) The Factorial Analysis of Human Ability. London University Press. <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. <NAME>. (2014), Robust Factor Analysis and Its Applications in the CSI 100 Index, Open Journal of Social Sciences 2(07):12-18, doi:10.4236/jss.2014.27003. See Also FaClassic-class, FaCov-class, FaRobust-class, Fa-class Examples showClass("Fa") FaClassic Classical Factor Analysis Description Performs a classical factor analysis and returns the results as an object of class "FaClassic" (a.k.a. constructor). Usage FaClassic(x, ...) ## S3 method for class 'formula' FaClassic(formula, data = NULL, factors = 2, cor = FALSE, method = "mle", scoresMethod = "none", ...) ## Default S3 method: FaClassic(x, factors = 2, cor = FALSE, method = c("mle", "pca", "pfa"), scoresMethod = c("none", "regression", "Bartlett"), ...) Arguments x A formula or a numeric matrix or an object that can be coerced to a numeric matrix. ... Arguments passed to or from other methods. formula A formula with no response variable, referring only to numeric variables. data An optional data frame (or similar: see model.frame) containing the variables in the formula. factors The number of factors to be fitted. cor A logical value indicating whether the calculation should use the covariance matrix (cor = FALSE) or the correlation matrix (cor = TRUE). method The method of factor analysis, one of "mle" (the default), "pca", and "pfa". scoresMethod Type of scores to produce, if any. The default is "none", "regression" gives Thompson’s scores, "Bartlett" gives Bartlett’s weighted least-squares scores. Value An S4 object of class FaClassic-class which is a subclass of the virtual class Fa-class. Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also FaClassic-class, FaCov-class, FaRobust-class, Fa-class Examples data("hbk") hbk.x = hbk[,1:3] ## faClassicPcaReg uses the default method faClassicPcaReg = FaClassic(x = hbk.x, factors = 2, method = "pca", scoresMethod = "regression"); faClassicPcaReg summary(faClassicPcaReg) ## faClassicForPcaReg uses the formula interface ## faClassicForPcaReg = faClassicPcaReg faClassicForPcaReg = FaClassic(~., data=as.data.frame(hbk.x), factors = 2, method = "pca", scoresMethod = "regression"); faClassicForPcaReg summary(faClassicForPcaReg) FaClassic-class Class "FaClassic" Description Contains the results of a classical Factor Analysis Objects from the Class Objects can be created by calls of the form new("FaClassic", ...). But the usual way of creating FaClassic objects is a call to the function FaClassic which serves as a constructor. Slots call: Object of class "language" an unevaluated function call converged: Object of class "Ulogical" a logical character indicates whether the iterations con- verged loadings: Object of class "matrix" the matrix of variable loadings uniquenesses: Object of class "vector" the uniquenesses computed covariance: Object of class "matrix" the covariance matrix correlation: Object of class "matrix" the correlation matrix usedMatrix: Object of class "matrix" the used matrix (running matrix) criteria: Object of class "Unumeric". The results of the optimization: the value of the negative log-likelihood and information on the iterations used. factors: Object of class "numeric" the number of factors dof: Object of class "Unumeric". The number of degrees of freedom of the factor analysis model. method: Object of class "character". The method: one of "mle", "pca", and "pfa". scores: Object of class "Umatrix". If requested, a matrix of scores. scoresMethod: Object of class "character". The scores method: one of "none", "regression", and "Bartlett". STATISTIC: Object of class "Unumeric". The significance-test statistic, if it can be computed. PVAL: Object of class "Unumeric". The significance-test P value, if it can be computed. n.obs: Object of class "Unumeric". The number of observations if available. center: Object of class "Uvector". The center of the data. eigenvalues: Object of class "vector" the eigenvalues cov.control: Object of class "UCovControl". Record the cov control method. Extends Class "Fa", directly. Methods No methods defined with class "FaClassic" in the signature. Author(s) <NAME> (Robert) <<EMAIL>> References Z<NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also FaClassic-class, FaCov-class, FaRobust-class, Fa-class Examples showClass("FaClassic") FaCov Robust Factor Analysis Description Robust factor analysis are obtained by replacing the classical covariance matrix by a robust covari- ance estimator. This can be one of the available estimators in rrcov, i.e., MCD, OGK, M, S, SDE, or MVE estimator. Usage FaCov(x, ...) ## S3 method for class 'formula' FaCov(formula, data = NULL, factors = 2, cor = FALSE, method = "mle", scoresMethod = "none", ...) ## Default S3 method: FaCov(x, factors = 2, cor = FALSE, cov.control = rrcov::CovControlMcd(), method = c("mle", "pca", "pfa"), scoresMethod = c("none", "regression", "Bartlett"), ...) Arguments x A formula or a numeric matrix or an object that can be coerced to a numeric matrix. ... Arguments passed to or from other methods. formula A formula with no response variable, referring only to numeric variables. data An optional data frame (or similar: see model.frame) containing the variables in the formula. factors The number of factors to be fitted. cor A logical value indicating whether the calculation should use the covariance matrix (cor = FALSE) or the correlation matrix (cor = TRUE). method The method of factor analysis, one of "mle" (the default), "pca", and "pfa". scoresMethod Type of scores to produce, if any. The default is "none", "regression" gives Thompson’s scores, "Bartlett" gives Bartlett’s weighted least-squares scores. cov.control Specifies which covariance estimator to use by providing a CovControl-class object. The default is CovControlMcd-class which will indirectly call CovMcd. If cov.control=NULL is specified, the classical estimates will be used by calling CovClassic. Details FaCov, serving as a constructor for objects of class FaCov-class is a generic function with "for- mula" and "default" methods. Value An S4 object of class FaCov-class which is a subclass of the virtual class Fa-class. Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also FaClassic-class, FaCov-class, FaRobust-class, Fa-class Examples data("hbk") hbk.x = hbk[,1:3] ## ## faCovPcaRegMcd is obtained from FaCov.default ## faCovPcaRegMcd = FaCov(x = hbk.x, factors = 2, method = "pca", scoresMethod = "regression", cov.control = rrcov::CovControlMcd()); faCovPcaRegMcd ## ## In fact, it is equivalent to use FaCov.formula ## faCovForPcaRegMcd = faCovPcaRegMcd ## faCovForPcaRegMcd = FaCov(~., data = as.data.frame(hbk.x), factors = 2, method = "pca", scoresMethod = "regression", cov.control = rrcov::CovControlMcd()); faCovForPcaRegMcd FaCov-class Class "FaCov" Description Robust FA based on a robust covariance matrix. Robust FA are obtained by replacing the classical covariance matrix by a robust covariance estimator. This can be one of the available in rrcov estimators, i.e., MCD, OGK, M, S, SDE, or MVE estimator. Objects from the Class Objects can be created by calls of the form new("FaCov", ...). But the usual way of creating FaCov objects is a call to the function FaCov which serves as a constructor. Slots call: Object of class "language" an unevaluated function call converged: Object of class "Ulogical" a logical character indicates whether the iterations con- verged loadings: Object of class "matrix" the matrix of variable loadings uniquenesses: Object of class "vector" the uniquenesses computed covariance: Object of class "matrix" the covariance matrix correlation: Object of class "matrix" the correlation matrix usedMatrix: Object of class "matrix" the used matrix (running matrix) criteria: Object of class "Unumeric". The results of the optimization: the value of the negative log-likelihood and information on the iterations used. factors: Object of class "numeric" the number of factors dof: Object of class "Unumeric". The number of degrees of freedom of the factor analysis model. method: Object of class "character". The method: one of "mle", "pca", and "pfa". scores: Object of class "Umatrix". If requested, a matrix of scores. scoresMethod: Object of class "character". The scores method: one of "none", "regression", and "Bartlett". STATISTIC: Object of class "Unumeric". The significance-test statistic, if it can be computed. PVAL: Object of class "Unumeric". The significance-test P value, if it can be computed. n.obs: Object of class "Unumeric". The number of observations if available. center: Object of class "Uvector". The center of the data. eigenvalues: Object of class "vector" the eigenvalues cov.control: Object of class "UCovControl". Record the cov control method. Extends Class "FaRobust", directly. Class "Fa", by class "FaRobust", distance 2. Methods No methods defined with class "FaCov" in the signature. Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also FaClassic-class, FaCov-class, FaRobust-class, Fa-class Examples showClass("FaCov") factorScorePca Factor Analysis by Principal Component Analysis (PCA) Description Perform principal component factor analysis on a covariance matrix or data matrix. Usage factorScorePca(x, factors = 2, covmat = NULL, cor = FALSE, rotation = c("varimax", "none"), scoresMethod = c("none", "regression", "Bartlett")) Arguments x A numeric matrix or an object that can be coerced to a numeric matrix. factors The number of factors to be fitted. covmat A covariance matrix, or a covariance list as returned by cov.wt. Of course, correlation matrices are covariance matrices. cor A logical value indicating whether the calculation should use the covariance matrix (cor = FALSE) or the correlation matrix (cor = TRUE). rotation character. "none" or "varimax": it will be called with first argument the loadings matrix, and should return a list with component loadings giving the rotated loadings, or just the rotated loadings. scoresMethod Type of scores to produce, if any. The default is "none", "regression" gives Thompson’s scores, "Bartlett" gives Bartlett’s weighted least-squares scores. Details Other feasible usages are: factorScorePca(factors, covmat) factorScorePca(x, factors, rotation, scoresMethod) If x is missing, then the following components of the result will be NULL: scores, ScoringCoef, meanF, corF, and n.obs. Value An object of class "factorScorePca" with components: call The matched call. loadings A matrix of loadings, one column for each factor. This is of class "loadings" if rotation = "varimax": see loadings for its print method; It is a plain matrix if rotation = "none". communality The common variance. uniquenesses The uniquenesses/specific variance computed. covariance The robust/classical covariance matrix. correlation The robust/classical correlation matrix. usedMatrix The used matrix (running matrix). It may be the covariance or correlation matrix according to the value of cor. reducedCorrelation NULL. The reduced correlation matrix, reducedCorrelation is calculated in fac- torScorePfa.R. factors The argument factors. method The method: always "pca". scores If requested, a matrix of scores. NULL if x is missing. scoringCoef The scoring coefficients. NULL if x is missing. meanF The sample mean of the scores. NULL if x is missing. corF The sample correlation matrix of the scores. NULL if x is missing. scoresMethod The argument scoresMethod. n.obs The number of observations if available. NULL if x is missing. center The center of the data. eigenvalues The eigenvalues of the usedMatrix. Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also factorScorePfa, factanal Examples data(stock611) R611=cor(stock611[,3:12]); R611 ## covmat is a matrix fsPca1=factorScorePca(factors = 3, covmat = R611); fsPca1 ## covmat is a list covx <- rrcov::Cov(stock611[,3:12]) covmat <- list(cov=rrcov::getCov(covx), center=rrcov::getCenter(covx), [email protected]) fsPca2=factorScorePca(factors = 3, covmat = covmat); fsPca2 ## fsPca3 contains scores etc. fsPca3=factorScorePca(x = stock611[,3:12], factors = 2, cor = TRUE, rotation = "varimax", scoresMethod = "regression"); fsPca3 factorScorePfa Factor Analysis by Principal Factor Analysis (PFA) Description Perform principal factor factor analysis on a covariance matrix or data matrix. Usage factorScorePfa(x, factors = 2, covmat = NULL, cor = FALSE, rotation = c("varimax", "none"), scoresMethod = c("none", "regression", "Bartlett")) Arguments x A numeric matrix or an object that can be coerced to a numeric matrix. factors The number of factors to be fitted. covmat A covariance matrix, or a covariance list as returned by cov.wt. Of course, correlation matrices are covariance matrices. cor A logical value indicating whether the calculation should use the covariance matrix (cor = FALSE) or the correlation matrix (cor = TRUE). rotation character. "none" or "varimax": it will be called with first argument the loadings matrix, and should return a list with component loadings giving the rotated loadings, or just the rotated loadings. scoresMethod Type of scores to produce, if any. The default is "none", "regression" gives Thompson’s scores, "Bartlett" gives Bartlett’s weighted least-squares scores. Details Other feasible usages are: factorScorePfa(factors, covmat) factorScorePfa(x, factors, rotation, scoresMethod) If x is missing, then the following components of the result will be NULL: scores, ScoringCoef, meanF, corF, and n.obs. Value An object of class "factorScorePfa" with components: call The matched call. loadings A matrix of loadings, one column for each factor. This is of class "loadings" if rotation = "varimax": see loadings for its print method; It is a plain matrix if rotation = "none". communality The common variance. uniquenesses The uniquenesses/specific variance computed. covariance The robust/classical covariance matrix. correlation The robust/classical correlation matrix. usedMatrix The used matrix (running matrix). It may be the covariance or correlation matrix according to the value of cor. reducedCorrelation The last reduced correlation matrix. factors The argument factors. method The method: always "pfa". scores If requested, a matrix of scores. NULL if x is missing. scoringCoef The scoring coefficients. NULL if x is missing. meanF The sample mean of the scores. NULL if x is missing. corF The sample correlation matrix of the scores. NULL if x is missing. scoresMethod The argument scoresMethod. n.obs The number of observations if available. NULL if x is missing. center The center of the data. eigenvalues The eigenvalues of the usedMatrix. Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also factorScorePca, factanal Examples data(stock611) R611 = cor(stock611[,3:12]); R611 ## covmat is a matrix fsPfa1 = factorScorePfa(factors = 3, covmat = R611); fsPfa1 ## covmat is a list covx = rrcov::Cov(stock611[,3:12]) covmat = list(cov = rrcov::getCov(covx), center = rrcov::getCenter(covx), n.obs = [email protected]) fsPfa2 = factorScorePfa(factors = 3, cor = TRUE, covmat = covmat); fsPfa2 ## fsPfa3 contains scores etc. fsPfa3 = factorScorePfa(x = stock611[,3:12], factors = 2, cor = TRUE, rotation = "varimax", scoresMethod = "regression"); fsPfa3 FaRobust-class Class "FaRobust" Description Class "FaRobust" is a virtual base class for all robust FA classes. Currently the only available robust FA class is "FaCov". The class "FaRobust" serves as a base class for deriving all other classes representing the results of the robust Factor Analysis methods. Objects from the Class A virtual Class: No objects may be created from it. Slots call: Object of class "language" an unevaluated function call converged: Object of class "Ulogical" a logical character indicates whether the iterations con- verged loadings: Object of class "matrix" the matrix of variable loadings uniquenesses: Object of class "vector" the uniquenesses computed covariance: Object of class "matrix" the covariance matrix correlation: Object of class "matrix" the correlation matrix usedMatrix: Object of class "matrix" the used matrix (running matrix) criteria: Object of class "Unumeric". The results of the optimization: the value of the negative log-likelihood and information on the iterations used. factors: Object of class "numeric" the number of factors dof: Object of class "Unumeric". The number of degrees of freedom of the factor analysis model. method: Object of class "character". The method: one of "mle", "pca", and "pfa". scores: Object of class "Umatrix". If requested, a matrix of scores. scoresMethod: Object of class "character". The scores method: one of "none", "regression", and "Bartlett". STATISTIC: Object of class "Unumeric". The significance-test statistic, if it can be computed. PVAL: Object of class "Unumeric". The significance-test P value, if it can be computed. n.obs: Object of class "Unumeric". The number of observations if available. center: Object of class "Uvector". The center of the data. eigenvalues: Object of class "vector" the eigenvalues cov.control: Object of class "UCovControl". Record the cov control method. Extends Class "Fa", directly. Methods No methods defined with class "FaRobust" in the signature. Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also FaClassic-class, FaCov-class, FaRobust-class, Fa-class Examples showClass("FaRobust") fsOrder Compute the Ordered Factor Scores Description Compute the ordered factor scores according to the first/second/third... column of the original factor scores. Usage fsOrder(factorScores) Arguments factorScores The original factor scores. Value A list with m (the number of factors) components: [[1]] The ordered factor scores with a decreasing first column. [[2]] The ordered factor scores with a decreasing second column. ... [[m]] The ordered factor scores with a decreasing m-th column. Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also order Examples data(stock611) R611=cor(stock611[,3:12]); R611 ## FS.pca contains scores etc. fsPca=factorScorePca(x = stock611[,3:12], factors = 2, cor = TRUE, rotation = "varimax", scoresMethod = "regression"); fsPca orderedFS=fsOrder(fsPca$scores); orderedFS getCenter-methods Access Center slot Description Accessor method to the Center slot of an object of class "Fa" and its subclasses. Methods signature(obj = "Fa") Accessor method to the Center slot of an object of class "Fa" and its subclasses getEigenvalues-methods Access Eigenvalues slot Description Accessor method to the Eigenvalues slot of an object of class "Fa" and its subclasses. Methods signature(obj = "Fa") Accessor method to the Eigenvalues slot of an object of class "Fa" and its subclasses getFa-methods Access slots of "Fa" Description Accessor method to some slots of an object of class "Fa" and its subclasses. Return a list of class "fa". Methods signature(obj = "Fa") Accessor method to some slots of an object of class "Fa" and its sub- classes. Return a list of class "fa". getLoadings-methods Access Loadings slot Description Accessor method to the Loadings slot of an object of class "Fa" and its subclasses. Methods signature(obj = "Fa") Accessor method to the Loadings slot of an object of class "Fa" and its subclasses getQuan-methods Access n.obs slot Description Accessor method to the n.obs slot of an object of class "Fa" and its subclasses. Methods signature(obj = "Fa") Accessor method to the n.obs slot of an object of class "Fa" and its sub- classes getScores-methods Access Scores slot Description Accessor method to the Scores slot of an object of class "Fa" and its subclasses. Methods signature(obj = "Fa") Accessor method to the Scores slot of an object of class "Fa" and its subclasses getSdev-methods Access Standard Deviation slot Description Accessor method to the Standard Deviation slot of an object of class "Fa" and its subclasses. Methods signature(obj = "Fa") Accessor method to the Standard Deviation slot of an object of class "Fa" and its subclasses myFaPrint Show/Print/Display an Object Description Show/print/display an object, including the Call, Standard deviations, Loadings, and Rotated vari- ables (if print.x = TRUE). Usage myFaPrint(object, print.x=FALSE) Arguments object an object of class "Fa" or of a class derived from "Fa". print.x Logical. If print.x = TRUE, then print the rotated variables (scores). Value An invisible argument object. Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also Fa-class Examples data("hbk") hbk.x = hbk[,1:3] faCovPcaRegMcd = FaCov(x = hbk.x, factors = 2, method = "pca", scoresMethod = "regression", cov.control = rrcov::CovControlMcd()) ## you can use either object or print(object) or myFaPrint(object) ## since faCovPcaRegMcd is an object of class "Fa" faCovPcaRegMcd print(faCovPcaRegMcd) myFaPrint(faCovPcaRegMcd) myplotDD Distance-Distance Plot Description "myplotDD" is a revised version of ".myddplot" in "plot-utils.R" in the package "rrcov". In "myplotDD", id.n and ind are printed out. Usage myplotDD(x, cutoff, id.n) Arguments x An S4 object of class "CovRobust". cutoff The cutoff value used. If missing, cutoff <- sqrt(qchisq(0.975, p)) by default. id.n Number of observations to identify by a label. If not supplied, the number of observations with robust distance larger than cutoff is used. Details Distance-Distance Plot: Plot the vector y=rd (robust distances) against x=md (mahalanobis dis- tances). Identify by a label the id.n observations with largest rd. If id.n is not supplied, calculate it as the number of observations larger than cutoff. Use cutoff to draw a horisontal and a vertical line. Draw also a dotted line with a slope 1. "myplotDD(x)" is equivalent to "plot(x, which="dd")". which: indicate what kind of plot. If which = "dd", then a distance-distance Plot. Value A distance-distance plot is shown. Return a list with components: cutoff The cutoff value used. If missing, cutoff <- sqrt(qchisq(0.975, p)) by default. id.n Number of observations to identify by a label. If not supplied, the number of observations with robust distance larger than cutoff is used. sort.y A list containing the sorted values of y (the robust distance) ind The indices of the largest id.n observations whose robust distances are larger than cutoff. Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also plot, qchisq, CovClassic, getDistance Examples data(stock611) covMcd=CovRobust(x=scale(stock611[,3:12]), control="mcd"); covMcd ## "myplotDD" shows id.n and ind. ## Note: id.n and ind change each time due to covMcd changes each time! ## However, the ind of largest robust distances do not change. result = myplotDD(x=covMcd); result ## "myplotDD" is equivalent to "plot(x=covMcd, which="dd")". plot(x=covMcd, which="dd") plot-methods Plot an object of class "Fa" Description Plot an object of class "Fa". If which = "factorScore", then a scatterplot of the factor scores is produced; if which = "screeplot", shows the eigenvalues and is helpful to select the number of factors. Usage ## S4 method for signature 'Fa' plot(x, which=c("factorScore", "screeplot"), choices=1:2) Arguments x an object of class "Fa" or of a class derived from "Fa" which indicate what kind of plot. If which = "factorScore", then a scatterplot of the factor scores is produced; if which = "screeplot", shows the eigenvalues and is helpful to select the number of factors. choices an integer vector indicate which columns of the factor scores to plot Details The feasible usages are: plot(x, which="factorScore", choices=1:2) plot(x, which="screeplot") Methods signature(x = "Fa", y = "missing") generic functions - see plot Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. Examples data("hbk") hbk.x = hbk[,1:3] faClassicPcaReg = FaClassic(x = hbk.x, factors = 2, method = "pca", scoresMethod = "regression"); faClassicPcaReg summary(faClassicPcaReg) plot(faClassicPcaReg, which = "factorScore", choices = 1:2) plot(faClassicPcaReg, which = "screeplot") predict-methods Calculates prediction Description Calculates prediction using the results in object. The newdata argument is an optional data frame or matrix in which to look for variables with which to predict. If newdata is omitted, the scores are used. Usage predict(object, ...) Arguments object an object of class "Fa" or of a class derived from "Fa" ... additional arguments, e.g., newdata: an optional data frame or matrix in which to look for variables with which to predict. If newdata is not missing, newdata should be scaled before "predict". Methods signature(object = "Fa") generic functions - see print, summary, predict, plot, getCenter, getEigenvalues, getFa, getLoadings, getQuan, getScores, getSdev Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. Examples data("hbk") hbk.x = hbk[,1:3] faCovPcaRegMcd = FaCov(x = hbk.x, factors = 2, method = "pca", scoresMethod = "regression", cov.control = rrcov::CovControlMcd()); faCovPcaRegMcd ## If missing newdata, the scores are used predict(faCovPcaRegMcd) ## ## If not missing newdata, newdata should be scaled first. ## newdata = hbk.x[1, ] cor = FALSE # the default newdata = { if (cor == TRUE) # standardized transformation scale(newdata, center = faCovPcaRegMcd@center, scale = sqrt(diag(faCovPcaRegMcd@covariance))) else # cor == FALSE # centralized transformation scale(newdata, center = faCovPcaRegMcd@center, scale = FALSE) } ## ## Now, prediction = predict(faCovPcaRegMcd)[1,] = faCovPcaRegMcd@scores[1,] ## prediction = predict(faCovPcaRegMcd, newdata = newdata) prediction print-methods Print/Display an Object Description Print/display an object, including the Call, Standard deviations, Loadings. Usage print(x, ...) Arguments x an object of class "Fa" or "SummaryFa" or of a class derived from "Fa" or of class or "SummaryFa". ... additional arguments, e.g., print.x=TRUE Value An invisible argument x. Methods x = "Fa" generic functions - see print, summary, predict, plot, getCenter, getEigenvalues, getFa, getLoadings, getQuan, getScores, getSdev x = "SummaryFa" generic functions - see print, summary, predict, plot, getCenter, getEigenvalues, getFa, getLoadings, getQuan, getScores, getSdev Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also Fa-class, SummaryFa-class Examples data("hbk") hbk.x = hbk[,1:3] faCovPcaRegMcd = FaCov(x = hbk.x, factors = 2, method = "pca", scoresMethod = "regression", cov.control = rrcov::CovControlMcd()) ## you can use either object or print(object) or myFaPrint(object) ## since faCovPcaRegMcd is an object of class "Fa" faCovPcaRegMcd print(faCovPcaRegMcd) myFaPrint(faCovPcaRegMcd) stock611 The Stocks Data - Year 2001 Description This data set consists of 611 observations with 12 variables. Usage data(stock611) Format A data frame with 611 observations on the following 12 variables. code a numeric vector name a numeric vector: the Chinese stocks name is replaced by integer, it can be found by its code. x1 a numeric vector: main business income (China Yuan) x2 a numeric vector: main business profit (China Yuan) x3 a numeric vector: total profit (China Yuan) x4 a numeric vector: net profit (China Yuan) x5 a numeric vector: earnings per share (EPS) (China Yuan) x6 a numeric vector: net assets per share (China Yuan) x7 a numeric vector: net return on assets (%) x8 a numeric vector: total return on assets (%) x9 a numeric vector: total assets (China Yuan) x10 a numeric vector: equity Details The data set is from Chinese stock market in the year 2001. It was used in Wang X. M. (2009) to illustrate the factor analysis methods. Source <NAME>. (2009) Applied Multivariate Analysis. Third edition. ShangHai University of Finance & Economics Press. (This is a Chinese book) Note: In Wang X. M.’s homepage, he provided a link to download materials related to his book (including the data set stock611): http://bb.shufe.edu.cn/bbcswebdav/institution/ Examples data(stock611) str(stock611) plot(stock611) summary-methods Summary an Object Description Produce result summaries of an object of class "Fa". Usage summary(object, ...) Arguments object an object of class "Fa" or of a class derived from "Fa". ... additional arguments, e.g., print.x=TRUE. Methods signature(object = "Fa") Summary an object of class "Fa". Author(s) <NAME> (Robert) <<EMAIL>> References <NAME>. (2013), An Object Oriented Solution for Robust Factor Analysis. Examples data("hbk") hbk.x = hbk[,1:3] faCovPcaRegMcd = FaCov(x = hbk.x, factors = 2, method = "pca", scoresMethod = "regression", cov.control = rrcov::CovControlMcd()); faCovPcaRegMcd faCovPcaRegMcd summary(faCovPcaRegMcd) SummaryFa-class Class "SummaryFa" Description Summary of "Fa" objects. The "Fa" object plus some additional summary information. Objects from the Class Objects can be created by calls of the form new("SummaryFa", ...). But most often by invoking ’summary’ on an "Fa" object. They contain values meant for printing by ’show’. Slots faobj: Object of class "Fa" importance: Object of class "matrix". Matrix with additional information: importance of com- ponents. Methods show signature(object = "SummaryFa"): display the object Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis. See Also Fa-class Examples showClass("SummaryFa") Ulogical-class Class "Ulogical" Description Define class unions for optional slots, e.g., for definition of slots which will be computed on de- mand. Objects from the Class A virtual Class: No objects may be created from it. Methods No methods defined with class "Ulogical" in the signature. Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis. Unumeric-class Class "Unumeric" Description Define class unions for optional slots, e.g., for definition of slots which will be computed on de- mand. Objects from the Class A virtual Class: No objects may be created from it. Methods No methods defined with class "Unumeric" in the signature. Author(s) <NAME> (Robert) <<EMAIL>> References Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis.
test_components_idx
ctan
TeX
### Grammar symbols: Used cross reference Reference of each grammar's symbol used within each rule's productions. The index uses the tripple: rule name, its subrule no, and the symbol's position within the symbol string. ### # ***. Rtoken_grp1 1.2 ### # Ab:. Rtoken_grp3 5.2 ### # AD:. Rtoken_grp3 4.2 ### # NULL:. Rtoken_grp5 2.2 ### # T-enumeration:. Rtoken_grp3 11.2 ### # arbitrator-code:. Rtoken_grp5 1.2 ### # constant-defs:. Rtoken_grp4 12.2 ### # constructor:. Rtoken_grp4 6.2 ### # destructor:. Rtoken_grp4 7.2 ### # error-symbols:. Rtoken_grp3 3.2 ### # failed:. Rtoken_grp5 3.2 ### # file-name:. Rtoken_grp3 12.2* **# fsm:.** Rtoken_grp2 4.2 * **# fsm-class:.** Rtoken_grp2 8.2 * **# fsm-comments:.** Rtoken_grp2 12.2 * **# fsm-date:.** Rtoken_grp2 10.2 * **# fsm-debug:.** Rtoken_grp2 11.2 * **# fsm-filename:.** Rtoken_grp2 6.2 * **# fsm-id:.** Rtoken_grp2 5.2 * **# fsm-namespace:.** Rtoken_grp2 7.2 * **# fsm-version:.** Rtoken_grp2 9.2 * **# lhs:.** Rtoken_grp4 2.2 * **# lr1-constant-symbols:.** Rtoken_grp3 2.2 * **# lrk-sufx:.** Rtoken_grp4 15.2 * **# name-space:.** Rtoken_grp3 13.2 **27. # op:.** Rtoken_grp4 8.2 **28. # parallel-control-monitor:.** Rtoken_grp3 9.2 **29. # parallel-la-boundary:.** Rtoken_grp3 7.2 **30. # parallel-parser:.** Rtoken_grp3 6.2 **31. # parallel-thread-function:.** Rtoken_grp3 8.2 **32. # raw-characters:.** Rtoken_grp3 1.2 **33. # rules:.** Rtoken_grp4 1.2 **34. # sym-class:.** Rtoken_grp3 14.2 **35. # terminals:.** Rtoken_grp3 10.2 **36. # terminals-refs:.** Rtoken_grp4 13.2 **37. # terminals-suffix:.** Rtoken_grp4 14.2 **38. # user-declaration:.** Rtoken_grp4 3.2 **39. # user-imp-sym:.** Rtoken_grp4 11.2* **40. # user-imp-tbl:.** Rtoken_grp4 10.2 * **41. # user-implementation:.** Rtoken_grp4 9.2 * **42. # user-prefix-declaration:.** Rtoken_grp4 4.2 * **43. # user-suffix-declaration:.** Rtoken_grp4 5.2 * **44. :::.** Rtoken_grp1 7.2 * **45. NS_angled_string:TH_angled_string:.** Rtoken_grp1 2.3 * **46. NS_bad_char_set::TH_bad_char_set::.** Rtoken_grp1 3.3 * **47. NS_c_comments:.** Rtoken_grp1 4.3 * **48. NS_c_literal::TH_c_literal:.** Rtoken_grp1 5.3 * **49. NS_c_string::TH_c_string:.** Rtoken_grp1 6.3 * **50. NS_dbl_colon::TH_dbl_colon:.** Rtoken_grp1 7.3 * **51. NS_eol::TH_eol:.** Rtoken_grp1 8.3 * **52. NS_esc_seq::TH_esc_seq:.** Rtoken_grp1 9.3 **53. NS_identifier::TH_identifier::.** Rtoken_grp1 10.3 **54. NS_int_no::TH_int_no::.** Rtoken_grp1 11.3 **55. NS_o2_code_end::TH_o2_code_end::.** Rtoken_grp1 1.3 **56. NS_unq_str::TH_unq_str::** Rtoken_grp1 13.3 **57. NS_ws::TH_ws::** Rtoken_grp1 12.3 **58. NULL thread:.** Rtoken_grp1 14.3 Rtoken_grp2 1.3 Rtoken_grp2 2.3 Rtoken_grp2 4.3 Rtoken_grp2 5.3 Rtoken_grp2 6.3 Rtoken_grp2 7.3 Rtoken_grp2 8.3 Rtoken_grp2 9.3 Rtoken_grp2 10.3 Rtoken_grp2 11.3 Rtoken_grp2 12.3 Rtoken_grp3 1.3 Rtoken_grp3 2.3 Rtoken_grp3 3.3 Rtoken_grp3 4.3 Rtoken_grp3 5.3 Rtoken_grp3 6.3 Rtoken_grp3 7.3 Rtoken_grp3 8.3 Rtoken_grp3 9.3 Rtoken_grp3 10.3 Rtoken_grp3 11.3 Rtoken_grp3 12.3 Rtoken_grp3 13.3 Rtoken_grp3 13.3 Rtoken_grp3 14.3 Rtoken_grp4 1.3 Rtoken_grp4 2.3 Rtoken_grp4 3.3 Rtoken_grp4 4.3 Rtoken_grp4 5.3 Rtoken_grp4 6.3 Rtoken_grp4 7.3 Rtoken_grp4 8.3 Rtoken_grp4 9.3 Rtoken_grp4 10.3 Rtoken_grp4 11.3 Rtoken_grp4 12.3 Rtoken_grp4 13.3 Rtoken_grp4 14.3 Rtoken_grp4 15.3 Rtoken_grp5 1.3 Rtoken_grp5 2.3 Rtoken_grp5 3.3 **59. Relems:.** Rpass3 2.1 Relems 2.1 **60. Rtoken:.** Relems 1.1 Relems 2.2 **61. Rtoken_grp1:.** Rtoken 1.1 **62. Rtoken_grp2:.** Rtoken 2.1 **63. Rtoken_grp3:.** Rtoken 3.1 **64.** **Rtoken_grp4:.** Rtoken 4.1 **65.** **Rtoken_grp5:.** Rtoken 5.1 **66.** **angled-string:.** Rtoken_grp1 2.2 **67.** **bad char:.** Rtoken_grp1 3.2 **68.** **bad eos:.** Rtoken_grp2 1.2 **69.** **bad esc:.** Rtoken_grp2 3.2 **70.** **c-literal:.** Rtoken_grp1 5.2 **71.** **c-string:.** Rtoken_grp1 6.2 **72.** **comment:.** Rtoken_grp1 4.2 **73.** **comment-overrun:.** Rtoken_grp2 2.2 **74.** **eog:.** Rpass3 1.1 **Rpass3 2.2 **75.** **eol:.** Rtoken_grp1 8.2 **76.** **esc-seq:.** Rtoken_grp1 9.2 **77. identifier:.** Rtoken_grp1 10.2 **78. int-no:.** Rtoken_grp1 11.2 **79. unquoted-string:.** Rtoken_grp1 13.2 **80. ws:.** Rtoken_grp1 12.2 **81. |+|:.** Rtoken_grp5 4.1 **82. |?|:.** Rtoken_grp1 14.2 **83. ||!:.** Rtoken_grp1 1.1 Rtoken_grp1 2.1 Rtoken_grp1 3.1 Rtoken_grp1 4.1 Rtoken_grp1 5.1 Rtoken_grp1 6.1 Rtoken_grp1 7.1 Rtoken_grp1 8.1 Rtoken_grp1 9.1 Rtoken_grp1 10.1 Rtoken_grp1 11.1 Rtoken_grp1 12.1 Rtoken_grp1 13.1 Rtoken_grp1 14.1 Rtoken_grp2 1.1 Rtoken_grp2 2.1 Rtoken_grp2 3.1 Rtoken_grp2 4.1 Rtoken_grp2 5.1 Rtoken_grp2 6.1 Rtoken_grp2 7.1 Rtoken_grp2 8.1 Rtoken_grp2 9.1 Rtoken_grp2 10.1 Rtoken_grp2 11.1 Rtoken_grp2 12.1 Rtoken_grp3 1.1 Rtoken_grp3 2.1 Rtoken_grp3 3.1 Rtoken_grp3 4.1 Rtoken_grp3 5.1 Rtoken_grp3 6.1 Rtoken_grp3 7.1 Rtoken_grp3 8.1 Rtoken_grp3 9.1 Rtoken_grp3 10.1 Rtoken_grp3 11.1 Rtoken_grp3 12.1 Rtoken_grp4 3.1 Rtoken_grp4 4.1 Rtoken_grp4 5.1 Rtoken_grp4 6.1 Rtoken_grp4 7.1 Rtoken_grp4 8.1 Rtoken_grp4 9.1 Rtoken_grp4 10.1 Rtoken_grp4 11.1 Rtoken_grp4 12.1 Rtoken_grp4 13.1 Rtoken_grp4 14.1 Rtoken_grp4 15.1 Rtoken_grp5 2.1 Rtoken_grp5 3.1 **84. Grammar Rules's First Sets.** **85.** _Rpass3 # in set: 3._ eog |+| |||| **86.** _Relems # in set: 2._ |+| |||| **87.** _Rtoken # in set: 2._ |+| |||| **88.** _Rtoken_grp1 # in set: 1._ |||| **89.** _Rtoken_grp2 # in set: 1._ |||| **90.** _Rtoken_grp3 # in set: 1._ |||| **91.** _Rtoken_grp4 # in set: 1._ |||| **92.** _Rtoken_grp5 # in set: 2._ |+| |||| **93.** **LR State Network.** List of productions with their derived LR state lists. Their subrule number and symbol string indicates the specific production being derived. The "p" symbol indicates the production's list of derived states from its closed state. Multiple lists within a production indicate 1 of 2 things: 1) derived string that could not be merged due to a lr(1) conflict 2) partially derived string merged into another derived lr states A partially derived string is indicated by the "merged into" symbol \(\nearrow\)used as a superscript along with the merged into state number. **94.** **Rpass3.** 1 eog \(\triangleright\) 1 2 2 Relems eog \(\triangleright\) 1 63 64 **95.** **Relems.** 1 Rtoken \(\triangleright\) 1 71 2 Relems Rtoken \(\triangleright\) 1 63 65* [96] Rtoken. * [1] Rtoken.grp1 \(\triangleright\) 1 66 \(\triangleright\) 63\({}^{\sim}\)66 * [2] Rtoken.grp2 \(\triangleright\) 1 67 \(\triangleright\) 63\({}^{\sim}\)67 * [3] Rtoken.grp3 \(\triangleright\) 1 68 \(\triangleright\) 63\({}^{\sim}\)68 * [4] Rtoken.grp4 \(\triangleright\) 1 69 \(\triangleright\) 63\({}^{\sim}\)69 * [5] Rtoken.grp5 \(\triangleright\) 1 70 \(\triangleright\) 63\({}^{\sim}\)70 **97.** **Rtoken_grp1.** 1 ||!| #*** NS_o2_code_end::TH_o2_code_end \(\triangleright\) 1 3 18 \(\triangleright\) 63\({}^{\nearrow 3}\) 2 ||!|angled-string NS_angled_string::TH_angled_string \(\triangleright\) 1 3 9 \(\triangleright\) 63\({}^{\nearrow 3}\) 3 ||!|bad char NS_bad_char_set::TH_bad_char_set \(\triangleright\) 1 3 61 \(\triangleright\) 63\({}^{\nearrow 3}\) 4 ||!| comment NS_c_comments::TH_c_comments \(\triangleright\) 1 3 7 \(\triangleright\) 63\({}^{\nearrow 3}\) 5 ||!| c-literal NS_c_literal:TH_c_literal \(\triangleright\) 1 3 10 \(\triangleright\) 63\({}^{\nearrow 3}\) 6 ||!| c-string NS_c_string::TH_c_string \(\triangleright\) 1 3 11 \(\triangleright\) 63\({}^{\nearrow 3}\) 7 ||!| :: NS_dbl_colon::TH_dbl_colon \(\triangleright\) 1 3 57 \(\triangleright\) 63\({}^{\nearrow 3}\) 8 ||!| eol NS_eol::TH_eol \(\triangleright\) 1 3 6 \(\triangleright\) 63\({}^{\nearrow 3}\) 9 ||!| esc-seq NS_esc_seq::TH_esc_seq \(\triangleright\) 1 3 5 \(\triangleright\) 63\({}^{\nearrow 3}\) 10 ||!| identifier NS_identifier::TH_identifier \(\triangleright\) 1 3 13 \(\triangleright\) 63\({}^{\nearrow 3}\) 11 ||!| int-no NS_int_no::TH_int_no \(\triangleright\) 1 3 14 \(\triangleright\) 63\({}^{\nearrow 3}\) 12 ||!| ws NS_ws::TH_ws \(\triangleright\) 1 3 8 \(\triangleright\) 63\({}^{\nearrow 3}\) 13 ||!| unquoted-string NS_unq_str::TH_unq_str \(\triangleright\) 1 3 12 \(\triangleright\) 63\({}^{\nearrow 3}\) 14 ||!| |!| NULL \(\triangleright\) 1 3 4 \(\triangleright\) 63\({}^{\nearrow 3}\) **98.** **Rtoken_grp2.** 1 || | bad eos NULL \(\triangleright\) 1 3 58 \(\triangleright\) 63\({}^{\nearrow 3}\) 2 || | comment-overrun NULL \(\triangleright\) 1 3 60 \(\triangleright\) 63\({}^{\nearrow 3}\) 3 || | bad esc NULL \(\triangleright\) 1 3 59 \(\triangleright\) 63\({}^{\nearrow 3}\) 4 || # fsm NULL \(\triangleright\) 1 3 26 \(\triangleright\) 63\({}^{\nearrow 3}\) 5 || # fsm-id NULL \(\triangleright\) 1 3 27 \(\triangleright\) 63\({}^{\nearrow 3}\) 6 || # fsm-filename NULL \(\triangleright\) 1 3 28 \(\triangleright\) 63\({}^{\nearrow 3}\) 7 || # fsm-namespace NULL \(\triangleright\) 1 3 29 \(\triangleright\) 63\({}^{\nearrow 3}\) 8 || # fsm-class NULL \(\triangleright\) 1 3 30 \(\triangleright\) 63\({}^{\nearrow 3}\) 9 || # fsm-version NULL \(\triangleright\) 1 3 31 \(\triangleright\) 63\({}^{\nearrow 3}\) 10 || # fsm-date NULL \(\triangleright\) 1 3 32 \(\triangleright\) 63\({}^{\nearrow 3}\) 11 || # fsm-debug NULL \(\triangleright\) 1 3 33 \(\triangleright\) 63\({}^{\nearrow 3}\) 12 || # fsm-comments NULL \(\triangleright\) 1 3 34 \(\triangleright\) 63\({}^{\nearrow 3}\) Rtoken\({}^{3}\)\(\qquad\qquad\qquad\qquad\) R\({}_{2\cdot 2\cdot 2\cdot 2}\nearrow^{1}\) S\({}_{1}R_{2}\) Local follow set yield: \(\leftarrow\) Follow set Rule\(\rightarrow\leftarrow\) follow set symbols contributors\(\rightarrow\) Rtoken_grp1\({}^{4}\)\(\qquad\qquad\qquad\) R\({}_{3\cdot 1\cdot 1}\) S\({}_{63}R_{3}\) Local follow set yield: \(\leftarrow\) Follow set Rule\(\rightarrow\leftarrow\) follow set symbols contributors\(\rightarrow\) Rtoken_grp2\({}^{5}\)\(\qquad\qquad\qquad\) R\({}_{3\cdot 2\cdot 1}\) S\({}_{63}R_{3}\) Local follow set yield: \(\leftarrow\) Follow set Rule\(\rightarrow\leftarrow\) follow set symbols contributors\(\rightarrow\) Rtoken_grp3\({}^{6}\)\(\qquad\qquad\) R\({}_{3\cdot 3\cdot 1}\) S\({}_{63}R_{3}\) Local follow set yield: \(\leftarrow\) Follow set Rule\(\rightarrow\leftarrow\) follow set symbols contributors\(\rightarrow\) Rtoken_grp4\({}^{7}\)\(\qquad\qquad\) R\({}_{3\cdot 4\cdot 1}\) S\({}_{63}R_{3}\) Local follow set yield: \(\leftarrow\) Follow set Rule\(\rightarrow\leftarrow\) follow set symbols contributors\(\rightarrow\) Rtoken_grp5\({}^{8}\)\(\qquad\qquad\) R\({}_{3\cdot 5\cdot 1}\) S\({}_{63}R_{3}\) Local follow set yield:104. Common Follow sets. 105. LA set: 1. eolr. 106. LA set: 2. eog, |r|, |+|. **107.** **Index.** R1 --- Rpass3: 94. R2 --- Relems: 95. R3 --- Rtoken: 96. R4 --- Rtoken_grp1: 97. R5 --- Rtoken_grp2: 98. R6 --- Rtoken_grp3: 99. R7 --- Rtoken_grp4: 100. R8 --- Rtoken_grp5: 101. _Relems_: 86. _Rpass3_: 85. _Rtoken_: 87. _Rtoken_grp1_: 88. _Rtoken_grp2_: 89. _Rtoken_grp3_: 90. _Rtoken_grp4_: 91. _Rtoken_grp5_: 92. test_components_idx.w Date: January 14, 2015 at 15:43 File: test_components_idx.w #### Grammar symbols: Used cross reference 1 # ***: # AB: # AD: # NULL: # T-enumeration: # arbitrator-code: # constant-defs: # constructor: # constructor: # constructor: # constructor: # constructor: # error-symbols: # failed: # file-name: # file-name: # fsm: # fsm-class: # fsm-comments: # fsm-date: # fsm-debug: # fsm-filename: # fsm-id: # fsm-namespace: # fsm-version: # lhs: # lr1-constant-symbols: # lrk-suffix: # name-space: # op: # parallel-control-monitor: # parallel-la-boundary: # parallel-parser: # parallel-thread-function: # raw-characters: # rules: # sym-class: # terminals: # terminals-refs: # terminals-sufx: # user-declaration: # user-imp-sym: # user-imp-tbl: # user-implementation: # user-prefix-declaration: # user-suffix-declaration: #...... NS_angled_string::TH_angled_string: # NS_bad_char_set:TH_bad_char_set: # NS_c_comments:TH_c_comments: # NS_c_literal:TH_c_literal: # NS_c_string:TH_c_string: # NS_dbl_colon:TH_dbl_colon: # NS_eol:TH_eol: # NS_esc_seq:TH_esc_seq: ## Chapter 2 Table of contents * NS_identifier::TH_identifier: 53 5 NS_int_no::TH_int_no: 54 5 NS_o2_code_end::TH_o2_code_end: 55 NS_unq_str::TH_unq_str: 56 5 NS_ws::TH_ws: 57 NULL thread: 58 5 Relems: 59 5 Rtoken: 60 5 Rtoken_grp1: 61 5 Rtoken_grp2: 62 5 Rtoken_grp3: 63 5 Rtoken_grp4: 64 6 Rtoken_grp5: 65 6 angled-string: 66 6 6 bad char: 67 6 bad eos: 68 6 bad esc: 69 6 c-literal: 67 0 6 c-string: 68 71 6 comment: 69 comment-overrun: 69 73 6 eog: 68 ec-seq: 69 identifier: 60 71 int-no: 61 unquoted-string: 61 ws: 62 |+|: 63 |?|: 64 |!|: 65 |!|: 66 |!|: 67 **Grammar Rules's First Sets**: _Rpass3 # in set: 3 _Relems # in set: 2 _Rtoken # in set: 2 _Rtoken_grp1 # in set: 1 _Rtoken_grp2 # in set: 1 _Rtoken_grp3 # in set: 1 _Rtoken_grp4 # in set: 1 _Rtoken_grp5 # in set: 2 _Rtoken_grp1 # in set: 1 _Rtoken_grp5 # in set: 2 _Rtoken_grp1 # in set: 2 _Rtoken_grp1 # in set: 2 _Rtoken_grp1 # in set: 2 _Rtoken_grp1 # in set: 2 _Rtoken_grp2 # in set: 2 _Rtoken_grp2 # in set: 2 _Rtoken_grp2 # in set: 2 _Rtoken_grp2 # in set: 2 _Rtoken_grp1 # in set: 2 _Rtoken_grp2 # in set: 2 _Rtoken_grp2test_components_idx.w 105 17 106 17 **Index**:
odo
readthedoc
YAML
odo 0.4.0 documentation [odo](index.html#document-index) --- Odo: Shapeshifting for your data[¶](#odo-shapeshifting-for-your-data) === `odo` takes two arguments, a source and a target for a data transfer. ``` >>> from odo import odo >>> odo(source, target) # load source into target ``` It efficiently migrates data from the source to the target through a network of conversions. Example[¶](#example) --- ``` >>> from odo import odo >>> import pandas as pd >>> odo('accounts.csv', pd.DataFrame) # Load csv file into DataFrame name balance 0 Alice 100 1 Bob 200 2 Charlie 300 >>> # Load CSV file into Hive database >>> odo('accounts.csv', 'hive://user:password@hostname/db::accounts') ``` Contents[¶](#contents) --- ### General[¶](#general) #### Project Information[¶](#project-information) ##### Getting Odo[¶](#getting-odo) * Releases ``` $ conda install odo ``` * Development Packages ``` $ conda install odo -c blaze ``` * PIP ``` $ pip install odo ``` ``` $ pip install git+git://github.com/blaze/odo ``` ##### Source[¶](#source) Odo development takes place on GitHub: <https://github.com/blaze/odo>. ##### Reporting Issues[¶](#reporting-issues) * Bugs and feature requests can be filed [here](https://github.com/blaze/odo/issues). * The [blaze development mailing list](https://groups.google.com/a/continuum.io/d/forum/blaze-dev) is good place to discuss ideas and ask questions about odo. #### Overview[¶](#overview) Odo migrates between many formats. These include in-memory structures like `list`, `pd.DataFrame` and `np.ndarray` and also data outside of Python like CSV/JSON/HDF5 files, SQL databases, data on remote machines, and the Hadoop File System. ##### The `odo` function[¶](#the-odo-function) `odo` takes two arguments, a source and a target for a data transfer. ``` >>> from odo import odo >>> odo(source, target) # load source into target ``` It efficiently migrates data from the source to the target. The target and source can take on the following forms | Source | Target | Example | | --- | --- | --- | | Object | Object | An instance of a `DataFrame` or `list` | | String | String Type | `'file.csv'`, `'postgresql://hostname::tablename'` `list`, `DataFrame` | So the following lines would be valid inputs to `odo` ``` >>> odo(df, list) # create new list from Pandas DataFrame >>> odo(df, []) # append onto existing list >>> odo(df, 'myfile.json') # Dump dataframe to line-delimited JSON >>> odo('myfiles.*.csv', Iterator) # Stream through many CSV files >>> odo(df, 'postgresql://hostname::tablename') # Migrate dataframe to Postgres >>> odo('myfile.*.csv', 'postgresql://hostname::tablename') # Load CSVs to Postgres >>> odo('postgresql://hostname::tablename', 'myfile.json') # Dump Postgres to JSON >>> odo('mongodb://hostname/db::collection', pd.DataFrame) # Dump Mongo to DataFrame ``` Warning If the target in `odo(source, target)` already exists, it must be of a type that supports in-place append. ``` >>> odo('myfile.csv', df) # this will raise TypeError because DataFrame is not appendable ``` ##### Network Effects[¶](#network-effects) To convert data any pair of formats `odo.odo` relies on a network of pairwise conversions. We visualize that network below Each node represents a data format. Each directed edge represents a function to transform data between two formats. A single call to `odo` may traverse multiple edges and multiple intermediate formats. Red nodes support larger-than-memory data. A single call to `odo` may traverse several intermediate formats calling on several conversion functions. These functions are chosen because they are fast, often far faster than converting through a central serialization format. #### URI strings[¶](#uri-strings) Odo uses strings refer to data outside of Python. Some example uris include the following: ``` myfile.json myfiles.*.csv' postgresql://hostname::tablename mongodb://hostname/db::collection ssh://user@host:/path/to/myfile.csv hdfs://user@host:/path/to/myfile.csv ``` ##### What sorts of URI’s does `odo` support?[¶](#what-sorts-of-uri-s-does-odo-support) * Paths to files on disk + `.csv` + `.json` + `.txt/log` + `.csv.gz/json.gz` + `.hdf5` + `.hdf5::/datapath` + `.bcolz` + `.xls(x)` + `.sas7bdat` * Collections of files on disk + `*.csv` * SQLAlchemy strings + `sqlite:////absolute/path/to/myfile.db::tablename` + `sqlite:////absolute/path/to/myfile.db` (specify a particular table) + `postgresql://username:password@hostname:port` + `impala://hostname` (uses `impyla`) + *anything supported by SQLAlchemy* * MongoDB Connection strings + `mongodb://username:password@hostname:port/database_name::collection_name` * Remote locations via SSH, HDFS and Amazon’s S3 + `ssh://user@hostname:/path/to/data` + `hdfs://user@hostname:/path/to/data` + `s3://path/to/data` ##### Separating parts with `::`[¶](#separating-parts-with) Many forms of data have two paths, the path to the file and then the path within the file. For example we refer to the table `accounts` in a Postgres database like so: ``` postgresql://localhost::accounts ``` In this case the separator `::` separates the database `postgreqsl://localhost` from the table within the database, `accounts`. This also occurs in HDF5 files which have an internal datapath: ``` myfile.hdf5::/path/to/data ``` ##### Specifying protocols with `://`[¶](#specifying-protocols-with) The database string sqlite:///data/my.db is specific to SQLAlchemy, but follows a common format, notably: ``` Protocol: sqlite:// Filename: data/my.db ``` Odo also uses protocols in many cases to give extra hints on how to handle your data. For example Python has a few different libraries to handle HDF5 files (`h5py`, `pytables`, `pandas.HDFStore`). By default when we see a URI like `myfile.hdf5` we currently use `h5py`. To override this behavior you can specify a protocol string like: ``` hdfstore://myfile.hdf5 ``` to specify that you want to use the special `pandas.HDFStore` format. *Note:* sqlite strings are a little odd in that they use three slashes by default (e.g. `sqlite:///my.db`) and *four* slashes when using absolute paths (e.g. `sqlite:////Users/Alice/data/my.db`). ##### How it works[¶](#how-it-works) We match URIs by to a collection of regular expressions. This is handled by the `resource` function. ``` >>> from odo import resource >>> resource('sqlite:///data.db::iris') Table('iris', MetaData(bind=Engine(sqlite:///myfile.db)), ...) ``` When we use a string in `odo` this is actually just shorthand for calling `resource`. ``` >>> from odo import odo >>> odo('some-uri', list) # When you write this >>> odo(resource('some-uri'), list) # actually this happens ``` Notably, URIs are just syntactic sugar, you don’t have to use them. You can always construct the object explicitly. Odo invents very few types, preferring instead to use standard projects within the Python ecosystem like `sqlalchemy.Table` or `pymongo.Collection`. If your application also uses these types then it’s likely that `odo` already works with your data. ##### Can I extend this to my own types?[¶](#can-i-extend-this-to-my-own-types) Absolutely. Lets make a little resource function to load pickle files. ``` import pickle from odo import resource @resource.register('.*\.pkl') # match anything ending in .pkl def resource_pickle(uri, **kwargs): with open(uri) as f: result = pickle.load(f) return result ``` You can implement this kind of function for your own data type. Here we just loaded whatever the object was into memory and returned it, a rather simplistic solution. Usually we return an object with a particular type that represents that data well. #### Data Types[¶](#data-types) We can resolve errors and increase efficiency by explicitly specifying data types. Odo uses [DataShape](http://datashape.pydata.org/) to specify datatypes across all of the formats that it supports. First we motivate the use of datatypes with two examples, then we talk about how to use DataShape. ##### Datatypes prevent errors[¶](#datatypes-prevent-errors) Consider the following CSV file: ``` name,balance Alice,100 Bob,200 ... <many more lines> ... Zelda,100.25 ``` When `odo` loads this file into a new container (DataFrame, new SQL Table, etc.) it needs to know the datatypes of the source so that it can create a matching target. If the CSV file is large then it looks only at the first few hundred lines and guesses a datatype from that. In this case it might incorrectly guess that the balance column is of integer type because it doesn’t see a decimal value until very late in the file with the line `Zelda,100.25`. This will cause `odo` to create a target with the wrong datatypes which will foul up the transfer. Odo will err unless we provide an explicit datatype. So we had this datashape: ``` var * {name: string, balance: int64) ``` But we want this one: ``` var * {name: string, balance: float64) ``` ##### Datatypes increase efficiency[¶](#datatypes-increase-efficiency) If we move that same CSV file into a binary store like HDF5 then we can significantly increase efficiency if we use fixed-length strings rather than variable length. So we might choose to push all of the names into strings of length `100` instead of leaving their lengths variable. Even with the wasted space this is often more efficient. Good binary stores can often compress away the added space but have trouble managing things of indeterminate length. So we had this datashape: ``` var * {name: string, balance: float64} ``` But we want this one: ``` var * {name: string[100], balance: float64} ``` ##### What is DataShape?[¶](#what-is-datashape) DataShape is a datatype system that includes scalar types: ``` string, int32, float64, datetime, ... ``` Option / missing value types: ``` ?string, ?int32, ?float64, ?datetime, ... ``` Fixed length Collections: ``` 10 * int64 ``` Variable length Collections: ``` var * int64 ``` Record types: ``` {name: string, balance: float64} ``` And any composition of the above: ``` 10 * 10 * {x: int32, y: int32} var * {name: string, payments: var * {when: ?datetime, amount: float32}} ``` ##### DataShape and `odo`[¶](#datashape-and-odo) If you want to be explicit you can add a datashape to an `odo` call with the `dshape=` keyword ``` >>> odo('accounts.csv', pd.DataFrame, ... dshape='var * {name: string, balance: float64}') ``` This removes all of the guesswork from the `odo` heuristics. This can be necessary in tricky cases. ##### Use `discover` to get approximate datashapes[¶](#use-discover-to-get-approximate-datashapes) We rarely write out a full datashape by hand. Instead, use the `discover` function to get the datashape of an object. ``` >>> import numpy as np >>> from odo import discover >>> x = np.ones((5, 6), dtype='f4') >>> discover(x) dshape("5 * 6 * float32") ``` In self describing formats like numpy arrays this datashape is guaranteed to be correct and will return very quickly. In other cases like CSV files this datashape is only a guess and might need to be tweaked. ``` >>> from odo import odo, resource, discover >>> csv = resource('accounts.csv') # Have to use resource to discover URIs >>> discover(csv) dshape("var * {name: string, balance: int64}") >>> ds = dshape("var * {name: string, balance: float64") # copy-paste-modify >>> odo('accounts.csv', pd.DataFrame, dshape=ds) ``` In these cases we can copy-paste the datashape and modify the parts that we need to change. In the example above we couldn’t call `discover` directly on the URI, `'accounts.csv'`, so instead we called `resource` on the URI first. `discover` returns the datashape `string` on all strings, regardless of whether or not we intend them to be URIs. ##### Learn More[¶](#learn-more) DataShape is a separate project from `odo`. You can learn more about it at <http://datashape.pydata.org/#### Drop[¶](#drop) The `odo.drop` function deletes a data resource. That data resource may live outside of Python. ##### Examples[¶](#examples) ``` >>> from odo import drop >>> drop('myfile.csv') # Removes file >>> drop('sqlite:///my.db::accounts') # Drops table 'accounts' >>> drop('myfile.hdf5::/data/path') # Deletes dataset from file >>> drop('myfile.hdf5') # Deletes file ``` #### Loading CSVs into SQL Databases[¶](#loading-csvs-into-sql-databases) When faced with the problem of loading a larger-than-RAM CSV into a SQL database from within Python, many people will jump to pandas. The workflow goes something like this: ``` >>> import sqlalchemy as sa >>> import pandas as pd >>> con = sa.create_engine('postgresql://localhost/db') >>> chunks = pd.read_csv('filename.csv', chunksize=100000) >>> for chunk in chunks: ... chunk.to_sql(name='table', if_exist='append', con=con) ``` There is an unnecessary and very expensive amount of data conversion going on here. First we convert our CSV into an iterator of DataFrames, then those DataFrames are converted into Python data structures compatible with SQLAlchemy. Those Python objects then need to be serialized in a way that’s compatible with the database they are being sent to. Before you know it, more time is spent converting data and serializing Python data structures than on reading data from disk. ##### Use the technology that has already solved your problem well[¶](#use-the-technology-that-has-already-solved-your-problem-well) Loading CSV files into databases is a solved problem. It’s a problem that has been solved well. Instead of rolling our own loader every time we need to do this and wasting computational resources, we should use the native loaders in the database of our choosing. Odo lets you do this with a single line of code. ##### How does odo achieve native database loading speed?[¶](#how-does-odo-achieve-native-database-loading-speed) Odo uses the native CSV loading capabilities of the databases it supports. These loaders are extremely fast. Odo will beat any other pure Python approach when loading large datasets. The following is a performance comparison of loading the entire NYC taxi trip and fare combined dataset (about 33GB of text) into PostgreSQL, MySQL, and SQLite3 using odo. Our baseline for comparison is pandas. **NB:** I’m happy to hear about other optimizations that I may not be taking advantage of. ##### Timings[¶](#timings) ###### CSV → PostgreSQL (22m 64s)[¶](#csv-postgresql-22m-64s) * READS: ~50 MB/s * WRITES: ~50 MB/s The `COPY` command built into postgresql is quite fast. Odo generates code for the `COPY` command using a custom SQLAlchemy expression. ``` In [1]: %time t = odo('all.csv', 'postgresql://localhost::nyc') CPU times: user 1.43 s, sys: 330 ms, total: 1.76 s Wall time: 22min 46s ``` ###### PostgreSQL → CSV (21m 32s)[¶](#postgresql-csv-21m-32s) Getting data out of the database takes roughly the same amount of time as loading it in. ###### `pg_bulkload` Command Line Utility (13m 17s)[¶](#pg-bulkload-command-line-utility-13m-17s) * READS: ~50 MB/s * WRITES: ~50 MB/s A special command line tool called `pg_bulkload` exists solely for the purpose of loading files into a postgresql table. It achieves its speedups by disabling WAL (write ahead logging) and buffering. Odo doesn’t use this (yet) because the installation requires several steps. There are also implications for data integrity when turning off WAL. ``` $ time ./pg_bulkload nyc2.ctl < all.csv NOTICE: BULK LOAD START NOTICE: BULK LOAD END 1 Rows skipped. 173179759 Rows successfully loaded. 0 Rows not loaded due to parse errors. 0 Rows not loaded due to duplicate errors. 0 Rows replaced with new rows. ./pg_bulkload nyc2.ctl < all.csv 26.14s user 33.31s system 7% cpu 13:17.31 total ``` ###### CSV → MySQL (20m 49s)[¶](#csv-mysql-20m-49s) ``` In [1]: %time t = odo('all.csv', 'mysql+pymysql://localhost/test::nyc') CPU times: user 1.32 s, sys: 304 ms, total: 1.63 s Wall time: 20min 49s ``` * READS: ~30 MB/s * WRITES: ~150 MB/s ###### MySQL → CSV (17m 47s)[¶](#mysql-csv-17m-47s) ``` In [1]: %time csv = odo('mysql+pymysql://localhost/test::nyc', 'nyc.csv') CPU times: user 1.03 s, sys: 259 ms, total: 1.29 s Wall time: 17min 47s ``` * READS: ~30 MB/s * WRITES: ~30 MB/s Similar to PostgreSQL, MySQL takes roughly the same amount of time to write a CSV as it does to load it into a table. ###### CSV → SQLite3 (57m 31s*)[¶](#csv-sqlite3-57m-31s) ``` In [1]: dshape = discover(resource('all.csv')) In [2]: %time t = odo('all.no.header.csv', 'sqlite:///db.db::nyc', ...: dshape=dshape) CPU times: user 3.09 s, sys: 819 ms, total: 3.91 s Wall time: 57min 31s ``` * Here, we call `discover` on a version of the dataset that has the header in the first line and we use a version of the dataset *without* the header line in the sqlite3 `.import` command. This is sort of cheating, but I wanted to see what the loading time of sqlite3’s import command was without the overhead of creating a new file without the header line. ###### SQLite3 → CSV (46m 43s)[¶](#sqlite3-csv-46m-43s) * READS: ~15 MB/s * WRITES: ~13 MB/s ``` In [1]: %time t = odo('sqlite:///db.db::nyc', 'nyc.csv') CPU times: user 2.7 s, sys: 841 ms, total: 3.55 s Wall time: 46min 43s ``` ###### Pandas[¶](#pandas) * READS: ~60 MB/s * WRITES: ~3-5 MB/s I didn’t actually finish this timing because a single iteration of inserting 1,000,000 rows took about 4 minutes and there would be 174 such iterations bringing the total loading time to: ``` .. code-block:: python ``` ``` >>> 175 * 4 / 60.0 11.66... ``` 11.66 **hours**! Nearly *12* hours to insert 175 million rows into a postgresql database. The next slowest database (SQLite) is still **11x** faster than reading your CSV file into pandas and then sending that `DataFrame` to PostgreSQL with the `to_pandas` method. ###### Final Thoughts[¶](#final-thoughts) For getting CSV files into the major open source databases from within Python, nothing is faster than odo since it takes advantage of the capabilities of the underlying database. Don’t use pandas for loading CSV files into a database. #### Adding a new Backend[¶](#adding-a-new-backend) Q: *How do I add new nodes to the odo graph?* ##### Extend Functions[¶](#extend-functions) We extend Odo by implementing a few functions for each new type * `discover` - Return the [DataShape](datashape.html) of an object * `convert` - Convert data to new type * `append` - Append data on to existing data source * `resource` - Identify data by a string URI We extend each of these by writing new small functions that we decorate with types. Odo will then pick these up, integrate them in to the network, and use them when appropriate. ##### Discover[¶](#discover) Discover returns the [DataShape](datashape.html) of an object. Datashape is a potentially nested combination of shape and datatype. It helps us to migrate metadata consistently as we migrate the data itself. This enables us to emerge with the right dtypes even if we have to transform through potentially lossy formats. ###### Example[¶](#example) ``` >>> discover([1, 2, 3]) dshape("3 * int32") >>> import numpy as np >>> x = np.empty(shape=(3, 5), dtype=[('name', 'O'), ('balance', 'f8')]) >>> discover(x) dshape("3 * 5 * {name: string, balance: float64}") ``` ###### Extend[¶](#extend) We import `discover` from the `datashape` library and extend it with a type. ``` from datashape import discover, from_numpy @discover(pd.DataFrame) def discover_dataframe(df, **kwargs): shape = (len(df),) dtype = df.values.dtype return from_numpy(shape, dtype) ``` In this simple example we rely on convenience functions within datashape to form a datashape from a numpy shape and dtype. For more complex situations (e.g. databases) it may be necessary to construct datashapes manually. ##### Convert[¶](#convert) Convert copies your data in to a new object with a different type. ###### Example[¶](#id1) ``` >>> x = np.arange(5) >>> x array([0, 1, 2, 3, 4]) >>> convert(list, x) [0, 1, 2, 3, 4] >>> import pandas as pd >>> convert(pd.Series, x) 0 0 1 1 2 2 3 3 4 4 dtype: int64 ``` ###### Extend[¶](#id2) Import convert from `odo` and register it with two types, one for the target and one for the source ``` from odo import convert @convert.register(list, np.ndarray) def array_to_list(x, **kwargs): return x.tolist() @convert.register(pd.Series, np.ndarray) def array_to_series(x, **kwargs): return pd.Series(x) ``` ##### Append[¶](#append) Append copies your data in to an existing dataset. ###### Example[¶](#id3) ``` >>> x = np.arange(5) >>> x array([0, 1, 2, 3, 4]) >>> L = [10, 20, 30] >>> _ = append(L, x) >>> L [10, 20, 30, 0, 1, 2, 3, 4] ``` ###### Extend[¶](#id4) Import append from `odo` and register it with two types, one for the target and one for the source. Usually we teach `odo` how to append from one preferred type and then use convert for all others ``` from odo import append @append.register(list, list) def append_list_to_list(tgt, src, **kwargs): tgt.extend(src) return tgt @append.register(list, object) # anything else def append_anything_to_list(tgt, src, **kwargs): source_as_list = convert(list, src, **kwargs) return append(tgt, source_as_list, **kwargs) ``` ##### Resource[¶](#resource) Resource creates objects from string URIs matched against regular expressions. ###### Example[¶](#id5) ``` >>> resource('myfile.hdf5') <HDF5 file "myfile.hdf5" (mode r+)>>> resource('myfile.hdf5::/data', dshape='10 * 10 * int32') <HDF5 dataset "data": shape (10, 10), type "<i4"> ``` The objects it returns are `h5py.File` and `h5py.Dataset` respectively. In the second case resource found that the dataset did not exist so it created it. ###### Extend[¶](#id6) We import `resource` from `odo` and register it with regular expressions ``` from odo import resource import h5py @resource.register('.*\.hdf5') def resource(uri, **kwargs): return h5py.File(uri) ``` ##### General Notes[¶](#general-notes) We pass all keyword arguments from the top-level call to `odo` to *all* functions. This allows special keyword arguments to trickle down to the right place, e.g. `delimiter=';'` makes it to the `pd.read_csv` call when interacting with CSV files, but also means that all functions that you write must expect and handle unwanted keyword arguments. This often requires some filtering on your part. Even though all four of our abstract functions have a `.register` method they operate in very different ways. Convert is managed by networkx and path finding, `append` and `discover` are managed by [multipledispatch](http://github.com/mrocklin/multipledispatch), and `resource` is managed by regular expressions. Examples are useful. You may want to look at some of the `odo` source for simple backends for help > <https://github.com/blaze/odo/tree/master/odo/backends#### Release Notes[¶](#release-notes) ##### Release 0.3.4[¶](#release-0-3-4) | Release: | 0.3.4 | | Date: | September 15, 2015 | ##### New Features[¶](#new-features) * Added support for Spark 1.4 on Python 2.7 and Python 3.4 ([#294](https://github.com/blaze/odo/issues/294)) ##### Experimental Features[¶](#experimental-features) Warning Experimental features are subject to change. * Add support for specifying primary and foreign key relationships in the SQL backend ([#274](https://github.com/blaze/odo/issues/274)). ##### New Backends[¶](#new-backends) None ##### Improved Backends[¶](#improved-backends) * Dialect discovery on CSV files now samples a subset of the file. This allows S3(CSV) to have correct values for its dialect ([#293](https://github.com/blaze/odo/issues/293)). * Loading a set of files on a s3 bucket with a prefix into a redshift database now works ([#293](https://github.com/blaze/odo/issues/293)). ##### API Changes[¶](#api-changes) None ##### Bug Fixes[¶](#bug-fixes) * Cope with Dask and bcolz API changes ([#270](https://github.com/blaze/odo/issues/270)). * Fixed a bug where columns in dshape were being ignored when converting a numpy array to a DataFrame ([#273](https://github.com/blaze/odo/issues/273)). * Fix appending into a sql table from chunks not returning the table. ([#278](https://github.com/blaze/odo/issues/278)). * Fix a bug where `'pytables://'` wasn’t being properly stripped off the URI ([#292](https://github.com/blaze/odo/issues/292)) * Fix a bug where a non-existent header row was being removed from an S3(CSV) because the dialect was set incorrectly ([#293](https://github.com/blaze/odo/issues/293)) * Fix a bug where the SparkSQL backend wouldn’t work if we didn’t have paramiko installed ([#300](https://github.com/blaze/odo/issues/300)) * Fix a testing bug where the endlines were being compared and they shouldn’t have been ([#312](https://github.com/blaze/odo/issues/312)). * Fix a bug where sniffing multibyte encodings potentially chopped off part of the encoded string ([#309](https://github.com/blaze/odo/issues/309), [#311](https://github.com/blaze/odo/issues/311)). ##### Miscellaneous[¶](#miscellaneous) * Adds `copydoc()` function to copy docstrings from one object onto another. This helps with the pattern of explicitly setting the `__doc__` attribute to the `__doc__` of another function or class. This function can be used as a decorator like: `@copydoc(FromThisClass)` or as a function like: `copydoc(FromThisClass, to_this_function)`. ([#277](https://github.com/blaze/odo/issues/277)). ##### Release 0.3.3[¶](#release-0-3-3) | Release: | 0.3.3 | | Date: | July 7th, 2015 | ##### New Backends[¶](#id1) None ##### Improved Backends[¶](#id2) * Implement SQL databases to CSV conversion using native the database dump ([#174](https://github.com/blaze/odo/issues/174), [#189](https://github.com/blaze/odo/issues/189), [#191](https://github.com/blaze/odo/issues/191), [#199](https://github.com/blaze/odo/issues/199)). * Improve CSV header existence inference ([#192](https://github.com/blaze/odo/issues/192)). * Non-standard schemas can be passed into `resource()` with the `schema` argument ([#223](https://github.com/blaze/odo/issues/223)). ##### API Changes[¶](#id3) * `unicode` strings can be passed in as URIs to `resource()` ([#212](https://github.com/blaze/odo/issues/212)). ##### Bug Fixes[¶](#id4) * Fixed writing compressed CSVs in Python 3 and Windows ([#188](https://github.com/blaze/odo/issues/188), [#190](https://github.com/blaze/odo/issues/190)). * Dask API changes ([#226](https://github.com/blaze/odo/issues/226)). * Fix some tests that would fail on binstar because they weren’t properly skipped ([#216](https://github.com/blaze/odo/issues/216)). * PyTables API compatibility when given a integer valued float ([#236](https://github.com/blaze/odo/issues/236)). * Default to `None` when plucking and a key isn’t found ([#228](https://github.com/blaze/odo/issues/228)). * Fix gzip dispatching on JSON discovery ([#243](https://github.com/blaze/odo/issues/243)). * `~odo.chunks.Chunks` wrapping iterators can now be discovered without consuming the first element. ### Formats[¶](#formats) #### AWS[¶](#aws) ##### Dependencies[¶](#dependencies) * [boto](http://boto.readthedocs.org) * [sqlalchemy](http://docs.sqlalchemy.org/en/rel_0_9) * [psycopg2](http://initd.org/psycopg) * [redshift_sqlalchemy](https://github.com/cpcloud/redshift_sqlalchemy) ##### Setup[¶](#setup) First, you’ll need some AWS credentials. Without these you can only access public S3 buckets. Once you have those, S3 interaction will work. For other services such as Redshift, the [setup is a bit more involved](http://docs.aws.amazon.com/redshift/latest/gsg/getting-started.html). Once you have some AWS credentials, you’ll need to put those in a config file. Boto has a nice [doc page](http://boto.readthedocs.org/en/latest/boto_config_tut.html) on how to set this up. Now that you have a boto config, we’re ready to interact with AWS. ##### Interface[¶](#interface) `odo` provides access to the following AWS services: * [S3](http://aws.amazon.com/s3) via boto. * [Redshift](http://aws.amazon.com/redshift) via a [SQLAlchemy dialect](https://github.com/cpcloud/redshift_sqlalchemy) ##### URIs[¶](#uris) To access an S3 bucket, simply provide the path to the S3 bucket prefixed with `s3://` > ``` > >>> csvfile = resource('s3://bucket/key.csv') > ``` Accessing a Redshift database is the same as accessing it through SQLAlchemy > ``` > >>> db = resource('redshift://user:pass@host:port/database') > ``` To access an individual table simply append `::` plus the table name > ``` > >>> table = resource('redshift://user:pass@host:port/database::table') > ``` ##### Conversions[¶](#conversions) `odo` can take advantage of Redshift’s fast S3 `COPY` command. It works transparently. For example, to upload a local CSV file called `users.csv` to a Redshift table > ``` > >>> table = odo('users.csv', 'redshift://user:pass@host:port/db::users') > ``` Remember that these are just additional nodes in the `odo` network, and as such, they are able to take advantage of conversions to types that don’t have an explicit path defined for them. This allows us to do things like convert an S3 CSV to a pandas DataFrame > ``` > >>> import pandas as pd > >>> from odo import odo > >>> df = odo('s3://mybucket/myfile.csv', pd.DataFrame) > ``` ##### TODO[¶](#todo) * Multipart uploads for huge files * GZIP’d files * JSON to Redshift (JSONLines would be easy) * boto `get_bucket` hangs on Windows #### CSV[¶](#csv) Odo interacts with local CSV files through Pandas. ##### URIs[¶](#uris) CSV URI’s are their paths/filenames Simple examples of CSV uris: ``` myfile.csv /path/to/myfile.csv.gz ``` ##### Keyword Arguments[¶](#keyword-arguments) The standard csv dialect terms are usually supported: ``` has_header=True/False/None encoding delimiter doublequote escapechar lineterminator quotechar quoting skipinitialspace ``` However these or others may be in effect depending on what library is interacting with your file. Oftentimes this is the `pandas.read_csv` function, which has an extensive [list of keyword arguments](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.io.parsers.read_csv.html) ##### Conversions[¶](#conversions) The default paths in and out of CSV files is through Pandas DataFrames. Because CSV files might be quite large it is dangerous to read them directly into a single DataFrame. Instead we convert them to a stream of medium sized DataFrames. We call this type `chunks(DataFrame)`.: ``` chunks(DataFrame) <-> CSV ``` CSVs can also be efficiently loaded into SQL Databases: ``` CSV -> SQL ``` #### JSON[¶](#json) Odo interacts with local JSON files through the standard `json` library. ##### URIs[¶](#uris) JSON URI’s are their paths/filenames Simple examples of JSON uris: ``` myfile.json /path/to/myfile.json.gz ``` ##### Line Delimited JSON[¶](#line-delimited-json) Internally `odo` can deal with both traditional “single blob per file” JSON as well as line-delimited “one blob per line” JSON. We inspect existing files to see which format it is. On new files we default to line-delimited however this can be overruled by using the following protocols: ``` json://myfile.json # traditional JSON jsonlines://myfile.json # line delimited JSON ``` ##### Conversions[¶](#conversions) The default paths in and out of JSON files is through Python iterators of dicts.: ``` JSON <-> Iterator ``` #### HDF5[¶](#hdf5) The Hierarchical Data Format is a binary, self-describing format, supporting regular strided and random access. There are three main options in Python to interact with HDF5 * [h5py](http://www.h5py.org/) - an unopinionated reflection of the HDF5 library * [pytables](http://pytables.github.io/index.html) - an opinionated version, adding extra features and conventions * [pandas.HDFStore](http://pandas.pydata.org/pandas-docs/stable/io.html#hdf5-pytables) - a commonly used format among Pandas users. All of these libraries create and read HDF5 files. Unfortunately some of them have special conventions that can only be understood by their library. So a given HDF5 file created some of these libraries may not be well understood by the others. ##### Protocols[¶](#protocols) If given an explicit object (not a string uri), like an `h5py.Dataset`, `pytables.Table` or `pandas.HDFStore` then the `odo` project can intelligently decide what to do. If given a string, like `myfile.hdf5::/data/path` then `odo` defaults to using the vanilla `h5py` solution, the least opinionated of the three. You can specify that you want a particular format with one of the following protocols * `h5py://` * `pytables://` * `hdfstore://` ##### Limitations[¶](#limitations) Each library has limitations. * H5Py does not like datetimes * PyTables does not like variable length strings, * Pandas does not like non-tabular data (like `ndarrays`) and, if users don’t select the `format='table'` keyword argument, creates HDF5 files that are not well understood by other libraries. Our support for PyTables is admittedly weak. We would love contributions here. ##### URIs[¶](#uris) A URI to an HDF5 dataset includes a filename, and a datapath within that file. Optionally it can include a protocol Examples of HDF5 uris: ``` myfile.hdf5::/data/path hdfstore://myfile.h5::/data/path ``` ##### Conversions[¶](#conversions) The default paths in and out of HDF5 files include sequences of Pandas `DataFrames` and sequences of NumPy `ndarrays`.: ``` h5py.Dataset <-> chunks(np.ndarray) tables.Table <-> chunks(pd.DataFrame) pandas.AppendableFrameTable <-> chunks(pd.DataFrame) pandas.FrameFixed <-> DataFrame ``` #### Hadoop File System[¶](#hadoop-file-system) Odo interacts with the Hadoop File System using WebHDFS and the `pywebhdfs` Python lirary. ##### URIs[¶](#uris) HDFS uris consist of the `hdfs://` protocol, a hostname, and a filename. Simple and complex examples follow: ``` hdfs://hostname:myfile.csv hdfs://username@hostname:/path/to/myfile.csv ``` Alternatively you may want to pass authentication information through keyword arguments to the `odo` function as in the following example ``` >>> from odo import odo >>> odo('localfile.csv', 'hdfs://hostname:myfile.csv', ... port=14000, user='hdfs') ``` We pass through authentication keyword arguments to the `pywebhdfs.webhdfs.PyWebHdfsClient` class, using the following defaults: ``` user_name='hdfs' host=None port='14000' ``` ##### Constructing HDFS Objects explicitly[¶](#constructing-hdfs-objects-explicitly) Most users usually interact with `odo` using URI strings. Alternatively you can construct objects programmatically. HDFS uses the `HDFS` type modifier ``` >>> auth = {'user': 'hdfs', 'port': 14000, 'host': 'hostname'} >>> data = HDFS(CSV)('/user/hdfs/data/accounts.csv', **auth) >>> data = HDFS(JSONLines)('/user/hdfs/data/accounts.json', **auth) >>> data = HDFS(Directory(CSV))('/user/hdfs/data/', **auth) ``` ##### Conversions[¶](#conversions) We can convert any text type (`CSV, JSON, JSONLines, TextFile`) to its equivalent on HDFS (`HDFS(CSV), HDFS(JSON), ...`). The `odo` network allows conversions from other types, like a pandas dataframe to a CSV file on HDFS, by routing through a temporary local csv file.: ``` HDFS(*) <-> * ``` Additionally we know how to load HDFS files into the Hive metastore: ``` HDFS(Directory(CSV)) -> Hive ``` The network also allows conversions from other types, like a pandas `DataFrame` to an HDFS CSV file, by routing through a temporary local csv file.: ``` Foo <-> Temp(*) <-> HDFS(*) ``` #### Hive Metastore[¶](#hive-metastore) The Hive metastore relates SQL metadata to files on the Hadoop File System ([HDFS](hdfs.html)). It is similar to a SQL database in that it contains information about SQL tables but dissimilar in that data isn’t stored in Hive but remains ordinary files on HDFS. Odo interacts with Hive mostly through `sqlalchemy` and also with a bit of custom code due to its peculiarities. ##### URIs[¶](#uris) Hive uris match exactly SQLAlchemy connection strings with the `hive://` protocol. Additionally, Impala, another SQL database on HDFS can also connect to the same tables. ``` hive://hostname hive://user@hostname:port/database-name hive://user@hostname:port/database-name::table-name impala://hostname::table-name ``` Additionally you should probably inspect docs on [HDFS](hdfs.html) due to the tight integration between the two. ##### Options[¶](#options) Hive tables have a few non-standard options on top of normal SQL: ``` stored_as - File format on disk like TEXTFILE, PARQUET, ORC path - Absolute path to file location on HDFS external=True - Whether to keep the file external or move it to Hive directory ``` See [Hive DDL](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL) docs for more information. ##### Conversions[¶](#conversions) We commonly load CSV files in to Hive, either from HDFS or from local disk on one of the machines that comprise the HDFS cluster: ``` HDFS(Directory(CSV)) -> Hive SSH(Directory(CSV)) -> Hive SSH(CSV) -> Hive ``` Additionally we can use Hive to efficiently migrate this data to new data in a different format: ``` Hive -> Hive ``` And as with all SQL systems through SQLAlchemy we can convert a Hive table to a Python Iterator, though this is somewhat slow: ``` Hive -> Iterator ``` ##### Impala[¶](#impala) Impala operates on the same data as Hive, is generally faster, though also has a couple of quirks. While Impala connects to the same metastore it must connect to one of the worker nodes, not the same head node to which Hive connects. After you load data in to hive you need to send the `invalidate metadata` to Impala. ``` >>> odo('hdfs://hostname::/path/to/data/*.csv', 'hive://hostname::table') >>> imp = resource('impala://workernode') >>> imp.connect().execute('invalidate metadata') ``` This is arguably something that `odo` should handle in the future. After this, all tables in Hive are also available to Impala. You may want to transform your data in to Parquet format for efficient querying. A two minute query on Hive in CSV might take one minute on Hive in Parquet and only three seconds in Impala in Parquet. ``` >>> odo('hive://hostname::table', 'hive://hostname::table_parquet', ... external=False, stored_as='PARQUET') ``` #### Mongo[¶](#mongo) Odo interacts with Mongo databases through PyMongo. ##### URIs[¶](#uris) Simple and complex examples of MongoDB uris: ``` mongodb://localhost/mydb::mycollection mongodb://user:password@localhost:port/mydb::mycollection ``` ##### Conversions[¶](#conversions) The default path in and out of a Mongo database is to use the PyMongo library to produce and consume iterators of Python dictionaries.: ``` pymongo.Collection <-> Iterator ``` #### Spark/SparkSQL[¶](#spark-sparksql) ##### Dependencies[¶](#dependencies) * [spark](https://spark.apache.org/docs/1.2.0/index.html) * [pyhive](https://github.com/dropbox/PyHive) * [sqlalchemy](http://docs.sqlalchemy.org/en/rel_0_9) ##### Setup[¶](#setup) We recommend you install Spark via `conda` from the `blaze` [binstar](http://www.binstar.org) channel: ``` $ conda install pyhive spark -c blaze ``` The package works well on Ubuntu Linux and Mac OS X. Other issues may arise when installing this package on a non-Ubuntu Linux distro. There’s a [known issue](https://github.com/quasiben/backend-recipes/issues/1) with Arch Linux. ##### Interface[¶](#interface) Spark diverges a bit from other areas of `odo` due to the way it works. With Spark, all objects are attached to a special object called `SparkContext`. There can only be *one* of these running at a time. In contrast, SparkSQL objects all live inside of *one or more* `SQLContext` objects. `SQLContext` objects must be attached to a `SparkContext`. Here’s an example of how to setup a `SparkContext`: ``` >>> from pyspark import SparkContext >>> sc = SparkContext('app', 'local') ``` Next we create a `SQLContext`: ``` >>> from pyspark.sql import SQLContext >>> sql = SQLContext(sc) # from the previous code block ``` From here, you can start using `odo` to create `SchemaRDD` objects, which are the SparkSQL version of a table: ``` >>> from odo import odo >>> data = [('Alice', 300.0), ('Bob', 200.0), ('Donatello', -100.0)] >>> type(sql) <class 'pyspark.sql.SQLContext'> >>> srdd = odo(data, sql, dshape='var * {name: string, amount: float64}') >>> type(srdd) <class 'pyspark.sql.SchemaRDD'> ``` Note the type of `srdd`. Usually `odo(A, B)` will return an instance of `B` if `B` is a `type`. With Spark and SparkSQL, we need to attach whatever we make to a context, so we “append” to an existing `SparkContext`/`SQLContext`. Instead of returning the context object, `odo` will return the `SchemaRDD` that we just created. This makes it more convenient to do things with the result. This functionality is nascent, so try it out and don’t hesitate to [report a bug or request a feature](https://github.com/blaze/into/issues/new)! ##### URIs[¶](#uris) URI syntax isn’t currently implemented for Spark objects. ##### Conversions[¶](#conversions) The main paths into and out of `RDD` and `SchemaRDD` are through Python `list` objects: ``` RDD <-> list SchemaRDD <-> list ``` Additionally, there’s a specialized one-way path for going directly to `SchemaRDD` from `RDD`: ``` RDD -> SchemaRDD ``` ##### TODO[¶](#todo) * Resource/URIs * Native loaders for JSON and possibly CSV * HDFS integration #### SAS[¶](#sas) Odo interacts with local sas7bdat files through [sas7bdat](https://pypi.python.org/pypi/sas7bdat). ##### URIs[¶](#uris) SAS URI’s are their paths/filenames Simple examples of SAS uris: ``` myfile.sas7bdat /path/to/myfile.sas7bdat ``` ##### Conversions[¶](#conversions) The default paths out of SAS files is through Python iterators and Pandas DataFrames. > SAS7BDAT -> Iterator > SAS7BDAT -> pd.DataFrame This is a closed file format with nice but incomplete support from the [sas7bdat](https://pypi.python.org/pypi/sas7bdat) Python library. You should not expect comprehensive coverage. #### SQL[¶](#sql) Odo interacts with SQL databases through SQLAlchemy. As a result, `odo` supports all databases that SQLAlchemy supports. Through third-party extensions, SQLAlchemy supports *most* databases. Warning When putting an array-like object such as a NumPy array into a database you *must* provide the column names in the form of a Record datashape. Note Without column names, it doesn’t make sense to put an array into a database table, since a database table doesn’t make sense without named columns. The inability to put an array with unnamed columns into a database is intentional. Here’s a failing example: ``` >>> import numpy as np >>> from odo import odo >>> x = np.zeros((10, 2)) >>> t = odo(x, 'sqlite:///db.db::x') # this will NOT work Traceback (most recent call last): ... TypeError: dshape measure must be a record type e.g., "{a: int64, b: int64}". Input measure is ctype("float64") ``` Here’s what to do instead: ``` >>> t = odo(x, 'sqlite:///db.db::x', # works because columns are named >>> ... dshape='var * {a: float64, b: float64}') ``` ##### URIs[¶](#uris) Simple and complex examples of SQL uris: ``` postgresql://localhost::accounts postgresql://username:[email protected]:10000/default::accounts ``` SQL uris consist of the following * dialect protocol: `postgresql://` * Optional authentication information: `username:password@` * A hostname or network location with optional port: `54.252.14.53:10000` * Optional database/schema name: `/default` * A table name with the `::` separator: `::accounts` ##### Executing Odo Against Databases[¶](#executing-odo-against-databases) Sqlalchemy allows objects to be bound to a particular database connection. This is known as the ‘bind’ of the object, or that the object is ‘bound’. By default, odo expects to be working with either bound sqlalchemy objects or uris to tables. For example, when working with a sqlalchemy object, one must be sure to pass a bound metadata to the construction of your tables. ``` >>> import sqlalchemy as sa >>> sa.MetaData() >>> tbl = sa.Table( ... 'tbl', ... metadata, ... sa.Column('a', sa.Integer, primary_key=True), ... ) >>> odo([[1], [2], [3]], tbl, dshape='var * {a: int}') # this will NOT work Traceback (most recent call last): ... UnboundExecutionError: Table object 'tbl' is not bound to an Engine or Connection. Execution can not proceed without a database to execute against. ``` We have two options for binding metadata to objects, we can explicitly bind our tables, or we can pass it to odo as a keyword argument. Here is an example of constructing the table with a bound metadata: ``` >>> import sqlalchemy as sa >>> metadata = sa.MetaData(bind='sqlite:///db.db') # NOTE: pass the uri to the db here >>> tbl = sa.Table( ... 'tbl', ... metadata, ... sa.Column('a', sa.Integer, primary_key=True), ... ) >>> odo([[1], [2], [3]], tbl) # this know knows where to field the table. ``` Here is an example of passing the bind to odo: ``` >>> import sqlalchemy as sa >>> sa.MetaData() >>> tbl = sa.Table( ... 'tbl', ... metadata, ... sa.Column('a', sa.Integer, primary_key=True), ... ) >>> bind = 'sqlite:///db.db' >>> odo([[1], [2], [3]], tbl, dshape='var * {a: int}', bind=bind) # pass the bind to odo here ``` Here, the bind may be either a uri to a database, or a sqlalchemy Engine object. ##### Conversions[¶](#conversions) The default path in and out of a SQL database is to use the SQLAlchemy library to consume iterators of Python dictionaries. This method is robust but slow.: ``` sqlalchemy.Table <-> Iterator sqlalchemy.Select <-> Iterator ``` For a growing subset of databases (sqlite, MySQL, PostgreSQL, Hive, Redshift) we also use the CSV or JSON tools that come with those databases. These are often an order of magnitude faster than the `Python->SQLAlchemy` route when they are available.: ``` sqlalchemy.Table <- CSV ``` ##### Primary and Foreign Key Relationships[¶](#primary-and-foreign-key-relationships) New in version 0.3.4. Warning Primary and foreign key relationship handling is an experimental feature and is subject to change. Odo has experimental support for creating and discovering relational database tables with primary keys and foreign key relationships. ###### Creating a new resource with a primary key[¶](#creating-a-new-resource-with-a-primary-key) We create a new `sqlalchemy.Table` object with the resource function, specifying the primary key in the `primary_key` argument > ``` > >>> from odo import resource > >>> dshape = 'var * {id: int64, name: string}' > >>> products = resource( > ... 'sqlite:///db.db::products', > ... dshape=dshape, > ... primary_key=['id'], > ... ) > >>> products.c.id.primary_key > True > ``` Compound primary keys are created by passing the list of columns that form the primary key. For example > ``` > >>> dshape = """ > ... var * { > ... product_no: int32, > ... product_sku: string, > ... name: ?string, > ... price: ?float64 > ... } > ... """ > >>> products = resource( > ... 'sqlite:///%s::products' % fn, > ... dshape=dshape, > ... primary_key=['product_no', 'product_sku'] > ... ) > ``` Here, the column pair `product_no, product_sku` make up the compound primary key of the `products` table. ###### Creating resources with foreign key relationships[¶](#creating-resources-with-foreign-key-relationships) Creating a new resource with a foreign key relationship is only slightly more complex. As a motivating example, consider two tables `products` and `orders`. The `products` table will be the table from the primary key example. The `orders` table will have a many-to-one relationship to the `products` table. We can create this like so > ``` > >>> orders_dshape = """ > ... var * { > ... order_id: int64, > ... product_id: map[int64, {id: int64, name: string}] > ... } > ... """ > >>> orders = resource( > ... 'sqlite:///db.db::orders', > ... dshape=orders_dshape, > ... primary_key=['order_id'], > ... foreign_keys={ > ... 'product_id': products.c.id, > ... } > ... ) > >>> products.c.id in orders.c.product_id.foreign_keys > True > ``` There are two important things to note here. > 1. The general syntax for specifying the *type* of referring column is > ``` > map[<referring column type>, <measure of the table being referred to>] > ``` > 2. Knowing the type isn’t enough to specify a foreign key relationship. We > also need to know the table that has the columns we want to refer to. The > foreign_keys argument to the `resource()` function > fills this need. It accepts a dictionary mapping referring column > names to referred to `sqlalchemy.Column` instances or strings such as > `products.id`. There’s also a shortcut syntax using type variables for specifying foreign key relationships whose referred-to tables have very complex datashapes. Instead of writing our `orders` table above as > ``` > var * {order_id: int64, product_id: map[int64, {id: int64, name: string}]} > ``` We can replace the value part of the `map` type with any word starting with a capital letter. Often this is a single capital letter, such as `T` > ``` > var * {order_id: int64, product_id: map[int64, T]} > ``` Odo will automatically fill in the datashape for `T` by calling `discover()` on the columns passed into the foreign_keys keyword argument. Finally, note that discovery of primary and foreign keys is done automatically if the relationships already exist in the database so it isn’t necessary to specify them if they’ve already been created elsewhere. ###### More Complex Foreign Key Relationships[¶](#more-complex-foreign-key-relationships) Odo supports creation and discovery of self referential foreign key relationships as well as foreign keys that are elements of a compound primary key. The latter are usually seen when creating a many-to-many relationship via a [junction table](https://en.wikipedia.org/wiki/Junction_table). Self referential relationships are most easily specified using type variables (see the previous section for a description of how that works). Using the example of a management hierarchy: > ``` > >>> dshape = 'var * {eid: int64, name: ?string, mgr_eid: map[int64, T]}' > >>> t = resource( > ... 'sqlite:///%s::employees' % fn, > ... dshape=dshape, > ... primary_key=['eid'], > ... foreign_keys={'mgr_eid': 'employees.eid'} > ... ) > ``` > Note > Currently odo only recurses one level before terminating as we don’t yet > have a syntax for truly expressing recursive types in datashape Here’s an example of creating a junction table (whose foreign keys form a compound primary key) using a modified version of the traditional [suppliers and parts database](https://en.wikipedia.org/wiki/Suppliers_and_Parts_database): > ``` > >>> suppliers = resource( > ... 'sqlite:///%s::suppliers' % fn, > ... dshape='var * {id: int64, name: string}', > ... primary_key=['id'] > ... ) > >>> parts = resource( > ... 'sqlite:///%s::parts' % fn, > ... dshape='var * {id: int64, name: string, region: string}', > ... primary_key=['id'] > ... ) > >>> suppart = resource( > ... 'sqlite:///%s::suppart' % fn, > ... dshape='var * {supp_id: map[int64, T], part_id: map[int64, U]}', > ... primary_key=['supp_id', 'part_id'], > ... foreign_keys={ > ... 'supp_id': suppliers.c.id, > ... 'part_id': parts.c.id > ... } > ... ) > >>> from odo import discover > >>> print(discover(suppart)) > var * { > supp_id: map[int64, {id: int64, name: string}], > part_id: map[int64, {id: int64, name: string, region: string}] > } > ``` ###### Foreign Key Relationship Failure Modes[¶](#foreign-key-relationship-failure-modes) Some databases support the notion of having a foreign key reference one column from another table’s compound primary key. For example > ``` > >>> product_dshape = """ > ... var * { > ... product_no: int32, > ... product_sku: string, > ... name: ?string, > ... price: ?float64 > ... } > ... """ > >>> products = resource( > ... 'sqlite:///%s::products' % fn, > ... dshape=product_dshape, > ... primary_key=['product_no', 'product_sku'] > ... ) > >>> orders_dshape = """ > ... var * { > ... order_id: int32, > ... product_no: map[int32, T], > ... quantity: ?int32 > ... } > ... """ > >>> orders = resource( > ... 'sqlite:///%s::orders' % fn, > ... dshape=orders_dshape, > ... primary_key=['order_id'], > ... foreign_keys={ > ... 'product_no': products.c.product_no > ... # no reference to product_sku, okay for sqlite, but not postgres > ... } > ... ) > ``` Here we see that when the `orders` table is constructed, only one of the columns contained in the primary key of the `products` table is included. SQLite is an example of one database that allows this. Other databases such as PostgreSQL will raise an error if the table containing the foreign keys doesn’t have a reference to all of the columns of the compound primary key. Odo has no opinion on this, so if the database allows it, then odo will allow it. **This is an intentional choice**. However, it can also lead to confusing situations where something works with SQLite, but not with PostgreSQL. These are not bugs in odo, they are an explicit choice to allow flexibility with potentially large already-existing systems. ##### Amazon Redshift[¶](#amazon-redshift) When using Amazon Redshift the error reporting leaves much to be desired. Many errors look like this: ``` InternalError: (psycopg2.InternalError) Load into table 'tmp0' failed. Check 'stl_load_errors' system table for details. ``` If you’re reading in CSV data from S3, check to make sure that > 1. The delimiter is correct. We can’t correctly infer everything, so you may > have to pass that value in as e.g., `delimiter='|'`. > 2. You passed in the `compression='gzip'` keyword argument if your data > are compressed as gzip files. If you’re still getting an error and you’re sure both of the above are correct, please report a bug on [the odo issue tracker](https://github.com/blaze/odo/issues) We have an open issue ([#298](https://github.com/blaze/odo/issues/298)) to discuss how to better handle the problem of error reporting when using Redshift. #### SSH[¶](#ssh) Odo interacts with remote data over `ssh` using the `paramiko` library. ##### URIs[¶](#uris) SSH uris consist of the `ssh://` protocol, a hostname, and a filename. Simple and complex examples follow: ``` ssh://hostname:myfile.csv ssh://username@hostname:/path/to/myfile.csv ``` Additionally you may want to pass authentication information through keyword arguments to the `odo` function as in the following example ``` >>> from odo import odo >>> odo('localfile.csv', 'ssh://hostname:myfile.csv', ... username='user', key_filename='.ssh/id_rsa', port=22) ``` We pass through authentication keyword arguments to the `paramiko.SSHClient.connect` method. That method takes the following options: ``` port=22 username=None password=None pkey=None key_filename=None timeout=None allow_agent=True look_for_keys=True compress=False sock=None ``` ##### Constructing SSH Objects explicitly[¶](#constructing-ssh-objects-explicitly) Most users usually interact with `odo` using URI strings. Alternatively you can construct objects programmatically. SSH uses the `SSH` type modifier ``` >>> from odo import SSH, CSV, JSON >>> auth = {'user': 'ubuntu', ... 'host': 'hostname', ... 'key_filename': '.ssh/id_rsa'} >>> data = SSH(CSV)('data/accounts.csv', **auth) >>> data = SSH(JSONLines)('accounts.json', **auth) ``` ##### Conversions[¶](#conversions) We’re able to convert any text type (`CSV, JSON, JSONLines, TextFile`) to its equivalent on the remote server (`SSH(CSV), SSH(JSON), ...`).: ``` SSH(*) <-> * ``` The network also allows conversions from other types, like a pandas `DataFrame` to a remote CSV file, by routing through a temporary local csv file.: ``` Foo <-> Temp(*) <-> SSH(*) ``` ### Developer Documentation[¶](#developer-documentation) #### Type Modifiers[¶](#type-modifiers) Odo decides what conversion functions to run based on the type (e.g. `pd.DataFrame, sqlalchemy.Table, odo.CSV` of the input. In many cases we want slight variations to signify different circumstances such as the difference between the following CSV files * A local CSV file * A sequence of CSV files * A CSV file on a remote machine * A CSV file on HDFS * A CSV file on S3 * A temporary CSV file that should be deleted when we’re done In principle we need to create subclasses for each of these and for their `JSON`, `TextFile`, etc. equivalents. To assist with this we create functions to create these subclasses for us. These functions are named the following: ``` chunks - a sequence of data in chunks SSH - data living on a remote machine HDFS - data living on Hadoop File system S3 - data living on Amazon's S3 Directory - a directory of data Temp - a temporary piece of data to be garbage collected ``` We use these functions on *types* to construct new types. ``` >>> SSH(CSV)('/path/to/data', delimiter=',', user='ubuntu') >>> Directory(JSON)('/path/to/data/') ``` We compose these functions to specify more complex situations like a temporary directory of JSON data living on S3 ``` >>> Temp(S3(Directory(JSONLines))) ``` ##### Use URIs[¶](#use-uris) Most users don’t interact with these types. They are for internal use by developers to specify the situations in which a function should be called. ##### `chunks`[¶](#chunks) A particularly important type modifier is `chunks`, which signifies an iterable of some other type. For example `chunks(list)` means an iterable of Python lists and `chunks(pd.DataFrame)` an iterable of DataFrames. The `chunks` modifier is often used to convert between two out-of-core formats via an in-core format. This is also a nice mechanism to interact with data in an online fashion ``` >>> from odo import odo, chunks >>> import pandas as pd >>> seq = odo('postgresql://localhost::mytable', chunks(pd.DataFrame)) >>> for df in seq: ... # work on each dataframe sequentially ``` `chunks` may also be used to write an iterable of chunks into another resource. For example, we may use chunks to write a sequence of numpy arrays into a postgres table while only ever holding one whole array in memory like so: ``` >>> import numpy as np >>> from odo import odo, chunks >>> seq = (np.random.randn(5, 3) for _ in range(3)) >>> odo(chunks(np.ndarray)(seq), 'postgresql://localhost::mytable') ``` `chunks(type_)(seq)` is merely a small box wrapping the inner sequence that allows odo to know the types of the elements in the sequence. We may still use this sequence as we would any other, including looping over it. Because this is wrapping the inner sequence, we may only iterate over the `chunks` multiple times if the inner sequence supports being iterated over more than once. For example: ``` >>> from odo import chunks >>> CL = chunks(list) >>> multuple_iteration_seq = CL([[0, 1, 2], [3, 4, 5]) >>> tuple(multuple_iteration_seq) ([0, 1, 2], [3, 4, 5]) >>> tuple(multuple_iteration_seq) ([0, 1, 2], [3, 4, 5]) >>> single_iteration_seq = CL(iter([[0, 1, 2], [3, 4, 5]])) >>> tuple(single_iteraton_seq) ([0, 1, 2], [3, 4, 5]) >>> tuple(single_iteration_seq) () ``` #### Four Operations[¶](#four-operations) The Blaze project originally included `odo.odo` as a magic function that moved data between containers. This function was both sufficiently useful and sufficiently magical that it was moved to a separate project, its functionality separated into three operations 1. `convert`: Transform dataset to a new type. `convert(list, (1, 2, 3))` 2. `append`: Append a dataset to another. `append([], (1, 2, 3))` 3. `resource`: Obtain or create dataset from a URI string `resource('myfile.csv')` These are magically tied together as the original `odo` function 4. `odo`: Put stuff into other stuff (deliberately vague/magical.) Odo is part of the Open Source [Blaze](http://continuum.io/open-source/blaze) projects supported by [Continuum Analytics](http://continuum.io)
strong_csv
ruby
Ruby
strong_csv === [![strong_csv](https://img.shields.io/gem/v/strong_csv)](https://rubygems.org/gems/strong_csv) Type checker for a CSV file inspired by [strong_json](https://github.com/soutaro/strong_json). Motivation --- Some applications have a feature to receive a CSV file uploaded by a user, and in general, it needs to validate each cell of the CSV file. How should applications validate them? Of course, it depends, but there would be common validation logic for CSV files. For example, some columns may have to be integers because of database requirements. It would be cumbersome to write such validations always. strong_csv helps you to mitigate such a drudgery by letting you declare desired types beforehand. Installation --- Add this line to your application's Gemfile: ``` gem "strong_csv" ``` And then execute: ``` bundle ``` Or install it yourself as: ``` gem install strong_csv ``` Usage --- The most important APIs of strong_csv are `StrongCSV.new` and `StrongCSV#parse`. `StrongCSV.new` lets you declare types for each CSV column with Ruby's block syntax. Inside the block, you will mainly use `let` and declare types for a column. After defining types, you can parse CSV content with `StrongCSV#parse`. `StrongCSV#parse` won't raise errors as possible and just store error messages in its rows. The reason why it won't raise errors is CSV content may contain *invalid* rows, but sometimes, it makes sense to ignore them and process something for *valid* rows. If you want to stop all processes with invalid rows, check whether all rows are valid before proceeding with computation. Here is an example usage of this gem: ``` require "strong_csv" strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let :stock, integer let :tax_rate, float let :name, string(within: 1..255) let :description, string?(within: 1..1000) let :active, boolean let :started_at, time?(format: "%Y-%m-%dT%H:%M:%S") let :price, integer, error_message: "This should be Integer" # Literal declaration let :status, 0..6 let :priority, 10, 20, 30, 40, 50 let :size, "S", "M", "L" do |value| case value when "S" 1 when "M" 2 when "L" 3 end end # Regular expressions let :url, %r{\Ahttps://} # Custom validation # # This example sees the database to fetch exactly stored `User` IDs, # and it checks the `:user_id` cell really exists in the `users` table. # `pick` would be useful to avoid N+1 problems. pick :user_id, as: :user_ids do |ids| User.where(id: ids).ids end let :user_id, integer(constraint: ->(i) { user_ids.include?(i) }) end data = <<~CSV stock,tax_rate,name,active,status,priority,size,url,price 12,0.8,special item,True,4,20,M,https://example.com,PRICE CSV strong_csv.parse(data, field_size_limit: 2048) do |row| if row.valid? row[:tax_rate] # => 0.8 row[:active] # => true # do something with row else row.errors # => {:price=>["This should be Integer"], :user_id=>["`nil` can't be casted to Integer"]} # do something with row.errors end end ``` You can also define types without CSV headers by specifying column numbers. Note the numbers must start from `0` (zero-based index). ``` [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let 0, integer let 1, string let 2, 1..10 end ``` This declaration expects a CSV has the contents like this: ``` 123,abc,3 830,mno,10 ``` Available types --- | Type | Description | | --- | --- | | [`integer` and `integer?`](#integer-and-integer) | The value must be casted to `Integer`. | | [`float` and `float?`](#float-and-float) | The value must be casted to `Float`. | | [`boolean` and `boolean?`](#boolean-and-boolean) | The value must be casted to Boolean (`true` or `false`). | | [`string` and `string?`](#string-and-string) | The value must be casted to `String`. | | [`time` and `time?`](#time-and-time) | The value must be casted to `Time`. | | [`optional`](#optional) | The value can be `nil`. If the value exists, it must satisfy the given type constraint. | | [`23` (Integer literal)](#literal) | The value must be casted to the specific `Integer` literal. | | [`15.12` (Float literal)](#literal) | The value must be casted to the specific `Float` literal. | | [`1..10` (Range literal)](#literal) | The value must be casted to the beginning of `Range` and be covered with it. | | [`"abc"` (String literal)](#literal) | The value must be casted to the specific `String` literal. | | [`%r{\Ahttps://}` (Regexp literal)](#literal) | The value must be casted to a `String` that matches the specified Regexp. | | [`,` (Union type)](#union) | The value must satisfy one of the subtypes. | ### `integer` and `integer?` The value must be casted to Integer. `integer?` allows the value to be `nil`, so you can declare optional integer type for columns. It also lets you allow values that satisfy the specified limitation through `:constraint`. *Example* ``` strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let :stock, integer let :state, integer? let :user_id, integer(constraint: ->(v) { user_ids.include?(v)}) pick :user_id, as: :user_ids do |values| User.where(id: values).ids end end result = strong_csv.parse(<<~CSV) stock,state,user_id 12,0,1 20,,2 non-integer,1,4 CSV result.map(&:valid?) # => [true, true, false] result[0].slice(:stock, :state, :user_id) # => {:stock=>12, :state=>0, :user_id=>1} result[1].slice(:stock, :state, :user_id) # => {:stock=>20, :state=>nil, :user_id=>2} result[2].slice(:stock, :state, :user_id) # => {:stock=>"non-integer", :state=>1, :user_id=>"4"} result[2].errors.slice(:stock, :user_id) # => {:stock=>["`\"non-integer\"` can't be casted to Integer"], :user_id=>["`\"4\"` does not satisfy the specified constraint"]} ``` ### `float` and `float?` The value must be casted to Float. `float?` allows the value to be `nil`, so you can declare optional float type for columns. It also lets you allow values that satisfy the specified limitation through `:constraint`. *Example* ``` strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let :tax_rate, float let :fail_rate, float? end result = strong_csv.parse(<<~CSV) tax_rate,fail_rate 0.02,0.1 0.05, ,0.8 CSV result.map(&:valid?) # => [true, true, false] result[0].slice(:tax_rate, :fail_rate) # => {:tax_rate=>0.02, :fail_rate=>0.1} result[1].slice(:tax_rate, :fail_rate) # => {:tax_rate=>0.05, :fail_rate=>nil} result[2].slice(:tax_rate, :fail_rate) # => {:tax_rate=>nil, :fail_rate=>0.8} (`nil` is not allowed for `tax_rate`) ``` ### `boolean` and `boolean?` The value must be casted to Boolean (`true` of `false`). `"true"`, `"True"`, and `"TRUE"` are casted to `true`, while `"false"`, `"False"`, and `"FALSE"` are casted to `false`. `boolean?` allows the value to be `nil` as an optional boolean value. *Example* ``` strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let :enabled, boolean let :active, boolean? end result = strong_csv.parse(<<~CSV) enabled,active True,True False, , CSV result.map(&:valid?) # => [true, true, false] result[0].slice(:enabled, :active) # => {:enabled=>true, :active=>true} result[1].slice(:enabled, :active) # => {:enabled=>false, :active=>nil} result[2].slice(:enabled, :active) # => {:enabled=>nil, :active=>nil} (`nil` is not allowed for `enabled`) ``` ### `string` and `string?` The value must be casted to String. `string?` allows the value to be `nil` as an optional string value. They also support `:within` in its arguments, and it limits the length of the string value within the specified `Range`. *Example* ``` strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let :name, string(within: 1..4) let :description, string? end result = strong_csv.parse(<<~CSV) name,description JB,Hello yykamei, ,🤷 CSV result.map(&:valid?) # => [true, false, false] result[0].slice(:name, :description) # => {:name=>"JB", :description=>"Hello"} result[1].slice(:name, :description) # => {:name=>"yykamei", :description=>nil} ("yykamei" exceeds the `Range` specified with `:within`) result[2].slice(:name, :description) # => {:name=>nil, :description=>"🤷"} (`nil` is not allowed for `name`) ``` ### `time` and `time?` The value must be casted to Time. `time?` allows the value to be `nil` as an optional time value. They have the `:format` argument, which is used as the format of [`Time.strptime`](https://rubydoc.info/stdlib/time/Time.strptime); it means you can ensure the value must satisfy the time format. The default value of `:format` is `"%Y-%m-%d"`. *Example* ``` strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let :start_on, time let :updated_at, time?(format: "%FT%T") end result = strong_csv.parse(<<~CSV) start_on,updated_at 2022-04-01,2022-04-30T15:30:59 2022-05-03 05-03,2021-09-03T09:48:23 CSV result.map(&:valid?) # => [true, true, false] result[0].slice(:start_on, :updated_at) # => {:start_on=>2022-04-01 00:00:00 +0900, :updated_at=>2022-04-30 15:30:59 +0900} result[1].slice(:start_on, :updated_at) # => {:start_on=>2022-05-03 00:00:00 +0900, :updated_at=>nil} result[2].slice(:start_on, :updated_at) # => {:start_on=>"05-03", :updated_at=>2021-09-03 09:48:23 +0900} ("05-03" does not satisfy the default format `"%Y-%m-%d"`) ``` ### `optional` While each type above has its optional type with `?`, literals cannot be suffixed with `?`. However, there would be a case to have an optional literal type. In this case, `optional` might be useful and lets you declare such types. *Example* ``` strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let :foo, optional(123) let :bar, optional("test") end result = strong_csv.parse(<<~CSV) foo,bar 123,test , 124 CSV result.map(&:valid?) # => [true, true, false] result[0].slice(:foo, :bar) # => {:foo=>123, :bar=>"test"} result[1].slice(:foo, :bar) # => {:foo=>nil, :bar=>nil} result[2].slice(:foo, :bar) # => {:foo=>"124", :bar=>nil} (124 is not equal to 123) ``` ### Literal You can declare literal value as types. The supported literals are `Integer`, `Float`, `String`, and `Range`. *Example* ``` strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let 0, 123 let 1, "test" let 2, 2.5 let 3, 1..10 let 4, /[a-z]+/ end result = strong_csv.parse(<<~CSV) 123,test,2.5,9,abc 123,test,2.5,0,xyz 123,Hey,2.5,10,! CSV result.map(&:valid?) # => [true, false, false] result[0].slice(0, 1, 2, 3, 4) # => {0=>123, 1=>"test", 2=>2.5, 3=>9, 4=>"abc"} result[1].slice(0, 1, 2, 3, 4) # => {0=>123, 1=>"test", 2=>2.5, 3=>"0", 4=>"xyz"} (0 is out of 1..10) result[2].slice(0, 1, 2, 3, 4) # => {0=>123, 1=>"Hey", 2=>2.5, 3=>10, 4=>"!"} ("Hey" is not equal to "test", and "!" does not match /[a-z]+/) ``` ### Union There would be a case that it's alright if a value satisfies one of the types. Union types are useful for such a case. *Example* ``` strong_csv = [StrongCSV](/gems/strong_csv/StrongCSV "StrongCSV (class)").[new](/gems/strong_csv/StrongCSV#initialize-instance_method "StrongCSV#initialize (method)") do let :priority, 10, 20, 30 let :size, "S", "M", "L" end result = strong_csv.parse(<<~CSV) priority,size 10,M 30,A 11,S CSV result.map(&:valid?) # => [true, false, false] result[0].slice(:priority, :size) # => {:priority=>10, :size=>"M"} result[1].slice(:priority, :size) # => {:priority=>30, :size=>"A"} ("A" is not one of "S", "M", and "L") result[2].slice(:priority, :size) # => {:priority=>"11", :size=>"S"} (11 is not one of 10, 20, and 30) ``` Contributing --- Bug reports and pull requests are welcome on the [GitHub repository](https://github.com/yykamei/strong_csv). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/yykamei/strong_csv/blob/main/CODE_OF_CONDUCT.md).
mrbin
cran
R
Package ‘mrbin’ April 11, 2023 Title Metabolomics Data Analysis Functions Version 1.7.4 Description A collection of functions for processing and analyzing metabolite data. The namesake function mrbin() converts 1D or 2D Nuclear Magnetic Resonance data into a matrix of values suitable for further data analy- sis and performs basic processing steps in a reproducible way. Negative values, a common issue in such data, can be replaced by positive val- ues (<doi:10.1021/acs.jproteome.0c00684>). All used parameters are stored in a readable text file and can be restored from that file to enable exact reproduction of the data at a later time. The function fia() ranks features ac- cording to their impact on classifier models, especially artificial neural network models. Imports grDevices, graphics, stats, utils, methods Depends R (>= 2.10) License GPL-3 Encoding UTF-8 RoxygenNote 7.2.3 Suggests parallel, keras VignetteBuilder utils URL http://www.kleinomicslab.com/software/, https://github.com/kleinomicslab/mrbin NeedsCompilation no Author <NAME> [aut, cre] (<https://orcid.org/0000-0001-7455-5381>) Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2023-04-11 03:00:02 UTC R topics documented: addToPlo... 3 annotatemrbi... 4 atn... 4 checkmrbi... 6 contMi... 6 contPlu... 7 createmrbi... 8 cropNM... 8 dilutionCorrectio... 9 dow... 9 editmetabolitesmrbi... 10 editmrbi... 11 fi... 12 getEn... 14 intMi... 15 intPlu... 15 lef... 16 logTraf... 17 metadatamrbi... 17 mrbi... 18 mrbinru... 19 mrplo... 20 plotMultiNM... 21 plotNM... 22 plotPC... 24 plotResult... 25 PQNScalin... 25 predictWrappe... 27 printParameter... 28 putToEn... 28 readBruke... 29 recreatemrbi... 30 removeFromPlo... 30 removeNois... 31 removeSpectru... 32 resetEn... 33 righ... 33 setCurrentSpectru... 34 setDilutionFactor... 34 setNoiseLevel... 35 setOffse... 36 setPara... 37 timeStampMrbi... 37 trimZero... 38 unitVarianceScalin... 39 u... 39 zoo... 40 zoomI... 41 zoomOu... 41 addToPlot A function for adding NMR spectra to the plot list. Description This function adds a spectrum to the plot list. Usage addToPlot( folder = NULL, dimension = "1D", NMRvendor = "Bruker", useAsNames = "Folder names", add = TRUE ) Arguments folder Defines the exact NMR data folder. If NULL, mrbin parameter set is used dimension Defines the data dimension, "1D" or "2D". Only used if not NULL NMRvendor Defines the NMR manufacturer, default is "Bruker" useAsNames How should sample names be generated add Add spectra to existing list, or replace existing spectra. Default is TRUE Value none Examples addToPlot() annotatemrbin A function for annotating mrbin objects. Description This function annotates an mrbin object and returns it with updated $annotations vector Usage annotatemrbin(mrbinObject) Arguments mrbinObject An mrbin object Value An (invisible) mrbin object Examples mrbinObject<-mrbin(silent=TRUE, parameters=list(verbose=TRUE,dimension="1D",PQNScaling="No", binwidth1D=0.04,signal_to_noise1D=1,PCA="No",binRegion=c(9.5,0.5,10,156), saveFiles="No",referenceScaling="No",noiseRemoval="No", fixNegatives="No",logTrafo="No",noiseThreshold=.05,tryParallel=FALSE, NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin"))), metadata=list(metaboliteIdentities=matrix(c( 1.346,1.324,21,23, 3.052,3.043,30.5,33.5, 4.066,4.059,57,59.5 ),ncol=4,byrow=TRUE,dimnames=list( c("Lactate","Creatinine","Creatinine"),NULL)))) mrbinObject<-annotatemrbin(mrbinObject) mrbinObject$metadata$annotations[125:135] plotPCA(mrbinObject,loadings=TRUE) atnv A function replacing negative values. Description This function replaces (column-wise) negative values by a small positive number. The number is calculated as an affine transformation to the range of the lowest positive number to 0,01*the lowest positive number (of this column). Ranks stay unchanged. Positive numbers are not altered. If sample-wise noise levels are available, the median noise level of samples with negative values is calculated and replaces the lowest positive number in case it is smaller. If no noise data is available, the 1 positive values in the data set is used as an estimate. It is recommended to us this function AFTER noise removal and other data clean-up methods, as it may alter (reduce) the noise level. Usage atnv(NMRdata, noiseLevels = NULL, verbose = TRUE, errorsAsWarnings = FALSE) Arguments NMRdata A matrix or mrbin object containing NMR data. For matrix: columns=frequencies,rows=samples noiseLevels A vector (can be omitted if NMRdata is an mrbin object) verbose Should a summary be displayed if NMRdata is an mrbin object errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. Value An invisible matrix or mrbin object containing NMR data without negative values. Examples resetEnv() Example<-mrbin(silent=TRUE, parameters=list(verbose=TRUE,dimension="1D",PQNScaling="No", binwidth1D=0.005,signal_to_noise1D=1,PCA="No",binRegion=c(9.5,7.5,10,156), saveFiles="No",referenceScaling="No",noiseRemoval="No", fixNegatives="No",logTrafo="No",noiseThreshold=.05, NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")) )) sum(Example$bins<=0) exampleNMRpositive<-atnv(NMRdata=Example$bins, noiseLevels=Example$parameters$noise_level_adjusted) sum(exampleNMRpositive<=0) checkmrbin A function for checking mrbin objects. Description This function checks an mrbin object and returns warning if changes were not documented Usage checkmrbin(mrbinObject, verbose = TRUE, errorsAsWarnings = NULL) Arguments mrbinObject An mrbin object verbose Should a summary be displayed? (Warnings will be displayed even when setting verbose to FALSE) errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. If not provided, this will be taken from the mrbinObject. Value An (invisible) character vector of warnings Examples mrbinObject<-createmrbin() mrbinObject<-checkmrbin(mrbinObject) contMin A function for changing plotNMR plots. Description This function decreases the minimum contour level of the current 2D NMR spectrum plot. Usage contMin(refreshPlot = TRUE) Arguments refreshPlot Refresh plot automatically. Defaults to TRUE Value None Examples resetEnv() mrbin(silent=TRUE,parameters=list(dimension="2D",binwidth2D=0.5, binheight=3,PQNScaling="No",referenceScaling="No",binRegion=c(4,3,60,65), noiseRemoval="No",trimZeros="No",cropHSQC="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE,saveFiles="No", NMRfolders=c(system.file("extdata/1/12/pdata/10",package="mrbin")))) plotNMR() contMin() contPlus A function for changing plotNMR plots. Description This function increases the minimum contour level of the current 2D NMR spectrum plot. Usage contPlus(refreshPlot = TRUE) Arguments refreshPlot Refresh plot automatically. Defaults to TRUE Value None Examples resetEnv() addToPlot(folder=system.file("extdata/1/12/pdata/10",package="mrbin"),dimension="2D") plotNMR() contPlus() createmrbin A function for creating mrbin objects. Description This function creates an mrbin object and returns it. Usage createmrbin() Value An (invisible) mrbin object Examples mrbinObject<-createmrbin() cropNMR A function for cropping HSQC spectra. Description This function crops HSQC spectra to the region along the diagonal to remove uninformative signals. Will work only for 1H-13C HSQC spectra. Usage cropNMR() Value None Examples resetEnv() Example<-mrbin(silent=TRUE, parameters=list(dimension="2D",binwidth2D=1,binheight=4,cropHSQC="No",PCA="No", PQNScaling="No",noiseRemoval="No",removeSolvent="No",verbose=TRUE,tryParallel=FALSE, NMRfolders=c(system.file("extdata/1/12/pdata/10",package="mrbin")))) cropNMR() dilutionCorrection A function for scaling to individual dilution factors. Description This function performs sample-wise scaling of binned data to correct for dilution through different sample volumes used, or for different sample weights. All bin values of one sample are multiplied by the corresponding dilution factor. Usage dilutionCorrection(mrbinResults, verbose = TRUE, errorsAsWarnings = FALSE) Arguments mrbinResults An mrbin object verbose Should a summary be printed? errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. Value An invisible mrbin object containing scaled NMR data. Examples mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D", binwidth1D=0.05,PQNScaling="No",PCA="No",tryParallel=FALSE,logTrafo="No", NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin"))), metadata=list(dilutionFactors=c(.75,1,.5))) mrbinResults<-dilutionCorrection(mrbinResults) down A function for changing plotNMR plots. Description This function moves down the plot region of the current NMR plot (only 2D). Usage down(refreshPlot = TRUE) Arguments refreshPlot Refresh plot automatically. Defaults to TRUE Value None Examples resetEnv() mrbin(silent=TRUE,parameters=list(dimension="2D",binwidth2D=0.5, binheight=3,PQNScaling="No",referenceScaling="No",binRegion=c(4,3,60,65), noiseRemoval="No",trimZeros="No",cropHSQC="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE,saveFiles="No", NMRfolders=c(system.file("extdata/1/12/pdata/10",package="mrbin")))) plotNMR() zoomIn() down() editmetabolitesmrbin A function for editing metabolite identities. Description This function edits the metabolite list within an mrbin object and returns it Usage editmetabolitesmrbin(mrbinObject, borders, metabolitenames, add = TRUE) Arguments mrbinObject An mrbin object borders A matrix of signal borders. 1D: two columns: left, right 2D: four columns: left, right, top, bottom metabolitenames A character vector of metabolite identities add Should the new metabolite list be added to an existing list, or replace the current list? Value An (invisible) mrbin object Examples mrbinObject<-mrbin(silent=TRUE, parameters=list(verbose=TRUE,dimension="1D",PQNScaling="No", binwidth1D=0.04,signal_to_noise1D=1,PCA="No",binRegion=c(9.5,0.5,10,156), saveFiles="No",referenceScaling="No",noiseRemoval="No", fixNegatives="No",logTrafo="No",noiseThreshold=.05,tryParallel=FALSE, NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")) )) mrbinObject<-editmetabolitesmrbin(mrbinObject,borders=matrix(c( 1.346,1.324, 3.052,3.043, 4.066,4.059 ),ncol=2,byrow=TRUE),metabolitenames=c( "Lactate", "Creatinine", "Creatinine" )) mrbinObject$parameters$metaboliteIdentities editmrbin A function for editing mrbin objects. Description This function edits an mrbin object and returns it. This is the only documented way to edit mrbin objects, all other ways of editing such object might cause warning message Usage editmrbin( mrbinObject, functionName = "mrbin::editmrbin", versionNumber = as.character(utils::packageVersion("mrbin")), bins = NULL, parameters = NULL, metadata = NULL, transformations = NULL, comment = "", verbose = TRUE ) Arguments mrbinObject An mrbin object functionName Name of the package and function calling this command versionNumber Version number of the package calling this command bins A matrix containing values to be written to the mrbin object parameters A list containing values to be written to the mrbin object parameters, names must be names of the mrbin object, e.g. dimension metadata A list containing values to be written to the mrbin object parameters, names must be names of the mrbin object transformations An optional character vector describing any used data transformations or scaling such as reference scaling, PQN, log, atnv, etc. comment An optional character vector describing the change verbose Should a summary be displayed? Value An (invisible) mrbin object Examples mrbinObject<-createmrbin() mrbinObject<-editmrbin(mrbinObject) fia A function identifying features of importance. Description This function finds features that can change the outcomes of a model’s prediction. Example: fia=1.00 means single compound found in all but 0 percent of samples. fia=2.45 indicates this compound is found in pairs in all but 45 percent of tested samples A function named predict needs to be present for this to work. If the function name of the prediction function is different, the function name has to be provided in the parameter functionNamePredict. Usage fia( model, dataSet, factors, nSeed = 6, numberOfSamples = 100, maxFeatures = 10000, innerLoop = 300, verbose = TRUE, maxNumberAllTests = 5, firstLevel = 1, saveMemory = FALSE, kerasClearMemory = 0, functionNamePredict = "predict", parameterNameObject = "object", parameterNameData = "x", ... ) Arguments model A predictive model. Make sure to have loaded all required packages before starting this function dataSet An object containing data, columns=features, rows=samples. This should be either a matrix or a dataframe, depending on which of these two the specific prediction function requires factors A factor vector with group membership of each sample in the data set. Order of levels must correspond to the number predicted by the model nSeed Number of times that the test will be repeated, selecting different random fea- tures numberOfSamples Number of samples that will be randomly chosen from each group maxFeatures Maximum number of features that will be tested. Larger numbers will be split into child nodes without testing to increase speed innerLoop Number of repeated loops to test additional child nodes verbose A logical vector to turn messages on or off maxNumberAllTests Combinations of features of this length or shorter will not be split in half to create two children, but into multiple children with one feature left out each. This is done make sure no combination is missed. firstLevel Numeric value of first level or group. Usually 1 but for glm such as in the example this needs to be 0. saveMemory Save memory by performing only two predictions per step, which will be much slower. If you are using keras, use parameter kerasClearMemory=2 instead to free more memory and be a lot faster. FALSE to turn off. kerasClearMemory Save memory by clearing model from memory and reloading the model be- tween chunks of predictions. Will only work when using package keras. 0=off, 1=medium (reload between repeat with different seeds), 2=maximum memory savings (reload after each run for a single sample). This will write a model file to the working directory. functionNamePredict The name of the prediction function. This only needs to be changed if the pre- diction function is not called predict parameterNameObject The name of the parameter for passing the model to the prediction function parameterNameData The name of the parameter for passing the data to the prediction function ... Optional, additional parameters that will be passed to the prediction function. Value A list of results: scoresSummary A vector of fia scores for the whole dataset; scores contains vectors of fia scores for each predicted group; scoresIndividual A list of fia scores for each individual sample; fiaListPerSample A list of important combinations of features for each predicted sample; fiaMatrix A list of fia scores for each predicted group. Examples #First, define group membership and create the example feature data group<-factor(c(rep("Group1",4),rep("Group2",5))) names(group)<-paste("Sample",1:9,sep="") dataset<-data.frame( Feature1=c(5.1,5.0,6.0,2.9,4.8,4.6,4.9,3.8,5.1), Feature2=c(2.6,4.0,3.2,1.2,3.1,2.1,4.5,6.1,1.3), Feature3=c(3.1,6.1,5.8,5.1,3.8,6.1,3.4,4.0,4.4), Feature4=c(5.3,5.2,3.1,2.7,3.2,2.8,5.9,5.8,3.1), Feature5=c(3.2,4.4,4.8,4.9,6.0,3.6,6.1,3.9,3.5), Feature6=c(6.8,6.7,7.2,7.0,7.3,7.1,7.2,6.9,6.8) ) rownames(dataset)<-names(group) #train a model - here we use a logit model instead of ANN as a demonstration mod<-glm(group~Feature1+Feature2+Feature3+Feature4+Feature5+Feature6, data=data.frame(group=group,dataset),family="binomial") fiaresults<-fia(model=mod,dataSet=dataset,factors=group,parameterNameData="newdata", firstLevel=0,type="response") fiaresults$scores getEnv A function for saving the package environment. Description This function returns a list of all objects of the current package environment. This may be helpful for debugging or for accessing NMR spectral data and the raw bin data. Usage getEnv() Value A list containing all objects from the local package environment. Examples tempList<-getEnv() intMin A function for changing plotNMR plots. Description This function decreases the intensity of the current NMR spectrum plot. Usage intMin(dimension = "1D", refreshPlot = TRUE, value = NULL) Arguments dimension Dimension to use. Defaults to "1D" refreshPlot Refresh plot automatically. Defaults to TRUE value Set exact value. Defaults to NULL Value None Examples mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1, PQNScaling="No",noiseRemoval="No",trimZeros="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotNMR() intMin() intPlus A function for changing plotNMR plots. Description This function increases the intensity of the current NMR spectrum plot. Usage intPlus(dimension = "1D", refreshPlot = TRUE) Arguments dimension Dimension to use. Defaults to "1D" refreshPlot Refresh plot automatically. Defaults to TRUE Value None Examples mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1, PQNScaling="No",noiseRemoval="No",trimZeros="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotNMR() intPlus() left A function for changing plotNMR plots. Description This function moves left the plot region of the current NMR plot. Usage left(refreshPlot = TRUE) Arguments refreshPlot Refresh plot automatically. Defaults to TRUE Value None Examples resetEnv() mrbin(silent=TRUE,parameters=list(dimension="1D",binwidth1D=.5, noiseRemoval="No",trimZeros="No",tryParallel=FALSE, PQNScaling="No",saveFiles="No",referenceScaling="No", fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotNMR() zoomIn() left() logTrafo A function for log transforming data. Description This function performs logarithm transformation. Will not work with negative data. Usage logTrafo(mrbinResults, verbose = TRUE, errorsAsWarnings = FALSE) Arguments mrbinResults An mrbin object verbose Should a summary be printed? errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. Value An invisible mrbin object Examples resetEnv() mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D", logTrafo="No", binwidth1D=0.05,signal_to_noise1D=50,verbose=TRUE,PCA="No",tryParallel=FALSE, NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin")))) mrbinResults<-logTrafo(mrbinResults) metadatamrbin A function for interactively editing metadata of mrbin objects. Description This function edits interactively or non-interactively the metadata filed of the provided mrbin object. Usage metadatamrbin(mrbinResults, metadata = NULL) Arguments mrbinResults An mrbin object metadata An optional list of objects to be changed. If provided, interactive mode is deac- tivated Value An invisible mrbin object Examples mrbinObject<-mrbin(silent=TRUE, parameters=list(verbose=TRUE,dimension="1D",PQNScaling="No", binwidth1D=0.04,signal_to_noise1D=1,PCA="No",binRegion=c(9.5,0.5,10,156), saveFiles="No",referenceScaling="No",noiseRemoval="No", fixNegatives="No",logTrafo="No",noiseThreshold=.05,tryParallel=FALSE, NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")) )) mrbinObject<-metadatamrbin(mrbinObject,metadata=list(projectTitle="Test project")) mrbin A function setting the parameters and performing binning and data processing Description This function guides the user through the set-up of parameters, starts binning and performs the chosen data processing steps. If a list of parameters is provided and silent is set to TRUE, no user input is requested and binning and data processing are performed silently. Usage mrbin(silent = FALSE, setDefault = FALSE, parameters = NULL, metadata = NULL) Arguments silent If TRUE, the user will be asked no questions and binning and data analysis will run according to the current parameters. Defaults to FALSE. setDefault If TRUE, all current parameters will be replaced by the default parameters (be- fore loading any provided parameters sets). Defaults to FALSE. parameters Optional: A list of parameters, see examples for details. If omitted, the user will be asked through a series of question to set the parameters. metadata Optional: A list of metadata. If omitted, the user can add metadata after gener- ating bin data. Value An invisible object of type "mrbin" containing bins (data after processing), parameters, and factors Examples # Set parameters in command line. mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list( dimension="1D",binwidth1D=0.01,tryParallel=FALSE, signal_to_noise1D=25,noiseThreshold=0.75, NMRfolders=c( system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")) )) mrbinrun A function performing all data read and processing steps. Description This function reads parameters from the global variable mrbin.env$mrbin$parameters and performs the following operations: Reading NMR files, creating bins, removing solvent area, removing addi- tional user-defined areas, summing up bins that contain unstable peaks such as citric acid, removes noise bins, crops HSQC spectra to the diagonal area, performs PQN scaling, replaces negative val- ues, log transforms and displays a PCA plot. Parameters are then saved in a text file. These can be recreated using recreatemrbin(). Usage mrbinrun(createbins = TRUE, process = TRUE, mrbinResults = NULL, silent = TRUE) Arguments createbins If TRUE, new bin data is generated process If TRUE, bin data is processed, e.g. by noise removal, atnv, etc. mrbinResults An mrbin object. Needs to be provided only if createbins is FALSE silent If set to FALSE, no new time calculation is performed Value An invisible mrbin object Examples resetEnv() setParam(parameters=list(dimension="2D",binwidth2D=0.1,binheight=5, binRegion=c(8,1,15,140),PQNScaling="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",signal_to_noise2D=10,solventRegion=c(5.5,4.2), NMRfolders=c(system.file("extdata/1/12/pdata/10",package="mrbin"), system.file("extdata/2/12/pdata/10",package="mrbin")))) mrbinrun() mrplot A function for plotting NMR spectra. Description This function plots NMR spectra. A menu of commands is displayed to edit the plot view and add spectra. Multiple spectra will be overlaid, and if both 1D and 2D spectra are selected, they are shown in two plots with matched ranges. Usage mrplot( hideMenu = FALSE, folders = NULL, dimensions = NULL, intensity1D = NULL, zoom = NULL ) Arguments hideMenu Do not show the menu. Defaults to FALSE folders Optional vector of folder names of spectra to load. Defaults to NULL dimensions Optional vector dimensions of spectra to load. Defaults to NULL intensity1D Optional value of initial 1D intensity. Defaults to NULL zoom Optional vector of initial zoom area. Defaults to NULL Value None Examples resetEnv() mrplot(folders=c(system.file("extdata/1/12/pdata/10",package="mrbin"), system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")), dimensions=c("2D","1D","1D","1D"),zoom=c(2.8,2.3,20,55), intensity1D=32,hideMenu=TRUE) plotMultiNMR A function for plotting NMR spectra. Description This function plots the current NMR spectrum. If no parameters are provided, parameters are read from the mrbin.env environment variables, set by mrbin. To change the plot, use zoom(), zoomIn(), zoomOut(), intPlus(), intMin(), left(), right(). For 2D data use additionally: contMin(), contPlus(), up(), down() Usage plotMultiNMR( region = NULL, rectangleRegions = NULL, rectangleColors = c("green", "orange", "blue", "red", "yellow", "gray", "purple"), rectangleFront = FALSE, polygonRegion = NULL, maxPlots = Inf, color = NULL, add = FALSE, showGrid = FALSE, manualScale = TRUE, plotTitle = "", restrictToRange = FALSE, enableSplit = TRUE, dimension = NULL ) Arguments region A vector defining the plot region (left, right, top, bottom) rectangleRegions A 4-column matrix defining areas where to plot rectangles rectangleColors Define colors for the rectangles rectangleFront Plot rectangles in front of spectrum rather than in background (only 2D) polygonRegion Defines 4 corners of a polygon to be plotted maxPlots The maximum number of 2D plots to be overlaid color Defines the color of the spectrum plot. If NULL, a rainbow theme is used for 2D NMR add If TRUE, additional spectrum plots are overlaid with the current plot showGrid Shows a grid of data points. Defaults to FALSE manualScale If TRUE, scaling factor is taken from environment variables plotTitle Defines the main title of the plot restrictToRange Restrict plot area to range of available data points. Defaults to FALSE enableSplit Allow split plots for showing 1D and 2D spectra simultaneously dimension If not provided, this will be taken from package environment Value None Examples mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1, PQNScaling="No",noiseRemoval="No",trimZeros="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotMultiNMR() plotNMR A function for plotting NMR spectra. Description This function plots the current NMR spectrum. If no parameters are provided, parameters are read from the mrbin.env environment variables, set by mrbin. To change the plot, use zoom(), zoomIn(), zoomOut(), intPlus(), intMin(), left(), right(). For 2D data use additionally: contMin(), contPlus(), up(), down() Usage plotNMR( region = NULL, rectangleRegions = NULL, rectangleColors = c("green", "orange", "blue", "red", "yellow", "gray", "purple"), rectangleFront = FALSE, polygonRegion = NULL, color = NULL, add = FALSE, showGrid = FALSE, manualScale = TRUE, plotTitle = "", restrictToRange = FALSE, currentSpectrumOriginal = NULL, perspective = FALSE, noise = NULL, dimension = NULL, plotDelay = 0.1 ) Arguments region A vector defining the plot region (left, right, top, bottom) rectangleRegions A 4-column matrix defining areas where to plot rectangles rectangleColors Define colors for the rectangles rectangleFront Plot rectangles in front of spectrum rather than in background (only 2D) polygonRegion Defines 4 corners of a polygon to be plotted color Defines the color of the spectrum plot. If NULL, a rainbow theme is used for 2D NMR add If TRUE, additional spectrum plots are overlaid with the current plot showGrid Shows a grid of data points. Defaults to FALSE manualScale If TRUE, scaling factor is taken from environment variables plotTitle Defines the main title of the plot restrictToRange Restrict plot area to range of available data points. Defaults to FALSE currentSpectrumOriginal Optional spectral data. If omitted, data from the environment variables is used perspective If TRUE, a perspective plot will be displayed for 2D data instead of the regular topographic view noise If provided, a line or plane at this level will be added to the plot to indicate noise level dimension "1D’ or "2D". If not provided, this will be deduced from the data plotDelay Add a small delay in seconds to force RStudio to update plots Value None Examples mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1, PQNScaling="No",noiseRemoval="No",trimZeros="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotNMR() plotPCA A function for plotting PCA plots. Description This function performs PCA, then plots PC1 and PC2. Usage plotPCA( mrbinResults, defineGroups = TRUE, loadings = FALSE, legendPosition = "bottomleft", annotate = TRUE, verbose = TRUE ) Arguments mrbinResults An mrbin object defineGroups Should groups be colored differently? loadings Should loadings be plotted instead of scores? legendPosition Where should the legend be plotted, Defaults to "left", other options include "top", "topright", etc. annotate Should loadings be annotated with metabolite identities, if available in $meta- data? verbose Should a summary be displayed? Value An invisible prcomp result object Examples mrbinResults<-mrbin(silent=TRUE,setDefault=FALSE,parameters=list(dimension="2D", binRegion=c(8,1,15,140),binwidth2D=0.1,binheight=4,solventRegion=c(5.5,4.2), PQNScaling="No",noiseRemoval="Yes",trimZeros="Yes",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",signal_to_noise2D=10, NMRfolders=c(system.file("extdata/1/12/pdata/10",package="mrbin"), system.file("extdata/2/12/pdata/10",package="mrbin")))) plotPCA(mrbinResults) plotResults A function for plotting quality indicators, including PCA plots. Description This function plots boxplots (bin-wise and sample-wise) as visual quality indicators. It also per- forms PCA, then plots PC1 and PC2 and loading plots. Usage plotResults(mrbinResults, defineGroups = TRUE, process = TRUE, silent = FALSE) Arguments mrbinResults An mrbin object defineGroups Should group membership be highlighted in PCA? process If set to FALSE, the file name will be extended by "Raw" to indicate that data has not been processed yet silent If set to TRUE, plots will be saved but not shown for the binning step for speed purposes Value None Examples mrbinResults<-mrbin(silent=TRUE,setDefault=FALSE,parameters=list(dimension="2D", binRegion=c(8,1,15,140),binwidth2D=0.2,binheight=4,solventRegion=c(5.5,4.2), PQNScaling="No",noiseRemoval="Yes",trimZeros="Yes",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",signal_to_noise2D=10, NMRfolders=c(system.file("extdata/1/12/pdata/10",package="mrbin"), system.file("extdata/2/12/pdata/10",package="mrbin")))) plotResults(mrbinResults) PQNScaling A function for PQN scaling. Description This function performs PQN scaling. To further exclude unreliable noise, only the most intense signals are used. For 1H and 1H-13C HSQC spectra, most of the sugar regions can be excluded to avoid a dominating effect of the multiple glucose signals. Usage PQNScaling( NMRdata, ignoreGlucose = "Yes", dimension = "1D", ppmNames = "borders", sugarArea = c(5.4, 3.35, 72, 100), minimumFeatures = 40, showHist = FALSE, verbose = TRUE, errorsAsWarnings = FALSE ) Arguments NMRdata A matrix containing NMR data or an mrbin object. Columns=frequencies,rows=samples ignoreGlucose A character value ("Yes" or "No") dimension A character value ("1D" or "2D") ppmNames A character value ("borders" or "mean") sugarArea A numeric vector defining the the borders of glucose area minimumFeatures A numeric value defining minimum feature number used showHist A logical value, default is FALSE verbose Should a summary be printed? errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. Value An invisible matrix or mrbin object containing scaled NMR data. Examples mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D", binwidth1D=0.05,PQNScaling="No",PCA="No",tryParallel=FALSE,logTrafo="No", NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")))) mrbinResults<-PQNScaling(mrbinResults) predictWrapper A function returning predicted values for use with the fia function. Description This function predicts group membership and returns a numeric vector with results. Usage predictWrapper( model, dataSet, functionNamePredict = "predict", firstLevel = 1, parameterNameObject = "object", parameterNameData = "x", dataFrameFlag = FALSE, ... ) Arguments model A predictive model. Make sure to have loaded all required packages before starting this function dataSet A matrix or dataframe containing data, depending on what your predict function requires. Columns=features, rows=samples functionNamePredict The name of the prediction function. This only needs to be changed if the pre- diction function is not called predict firstLevel Numeric value of first level or group. Usually 1 but for glm such as in the example this needs to be 0. parameterNameObject The name of the parameter for passing the model to the prediction function parameterNameData The name of the parameter for passing the data to the prediction function dataFrameFlag Logical value indicating whether the data object is a data frame rather than a matrix. ... Optional, additional parameters that will be passed to the prediction function. Value A numeric (integer) vector of predicted group memberships. Examples #First, define group membership and create the example feature data group<-factor(c(rep("Group1",4),rep("Group2",5))) names(group)<-paste("Sample",1:9,sep="") dataset<-data.frame( Feature1=c(5.1,5.0,6.0,2.9,4.8,4.6,4.9,3.8,5.1), Feature2=c(2.6,4.0,3.2,1.2,3.1,2.1,4.5,6.1,1.3), Feature3=c(3.1,6.1,5.8,5.1,3.8,6.1,3.4,4.0,4.4), Feature4=c(5.3,5.2,3.1,2.7,3.2,2.8,5.9,5.8,3.1), Feature5=c(3.2,4.4,4.8,4.9,6.0,3.6,6.1,3.9,3.5) ) rownames(dataset)<-names(group) #train a model - here we use a logit model instead of ANN as a demonstration mod<-glm(group~Feature1+Feature2+Feature3+Feature4+Feature5, data=data.frame(group=group,dataset),family="binomial") predictWrapper(model=mod,dataSet=dataset,firstLevel=0,type="response") printParameters A function for printing parameters to the screen. Description This function reads parameters from the global variable mrbin.env$mrbin$parameters and prints the required R code for creating a data set to the screen. Usage printParameters() Value None Examples printParameters() putToEnv A function for changing and adding variables in the package environ- ment. Description This function can change variables in the current package environment. This may be helpful for debugging or for some plotting functions. Usage putToEnv(variableList) Arguments variableList A list containing all objects to be saved in the local package environment. Value None Examples putToEnv(list(bins=NULL)) readBruker A function for reading Bruker NMR spectra. Description This function reads Bruker NMR data. 1D and 2D data are supported. Usage readBruker( folder = NULL, dimension = NULL, onlyTitles = FALSE, useAsNames = "Spectrum titles", checkFiles = FALSE ) Arguments folder Defines the exact NMR data folder. If NULL, mrbin parameter set is used dimension Defines the data dimension, "1D" or "2D". Only used if not NULL onlyTitles Read only spectrum titles, but no data. Defaults to FALSE useAsNames How should sample names be generated checkFiles Only check if the folder exists or contains NMR data. Defaults to FALSE Value An (invisible) list containing spectral data and the spectrum name Examples exampleData<-readBruker(folder=system.file("extdata/1/10/pdata/10",package="mrbin"), dimension="1D") recreatemrbin A function recreating parameters from previous runs. Description This function reads parameters from a text file that was created during a previous run or mrbin(). After reading, the data can be recreated using mrbin(). File names in $parameters might need to be updated. Usage recreatemrbin(filename = NULL) Arguments filename File path/name of the mrbin parameter file to be loaded Value None Examples # Insert full folder path and file name recreatemrbin(system.file("extdata/mrbin.txt",package="mrbin")) removeFromPlot A function for removing NMR spectra from the plot list. Description This function removes a spectrum from the plot list. Usage removeFromPlot(folder = NULL, dimension = "1D") Arguments folder Defines the exact NMR data folder. dimension Defines the data dimension, "1D" or "2D". Value none Examples removeFromPlot() removeNoise A function for removing bins below noise level. Description This function checks for each bin (column) whether its level is below the individual noise level times the signal-to-noise ratio. If less than the defined threshold level are above noise*SNR, the whole bin is removed. Usage removeNoise(mrbinResults, verbose = TRUE, errorsAsWarnings = FALSE) Arguments mrbinResults An mrbin object verbose Should a summary be printed? errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. Value An invisible mrbin object Examples mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D", binwidth1D=0.05,noiseRemoval="No",PQNScaling="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")))) mrbinResults<-removeNoise(mrbinResults) removeSpectrum A function for removing a spectrum. Description This function lets the user pick spectra from a list for removal from data analysis. Usage removeSpectrum( mrbinResults = NULL, spectra = NULL, verbose = TRUE, errorsAsWarnings = FALSE ) Arguments mrbinResults An mrbin object. If not provided, the function works on the package environ- ment spectra Character vector with NMR folder names to be excluded. If provided, no inter- active selection will be shown verbose Should a summary be printed? errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. Value An invisible mrbin object (only if an mrbin object was provided) Examples mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D", binwidth1D=0.05,PQNScaling="No",PCA="No",tryParallel=FALSE,logTrafo="No", noiseRemoval="No", NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")))) mrbinResults<-removeSpectrum(mrbinResults, spectra=c(system.file("extdata/2/10/pdata/10",package="mrbin"))) resetEnv A parameter resetting function Description This function resets the parameter variables. Usage resetEnv() Value None Examples resetEnv() right A function for changing plotNMR plots. Description This function moves right the plot region of the current NMR plot. Usage right(refreshPlot = TRUE) Arguments refreshPlot Refresh plot automatically. Defaults to TRUE Value None Examples resetEnv() mrbin(silent=TRUE,parameters=list(dimension="1D",binwidth1D=.5, noiseRemoval="No",trimZeros="No",tryParallel=FALSE, PQNScaling="No",saveFiles="No",referenceScaling="No", fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotNMR() zoomIn() right() setCurrentSpectrum A function for interactively setting the current spectrum. Description This function lets the user pick a spectrum from the list of spectra analysis. This function is meant only for use within the mrbin function. Usage setCurrentSpectrum(spectrumNumber = NULL) Arguments spectrumNumber If provided, this number will be used; defaults to NULL Value None Examples setCurrentSpectrum(spectrumNumber=1) setDilutionFactors A function for setting dilution factors. Description This function edits the dilution factors of an mrbin object but does not change the bin data. Usage setDilutionFactors( mrbinObject, dilutionFactors = NULL, errorsAsWarnings = FALSE, alwaysShowOptionKeep = FALSE ) Arguments mrbinObject An mrbin object dilutionFactors An optional vector of dilution factors. If provided, no user input is requested errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. alwaysShowOptionKeep If TRUE, you will be asked to keep current values even if they do not match the current dataset. Value An invisible mrbin object Examples mrbinObject<-mrbin(silent=TRUE, parameters=list(verbose=TRUE,dimension="1D",PQNScaling="No", binwidth1D=0.04,signal_to_noise1D=1,PCA="No",binRegion=c(9.5,0.5,10,156), saveFiles="No",referenceScaling="No",noiseRemoval="No", fixNegatives="No",logTrafo="No",noiseThreshold=.05,tryParallel=FALSE, NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")) )) mrbinObject<-setDilutionFactors(mrbinObject,dilutionFactors=c(1.5,2)) setNoiseLevels A function for setting and plotting noise levels. Description This function reads parameters from the global variable mrbin.env$mrbin$parameters and plots exemplary spectra and respective noise levels. Plots will be saved if saveFiles is set to "Yes". Usage setNoiseLevels( mrbinObject, plotOnly = FALSE, showSpectrumPreview = NULL, silent = FALSE ) Arguments mrbinObject An mrbin object plotOnly Should only noise plots be generated (TRUE), or should noise levels be adjusted interactively (FALSE) showSpectrumPreview Should plots be shown? If not provided, this value will be taken from the mrbin object parameters silent If set to TRUE, plots will not be shown but might still be saved Value An invisible mrbin object Examples mrbinObject<-mrbin(silent=TRUE, parameters=list(verbose=TRUE,dimension="1D",PQNScaling="No", binwidth1D=0.04,signal_to_noise1D=1,PCA="No",binRegion=c(9.5,0.5,10,156), saveFiles="No",referenceScaling="No",noiseRemoval="No", fixNegatives="No",logTrafo="No",noiseThreshold=.05,tryParallel=FALSE, NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")) )) mrbinObject<-setNoiseLevels(mrbinObject,plotOnly=TRUE) setOffset A function for changing plotNMR plots. Description This function moves up or down the 1D plot region of the current NMR plot. Usage setOffset(offsetValue = NULL) Arguments offsetValue The new offset value. Defaults to NULL Value None Examples setOffset(0) setParam A function setting parameters and checking for consistency. Description This function set parameters and checks parameters for consistency. Usage setParam(parameters = NULL, metadata = NULL) Arguments parameters List of parameters to be set metadata List of metadata to be set Value None Examples setParam(parameters=list(dimension="1D")) timeStampMrbin A function for time stamping mrbin objects. Description This function adds time stamps to an mrbin object and returns it. Is used only within functions making changes to mrbin objects. Usage timeStampMrbin( mrbinObject, functionName = "InProgress...", versionNumber = "0", changeDetails = "InProgress...", steps = 0, comment = "" ) Arguments mrbinObject An mrbin object functionName Name of the package and function calling this command versionNumber Version number of the package calling this command changeDetails Details of changes made to the mrbin object steps Indicates which step to perform: 0 (only pre-change), 1 (only post-change) comment An optional character vector describing the change Value An (invisible) mrbin object Examples mrbinObject<-createmrbin() mrbinObject<-timeStampMrbin(mrbinObject) trimZeros A function for trimming zero-values bins. Description This function removes zero-values bins. These might be created during removal of solvent and additional areas, or at the edges of the spectrum. Usage trimZeros(mrbinResults) Arguments mrbinResults An mrbin object Value An invisible mrbin object Examples mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D", logTrafo="No", binwidth1D=0.05,signal_to_noise1D=50, verbose=TRUE, PCA="No", trimZeros="No",tryParallel=FALSE, NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin")))) mrbinResults<-trimZeros(mrbinResults) unitVarianceScaling A function for scaling to unit variance. Description This function performs scaling of binned data to unit variance so that each bin has variance 1 and mean 0. This is rarely necessary, but might be advantageous, e.g. in artificial neural networks. Usage unitVarianceScaling(mrbinResults, verbose = TRUE, errorsAsWarnings = FALSE) Arguments mrbinResults An mrbin object verbose Should a summary be printed? errorsAsWarnings If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data. Value An invisible mrbin object containing scaled NMR data. Examples mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D", binwidth1D=0.05,PQNScaling="No",PCA="No",tryParallel=FALSE,logTrafo="No", NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"), system.file("extdata/2/10/pdata/10",package="mrbin"), system.file("extdata/3/10/pdata/10",package="mrbin")))) mrbinResults<-unitVarianceScaling(mrbinResults) up A function for changing plotNMR plots. Description This function moves up the plot region of the current NMR plot (only 2D). Usage up(refreshPlot = TRUE) Arguments refreshPlot Refresh plot automatically. Defaults to TRUE Value None Examples resetEnv() mrbin(silent=TRUE,parameters=list(dimension="2D",binwidth2D=0.5, binheight=3,PQNScaling="No",referenceScaling="No",binRegion=c(4,3,60,65), noiseRemoval="No",trimZeros="No",cropHSQC="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE,saveFiles="No", NMRfolders=c(system.file("extdata/1/12/pdata/10",package="mrbin")))) plotNMR() zoomIn() up() zoom A function for changing plotNMR plots. Description This function changes the plot region of the current NMR plot. Can be called with no arguments: zoom(). In this case the user will be asked for manual input. Usage zoom(left = NULL, right = NULL, top = NULL, bottom = NULL, refreshPlot = TRUE) Arguments left New left boundary right New right boundary top New top boundary bottom New bottom boundary refreshPlot Refresh plot automatically. Defaults to TRUE Value None Examples mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1, PQNScaling="No",noiseRemoval="No",trimZeros="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotNMR() zoom(left=4.6,right=2,top=10,bottom=150) zoomIn A function for changing plotNMR plots. Description This function zooms into the plot region of the current NMR plot. Usage zoomIn(refreshPlot = TRUE, x = TRUE, y = TRUE) Arguments refreshPlot Refresh plot automatically. Defaults to TRUE x Change x axis? Defaults to TRUE y Change y axis? Defaults to TRUE Value None Examples mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1, PQNScaling="No",noiseRemoval="No",trimZeros="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotNMR() zoomIn() zoomOut A function for changing plotNMR plots. Description This function zooms out from the plot region of the current NMR plot. Usage zoomOut(refreshPlot = TRUE, x = TRUE, y = TRUE) Arguments refreshPlot Refresh plot automatically. Defaults to TRUE x Change x axis? Defaults to TRUE y Change y axis? Defaults to TRUE Value None Examples mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1, PQNScaling="No",noiseRemoval="No",trimZeros="No",tryParallel=FALSE, fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE, NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin"))) plotNMR() zoomIn() zoomOut()
keylime-docs
readthedoc
JSON
Keylime Documentation 6.4.2 documentation [Keylime Documentation](#) --- Keylime Documentation[¶](#keylime-documentation) === Warning This documentation is still under development and not complete. It will be so until this warning is removed. Welcome to the Keylime Documentation site! Keylime is a TPM-based highly scalable remote boot attestation and runtime integrity measurement solution. Keylime enables cloud users to monitor remote nodes using a hardware based cryptographic root of trust. Keylime was originally born out of the security research team in MIT’s Lincoln Laboratory and is now developed and maintained by the Keylime community. This Documentation site contains guides to install, use and administer keylime as well as guides to enable developers to make contributions to keylime or develop services against Keylime’s Rest API(s). Installation[¶](#installation) --- There are three current methods for installing Keylime: the Ansible role, the Keylime installer or a manual installation. ### Ansible Keylime Roles[¶](#ansible-keylime-roles) An Ansible role to deploy [Keylime](https://github.com/keylime/keylime) , alongside the [Keylime Rust cloud agent](https://github.com/keylime/rust-keylime) Warning Please note that the Rust cloud agent is still under early stages of development. Those wishing to test drive Keylimes functionality should use the existing Python based cloud agent keylime_agent until later notice. This role deploys Keylime for use with a Hardware TPM. Should you wish to deploy Keylime with a software TPM emulator for development or getting your feet wet, use the [Ansible Keylime Soft TPM](https://github.com/keylime/ansible-keylime-soft-tpm) role instead. #### Usage[¶](#usage) Download or clone [Ansible Keylime](https://github.com/keylime/ansible-keylime) from its repository and follow the usage section. Run the example playbook against your target remote host(s): ``` ansible-playbook -i your_hosts playbook.yml ``` #### TPM Version Control (Software TPM)[¶](#tpm-version-control-software-tpm) **Ansible Keylime Soft TPM** provides a role type for 2.0 TPM versions. TPM 2.0 support can be configured by simply adding the role in the playbook.yml file [here](https://github.com/keylime/ansible-keylime/blob/master/playbook.yml#L11) For TPM 2.0 use: ``` - ansible-keylime-tpm20 ``` This rule uses the TPM 2.0 Emulator (IBM software TPM). #### Vagrant[¶](#vagrant) If you prefer, a Vagrantfile is available for provisioning. Clone the repository and then simply run: ``` vagrant up --provider <provider> --provision ``` For example, using libvirt: ``` vagrant up --provider libvirt --provision ``` For example, using VirtualBox: ``` vagrant up --provider virtualbox --provision ``` Once the VM is started, vagrant ssh into the VM and run sudo su - to become root. You can then start the various components using commands: ``` keylime_verifier keylime_registrar keylime_agent ``` #### Rust Cloud agent[¶](#rust-cloud-agent) To start the rust cloud agent, navigate to it’s repository directory and use cargo to run: ``` [root@localhost rust-keylime]# RUST_LOG=keylime_agent=trace cargo run Finished dev [unoptimized + debuginfo] target(s) in 0.28s Running `target/debug/keylime_agent` INFO keylime_agent > Starting server... INFO keylime_agent > Listening on http://127.0.0.1:1337 ``` ### Keylime Bash installer[¶](#keylime-bash-installer) Keylime requires Python 3.7 for dataclasses support. Installation can be performed via an automated shell script, installer.sh. The following command line options are available: ``` Usage: ./installer.sh [option...] Options: -k Download Keylime (stub installer mode) -t Create tarball with keylime_agent -m Use modern TPM 2.0 libraries (vs. TPM 1.2) -s Install TPM in socket/simulator mode (vs. chardev) -p PATH Use PATH as Keylime path -h This help info ``` ### Docker - Deployment[¶](#docker-deployment) The verifier, registrar and tenant can also be deployed using Docker images. Keylime’s offical images can be found [here](https://github.com/orgs/keylime/packages). Those are automatically generated for every commit and release. For building those images locally see [here](https://github.com/keylime/keylime/blob/master/docker/release/build_locally.sh). ### Docker - Development[¶](#docker-development) Python Keylime and with a TPM emulator can also be deployed using Docker. Since this docker configuration uses a TPM emulator, it should only be used for development or testing and NOT in production. Please see either the Dockerfiles [here](https://github.com/keylime/keylime/tree/master/docker/ci) or our local CI script [here](https://github.com/keylime/keylime/blob/master/.ci/run_local.sh) which will automate the build and pull of Keylime. ### Manual[¶](#manual) Keylime requires Python 3.7 or newer to work properly out of the box because older versions do not support dataclasses. #### Python-based prerequisites[¶](#python-based-prerequisites) The following Python packages are required: * cryptography>=3.3.2 * tornado>=5.0.2 * m2crypto>=0.21.1 * pyzmq>=14.4 * pyyaml>=3.11 * simplejson>=3.8 * requests>=2.6 * sqlalchemy>=1.3 * alembic>=1.1.0 * python-gnupg>=0.4.6 * packaging>=16.0 * psutil>=5.4.2 The current list of required packages can be found [here](https://github.com/keylime/keylime/blob/master/requirements.txt). All of them should be available as distro packages. See [installer.sh](https://github.com/keylime/keylime/blob/master/installer.sh) for more information if you want to install them this way. You can also let Keylime’s setup.py install them via PyPI. #### TPM 2.0 Support[¶](#tpm-2-0-support) Keylime uses the Intel TPM2 software set to provide TPM 2.0 support. You will need to install the tpm2-tss software stack (available [here](https://github.com/tpm2-software/tpm2-tss)) and tpm2-tools utilities available [here](https://github.com/tpm2-software/tpm2-tools). See README.md in these projects for detailed instructions on how to build and install. The brief synopsis of a quick build/install (after installing dependencies) is: ``` # tpm2-tss git clone https://github.com/tpm2-software/tpm2-tss.git tpm2-tss pushd tpm2-tss ./bootstrap ./configure --prefix=/usr make sudo make install popd # tpm2-tools git clone https://github.com/tpm2-software/tpm2-tools.git tpm2-tools pushd tpm2-tools ./bootstrap ./configure --prefix=/usr/local make sudo make install ``` To ensure that you have the recent version installed ensure that you have the tpm2_checkquote utility in your path. Note Keylime by default (all versions after 6.2.0) uses the kernel TPM resource manager. For kernel versions older than 4.12 we recommend to use the tpm2-abrmd resource manager (available [here](https://github.com/tpm2-software/tpm2-abrmd)). How the TPM is accessed by tpm2-tools can be set using the TPM2TOOLS_TCTI environment variable. More information about that can be found [here](https://github.com/tpm2-software/tpm2-tools/blob/master/man/common/tcti.md). Talk to the swtpm emulator directly: ``` export TPM2TOOLS_TCTI="mssim:port=2321" ``` To talk to the TPM directly (not recommended): ``` export TPM2TOOLS_TCTI="device:/dev/tpm0" ``` #### Install Keylime[¶](#install-keylime) You’re finally ready to install Keylime: ``` sudo python setup.py install ``` ### Database support[¶](#database-support) Keylime supports the following databases: ``` * SQLite * PostgreSQL * MySQL * Oracle * Microsoft SQL Server ``` SQLite is supported as default. Each database is configured within /etc/keylime.conf for both the keylime_verifier and keylime_registrar databases. #### SQLite[¶](#sqlite) The following illustrates examples for SQLite and PostgreSQL: ``` database_drivername = sqlite database_username = '' database_password = '' database_host = '' database_port = '' database_name = cv_data.sqlite database_query = '' ``` #### PostgreSQL[¶](#postgresql) For PostgreSQL you will need to install the database first and set up a user account: ``` database_drivername = postgresql database_username = keylime database_password = allyourbase database_host = localhost database_port = 5432 database_name = keylime_db database_query = '' ``` For details on other platforms, please refer to the SQLAlchemy documentation on [engine configuration](https://docs.sqlalchemy.org/en/13/core/engines.html). User Guide[¶](#user-guide) --- ### User Selected PCR Monitoring[¶](#user-selected-pcr-monitoring) Warning This page is still under development and not complete. It will be so until this warning is removed. Using use the tpm_policy feature in Keylime, it is possible to monitor a remote machine for any given PCR. This can be used for Trusted Boot checks for both the rhboot shim loader and Trusted Grub 2. Note On larger deployments the PCR values might be insufficient. In this case use the UEFI event log for measured boot: [Use Measured Boot](index.html#document-user_guide/use_measured_boot). #### How to use[¶](#how-to-use) Select which PCRs you would like Keylime to measure, by using the tpm2_pcrread from the [tpm2-tools](https://github.com/tpm2-software/tpm2-tools) tool. Now you can set the PCR values as a JSON data structure in either the keylime.conf file: ``` tpm_policy = {"22":["0000000000000000000000000000000000000001","0000000000000000000000000000000000000000000000000000000000000001","000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001","ffffffffffffffffffffffffffffffffffffffff","ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"],"15":["0000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"]} ``` Or you can add a node to using keylime_tenant: ``` keylime_tenant -v 127.0.0.1 -t 127.0.0.1 -f /root/excludes.txt \ --uuid D432FBB3-D2F1-4A97-9EF7-75BD81C00000 \ --allowlist /root/allowlist.txt \ --exclude /root/exclude.txt \ --tpm_policy {"22":["0000000000000000000000000000000000000001","0000000000000000000000000000000000000000000000000000000000000001","000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001","ffffffffffffffffffffffffffffffffffffffff","ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"],"15":["0000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"]} \ -c add ``` #### rhboot shim-loader[¶](#rhboot-shim-loader) The following is sourced from the [rhboot shim repository](https://github.com/rhboot/shim/blob/master/README.tpm) please visit the upstream README to ensure information is still accurate The following PCRs are extended by shim: PCR4:* the Authenticode hash of the binary being loaded will be extended into PCR4 before SB verification. * the hash of any binary for which Verify is called through the shim_lock protocol PCR7:* Any certificate in one of our certificate databases that matches a binary we try to load will be extended into PCR7. That includes: > + DBX - the system denylist, logged as “dbx” > + MokListX - the Mok denylist, logged as “MokListX” > + vendor_dbx - shim’s built-in vendor denylist, logged as “dbx” > + DB - the system allowlist, logged as “db” > + MokList the Mok allowlist, logged as “MokList” > + vendor_cert - shim’s built-in vendor allowlist, logged as “Shim” > + shim_cert - shim’s build-time generated allowlist, logged as “Shim” > * MokSBState will be extended into PCR7 if it is set, logged as “MokSBState”. PCR8:* If you’re using the grub2 TPM patchset we cary in Fedora, the kernel command line and all grub commands (including all of grub.cfg that gets run) are measured into PCR8. PCR9:* If you’re using the grub2 TPM patchset we cary in Fedora, the kernel, initramfs, and any multiboot modules loaded are measured into PCR9. PCR14:* MokList, MokListX, and MokSBState will be extended into PCR14 if they are set. ### Use Measured Boot[¶](#use-measured-boot) Warning This page is still under development and not complete. It will be so until this warning is removed. #### Introduction[¶](#introduction) In any real-world large-scale production environment, a large number of different types of nodes will typically be found. The TPM 2.0 defines specific meaning - measurement of UEFI bios, measurement of boot device firmware - for lower-numbered PCRs (e.g., PCRs 0-9), as these are extended during the multiple events of a measured boot log. However, simply comparing the contents of these PCRs against a well-known “golden value” becomes unfeasible. The reason for this is, in addition to the potentially hundreds of variations due to node type, that it can be experimentally demonstrated that some PCRs (e.g, PCR 1) vary for each physical machine, if such machine is netbooted (as it encodes the MAC address of the NIC used during boot.) Fortunately, the UEFI firmware is now exposing the event log through an ACPI table and a “recent enough” Linux kernel (e.g., 5.4 or later) is now consuming this table and exposing this boot event log through the securityfs, typically at the path /sys/kernel/security/tpm0/binary_bios_measurements. When combined with secure boot and a “recent enough” version of grub (TBD), the aforementioned can be fully populated, including measurements of all components, up to the kernel and initrd. In addition to these sources of (boot log) data, a “recent enough” version of tpm2-tools (5.0 or later) can be used to consume the contents of such logs and thus rebuild the contents of PCRs [0-9] (and potentially PCRs [11-14]). #### Implementation[¶](#implementation) Keylime can make use of this new capability in a very flexible manner. A “measured boot reference state” or mb_refstate for short can be specified by the keylime operator (i.e. the tenant). This operator-provided piece of information is used, in a fashion similar to the “IMA policy” (previously known as “allowlist”), by the keylime_verifier, to compare the contents of the information shipped from the keylime_agent (boot log in one case, IMA log on the other), against such reference state. Due to the fact that physical node-specific information can be encoded on the “measured boot log”, it became necessary to specify (optionally) a second piece of information, a “measured boot policy”. This information is used to instruct the keylime_verifier on how to do the comparison (e.g., using a regular expression, rather than a simple equality match). The policy name is specified in keylime.conf, under the [cloud_verifier] section of the file, with paramater named measured_boot_policy_name. The default value for it is accept-all, meaning “just don’t try to match the contents”. Whenever a “measured boot reference state” is defined - via a new command-line option in keylime_tenant - –mb_refstaste, the following actions will be taken. 1. PCRs [0-9] and [11-14] will be included in the quote sent by keylime_agent 2) The keylime_agent will also send the contents of /sys/kernel/security/tpm0/binary_bios_measurements 3) The keylime_verifier will replay the boot log from step 2, ensuring the correct values for PCRs collected in step 1. Again, this is very similar to what it is done with “IMA logs” and PCR 10. 4) The very same keylime_verifier will take the boot log, now deemed “attested” and compare it against the “measured boot reference state”, according to the “measured boot policy”, causing the attestation to fail if it does not conform. #### How to use[¶](#how-to-use) The simplest way to use this new functionality is by providing an empty “measured boot reference state” and an accept-all “measured boot policy”, which will cause the keylime_verifer to simply skip the aforementioned step 4. An example follows: ``` echo "{}" > measured_boot_reference_state.txt keylime_tenant -c add -t <AGENT IP> -v <VERIFIER IP> -u <AGENT UUID> --mb_refstate ./measured_boot_reference_state.txt ``` Note: please keep in mind that the IMA-specific options can be combined with the above options in the example, resulting in a configuration where a keylime_agent sent a quote with PCRs [0-15] and both logs (boot and IMA) ### Run-time Integrity Monitoring[¶](#run-time-integrity-monitoring) Keylimes run-time integrity monitoring requires the set up of Linux IMA. You should refer to your Linux Distributions documentation to enable IMA, but as a general guide most recent versions already have CONFIG_IMA toggled to Y as a value during Kernel compile. It is then just a case of deploying an ima-policy file. On a Fedora or Debian system, the file is situated in /etc/ima/ima-policy. For configuration of your IMA policy, please refer to the [IMA Documentation](https://github.com/torvalds/linux/blob/6f0d349d922ba44e4348a17a78ea51b7135965b1/Documentation/ABI/testing/ima_policy) Within Keylime we use the following for demonstration: ``` # PROC_SUPER_MAGIC dont_measure fsmagic=0x9fa0 # SYSFS_MAGIC dont_measure fsmagic=0x62656572 # DEBUGFS_MAGIC dont_measure fsmagic=0x64626720 # TMPFS_MAGIC dont_measure fsmagic=0x01021994 # RAMFS_MAGIC dont_measure fsmagic=0x858458f6 # SECURITYFS_MAGIC dont_measure fsmagic=0x73636673 # MEASUREMENTS measure func=BPRM_CHECK measure func=FILE_MMAP mask=MAY_EXEC measure func=MODULE_CHECK uid=0 ``` This default policy measures all executables in bprm_check, all files mmapped executable in file_mmap and module checks. Once your ima-policy is in place, reboot your machine (or even better have it present in your image for first boot). You can then verify IMA is measuring your system: ``` # head -5 /sys/kernel/security/ima/ascii_runtime_measurements PCR template-hash filedata-hash filename-hint 10 3c93cea361cd6892bc8b9e3458e22ce60ef2e632 ima-ng sha1:ac7dd11bf0e3bec9a7eb2c01e495072962fb9dfa boot_aggregate 10 3d1452eb1fcbe51ad137f3fc21d3cf4a7c2e625b ima-ng sha1:a212d835ca43d7deedd4ee806898e77eab53dafa /usr/lib/systemd/systemd 10 e213099a2bf6d88333446c5da617e327696f9eb4 ima-ng sha1:6da34b1b7d2ca0d5ca19e68119c262556a15171d /usr/lib64/ld-2.28.so 10 7efd8e2a3da367f2de74b26b84f20b37c692b9f9 ima-ng sha1:af78ea0b455f654e9237e2086971f367b6bebc5f /usr/lib/systemd/libsystemd-shared-239.so 10 784fbf69b54c99d4ae82c0be5fca365a8272414e ima-ng sha1:b0c601bf82d32ff9afa34bccbb7e8f052c48d64e /etc/ld.so.cache ``` #### Keylime IMA allowlists[¶](#keylime-ima-allowlists) An allowlist is a set of “golden” cryptographic hashes of a files un-tampered state or of keys that may be loaded onto keyrings. The structure of the allowlist is a hash followed by a full POSIX path to the file: ``` ffe3ad4c395985d143bd0e45a9a1dd09aac21b91 /path/to/file ``` For a key that is expected to be loaded on a keyring with the name .ima an entry may look like this: ``` <KEY> %keyring:.ima ``` Keylime will load the allowlist into the Keylime Verifier. Keylime will then poll tpm quotes to PCR 10 on the agents TPM and validate the agents file(s) state against the allowlist. If the object has been tampered with or an unexpected key was loaded onto a keyring, the hashes will not match and Keylime will place the agent into a failed state. Likewise, if any files invoke the actions stated in ima-policy that are not matched in the allowlist, keylime will place the agent into a failed state. ##### Generate an allowlist[¶](#generate-an-allowlist) Keylime provides a script to generate allowlists from initramfs, but this is only a guide. We encourage developers / users of Keylime to be creative and come up with their own process for securely creating and maintaining an allowlist. The create_allowlist.sh script is [available here](https://github.com/keylime/python-keylime/blob/master/keylime/create_allowlist.sh) Run the script as follows: ``` # create_allowlist.sh allowlist.txt [hash-algo] ``` With [hash-algo] being sha1sum, sha256sum (note, you need the OpenSSL app installed to have the shasum CLI applications available). This will then result in allowlist.txt being available for Agent provisioning. Warning It’s best practice to create the allowlist in a secure environment. Ideally, this should be on a fully encrypted, air gapped computer that is permanently isolated from the Internet. Disable all network cards and sign the allowlist hash to ensure no tampering occurs when transferring to other machines. Alongside building an allowlist from initramfs, you could also generate good hashes for your applications files or admin scripts that will run on the remotely attested machine. ##### Excludes List[¶](#excludes-list) An excludes list can be utilised to exclude any file or path. The excludes list uses the Python regular expression standard, where the syntax is similar to those found in Perl. Note that this syntax is different from POSIX basic regular expressions. For example the tmp directory can be ignored using: ``` /tmp/.* ``` ##### Allowlist entries for keys[¶](#allowlist-entries-for-keys) Allowlist entries for keys expected to be loaded onto keyrings can be generated by hashing the files of keys like this: ``` sha256sum /etc/keys/ima/rsakey-rsa.crt.der ``` As previously shown, the allowlist entry should be formed of the hash (sha256) and the prefix ‘%keyring:’ in front of the keyring the key will be loaded onto: ``` b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c %keyring:.ima ``` The following rule should be added to the IMA policy so that IMA reports keys loaded onto keyrings .ima and .evm (since Linux 5.6): ``` measure func=KEY_CHECK keyrings=.ima|.evm ``` ##### IMA Keylime JSON format[¶](#ima-keylime-json-format) The tenant parses the allow and exclude list into a JSON object that is then sent to the verifier. Depending of the use case the object can also be constructed manually instead of using the tenant. ``` { "allowlist":{ "meta":{ "version":"ALLOWLIST_CURRENT_VERSION" }, "release":"RELEASE_VERSION", "hashes":{ "/file/path":[ "VALID_HASH1", "VALID_HASH2" ] }, "keyrings":{ "LINUX_KEYRING":[ "VALID_HASH3" ] }, "ima":{ "ignored_keyrings":[ "IGNORED_KEYRING" ] } }, "exclude":[ "REGEX1, REGEX2" ] } ``` * ALLOWLIST_CURRENT_VERSION (integer): current version of the allow list format (latest is 2). * RELEASE_VERSION (integer): release version of this allowlist. * hashes: dictionary of the file path that should be validated as key and a list of valid hashes as entry. * VALID_HASHn: valid hash of the file or keyring that is measured * keyrings: dictionary of the keyring that should be used for signature validation and a list of valid hashes as entry. * LINUX_KEYRING: kernel keyring like .ima or .evm * ignored_keyrings: successful validated keyrings are used for signature validation. Add * to disable all or add them one by one. * exclude: list of regexes of files to exclude * REGEXn: regex for excluding certain files (e.g. /tmp/.*) ##### Remotely Provision Agents[¶](#remotely-provision-agents) Now that we have our allowlist available, we can send it to the verifier. Note If you’re using a TPM Emulator (for example with the ansible-keylime-tpm-emulator, you will also need to run the keylime ima emulator. To do this, open a terminal and run keylime_ima_emulator Using the keylime_tenant we can send the allowlist and our excludes list as follows: ``` keylime_tenant -v <verifier-ip> -t <agent-ip> -f /path/excludes.txt --uuid D432FBB3-D2F1-4A97-9EF7-75BD81C00000 --allowlist /path/allowlist.txt --exclude /path/excludes.txt ``` Note If your agent is already registered, you can use -c update Should you prefer, you can set the values allowlist & ima_excludelist within /etc/keylime.conf, you can then use default as follows: ``` `keylime_tenant -v 127.0.0.1 -t neptune -f /root/excludes.txt --uuid D432FBB3-D2F1-4A97-9EF7-75BD81C00000 --allowlist default --exclude default` ``` #### How can I test this?[¶](#how-can-i-test-this) Create a script that does anything (for example echo “hello world”) that is not present in your allowlist or the excludes list. Run the script as root on the agent machine. You will then see the following output on the verifier showing the agent status change to failed: ``` keylime.tpm - INFO - Checking IMA measurement list... keylime.ima - WARNING - File not found in allowlist: /root/evil_script.sh keylime.ima - ERROR - IMA ERRORS: template-hash 0 fnf 1 hash 0 good 781 keylime.cloudverifier - WARNING - agent D432FBB3-D2F1-4A97-9EF7-75BD81C00000 failed, stopping polling ``` #### IMA File Signature Verification[¶](#ima-file-signature-verification) Keylime supports the verification of IMA file signatures, which also helps to detect modifications on immutable files and can be used to complement or even replace the allowlist of hashes if all relevant executables and libraries are signed. However, the set up of a system that has *all* files signed is beyond the scope of this documentation. In the following we will show how files can be signed and how a system with signed files must be registered. We assume that the system has already been set up for runtime-integrity monitoring following the above steps and that the system would not show any errors on the Keylime Verifier side. It should not be registered with the keylime verifier at this point. If it is, we now deregister it: ``` keylime_tenant -c delete -u D432FBB3-D2F1-4A97-9EF7-75BD81C00000 ``` Our first step is to enable IMA Appraisal in Linux. Recent Fedora kernels for example have IMA Appraisal support built-in but not activated. To enable it, we need to add the following Linux kernel parameters to the Linux boot command line: ``` ima_appraise=fix ima_template=ima-sig ima_policy=tcb ``` For this we edit /etc/default/grub and append the above parameters to the GRUB_CMDLINE_LINUX line and then recreate the system’s grub configuration file with the following command: ``` sudo grub2-mkconfig -o /boot/grub2/grub.cfg ``` IMA will be in IMA Appraisal fix-mode when the system is started up the next time. Fix-mode, unlike enforcement mode, does not require that all files be signed but will give us the benefit that the verifier receives all file signatures of signed executables. For IMA Appraisal to append the file signatures to the IMA log, we need to append the following line to the above IMA policy: ``` appraise func=BPRM_CHECK fowner=0 appraise_type=imasig ``` We now create our IMA file signing key using the following commands: ``` openssl genrsa -out ima-filesigning.pem 2048 openssl rsa -in ima-filesigning.pem -pubout -out ima-pub.pem ``` Next, we determine the hash (sha1 or sha256) that IMA is using for file measurements by looking at the IMA measurement log and then use evmctl to sign a demo executable that we derive from the echo tool: ``` sudo dnf -y install ima-evm-utils cp /bin/echo ./myecho sudo evmctl ima_sign --key ima-filesigning.pem -a <hash> myecho ``` Note It is important that we use the same hash for signing the file that IMA also uses for file measurements. In the case we use ‘sha1’ since the IMA measurement log further above shows sha1 filedata-hashes in the 4th column. On more recent systems we would likely use ‘sha256’. Note If the IMA measurement log contains invalid signatures, the system will have to be rebooted to start over with a clean log that the Keylime Verifier can successfully verify. Invalid signatures may for example be in the log if executables were accidentally signed with the wrong hash, such as sha1 instead of sha256. In this case they all need to be re-signed to match the hash that IMA is using for file signatures. Another reason for an invalid signature may be that a file was modified after it was signed. Any file modification will invalidate the signature. Similarly, a malformatted or altered *security.ima* extended attribute will lead to a signature verification failure. Yet another reason may be that an unknown key was used for signing files. In this case the system should be re-registered with that additional key using the Keylime tenant tool. To verify that the file has been properly signed, we can use the following command, which will show the security.ima extended attribute’s value: ``` getfattr -m ^security.ima --dump myecho ``` We now reboot the machine: ``` reboot ``` After the reboot the IMA measurement log should not have any measurement of the myecho tool. The following command should not return anything: ``` grep myecho /sys/kernel/security/ima/ascii_runtime_measurements ``` We now register the system and pass along the file signing key: ``` keylime_tenant -v 127.0.0.1 -t neptune -f /root/excludes.txt \ --uuid D432FBB3-D2F1-4A97-9EF7-75BD81C00000 --allowlist default --exclude default \ --sign_verification_key ima-pub.pem ``` We can now execute the myecho tool as root: ``` sudo ./myecho ``` At this point we should not see any errors on the verifier side and there should be one entry of ‘myecho’ in the IMA measurement log that contains a column after the file path containing the file signature: ``` grep myecho /sys/kernel/security/ima/ascii_runtime_measurements ``` To test that signature verification works, we can now invalidate the signature by *appending* a byte to the file and executing it again: ``` echo >> ./myecho sudo ./myecho ``` We should now see two entries in the IMA measurement log. Each one should have a different measurement: ``` grep myecho /sys/kernel/security/ima/ascii_runtime_measurements ``` The verifier log should now indicating a bad file signature: ``` keylime.tpm - INFO - Checking IMA measurement list on agent: D432FBB3-D2F1-4A97-9EF7-75BD81C00000 keylime.ima - WARNING - signature for file /home/test/myecho is not valid keylime.ima - ERROR - IMA ERRORS: template-hash 0 fnf 0 hash 0 bad-sig 1 good 3042 keylime.cloudverifier - WARNING - agent D432FBB3-D2F1-4A97-9EF7-75BD81C00000 failed, stopping polling ``` ### Secure Payloads[¶](#secure-payloads) Warning This page is still under development and not complete. It will be so until this warning is removed. Secure payloads offer the ability to provision encrypted data to an enrolled node. This encrypted data can be used to deliver secrets needed by the node such as keys, passwords, certificate roots of trust, etc. Secure payloads are for anything which requires strong confidentiality and integrity to bootstrap your system. The payload itself is encrypted and sent via the Keylime Tenant CLI (or rest API) to the Keylime Agent. The Agent also sends part of the key needed to decrypt the payload, a key share, called the u_key or user key. Only when the Agent has passed its enrolment criteria (including any tpm_policy or IMA allowlist), will the other key share of the decryption key, called the v_key or verification key, be passed to the Agent by the Keylime Verifier to decrypt the payload. Note An alternative to secure payloads is to deliver the encrypted data to the node through some other mechanism like cloud-init or pre-embedded in a disk image. The Keylime protocol described above will still run to derive the decryption key for this data, but the data itself will never been seen or transported by Keylime. This guide does not discuss this method. Keylime offers two modes for sending secure payloads: single file encryption and certificate package mode. In the following sections we describe each. If you’re interested in using the more advanced certificate package mode, we recommend you also read the Single File Encryption section as it contains configuration options and other information that both modes share. #### Single File Encryption[¶](#single-file-encryption) In this mode, a file you specify to the keylime_tenant application with the -f option will be encrypted by the Tenant using the bootstrap key and securely delivered to the Agent. Once the Keylime protocol with the Tenant and Verifier has completed, the Keylime Agent will decrypt this file and place it in /var/lib/keylime/secure/decrypted_payload This is the default file name, but you can adjust the name of this file using the dec_payload_file option in keylime.conf. You can also optionally specify a zip file as the file to be securely delivered. If the extract_payload_zip option in keylime.conf is set (which it is by default), then Keylime will automatically extract the zip file to /var/lib/keylime/secure/unzipped. Finally, Keylime can also execute a script contained in the zip file once it has been unzipped. You can think of this as a very simple form of [cloud-init](https://cloudinit.readthedocs.io/). By default this script is called autorun.sh. You can override this default with a different script name by adjusting the payload_script option in keylime.conf. Note also that this script must be contained in the encrypted zip file, from which it will be extraced and then placed in /var/lib/keylime/secure/unzipped. Because the keys that Keylime uses to decrypt the data and the decrypted data itself are very sensitive, Keylime will only write those files to the memory-backed (and therefore non-persistent) /var/lib/keylime/secure directory. This is a bind-mounted tmpfs partition. As such, depending on how large your payload is, you may need to increase the size of this mounted partition by adjusting the secure_size option in keylime.conf. This simple mode of operation is suitable for many situations where the secrets and other bootstrapping information are basic. However, there are several features that Keylime supports like revocation and certificate management that do not work in this mode. For those, you’ll need the next mode: Certificate Package Mode. #### Certificate Package Mode[¶](#certificate-package-mode) This mode of Keylime automates many common actions that tenants will want to take when provisioning their Agents. First, Keylime can create an X509 certificate authority (CA) using keylime_ca -d listen and then issue certificates and the corresponding private keys to each provisioned node. This CA lives on the same host where the tenant issues the keylime_ca command and can be used to bootstrap many other security solutions like mutual TLS or SSH. To use this mode, pass the –cert option and a directory where the CA is located as the parameter to this option. Keylime will then create a certificate for the node (with the common name set to the Agent’s UUID) and then create a zip file containing the newly generated X509 certificates, trust roots, and private keys. It then uses the same process for single file encryption as described above to securely deliver all the keys to the Agent. Optionally, the user can specify with the –include option a directory of additional files to be put into the certification package zip and securely delivered to the Agent. This mode of operation also natively supports certificate revocation. If the Keylime Verifier detects an Agent that no longer satisfies its integrity policy (e.g., it booted an authorized kernel or ran an unauthorized binary not on the IMA allowlist), it will create a signed revocation notification. These revocation notifications are signed by a special certificate/private key called the RevocationNotifier. Keylime will automatically create this certificate and pass it to the verifier when you add a new Agent to the verifier. Keylime will also include the public certificate for this key in the zip it sends to the Agent. This way Agents can validate the revocation notifications they receive from the verifier. By default all Keylime Agents listen for these revocation notifications (see the listen_notifications option in keylime.conf). Using the keys in the unzipped certificate package, Agents can check that the revocations are valid. Keylime Agents can also take actions in response to a valid revocation. You can configure these actions by putting additional files into the delivered zip file using –include. Revocation actions are small Python scripts that will run on an Agent when a valid revocation is received. They should contain an execute function that takes one argument. This argument is a Python dictionary of metadata that can be used to tailor what the revocation action does. In the cert package mode, Keylime will specify the certificate serial number and common name (aka UUID) of the node that has failed its integrity check inside this metadata passed to the revocation action. For example, you can use this info to revoke the the offending X509 certificate. One subtlety to revocation actions is that they are not intended for the Agent that has been revoked. If an Agent has failed its integrity check, then we really can’t trust that it won’t ignore the revocations and do arbitrarily malicious things. So, revocation actions are for other well-behaving Agents in the system to take action against the revoked Agent. For example, by revoking its certificate as described above or firewalling it from the network, etc. There are several revocation actions implemented in Keylime that you can look at to get an idea of how to write your own. See the files starting with local_action in <https://github.com/keylime/keylime/tree/master/auto-ipsec/libreswan/srcThere are some conventions to specifying revocation actions. As described above, their names must start with local_action to be executed. They also must be listed (without .py extensions) in a comma separated list in a file called action_list in the zip file. For example to run local_action_a.py and local_action_b.py the action_list file should contain local_action_a,local_action_b. So far we’ve described all the details of this in fine detail, but much of this automation will happen by default. #### Certificate Package Example[¶](#certificate-package-example) Let’s put all of the above together with an example. For the following example, we will provision some SSH keys onto the Agent. 1. Create a directory to host the files and autorun.sh script. For this example, we will use the directory payload 2. Create an autorun.sh script in the payload directory: ``` #!/bin/bash # this will make it easier for us to find our own cert ln -s `ls *-cert.crt | grep -v Revocation` mycert.crt mkdir -p /root/.ssh/ cp payload_id_rsa* /root/.ssh/ chmod 600 /root/.ssh/payload_id_rsa* ``` 3. Copy the files you wish to provision into the payload directory. ``` $ ls payload/ autorun.sh payload_id_rsa.pub payload_id_rsa ``` Send the files using the Keylime Tenant tool: ``` keylime_tenant -t <agent-ip> --cert myca --include payload ``` Recall that the –cert option tells Keylime to create a certificate authority at the default location /var/lib/keylime/ca and give this machine an X509 identity with its UUID. Keylime will also create a revocation notifier certificate for this CA and make it available to the verifier. Finally, the –include option tells Keylime to securely deliver the files in the specified directory (payload in our case) along with the X509 certs to the targeted Agent machine. If the enrolment was been successful, you will be able to see the contents of the payload directory in /var/lib/keylime/secure/unzipped along with the certs and included files. You should also see the SSH keys we included made in /root/.ssh directory from where the autorun.sh script was ran. Now, let’s extend this example with revocation. In this example, we’re going to execute a simple revocation action on the node that was revoked. It is also possible to configure scripts for execution should a node fail any given criteria (IMA measurements, for example). To configure this, we will use our payload directory again. First create a Python script with the preface of local_action For example local_action_rm_ssh.py Within this script create an execute function: ``` import os import json import keylime.ca_util as ca_util import keylime.secure_mount as secure_mount async def execute(event): if event['type'] != 'revocation': return json_meta = json.loads(event['meta_data']) serial = json_meta['cert_serial'] # load up my own cert secdir = secure_mount.mount() mycert = ca_util.load_cert_by_path(f'{secdir}/unzipped/mycert.crt') # is this revocation meant for me? if serial == mycert.serial_number: os.remove("/root/.ssh/payload_id_rsa") os.remove("/root/.ssh/payload_id_rsa.pub") ``` Next, in the payload directory create the action_list file containing local_action_rm_ssh (remember not to put the .py extension). Warning In the above example, the node that fails its integrity check is the same one that we’re expecting to run the revocation action to delete the key. Since the node is potentially compromised, we really can’t expect that it will actually do this and not just ignore the revocation. A more realistic scenario for SSH keys is to provision one node with the SSH key generated as above, then provision a second server and add payload_id_rsa.pub to .ssh/authorized_keys using an autorun script. At this point, you can SSH from the first server to the second one. Should the first machine fail its integrity, then an revocation action on the second server can remove the compromised first machine from its list of Secure machines in .ssh/authorized_keys Many actions can be executed based on CA revocation. For more details and examples, please refer to the [Agent Revocation](index.html#document-user_guide/revocation) page. ### Agent Revocation[¶](#agent-revocation) Warning This page is still under development and not complete. It will be so until this warning is removed. Design of Keylime[¶](#design-of-keylime) --- ### Overview of Keylime[¶](#overview-of-keylime) Keylime mainly consists of an agent, two server components (verifier and registrar) and a commandline tool the tenant. #### Agent[¶](#agent) The agent is a service that runs on the operating system that should be attested. It communicates with the TPM to enroll the AK and to generate quotes and collects the necessary data like the UEFI and IMA event logs to make state attestation possible. The agent provides an interface to provision the device further once it was attested successfully for the first time using the secure payload mechanism. For more details see: [Secure Payloads](index.html#document-user_guide/secure_payload). It is possible for the agent to listen to revocation events that are sent by the verifier if an agent attestation failed. This is useful for environments where attested systems directly communicate with each other and require that the other systems are trusted. In this case a revocation message might change local policies so that the compromised system cannot access any resources from other systems. #### Registrar[¶](#registrar) The agent registers itself in the registrar. The registrar manages the agent enrollment process which includes getting an UUID for the agent, collecting the EKpub, EK certificate and AKpub from an agent and verifying that the AK belongs to the EK (using MakeCredential and ActivateCredential). Once an agent has been registered in the registrar, it is ready to be enrolled for attestation. The tenant can use the EK certificate to verify to verify the trustworthiness of the TPM. Both the tenant and verifier Note If EK or AK are mentioned outside of internal TPM signing operations, it usually references the EKpub or AKpub because it should not be possible extract the private keys out of the TPM. Note The Keylime agent currently generates a AK on every startup and sends the EK and EK certificate. This is done to keep then design simple by not requiring a third party to verify the EK. The EK (and EK certificate) is required to verify the authenticity of the AK once and Keylime does not require a new AK but currently registration only with an AK is not enabled because the agent does not implement persisting the AK. #### Verifier[¶](#verifier) The verifier implements the actual attestation of an agent and sends revocation messages if an agent leaves the trusted state. Once an agent is registered for attestation (using the tenant or the API directly) the verifier continuously pulls the required attestation data from the agent. This can include: a quote over the PCRs, the PCR values, NK public key, IMA log and UEFI event log. After that the quote is validated additional validation of the data can be configured. ##### Static PCR values[¶](#static-pcr-values) The tpm_policy allows for simple checking of PCR values against a known good allowlist. In most cases this is only useful when the boot chain does not change often, there is a way to retrieve the values beforehand and the UEFI event log is unavailable. More information can be found in [User Selected PCR Monitoring](index.html#document-user_guide/user_selected_pcr_monitoring). ##### Measured Boot using the UEFI Event Log[¶](#measured-boot-using-the-uefi-event-log) On larger deployments it is not feasible to collect golden values for the PCR values used for measured boot. To make attestation still possible Keylime includes a policy engine for validating the UEFI event log. This is the preferred method because static PCR values are fragile because they change if something in the boot chain is updated (firmware, Shim, GRUB, Linux kernel, initrd, …). More information can be found in [Use Measured Boot](index.html#document-user_guide/use_measured_boot). ##### IMA validation[¶](#ima-validation) Keylime allows to verify files measured by IMA against either a provided allowlist or a signature. This makes it for example easy to attest all files that were executed by root. More information can be found in [Run-time Integrity Monitoring](index.html#document-user_guide/runtime_ima). #### Tenant[¶](#tenant) The tenant is a commandline management tool shipped by Keylime to manage agents. This includes adding or removing the agent from attestation, validation of the EK certificate against a cert store and getting the status of an agent. It also provides the necessary tools for the payload mechanism and revocation actions. For all the features of the tenant see the output of `keylime_tenant --help`. ### Threat Model[¶](#threat-model) Keylime was originally developed with the intention of using it in combination with hypervisors to protect the VMs against by using the vTPM support in Xen. vTPM support for TPM2.0 was never implemented into Keylime and swtpm+libvirt never supported it, so this model no longer fits. Keylime is commonly used either on bare metal hardware or in VMs where the TPM is emulated but from VM side treated the same as a hardware TPM. Therefore the common threat model is defined on the latter use case. Note The term vTPM can be confusing because it originally described the deep quote feature in Xen which Keylime used for TPM 1.2. Now it commonly refers to a software implementation of a TPM (e.g. swtpm) or the Virtual TPM Proxy Driver in the Linux kernel. From Keylime’s perspective the core hardware like CPU, memory, motherboard is trusted, because it does not provide mechanisms to detect tampering with the hardware itself. Keylime chains its root of trust into the TPM therefore the TPM is deemed in general trustworthy. This trust is verified using the EK or EK certificate. The goal of Keylime is to attest the state of a running system. For this to work the entire boot chain has to be verified. The UEFI with Secure Boot enabled firmware and CRTM are generally trusted because it provides the UEFI event log and the API for other EFI applications to use the TPM. All the other applications in the boot chain are either measured by the firmware or the application that loads them (e.g. GRUB2 loads the kernel). The threat model does not require to trust arbitrary EFI applications during the boot process because it can be verified after boot what was executed. The threat model includes that an adversary has full control over the network and can either sent rouge messages, drop or modify them. Also the Keylime agent and running operating system itself is not deemed trustworthy by default. Only after the successful initial attestation the system is deemed trustworthy, but still can leave the trusted state at any moment and is therefore continuously attested. #### Types of Attacks to detect[¶](#types-of-attacks-to-detect) Keylime tries to detect the following attacks. ##### TPM Quote Manipulation[¶](#tpm-quote-manipulation) Because the TPM is the root-of-trust for Keylime, it ensures that the quote is valid. This is vital for all the other attestation steps because the quote is used to validate the data. Keylime ensures this through three steps: > * EK validation: The tenant allows Keylime to verify the EK certificate against the CAs of hardware manufacturers > or add custom validation steps. This is done to ensure that the EK belongs to an actual hardware TPM or a trusted > software TPM. > * AK enrollment: Using the TPM commands MakeCredential, ActivateCredential and enforcing certain key properties > (restricted, user with auth, sign encrypt, fixed TPM, fixed parent and sensitive data origin) > Keylime ensures that the used AK belongs to the provided EK and has the right properties for signing quotes. > * Quote validation: Each quote generated by the TPM is verified with the AK provided during agent registration. > The verifier provides a fresh nonce that is included in the quote to prohibit replay attacks. ##### Modification of the boot process[¶](#modification-of-the-boot-process) Checking the security of the running system does only make sense if it can be ensured that the system was correctly booted. Therefore Keylime provides two ways to allow users to verify the entire boot chain up to the running system: static PCR value checks ([User Selected PCR Monitoring](index.html#document-user_guide/user_selected_pcr_monitoring)) and the measured boot policy engine ([Use Measured Boot](index.html#document-user_guide/use_measured_boot)). ##### Runtime file and system integrity[¶](#runtime-file-and-system-integrity) Keylime can attest the state of a Linux system and the files using the Linux Integrity Measurement Architecture (IMA). Therefore Keylime can be used to remotely check for attacks that IMA detects. Rest API’s[¶](#rest-api-s) --- All Keylime APIs use REST (Representational State Transfer). ### Authentication[¶](#authentication) Most API interactions are secured using mTLS connections. There are up to three different CAs involved. (The revocation process also uses a CA, but this is a different to those CAs) #### Verifier CA (CV CA)[¶](#verifier-ca-cv-ca) This CA is used by the verifier to authenticate connections to it. The tenant requires a certificate from this CA to add/delete/list agents at the CV. #### Registrar CA[¶](#registrar-ca) This CA is used by the registrar to authenticate connections to it. The tenant and the verifier require certificate from this CA to get or delete agent information from the registrar. By default it is the same CA as the CV CA. Note that the API endpoints from the registrar for the agent are unprotected by design. #### Agent Keylime CA[¶](#agent-keylime-ca) The agent runs a HTTPS server and provides it’s certificate to the registrar (mtls_cert). All connections done to the agent are verified against the CA specified in the keylime_ca option. This ensures that only trusted systems can interact with the agents. By default the CV CA is used, but the CA certificate (cacert.crt) needs to be copied to the agents. Registrar, tenant and verifier can configure this CA separately using the agent_mtls_* options. ### RESTful API for Keylime (v2.1)[¶](#restful-api-for-keylime-v2-1) Keylime API is versioned. More information can be found here: <https://github.com/keylime/enhancements/blob/master/45_api_versioning.mdWarning API version 1.0 will no longer be officially supported starting with Keylime 6.4.0. #### General responses[¶](#general-responses) ANY /[¶](#any--) Generic fields in responses Response JSON Object: * **code** (*int*) – HTTP status code * **status** (*string*) – textual context of that status * **results** (*object*) – Holds the actual data. #### Cloud verifier (CV)[¶](#cloud-verifier-cv) GET /v2.1/agents/{agent_id:UUID}[¶](#get--v2.1-agents-agent_id-UUID) Get status of agent agent_id from CV **Example response**: ``` { "code": 200, "status": "Success", "results": { "operational_state": 7, "v": "yyNnlWwFRz1ZUzSe2YEpz9A5urtv6oywgttTF7VbBP4=", "ip": "127.0.0.1", "port": 9002, "tpm_policy": "{\"22\": [\"0000000000000000000000000000000000000001\", \"0000000000000000000000000000000000000000000000000000000000000001\", \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001\", \"ffffffffffffffffffffffffffffffffffffffff\", \"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\", \"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"], \"15\": [\"0000000000000000000000000000000000000000\", \"0000000000000000000000000000000000000000000000000000000000000000\", \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\"], \"mask\": \"0x408000\"}", "vtpm_policy": "{\"23\": [\"ffffffffffffffffffffffffffffffffffffffff\", \"0000000000000000000000000000000000000000\"], \"15\": [\"0000000000000000000000000000000000000000\"], \"mask\": \"0x808000\"}", "meta_data": "{}", "allowlist_len": 0, "mb_refstate_len": 0, "accept_tpm_hash_algs": [ "sha512", "sha384", "sha256", "sha1" ], "accept_tpm_encryption_algs": [ "ecc", "rsa" ], "accept_tpm_signing_algs": [ "ecschnorr", "rsassa" ], "hash_alg": "sha256", "enc_alg": "rsa", "sign_alg": "rsassa", "verifier_id": "default", "verifier_ip": "127.0.0.1", "verifier_port": 8881, "severity_level": 6, "last_event_id": "qoute_validation.quote_validation" } } ``` Response JSON Object: * **code** (*int*) – HTTP status code * **status** (*string*) – Status as string * **operational_state** (*int*) – Current state of the agent in the CV. Defined in <https://github.com/keylime/keylime/blob/master/keylime/common/states.py> * **v** (*string*) – V key for payload base64 encoded. Decoded length is 32 bytes * **ip** (*string*) – Agents contact ip address for the CV * **port** (*string*) – Agents contact port for the CV * **tpm_policy** (*string*) – Static PCR policy and mask for TPM * **vtpm_policy** (*string*) – Static PCR policy and mask for vTPM * **meta_data** (*string*) – Metadata about the agent. Normally contains certificate information if a CA is used. * **allowlist_len** (*int*) – Length of the allowlist. * **mb_refstate_len** (*int*) – Length of the measured boot reference state policy. * **accept_tpm_hash_algs** (*list[string]*) – Accepted TPM hashing algorithms. sha1 must be enabled for IMA validation to work. * **accept_tpm_encryption_algs** (*list[string]*) – Accepted TPM encryption algorithms. * **accept_tpm_signing_algs** (*list[string]*) – Accepted TPM signing algorithms. * **hash_alg** (*string*) – Used hashing algorithm. * **enc_alg** (*string*) – Used encryption algorithm. * **sign_alg** (*string*) – Used signing algorithm. * **verifier_id** (*string*) – Name of the verifier that is used. (Only important if multiple verifiers are used) * **verifier_ip** (*string*) – IP of the verifier that is used. * **verifier_port** (*int*) – Port of the verifier that is used. * **severity_level** (*int*) – Severity level of the agent. Might be null. Levels are the numeric representation of the severity labels. * **last_event_id** (*string*) – ID of the last revocation event. Might be null. POST /v2.1/agents/{agent_id:UUID}[¶](#post--v2.1-agents-agent_id-UUID) Add new agent instance_id to CV. **Example request**: ``` { "v": "3HZMmIEc6yyjfoxdCwcOgPk/<KEY> "cloudagent_ip": "127.0.0.1", "cloudagent_port": 9002, "tpm_policy": "{\"22\": [\"0000000000000000000000000000000000000001\", \"0000000000000000000000000000000000000000000000000000000000000001\", \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001\", \"ffffffffffffffffffffffffffffffffffffffff\", \"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\", \"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"], \"15\": [\"0000000000000000000000000000000000000000\", \"0000000000000000000000000000000000000000000000000000000000000000\", \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\"], \"mask\": \"0x408000\"}", "vtpm_policy": "{\"23\": [\"ffffffffffffffffffffffffffffffffffffffff\", \"0000000000000000000000000000000000000000\"], \"15\": [\"0000000000000000000000000000000000000000\"], \"mask\": \"0x808000\"}", "allowlist": "{}", "mb_refstate": "null", "ima_sign_verification_keys": "[]", "metadata": "{\"cert_serial\": 71906672046699268666356441515514540742724395900, \"subject\": \"/C=US/ST=MA/L=Lexington/O=MITLL/OU=53/CN=D432FBB3-D2F1-4A97-9EF7-75BD81C00000\"}", "revocation_key": "---BEGIN PRIVATE KEY--- (...) ---END PRIVATE KEY---\n", "accept_tpm_hash_algs": [ "sha512", "sha384", "sha256", "sha1" ], "accept_tpm_encryption_algs": [ "ecc", "rsa" ], "accept_tpm_signing_algs": [ "ecschnorr", "rsassa" ], "supported_version": "2.0" } ``` Request JSON Object: * **v** (*string*) – V key for payload base64 encoded. Decoded length is 32 bytes. * **cloudagent_ip** (*string*) – Agents contact ip address for the CV. * **cloudagent_port** (*string*) – Agents contact port for the CV. * **tpm_policy** (*string*) – Static PCR policy and mask for TPM. Is a string encoded dictionary that also includes a mask for which PCRs should be included in a quote. * **vtpm_policy** (*string*) – Static PCR policy and mask for vTPM. Same as tpm_policy. * **allowlist** (*string*) – Allowlist JSON object string encoded. * **mb_refstate** (*string*) – Measured boot reference state policy. * **ima_sign_verification_keys** (*string*) – IMA signature verification public keyring JSON object string encoded. * **metadata** (*string*) – Metadata about the agent. Contains cert_serial and subject if a CA is used with the tenant. * **revocation_key** (*string*) – Key which is used to sign the revocation message of the agent. * **accept_tpm_hash_algs** (*list[string]*) – Accepted TPM hashing algorithms. sha1 must be enabled for IMA validation to work. * **accept_tpm_encryption_algs** (*list[string]*) – Accepted TPM encryption algorithms. * **accept_tpm_signing_algs** (*list[string]*) – Accepted TPM signing algorithms. * **supported_version** (*string*) – supported API version of the agent. v prefix must not be included. DELETE /v2.1/agents/{agent_id:UUID}[¶](#delete--v2.1-agents-agent_id-UUID) Terminate instance agent_id. **Example response**: ``` { "code": 200, "status": "Success", "results": {} } ``` PUT /v2.1/agents/{agent_id:UUID}/reactivate[¶](#put--v2.1-agents-agent_id-UUID-reactivate) Start agent agent_id (for an already bootstrapped agent_id node) PUT /v2.1/agents/{agent_id:UUID}/stop[¶](#put--v2.1-agents-agent_id-UUID-stop) Stop cv polling on agent_id, but don’t delete (for an already started agent_id). This will make the agent verification fail. #### Cloud Agent[¶](#cloud-agent) GET /v2.1/keys/pubkey[¶](#get--v2.1-keys-pubkey) Retrieves agents public key. **Example response**: ``` { "code": 200, "status": "Success", "results": { "pubkey": "---BEGIN PUBLIC KEY--- (...) ---END PUBLIC KEY---\n" } } ``` Response JSON Object: * **pubkey** (*string*) – Public rsa key of the agent used for encrypting V and U key. GET /version[¶](#get--version) Returns what API version the agent supports. This endpoint might not be implemented by all agents. **Example response**: ``` { "code": 200, "status": "Success", "results": { "supported_version": "2.0" } } ``` Response JSON Object: * **supported_version** (*string*) – The latest version the agent supports. POST /v2.1/keys/vkey[¶](#post--v2.1-keys-vkey) Send v_key to node. **Example request**: ``` { "encrypted_key": "<KEY> } ``` Request JSON Object: * **encrypted_key** (*string*) – V key encrypted with agents public key base64 encoded. POST /v2.1/keys/ukey[¶](#post--v2.1-keys-ukey) Send u_key to node (with optional payload) **Example request**: ``` { "auth_tag" : "3876c08b30c16c4140ee04300bb4262bbcc9034d8a2ed8c90784f13b484a570bf9da3d5c372141bd16d85de05c4c7cce", "encrypted_key": "<KEY> "payload": "WcXpUr4G9yfvVaojNx6K2XZuDYRkFoZQhHrvZB+TKZqsq41g" } ``` Request JSON Object: * **auth_tag** (*string*) – HMAC calculated with K key as key and UUID as data, using SHA-384 as the underlying hash algorithm * **encrypted_key** (*string*) – U key encrypted with agents public key base64 encoded * **payload** (*string*) – (optional) payload encrypted with K key base64 encoded. GET /v2.1/keys/verify[¶](#get--v2.1-keys-verify) Get confirmation of bootstrap key derivation **Example request**: ``` /v2.1/keys/verify?challenge=1234567890ABCDEFHIJ ``` Parameters: * **challenge** (*string*) – 20 character random string with [a-Z,0-9] as symbols. **Example response:** ``` { "code": 200, "status": "Success", "results": { "hmac": "719d992fb7d2a0761785fd023fe1cf8a584b835e465e71e2ef2632ff4e9938c080bdefba26194d8ea69dd7f9adee6c18" } } ``` Response JSON Object: * **hmac** (*string*) – hmac with K key as key and the challenge GET /v2.1/quotes/integrity[¶](#get--v2.1-quotes-integrity) Get integrity quote from node **Example request**: ``` /v2.1/quotes/integrity?nonce=1234567890ABCDEFHIJ&mask=0x10401&partial=0 ``` Parameters: * **nonce** (*string*) – 20 character random string with [a-Z,0-9] as symbols. * **mask** (*string*) – Mask for what PCRs from the TPM are included in the quote. * **partial** (*string*) – Is either “0” or “1”. If set to “1” the public key is excluded in the response. * **ima_ml_entry** (*string*) – (optional) Line offset of the IMA entry list. If not present, 0 is assumed. **Example Response:** ``` { "code": 200, "status": "Success", "results": { "quote": "r/1RDR4AYAB<KEY>AQAAAAQAAwAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAUABdJ/ntmsqy2aDi6NhKnLKz4k4uEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", "hash_alg": "sha256", "enc_alg": "rsa", "sign_alg": "rsassa", "pubkey": "---BEGIN PUBLIC KEY--- (...) ---END PUBLIC KEY---\n" "boottime": 123456, "ima_measurement_list": "10 367a111b682553da5340f977001689db8366056a ima-ng sha256:94c0ac6d0ff747d8f1ca7fac89101a141f3e8f6a2c710717b477a026422766d6 boot_aggregate\n", "ima_measurement_list_entry": 0, "mb_measurement_list": "AAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACEAAABTcGVjIElEIEV2ZW50MDMAAAAAAAACAAIBAAAACwAgAAAAAAAACAAAAAEAAAALAJailtIk8oXGe [....]" } } ``` Response JSON Object: * **quote** (*string*) – TPM integrity quote * **hash_alg** (*string*) – Used hash algorithm used in the quote (e.g. sha1, sha256, sha512). * **enc_alg** (*string*) – Encryption algorithm used in the quote (ecc, rsa). * **sign_alg** (*string*) – Signing algorthm used in the quote (rsassa, rsapss, ecdsa, ecdaa or ecschnorr). * **pubkey** (*string*) – PEM encoded public portion of the NK (digest is measured into PCR 16). * **boottime** (*int*) – Seconds since the system booted * **ima_measurement_list** (*string*) – (optional) IMA entry list. Is included if IMA_PCR (10) is included in the mask * **ima_measurement_list_entry** (*int*) – (optional) Starting line offset of the IMA entry list returned * **mb_measurement_list** (*string*) – (optional) UEFI Eventlog list base64 encoded. Is included if PCR 0 is included in the mask **Quote format**: The quote field contains the quote, the signature and the PCR values that make up the quote. ``` QUOTE_DATA := rTPM_QUOTE:TPM_SIG:TPM_PCRS TPM_QUOTE := base64(TPMS_ATTEST) TPM_SIG := base64(TPMT_SIGNATURE) TPM_PCRS := base64(tpm2_pcrs) // Can hold more that 8 PCR entries. This is a data structure generated by tpm2_quote ``` GET /v2.1/quotes/identity[¶](#get--v2.1-quotes-identity) Get identity quote from node **Example request:** ``` /v2.1/quotes/identity?nonce=1234567890ABCDEFHIJ ``` Parameters: * **nonce** (*string*) – 20 character random string with [a-Z,0-9] as symbols. **Example response:** ``` { "code": 200, "status": "Success", "results": { "quote": "r/1RDR4AYABYABPihP2yz+HcGF0vD0c4qiKt4nvSOAARURVNUAAAAAAAyQ9AAAAAAAAAAAAEgGRAjABY2NgAAAAEABAMAAAEAFCkk4YmhQECgWR+MnHqT9zftc3J8:ABQABAEAQ8IwX6Ak83zGhF6w8vOKOxsyTbxACQakYWGJaan3ewf+2O9TtiH5TLB1PXrPdhknsR/yx6OVUze9jTDvML9xkkK1ghXObCJ5gH+QX0udKfrLacm/iMds28SBtVO0rjqDIoYqGgXhH2ZhwGNDwjRCp6HquvtBe7pGEgtZlxf7Hr3wQRLO3FtliBPBR6gjOo7NC/uGsuPjdPU7c9ls29NgYSqdwShuNdRzwmZrF57umuUgF6GREFlxqLkGcbDIT1itV4zJZtI1caLVxqiH0Qv3sNqlNLsSHggkgc5S2EvNqwv/TsEZOq/leCoLtyVGYghPeGwg0RJfbe8cdyBWCQ6nOA==:AQAAAAQAAwAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAUABdJ/ntmsqy2aDi6NhKnLKz4k4uEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", "hash_alg": "sha256", "enc_alg": "rsa", "sign_alg": "rsassa", "pubkey": "---BEGIN PUBLIC KEY--- (...) ---END PUBLIC KEY---\n" "boottime": 123456 } } ``` Response JSON Object: * **quote** (*string*) – See quotes/integrity * **hash_alg** (*string*) – See quotes/integrity * **enc_alg** (*string*) – See quotes/integrity * **sign_alg** (*string*) – See quotes/integrity * **pubkey** (*string*) – See quotes/integrity * **boottime** (*int*) – See quotes/integrity #### Cloud Registrar[¶](#cloud-registrar) GET /v2.1/agents/[¶](#get--v2.1-agents-) Get ordered list of registered agents **Example response:** ``` { "code": 200, "status": "Success", "results": { "uuids": [ "5e600bce-a5cb-4f5a-bf08-46d0b45081c5", "6dab10e4-6619-4ff9-9062-ee6ad23ec24d", "d432fbb3-d2f1-4a97-9ef7-75bd81c00000" ] } } ``` GET /v2.1/agents/{agent_id:UUID}[¶](#get--v2.1-agents-agent_id-UUID) Get EK certificate, AIK and optinal contact ip and port of agent agent_id. **Example response:** ``` { "code": 200, "status": "Success", "results": { "aik_tpm": "ARgAAQALAAUAcgAAABAAFAALCAAAAAAAAQDjZ4J2HO7ek<KEY>", "ek_tpm": "<KEY>faq<KEY> "ekcert": "<KEY>", "mtls_cert": "---BEGIN CERTIFICATE--- (...) ---END CERTIFICATE---", "ip": "127.0.0.1", "port": 9002, "regcount": 1 } } ``` Response JSON Object: * **aik_tpm** (*string*) – base64 encoded AIK. The AIK format is TPM2B_PUBLIC from tpm2-tss. * **ek_tpm** (*string*) – base64 encoded EK. When a ekcert is submitted it will be the public key of that certificate. * **ekcert** (*string*) – base64 encoded EK certificate. Should be in DER format. Gets extracted from NV 0x1c00002. * **mtls_cert** (*string*) – Agent HTTPS server certificate. PEM encoded. * **ip** (*string*) – IPv4 address for contacting the agent. Might be null. * **port** (*integer*) – Port for contacting the agent. Might be null. POST /v2.1/agents/{agent_id:UUID}[¶](#post--v2.1-agents-agent_id-UUID) Add agent agent_id to registrar. **Example request**: ``` { "ekcert": "<KEY>", "aik_tpm": "<KEY>", "mtls_cert": "---BEGIN CERTIFICATE--- (...) ---END CERTIFICATE---", "ip": "127.0.0.1", "port": "9002" } ``` Request JSON Object: * **ekcert** (*string*) – base64 encoded EK certificate. Should be in DER format. Gets extracted from NV 0x1c00002. * **aik_tpm** (*string*) – base64 encoded AIK. The AIK format is TPM2B_PUBLIC from tpm2-tss. * **mtls_cert** (*string*) – Agent HTTPS server certificate. PEM encoded. * **ip** (*string*) – (Optional) contact IPv4 address for the verifier and tenant to use. * **port** (*string*) – (Optional) contact port for the verifier and tenant to use. **Example response**: ``` { "code": 200, "status": "Success", "results": { "blob": "<KEY>" } } ``` Response JSON Object: * **blob** (*string*) – base64 encoded blob containing the aik_tpm name and a challenge. Is encrypted with ek_tpm. DELETE /v2.1/agents/{agent_id:UUID}[¶](#delete--v2.1-agents-agent_id-UUID) Remove agent agent_id from registrar. **Example response**: ``` { "code": 200, "status": "Success", "results": {} } ``` PUT /v2.1/agents/{agent_id:UUID}/activate[¶](#put--v2.1-agents-agent_id-UUID-activate) Activate physical agent agent_id **Example request:** ``` { "auth_tag": "7087ba88746886262de743587ed97aea6b6e3f32755de5d85415c40feef3169bc58d38855ddb96e32efdd8745d0bdfef" } ``` Request JSON Object: * **auth_tag** (*string*) – hmac containing the challenge from blob and the agent_id. PUT /v2.1/agents/{agent_id:UUID}/vactivate[¶](#put--v2.1-agents-agent_id-UUID-vactivate) Activate virtual (vTPM) agent agent_id **Requires JSON Body**: ``` { "deepquote" : b64, } ``` ### Changelog[¶](#changelog) Changes between the different API versions. #### Changes from v2.0 to v2.1[¶](#changes-from-v2-0-to-v2-1) API version 2.1 was first implemented in Keylime 6.4.0. > * Added ak_tpm field to POST /v2.1/agents/{agent_id:UUID} in cloud verifier. > * Added mtls_cert field to POST /v2.1/agents/{agent_id:UUID} in cloud verifier. > * Removed vmask parameter from This removed the requirement for the verifier to connect to the registrar. #### Changes from v1.0 to v2.0[¶](#changes-from-v1-0-to-v2-0) API version 2.0 was first implemented in Keylime 6.3.0. > * Added mTLS authentication to agent endpoints. > * Added supported_version field to POST /v2.0/agents/{agent_id:UUID} in cloud verifier. > * Added mtls_cert field to POST/GET /v2.0/agents/{agent_id:UUID} in registrar. > * Added /version endpoint to agent. Note that this endpoint is not implemented by all agents. > * Dropped zlib encryption for quote field data in GET /v2.0/quotes/integrity/GET /v2.0/quotes/identity. KeyLime Development[¶](#keylime-development) --- ### Contributing[¶](#contributing) When contributing any keylime repository, please first discuss the change you wish to make via an issue in the relevant repository for your change or email to the [keylime mailing list](https://groups.io/g/keylime) #### Pull Request Process[¶](#pull-request-process) 1. Create an [issue](https://github.com/keylime/keylime/issues) outlining the fix or feature. 2. Fork the keylime repository to your own github account and clone it locally. 3. Hack on your changes. 4. Update the README.md or documentation with details of changes to any interface, this includes new environment variables, exposed ports, useful file locations, CLI parameters and configuration values. 5. Add and commit your changes with some descriptive text on the nature of the change / feature in your commit message. Also reference the issue raised at [1] as follows: Fixes #45. See [the following link](https://help.github.com/articles/closing-issues-using-keywords) for more message types 6. Ensure that CI passes, if it fails, fix the failures. 7. Every pull request requires a review from the [core keylime team](https://github.com/orgs/keylime/teams/core) 8. If your pull request consists of more than one commit, please squash your commits as described in see [Squash Commits](#squash-commits). ### Commit Message Guidelines[¶](#commit-message-guidelines) We follow the commit formatting recommendations found on [Chris Beams’ How to Write a Git Commit Message article](https://chris.beams.io/posts/git-commit). Well formed commit messages not only help reviewers understand the nature of the Pull Request, but also assists the release process where commit messages are used to generate release notes. A good example of a commit message would be as follows: ``` Summarize changes in around 50 characters or less More detailed explanatory text, if necessary. Wrap it to about 72 characters or so. In some contexts, the first line is treated as the subject of the commit and the rest of the text as the body. The blank line separating the summary from the body is critical (unless you omit the body entirely); various tools like `log`, `shortlog` and `rebase` can get confused if you run the two together. Explain the problem that this commit is solving. Focus on why you are making this change as opposed to how (the code explains that). Are there side effects or other unintuitive consequences of this change? Here's the place to explain them. Further paragraphs come after blank lines. - Bullet points are okay, too - Typically a hyphen or asterisk is used for the bullet, preceded by a single space, with blank lines in between, but conventions vary here If you use an issue tracker, put references to them at the bottom, like this: Resolves: #123 See also: #456, #789 ``` Note the Resolves #123 tag, this references the issue raised and allows us to ensure issues are associated and closed when a pull request is merged. Please refer to [the github help page on message types](https://help.github.com/articles/closing-issues-using-keywords) for a complete list of issue references. ### Squash Commits[¶](#squash-commits) Should your pull request consist of more than one commit (perhaps due to a change being requested during the review cycle), please perform a git squash once a reviewer has approved your pull request. A squash can be performed as follows. Let’s say you have the following commits: ``` initial commit second commit final commit ``` Run the command below with the number set to the total commits you wish to squash (in our case 3 commits): ``` git rebase -i HEAD~3 ``` You default text editor will then open up and you will see the following: ``` pick eb36612 initial commit pick 9ac8968 second commit pick a760569 final commit # Rebase eb1429f..a760569 onto eb1429f (3 commands) ``` We want to rebase on top of our first commit, so we change the other two commits to squash: ``` pick eb36612 initial commit squash 9ac8968 second commit squash a760569 final commit ``` After this, should you wish to update your commit message to better summarise all of your pull request, run: ``` git commit --amend ``` You will then need to force push (assuming your initial commit(s) were posted to github): ``` git push origin your-branch --force ``` ### Docker Development Environment[¶](#docker-development-environment) The following is a guide to mounting your local repository as a Docker volume and performing a test run using a TPM simulator. This will replicate the same test that occurs within the KeyLime CI gate for keylime. This requires a working installation of Docker. See your distributions guide on how to set that up. As an example, on Fedora 29: ``` sudo dnf -y install dnf-plugins-core sudo dnf install docker-ce docker-ce-cli containerd.io sudo usermod -aG docker $USER sudo systemctl enable docker sudo systemctl start docker ``` Note: login and out of your shell, if you want to run docker as $USER Save the following script to your local machine (tip: create an alias to call the script in an easy to remember way): ``` #!/bin/bash # Your local keylime (you should likely change this) REPO="/home/${USER}/keylime" # keylime images tpm12image="lukehinds/keylime-ci-tpm12" tpm12tag="v550" tpm20image="lukehinds/keylime-ci-tpm20" tpm20tag="v301" echo -e "Grabbing latest images" docker pull ${tpm12image}:${tpm12tag} docker pull ${tpm20image}:${tpm20tag} function tpm1 { container_id=$(mktemp) docker run --detach --privileged \ -v $REPO:/root/keylime \ -it ${tpm12image}:${tpm12tag} >> ${container_id} docker exec -u 0 -it --tty "$(cat ${container_id})" \ /bin/sh -c 'cd /root/keylime/test; chmod +x ./run_tests.sh; ./run_tests.sh -s openssl' docker stop "$(cat ${container_id})" docker rm "$(cat ${container_id})" } function tpm2 { container_id=$(mktemp) docker run --detach --privileged \ -v $REPO:/root/keylime \ -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ -it ${tpm20image}:${tpm20tag} >> ${container_id} docker exec -u 0 -it --tty "$(cat ${container_id})" \ /bin/bash /root/keylime/.ci/test_wrapper.sh docker stop "$(cat ${container_id})" docker rm "$(cat ${container_id})" } while true; do echo -e "" read -p "Do you wish to test against TPM1.2(a) / TPM 2.0(b) or q(quit): " abq case $abq in [a]* ) tpm1;; [b]* ) tpm2;; [q]* ) exit;; * ) echo "Please answer 1, 2 q(quit)";; esac done ``` Securing Keylime[¶](#securing-keylime) --- Warning This page is still under development and not complete. It will be so until this warning is removed. ### System Hardening[¶](#system-hardening) ### TLS configuration[¶](#tls-configuration) ### Reporting an issue[¶](#reporting-an-issue) Please contact us directly at [<EMAIL>](mailto:<EMAIL>%40keylime.groups.io) for any bug that might impact the security of this project. Do not use a github issue to report any potential security bugs. Indices and tables[¶](#indices-and-tables) --- * [Index](genindex.html) * [Module Index](py-modindex.html) * [Search Page](search.html)
wusuopu_gitbooks_io_symfony2_tutorial_content
free_programming_book
PHP
Date: 2014-08-24 Categories: Tags: Symfony是一款功能强大的PHP框架,最近在折腾它。发现中文资料比较少,当时我是通过symblog这个教程进行学习的。symblog这个教程使用的Symfony版本有些低,有些内容已过时,不过用来学习还是有参考价值的。 本文是在symblog的基础上,并结合自己的笔记整理而来的。本文通过制作一个简单的博客系统来讲解Symfony框架的用法。本文完整的示例代码可以从 https://github.com/wusuopu/symfony2-tutorial-sample 获取到。 Symfony2与Symfony1变化比较大,这里使用的是Symfony2。目前Symfony2的最新版本是2.5。对应的文档为: http://symfony.com/doc/2.5/book/index.html 。 Symfony2的依赖如下: `php.ini` 中需要设置 `date.timezone` ; 以下是我的PHP信息: ``` $ php -v PHP 5.5.12 (cli) (built: Aug 24 2014 16:12:16) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies with Xdebug v2.3.0dev, Copyright (c) 2002-2013, by <NAME> $ php -i | grep configure './configure' '--with-mysql' '--enable-ftp' '--enable-zip' '--with-jpeg-dir' '--with-bz2' '--with-png-dir' '--with-freetype-dir' '--with-iconv' '--with-libxml-dir' '--with-xmlrpc' '--with-zlib-dir' '--with-gd' '--enable-gd-native-ttf' '--with-curl' '--with-gettext' '--with-pear' '--enable-fpm' '--with-ncurses' '--with-mcrypt' '--with-mhash' '--with-openssl' '--with-pcre-dir' '--enable-pdo' '--enable-phar' '--enable-json' '--enable-mbstring' '--with-pdo-mysql' '--with-pdo-sqlite' '--with-readline' '--enable-bcmath' '--enable-intl' ``` 如果出现了与本文不一致的情况,可能是软件版本不同的问题。 另外Symfony从JAVA、Rails中借鉴了许多内容,而且现在许多框架都是类似的。因此如果之前有接触过Django、Rails之类的框架的话再入门Symfony应该就不难。 最后作为Pythoner再说一句:“人生苦短,我用Python”。 Date: 2017-02-01 Categories: Tags: 准备工作已做好了,接下来就开始创建一个新的项目。创建项目有两种方法:使用Composer、下载软件包。 不管是用哪种方法都需要用到 `Composer` ,因此我们需要先安装 `Composer` 。 `Composer` 是PHP的一个包管理工具,类似于Python的 `pip` 。 安装方法也很简单,执行如下命令进行下载安装,并将 `Composer` 程序移动到 `/usr/local/bin` 目录便于之后使用。 ``` $ curl -s https://getcomposer.org/installer | php $ [sudo] mv composer.phar /usr/local/bin ``` Composer安装完成之后,即可通过如下命令创建一个新的Symfony2项目,然后根据提示进行配置。 ``` $ composer.phar create-project symfony/framework-standard-edition symfony_tutorial 2.5.* Installing symfony/framework-standard-edition (v2.5.5) - Installing symfony/framework-standard-edition (v2.5.5) Downloading: 100% Created project in symfony_tutoriial Loading composer repositories with package information Installing dependencies (including require-dev) - Installing jdorn/sql-formatter (v1.2.17) Loading from cache - Installing psr/log (1.0.0) Loading from cache - Installing twig/twig (v1.16.0) Loading from cache - Installing doctrine/annotations (v1.2.1) Downloading: 100% - Installing doctrine/collections (v1.2) Loading from cache - Installing doctrine/cache (v1.3.1) Loading from cache - Installing doctrine/common (v2.4.2) Loading from cache - Installing symfony/symfony (v2.5.5) Downloading: 100% - Installing symfony/icu (v1.2.2) Downloading: 100% Downloading: 100% - Installing doctrine/dbal (v2.4.2) Loading from cache - Installing doctrine/doctrine-bundle (v1.2.0) Loading from cache - Installing kriswallsmith/assetic (v1.1.2) Loading from cache - Installing symfony/assetic-bundle (v2.3.0) Loading from cache - Installing doctrine/orm (v2.4.6) Downloading: 100% - Installing twig/extensions (v1.1.0) Loading from cache - Installing swiftmailer/swiftmailer (v5.3.0) Downloading: 100% - Installing symfony/swiftmailer-bundle (v2.3.7) Loading from cache - Installing monolog/monolog (1.11.0) Downloading: 100% - Installing symfony/monolog-bundle (v2.6.1) Loading from cache - Installing sensiolabs/security-checker (v2.0.0) Downloading: 100% - Installing sensio/distribution-bundle (v3.0.6) Downloading: 100% - Installing sensio/framework-extra-bundle (v3.0.2) Loading from cache - Installing incenteev/composer-parameter-handler (v2.1.0) Loading from cache - Installing sensio/generator-bundle (v2.4.0) Downloading: 100% kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler) kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler) kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris) kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin) monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server) monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server) monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server) monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server) monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib) monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required)) monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server) monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB) monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar) Writing lock file Generating autoload files Would you like to install Acme demo bundle? [y/N] y Creating the "app/config/parameters.yml" file Some parameters are missing. Please provide them. database_driver (pdo_mysql): database_host (127.0.0.1): database_port (null): database_name (symfony): database_user (root): database_password (null): mailer_transport (smtp): mailer_host (127.0.0.1): mailer_user (null): mailer_password (null): locale (en): secret (ThisTokenIsNotSoSecretChangeIt): debug_toolbar (true): debug_redirects (false): use_assetic_controller (true): Clearing the cache for the dev environment with debug true Installing assets as hard copies Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution ``` 从 http://symfony.com/download?v=Symfony_Standard_Vendors_2.5.5.zip 下载软件压缩包,然后解压即可。 ``` $ unzip Symfony_Standard_Vendors_2.5.5.zip ``` 不管是用哪种方法进行安装的,最终项目的目录结构如下: ``` project_root/ app/ <- 应用程序配置 cache/ config/ logs/ src/ <- 项目代码 ... vendor/ <- 第三方依赖 ... web/ <- web根目录 app.php app_dev.php ... composer.json ``` 其中 `vendor` 目录是存放第三方依赖库的,如果使用的 `git` 进行代码的版本管理的话,应该要把它添加到 `.gitignore` 文件中。 如果你的项目中 `vendor` 目录为空,那么需要执行命令 ``` composer.phar install ``` 进行安装第三方依赖库。如果第三方依赖库有更新,那么需要执行命令 `composer.phar update` 进行更新。 项目创建完成之后,接下来是检查环境是否正确以及更新配置信息。 先执行如下命令进行检查: ``` $ php app/check.php Symfony2 Requirements Checker ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > PHP is using the following php.ini file: /opt/lcphp/lib/php.ini > Checking Symfony requirements: ........................................ [OK] Your system is ready to run Symfony2 projects Note The command console could use a different php.ini file ~~~~ than the one used with your web server. To be on the safe side, please check the requirements from your web server using the web/config.php script. ``` 环境检查没有问题之后再进行编辑 文件,配置数据库信息和邮件信息。 Symfony2安装已完成,接下来就可以开始进行开发工作了。 首先先对一些术语进行介绍。 `Symfony` 的每个应用程序都运行在一个环境( `env` )中。在Symfony2中定义了三种环境: `dev` 、 `test` 和 `prod` ;分别为开发环境、测试环境和生产环境。 Symfony2最终会将程序都编译为PHP代码,存放于 `app/cache` 目录。为了查看效果,程序每次有更改都需要更新 `app/cache` 目录下的缓存。如果在处于 `dev` 环境或者 `test` 环境,框架会自动刷新缓存。但是如果是处于 `prod` 环境,那么就需要每次手动的更新缓存了。 Symfony2中的程序模块名为 `Bundle` ,它与Django中的 `app` 类似,,便于代码复用。 接下来运行该程序看下效果。从5.3版本开始PHP就内置了一下简单的http服务器用于开发测试。可以运行如下命令启动服务: ``` $ php app/console server:run Server running on http://127.0.0.1:8000 ``` 然后在浏览器中访问页面: http://127.0.0.1:8000/app_dev.php/ ,应该可以看到如下图所示的效果。 创建项目时,默认应该也创建了一个示例应用: `AcmeDemoBundle` 。在浏览器中访问页面: http://127.0.0.1:8000/app_dev.php/demo/hello/lcj ,应该可以看到如下图所示的效果。 以上是创建项目时自带的一个示例Bundle,现在我们来创建一个自己的Bundle。执行如下命令,然后根据提示一路回车就行了。 ``` $ php app/console generate:bundle --namespace=Blogger/BlogBundle --format=yml ``` 这个类似于Django中的 ``` ./manage.py startapp blog ``` 命令。 Bundle创建完成之后会在 `src` 目录下创建一个 `Blogger` 目录,目录结构如下: ``` src/Blogger └── BlogBundle ├── BloggerBlogBundle.php ├── Controller │ └── DefaultController.php ├── DependencyInjection │ ├── BloggerBlogExtension.php │ └── Configuration.php ├── Resources │ ├── config │ ├── doc │ ├── public │ ├── translations │ └── views └── Tests └── Controller ``` Bundle创建之后需要将其注册才能使用,在上面命令执行完成后应该会自动注册的。如果没有则编辑 `app/AppKernel.php` 文件,在 `registerBundles` 方法的 `$bundles` 数组中添加内容: “ ``` new Blogger\BlogBundle\BloggerBlogBundle(), ``` ”。 Bundle注册完成之后,还需要加载其路由配置,这个应该也是自动完成的。如果没有则编辑 ``` app/config/routing.yml ``` 文件,添加内容: ``` blogger_blog: resource: "@BloggerBlogBundle/Resources/config/routing.yml" prefix: / ``` 现在配置完成了,然后再启动服务。打开页面 http://127.0.0.1:8000/hello/lcj 看看效果。 上面介绍了如何新建一个Bundle,现在再来说说如何删除一个Bundle。以 `AcmeDemoBundle` 为例,它是在创建项目时自动创建的。它仅仅是一个示例,现在已经不在需要了。 首先将其取消注册。在 ``` AppKernel::registerBundles() ``` 方法中将注册部分的代码删除掉。 然后移除配置信息。将 `app/config` 中与其相关的配置信息移除掉。对于 `AcmeDemoBundle` 只需要将 ``` app/config/routing_dev.yml ``` 文件中的路由配置删除即可。 最后再删除Bundle文件。这个直接将 `src/Acme` 目录删除即可。 至此完成了自定义首页,接下来准备做about页面和contact页面。 首先添加路由配置: ``` blogger_blogBundle_about: pattern: /about defaults: { _controller: BloggerBlogBundle:Page:about } requirements: _method: GET ``` 然后在 `PageController` 中添加新的Action: ``` /** * about page. * * @return array * * @Template() */ public function aboutAction() { return array(); } ``` 这部分代码的功能与如下相同: ``` public function aboutAction() { return $this->render('BloggerBlogBundle:Page:about.html.twig'); } ``` `@Template()` 注释信息在这里有作用的,它用于指定使用的模板。参数为空则使用 `about.html.twig` 。 在前面说过Symfony2的配置可以使用php, xml, yml 和 annotation这四种格式。这里的 `@Template()` 就是annotation格式的配置。 对于路由配置也可以使用annotation格式: ``` /** * @Route("/about", name="blogger_blogBundle_about") * @Template() */ public function aboutAction() { return array(); } ``` annotation的配置方式与 `flask` 和 `bottle` 框架的装饰器概念类似。不过为了便于统一管理,按照之前的约定,除了数据库的Model实体(Entity)使用annotation格式外其余的都使用yml格式。 最后再创建模板文件 ``` src/Blogger/BlogBundle/Resources/views/Page/about.html.twig ``` 。 按照相同方法再创建Contact页面。 ``` {# src/Blogger/BlogBundle/Resources/views/Page/contact.html.twig #} {% extends 'BloggerBlogBundle::layout.html.twig' %} {% block title %}Contact{% endblock%} {% block body %} <header> <h1>Contact symblog</h1> </header <p>Want to contact symblog?</p> {% endblock %} ``` 最后将这些页面连接起来。最简单的方法就是直接修改连接地址: ``` <a href="/about">About</a> <a href="/contact">Contact</a> ``` 这样比较简单,但是如果以后这两个页面的路径改变了,那么所有引用了这两个地址的地方都需要修改。正确做法应该是在模板中使用 `path` 方法生成地址。 ``` <a href="{{ path('blogger_blogBundle_homepage') }}">Home</a> <a href="{{ path('blogger_blogBundle_about') }}">About</a> <a href="{{ path('blogger_blogBundle_contact') }}">Contact</a> ``` 现在我们要在Contact页面添加一个表单,以便让用户提交信息。 首先创建一个联系实体用于处理用户提交的内容,新建文件 ``` src/Blogger/BlogBundle/Entity/Enquiry.php ``` ``` <?php // src/Blogger/BlogBundle/Entity/Enquiry.php namespace Blogger\BlogBundle\Entity; class Enquiry { protected $name; protected $email; protected $subject; protected $body; public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getSubject() { return $this->subject; } public function setSubject($subject) { $this->subject = $subject; } public function getBody() { return $this->body; } public function setBody($body) { $this->body = $body; } } ``` 这个类只是定义了一些属性,并没有定义属性的验证或者是属性与表单的关联。关于这个内容下面会说到。 实例类创建完成之后再创建一个表单类,新建文件 ``` src/Blogger/BlogBundle/Form/EnquiryType.php ``` ``` <?php // src/Blogger/BlogBundle/Form/EnquiryType.php namespace Blogger\BlogBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilder; class EnquiryType extends AbstractType { public function buildForm(FormBuilder $builder, array $options) { $builder->add('name'); $builder->add('email', 'email'); $builder->add('subject'); $builder->add('body', 'textarea'); } public function getName() { return 'contact'; } } ``` 这里使用了 `FormBuilder` 对象来创建表单。 然后就可以在Controller中使用表单了。 ``` /** * about page. * * @return array * * @Template() */ public function contactAction() { $enquiry = new Enquiry(); $form = $this->createForm(new EnquiryType(), $enquiry); $request = $this->get('request'); if ($request->getMethod() == 'POST') { $form->bind($request); if ($form->isValid()) { // 表单验证通过,执行一些操作,如发送邮件。 // doSometing(); return $this->redirect($this->generateUrl('blogger_blogBundle_contact')); } } return array('form' => $form->createView()); } ``` 这里通过 `createForm` 方法创建一个表单对象,然后再用 `bind` 方法来接收发送过来的信息并保存到 `$enquiry` 对象的对应属性上。 最后要显示表单还得修改模板。在 ``` src/Blogger/BlogBundle/Resources/views/Page/contact.html.twig ``` 模板中添加如下内容: ``` <form action="{{ path('blogger_blogBundle_contact') }}" method="post" {{ form_enctype(form) }} class="blogger"> {{ form_widget(form) }} 以上是比较简便的方法,通过 `form_widget` 将整个表单进行渲染。也可以手动的渲染表单特定字段。内容如下: ``` <form action="{{ path('blogger_blogBundle_contact') }}" method="post" {{ form_enctype(form) }} class="blogger"> {{ form_errors(form) }} {{ form_row(form.name) }} {{ form_row(form.email) }} {{ form_row(form.subject) }} {{ form_row(form.body) }} {{ form_rest(form) }} 为了美观我们再为表单定义一些样式,新建文件 ``` src/Blogger/BlogBundle/Resources/public/css/blog.css ``` ``` .blogger-notice { text-align: center; padding: 10px; background: #DFF2BF; border: 1px solid; color: #4F8A10; margin-bottom: 10px; } form.blogger { font-size: 16px; } form.blogger div { clear: left; margin-bottom: 10px; } form.blogger label { float: left; margin-right: 10px; text-align: right; width: 100px; font-weight: bold; vertical-align: top; padding-top: 10px; } form.blogger input[type="text"], form.blogger input[type="email"] { width: 500px; line-height: 26px; font-size: 20px; min-height: 26px; } form.blogger textarea { width: 500px; height: 150px; line-height: 26px; font-size: 20px; } form.blogger input[type="submit"] { margin-left: 110px; width: 508px; line-height: 26px; font-size: 20px; min-height: 26px; } form.blogger ul li { color: #ff0000; margin-bottom: 5px; } ``` 同时别忘了在模板中引用该样式文件: ``` <link href="{{ asset('bundles/bloggerblog/css/blog.css') }}" type="text/css" rel="stylesheet" /> ``` 在模板中使用 `asset` 引用资源文件默认是从 `web` 目录下查找。为了能够正常查找到资源文件,需要使用如下命令进行资源收集: 收集的文件存放在 ``` web/bundles/<namespace><bundle_name>/ ``` 目录下。 这个类似于Django中的 ``` ./manager.py collectstatic ``` 。 现在再用浏览器打开 http://127.0.0.1:8000/contact 页面看看效果。 表单算是是正常显示了,接下来说是对用户提交的数据进行合法性检查。 首先修改路由配置,以便让 `/contact` 能够接收POST请求。 然后再编写表单验证规则。Symfony2已经为我们提供一些常用的验证器。重新编辑 `Enquiry` 实体,先导入几个类: ``` use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Constraints\NotBlank; use Symfony\Component\Validator\Constraints\Email; use Symfony\Component\Validator\Constraints\Length; ``` 再为 `Enquiry` 类添加 ``` loadValidatorMetadata ``` 方法: ``` public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addPropertyConstraint('name', new NotBlank()); $metadata->addPropertyConstraint('email', new Email(array('message' => 'invalid email!'))); $metadata->addPropertyConstraint('subject', new NotBlank()); $metadata->addPropertyConstraint('subject', new Length(array('max' => 50))); $metadata->addPropertyConstraint('body', new Length(array('min' => 10))); } ``` 现在可以试试随便提交一些不合法的内容,看看错误提示。 最后我们还需要在用户提交信息之后给网站站长发送一封邮件。好在Symfony2已经包含了 `Swift Mailer` 库可以用来完成该功能。 首先编辑 文件,找到 `mailer_` 开头的参数,设置发送邮件的帐号信息。以下是一个例子: ``` mailer_transport="gmail" mailer_encryption="ssl" mailer_auth_mode="login" mailer_host="smtp.gmail.com" mailer_user="your_username" mailer_password="your_password" ``` 接着再更新Controller: ``` if ($form->isValid()) { $message = \Swift_Message::newInstance() ->setSubject('Contact enquiry from symblog') ->setFrom('send account') // 发件帐号 ->setTo('receive account') // 收件帐号 ->setBody($this->renderView('BloggerBlogBundle:Page:contactEmail.txt.twig', array('enquiry' => $enquiry))); $this->get('mailer')->send($message); $this->get('session')->getFlashBag()->set('blogger-notice', 'Your contact enquiry was successfully sent. Thank you!'); return $this->redirect($this->generateUrl('blogger_blogBundle_contact')); } ``` 然后创建一个邮件模板 ``` src/Blogger/BlogBundle/Resources/views/Page/contactEmail.txt.twig ``` ``` {# src/Blogger/BlogBundle/Resources/views/Page/contactEmail.txt.twig #} A contact enquiry was made by {{ enquiry.name }} at {{ "now" | date("Y-m-d H:i") }}. Reply-To: {{ enquiry.email }} Subject: {{ enquiry.subject }} Body: {{ enquiry.body }} ``` 然后在模板中显示 `flash` 提示信息: ``` <header> <h1>Contact symblog</h1> </header{% if app.session.flashbag.has('blogger-notice') %} {% for flashMessage in app.session.flashbag.get('blogger-notice') %} <div class="blogger-notice"> {{ flashMessage }} </div> {% endfor %} {% endif %} <p>Want to contact symblog?</p> ``` 再次提交表单查看效果: Date: 2011-07-23 Categories: Tags: 这一章将介绍Symfony2的数据库操作。在Symfony2中默认使用的ORM库是Doctrine。 Doctrine是一个专门用于处理数据库操作的ORM库,关于ORM的介绍请参考: http://zh.wikipedia.org/wiki/对象关系映射 。 它基于一个强大的dbal(数据库抽象层) ( http://www.doctrine-project.org/projects/dbal.html ) ,让我们可以透过PHP PDO达到数据存储的抽象化。同时它还提供了一个类似SQL语法的操作,称之为DQL(Doctrine查询语言)。这让我们可以将数据库的数据作为PHP的对象进行操作,而不用关心数据库的细节。这也使得我们可以方便的切换数据库后端引擎。 前面有说到过程序总共有 `dev` 、 `test` 和 `prod` 这三种运行环境。为了方便开发测试,我们在开发环境和测试环境中使用SQLite数据库,在生产环境中使用MySQL数据库。 先配置生产环境的数据库。编辑文件 找到 `database_` 开头的参数。根据自己的MySQL信息进行修改。 再配置开发环境的数据库。编辑文件 ,添加如下内容: ``` doctrine: dbal: driver: pdo_sqlite path: "%kernel.root_dir%/data.db3" charset: UTF8 orm: auto_generate_proxy_classes: "%kernel.debug%" auto_mapping: true ``` 数据库模型(Model)称之为实体(Entity)。执行如下命令创建一个 `User` 实体: ``` $ php app/console generate:doctrine:entity --entity=BloggerBlogBundle:User --format=annotation --with-repository --no-interaction --fields="name:string(100) email:string(100)" ``` 通过这个命令创建的 `User` 实体有两个字段: `name` 和 ``` src/Blogger/BlogBundle/Entity/User.php ``` 和 ``` src/Blogger/BlogBundle/Entity/UserRepository.php ``` 。这个类似于Rails的: ``` $ rails generate scaffold User name:string email:string ``` `User.php` 文件内容大致如下: ``` /** * User * * @ORM\Table(name="user") * @ORM\Entity(repositoryClass="Blogger\BlogBundle\Entity\UserRepository") */ class User { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="name", type="string", length=100) */ private $name; /** * @var string * * @ORM\Column(name="email", type="string", length=100) */ private $email; ``` 前面说过了在注释中以"@"符号开头的语言是有特殊意义的。它是 `annotation` 格式的配置信息,在这里是用于定义数据库的结构。关于这些配置说明可参考Doctrine的文档: http://www.doctrine-project.org/docs/orm/2.0/en/reference/basic-mapping.html#doctrine-mapping-types 。 接着再创建 `Blog` 实体和 `Comment` 实体: ``` php app/console generate:doctrine:entity --entity=BloggerBlogBundle:Blog --format=annotation --with-repository --no-interaction --fields="title:string(255) author:integer blog:text image:string(50) tags:text created:datetime updated:datetime" php app/console generate:doctrine:entity --entity=BloggerBlogBundle:Comment --format=annotation --with-repository --no-interaction --fields="user:string comment:text approved:boolean blog:integer created:datetime updated:datetime" ``` 其中 `Blog` 用于保存文章, `Comment` 用于保存文章的评论。这两个实体应该是需要有关联的,并且 `Blog` 还应该与 `User` 有关联。 编辑 `Blog.php` 文件,修改如下: ``` /** * @ORM\OneToMany(targetEntity="Comment", mappedBy="blog") **/ private $comments; /** * @var User * * @ORM\ManyToOne(targetEntity="User") * @ORM\JoinColumn(name="author_id", referencedColumnName="id", onDelete="CASCADE") **/ private $author; /** * Set author * * @param \Blogger\BlogBundle\Entity\User $author * * @return Blog */ public function setAuthor(\Blogger\BlogBundle\Entity\User $author) { $this->author = $author; /** * Get author * * @return \Blogger\BlogBundle\Entity\User */ public function getAuthor() { return $this->author; } ``` 编辑 `Comment.php` 文件,修改如下: ``` /** * @var Blog * * @ORM\ManyToOne(targetEntity="Blog", inversedBy="comments") * @ORM\JoinColumn(name="blog_id", referencedColumnName="id", onDelete="CASCADE") */ private $blog; /** * Set blog * * @param \Blogger\BlogBundle\Entity\Blog $blog * * @return Comment */ public function setBlog(\Blogger\BlogBundle\Entity\Blog $blog) { $this->blog = $blog; /** * Get blog * * @return \Blogger\BlogBundle\Entity\Blog */ public function getBlog() { return $this->blog; } ``` 上面的 `ManyToOne` 和 `OneToMany` 指明了多对一和一对多的映射关系,在数据库中是通过外键关联来完成的。 然后再执行如下命令更新实体结构: ``` php app/console doctrine:generate:entities Blog ``` 命令执行完成之后 `Blog` 实体增加了三个方法进行操作 `$comments` 属性。 接下来执行命令创建数据库: ``` $ php app/console doctrine:database:create ``` 再执行命令创建数据表: ``` $ php app/console doctrine:schema:create ``` `Blog` 实体已创建,接下来将创建一个页面用于显示文章内容。 首先添加路由配置: ``` # src/Blogger/BlogBundle/Resources/config/routing.yml blogger_blogBundle_blog_show: pattern: /{id} defaults: { _controller: BloggerBlogBundle:Blog:show } requirements: _method: GET id: \d+ ``` 然后再新建一个控制器 `BlogController` : ``` $ php app/console generate:controller --controller=BloggerBlogBundle:Blog --route-format=yml ``` 接着为 `BlogController` 创建一个 `showAction` 方法: ``` /** * Show a blog entry * * @param integer $id * * @return array * * @Template() */ public function showAction($id) { $em = $this->getDoctrine()->getEntityManager(); return array('blog' => $blog); } ``` 最后再为该页面创建模板一个文件: ``` {# src/Blogger/BlogBundle/Resouces/views/Blog/show.html.twig #} {% extends 'BloggerBlogBundle::layout.html.twig' %} {% block title %}{{ blog.title }}{% endblock %} {% block body %} <article class="blog"> <header> <div class="date"><time datetime="{{ blog.created|date('c') }}">{{ blog.created|date('l, F j, Y') }}</time></div> <h2>{{ blog.title }}</h2> </header> <img src="{{ asset(['images/', blog.image]|join) }}" alt="{{ blog.title }} image not found" class="large" /> <div> <p>{{ blog.blog }}</p> </div> </article> {% endblock %} ``` 为了美观再添加一些样式, ``` src/Blogger/BlogBundle/Resouces/public/css/blog.css ``` ``` .date { margin-bottom: 20px; border-bottom: 1px solid #ccc; font-size: 24px; color: #666; line-height: 30px } .blog { margin-bottom: 20px; } .blog img { width: 190px; float: left; padding: 5px; border: 1px solid #ccc; margin: 0 10px 10px 0; } .blog .meta { clear: left; margin-bottom: 20px; } .blog .snippet p.continue { margin-bottom: 0; text-align: right; } .blog .meta { font-style: italic; font-size: 12px; color: #666; } .blog .meta p { margin-bottom: 5px; line-height: 1.2em; } .blog img.large { width: 300px; min-height: 165px; } ``` 再起用浏览器打开页面 http://127.0.0.1:8000/1 看看效果,应该会如图显示出现404错误: 这是由于数据库空的没有数据,因而无法显示。 为了方便测试我们向数据库中添加一些测试数据。 首先编辑 `composer.json` 文件,在 `require` 字段中新增两项依赖: ``` "doctrine/doctrine-fixtures-bundle": "dev-master", "doctrine/data-fixtures": "dev-master", ``` 然后执行命令进行安装: ``` $ composer.phar update ``` 并且在 `app/AppKernel.php` 进行注册,由于这个只在开发阶段使用,因此将其注册在开发环境中: ``` if (in_array($this->getEnvironment(), array('dev', 'test'))) { // ... $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(); // ... } ``` 然后编写测试数据,新建文件 ``` src/Blogger/BlogBundle/DataFixtures/ORM/UserFixtures.php ``` use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Blogger\BlogBundle\Entity\User; /** * UserFixtures */ class UserFixtures extends AbstractFixture implements FixtureInterface, OrderedFixtureInterface { /** * {@inheritDoc} */ public function load(ObjectManager $manager) { $user = new User(); $user->setName("someuser"); $user->setEmail("[email protected]"); $manager->persist($user); $manager->flush(); $this->addReference('user-1', $user); } 再新建文件 ``` src/Blogger/BlogBundle/DataFixtures/ORM/BlogFixtures.php ``` use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Blogger\BlogBundle\Entity\Blog; /** * BlogFixtures */ class BlogFixtures extends AbstractFixture implements OrderedFixtureInterface { /** * {@inheritDoc} */ public function load(ObjectManager $manager) { $user1 = $this->getReference('user-1'); $blog1 = new Blog(); $blog1->setTitle('A day with Symfony2'); $blog1->setBlog('Lorem ipsum dolor sit amet, consectetur adipiscing eletra electrify denim vel ports.\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ut velocity magna. Etiam vehicula nunc non leo hendrerit commodo. Vestibulum vulputate mauris eget erat congue dapibus imperdiet justo scelerisque. Nulla consectetur tempus nisl vitae viverra. Cras el mauris eget erat congue dapibus imperdiet justo scelerisque. Nulla consectetur tempus nisl vitae viverra. Cras elementum molestie vestibulum. Morbi id quam nisl. Praesent hendrerit, orci sed elementum lobortis, justo mauris lacinia libero, non facilisis purus ipsum non mi. Aliquam sollicitudin, augue id vestibulum iaculis, sem lectus convallis nunc, vel scelerisque lorem tortor ac nunc. Donec pharetra eleifend enim vel porta.'); $blog1->setImage('beach.jpg'); $blog1->setAuthor($user1); $blog1->setTags('symfony2, php, paradise, symblog'); $blog1->setCreated(new \DateTime()); $blog1->setUpdated($blog1->getCreated()); $manager->persist($blog1); $blog2 = new Blog(); $blog2->setTitle('The pool on the roof must have a leak'); $blog2->setBlog('Vestibulum vulputate mauris eget erat congue dapibus imperdiet justo scelerisque. Na. Cras elementum molestie vestibulum. Morbi id quam nisl. Praesent hendrerit, orci sed elementum lobortis.'); $blog2->setImage('pool_leak.jpg'); $blog2->setAuthor($user1); $blog2->setTags('pool, leaky, hacked, movie, hacking, symblog'); $blog2->setCreated(new \DateTime("2011-07-23 06:12:33")); $blog2->setUpdated($blog2->getCreated()); $manager->persist($blog2); $blog3 = new Blog(); $blog3->setTitle('Misdirection. What the eyes see and the ears hear, the mind believes'); $blog3->setBlog('Lorem ipsumvehicula nunc non leo hendrerit commodo. Vestibulum vulputate mauris eget erat congue dapibus imperdiet justo scelerisque.'); $blog3->setImage('misdirection.jpg'); $blog3->setAuthor($user1); $blog3->setTags('misdirection, magic, movie, hacking, symblog'); $blog3->setCreated(new \DateTime("2011-07-16 16:14:06")); $blog3->setUpdated($blog3->getCreated()); $manager->persist($blog3); $blog4 = new Blog(); $blog4->setTitle('The grid - A digital frontier'); $blog4->setBlog('Lorem commodo. Vestibulum vulputate mauris eget erat congue dapibus imperdiet justo scelerisque. Nulla consectetur tempus nisl vitae viverra.'); $blog4->setImage('the_grid.jpg'); $blog4->setAuthor($user1); $blog4->setTags('grid, daftpunk, movie, symblog'); $blog4->setCreated(new \DateTime("2011-06-02 18:54:12")); $blog4->setUpdated($blog4->getCreated()); $manager->persist($blog4); $blog5 = new Blog(); $blog5->setTitle('You\'re either a one or a zero. Alive or dead'); $blog5->setBlog('Lorem ipsum dolor sit amet, consectetur adipiscing elittibulum vulputate mauris eget erat congue dapibus imperdiet justo scelerisque.'); $blog5->setImage('one_or_zero.jpg'); $blog5->setAuthor($user1); $blog5->setTags('binary, one, zero, alive, dead, !trusting, movie, symblog'); $blog5->setCreated(new \DateTime("2011-04-25 15:34:18")); $blog5->setUpdated($blog5->getCreated()); $manager->persist($blog5); $manager->flush(); } 执行命令加载测试数据: 现在再起用浏览器打开页面 http://127.0.0.1:8000/1 看看效果。 在上一章中我们完成了文章展示页面。对于博客而言它的首页通常是显示最近的几篇文章的摘要信息。现在我们开始建立首页的内容。 更新控制器 `PageController` : ``` public function indexAction() { $em = $this->getDoctrine()->getManager(); $blogs = $em->createQueryBuilder() ->select('b') ->from('BloggerBlogBundle:Blog', 'b') ->addOrderBy('b.created', 'DESC') ->getQuery() ->getResult(); return array('blogs' => $blogs); } ``` 更新模板 ``` src/Blogger/BlogBundle/Resources/views/Page/index.html.twig ``` {% block body %} {% for blog in blogs %} <article class="blog"> <div class="date"><time datetime="{{ blog.created|date('c') }}">{{ blog.created|date('l, F j, Y') }}</time></div> <header> <h2><a href="{{ path('blogger_blogBundle_blog_show', { 'id': blog.id }) }}">{{ blog.title }}</a></h2> </header <img src="{{ asset(['images/', blog.image]|join) }}" /> <div class="snippet"> <p>{{ blog.blog(500) }}</p> <p class="continue"><a href="{{ path('blogger_blogBundle_blog_show', { 'id': blog.id }) }}">Continue reading...</a></p> </div <footer class="meta"> <p>Comments: -</p> <p>Posted by <span class="highlight">{{blog.author}}</span> at {{ blog.created|date('h:iA') }}</p> <p>Tags: <span class="highlight">{{ blog.tags }}</span></p> </footer> </article> {% else %} <p>There are no blog entries for symblog</p> {% endfor %} {% endblock %} ``` 现在访问首页看下效果。 为了方便,我们为 `Blog` 实体创建一个订制一个查询方法 `getLatestBlogs` 。编辑文件 ``` src/Blogger/BlogBundle/Entity/BlogRepository.php ``` ,将上面 `PageController` 中的代码移动到这里来: ``` class BlogRepository extends EntityRepository { /** * @param integer $limit * * @return array */ public function getLatestBlogs($limit = null) { $qb = $this->createQueryBuilder('b') ->select('b') ->addOrderBy('b.created', 'DESC'); if (!empty($limit)) { $qb->setMaxResults($limit); } return $qb->getQuery() ->getResult(); } } ``` 然后在控制器中只需要调用即可: ``` $blogs = $em->getRepository('BloggerBlogBundle:Blog')->getLatestBlogs(); ``` 在上一章中我们已经创建了评论实体 `Comment` ,它记录了用户对于文章的评论内容。接下来我们将创建发布评论的页面。 同样的为了测试方便,我们再添加一些评论的测试数据。新建文件 ``` src/Blogger/BlogBundle/DataFixtures/ORM/CommentFixtures.php ``` ,然后再重新加载数据。 我们现在可以在第篇文章的展示页面显示它的评论内容。先更新 `CommentRepository` ,订制一个查询方法 `getCommentsForBlog` : ``` public function getCommentsForBlog($blogId, $approved = true) { $qb = $this->createQueryBuilder('c') ->select('c') ->where('c.blog = :blog_id') ->addOrderBy('c.created') ->setParameter('blog_id', $blogId); if (false === is_null($approved)) { $qb->andWhere('c.approved = :approved')->setParameter('approved', $approved); } return $qb->getQuery()->getResult(); } ``` 接着更新 `BlogController` ,在展示页面查询文章对应的评论内容。 ``` public function showAction($id) { $em = $this->getDoctrine()->getEntityManager(); $comments = $em->getRepository('BloggerBlogBundle:Comment') ->getCommentsForBlog($blog->getId()); return array('blog' => $blog, 'comments' => $comments); } ``` 然后更新模板将评论数据进行渲染, ``` src/Blogger/BlogBundle/Resources/views/Blog/show.html.twig ``` ``` {% block body %} {# .. #} <section class="comments" id="comments"> <section class="previous-comments"> <h3>Comments</h3> {% include 'BloggerBlogBundle:Comment:index.html.twig' with { 'comments': comments } %} </section> </section> {% endblock %} ``` 这里我们通过 `include` 标签引用了另一个模板 ``` BloggerBlogBundle:Comment:index.html.twig ``` ,因此还需要再创建文件 ``` src/Blogger/BlogBundle/Resources/views/Comment/index.html.twig ``` ``` {% for comment in comments %} <article class="comment {{ cycle(['odd', 'even'], loop.index0) }}" id="comment-{{ comment.id }}"> <header> <p><span class="highlight">{{ comment.user }}</span> commented <time datetime="{{ comment.created|date('c') }}">{{ comment.created|date('l, F j, Y') }}</time></p> </header> <p>{{ comment.comment }}</p> </article> {% else %} <p>There are no comments for this post. Be the first to comment...</p> {% endfor %} ``` 现在打开一篇有评论的页面应该可以看到类似如下的效果: 接下来将介绍本章的主要内容,表单(Form)与实体(Entity)关联。 现在我们来创建一个评论框表单,用户提交表单之后会创建一个实体对象,即就是往数据库中插入一条数据。 先为 `Comment` 实体创建一个表单类型 `CommentType` 。 ``` $ php app/console generate:doctrine:form BloggerBlogBundle:Comment ``` 上面这条命令将会新建一个文件: ``` src/Blogger/BlogBundle/Form/CommentType.php ``` ,其内容与之前的 `EnquiryType` 类似。 添加一条路由规则: ``` blogger_blogBundle_comment_create: pattern: /comment/{blog_id} defaults: { _controller: BloggerBlogBundle:Comment:create } requirements: _method: POST blog_id: \d+ ``` 创建一个新的控制器: ``` $ php app/console generate:controller --controller=BloggerBlogBundle:Comment --route-format=yml ``` 完善控制器内容: ``` class CommentController extends Controller { /** * @param integer $blogId * * @return Response */ public function newAction($blogId) { $blog = $this->getBlog($blogId); $comment = new Comment(); $comment->setBlog($blog); $form = $this->createForm(new CommentType(), $comment); return $this->render('BloggerBlogBundle:Comment:form.html.twig', array( 'comment' => $comment, 'form' => $form->createView() )); } /** * @param integer $blogId * * @return Response */ public function createAction($blogId) { $blog = $this->getBlog($blogId); $comment = new Comment(); $comment->setBlog($blog); $request = $this->getRequest(); $form = $this->createForm(new CommentType(), $comment); $form->bindRequest($request); if ($form->isValid()) { // TODO: Persist the comment entity return $this->render('BloggerBlogBundle:Comment:create.html.twig', array( 'comment' => $comment, 'form' => $form->createView() )); } protected function getBlog($blogId) { $em = $this->getDoctrine() ->getEntityManager(); $blog = $em->getRepository('BloggerBlogBundle:Blog')->find($blogId); return $blog; } } ``` 其中 `newAction` 是用于显示评论框表单的; `createAction` 是用来处理表单提交的内容。 更新模板。新建 `newAction` 使用的模板文件 ``` src/Blogger/BlogBundle/Resources/views/Comment/form.html.twig ``` ``` {# src/Blogger/BlogBundle/Resources/views/Comment/form.html.twig #} <form action="{{ path('BloggerBlogBundle_comment_create', { 'blog_id' : comment.blog.id } ) }}" method="post" {{ form_enctype(form) }} class="blogger"> {{ form_widget(form) }} <p> <input type="submit" value="Submit"> </p> </form> ``` 新建 `createAction` 使用的模板文件 ``` src/Blogger/BlogBundle/Resources/views/Comment/create.html.twig ``` {% block title %}Add Comment{% endblock%} {% block body %} <h1>Add comment for blog post "{{ comment.blog.title }}"</h1> {% include 'BloggerBlogBundle:Comment:form.html.twig' with { 'form': form } %} {% endblock %} ``` 接着修改文章展示页面的模板,加入评论框表单: ``` {% block body %} {# .. #} <section class="comments" id="comments"> {# .. #} <h3>Add Comment</h3> {% render controller('BloggerBlogBundle:Comment:new', { 'blogId': blog.id }) %} </section> {% endblock %} ``` 这里再打开文章页面看下效果。如果页面报错并提示: ``` Entities passed to the choice field must have a “__toString()” method defined ``` 。 那么编辑 `Blog` 实体类,加入 `__toString` 方法: ``` public function __toString() { return $this->getTitle(); } ``` 现在应该就能看到如下的效果: 用户在提交评论时应该只需要输入User和Comment,因此我们再对 `CommentType.php` 稍作修改移除多余字段。 ``` public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('user') ->add('comment'); } ``` 在上面创建表单对象时, `$form` 已经与 `$comment` 进行关联了。因此在表单处理提交的数据时就已经将数据内容写入了 `$comment` 对象中。现在只需要将 `$comment` 的数据存入数据库就行了。 保存数据库的方法在之前的 `DataFixtures` 中已经提到了。现在更新 `CommentController` 的 `create` 方法來儲存 `Comment` 实体到数据库中。 ``` if ($form->isValid()) { $em = $this->getDoctrine() ->getEntityManager(); $em->persist($comment); $em->flush(); 我們不希望用户提交的评论中 `user` 或 `comment` 为空。要处理这个问题可以参考之前的 `EnquiryType` 表单。 编辑文件 ``` src/Blogger/BlogBundle/Entity/Comment.php ``` 的 `Comment` 实体,添加如下内容: ``` public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addPropertyConstraint('user', new NotBlank(array( 'message' => 'You must enter your name' ))); $metadata->addPropertyConstraint('comment', new NotBlank(array( 'message' => 'You must enter a comment' ))); } ``` 这样就可以防止用户提交空数据了。 twig模板引擎默认提供了一些函数和标签,但是有时内置的函数满足不了要求时就需要对twig进行扩展了。 现在我们想让博客的评论时间显示为多久之前发布的,如:发布于3小时前。 之前在模板中渲染发布时间的用法是: ,而现在想变为: 这种形式。 由于twig没有提供 `created_ago` 方法,因此这得我们自己实现。 新建文件 ``` src/Blogger/BlogBundle/Twig/Extensions/BloggerBlogExtension.php ``` namespace Blogger\BlogBundle\Twig\Extensions; /** * BloggerBlogExtension */ class BloggerBlogExtension extends \Twig_Extension { /** * @return array */ public function getFilters() { return array( 'created_ago' => new \Twig_Filter_Method($this, 'createdAgo'), ); } /** * @param \DateTime $dateTime * * @return string */ public function createdAgo(\DateTime $dateTime) { $delta = time() - $dateTime->getTimestamp(); if ($delta < 0) { throw new \InvalidArgumentException("createdAgo is unable to handle dates in the future"); } $duration = ""; if ($delta < 60) { // Seconds $time = $delta; $duration = $time . " second" . (($time > 1) ? "s" : "") . " ago"; } else if ($delta <= 3600) { // Mins $time = floor($delta / 60); $duration = $time . " minute" . (($time > 1) ? "s" : "") . " ago"; } else if ($delta <= 86400) { // Hours $time = floor($delta / 3600); $duration = $time . " hour" . (($time > 1) ? "s" : "") . " ago"; } else { // Days $time = floor($delta / 86400); $duration = $time . " day" . (($time > 1) ? "s" : "") . " ago"; } return $duration; } /** * @return string */ public function getName() { return 'blogger_blog_extension'; } } ``` 这里我们定义一个类继承自 `Twig_Extension` 。要创建自定义过滤器,只需要覆盖 `getFilters()` 方法即可。如果要创建自定义方法,则覆盖 `getFunctions()` 方法。 定义了扩展类之后再将其注册为一个服务,编辑文件 ``` services: blogger_blog.twig.extension: class: Blogger\BlogBundle\Twig\Extensions\BloggerBlogExtension tags: - { name: twig.extension } ``` 现在就可以在模板中使用我们刚刚定义的 `created_ago` 过滤器了。更新模板,将 替换成 在开发过程中使用单元测试有助于程序的调试。但是如果像TDD、BDD那样对于每个功能点都要写测试用例又太过于极端了。DHH 说了,TDD 已死。不过对于该测试的还是得测。 首先下载PHPUnit工具: https://phar.phpunit.de/phpunit.phar 。 PHPUnit对应的配置文件为 `app/phpunit.xml.dist` ,这是个以 `.dist` 能结尾的文件,可能需要将其复制一份到 `app/phpunit.xml` 。它配置了一些测试参数,其内容如下: ``` <?xml version="1.0" encoding="UTF-8"?<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html --> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="bootstrap.php.cache" > <testsuites> <testsuite name="Project Test Suite"> <directory>../src/*/*Bundle/Tests</directory> <directory>../src/*/Bundle/*Bundle/Tests</directory> </testsuite> </testsuites <!-- <php> <server name="KERNEL_DIR" value="/path/to/your/app/" /> </php> -- <filter> <whitelist> <directory>../src</directory> <exclude> <directory>../src/*/*Bundle/Resources</directory> <directory>../src/*/*Bundle/Tests</directory> <directory>../src/*/Bundle/*Bundle/Resources</directory> <directory>../src/*/Bundle/*Bundle/Tests</directory> </exclude> </whitelist> </filter> </phpunit> ``` 单元测试的目的是独立测试应用程序的个别单元。因此建议单元测试的文件目录结构应与应用程序的一致。例如要测试 ``` src/Blogger/BlogBundle/Controller/PageController.php ``` 的 `PageController.php` 控制器,那么对应的测试文件为 ``` src/Blogger/BlogBundle/Tests/Controller/PageControllerTest.php ``` 。如下是目录结构示例: ``` src/Blogger/BlogBundle/ Entity/ Blog.php Comment.php Controller/ PageController.php Twig/ Extensions/ BloggerBlogExtension.php Tests/ Entity/ BlogTest.php CommentTest.php Controller/ PageControllerTest.php Twig/ Extensions/ loggerBlogExtensionTest.php ``` 现在我们对 `PageCotroller` 的 `index` 方法进行测试,编写测试用例: ``` // src/Blogger/BlogBundle/Tests/Controller/PageControllerTest.php class PageControllerTest extends WebTestCase { /** * test index page. */ public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/'); $this->assertTrue($crawler->filter('title:contains("symblog")')->count() > 0); } } ``` 然后执行单元测试: ``` $ phpunit -c app src/Blogger/BlogBundle/Tests/Controller/PageControllerTest.php ``` 这样就可以在代码改动之后通过单元测试来检查当前有没有错误。 关于PHPUnit的使用可以参考它的文档: https://phpunit.de/documentation.html 。 这章将介绍Symfony2框架中Session的用法。 Session相当于是服务器端的Cookie。它是在服务器端存储一些数据,然后将索引的键值作为Cookie值发送给浏览器。 例如打开页面 http://127.0.0.1:8000/ ,可以看到浏览器有条Cookie记录: ``` PHPSESSID=e42c1bbbf2f709ef8cc7a360a1f3b5de; path=/; domain=127.0.0.1 ``` 。其中Cookie名为 `PHPSESSID` ,值为 ``` e42c1bbbf2f709ef8cc7a360a1f3b5de ``` 。当浏览器发起请求时,服务器端的程序会根据这个值来查找对应的Session。默认是存储在 ``` /tmp/sess_e42c1bbbf2f709ef8cc7a360a1f3b5de ``` 文件中。我们看看该文件的内容: ``` $ cat /tmp/sess_e42c1bbbf2f709ef8cc7a360a1f3b5de _sf2_attributes|a:2:{s:13:"_csrf/contact";s:43:"HMdTj7H9KrbD2vXslm5H-3rYyWMENM5ZpPBUhWjn5vM";s:32:"_csrf/blogger_blogbundle_comment";s:43:"76koHF_0lGJFFfZTuhOdW4ocjsTlEOLOPDJ0nv97_ZU";}_sf2_flashes|a:0:{}_sf2_meta|a:3:{s:1:"u";i:1413120687;s:1:"c";i:1413084843;s:1:"l";s:1:"0";} ``` 它是一个经过了序列化的字符串。 上面说到的Cookie名 `PHPSESSID` 和Session的存放位置 `/tmp` 都是在php中进行配置的。查看php的配置信息: ``` $ php -i | grep session session session.auto_start => Off => Off session.cache_expire => 180 => 180 session.cache_limiter => nocache => nocache session.cookie_domain => no value => no value session.cookie_httponly => Off => Off session.cookie_lifetime => 0 => 0 session.cookie_path => / => / session.cookie_secure => Off => Off session.entropy_file => /dev/urandom => /dev/urandom session.entropy_length => 32 => 32 session.gc_divisor => 100 => 100 session.gc_maxlifetime => 1440 => 1440 session.gc_probability => 1 => 1 session.hash_bits_per_character => 4 => 4 session.hash_function => 0 => 0 session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => no value => no value session.serialize_handler => php => php session.upload_progress.cleanup => On => On session.upload_progress.enabled => On => On session.upload_progress.freq => 1% => 1% session.upload_progress.min_freq => 1 => 1 session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS session.upload_progress.prefix => upload_progress_ => upload_progress_ session.use_cookies => On => On session.use_only_cookies => On => On session.use_strict_mode => Off => Off session.use_trans_sid => 0 => 0 ``` 上面的 `PHPSESSID` 这条Cookie是由框架自动设置的。现在来说说我们如何设置一条新的Cookie。根据http协议的说明,设置Cookie即是在http的响应头部添加一条 `Set-Cookie` 指令。 例如现在我们想要为浏览器设置一条名为 `cookie1` 值为 `123456` 的Cookie记录。 ``` use Symfony\Component\HttpFoundation\Cookie; $response->headers->setCookie(new Cookie('cookie1', '123456')); ``` 这里的 `$response` 是一个 ``` Symfony\Component\HttpFoundation\Response ``` 类型的对象,它应该是在控制器中创建的。 然后如果还想要把刚刚这条Cookie删除掉,那么操作如下操作: ``` $response->headers->clearCookie('test1'); ``` 在上面也看到了,Symfony2框架的Session就是将一个PHP数据进行序列化保存的。现在来介绍一下Session的数据设置和读取。 Session相当于一个php数组,直接通过 `get` 和 `set` 方法进行读取和写入。例如: ``` $session = $request->getSession(); $session->set('key', 'value'); $session->get('key'); ``` 这里先获取 `session` 对象,在控制器中可以直接通过 `$request` 对象来获取。也可以通过服务容器 `container` 来获取: ``` $session = $container->get('session'); ``` 其中 `$container` 是一个 ``` Symfony\Component\DependencyInjection\ContainerInterface ``` 对象。这个在下一章再作介绍。 上面说过了Cookie名默认为 `PHPSESSID` ,Session默认是保存在 `/tmp` 目录下。如果网站同时运行了多个PHP程序,那么Cookie名就会冲突。而且 `/tmp` 目录下的Session文件也不会自动删除的,这个会导致目录下的文件会越来越多。 针对这两个问题,我们需要修改Symfony2的Session配置参数。编辑文件 ,设置 ``` framework -> session -> name ``` 参数,修改Cookie名: ``` framework: session: name: sfblog ``` 然后再修改Session的存储方式。Symfony2框架默认提供几种存储后端,保存到SQL数据库、Memcache、MongoDb等。这里我们选择使用SQL数据库。 设置 ``` framework -> session -> handler_id ``` 参数为 `session.handler.pdo` ,然后再注册一个 `session.handler.pdo` 服务。最后的配置如下: ``` framework: session: name: sfblog handler_id: session.handler.pdo services: pdo: class: PDO arguments: - "mysql:host=%database_host%;port=%database_port%;dbname=%database_name%" - "%database_user%" - "%database_password%" calls: - [setAttribute, [3, 2]] # \PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION 这里的 `pdo` 服务用于配置数据库,同样的对于开发环境我们使用SQLite数据库。编辑文件 ,再进行一次配置: ``` services: pdo: class: PDO arguments: - "sqlite:%kernel.root_dir%/data/data.db3" calls: - [setAttribute, [3, 2]] # \PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION 上面的配置表明了Session将会保存在数据库的 `session` 表中。因此我们还得再新建一个数据表,结构如下: ``` CREATE TABLE `session` ( `session_id` varchar(255) NOT NULL, `session_value` text NOT NULL, `session_time` int(11) NOT NULL, PRIMARY KEY (`session_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ``` 不过为了方便,最好还是再新建一个Session实体。通过Doctrine的实体来自动创建表结构。 ``` $ php app/console doctrine:generate:entity --entity=BloggerBlogBundle:Session --format=annotation --fields="session_id:string(255) session_value:text session_time:datetime" ``` 然后再对文件稍作修改。现在有新的实体了,需要更新数据库结构。可以执行如下命令: ``` $ php app/console doctrine:schema:update --force ``` 注意:上面的执行在更新数据库中可以会导致数据丢失。建议使用 `migrations` 工具。对于重要的数据可能还需要手动进行迁移。 在 `composer.json` 中添加两条依赖: ``` "doctrine/doctrine-migrations-bundle": "dev-master", "doctrine/migrations": "dev-master", ``` 然后 `composer.phar update` 进行安装。并在 `AppKernel` 中进行注册 ``` $bundles[] = new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(); ``` 。 接着生成迁移文件: ``` $ php app/console doctrine:migrations:diff ``` 进行迁移: ``` $ php app/console doctrine:migrations:migrate ``` 这章将介绍三个常用到的对象: `Request` 、 `Response` 和 `Container` 。 `Request` 对象是对客户端http请求的封装。我们在使用框架时就要避免再使用原生的PHP方法。 `Request` 对象有一些属性保存了请求的信息,如: `$request` 属性保存了请求的 `body` 数据,相当于 `$_POST` ; `$query` 属性保存了请求的查询字符串,相当于 `$_GET` ; `$server` 属性保存了服务器环境信息,相当于 `$_SERVER` ; `$file` 属性保存上传的文件,相当于 `$_FILES` ; `$cookies` 属性保存了当前的Cookie,相当于 `$_COOKIE` ; `$headers` 属性保存了当前的请求头,来自 `$_SERVER` 。 这些属性都是一个类似于数组类型的对象。 同时 `Request` 对象还有一些方法,如: `getMethod` 、 `getPathInfo` 、 `getClientIp` 等。 `Request` 是用户请求来的对象,那么 `Response` 就是返回给用户的响应对象。每个控制器执行完操作之后都会返回一个 `Response` 对象。 `Response` 对象有一个 `$headers` 属性,可以用于设置响应请求的头部信息。然后再通过 `setContent` 方法设置响应请求的主体内容。 Symfony2框架默认提供了以下几种 `Response` 类,它们都是位于 ``` Symfony\Component\HttpFoundation ``` 命名空间下: `Container` 对象是一个依赖注入的容器,它是一个类似数组类型的对象。服务对象和参数通过键值对的形式保存在它内部。使用它可以在任意地方通过键名访问到服务实体或者参数值。各个模块之间的接口调用可以通过注册服务的形式来完成,这使得程序之间的耦合度降低了。 例如,如果想要操作Session,那么可以通过 `Container` 获取到Session服务对象实体。 ``` $session = $container->get('session); ``` 可以通过如下命令查看当前注册的服务: ``` $ php app/console container:debug ``` 在 PHP 程序中进行调试比较常用的方法可能就是直接用 `var_dump` 将内容输出到页面上进行分析。这种方法会将调试信息与页面内容混在一起,一是不便于分析,再者就是可能会影响页面的正常功能。 Symfony2 中使用了 `Monolog` 这个 PHP 的日志库,可以用于将日志记录在服务器端。这样将调试信息和页面内容进行分离。 框架默认已经注册了一个名为 `logger` 的服务,使用它进行记录日志信息。例如,在控制器中用法如下: 以上语句将会向 ``` "%kernel.logs_dir%/%kernel.environment%.log" ``` 文件中分别写入级别为 `INFO` 和 `ERROR` 的两行内容。如果是开发环境,那么对应的日志文件为: `app/logs/dev.log` 。 如果打开 `app/logs/dev.log` 文件会发现它记录了很多内容,这同样不便于我们分析。因此我们需要将我们自己的日志记录到指定的位置。 修改 文件,设置 `monolog` 的 `handlers` ,新增一项。 ``` monolog: handlers: applog: type: stream path: /tmp/symfony2.log level: info ``` 这里我们新建了一个日志处理器,它将只记录 `INFO` 级别以上的日志并保存在 `/tmp/symfony2.log` 文件中。 然后在 文件中进行注册 services: ``` blogger_blog.applog: class: Symfony\Bridge\Monolog\Logger arguments: ["@logger"] tags: - { name: monolog.logger, handlers: applog } ``` 最后在控制器中执行: 现在我们自己的日志将保存在 `/tmp/symfony2.log` 文件,这样就与框架自己的日志分开了。 查看 `/tmp/symfony2.log` 文件会发现同样还是存在一些其他的不是我们写入的内容。现在我们想要只记录我们写入的内容,重新修改 文件: ``` monolog: handlers: applog: type: stream path: /tmp/symfony2.log level: info channels: [applog] channels: ["applog", "main"] ``` 为日志设置频道,同时再将刚刚在 文件中注册的 `blogger_blog.applog` 服务删除掉。 最后在控制器中执行: 参考文档: http://symfony.com/doc/2.5/cookbook/logging/monolog.html 有时我们需要根据不同语言的用户而显示不同的内容,这就需要需要将内容翻译成多种语言。 在 Symfony2 的框架中提供了一个 `Translation` 的组件可以实现该功能。 参考文档: http://symfony.com/doc/2.5/components/translation/index.html 以下通过一个简单的例子来介绍一下它的用法。 首先编辑文件 ,设置 `locale` 参数。 这个是用于设置默认的 `locale` ,其值的格式为: 语言代码 + 下划线 + 国家代码。 然后编辑文件 ,设置 framework -> translator 参数: { fallback: "%locale%" } 。 其中语言代码遵循 ISO 639-1 标准: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes国家代码遵循 ISO 3166-1 alpha-2 标准: http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes Symfony2 已经在依赖容器中注册了一个 `translator` 服务。在控制器中可以按照如下方法来使用: ``` $translated = $this->get('translator')->trans('A message.'); ``` 在 Twig 模板中可以使用 `trans` 这模板标签或者过滤器。 ``` {% trans %}A memssage.{% endtrans %} {{ message|trans }} ``` 更新翻译资源文件: ``` $ php app/console translation:update --force zh BloggerBlogBundle ``` 该命令会检查模板中的翻译词条,然后更新翻译词条的资源文件。 翻译词条资源文件存放的目录: ``` * app/Resources/translations; * app/Resources/<bundle name>/translations; * 各个 Bundle 目录中的 Resources/translations/. ``` 文件名格式为: domain.locale.loader ,如 messages.fr.yml 这里我们保存到 ``` src/Blogger/BlogBundle/Resources/translations/messages.zh.yml ``` 文件中。 然后打开该翻译文件,编辑需要翻译的词条。 最后还需要再更新一下缓存: ``` 实际情况中通常是根据用户浏览器的语言来显示翻译的内容。因此建议的做法是在用户的请求到来时先检查用户的语言,然后再设置到 $request 对象中。 例如: $locale = $request->getPreferredLanguage(); $request->setLocale($locale); ``` Return to book Review this book About the author Introduction 1. 第0章 简介 2. 第1章 创建项目 3. 第2章 创建应用 4. 第3章 创建页面 5. 第4章 表单验证 6. 第5章 Doctrine 7. 第6章 Entity与Form 8. 第7章 twig扩展 9. 第8章 使用PHPUnit进行单元测试 10. 第9章 Session 11. 第10章 Request && Response && Container 12. 第11章 网站部署 13. 第12章 日志 14. 第13章 i18n 15. 第14章 事件 Powered by GitBook A A Serif Sans White Sepia Night Twitter Google Facebook Weibo Instapaper Symfony2实例教程 事件
sigs.k8s.io/service-apis
go
Go
README [¶](#section-readme) --- ### Kubernetes Service APIs The Service APIs is a part of the [SIG Network](https://github.com/kubernetes/community/tree/master/sig-network), and this repository contains the specification and Custom Resource Definitions (CRDs). #### Documentation ##### Website The API specification and detailed documentation is available on the project website: [https://kubernetes-sigs.github.io/service-apis](https://kubernetes-sigs.github.io/service-apis/). ##### Get started To get started, please read through [API concepts](https://kubernetes-sigs.github.io/service-apis/concepts) and [Security model](https://kubernetes-sigs.github.io/service-apis/security-model). These documents give the necessary background to understand the API and the use-cases it targets. ##### Guides Once you have a good understanding of the API at a higher-level, please follow one of our [guides](https://kubernetes-sigs.github.io/service-apis/guides) to dive deeper into different parts of the API. ##### References A complete API reference, please refer to: * [API reference](https://kubernetes-sigs.github.io/service-apis/spec) * [Go docs for the package](https://pkg.go.dev/sigs.k8s.io/service-apis/apis/v1alpha1) #### Contributing Community meeting schedule, notes and developer guide can be found on the [community page](https://kubernetes-sigs.github.io/service-apis/community). Our Kubernetes Slack channel is [#sig-network-service-apis](https://kubernetes.slack.com/messages/sig-network-service-apis). #### Technical Leads * @bowei * @thockin ##### Code of conduct Participation in the Kubernetes community is governed by the [Kubernetes Code of Conduct](https://github.com/kubernetes-sigs/service-apis/blob/v0.1.0/code-of-conduct.md). None
wasmtime-wasi
rust
Rust
Crate wasmtime_wasi === `wasmtime-wasi` now supports using multiple snapshots to interface to the same `WasiCtx`! `wasmtime_wasi::Wasi::new(&Store, WasiCtx)` is a struct which owns your `WasiCtx` and provides linkage to every available snapshot. Individual snapshots are available through `wasmtime_wasi::snapshots::preview_{0, 1}::Wasi::new(&Store, Rc<RefCell<WasiCtx>>)`. Re-exports --- * `pub use sync::*;` Modules --- * preview2Wasmtime’s WASI Preview 2 Implementation * syncRe-export the commonly used wasi-cap-std-sync crate here. This saves consumers of this library from having to keep additional dependencies in sync. Structs --- * Error * I32ExitAn error returned from the `proc_exit` host syscall. * WasiCtxAn `Arc`-wrapper around the wasi-common context to allow mutable access to the file descriptor table. This wrapper is only necessary due to the signature of `fd_fdstat_set_flags`; if that changes, there are a variety of improvements that can be made (TODO: https://github.com/bytecodealliance/wasmtime/issues/5643). Traits --- * WasiDir * WasiFile Crate wasmtime_wasi === `wasmtime-wasi` now supports using multiple snapshots to interface to the same `WasiCtx`! `wasmtime_wasi::Wasi::new(&Store, WasiCtx)` is a struct which owns your `WasiCtx` and provides linkage to every available snapshot. Individual snapshots are available through `wasmtime_wasi::snapshots::preview_{0, 1}::Wasi::new(&Store, Rc<RefCell<WasiCtx>>)`. Re-exports --- * `pub use sync::*;` Modules --- * preview2Wasmtime’s WASI Preview 2 Implementation * syncRe-export the commonly used wasi-cap-std-sync crate here. This saves consumers of this library from having to keep additional dependencies in sync. Structs --- * Error * I32ExitAn error returned from the `proc_exit` host syscall. * WasiCtxAn `Arc`-wrapper around the wasi-common context to allow mutable access to the file descriptor table. This wrapper is only necessary due to the signature of `fd_fdstat_set_flags`; if that changes, there are a variety of improvements that can be made (TODO: https://github.com/bytecodealliance/wasmtime/issues/5643). Traits --- * WasiDir * WasiFile Module wasmtime_wasi::sync === Re-export the commonly used wasi-cap-std-sync crate here. This saves consumers of this library from having to keep additional dependencies in sync. Modules --- * clocks * dir * file * net * sched * snapshots * stdio Structs --- * DirA reference to an open directory on a filesystem. * TcpListenerA TCP socket server, listening for connections. * WasiCtxBuilder Functions --- * add_to_linker * ambient_authorityReturn an `AmbientAuthority` value, which allows use of functions that include an `AmbientAuthority` argument. * clocks_ctx * random_ctx * sched_ctx Module wasmtime_wasi::preview2 === Wasmtime’s WASI Preview 2 Implementation --- Welcome to the (new!) WASI implementation from the Wasmtime team. The goal of this implementation is to support WASI Preview 2 via the Component Model, as well as to provide legacy Preview 1 host support with an adapter that is implemented in terms of the Preview 2 interfaces. Presently, this crate is experimental. We don’t yet recommend you use it in production. Specifically: * the wit files in tree describing preview 2 are not faithful to the standards repos Once these issues are resolved, we expect to move this namespace up to the root of the wasmtime-wasi crate, and move its other exports underneath a `pub mod legacy` with an off-by-default feature flag, and after 2 releases, retire and remove that code from our tree. Modules --- * bindings * command * pipeVirtual pipes. * preview1 Structs --- * AbortOnDropJoinHandle * DeterministicImplement `insecure-random` using a deterministic cycle of bytes. * DirPerms * FilePerms * I32ExitAn error returned from the `proc_exit` host syscall. * Network * PollableA host representation of the `wasi:io/poll.pollable` resource. * Stderr * StdinOnly public interface is the `HostInputStream` impl. * Stdout * TableThe `Table` type is designed to map u32 handles to resources. The table is now part of the public interface to a `WasiCtx` - it is reference counted so that it can be shared beyond a `WasiCtx` with other WASI proposals (e.g. `wasi-crypto` and `wasi-nn`) to manage their resources. Elements in the `Table` are `Any` typed. * TrappableErrorA helper error type used by many other modules through type aliases. * WasiCtx * WasiCtxBuilder Enums --- * InputStream * IsATTY * StreamError * SystemTimeSpecA value for specifying a time. * TableError Traits --- * HostInputStreamHost trait for implementing the `wasi:io/streams.input-stream` resource: A bytestream which can be read from. * HostMonotonicClock * HostOutputStreamHost trait for implementing the `wasi:io/streams.output-stream` resource: A bytestream which can be written to. * HostWallClock * RngCoreThe core of a random number generator. * StdinStreamA trait used to represent the standard input to a guest program. * StdoutStreamSimilar to `StdinStream`, except for output. * Subscribe * WasiView Functions --- * in_tokio * spawn * spawn_blocking * stderr * stdin * stdout * subscribeCreates a `pollable` resource which is susbcribed to the provided `resource`. * thread_rng Type Aliases --- * ClosureFuture * FsError * FsResult * MakeFuture * OutputStream * PollableFuture * SocketError * SocketResult * StreamResult Struct wasmtime_wasi::Error === ``` pub struct Error { /* private fields */ } ``` Implementations --- ### impl Error #### pub fn trap(inner: Error) -> Error #### pub fn downcast(self) -> Result<Errno, Error#### pub fn downcast_ref(&self) -> Option<&Errno#### pub fn context(self, s: impl Into<String>) -> Error Trait Implementations --- ### impl Debug for Error #### fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), ErrorFormats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), ErrorFormats the value using the given formatter. #### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more1.0.0 · source#### fn description(&self) -> &str 👎Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting#### fn provide<'a>(&'a self, request: &mut Request<'a>) 🔬This is a nightly-only experimental API. (`error_generic_member_access`)Provides type based access to context intended for error reports. #### fn not_found() -> Error #### fn too_big() -> Error #### fn badf() -> Error #### fn exist() -> Error #### fn illegal_byte_sequence() -> Error #### fn invalid_argument() -> Error #### fn io() -> Error #### fn name_too_long() -> Error #### fn not_dir() -> Error #### fn not_supported() -> Error #### fn overflow() -> Error #### fn range() -> Error #### fn seek_pipe() -> Error #### fn perm() -> Error ### impl From<Errno> for Error #### fn from(abi: Errno) -> Error Converts to this type from the input type.### impl From<Error> for Error #### fn from(err: Error) -> Error Converts to this type from the input type.### impl From<Error> for Error #### fn from(err: Error) -> Error Converts to this type from the input type.### impl From<GuestError> for Error #### fn from(err: GuestError) -> Error Converts to this type from the input type.### impl From<TryFromIntError> for Error #### fn from(_err: TryFromIntError) -> Error Converts to this type from the input type.Auto Trait Implementations --- ### impl RefUnwindSafe for Error ### impl Send for Error ### impl Sync for Error ### impl Unpin for Error ### impl UnwindSafe for Error Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> GetSetFdFlags for T #### fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike, Query the “status” flags for the `self` file descriptor.#### fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where T: AsFilelike, Create a new `SetFdFlags` value for use with `set_fd_flags`. T: AsFilelike, Set the “status” flags for the `self` file descriptor. #### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. `Instrumented` wrapper. U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> Pointee for T #### type Pointer = u32 #### fn debug( pointer: <T as Pointee>::Pointer, f: &mut Formatter<'_> ) -> Result<(), Error### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<V, T> VZip<V> for Twhere V: MultiLane<T>, #### fn vzip(self) -> V ### impl<T> WithSubscriber for T #### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. `WithDispatch` wrapper. Read more Struct wasmtime_wasi::I32Exit === ``` pub struct I32Exit(pub i32); ``` An error returned from the `proc_exit` host syscall. Embedders can test if an error returned from wasm is this error, in which case it may signal a non-fatal trap. Tuple Fields --- `0: i32`Trait Implementations --- ### impl Debug for I32Exit #### fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), ErrorFormats the value using the given formatter. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), ErrorFormats the value using the given formatter. 1.30.0 · source#### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more1.0.0 · source#### fn description(&self) -> &str 👎Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting#### fn provide<'a>(&'a self, request: &mut Request<'a>) 🔬This is a nightly-only experimental API. (`error_generic_member_access`)Provides type based access to context intended for error reports. Read moreAuto Trait Implementations --- ### impl RefUnwindSafe for I32Exit ### impl Send for I32Exit ### impl Sync for I32Exit ### impl Unpin for I32Exit ### impl UnwindSafe for I32Exit Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> GetSetFdFlags for T #### fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike, Query the “status” flags for the `self` file descriptor.#### fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where T: AsFilelike, Create a new `SetFdFlags` value for use with `set_fd_flags`. T: AsFilelike, Set the “status” flags for the `self` file descriptor. #### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. `Instrumented` wrapper. U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> Pointee for T #### type Pointer = u32 #### fn debug( pointer: <T as Pointee>::Pointer, f: &mut Formatter<'_> ) -> Result<(), Error### impl<T> ToString for Twhere T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<V, T> VZip<V> for Twhere V: MultiLane<T>, #### fn vzip(self) -> V ### impl<T> WithSubscriber for T #### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. `WithDispatch` wrapper. Read more Struct wasmtime_wasi::WasiCtx === ``` pub struct WasiCtx(/* private fields */); ``` An `Arc`-wrapper around the wasi-common context to allow mutable access to the file descriptor table. This wrapper is only necessary due to the signature of `fd_fdstat_set_flags`; if that changes, there are a variety of improvements that can be made (TODO: https://github.com/bytecodealliance/wasmtime/issues/5643). Implementations --- ### impl WasiCtx #### pub fn new( random: Box<dyn RngCore + Sync + Send, Global>, clocks: WasiClocks, sched: Box<dyn WasiSched, Global>, table: Table ) -> WasiCtx #### pub fn insert_file( &self, fd: u32, file: Box<dyn WasiFile, Global>, access_mode: FileAccessMode ) #### pub fn push_file( &self, file: Box<dyn WasiFile, Global>, access_mode: FileAccessMode ) -> Result<u32, Error#### pub fn insert_dir(&self, fd: u32, dir: Box<dyn WasiDir, Global>, path: PathBuf) #### pub fn push_dir( &self, dir: Box<dyn WasiDir, Global>, path: PathBuf ) -> Result<u32, Error#### pub fn table(&self) -> &Table #### pub fn table_mut(&mut self) -> Option<&mut Table#### pub fn push_arg(&mut self, arg: &str) -> Result<(), StringArrayError#### pub fn push_env( &mut self, var: &str, value: &str ) -> Result<(), StringArrayError#### pub fn set_stdin(&self, f: Box<dyn WasiFile, Global>) #### pub fn set_stdout(&self, f: Box<dyn WasiFile, Global>) #### pub fn set_stderr(&self, f: Box<dyn WasiFile, Global>) #### pub fn push_preopened_dir( &self, dir: Box<dyn WasiDir, Global>, path: impl AsRef<Path> ) -> Result<(), ErrorTrait Implementations --- ### impl Clone for WasiCtx #### fn clone(&self) -> WasiCtx Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### type Target = WasiCtxInner The resulting type after dereferencing.#### fn deref(&self) -> &<WasiCtx as Deref>::Target Dereferences the value.### impl WasiSnapshotPreview1 for WasiCtx #### fn args_get<'b, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, argv: &'life1 GuestPtr<'b, GuestPtr<'b, u8>>, argv_buf: &'life2 GuestPtr<'b, u8> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'b: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn args_sizes_get<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(u32, u32), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn environ_get<'b, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, environ: &'life1 GuestPtr<'b, GuestPtr<'b, u8>>, environ_buf: &'life2 GuestPtr<'b, u8> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'b: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn environ_sizes_get<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(u32, u32), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn clock_res_get<'life0, 'async_trait>( &'life0 mut self, id: Clockid ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn clock_time_get<'life0, 'async_trait>( &'life0 mut self, id: Clockid, precision: u64 ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_advise<'life0, 'async_trait>( &'life0 mut self, fd: Fd, offset: u64, len: u64, advice: Advice ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_allocate<'life0, 'async_trait>( &'life0 mut self, fd: Fd, _offset: u64, _len: u64 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_close<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_datasync<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_fdstat_get<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<Fdstat, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_fdstat_set_flags<'life0, 'async_trait>( &'life0 mut self, fd: Fd, flags: Fdflags ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_fdstat_set_rights<'life0, 'async_trait>( &'life0 mut self, fd: Fd, _fs_rights_base: Rights, _fs_rights_inheriting: Rights ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_filestat_get<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_filestat_set_size<'life0, 'async_trait>( &'life0 mut self, fd: Fd, size: u64 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_filestat_set_times<'life0, 'async_trait>( &'life0 mut self, fd: Fd, atim: u64, mtim: u64, fst_flags: Fstflags ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_read<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, iovs: &'life1 GuestPtr<'a, [Iovec<'a>]> ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_pread<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, iovs: &'life1 GuestPtr<'a, [Iovec<'a>]>, offset: u64 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_write<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, ciovs: &'life1 GuestPtr<'a, [Ciovec<'a>]> ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_pwrite<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, ciovs: &'life1 GuestPtr<'a, [Ciovec<'a>]>, offset: u64 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_prestat_get<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<Prestat, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_prestat_dir_name<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, path: &'life1 GuestPtr<'a, u8>, path_max_len: u32 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_renumber<'life0, 'async_trait>( &'life0 mut self, from: Fd, to: Fd ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_seek<'life0, 'async_trait>( &'life0 mut self, fd: Fd, offset: i64, whence: Whence ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_sync<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_tell<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_readdir<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, buf: &'life1 GuestPtr<'a, u8>, buf_len: u32, cookie: u64 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_create_directory<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, path: &'life1 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_filestat_get<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, flags: Lookupflags, path: &'life1 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_filestat_set_times<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, flags: Lookupflags, path: &'life1 GuestPtr<'a, str>, atim: u64, mtim: u64, fst_flags: Fstflags ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_link<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, src_fd: Fd, src_flags: Lookupflags, src_path: &'life1 GuestPtr<'a, str>, target_fd: Fd, target_path: &'life2 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn path_open<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, dirflags: Lookupflags, path: &'life1 GuestPtr<'a, str>, oflags: Oflags, fs_rights_base: Rights, _fs_rights_inheriting: Rights, fdflags: Fdflags ) -> Pin<Box<dyn Future<Output = Result<Fd, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_readlink<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, dirfd: Fd, path: &'life1 GuestPtr<'a, str>, buf: &'life2 GuestPtr<'a, u8>, buf_len: u32 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn path_remove_directory<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, path: &'life1 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_rename<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, src_fd: Fd, src_path: &'life1 GuestPtr<'a, str>, dest_fd: Fd, dest_path: &'life2 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn path_symlink<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, src_path: &'life1 GuestPtr<'a, str>, dirfd: Fd, dest_path: &'life2 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn path_unlink_file<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, path: &'life1 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn poll_oneoff<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, subs: &'life1 GuestPtr<'a, Subscription>, events: &'life2 GuestPtr<'a, Event>, nsubscriptions: u32 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn proc_exit<'life0, 'async_trait>( &'life0 mut self, status: u32 ) -> Pin<Box<dyn Future<Output = Error> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn proc_raise<'life0, 'async_trait>( &'life0 mut self, _sig: Signal ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn sched_yield<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn random_get<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, buf: &'life1 GuestPtr<'a, u8>, buf_len: u32 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn sock_accept<'life0, 'async_trait>( &'life0 mut self, fd: Fd, flags: Fdflags ) -> Pin<Box<dyn Future<Output = Result<Fd, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn sock_recv<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, ri_data: &'life1 GuestPtr<'a, [Iovec<'a>]>, ri_flags: Riflags ) -> Pin<Box<dyn Future<Output = Result<(u32, Roflags), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn sock_send<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, si_data: &'life1 GuestPtr<'a, [Ciovec<'a>]>, _si_flags: u16 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn sock_shutdown<'life0, 'async_trait>( &'life0 mut self, fd: Fd, how: Sdflags ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, ### impl WasiUnstable for WasiCtx #### fn args_get<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, argv: &'life1 GuestPtr<'a, GuestPtr<'a, u8>>, argv_buf: &'life2 GuestPtr<'a, u8> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn args_sizes_get<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(u32, u32), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn environ_get<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, environ: &'life1 GuestPtr<'a, GuestPtr<'a, u8>>, environ_buf: &'life2 GuestPtr<'a, u8> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn environ_sizes_get<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(u32, u32), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn clock_res_get<'life0, 'async_trait>( &'life0 mut self, id: Clockid ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn clock_time_get<'life0, 'async_trait>( &'life0 mut self, id: Clockid, precision: u64 ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_advise<'life0, 'async_trait>( &'life0 mut self, fd: Fd, offset: u64, len: u64, advice: Advice ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_allocate<'life0, 'async_trait>( &'life0 mut self, fd: Fd, offset: u64, len: u64 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_close<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_datasync<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_fdstat_get<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<Fdstat, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_fdstat_set_flags<'life0, 'async_trait>( &'life0 mut self, fd: Fd, flags: Fdflags ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_fdstat_set_rights<'life0, 'async_trait>( &'life0 mut self, fd: Fd, fs_rights_base: Rights, fs_rights_inheriting: Rights ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_filestat_get<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_filestat_set_size<'life0, 'async_trait>( &'life0 mut self, fd: Fd, size: u64 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_filestat_set_times<'life0, 'async_trait>( &'life0 mut self, fd: Fd, atim: u64, mtim: u64, fst_flags: Fstflags ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_read<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, iovs: &'life1 GuestPtr<'a, [Iovec<'a>]> ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_pread<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, iovs: &'life1 GuestPtr<'a, [Iovec<'a>]>, offset: u64 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_write<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, ciovs: &'life1 GuestPtr<'a, [Ciovec<'a>]> ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_pwrite<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, ciovs: &'life1 GuestPtr<'a, [Ciovec<'a>]>, offset: u64 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_prestat_get<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<Prestat, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_prestat_dir_name<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, path: &'life1 GuestPtr<'a, u8>, path_max_len: u32 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn fd_renumber<'life0, 'async_trait>( &'life0 mut self, from: Fd, to: Fd ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_seek<'life0, 'async_trait>( &'life0 mut self, fd: Fd, offset: i64, whence: Whence ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_sync<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_tell<'life0, 'async_trait>( &'life0 mut self, fd: Fd ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn fd_readdir<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, fd: Fd, buf: &'life1 GuestPtr<'a, u8>, buf_len: u32, cookie: u64 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_create_directory<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, path: &'life1 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_filestat_get<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, flags: Lookupflags, path: &'life1 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_filestat_set_times<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, flags: Lookupflags, path: &'life1 GuestPtr<'a, str>, atim: u64, mtim: u64, fst_flags: Fstflags ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_link<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, src_fd: Fd, src_flags: Lookupflags, src_path: &'life1 GuestPtr<'a, str>, target_fd: Fd, target_path: &'life2 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn path_open<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, dirflags: Lookupflags, path: &'life1 GuestPtr<'a, str>, oflags: Oflags, fs_rights_base: Rights, fs_rights_inheriting: Rights, fdflags: Fdflags ) -> Pin<Box<dyn Future<Output = Result<Fd, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_readlink<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, dirfd: Fd, path: &'life1 GuestPtr<'a, str>, buf: &'life2 GuestPtr<'a, u8>, buf_len: u32 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn path_remove_directory<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, path: &'life1 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn path_rename<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, src_fd: Fd, src_path: &'life1 GuestPtr<'a, str>, dest_fd: Fd, dest_path: &'life2 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn path_symlink<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, src_path: &'life1 GuestPtr<'a, str>, dirfd: Fd, dest_path: &'life2 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn path_unlink_file<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, dirfd: Fd, path: &'life1 GuestPtr<'a, str> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn poll_oneoff<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, subs: &'life1 GuestPtr<'a, Subscription>, events: &'life2 GuestPtr<'a, Event>, nsubscriptions: u32 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, WasiCtx: 'async_trait, #### fn proc_exit<'life0, 'async_trait>( &'life0 mut self, status: u32 ) -> Pin<Box<dyn Future<Output = Error> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn proc_raise<'life0, 'async_trait>( &'life0 mut self, _sig: Signal ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn sched_yield<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, #### fn random_get<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, buf: &'life1 GuestPtr<'a, u8>, buf_len: u32 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn sock_recv<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, _fd: Fd, _ri_data: &'life1 GuestPtr<'a, [Iovec<'a>]>, _ri_flags: Riflags ) -> Pin<Box<dyn Future<Output = Result<(u32, Roflags), Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn sock_send<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, _fd: Fd, _si_data: &'life1 GuestPtr<'a, [Ciovec<'a>]>, _si_flags: u16 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, WasiCtx: 'async_trait, #### fn sock_shutdown<'life0, 'async_trait>( &'life0 mut self, _fd: Fd, _how: Sdflags ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, WasiCtx: 'async_trait, Auto Trait Implementations --- ### impl !RefUnwindSafe for WasiCtx ### impl Send for WasiCtx ### impl Sync for WasiCtx ### impl Unpin for WasiCtx ### impl !UnwindSafe for WasiCtx Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> GetSetFdFlags for T #### fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike, Query the “status” flags for the `self` file descriptor.#### fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where T: AsFilelike, Create a new `SetFdFlags` value for use with `set_fd_flags`. T: AsFilelike, Set the “status” flags for the `self` file descriptor. #### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. `Instrumented` wrapper. U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> Pointee for T #### type Pointer = u32 #### fn debug( pointer: <T as Pointee>::Pointer, f: &mut Formatter<'_> ) -> Result<(), Error### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<V, T> VZip<V> for Twhere V: MultiLane<T>, #### fn vzip(self) -> V ### impl<T> WithSubscriber for T #### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. `WithDispatch` wrapper. Read more
git-branchless-init
rust
Rust
Crate git_branchless_init === Install any hooks, aliases, etc. to set up `git-branchless` in this repo. Enums --- * HookA specification for installing a Git hook on disk. Constants --- * ALL_HOOKSThe contents of all Git hooks to install. Functions --- * command_install_man_pagesInstall the man-pages for `git-branchless` to the provided path. * command_mainInstall `git-branchless` in the current repo. * determine_hook_pathDetermine the path where all hooks are installed. Crate git_branchless_init === Install any hooks, aliases, etc. to set up `git-branchless` in this repo. Enums --- * HookA specification for installing a Git hook on disk. Constants --- * ALL_HOOKSThe contents of all Git hooks to install. Functions --- * command_install_man_pagesInstall the man-pages for `git-branchless` to the provided path. * command_mainInstall `git-branchless` in the current repo. * determine_hook_pathDetermine the path where all hooks are installed. Enum git_branchless_init::Hook === ``` pub enum Hook { RegularHook { path: PathBuf, }, MultiHook { path: PathBuf, }, } ``` A specification for installing a Git hook on disk. Variants --- ### RegularHook #### Fields `path: PathBuf`The path to the hook script. Regular Git hook. ### MultiHook #### Fields `path: PathBuf`The path to the hook script. For Twitter multihooks. (But does anyone even work at Twitter anymore?) Trait Implementations --- ### impl Debug for Hook #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read moreAuto Trait Implementations --- ### impl RefUnwindSafe for Hook ### impl Send for Hook ### impl Sync for Hook ### impl Unpin for Hook ### impl UnwindSafe for Hook Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. T: Any, #### fn into_any(self: Box<T, Global>) -> Box<dyn Any, GlobalConvert `Box<dyn Trait>` (where `Trait: Downcast`) to `Box<dyn Any>`. `Box<dyn Any>` can then be further `downcast` into `Box<ConcreteType>` where `ConcreteType` implements `Trait`.#### fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, GlobalConvert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.#### fn as_any(&self) -> &(dyn Any + 'static) Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot generate `&Any`’s vtable from `&Trait`’s.#### fn as_any_mut(&mut self) -> &mut (dyn Any + 'static) Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot generate `&mut Any`’s vtable from `&mut Trait`’s.### impl<T> DowncastSync for Twhere T: Any + Send + Sync, #### fn into_any_arc(self: Arc<T, Global>) -> Arc<dyn Any + Send + Sync, GlobalConvert `Arc<Trait>` (where `Trait: Downcast`) to `Arc<Any>`. `Arc<Any>` can then be further `downcast` into `Arc<ConcreteType>` where `ConcreteType` implements `Trait`.### impl<T> From<T> for T #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T> Instrument for T #### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. `Instrumented` wrapper. U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<D> OwoColorize for D #### fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where C: Color, Set the foreground color generically C: Color, Set the background color generically. Color: DynColor, Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either `OwoColorize::fg` or a color-specific method, such as `OwoColorize::green`, Color: DynColor, Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either `OwoColorize::bg` or a color-specific method, such as `OwoColorize::on_yellow`, &self ) -> FgColorDisplay<'_, CustomColor<R, G, B>, SelfSet the foreground color to a specific RGB value.#### fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> BgColorDisplay<'_, CustomColor<R, G, B>, SelfSet the background color to a specific RGB value.#### fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, SelfSets the foreground color to an RGB value.#### fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, SelfSets the background color to an RGB value.#### fn style(&self, style: Style) -> Styled<&SelfApply a runtime-determined style### impl<T> Pointable for T #### const ALIGN: usize = mem::align_of::<T>() The alignment of pointer.#### type Init = T The type for initializers.#### unsafe fn init(init: <T as Pointable>::Init) -> usize Initializes a with the given initializer. Dereferences the given pointer. Mutably dereferences the given pointer. Drops the object pointed to by the given pointer. #### type Output = T Should always be `Self`### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.### impl<V, T> VZip<V> for Twhere V: MultiLane<T>, #### fn vzip(self) -> V ### impl<T> With for T #### fn wrap_with<U, F>(self, f: F) -> Uwhere F: FnOnce(Self) -> U, Calls the given closure and return the result. F: FnOnce(&mut Self), Calls the given closure on `self`.#### fn try_with<E, F>(self, f: F) -> Result<Self, E>where F: FnOnce(&mut Self) -> Result<(), E>, Calls the given closure on `self`.#### fn with_if<F>(self, condition: bool, f: F) -> Selfwhere F: FnOnce(&mut Self), Calls the given closure if `condition == true`.### impl<T> WithSubscriber for T #### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. `WithDispatch` wrapper. ### impl<T> Erased for T Constant git_branchless_init::ALL_HOOKS === ``` pub const ALL_HOOKS: &[(&str, &str)]; ``` The contents of all Git hooks to install. Function git_branchless_init::command_install_man_pages === ``` pub fn command_install_man_pages( ctx: CommandContext, args: InstallManPagesArgs ) -> EyreExitOr<()> ``` Install the man-pages for `git-branchless` to the provided path. Function git_branchless_init::command_main === ``` pub fn command_main(ctx: CommandContext, args: InitArgs) -> EyreExitOr<()> ``` Install `git-branchless` in the current repo. Function git_branchless_init::determine_hook_path === ``` pub fn determine_hook_path( repo: &Repo, hooks_dir: &Path, hook_type: &str ) -> Result<Hook> ``` Determine the path where all hooks are installed.
github.com/evertras/bubble-table
go
Go
README [¶](#section-readme) --- ### Bubble-table [![Latest Release](https://img.shields.io/github/release/Evertras/bubble-table.svg)](https://github.com/Evertras/bubble-table/releases) [![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://pkg.go.dev/github.com/evertras/bubble-table/table?tab=doc) [![Coverage Status](https://coveralls.io/repos/github/Evertras/bubble-table/badge.svg?branch=main&hash=abc)](https://coveralls.io/github/Evertras/bubble-table?branch=main) [![Go Report Card](https://goreportcard.com/badge/github.com/evertras/bubble-table)](https://goreportcard.com/report/github.com/evertras/bubble-table) A customizable, interactive table component for the [Bubble Tea framework](https://github.com/charmbracelet/bubbletea). ![Styled table](https://user-images.githubusercontent.com/5923958/188168029-0de392c8-dbb0-47da-93a0-d2a6e3d46838.png) [View above sample source code](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/pokemon) #### Contributing Contributions welcome, please [check the contributions doc](https://github.com/evertras/bubble-table/blob/v0.15.3/CONTRIBUTING.md) for a few helpful tips! #### Features For a code reference of most available features, please see the [full feature example](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/features). If you want to get started with a simple default table, [check the simplest example](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/simplest). Displays a table with a header, rows, footer, and borders. The header can be hidden, and the footer can be set to automatically show page information, use custom text, or be hidden by default. Columns can be fixed-width [or flexible width](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/flex). A maximum width can be specified which enables [horizontal scrolling](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/scrolling), and left-most columns can be frozen for easier reference. Border shape is customizable with a basic thick square default. The color can be modified by applying a base style with `lipgloss.NewStyle().BorderForeground(...)`. Styles can be applied globally and to columns, rows, and individual cells. The base style is applied first, then column, then row, then cell when determining overrides. The default base style is a basic right-alignment. [See the main feature example](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/features) to see styles and how they override each other. Can be focused to highlight a row and navigate with up/down (and j/k). These keys can be customized with a KeyMap. Can make rows selectable, and fetch the current selections. Events can be checked for user interactions. Pagination can be set with a given page size, which automatically generates a simple footer to show the current page and total pages. Built-in filtering can be enabled by setting any columns as filterable, using a text box in the footer and `/` (customizable by keybind) to start filtering. A missing indicator can be supplied to show missing data in rows. Columns can be sorted in either ascending or descending order. Multiple columns can be specified in a row. If multiple columns are specified, first the table is sorted by the first specified column, then each group within that column is sorted in smaller and smaller groups. [See the sorting example](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/sorting) for more information. If a column contains numbers (either ints or floats), the numbers will be sorted by numeric value. Otherwise rendered string values will be compared. If a feature is confusing to use or could use a better example, please feel free to open an issue. #### Defining table data A table is defined by a list of `Column` values that define the columns in the table. Each `Column` is associated with a unique string key. A table contains a list of `Row`s. Each `Row` contains a `RowData` object which is simply a map of string column IDs to arbitrary `interface{}` data values. When the table is rendered, each `Row` is checked for each `Column` key. If the key exists in the `Row`'s `RowData`, it is rendered with `fmt.Sprintf("%v")`. If it does not exist, nothing is rendered. Extra data in the `RowData` object is ignored. This can be helpful to simply dump data into `RowData` and create columns that select what is interesting to view, or to generate different columns based on view options on the fly (see the [metadata example](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/metadata) for an example of using this). An example is given below. For more detailed examples, see [the examples directory](https://github.com/evertras/bubble-table/blob/v0.15.3/examples). ``` // This makes it easier/safer to match against values, but isn't necessary const ( // This value isn't visible anywhere, so a simple lowercase is fine columnKeyID = "id" // It's just a string, so it can be whatever, really! They only must be unique columnKeyName = "何?!" ) // Note that there's nothing special about "ID" or "Name", these are completely // arbitrary columns columns := []table.Column{ table.NewColumn(columnKeyID, "ID", 5), table.NewColumn(columnKeyName, "Name", 10), } rows := []table.Row{ // This row contains both an ID and a name table.NewRow(table.RowData{ columnKeyID: "abc", columnKeyName: "Hello", }), table.NewRow(table.RowData{ columnKeyID: "123", columnKeyName: "Oh no", // This field exists in the row data but won't be visible "somethingelse": "Super bold!", }), table.NewRow(table.RowData{ columnKeyID: "def", // This row is missing the Name column, so it will use the supplied missing // indicator if supplied when creating the table using the following option: // .WithMissingDataIndicator("<ない>") (or .WithMissingDataIndicatorStyled!) }), // We can also apply styling to the row or to individual cells // This row has individual styling to make it bold table.NewRow(table.RowData{ columnKeyID: "bold", columnKeyName: "Bolded", }).WithStyle(lipgloss.NewStyle().Bold(true). , // This row also has individual styling to make it bold table.NewRow(table.RowData{ columnKeyID: "alert", // This cell has styling applied on top of the bold columnKeyName: table.NewStyledCell("Alert", lipgloss.NewStyle().Foreground(lipgloss.Color("#f88"))), }).WithStyle(lipgloss.NewStyle().Bold(true), } ``` ##### A note on 'metadata' There may be cases where you wish to reference some kind of data object in the table. For example, a table of users may display a user name, ID, etc., and you may wish to retrieve data about the user when the row is selected. This can be accomplished by attaching hidden 'metadata' to the row in the same way as any other data. ``` const ( columnKeyID = "id" columnKeyName = "名前" columnKeyUserData = "userstuff" ) // Notice there is no "userstuff" column, so it won't be displayed columns := []table.Column{ table.NewColumn(columnKeyID, "ID", 5), table.NewColumn(columnKeyName, "Name", 10), } // Just one user for this quick snippet, check the example for more user := &SomeUser{ ID: 3, Name: "Evertras", } rows := []table.Row{ // This row contains both an ID and a name table.NewRow(table.RowData{ columnKeyID: user.ID, columnKeyName: user.Name, // This isn't displayed, but it remains attached to the row columnKeyUserData: user, }), } ``` For a more detailed demonstration of this idea in action, please see the [metadata example](https://github.com/evertras/bubble-table/blob/v0.15.3/examples/metadata). #### Demos Code examples are located in [the examples directory](https://github.com/evertras/bubble-table/blob/v0.15.3/examples). Run commands are added to the [Makefile](https://github.com/evertras/bubble-table/blob/v0.15.3/Makefile) for convenience but they should be as simple as `go run ./examples/features/main.go`, etc. You can also view what they look like by checking the example's directory in each README here on Github. To run the examples, clone this repo and run: ``` # Run the pokemon demo for a general feel of common useful features make # Run dimensions example to see multiple sizes of simple tables in action make example-dimensions # Or run any of them directly go run ./examples/pagination/main.go ``` None
bignum
cran
R
Package ‘bignum’ May 4, 2023 Title Arbitrary-Precision Integer and Floating-Point Mathematics Version 0.3.2 Description Classes for storing and manipulating arbitrary-precision integer vectors and high-precision floating-point vectors. These extend the range and precision of the 'integer' and 'double' data types found in R. This package utilizes the 'Boost.Multiprecision' C++ library. It is specifically designed to work well with the 'tidyverse' collection of R packages. License MIT + file LICENSE URL https://davidchall.github.io/bignum/, https://github.com/davidchall/bignum BugReports https://github.com/davidchall/bignum/issues Depends R (>= 3.3.0) Imports rlang, vctrs (>= 0.3.0) Suggests knitr, pillar (>= 1.6.3), rmarkdown, testthat LinkingTo BH, cpp11 VignetteBuilder knitr Config/testthat/edition 3 Encoding UTF-8 RoxygenNote 7.2.3 NeedsCompilation yes Author <NAME> [aut, cre, cph] (<https://orcid.org/0000-0002-2193-0480>) Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2023-05-04 06:40:02 UTC R topics documented: bigfloa... 2 bigintege... 3 bignum-arit... 4 bignum-compar... 5 bignum-constant... 5 bignum-forma... 6 bignum-mat... 8 bignum-specia... 9 seq.bignum_vct... 10 bigfloat High-Precision Numeric Vectors Description bigfloat() and as_bigfloat() construct a vector designed to store numbers with 50 decimal digits of precision. is_bigfloat() checks if an object is of class bignum_bigfloat. Usage bigfloat(x = character()) as_bigfloat(x) is_bigfloat(x) Arguments x Object to be coerced or tested. Value An S3 vector of class bignum_bigfloat. See Also NA_bigfloat_ to represent missing values. format() for pretty printing. vignette("operations") for supported operations. Examples # default options limit displayed precision bigfloat(1) / 3 # display full precision format(bigfloat(1) / 3, sigfig = 50, notation = "dec") biginteger Arbitrary-Precision Integer Vectors Description biginteger() and as_biginteger() construct a vector designed to store any integer. is_biginteger() checks if an object is of class bignum_biginteger. Usage biginteger(x = character()) as_biginteger(x) is_biginteger(x) Arguments x Object to be coerced or tested. Value An S3 vector of class bignum_biginteger. See Also NA_biginteger_ to represent missing values. format() for pretty printing. vignette("operations") for supported operations. Examples # default options limit displayed precision biginteger(2)^50L # display full precision format(biginteger(2)^50L, notation = "dec") # lossy casts raise a warning biginteger(c(2, 2.5, 3)) # suppress warnings if they are expected suppressWarnings(biginteger(c(2, 2.5, 3))) # unsigned integers can be specified as hexadecimal biginteger("0xffffffff") bignum-arith Arithmetic operations Description biginteger and bigfloat vectors support the standard arithmetic operations. The base R documenta- tion can be found at Arithmetic. Value These arithmetic operations are type-stable, which means the output type depends only on the input types (not the input values). A biginteger vector is returned when the result must be an integer (e.g., addition of two integers). Otherwise a bigfloat vector is returned. The following table summarizes the return type for each combination, where "integer-like" refers to integer and biginteger vectors and "float-like" refers to double and bigfloat vectors. Input 1 Operator Input 2 Result Integer-like +, -, *, ^, %% Integer-like -> biginteger Integer-like +, -, *, ^, %% Float-like -> bigfloat Float-like +, -, *, ^, %% Integer-like -> bigfloat Float-like +, -, *, ^, %% Float-like -> bigfloat Any / Any -> bigfloat Any %/% Any -> biginteger See Also Other bignum operations: bignum-compare, bignum-math, bignum-special Examples x <- biginteger(5) y <- bigfloat(2) +x -x x + y x - y x * y x / y x^y x %% y x %/% y bignum-compare Comparison operations Description biginteger and bigfloat vectors support the standard comparison operations. The base R documen- tation can be found at Comparison. Value A logical vector. See Also Other bignum operations: bignum-arith, bignum-math, bignum-special Examples x <- biginteger(5) y <- bigfloat(2) x < y x > y x <= y x >= y x == y x != y bignum-constants Constants Description NA_biginteger_ and NA_bigfloat_ support missing values. bigpi is a higher precision version of pi. Usage NA_biginteger_ NA_bigfloat_ bigpi Value A biginteger or bigfloat vector of length 1. See Also NA and pi are the base constants. Examples NA_biginteger_ NA_bigfloat_ # default options limit displayed precision bigpi # display full precision format(bigpi, sigfig = 50, notation = "dec") bignum-format Format a bignum vector Description Customize how a biginteger or bigfloat vector is displayed. The precision can be controlled with a number of significant figures, or with a maximum or fixed number of digits after the decimal point. You can also choose between decimal, scientific and hexadecimal notations. The default formatting applied when printing depends on the type of object: • standalone vector: consults "bignum.sigfig" and "bignum.max_dec_width" • tibble column: consults "pillar.sigfig" and "pillar.max_dec_width" Usage ## S3 method for class 'bignum_biginteger' format( x, ..., sigfig = NULL, digits = NULL, notation = c("fit", "dec", "sci", "hex") ) ## S3 method for class 'bignum_bigfloat' format(x, ..., sigfig = NULL, digits = NULL, notation = c("fit", "dec", "sci")) Arguments x A biginteger or bigfloat vector. ... These dots are for future extensions and must be empty. sigfig Number of significant figures to show. Must be positive. Cannot be combined with digits. If both sigfig and digits are unspecified, then consults the "bignum.sigfig" option (default: 7). digits Number of digits to show after the decimal point. Positive values indicate the exact number of digits to show. Negative values indicate the maximum number of digits to show (terminal zeros are hidden if there are no subsequent non-zero digits). Cannot be combined with sigfig. notation How should the vector be displayed? Choices: • "fit": Use decimal notation if it fits, otherwise use scientific notation. Consults the "bignum.max_dec_width" option (default: 13). • "dec": Use decimal notation, regardless of width. • "sci": Use scientific notation. • "hex": Use hexadecimal notation (positive biginteger only). Value Character vector Examples # default uses decimal notation format(bigfloat(1e12)) # until it becomes too wide, then it uses scientific notation format(bigfloat(1e13)) # hexadecimal notation is supported for positive integers format(biginteger(255), notation = "hex") # significant figures format(bigfloat(12.5), sigfig = 2) # fixed digits after decimal point format(bigfloat(12.5), digits = 2) # maximum digits after decimal point format(bigfloat(12.5), digits = -2) bignum-math Mathematical operations Description biginteger and bigfloat vectors support many of the standard mathematical operations. The base R documentation can be found by searching for the individual functions (e.g. mean()). Value The returned value depends on the individual function. We recommend reading the base R docu- mentation for a specific function to understand the expected result. See Also Other bignum operations: bignum-arith, bignum-compare, bignum-special Examples # summary x <- bigfloat(1:5) sum(x) prod(x) max(x) min(x) range(x) mean(x) # cumulative x <- bigfloat(1:5) cumsum(x) cumprod(x) cummax(x) cummin(x) # rounding x <- bigfloat(1.5) floor(x) ceiling(x) trunc(x) # miscellaneous x <- bigfloat(2) abs(x) sign(x) sqrt(x) # logarithms and exponentials x <- bigfloat(2) log(x) log10(x) log2(x) log1p(x) exp(x) expm1(x) # trigonometric x <- bigfloat(0.25) cos(x) sin(x) tan(x) acos(x) asin(x) atan(x) cospi(x) sinpi(x) tanpi(x) # hyperbolic x <- bigfloat(0.25) cosh(x) sinh(x) tanh(x) acosh(bigfloat(2)) asinh(x) atanh(x) # special functions x <- bigfloat(2.5) gamma(x) lgamma(x) digamma(x) trigamma(x) factorial(x) lfactorial(x) bignum-special Check for special values Description biginteger and bigfloat support missing values (via NA_biginteger_ and NA_bigfloat_ respec- tively). bigfloat additionally supports positive and negative infinity and ’Not a Number’ values. Usually these are the result of a calculation, but they can also be created manually by casting from numeric to bigfloat. These functions check for the presence of these special values. The base R documentation can be found at is.na() and is.finite(). Value A logical vector. See Also Other bignum operations: bignum-arith, bignum-compare, bignum-math Examples x <- bigfloat(c(0, NA, Inf, -Inf, NaN)) is.na(x) is.finite(x) is.infinite(x) is.nan(x) seq.bignum_vctr Sequences of bignum vectors Description Generate a regular sequence of biginteger or bigfloat values. When calling seq(), exactly two of the following must be specified: • to • by • Either length.out or along.with Usage ## S3 method for class 'bignum_vctr' seq(from, to = NULL, by = NULL, length.out = NULL, along.with = NULL, ...) Arguments from Start value of the sequence. Always included in the result. A biginteger or bigfloat scalar. to Stop value of the sequence. Only included in the result if by divides the interval between from and to exactly. to is cast to the type of from. by Amount to increment the sequence by. by is cast to the type of from. length.out Length of the resulting sequence. along.with Vector who’s length determines the length of the resulting sequence. ... These dots are for future extensions and must be empty. seq.bignum_vctr 11 Value A sequence with the type of from. Examples seq(biginteger(0), 10, by = 2) seq(biginteger(0), 10, length.out = 3) seq(biginteger(0), by = 3, length.out = 3) seq(bigfloat(0), by = -0.05, length.out = 6)
config-decorator
readthedoc
Markdown
To install system-wide, run as superuser: To install user-local, simply run: To install within a `virtualenv` , try: ``` $ mkvirtualenv config-decorator (config-decorator) $ pip install config-decorator ``` To develop on the project, link to the source files instead: ``` (config-decorator) $ deactivate $ rmvirtualenv config-decorator $ git clone <EMAIL>:hotoffthehamster/config-decorator.git $ cd config-decorator $ mkvirtualenv -a $(pwd) --python=/usr/bin/python3.7 config-decorator (config-decorator) $ make develop ``` After creating the virtual environment, to start developing from a fresh terminal, run `workon` : ``` $ workon config-decorator (config-decorator) $ ... ``` # config_decorator¶ config-decorator config_decorator ¶ config_decorator package Submodules config_decorator.config_decorator module Concepts Typical usage config_decorator.key_chained_val module Module contents Contributing Contents Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given (if so desired). ## How to Contribute¶ You can contribute in many ways: ### Report Bugs¶ Report bugs at https://github.com/hotoffthehamster/config-decorator/issues. When reporting a bug, please include: * Your operating system name and version, and the Python version you are using. * Any details about your local setup that might be helpful for troubleshooting. * Detailed steps to reproduce the bug. ### Fix Bugs¶ ### Implement Features¶ ### Write Documentation¶ If you find documentation out of date, missing, or confusing, please help us to improve it. This includes the official user documentation, the README, and the inline docstrings that generate the API documentation (per PEP 257 and Google Python Style Guide). We also appreciate reference from blog posts, articles, and other projects. ### Submit Feedback¶ The best way to send feedback is to file an issue at https://github.com/hotoffthehamster/config-decorator/issues. See above for reporting bugs. If you are proposing a feature: * Explain in detail how the feature should work. * Unless you expect to work on the code yourself, your chances of having a feature implemented are greater if you keep the scope focused and narrow such that it’s as simple as possible for a developer to work on. That, or a monetary contribution speaks volumes. * Remember that this is a volunteer-driven project, and that contributions are welcome! You are encouraged to fork the project, hack away, and submit pull requests for new features (and bug fixes). * Above all else, please be considerate and kind. A few nice words can go a long way! Please also feel free to email the author directly if you have any other questions or concerns. Response times may vary depending on season. ## Getting Started¶ Ready to contribute? Here’s how to set up `config-decorator` for local development. Fork the `config-decorator` repo on GitHub. * Visit https://github.com/hotoffthehamster/config-decorator and click Fork. * Clone your fork locally. Open a local terminal, change to a directory you’d like to develop from, and run the command: > $ git clone <EMAIL>:<your_login>/config-decorator.git * Install `config-decorator` into a Python virtual instance, or `virtualenv` . First, ensure that you have `virtualenvwrapper` installed. Next, set up a virtual environment for local development: > $ cd config-decorator/ $ mkvirtualenv -a $(pwd) config-decorator (config-decorator) $ Note: We use the `-a` option so that `cdproject` changes directories to the `config-decorator/` directory when we’re in the virtual environment. Next, set up your fork for local development: > (config-decorator) $ cdproject (config-decorator) $ make develop Hint: As usual, run `workon` to activate the virtual environment, and `deactivate` to leave it. E.g.,: > # Load the Python virtual instance. $ workon config-decorator (config-decorator) $ # Do your work. (config-decorator) $ ... # Finish up. (config-decorator) $ deactivate $ * Before starting work on a new feature or bug fix, make sure your `develop` branch is up to date with the official branch: > (config-decorator) $ cdproject (config-decorator) $ git remote add upstream <EMAIL>:hotoffthehamster/config-decorator.git (config-decorator) $ git fetch upstream (config-decorator) $ git checkout develop (config-decorator) $ git rebase upstream/develop (config-decorator) $ git push origin HEAD * Create a branch for local development. If you are working on an known issue, you may want to reference the Issue number in the branch name, e.g.,: > $ git checkout -b feature/ISSUE-123-name-of-your-issue Now you can add and edit code in your local working directory. * Do your work and make one or more sane, concise commits: > $ git add -p $ git commit -m "<Category>: <Short description of changes.> - <Longer description, if necessary.>" IMPORTANT: Please make each commit as small and sane as possible. Follow these guidelines: Each commit should generally focus on one thing, and one thing only, and that thing should be clearly described in the first line of the commit message. * Please use a one-word categorical prefix (see below) to make it easy for someone reading the git log to understand the breadth of your changes. * If you move or refactor code, the move or refactor should be captured in a single commit with no other code changes. E.g., if you want to enhance a function, but you find that you need to refactor it to make it easier to hack on, first refactor the function – without adding any new code or making any other changes – and then make a commit, using the `Refactor:` prefix. Next, add your new code, and then make a second commit for the new feature/enhancement. * Following are some examples of acceptable commit message prefixes: ``` Feature: Added new feature. ``` ``` Bugfix: Fixed problem doing something. ``` ``` Refactor: Split long function into many. ``` * `Version: X.Y.Z.` * ``` Tests: Did something to tests. ``` ``` Docs: Update developer README. ``` ``` Debug: Add trace messages. ``` ``` Developer: Improved developer experience [akin to `Debug:` prefix]. ``` ``` Linting: Adjust whitespace. ``` ``` Regression: Oh, boy, when did this get broke? ``` ``` i18n/l10n: Something about words. ``` ``` Feedback: Fix something per PR feedback. ``` (You’ll notice that this strategy is similar to gitmoji, but it’s more concise, and less obtuse.) * Throughout development, run tests and the linter – and definitely before you submit a Pull Request. `config-decorator` uses `flake8` for linting, `pytest` for unit testing, and `tox` for verifying against the many versions of Python. You can run all of these tools with one command: > $ make test-all which simply executes `tox` . * Rebase and squash your work, if necessary, before submitting a Pull Request. E.g., if the linter caught an error, rather than making a new commit with just the linting fix(es), make a temporary commit with the linting fixes, and then squash that commit into the previous commit wherein you originally added the code that didn’t lint. (Note: Rebasing is an intermediate Git skill. If you’re unfamiliar, read up elsewhere. But consider a few reminders. First, ensure that you are not rebasing any branch that other developers are also working on (which should not apply to your feature branch, unless you are collaborating with others on that branch, which you are probably not). Second, remember that `git rebase --abort` can save you from having to resolve any unanticipated or complicated conflicts, should you find yourself faced with rebase conflicts and unsure how to get your work back (abort the rebase and maybe ask someone for help, and try another approach).) For example, pretend that I have the following git history: > $ git log --oneline | head -3 b1c07a4 Regression: Fix some old bug. 17d1e38 Feature: Add my new feature. 2e888c3 Bugfix: Oops! Did I do that? and then I commit a linting fix that should have been included with the second-to-last commit, `17d1e38` . First, add the linting fix: > $ git add -A $ git ci -m "Squash me!" Next, start a rebase: > $ git rebase -i 2e888c3 (Note: Use the SHA1 hash of the commit after the one you want squash into.) Git should open your default editor with a file that starts out like this: > pick 2e888c3 Bugfix: Oops! Did I do that? pick 17d1e38 Feature: Add my new feature. pick b1c07a4 Regression: Fix some old bug. pick f05e080 Squash me! Reorder the commit you want to squash so that it’s after the commit you want to combine it with, and change the command from `pick` to `squash` (or `s` for short): > pick 2e888c3 Bugfix: Oops! Did I do that? pick 17d1e38 Feature: Add my new feature. squash f05e080 Squash me! pick b1c07a4 Regression: Fix some old bug. Save and close the file, and Git will rebase your work. When Git rebases the commit being squashed, it will pop up your editor again so you can edit the commit message of the new, squashed commit. Delete the squash comment ( `Squash me!` ), and save and close the file. Git should hopefully finish up and report, ``` Successfully rebased and updated ``` . (If not, you can manually resolve any conflicts. Or, you can run `git rebase --abort` to rollback to where you were before the rebase, and you can look online for more help rebasing.) * Push the changes to your GitHub account. After testing and linting, and double-checking that your new feature or bugfix works, and rebasing, and committing your changes, push them to the branch on your GitHub account: > $ git push origin feature/ISSUE-123-name-of-your-issue Note: If you pushed your work and then rebased, you may have to force-push: > $ git push origin feature/ISSUE-123-name-of-your-issue --force * Finally, submit a pull request through the GitHub website. Important: Please rebase your code against `develop` and resolve merge conflicts, so that the main project maintainer does not have to do so themselves. E.g.,: > $ git checkout feature/ISSUE-123-name-of-your-issue $ git fetch upstream $ git rebase upstream/develop # Resolve any conflicts, then force-push. $ git push origin HEAD --force # And then open the Pull Request. ## Pull Request Guidelines¶ Before you submit a pull request, check that it meets these guidelines: * Update docs. * Use docstrings to document new functions, and use (hopefully concise) inline comments as appropriate. * Follow the conventions defined by PEP 257 and Google Python Style Guide. * Document broader concepts and capture API changes and additions in the user documentation. * Use docstrings to document new functions, and use (hopefully concise) inline comments as appropriate. * Include tests. * If a pull request adds new classes or methods, they should be tested, either implicitly, because they’re already called by an existing test. Or they should be tested explicitly, because you added new tests for them. * We strive for test coverage in the high-90s (it’s too tedious to hit all branches and get 100%), but we do not enforce it. Please provide tests that provide majority coverage of your new code (you can ignore or consider error handling branches less important to cover, but all branches would still be good to test!). * Commit sensibly. * Each commit should be succinct and singular in focus. Refer to rebasing and squashing, above. * Rebase your work atop develop (as mentioned above) before creating the PR, or after making any requested changes. * Run `make test-all` . * ‘nough said. ## Debugging Tips¶ To run one test or a subset of tests, you can specify a substring expression using the `-k` option with `make test` : ``` $ make test TEST_ARGS="-k NAME_OF_TEST_OR_SUB_MODULE" ``` The substring will be Python-evaluated. As such, you can test multiple tests using `or` , e.g., ``` -k 'test_method or test_other' ``` . Or you can exclude tests using `not` , e.g., `-k 'not test_method'` . Note that `readline` functionality will not work from any breakpoint you encounter under `make test` . (For example, pressing the Up arrow will print a control character sequence to the terminal, rather than showing the last command you ran.) * If you want to interact with the code at runtime, run `py.test` directly (see next). If you’d like to break into a debugger when a test fails, run `pytest` directly and have it start the interactive Python debugger on errors: ``` $ py.test --pdb tests/ ``` If you’d like a more complete stack trace when a test fails, add verbosity: ``` $ py.test -v tests/ # Or, better yet, two vees! $ py.test -vv tests/ ``` If you’d like to run a specific test, use `-k` , as mentioned above. E.g.,: ``` $ py.test -k test__repr__no_start_no_end tests/ ``` Put it all together to quickly debug a broken test. ``` $ py.test --pdb -vv -k <test_name> tests/ ``` You can also set breakpoints in the code with `pdb` . Simply add a line like this: ``` import pdb; pdb.set_trace() ``` To test against other Python versions than what is setup in your `virtualenv` , you can use `tox` and name an environment with the `envlist` option: ``` $ tox -e NAME_OR_ENVIRONMENT ``` ## Style Guide¶ Code style should be readily apparent by reading existing code. ### Style Enforcement¶ The style of new code can be easily and incontrovertibly verified by running various developer tasks. You can lint the code easily with one command. But you have your choice of which one command to run. The following three commands are essentially equivalent, and run the code linter: > # The Makefile lint task: $ make lint # is similar to the tox task: $ tox -e flake8 # is just like running flake8: $ flake8 setup.py dob/ tests/ * You can lint the docs easily with one or two commands. The inline docstrings used to create the documentation can be verified with the docstrings linter, which returns nonzero on error. (You can also build the docs, but the builder is a little more forgiving and doesn’t complain as much as the linter.) > # Run the docstrings linter: $ tox -e pydocstyle # Generate the reST docs (peruse the output for errors and warnings): $ make docs You can verify import statement order manually. Imports are grouped by classification, and then ordered alphabetically within each group. The `isort` tool will automatically fix import statements to conform. But `isort` also commits certain atrocities such as removing comments from `setup.cfg` and removing trailing file blank lines, the former of which is not easy to work-around, so `isort` is not a part of the default `tox` tasks. You must be run `isort` manually. > $ tox -e isort You will likely find that `isort` makes unintended changes, and you will have to do a selective commit, e.g., `git add -p <file>` , while reverting other changes, e.g., ``` git checkout -- setup.cfg ``` . ### Style Reference¶ The project style tracks as closely as possible to community conventions, mostly established in 2001 by Python’s creator, <NAME>, and others: In lieu of PEP 287 – reStructuredText Docstring Format, the project prefers Google-style docstrings, as defined in the Google Python Style Guide: When building the HTML documentation from the sources, Google-style docstrings are recognized by a Sphinx extension: * napoleon: Support for NumPy and Google style docstrings. ### Conventional Deviations¶ The conventions outlined in PEP 8 are enforced by the Flake8 linter, with the following custom rules: Use a maximum line length of 89 characters. This accommodates two files side-by-side in an editor on a small laptop screen. It also makes code more quickly readable, e.g., think of the width of columns in a newspaper or magazine. * Disabled: “W391: blank line at end of file”. Ending every file with a blank line accommodates the developer jumping their cursor to the bottom of a file in a text editor (say, by pressing `<Ctrl-End>` ) and knowing the cursor will always land in the same column (rather than landing at the end of some arbitrary-length line). * Disabled: “W503: line break before binary operator”. This produces, IMO, more readable code. For instance, write this: > if (some_thing and another and another_thing): or write this: > if ( some_thing and another and another_thing ): but do not write this: > if (some_thing and another and another_thing): * Disabled: “W605: invalid escape sequence”. This rules incorrectly fires on some regex expression, such as `\d{2}` , thus, shunned. There are some unwritten rules (because there are unenforceable by the existing linters, by way of not being features), including: Keep methods small and focused. Use function-level scoping to break up a long method into many smaller pieces. When you use lots of smaller methods rather than one larger method, it has the side effect of forcing you to better document the code, by forcing you to consider and assign method names to each function. While this project does not need to be strict about method length – in Ruby, for instance, the RuboCop linter enforces a maximum method length of 10 lines, by default – it’s a good idea to strive for shorter methods, and it’s not all that difficult to do, once you develop your own tricks. (For instance, one could write a long function at first, and then break it up into smaller, more coherent pieces, selecting multiple lines of code at once, hitting `<Tab>` to indent the code one stop, then adding `def` lines to each grouping of code and assigning descriptive method names.) * Prefer single quotes over double quotes. (This is a loose rule). In other programming languages, like Bash and Ruby, double-quoted strings are interpolated, but single-quoted strings are not. This affects whether or not certain characters need to be escaped with a delimiter. And it can cause unintended consequences, e.g., a developer uses double quotation marks but forgets to escape characters within the string. One rule we could enforce is to use double quotes for human-readable strings, and to use single quotes for all other strings. But human- readable strings should already be encased in the localization method, e.g., ``` _("I'm human-readable!") ``` , so this demarcation has little additional utility. So do what feels right in the moment. Oftentimes, using single quotes is easiest, because the developer can avoid the Shift key and type the quotation mark with one finger. * Use a single underscore prefix to indicate private functions and methods. E.g.,: ``` def _my_private_method(): ... ``` . * Python 2 compatibility has been retired. These conventions are no longer necessary (and were removed from the code): * Declare the encoding at the top of every file: ``` -*- coding: utf-8 -*- ``` * Use absolute_import and unicode_literals from the `__future__` package. * Use six.text_type to cast a string (to Unicode). * Declare the encoding at the top of every file: ### Of Readability¶ Concerning Writing Tests, Docstrings, Comments, and Documentation: Strive to write code that is self-documenting. Use expressive variable and methods names (and use long names, if they need to be). Break long functions into a collection of shorter methods. This will inherently document how the long function works if you give each smaller unit of work a descriptive method name. Use well-named, intermediate variables to make code more readable, rather than writing a long one-liner. By naming intermediate values, you will provide inherent documentation to the code. * Prefer tests and coverage over docstrings and documentation. You are encouraged to spend your time writing self-documenting code, and to develop tests that are illustrative of the usage of the new code, rather than worrying about writing docstrings and documentation, which can be tedious and time consuming to write (and to read! if you made it this far, dear reader!). Written documentation is also likely to become outdated quickly, as new code is added and old code is changed, and documents lie in the dust. (Which is not to say that docstrings have no utility! Just that docstrings are essentially worthless if what you documented has no test coverage, say.) ### Altogether Now¶ Save for running `isort` (see above), you can run all linter and test tasks with one 3-letter command: `$ tox` Once this command is passing, you should be good to commit (or rebase) your work and to submit a Pull Request. ## Contributor Code of Conduct¶ Please respect and adhere to the Code of Conduct (please also read it!). ** 🐬 Happy 🐠 Config-Decorator 🦖 Hacking!! 🐡 ** ## Contributor Covenant Code of Conduct¶ ### Our Pledge¶ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. ### Our Standards¶ Examples of behavior that contributes to creating a positive environment include: * Using welcoming and inclusive language. * Being respectful of differing viewpoints and experiences. * Gracefully accepting constructive criticism. * Focusing on what is best for the community. * Showing empathy towards other community members. Examples of unacceptable behavior by participants include: * The use of sexualized language or imagery and unwelcome sexual attention or advances. * Trolling, insulting/derogatory comments, and personal or political attacks. * Public or private harassment. * Publishing others’ private information, such as a physical or electronic address, without explicit permission. * Other conduct which could reasonably be considered inappropriate in a professional setting. ### Our Responsibilities¶ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. ### Scope¶ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. ### Enforcement¶ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at <EMAIL>. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership. ### Attribution¶ This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html. For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq. # Credits¶ config-decorator Credits ¶ Corporate Sponsor ¶ HotOffThe Hamster Human Maintainer ¶ <NAME> <hotoffthehamster+landonb -at- gmail.comDate: 2020-01-01 Categories: Tags: This software — `config-decorator` — is Copyright © 2019-2020 <NAME>. All rights reserved. This software — `config-decorator` — is licensed under the MIT License. ``` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` # History¶ Bugfix: as_dict excludes custom user settings because not marked from-config. That is, when a client calls update_gross to add free-form custom user config (i.e., settings that were not defined by an @section-decorated config function), be sure to mark the values as from-config, and not from-default. Otherwise, as_dict ignores the values, thinking they’re not from the user. Bugfix: When apply_items extracts config dict, skip_unset not honored. Feature: Option to include section even if all keys were excluded (as_dict). Feature: New classmethod for re-rooting section. Improve: New set_section method to add subsections.
aimsir17
cran
R
Package ‘aimsir17’ October 12, 2022 Title Irish Weather Observing Stations Hourly Records for 2017 Version 0.0.2 Description Named after the Irish name for weather, this package contains tidied data from the Irish Meteorological Service's hourly observations for 2017. In all, the data sets include observations from 25 weather stations, and also latitude and longitude coordinates for each weather station. Now includes energy generation data for Ireland and Northern Ireland (2017), including Wind Generation data. License Creative Commons Attribution 4.0 International License Copyright inst/COPYRIGHTS Depends R (>= 2.10) Suggests dplyr Imports tibble Encoding UTF-8 LazyData true URL https://github.com/JimDuggan/aimsir17, https://www.met.ie, http://www.eirgridgroup.com/how-the-grid-works/renewables/, http://www.eirgridgroup.com/site-files/library/EirGrid/ SNSP-Formula-External-Publication.pdf RoxygenNote 7.1.1 NeedsCompilation no Author <NAME> [aut, cre] (<https://orcid.org/0000-0002-7507-8617>) Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2020-08-14 13:10:06 UTC R topics documented: eirgrid1... 2 observation... 3 station... 4 eirgrid17 EirGrid System Data Quarterly Hourly for 2017 Description EirGrid System Data Quarterly Hourly for 2017 Usage eirgrid17 Format year Year of observation. month Month of observation. day Day of observation. hour Hour of observation. minute Minute of observation. date Date and Time (utc). NIGeneration Northern Ireland Generation. NIDemand Northern Ireland Demand. NIWindAvailability Northern Ireland Wind Availability. NIWindGeneration Northern Ireland Wind Generation. IEGeneration Republic of Ireland Generation. IEDemand Republic of Ireland Demand. IEWindAvailability Republic of Ireland Wind Availability. NIWindGeneration Republic of Irekand Wind Generation. SNSP System Non-Synchronous Penetration) is the sum of wind + solar generation + HVDC im- ports as a percentage of total demand + exports Copyright EirGrid Licence Statement This data is published under a Creative Commons Attribution 4.0 International (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ Disclaimer Disclaimer: Please note that the data contained herein is indicative as it is based on raw 15-minute SCADA readings which have yet to be quality controlled. EirGrid as the Transmission System Operator (TSO) for Ireland and SONI as the TSO for Northern Ireland make no warranties or representations of any kind with respect of this document, including, without limitation, its quality, accuracy and completeness. While every effort has been made in the compilation of this report to ensure that the information herein is correct, the TSOs do not accept liability for any loss or damage arising from the use of this document or any reliance on the information it contains. Use of this document and the information it contains is at the user’s sole risk. In addition, the TSOs strongly recommend that any party wishing to make a decision based on the content of this document should consult the TSOs in advance. Modifications New columns added to the data for Year, Month, Day, Hour and Minute. Columns representing GMT offset removed. The column date transformed to a ‘POSIXct‘ type. Fur- thermore, note that: The system data in this report is is based on average 15-minute SCADA readings (MW). All figures represent net exported energy. Maximum/Minimum figures in the different jurisdictions do not necessarily occur at the same time. The maximum SNSP limit allowed on the system is 65 SNSP may exceed this maximum limit due to wind variations. Source http://www.eirgridgroup.com/how-the-grid-works/renewables/ observations Met Eireann - Weather Observing Stations Records 01-Jan-2017 to 31-Dec-2017 Description Met Eireann - Weather Observing Stations Records 01-Jan-2017 to 31-Dec-2017 Usage observations Format date Date and Time (utc). rain Precipitation Amount (mm). temp Air Temperature (C) wetb Wet Bulb Temperature (C) dewpt Dew Point Temperature (C) vappr Vapour Pressure (hPa) rhum Relative Humidity % msl Mean Sea Level Pressure (hPa) wddir Predominant Wind Direction (deg) Copyright <NAME> Licence Statement This data is published under a Creative Commons Attribution 4.0 International (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ Disclaimer Met Eireann does not accept any liability whatsoever for any error or omission in the data, their availability, or for any loss or damage arising from their use Modifications New columns added to the data for Year, Month, Day and Hour. Columns repre- senting indicators removed. The column date transformed to a ‘POSIXct‘ type Source https://www.met.ie stations Summary of weather observing stations with observations Description Summary of weather observing stations with observations Usage stations Format station Name of the Weather Observing Station height Height above sea level (M) latitude Latitude of weather station longitude Longitude of weather station Copyright <NAME> Licence Statement This data is published under a Creative Commons Attribution 4.0 International (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ Disclaimer Met Eireann does not accept any liability whatsoever for any error or omission in the data, their availability, or for any loss or damage arising from their use #’ Modifications New columns added to the data for Year, Month, Day and Hour. All ind columns removed. Date formatted to R data object format using package lubridate Source https://www.met.ie
forImage
cran
R
Package ‘forImage’ October 13, 2022 Type Package Title Foraminiferal Image Analysis and Test Measurement Version 0.1.0 Maintainer <NAME> <<EMAIL>> Description The goal of this collection of functions is to provide an easy to use tool for the measure- ment of foraminifera and other unicellulars organisms size. With functions devel- oped to guide foraminiferal test biovolume calculations and cell biomass estimations. The vol- ume function includes several microalgae models geometric adaptations based on Hille- brand et al. (1999) <doi:10.1046/j.1529- 8817.1999.3520403.x>, Sun and Liu (2003) <doi:10.1093/plankt/fbg096> and Vadrucci, Cabrini and Bas- set (2007) <doi:10.1285/i1825229Xv1n2p83>. License MIT + file LICENSE URL https://github.com/ThaiseRF/forImage BugReports https://github.com/ThaiseRF/forImage/issues Encoding UTF-8 Depends R (>= 3.2.0) LazyData true Imports dplyr, magrittr, tibble, reticulate RoxygenNote 7.1.0 Suggests knitr, rmarkdown, data.table, xml2, raster, testthat (>= 2.1.0) SystemRequirements Python >=3.5, numpy ( >= 1.18.1), imutils ( >= 0.5.3), scipy ( >= 1.4.1), pandas ( >= 1.0.2), Pillow ( >= 7.0.0), opencv ( >= 4.1.2) VignetteBuilder knitr Author <NAME> [aut, cre], <NAME> [aut], <NAME> [aut] NeedsCompilation no Repository CRAN Date/Publication 2021-03-02 20:10:02 UTC R topics documented: ammoni... 2 amphistegin... 3 angulogerin... 3 asterotrochammin... 4 bio.volum... 5 biomas... 6 bolivin... 8 cibicidoide... 8 data_pc... 9 depth.xm... 10 discorbinell... 11 exampleImag... 11 install_measur... 12 laevipeneropli... 13 loxostomin... 13 measur... 14 nonionell... 15 patellin... 16 quinqueloculin... 16 rectocibicide... 17 spirillin... 18 textulari... 18 volume.tota... 19 ammonia Ammonia size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Ammonia. The vari- ables are as follows: Usage ammonia Format A ‘data.frame‘ with 867 rows and 7 variables: species species of genus Ammonia from which raw data were gathered ind number of individuals by species h test height in um (82.05–390.65) d_one test minor diameter in um (20–220) d_two test major diameter in um (75.1–364.6) area test surface area in um2 (4438–107903) pco percent cell occupancy of the test (11–100) amphistegina Amphistegina size data Description A ‘data.frame‘ containing the size and other attributes of genus Amphistegina. The variables are as follows: Usage amphistegina Format A ‘data.frame‘ with 167 rows and 5 variables: ind number of individuals h test height in um (60.0–579.0) d_one test diameter in um (111.3–1193.1) area test surface area in um2 (9722–3027282) pco percent cell occupancy of the test (3.408–100) angulogerina Angulogerina size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Angulogerina. The variables are as follows: Usage angulogerina Format A ‘data.frame‘ with 100 rows and 6 variables: ind number of individuals h test height in um (81.75–380.91) d_one test minor diameter in um (34–156) d_two test major diameter in um (66.04–237.34) area test surface area in um2 (4654–41915) pco percent cell occupancy of the test (6.818–100) asterotrochammina Asterotrochammina size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Asterotrochammina. The variables are as follows: Usage asterotrochammina Format A ‘data.frame‘ with 335 rows and 7 variables: species species of genus Asterotrochammina from which raw data were gathered ind number of individuals by species h test height in um (12–72) d_one test minor diameter in um (77.86–265.50) radius test radius in um (38.93–132.75) area test surface area in um2 (4761–57577) pco percent cell occupancy of the test (15–100) bio.volume Biovolume calculus Description This function calculates Foraminifera biovolume, through geometric approximation. To compute others organisms cell volume use volume.total function Usage bio.volume(data, pco = 0.76, genus = NULL, model = NULL) Arguments data a numeric vector or data frame with size data. Size data parameters by model see volume details. pco (optional) vector informing percent of cell occupancy in the test. Default value set for specific genus in data_pco. genus (optional) character informing foraminifera genus to calculate individual bio- volume. See all genera available in data_pco model (optional if genus unknown) character informing geometric model to calculate volume. See all models available in volume.total Details The function calculates the biovolume of different individuals from the available genera. Value A ‘data.frame‘ or numeric object, consisting of calculated individual volume (if not available), biovolume and model (if genus is informed). Author(s) <NAME> <<EMAIL>> See Also volume.total biomass measure Examples # Calculate biovolume for different genera #Ammonia size data data("ammonia") bio.volume(ammonia, genus= "ammonia") # Calculate biovolume for unknown genus df <- data.frame(h = 10, d_one = 10, d_two = 10, area = 10, width = 10, length = 10) bio.volume(df, model = "10hl", pco = 0.76) biomass Biomass estimative Description The function estimates biomass through biovolume data and applies different cell density values as conversion methods. See details ‘Details’: Usage biomass(biovolume, method = "michaels") Arguments biovolume numeric value, object or data.frame with cell living volume values. method The methods of conversion from biovolume to biomass are listed below, default is 'michaels': • 'saidova' : adopted cell density of 1.027 g/cm3; • 'strathmann' : measured cell density of 0.110 pgC[org]/um3; • 'turley' : estimated cell density of 0.132 pgC[org]/um3; • 'putt' : estimated cell density of 0.140 pgC[org]/um3; • 'gerlach' : adopted cell density of 1.13 g/cm3 wet mass, assuming 10 percent as living organic carbon; • 'michaels' : calculated cell density of 0.089 pgC[org]/um3. Details For biomass estimates based on biovolume is usual the application of a cell density value, to retrieve the amount of organic carbon in the organism. The function made available distinct options of conversion factor which are based in several authors. These factors have been applied to a wide diversity of nano, micro, and macro-organisms, some applied to foraminifera and other nearby groups. Value An ‘data.frame‘ or numeric object, consisting of calculated biomass in ugC[org]/ind. Author(s) <NAME> <<EMAIL>> References • <NAME>. (1966). The biomass and quantitative distribution of live foraminifera in the Kurile-Kamchatka trench area. DOKLADY AKAD. NAUK SSSR, 174(1), 216–217. • <NAME>. (1967). Estimating the Organic Carbon Content of Phytoplankton from Cell Volume or Plasma Volume. Limnology and Oceanography, 12, 411–418. doi:10.4319/lo.1967.12.3.0411 • <NAME>., <NAME>., & <NAME>. (1986). Survival Strategies of 2 Small Marine Ciliates and Their Role in Regulating Bacterial Community Structure Under Experimental Conditions. Marine Ecology Progress Series, 33(1), 59–70. doi:10.3354/meps033059 • <NAME>., & <NAME>. (1989). An experimentally determined carbon : volume ratio for marine ‘oligotrichous’ ciliates from estuarine and coastal waters. Limnology and Oceanogra- phy, 34(6), 1097–1103. doi:10.4319/lo.1989.34.6.1097 • <NAME>., <NAME>., & <NAME>. (1985). Size spectra of benthic biomass and metabolism . Marine Ecology Progress Series, 26, 161–173. doi:10.3354/meps026161 • <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (1995). Planktonic sarcodines (Acantaria, Radiolaria, Foraminifera) in surface waters near Bermuda: abundance, biomass and vertical flux. Journal of Plankton Research, 17(0), 131–163. doi:10.1093/plankt/17.1.131 See Also bio.volume, volume.total Examples #Ammonia biomass calculation data(ammonia) #calculate test volume and biovolume df <- bio.volume(data = ammonia, genus = "ammonia") df #calculate individual biomass with choosen method res <- biomass(df, method = 'michaels') res bolivina Bolivina size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Bolivina. The variables are as follows: Usage bolivina Format A ‘data.frame‘ with 628 rows and 7 variables: species species of genus Bolivina from which raw data were gathered ind number of individuals by species d_one test minor diameter in um (72.37–502.12) h test height (thickness) in um (12.5–83.0) d_two test major diameter in um (60.60–226.21) area test surface area in um2 (3187–72244) pco percent cell occupancy of the test (9.72–100) cibicidoides Cibicidoides size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Cibicidoides. The variables are as follows: Usage cibicidoides Format A ‘data.frame‘ with 118 rows and 7 variables: species species of genus Cibicidoides from which raw data were gathered ind number of individuals by species h test height in um (24–117) d_one test minor diameter in um (76.46–266.85) radius test radius in um (38.23–133.43) area test surface area in um2 (4591–55928) pco percent cell occupancy of the test (11.87–100) data_pco Foraminiferal genera data for forImage examples Description This ‘data.frame‘ contains protoplasm occupancy mean and standard deviation data of 72 foraminifera genera. These genera data are originally from Freitas and others (2019) Format A ‘data.frame‘ with 72 rows and 3 variables: genera foraminifera genera mean mean protoplasm occupancy percentage (pco) sd standard deviation of mean (pco) n number of specimens model fitted geometric model in Freitas and others (2019) Details Foraminifera genera with (pco) available: "ammonia" "amphistegina" "angulogerina" "archaias" "asterotrochammina" "bolivina" "buliminella" "cancris" "caronia" "cassidulina" "cibicides" "cibicidoides" "cornuspira" "cribroelphidium" "cymbaloporetta" "deuterammina" "disconorbis" "discorbia" "discorbinella" "discorbis" "discorbitina" "edentostomina" "elphidium" "eoeponidella" "eponides" "fissurina" "fursenkoina" "glabratella" "globocassidulina" "hanzawaia" "hauerina" "heronallenia" "laevipeneroplis" "lepidodeuterammina" "loxostomina" "miliolinella" "mullinoides" "mychostomina" "neoconorbina" "nonionella" "nonioninoides" "pararotalia" "paratrochammina" "patellina" "planispirillina" "planorbulina" "planulina" "pyrgo" "quinqueloculina" "rectocibicides" "remaneicella" "reophax" "rosalina" "rotaliammina" "rotorbinella" "rotorbis" "sahulia" "sigmavirgulina" "siphonina" "sorites" "spirillina" "spiroloculina" "spirorbina" "tetrataxiella" "textularia" "triloculina" "triloculinella" "trochammina" "webbinella" "wiesnerella" depth.xml Import image object depth (Z) Description The function retrieves the object depth information from image metadata as source. Usage ## S3 method for class 'xml' depth(x, ...) Arguments x file containing metadata, if xml type: '.xml', '.tif_meta.xml' ... other arguments. Value A ‘data.frame‘ with the following information: • file : filename • z_depth : measured focus range depth (z) Examples ## Not run: #Path to example file from package meta <- system.file("extdata", "foram.tif_meta.xml", package="forImage") #retrieve z-depth data depth.xml(meta) ## End(Not run) discorbinella Discorbinella size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Discorbinella. The variables are as follows: Usage discorbinella Format A ‘data.frame‘ with 318 rows and 7 variables: species species of genus Discorbinella from which raw data were gathered ind number of individuals by species h test height in um (15–72) d_one test minor diameter in um (67.69–197.43) radius test radius in um (33.85–98.71) area test surface area in um2 (3599–30614) pco percent cell occupancy of the test (9.673–100) exampleImage Foraminiferal photomicrograph for forImage examples Description Contains image file of one foraminifer. These files are originally from previous work - Freitas and others (2019) Format Image objects with variable dimension and resolution. install_measure Install python packages dependencies for measure function Description The function is a wrapper to install all python packages dependencies for measure function at once. It will install the following packages: numpy, scipy, imutils, Pillow, pandas, and opencv-python. If the latest versions of these packages are already installed, there is no need to run this function. Usage install_measure( method = "auto", conda = "auto", envname = NULL, extra_packages = NULL, pip = F ) Arguments method Installation method. By default, "auto" automatically finds a method that will work in the local environment. Change the default to force a specific installation method. Note that the "virtualenv" method is not available on Windows. conda Path to conda executable (or "auto" to find conda using the PATH and other conventional install locations). envname Name of environment to install packages into. extra_packages Additional packages if needed. pip Install from pip, if possible. Details On Linux and OS X the "virtualenv" method will be used by default ("conda" will be used if vir- tualenv isn’t available). On Windows, the "conda" method is always used. For more information check the ‘reticulate‘ package documentation: https://rstudio.github.io/reticulate/ Value No return value. The function is only called to install the required packages. laevipeneroplis Laevipeneroplis size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Laevipeneroplis. The variables are as follows: Usage laevipeneroplis Format A ‘data.frame‘ with 79 rows and 7 variables: species species of genus Laevipeneroplis from which raw data were gathered ind number of individuals by species h test height in um (40–633.9) d_one test minor diameter in um (47–624.2) area test surface area in um2 (8827–306012) pco percent cell occupancy of the test (15.24–100) d_two test major diameter in um (169.2–544.0) - The NA’s related to one species of this genus that don’t required this measure loxostomina Loxostomina size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Loxostomina. The variables are as follows: Usage loxostomina Format A ‘data.frame‘ with 31 rows and 7 variables: ind number of individuals by species d_one test minor diameter in um (101.4–534.6) h test height in um (28.0–80.0) d_two test major diameter in um (89.76–261.17) area test surface area in um2 (6636–76089) pco percent cell occupancy of the test (9.88–100) measure Foraminifera image measurement Description This function measures dimensions in photomicrographs. Usage measure(file, scale = NULL, ref_scale = NULL, unit = "um", pco = FALSE, save = FALSE, path = NULL) Arguments file image file with or without metadata. scale (optional) image physical pixel size (metric / pixel). ref_scale (optional) reference scale available on image (in micrometers or millimeters). This scale should be inserted under the main object. unit scale unit. Needs to agree with reference scale or metric per pixel. (Default "um") pco (optional) will assess proportion of cell occupancy inside the shell. Outlined proportion. This argument is still being tested and should be used with caution. save If TRUE save the result image in a specified folder (see path) or the working directory, if FALSE it does not save the image with measures. (Default FALSE) path (optional) path to save result file. Value A ‘data.frame‘ containing the file name, surface area and major and minor axis. The unit is depen- dent on the pixel per metric scale. It also returns a PNG file with the measured dimensions if save = TRUE. Author(s) <NAME> <<EMAIL>> See Also bio.volume, volume.total Examples ## Not run: #Path to example file from package img <- system.file("extdata", "foram.tif", package="forImage") #measure individual dimension measure(img) ## End(Not run) nonionella Nonionella size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Nonionella. The variables are as follows: Usage nonionella Format A ‘data.frame‘ with 208 rows and 7 variables: species species of genus Nonionella from which raw data were gathered ind number of individuals by species d_one test minor diameter in um (93.39–564.98) h test height in um (19.50–294.00) d_two test major diameter in um (82.99–547.67) area test surface area in um2 (5783–222371) pco percent cell occupancy of the test (15.51–100) patellina Patellina size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Patellina. The vari- ables are as follows: Usage patellina Format A ‘data.frame‘ with 79 rows and 6 variables: ind number of individuals by species h test height in um (24–66) d_one test minor diameter in um (84.84–247.46) radius test radius in um (42.42–123.73) area test surface area in um2 (5653–87838) pco percent cell occupancy of the test (9.94–100) quinqueloculina Quinqueloculina size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Quinqueloculina. As this genus has a wide morphological variation, two types of models can be applied to calculate its volume. Therefore the variables are grouped by model as well as by species. It is also an example that the model argument can be a ‘data.frame‘ column. The variables are as follows: Usage quinqueloculina Format A ‘data.frame‘ with 688 rows and 10 variables: species species of genus Quinqueloculina from which raw data were gathered ind number of individuals by species h test height in um (107.4–944.4) d_one test minor diameter in um (26.94–389.73) d_two test major diameter in um (18.52–662.23) area test surface area in um2 (6294–431271) pco percent cell occupancy of the test (13.76–100) length test length in um (44.02–609.00) width test width in um (83.72–688.32) model geometric model (’10hl’–’17fs’) rectocibicides Rectocibicides size data Description A ‘data.frame‘ containing the size and other attributes of genus Rectocibicides. The variables are as follows: Usage rectocibicides Format A ‘data.frame‘ with 199 rows and 4 variables: ind number of individuals h test height in um (22.00–101.50) area test surface area in um2 (3450–674280) pco percent cell occupancy of the test (10–100) spirillina Spirillina size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Spirillina. The vari- ables are as follows: Usage spirillina Format A ‘data.frame‘ with 42 rows and 6 variables: ind number of individuals by species h test height in um (12–44) d_one test minor diameter in um (73.71–105.14) radius test radius in um (36.86–123.73) area test surface area in um2 (4268–34730) pco percent cell occupancy of the test (7.10–100) textularia Textularia size data Description A ‘data.frame‘ containing the size and other attributes of species from genus Textularia. The vari- ables are as follows: Usage textularia Format A ‘data.frame‘ with 84 rows and 7 variables: species species of genus Textularia from which raw data were gathered ind number of individuals by species h test height in um (113.6–1034.4) d_one test minor diameter in um (40–306) d_two test major diameter in um (103.8–552.6) area test surface area in um2 (8235–336929) pco percent cell occupancy of the test (10.46–100) volume.total Volumetric calculus of organisms Description The function calculates organisms volume based on geometric approximation. Usage ## S3 method for class 'total' volume(data, model, ...) Arguments data data frame containing size data. Size data parameters may vary according to chosen model, see Details. model character informing geometric model to calculate volume, the models options are listed below: • '1hl' : sphere • '2sl' : half-sphere • '3hl' : prolate spheroid • '4hl' : cone or double cone • '6fs' : paraboloid • '7fs' : dome • '8hl' : cylinder • '10hl' : ellipsoid • '11fs' : elliptic cone • '12v' : cone + half ellipsoid • '13hlsl' : gomphonemoid • '14hl' : prism on elliptic base/elliptic cylinder • '15hl' : half elliptic prism • '17fs' : triangular dypyramid • 'ahx' : area x height ... other parameters. Details These geometric models applied in this function are based and adapted from microalgae models developed by Hillebrand et al. (1999) - ('.hl'), Sun and Liu (2003) - ('.sl') and Vadrucci, Cabrini and Basset (2007) - ('.v'), plus other adapted models ('.fs'). The models can be a variable in data if specified as model.The size data parameters should follow the specified measures determined by each model, where do ne is minor diameter, dt wo is major diameter and h is height. ’1hl’ V = (pi ∗ (do ne3 ))/6 ’2sl’ V = (pi ∗ (do ne3 ))/12 ’3hl’ V = (pi ∗ h ∗ (do ne2 ))/6 ’4hl’ V = (pi ∗ h ∗ (do ne2 ))/12 ’6fs’ V = (pi ∗ hx ∗ (do ne2 ))/8 where hx is a function of test height for trochamminids. ’7fs’ V = (pi ∗ h ∗ (4 ∗ (h2 ) + 3 ∗ (do ne2 )))/24 ’8hl’ V = (pi ∗ h ∗ (do ne2 ))/4 ’10hl’ V = (pi ∗ h ∗ do ne ∗ dt wo)/6 ’11fs’ V = (pi ∗ h ∗ do ne ∗ dt wo)/12 ’12v’ V = (pi ∗ h ∗ do ne ∗ dt wo)/12 ’13hlsl’ V = ((do ne ∗ dt wo)/4) ∗ (do ne + ((pi/4) − 1) ∗ dt wo) ∗ asin(h/(2 ∗ do ne)) ’14hl’ V = (pi ∗ h ∗ do ne ∗ dt wo)/4 ’15hl’ V = pi ∗ h ∗ do ne ∗ dt wo)/4 ’17fs’ V = ((length ∗ width)/2) ∗ h)/3 Value A ‘data.frame‘ or numeric object, consisting of calculated individual volume along with biovolume if the pco is informed. Author(s) <NAME> <<EMAIL>> References • <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (1999). Biovol- ume calculation for pelagic and benthic microalgae. Journal of Phycology, 35(2), 403–424. doi:10.1046/j.1529-8817.1999.3520403.x • <NAME>., & <NAME>. (2003). Geometric models for calculating cell biovolume and surface area for phytoplankton. Journal of Plankton Research, 25(11), 1331–1346. doi:10.1093/plankt/fbg096 • <NAME>., <NAME>., & <NAME>. (2007). Biovolume determination of phytoplank- ton guilds in transitional water ecosystems of Mediterranean Ecoregion. Transitional Waters Bulletin, 2, 83–102. doi:10.1285/i1825229Xv1n2p83 See Also measure bio.volume Examples #Ammonia size data data("ammonia") #calculate test volume volume.total(ammonia, model = "10hl")
@amv-hub/amv-vue-slick
npm
JavaScript
Slick for Vue.js === ATTENTION! === This package is no longer supported by its main contributor (@staskjs). If you would like to work on it, I will gladly add you as a collaborator. Please reach me on telegram @staskjs. Vue support --- Supports only Vue >= 2 Installation and usage --- See official documentation [here](http://kenwheeler.github.io/slick). ``` $ npm install vue-slick ``` ***NOTE***: `slick-carousel` official package appears to use `jquery` as a dependency in package.json, despite it would be more appropriate to use it as a peer dependency to avoid possibility of using multiple versions of jquery. Be aware of that. When using `webpack` you can solve this problem with aliases. ``` import Slick from 'vue-slick'; new Vue({ components: { Slick }, data() { return { slickOptions: { slidesToShow: 3, // Any other options that can be got from plugin documentation }, }; }, // All slick methods can be used too, example here methods: { next() { this.$refs.slick.next(); }, prev() { this.$refs.slick.prev(); }, reInit() { // Helpful if you have to deal with v-for to update dynamic lists this.$nextTick(() => { this.$refs.slick.reSlick(); }); }, // Events listeners handleAfterChange(event, slick, currentSlide) { console.log('handleAfterChange', event, slick, currentSlide); }, handleBeforeChange(event, slick, currentSlide, nextSlide) { console.log('handleBeforeChange', event, slick, currentSlide, nextSlide); }, handleBreakpoint(event, slick, breakpoint) { console.log('handleBreakpoint', event, slick, breakpoint); }, handleDestroy(event, slick) { console.log('handleDestroy', event, slick); }, handleEdge(event, slick, direction) { console.log('handleEdge', event, slick, direction); }, handleInit(event, slick) { console.log('handleInit', event, slick); }, handleReInit(event, slick) { console.log('handleReInit', event, slick); }, handleSetPosition(event, slick) { console.log('handleSetPosition', event, slick); }, handleSwipe(event, slick, direction) { console.log('handleSwipe', event, slick, direction); }, handleLazyLoaded(event, slick, image, imageSource) { console.log('handleLazyLoaded', event, slick, image, imageSource); }, handleLazeLoadError(event, slick, image, imageSource) { console.log('handleLazeLoadError', event, slick, image, imageSource); }, }, }); ``` ``` <slick ref="slick" :options="slickOptions" @afterChange="handleAfterChange" @beforeChange="handleBeforeChange" @breakpoint="handleBreakpoint" @destroy="handleDestroy" @edge="handleEdge" @init="handleInit" @reInit="handleReInit" @setPosition="handleSetPosition" @swipe="handleSwipe" @lazyLoaded="handleLazyLoaded" @lazyLoadError="handleLazeLoadError"> <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> </slick> ``` If you need, you can import slick styles too: ``` // MyCarrousel.vue import 'slick-carousel/slick/slick.css'; ``` Readme --- ### Keywords * slick * carousel * vue
arsenal
cran
R
Package ‘arsenal’ October 12, 2022 Title An Arsenal of 'R' Functions for Large-Scale Statistical Summaries Version 3.6.3 Date 2021-06-04 Description An Arsenal of 'R' functions for large-scale statistical summaries, which are streamlined to work within the latest reporting tools in 'R' and 'RStudio' and which use formulas and versatile summary statistics for summary tables and models. The primary functions include tableby(), a Table-1-like summary of multiple variable types 'by' the levels of one or more categorical variables; paired(), a Table-1-like summary of multiple variable types paired across two time points; modelsum(), which performs simple model fits on one or more endpoints for many variables (univariate or adjusted for covariates); freqlist(), a powerful frequency table across many categorical variables; comparedf(), a function for comparing data.frames; and write2(), a function to output tables to a document. Suggests broom (>= 0.7.1), magrittr, rmarkdown, testthat, xtable, pander, survival (>= 2.43-1), coin, pROC, MASS, splines, rpart, yaml, geepack Depends R (>= 3.4.0), stats (>= 3.4.0) Imports knitr (>= 1.29), utils (>= 3.4.0) URL https://github.com/mayoverse/arsenal, https://cran.r-project.org/package=arsenal, https://mayoverse.github.io/arsenal/ BugReports https://github.com/mayoverse/arsenal/issues VignetteBuilder knitr License GPL (>= 2) RoxygenNote 7.1.1 LazyData true Encoding UTF-8 NeedsCompilation no Author <NAME> [aut, cre], <NAME> [aut], <NAME> [aut], <NAME> [aut], <NAME> [aut], <NAME> [ctb], <NAME> [ctb], <NAME> [ctb], <NAME> [ctb], <NAME> [ctb], <NAME> [ctb], <NAME> [art] Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2021-06-04 21:50:02 UTC R topics documented: arsena... 3 arsenal-defunc... 4 arsenal-deprecate... 5 arsenal_tabl... 5 as.data.frame.freqlis... 6 as.data.frame.modelsu... 7 as.data.frame.tableb... 8 compared... 9 comparedf.contro... 10 comparedf.tolerance... 12 diff... 14 formuliz... 15 freq.contro... 17 freqlis... 18 freqlist.interna... 19 internal.function... 20 keep.label... 21 label... 22 mdy.Dat... 23 mockstud... 25 modelsu... 26 modelsum.contro... 28 modelsum.famil... 29 modelsum.interna... 30 NA.operation... 30 padjus... 31 paire... 32 paired.contro... 33 paired.interna... 34 selectal... 35 summary.compared... 36 summary.freqlis... 37 summary.modelsu... 38 summary.tableb... 40 tableb... 42 tableby.contro... 44 tableby.interna... 47 tableby.stat... 49 tableby.stats.interna... 52 write... 53 write2.interna... 56 write2specifi... 57 yam... 58 %nin... 59 arsenal An Arsenal of ’R’ Functions for Large-Scale Statistical Summaries Description An Arsenal of ’R’ functions for large-scale statistical summaries, which are streamlined to work within the latest reporting tools in ’R’ and ’RStudio’ and which use formulas and versatile summary statistics for summary tables and models. Details The package download, NEWS, and README are available on CRAN: https://cran.r-project. org/package=arsenal Functions Below are listed some of the most widely used functions available in arsenal: tableby: Summary statistics of a set of independent variables by a categorical variable. paired: Summary statistics of a set of independent variables paired across two timepoints. modelsum: Fit models over each of a set of independent variables with a response variable. freqlist: Approximate the output from SAS’s PROC FREQ procedure when using the /list option of the TABLE statement. comparedf: Compare two data.frames and report any differences between them, much like SAS’s PROC COMPARE procedure. write2word, write2html, write2pdf: Functions to output tables to a single Word, HTML, or PDF document. write2: Functions to output tables to a single document. (Also the S3 backbone behind the write2* functions.) keep.labels: Keep the 'label' attribute on an R object when subsetting. formulize: A shortcut to generate one-, two-, or many-sided formulas. mdy.Date and Date.mdy: Convert numeric dates for month, day, and year to Date object, and vice versa. is.Date: Test if an object is a date. %nin%: Test for "not in". allNA and includeNA: some useful functions for dealing with NAs. Data mockstudy: Mock study data for examples. Examples library(arsenal) arsenal-defunct Defunct functions in arsenal Description Details about defunct functions in arsenal Arguments x, y See comparedf. ... Other arguments. Details comparison.control was renamed to comparedf.control in version 3.0.0. compare.data.frame was renamed to comparedf in version 3.0.0. length.tableby was removed in version 2.0.0. includeNA.character and includeNA.numeric were removed in version 2.0.0 and replaced with a default method. rangeTime was removed in version 1.5.0. See Also arsenal-deprecated, comparedf arsenal-deprecated Deprecated functions in arsenal Description Details about deprecated functions in arsenal See Also arsenal-defunct arsenal_table arsenal tables with common structure Description arsenal tables with common structure Usage has_strata(x) ## S3 method for class 'arsenal_table' x[i, j, ...] ## S3 method for class 'arsenal_table' labels(object, ...) ## S3 replacement method for class 'arsenal_table' labels(x) <- value ## S3 method for class 'arsenal_table' print(x, ...) ## S3 method for class 'arsenal_table' merge(x, y, all = FALSE, all.x = all, all.y = all, ...) ## S3 method for class 'freqlist' merge(x, y, all = TRUE, ...) ## S3 method for class 'summary.arsenal_table' print( x, ..., format = if (!is.null(x$text) && x$text %in% c("html", "latex")) x$text else "markdown", escape = x$text %nin% c("html", "latex"), width = NULL, min.split = NULL ) Arguments x, y, object An object of class "arsenal_table" i, j A vector to index x with: either names of variables, a numeric vector, or a logical vector of appropriate length. i indexes the x-variables, and j indexes the by-variables. ... Other arguments (only used in print.summary.arsenal_table) value A list of new labels. all, all.x, all.y Logicals, denoting which terms to keep if not all are in common. format Passed to kable: the format for the table. The default here is "markdown". To use the default in kable, pass NULL. If x$text specifies LaTeX or HTML formatting, that format is used in the table. escape Passed to kable: should special characters be escaped when printed? width, min.split Passed to smart.split for formatting of the "term" column. See Also merge, labels as.data.frame.freqlist as.data.frame.freqlist Description Convert freqlist object to a data.frame. Usage ## S3 method for class 'freqlist' as.data.frame(x, ..., labelTranslations = NULL, list.ok = FALSE) Arguments x An object of class "freqlist". ... Arguments to pass to freq.control labelTranslations A named list (or vector) where the name is the label in the output to be replaced in the pretty rendering by the character string value for the named element of the list, e.g., list(age = "Age(Years)", meansd = "Mean(SD)"). list.ok If the object has multiple by-variables, is it okay to return a list of data.frames instead of a single data.frame? If FALSE but there are multiple by-variables, a warning is issued. Value A data.frame corresponding to the freqlist object. as.data.frame.modelsum as.data.frame.modelsum Description Coerce a modelsum object to a data.frame. Usage ## S3 method for class 'modelsum' as.data.frame(x, ..., labelTranslations = NULL, list.ok = FALSE) Arguments x A modelsum object. ... Arguments to pass to modelsum.control. labelTranslations A named list (or vector) where the name is the label in the output to be replaced in the pretty rendering by the character string value for the named element of the list, e.g., list(age = "Age(Years)", meansd = "Mean(SD)"). list.ok If the object has multiple by-variables, is it okay to return a list of data.frames instead of a single data.frame? If FALSE but there are multiple by-variables, a warning is issued. Value A data.frame. Author(s) <NAME>, based on code originally by <NAME> See Also modelsum, summary.modelsum as.data.frame.tableby as.data.frame.tableby Description Coerce a tableby object to a data.frame. Usage ## S3 method for class 'tableby' as.data.frame(x, ..., labelTranslations = NULL, list.ok = FALSE) Arguments x A tableby object. ... Arguments to pass to tableby.control. labelTranslations A named list (or vector) where the name is the label in the output to be replaced in the pretty rendering by the character string value for the named element of the list, e.g., list(age = "Age(Years)", meansd = "Mean(SD)"). list.ok If the object has multiple by-variables, is it okay to return a list of data.frames instead of a single data.frame? If FALSE but there are multiple by-variables, a warning is issued. Value A data.frame. Author(s) <NAME>, based on code originally by <NAME> See Also tableby, tableby comparedf Compare two data.frames and report differences Description Compare two data.frames and report any differences between them, much like SAS’s PROC COMPARE procedure. Usage comparedf(x, y, by = NULL, by.x = by, by.y = by, control = NULL, ...) ## S3 method for class 'comparedf' print(x, ...) Arguments x, y A data.frame to compare by, by.x, by.y Which variables are IDs to merge the two data.frames? If set to "row.names", merging will occur over the row.names. If set to NULL (default), merging will occur row-by-row. control A list of control parameters from comparedf.control. ... Other arguments, passed to comparedf.control when appropriate. Author(s) <NAME>, adapted from code from <NAME> See Also summary.comparedf, comparedf.control, diffs, n.diffs, n.diff.obs Examples df1 <- data.frame(id = paste0("person", 1:3), a = c("a", "b", "c"), b = c(1, 3, 4), c = c("f", "e", "d"), row.names = paste0("rn", 1:3), stringsAsFactors = FALSE) df2 <- data.frame(id = paste0("person", 3:1), a = c("c", "b", "a"), b = c(1, 3, 4), d = paste0("rn", 1:3), row.names = paste0("rn", c(1,3,2)), stringsAsFactors = FALSE) summary(comparedf(df1, df2)) summary(comparedf(df1, df2, by = "id")) summary(comparedf(df1, df2, by = "row.names")) comparedf.control Control settings for comparedf function Description Control tolerance definitions for the comparedf function. Usage comparedf.control( tol.logical = "none", tol.num = c("absolute", "percent", "pct"), tol.num.val = sqrt(.Machine$double.eps), int.as.num = FALSE, tol.char = c("none", "trim", "case", "both"), tol.factor = c("none", "levels", "labels"), factor.as.char = FALSE, tol.date = "absolute", tol.date.val = 0, tol.other = "none", tol.vars = "none", max.print.vars = NA, max.print.obs = NA, max.print.diffs.per.var = 10, max.print.diffs = 50, max.print.attrs = NA, ..., max.print.diff = 10 ) Arguments tol.logical, tol.num, tol.char, tol.factor, tol.date, tol.other A function or one of the shortcut character strings or a list thereof, denoting the tolerance function to use for a given data type. See "details", below. tol.num.val Numeric; maximum value of differences allowed in numerics (fed to the func- tion given in tol.num). int.as.num Logical; should integers be coerced to numeric before comparison? Default FALSE. factor.as.char Logical; should factors be coerced to character before comparison? Default FALSE. tol.date.val Numeric; maximum value of differences allowed in dates (fed to the function given in tol.date). tol.vars Either "none" (the default), denoting that variable names are to be matched as- is, a named vector manually specifying variable names to compare (where the names correspond to columns of x and the values correspond to columns of y), or a character vector denoting equivalence classes for characters in the variable names. See "details", below. max.print.vars Integer denoting maximum number of variables to report in the "variables not shared" and "variables not compared" output. NA will print all differences. max.print.obs Integer denoting maximum number of not-shared observations to report. NA will print all differences. max.print.diffs.per.var, max.print.diffs Integers denoting the maximum number of differences to report for each variable or overall. NA will print all differences for each variable or overall. max.print.attrs Integers denoting the maximum number of non-identical attributes to report.NA will print all differences. ... Other arguments (not in use at this time). max.print.diff Deprecated. Details The following character strings are accepted: • tol.logical = "none": compare logicals exactly as they are. • tol.num = "absolute": compare absolute differences in numerics. • tol.num = "percent", tol.num = "pct" compare percent differences in numerics. • tol.char = "none": compare character strings exactly as they are. • tol.char = "trim": left-justify and trim all trailing white space. • tol.char = "case": allow differences in upper/lower case. • tol.char = "both": combine "trim" and "case". • tol.factor = "none": match both character labels and numeric levels. • tol.factor = "levels": match only the numeric levels. • tol.factor = "labels": match only the labels. • tol.date = "absolute": compare absolute differences in dates. • tol.other = "none": expect objects of other classes to be exactly identical. A list with names mapped to x can be used to specify tolerances by variable. One unnamed element is supported as the default. tol.vars: If not set to "none" (the default) or a named vector, the tol.vars argument is a character vector denoting equivalence classes for the characters in the variable names. A single character in this vector means to replace that character with "". All other strings in this vector are split by character and replaced by the first character in the string. E.g., a character vector c("._", "aA", " ") would denote that the dot and underscore are equivalent (to be translated to a dot), that "a" and "A" are equivalent (to be translated to "a"), and that spaces should be removed. The special character string "case" in this vector is the same as specifying paste0(letters, LETTERS). Value A list containing the necessary parameters for the comparedf function. Author(s) <NAME> See Also comparedf, comparedf.tolerances, summary.comparedf Examples cntl <- comparedf.control( tol.num = "pct", # calculate percent differences tol.vars = c("case", # ignore case "._", # set all underscores to dots. "e") # remove all letter e's ) cntl <- comparedf.control(tol.char = list( "none", # the default x1 = "case", # be case-insensitive for the variable "x1" x2 = function(x, y) tol.NA(x, y, x != y | y == "NA") # a custom-defined tolerance )) comparedf.tolerances comparedf tolerances Description Internal functions defining tolerances for the comparedf.control function. To create your own tolerance definitions, see the vignette. Usage tol.NA(x, y, idx) tol.num.absolute(x, y, tol) tol.num.percent(x, y, tol) tol.num.pct(x, y, tol) tol.factor.none(x, y) tol.factor.levels(x, y) tol.factor.labels(x, y) tol.char.both(x, y) tol.char.case(x, y) tol.char.trim(x, y) tol.char.none(x, y) tol.date.absolute(x, y, tol) tol.logical.none(x, y) tol.other.none(x, y) Arguments x, y vectors of the appropriate lengths and types. idx A logical vector of appropriate length. tol A numeric tolerance Details tol.NA takes as differences between two vectors any elements which are NA in one but not the other, or which are non-NA in both and TRUE in idx. It is useful for handling NAs in custom tolerance functions. Value A logical vector of length equal to that of x and y, where TRUE denotes a difference between x and y, and FALSE denotes no difference between x and y. Author(s) <NAME> See Also comparedf.control, comparedf diffs Extract differences Description Extract differences (diffs()), number of differences (n.diffs()), or number of not-shared obser- vations (n.diff.obs()) from a comparedf object. Usage n.diff.obs(object, ...) ## S3 method for class 'comparedf' n.diff.obs(object, ...) ## S3 method for class 'summary.comparedf' n.diff.obs(object, ...) n.diffs(object, ...) ## S3 method for class 'comparedf' n.diffs(object, ...) ## S3 method for class 'summary.comparedf' n.diffs(object, ...) diffs(object, ...) ## S3 method for class 'comparedf' diffs( object, what = c("differences", "observations"), vars = NULL, ..., by.var = FALSE ) ## S3 method for class 'summary.comparedf' diffs( object, what = c("differences", "observations"), vars = NULL, ..., by.var = FALSE ) Arguments object An object of class comparedf or summary.comparedf. ... Other arguments (not in use at this time). what Should differences or the not-shared observations be returned? vars A character vector of variable names to subset the results to. by.var Logical: should the number of differences by variable be reported, or should all differences be reported (the default). Author(s) <NAME> See Also comparedf summary.comparedf formulize formulize Description A shortcut to generate one-, two-, or many-sided formulas from vectors of variable names. Usage formulize( y = "", x = "", ..., data = NULL, collapse = "+", collapse.y = collapse, escape = FALSE ) Arguments y, x, ... Character vectors, names, or calls to be collapsed (by "+") and put left-to-right in the formula. If data is supplied, these can also be numeric, denoting which column name to use. See examples. data An R object with non-null column names. collapse How should terms be collapsed? Default is addition. collapse.y How should the y-terms be collapsed? Default is addition. Also accepts the spe- cial string "list", which combines them into a multiple-left-hand-side formula, for use in other functions. escape A logical indicating whether character vectors should be coerced to names (that is, whether names with spaces should be surrounded with backticks or not) Author(s) <NAME> See Also reformulate Examples ## two-sided formula f1 <- formulize("y", c("x1", "x2", "x3")) ## one-sided formula f2 <- formulize(x = c("x1", "x2", "x3")) ## multi-sided formula f3 <- formulize("y", c("x1", "x2", "x3"), c("z1", "z2"), "w1") ## can use numerics for column names data(mockstudy) f4 <- formulize(y = 1, x = 2:4, data = mockstudy) ## mix and match f5 <- formulize(1, c("x1", "x2", "x3"), data = mockstudy) ## get an interaction f6 <- formulize("y", c("x1*x2", "x3")) ## get only interactions f7 <- formulize("y", c("x1", "x2", "x3"), collapse = "*") ## no intercept f8 <- formulize("y", "x1 - 1") f9 <- formulize("y", c("x1", "x2", "-1")) ## LHS as a list to use in arsenal functions f10 <- formulize(c("y1", "y2", "y3"), c("x", "z"), collapse.y = "list") ## use in an lm f11 <- formulize(2, 3:4, data = mockstudy) summary(lm(f11, data = mockstudy)) ## using non-syntactic names or calls (like reformulate example) f12 <- formulize(as.name("+-"), c("`P/E`", "`% Growth`")) f12 <- formulize("+-", c("P/E", "% Growth"), escape = TRUE) f <- Surv(ft, case) ~ a + b f13 <- formulize(f[[2]], f[[3]]) freq.control Control settings for freqlist function Description Control test and summary settings for the freqlist function. Usage freq.control( sparse = FALSE, single = FALSE, dupLabels = FALSE, digits.count = 0L, digits.pct = 2L, ..., digits = NULL ) Arguments sparse a logical value indicating whether to keep rows with counts of zero. The default is FALSE (drop zero-count rows). single logical, indicating whether to collapse results created using a strata variable into a single table for printing dupLabels logical: should labels which are the same as the row above be printed? The default (FALSE) more closely approximates PROC FREQ output from SAS, where a label carried down from the row above is left blank. digits.count Number of decimal places for count values. digits.pct Number of decimal places for percents. ... additional arguments. digits A deprecated argument Value A list with settings to be used within the freqlist function. Author(s) <NAME> See Also freqlist, summary.freqlist, freqlist.internal freqlist freqlist Description Approximate the output from SAS’s PROC FREQ procedure when using the /list option of the TABLE statement. Usage freqlist(object, ...) ## S3 method for class 'table' freqlist( object, na.options = c("include", "showexclude", "remove"), strata = NULL, labelTranslations = NULL, control = NULL, ... ) ## S3 method for class 'formula' freqlist( formula, data, subset, na.action, na.options = c("include", "showexclude", "remove"), strata = NULL, labelTranslations = NULL, control = NULL, addNA, exclude, drop.unused.levels, ... ) Arguments object An R object, usually of class "table" or class "xtabs" ... additional arguments. In the formula method, these are passed to the table method. These are also passed to freq.control na.options a character string indicating how to handling missing values: "include" (in- clude values with NAs in counts and percentages), "showexclude" (show NAs but exclude from cumulative counts and all percentages), "remove" (remove values with NAs); default is "include". strata (formerly groupBy) an optional character string specifying a variable(s) to use for grouping when calculating cumulative counts and percentages. summary.freqlist will also separate by grouping variable for printing. Note that this is different from modelsum and tableby, which take bare column names (and only one, at that!) labelTranslations an optional character string (or list) of labels to use for variable levels when summarizing. Names will be matched appropriately. control control parameters to handle optional settings within freqlist. See freq.control formula, data, subset, na.action, addNA, exclude, drop.unused.levels Arguments passed to xtabs. Value An object of class c("freqlist", "arsenal_table") Author(s) <NAME>, with revisions by <NAME> See Also arsenal_table, summary.freqlist, freq.control, freqlist.internal, table, xtabs Examples # load mockstudy data data(mockstudy) tab.ex <- table(mockstudy[c("arm", "sex", "mdquality.s")], useNA = "ifany") noby <- freqlist(tab.ex, na.options = "include") summary(noby) # show the top 6 rows' frequencies and percents head(summary(sort(noby, decreasing = TRUE)[c(1:4, 6)])) withby <- freqlist(tab.ex, strata = c("arm","sex"), na.options = "showexclude") summary(withby) freqlist.internal Helper functions for freqlist Description A set of helper functions for freqlist. Usage is.freqlist(x) is.summary.freqlist(x) ## S3 method for class 'summary.freqlist' head(x, n = 6L, ...) ## S3 method for class 'summary.freqlist' tail(x, n = 6L, ...) ## S3 method for class 'freqlist' sort(x, decreasing = FALSE, ...) Arguments x A freqlist object. n A single integer. See head or tail for more details ... Other arguments. decreasing Should the sort be increasing or decreasing? Details Note that sort() has to recalculate cumulative statistics. Note also that the reordering of rows will also affect which labels are duplicates; you may also want to consider using dupLabels=TRUE in freq.control(). See Also merge.freqlist, arsenal_table, sort, freqlist, summary.freqlist, freq.control, internal.functions Internal Functions Description Internal Functions Usage smart.split(string, width = Inf, min.split = -Inf) replace2(x, list, values) Arguments string A character vector width Either Inf or NULL to specify no splitting, or a positive integer giving the largest allowed string length. min.split Either -Inf or NULL to specify no lower bound on the string length, or a positive integer giving the minimum string length. x vector list an index vector values replacement values Value For smart.split, a list of the same length as string, with each element being the "intelligently" split string. For replace2, a vector with the proper values replaced. See Also replace keep.labels Keep Labels Description Keep the 'label' attribute on an R object when subsetting. loosen.labels allows the 'label' attribute to be lost again. Usage keep.labels(x, ...) ## S3 method for class 'data.frame' keep.labels(x, ...) ## Default S3 method: keep.labels(x, ...) ## S3 method for class 'keep_labels' x[...] ## S3 replacement method for class 'keep_labels' x[i] <- value loosen.labels(x, ...) ## S3 method for class 'data.frame' loosen.labels(x, ...) ## Default S3 method: loosen.labels(x, ...) Arguments x An R object ... Other arguments (not in use at this time). i, value See [<-. Value A copy of x with a "keep_labels" class appended on or removed. Note that for the data.frame method, only classes on the columns are changed; the data.frame won’t have an extra class ap- pended. This is different from previous versions of arsenal. Author(s) <NAME> See Also labels labels Labels Description Assign and extract the 'label' attribute on an R object. set_labels is the same as labels(x) <- value but returns x for use in a pipe chain. set_attr is the same as attr(x, which) <- value but returns x for use in a pipe chain. Usage ## S3 method for class 'data.frame' labels(object, ...) ## S3 method for class 'keep_labels' labels(object, ...) labels(x) <- value ## S3 replacement method for class 'keep_labels' labels(x) <- value ## Default S3 replacement method: labels(x) <- value ## S3 replacement method for class 'data.frame' labels(x) <- value set_labels(x, value) set_attr(x, which, value) Arguments ... Other arguments (not in use at this time). x, object An R object. value A vector or list containing labels to assign. Labels are assigned based on names, if available; otherwise, they’re assigned in order. Can pass NULL to remove all labels. which See attr<- Details The data.frame methods put labels on and extract labels from the columns of object. Value The labels of object, or object with new labels. Author(s) <NAME> See Also keep.labels mdy.Date Convert numeric dates to Date object, and vice versa Description Convert numeric dates for month, day, and year to Date object, and vice versa. Usage mdy.Date(month, day, year, yearcut = 120) Date.mdy(date) is.Date(x) Arguments month integer, month (1-12). day integer, day of the month (1-31, depending on the month). year integer, either 2- or 4-digit year. If two-digit number, will add 1900 onto it, depending on range. yearcut cutoff for method to know if to convert to 4-digit year. date A date value. x An object. Details Test if an object is a date. More work may need to be done with yearcut and 2-digit years. Best to give a full 4-digit year. Value mdy.Date returns a Date object, and Date.mdy returns a list with integer values for month, day, and year. is.Date returns a single logical value. See Also Date, DateTimeClasses Examples mdy.Date(9, 2, 2013) tmp <- mdy.Date(9, 2, 2013) Date.mdy(tmp) is.Date(tmp) mockstudy Mock study data for examples Description Mock clinical study data for examples to test data manipulation and statistical functions. The func- tion muck_up_mockstudy() is used in examples for comparedf. Usage mockstudy muck_up_mockstudy() Format A data frame with 1499 observations on the following 15 variables: case a numeric identifier-patient ID age age in years arm treatment arm divided into 3 groups, character string sex a factor with levels Male Female race self-reported race/ethnicity, character string fu.time survival or censoring time in years fu.stat censoring status; 1=censor, 2=death ps integer, ECOG performance score hgb numeric, hemoglobin count bmi numeric, body mass index, kg/m^2 alk.phos numeric, alkaline phosphatase ast numeric, aspartate transaminase mdquality.s integer, LASA QOL 0=Clinically Deficient, 1=Not Clinically Deficient age.ord an ordered factor split of age, with levels 10-19 < 20-29 < 30-39 < 40-49 < 50-59 < 60-69 < 70-79 < 80-89 An object of class data.frame with 1499 rows and 14 columns. Examples data(mockstudy) str(mockstudy) modelsum Fit models over each of a set of independent variables with a response variable Description Fit and summarize models for each independent (x) variable with a response variable (y), with options to adjust by variables for each model. Usage modelsum( formula, family = "gaussian", data, adjust = NULL, na.action = NULL, subset = NULL, weights = NULL, id, strata, control = NULL, ... ) Arguments formula an object of class formula; a symbolic description of the variables to be mod- eled. See "Details" for more information. family similar mechanism to glm, where the model to be fit is driven by the family. Op- tions include: binomial, gaussian, survival, poisson, negbin, clog, and ordinal. These can be passed as a string, as a function, or as a list resulting from a call to one of the functions. See modelsum.family for details on survival, ordinal, negbin, and clog families. data an optional data.frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which modelsum is called. adjust an object of class formula or a list of formulas, listing variables to adjust by in all models. Specify as a one-sided formula, like: ~Age+ Sex. If a list, the names are used for the summary function. Unadjusted models can be specified as ~ 1 or as a list: list(Unadjusted = NULL). na.action a function which indicates what should happen when the data contain NAs. The default (NULL) is to use the defaults of lm, glm, or coxph, depending on the family specifications. subset an optional vector specifying a subset of observations (rows of data) to be used in the results. If strata is missing, this works as vector of logicals or an index; otherwise, it should be a logical vector. weights an optional vector specifying the weights to apply to each data observation (rows of data) id A vector to identify clusters. Only used for relrisk at this time. strata a vector of strata to separate model summaries by an additional group. Note that for families like "clog", the "usual" strata term to indicate subject groupings should be given in the adjust argument. control control parameters to handle optional settings within modelsum. Arguments for modelsum.control can be passed to modelsum via the ... argument, but if a control object and ... arguments are both supplied, the latter are used. See modelsum.control for other details. ... additional arguments to be passed to internal modelsum functions. Value An object with class c("modelsum", "arsenal_table") Author(s) <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>inzen, adapted from SAS Macro of the same name See Also arsenal_table, modelsum.control, summary.modelsum, modelsum.internal, formulize Examples data(mockstudy) tab1 <- modelsum(bmi ~ sex + age, data = mockstudy) summary(tab1, text = TRUE) tab2 <- modelsum(alk.phos ~ arm + ps + hgb, adjust = ~ age + sex, family = "gaussian", data = mockstudy) summary(tab2, text = TRUE) summary(tab2, show.intercept = FALSE, text = TRUE) tab2.df <- as.data.frame(tab2) tab2.df[1:5,] modelsum.control Control settings for modelsum function Description Control test and summary settings for modelsum function. Usage modelsum.control( digits = 3L, digits.ratio = 3L, digits.p = 3L, format.p = TRUE, show.adjust = TRUE, show.intercept = TRUE, conf.level = 0.95, ordinal.stats = c("OR", "CI.lower.OR", "CI.upper.OR", "p.value", "Nmiss"), binomial.stats = c("OR", "CI.lower.OR", "CI.upper.OR", "p.value", "concordance", "Nmiss"), gaussian.stats = c("estimate", "std.error", "p.value", "adj.r.squared", "Nmiss"), poisson.stats = c("RR", "CI.lower.RR", "CI.upper.RR", "p.value", "Nmiss"), negbin.stats = c("RR", "CI.lower.RR", "CI.upper.RR", "p.value", "Nmiss"), relrisk.stats = c("RR", "CI.lower.RR", "CI.upper.RR", "p.value", "Nmiss"), clog.stats = c("OR", "CI.lower.OR", "CI.upper.OR", "p.value", "concordance", "Nmiss"), survival.stats = c("HR", "CI.lower.HR", "CI.upper.HR", "p.value", "concordance", "Nmiss"), stat.labels = list(), ... ) Arguments digits Numeric, denoting the number of digits after the decimal point for beta coeffi- cients and standard errors. digits.ratio Numeric, denoting the number of digits after the decimal point for ratios, e.g. OR, RR, HR. digits.p Numeric, denoting the number of digits for p-values. See "Details", below. format.p Logical, denoting whether to format p-values. See "Details", below. show.adjust Logical, denoting whether to show adjustment terms. show.intercept Logical, denoting whether to show intercept terms. conf.level Numeric, giving the confidence level. ordinal.stats, binomial.stats, survival.stats, gaussian.stats, poisson.stats, negbin.stats, clog.stats Character vectors denoting which stats to show for the various model types. stat.labels A named list of labels for all the stats used above. ... Other arguments (not in use at this time). Details If format.p is FALSE, digits.p denotes the number of significant digits shown. The p-values will be in exponential notation if necessary. If format.p is TRUE, digits.p will determine the number of digits after the decimal point to show. If the p-value is less than the resulting number of places, it will be formatted to show so. Value A list with settings to be used within the modelsum function. See Also modelsum, summary.modelsum, modelsum.internal modelsum.family Family functions for modelsum Description A set of family functions for modelsum. Usage survival() ordinal(method = c("logistic", "probit", "loglog", "cloglog", "cauchit")) negbin(link = c("log", "identity", "sqrt")) clog() relrisk(link = "log") Arguments method See MASS::polr. link See MASS::glm.nb. Value A list, in particular with element family. See Also family, coxph, polr modelsum.internal Helper functions for modelsum Description A set of helper functions for modelsum. Usage is.modelsum(x) is.summary.modelsum(x) na.modelsum(object, ...) Arguments x A modelsum object. object A data.frame resulting from evaluating a modelsum formula. ... Other arguments, or a vector of indices for extracting. Value na.modelsum returns a subsetted version of object (with attributes). See Also arsenal_table NA.operations Some functions to handle NAs Description allNA tests if all elements are NA, and includeNA sets the NAs in a character vector or factor to an explicit label. Usage allNA(x) includeNA(x, label, ...) ## S3 method for class 'factor' includeNA(x, label = "(Missing)", first = FALSE, ...) ## Default S3 method: includeNA(x, label = "(Missing)", ...) Arguments x An object label A character string denoting the label to set NAs to. ... Other arguments (not in use at this time). first Logical; should the new label be the first level? Author(s) <NAME> See Also is.na, anyNA padjust Adjust P-values for Multiple Comparisons Description Adjust P-values for Multiple Comparisons Usage padjust(p, method, n, ...) ## Default S3 method: padjust(p, method, n, ...) ## S3 method for class 'tableby' padjust(p, method, n, suffix = " (adjusted for multiple comparisons)", ...) ## S3 method for class 'summary.tableby' padjust(p, method, n, suffix = " (adjusted for multiple comparisons)", ...) Arguments p An object. method correction method. Can be abbreviated. n number of comparisons, must be at least length(p); only set this (to non- default) when you know what you are doing! ... Other arguments. suffix A suffix to add to the footnotes indicating that the tests were adjusted. See Also p.adjust, modpval.tableby, tests.tableby paired Summary Statistics of a Set of Independent Variables Paired Across Two Timepoints Description Summarize one or more variables (x) by a paired time variable (y). Variables on the right side of the formula, i.e. independent variables, are summarized by the two time points on the left of the formula. Optionally, an appropriate test is performed to test the distribution of the independent variables across the time points. Usage paired( formula, data, id, na.action, subset = NULL, strata, control = NULL, ... ) Arguments formula an object of class formula of the form time ~ var1 + .... See "Details" for more information. data an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which the function is called. id The vector giving IDs to match up data for the same subject across two time- points. na.action a function which indicates what should happen when the data contain NAs. The default is na.paired("in.both"). See na.paired for more details subset an optional vector specifying a subset of observations (rows of data) to be used in the results. Works as vector of logicals or an index. strata a vector of strata to separate summaries by an additional group. control control parameters to handle optional settings within paired. Two aspects of paired are controlled with these: test options of RHS variables and x variable summaries. Arguments for paired.control can be passed to paired via the ... argument, but if a control object and ... arguments are both supplied, the latter are used. See paired.control for more details. ... additional arguments to be passed to internal paired functions or paired.control. Details Do note that this function piggybacks off of tableby quite heavily, so there is no summary.paired function (for instance). These tests are accepted: • paired.t: a paired t-test. • mcnemar: McNemar’s test. • signed.rank: a signed rank test. • sign.test: a sign test. • notest: no test is performed. Value An object with class c("paired", "tableby", "arsenal_table") Author(s) <NAME>, <NAME>, <NAME>, and <NAME> See Also arsenal_table, paired.control, tableby, formulize, selectall paired.control Control settings for paired function Description Control test and summary settings for the paired function. Usage paired.control( diff = TRUE, numeric.test = "paired.t", cat.test = "mcnemar", ordered.test = "signed.rank", date.test = "paired.t", mcnemar.correct = TRUE, signed.rank.exact = NULL, signed.rank.correct = TRUE, ... ) Arguments diff logical, telling paired whether to calculate a column of differences between time points. numeric.test name of test for numeric RHS variables in paired: paired.t, signed.rank, sign.test. cat.test name of test for categorical variables: mcnemar ordered.test name of test for ordered variables: signed.rank, sign.test date.test name of test to perform for date variables: paired.t, signed.rank, sign.test mcnemar.correct, signed.rank.exact, signed.rank.correct Options for statistical tests. See wilcox.test and mcnemar.test for details. ... Arguments passed to tableby.control Details Note that (with the exception of total) all arguments to tableby.control are accepted in this function (in fact, this function passes everything through to tableby.control). However, there are different defaults for the statistical tests (shown here). For details on the other arguments, please see the help page for tableby.control. Value A list with settings to be used within the paired function. Author(s) <NAME> See Also paired, tableby, tableby.control, summary.tableby paired.internal Helper functions for paired Description A set of helper functions for paired. Usage na.paired(missings = c("in.both", "fill", "asis")) Arguments missings A character string denoting which action to take. See "Details", below. Details All methods subset out any NA time points or IDs. "in.both" (the default) subsets the data.frame to individuals who appear at both time points. "fill" adds explicit missings for the people missing second time points. "asis" does nothing to add or remove missings. Value na.paired returns a function used to subset data.frames in paired. See Also tableby.internal selectall Make a column for "select all" input Description Make a column for "select all" input Usage selectall(...) as.selectall(x) ## S3 method for class 'selectall' as.matrix(x, ...) ## S3 method for class 'selectall' x[i, j, drop = FALSE] ## S3 method for class 'selectall' is.na(x) is.selectall(x) Arguments ... Named arguments of the same length. These should be logical, numeric (0/1) or a factor with two levels. x An object of class "selectall" i, j, drop Arguments to ‘[.matrix‘ See Also tableby, paired Examples d <- data.frame(grp = rep(c("A", "B"), each = 5)) d$s <- selectall( `Option 1` = c(rep(1, 4), rep(0, 6)), `Option 2` = c(0, 1, 0, 0, 0, 1, 1, 1, 0, 0), `Option 3` = 1, `Option 4` = 0 ) summary(tableby(grp ~ s, data = d), text = TRUE) summary.comparedf The summary method for a comparedf object Description Print a more detailed output of the comparedf object. Usage ## S3 method for class 'comparedf' summary(object, ..., show.attrs = FALSE) ## S3 method for class 'summary.comparedf' print(x, ..., format = "pandoc") Arguments object An object of class "comparedf", as made by the comparedf S3 method. ... Other arguments passed to comparedf.control. In print, these are passed to kable. show.attrs Logical, denoting whether to show the actual attributes which are different. For (e.g.) factors with lots of levels, this can make the tables quite wide, so this feature is FALSE by default. x An object returned by the summary.comparedf function. format Passed to kable: the format for the table. The default here is "pandoc". To use the default in kable, pass NULL. Value An object of class "summary.comparedf" is returned. See Also comparedf, comparedf.control summary.freqlist summary.freqlist Description Summarize the freqlist object. Usage ## S3 method for class 'freqlist' summary(object, ..., labelTranslations = NULL, title = NULL) ## S3 method for class 'summary.freqlist' as.data.frame(x, ..., list.ok = FALSE) Arguments object an object of class freqlist ... For summary.freqlist, these are passed to as.data.frame.freqlist (and hence to freq.control). For the print method, these are additional arguments passed to the kable function. labelTranslations A named list (or vector) where the name is the label in the output to be replaced in the pretty rendering by the character string value for the named element of the list, e.g., list(age = "Age(Years)", meansd = "Mean(SD)"). title Title/caption for the table, defaulting to NULL (no title). Passed to kable. Can be length > 1 if the more than one table is being printed. x An object of class summary.freqlist. list.ok If the object has multiple by-variables, is it okay to return a list of data.frames instead of a single data.frame? If FALSE but there are multiple by-variables, a warning is issued. Value An object of class "summary.freqlist" (invisibly for the print method). Author(s) <NAME>, with major revisions by <NAME> See Also freqlist, table, xtabs, kable, freq.control, freqlist.internal Examples # load mockstudy data data(mockstudy) tab.ex <- table(mockstudy[c("arm", "sex", "mdquality.s")], useNA = "ifany") noby <- freqlist(tab.ex, na.options = "include") summary(noby) withby <- freqlist(tab.ex, strata = c("arm","sex"), na.options = "showexclude") summary(withby) summary(withby, dupLabels = TRUE) summary.modelsum Summarize a modelsum object. Description Format the information in object as a table using Pandoc coding or plain text, and cat it to stdout. Usage ## S3 method for class 'modelsum' summary( object, ..., labelTranslations = NULL, text = FALSE, title = NULL, term.name = "", adjustment.names = FALSE ) ## S3 method for class 'summary.modelsum' as.data.frame( x, ..., text = x$text, term.name = x$term.name, adjustment.names = x$adjustment.names, width = NULL, min.split = NULL, list.ok = FALSE ) Arguments object A modelsum object. ... For summary.modelsum, other arguments passed to as.data.frame.modelsum. For as.data.frame.summary.modelsum, "width" and "min.split" are passed to smart.split. For printing the summary object, these are passed to both as.data.frame.summary.modelsum and kable. labelTranslations A named list (or vector) where the name is the label in the output to be replaced in the pretty rendering by the character string value for the named element of the list, e.g., list(age = "Age(Years)", meansd = "Mean(SD)"). text An argument denoting how to print the summary to the screen. Default is FALSE (show markdown output). TRUE and NULL output a text-only version, with the latter avoiding all formatting. "html" uses the HTML tag <strong> instead of the markdown formatting, and "latex" uses the LaTeX command \textbf. title Title/caption for the table, defaulting to NULL (no title). Passed to kable. Can be length > 1 if the more than one table is being printed. term.name A character vector denoting the column name for the "terms" column. It should be the same length as the number of tables or less (it will get recycled if needed). The special value TRUE will use the y-variable’s label for each table. adjustment.names Logical, denoting whether the names of the adjustment models should be printed. x An object of class "summary.modelsum". width Passed to smart.split for formatting of the "term" column. min.split Passed to smart.split for formatting of the "term" column. list.ok If the object has multiple by-variables, is it okay to return a list of data.frames instead of a single data.frame? If FALSE but there are multiple by-variables, a warning is issued. Value An object of class "summary.modelsum" Author(s) <NAME>, based on code originally by <NAME> See Also modelsum, as.data.frame.modelsum summary.tableby The summary method for a tableby object Description The summary method for a tableby object, which is a pretty rendering of a tableby object into a publication-quality results table in R Markdown, and can render well in text-only. Usage ## S3 method for class 'tableby' summary( object, ..., labelTranslations = NULL, text = FALSE, title = NULL, pfootnote = FALSE, term.name = "" ) ## S3 method for class 'summary.tableby' as.data.frame( x, ..., text = x$text, pfootnote = x$pfootnote, term.name = x$term.name, width = NULL, min.split = NULL, list.ok = FALSE ) Arguments object An object of class "tableby", made by the tableby function. ... For summary.tableby, other arguments passed to as.data.frame.tableby. For printing the summary object, these are passed to both as.data.frame.summary.tableby and kable. labelTranslations A named list (or vector) where the name is the label in the output to be replaced in the pretty rendering by the character string value for the named element of the list, e.g., list(age = "Age(Years)", meansd = "Mean(SD)"). text An argument denoting how to print the summary to the screen. Default is FALSE (show markdown output). TRUE and NULL output a text-only version, with the latter avoiding all formatting. "html" uses the HTML tag <strong> instead of the markdown formatting, and "latex" uses the LaTeX command \textbf. title Title/caption for the table, defaulting to NULL (no title). Passed to kable. Can be length > 1 if the more than one table is being printed. pfootnote Logical, denoting whether to put footnotes describing the tests used to gener- ate the p-values. Alternatively, "html" to surround the outputted footnotes with <li>. term.name A character vector denoting the column name for the "terms" column. It should be the same length as the number of tables or less (it will get recycled if needed). The special value TRUE will use the y-variable’s label for each table. x An object of class "summary.tableby". width Passed to smart.split for formatting of the "term" column. min.split Passed to smart.split for formatting of the "term" column. list.ok If the object has multiple by-variables, is it okay to return a list of data.frames instead of a single data.frame? If FALSE but there are multiple by-variables, a warning is issued. Value An object of class summary.tableby Author(s) <NAME>, based on code by <NAME>, <NAME>, <NAME>, adapted from SAS Macros written by <NAME> and <NAME> See Also tableby.control, tableby Examples set.seed(100) ## make 3+ categories for response nsubj <- 90 mdat <- data.frame(Response=sample(c(1,2,3),nsubj, replace=TRUE), Sex=sample(c("Male", "Female"), nsubj,replace=TRUE), Age=round(rnorm(nsubj,mean=40, sd=5)), HtIn=round(rnorm(nsubj,mean=65,sd=5))) ## allow default summaries on RHS variables out <- tableby(Response ~ Sex + Age + HtIn, data=mdat) summary(out, text=TRUE) labels(out) labels(out) <- c(Age="Age (years)", HtIn="Height (inches)") summary(out, stats.labels=c(meansd="Mean-SD", q1q3 = "Q1-Q3"), text=TRUE) tableby Summary Statistics of a Set of Independent Variables by a Categorical Variable Description Summarize one or more variables (x) by a categorical variable (y). Variables on the right side of the formula, i.e. independent variables, are summarized by the levels of a categorical variable on the left of the formula. Optionally, an appropriate test is performed to test the distribution of the independent variables across the levels of the categorical variable. Usage tableby( formula, data, na.action, subset = NULL, weights = NULL, strata, control = NULL, ... ) Arguments formula an object of class formula; a symbolic description of the variables to be sum- marized by the group, or categorical variable, of interest. See "Details" for more information. To only view overall summary statistics, a one-sided formula can be used. data an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which the function is called. na.action a function which indicates what should happen when the data contain NAs. The default is na.tableby(TRUE) if there is a by-variable, and na.tableby(FALSE) if there is not. This schema thus includes observations with NAs in x variables, but removes those with NA in the categorical group variable and strata (if used). subset an optional vector specifying a subset of observations (rows of data) to be used in the results. Works as vector of logicals or an index. weights a vector of weights. Using weights will disable statistical tests. strata a vector of strata to separate summaries by an additional group. control control parameters to handle optional settings within tableby. Two aspects of tableby are controlled with these: test options of RHS variables across levels of the categorical grouping variable, and x variable summaries within the grouping variable. Arguments for tableby.control can be passed to tableby via the ... argument, but if a control object and ... arguments are both supplied, the latter are used. See tableby.control for more details. ... additional arguments to be passed to internal tableby functions or tableby.control. Details The group variable (if any) is categorical, which could be an integer, character, factor, or ordered factor. tableby makes a simple summary of the counts within the k-levels of the independent variables on the right side of the formula. Note that unused levels are dropped. The data argument allows data.frames with label attributes for the columns, and those labels will be used in the summary methods for the tableby class. The independent variables are a mixture of types: categorical (discrete), numeric (continuous), and time to event (survival). These variables are split by the levels of the group variable (if any), then summarized within those levels, specific to the variable type. A statistical test is performed to compare the distribution of the independent variables across the levels of the grouping variable. The tests differ by the independent variable type, but can be specified explicitly in the formula statement or in the control function. These tests are accepted: • anova: analysis of variance test; the default test for continuous variables. When LHS variable has two levels, equivalent to two-sample t-test. • kwt: Kruskal-Wallis Rank Test, optional test for continuous variables. When LHS variable has two levels, equivalent to Wilcoxon test. • wt: An explicit Wilcoxon test. • medtest: A median test. • chisq: chi-square goodness of fit test for equal counts of a categorical variable across cate- gories; the default for categorical or factor variables • fe: Fisher’s exact test for categorical variables • trend: trend test for equal distribution of an ordered variable across a categorical variable; the default for ordered factor variables • logrank: log-rank, the default for time-to-event variables • notest: no test is performed. To perform a mixture of asymptotic and rank-based tests on two different continuous variables, an example formula is: formula = group ~ anova(age) + kwt(height). The test settings in tableby.control apply to all independent variables of a given type. The summary statistics reported for each independent variable within the group variable can be set in tableby.control. Finally, multiple by-variables can be set using list(). See the examples for more details. Value An object with class c("tableby", "arsenal_table") Author(s) <NAME>, <NAME>, <NAME>, and <NAME>, adapted from SAS Macros written by <NAME> and <NAME> See Also arsenal_table, anova, chisq.test, tableby.control, summary.tableby, tableby.internal, formulize, selectall Examples data(mockstudy) tab1 <- tableby(arm ~ sex + age, data=mockstudy) summary(tab1, text=TRUE) mylabels <- list(sex = "SEX", age ="Age, yrs") summary(tab1, labelTranslations = mylabels, text=TRUE) tab3 <- tableby(arm ~ sex + age, data=mockstudy, test=FALSE, total=FALSE, numeric.stats=c("median","q1q3"), numeric.test="kwt") summary(tab3, text=TRUE) # multiple LHS summary(tableby(list(arm, sex) ~ age, data = mockstudy, strata = ps), text = TRUE) tab.test <- tableby(arm ~ kwt(age) + anova(bmi) + kwt(ast), data=mockstudy) tests(tab.test) tableby.control Control settings for tableby function Description Control test and summary settings for the tableby function. Usage tableby.control( test = TRUE, total = TRUE, total.pos = c("after", "before"), test.pname = NULL, numeric.simplify = FALSE, cat.simplify = FALSE, cat.droplevels = FALSE, ordered.simplify = FALSE, date.simplify = FALSE, numeric.test = "anova", cat.test = "chisq", ordered.test = "trend", surv.test = "logrank", date.test = "kwt", selectall.test = "notest", test.always = FALSE, numeric.stats = c("Nmiss", "meansd", "range"), cat.stats = c("Nmiss", "countpct"), ordered.stats = c("Nmiss", "countpct"), surv.stats = c("Nmiss", "Nevents", "medSurv"), date.stats = c("Nmiss", "median", "range"), selectall.stats = c("Nmiss", "countpct"), stats.labels = list(), digits = 3L, digits.count = 0L, digits.pct = 1L, digits.p = 3L, format.p = TRUE, digits.n = 0L, conf.level = 0.95, wilcox.correct = FALSE, wilcox.exact = NULL, chisq.correct = FALSE, simulate.p.value = FALSE, B = 2000, times = 1:5, ... ) Arguments test logical, telling tableby whether to perform tests of x variables across levels of the group variable. total logical, telling tableby whether to calculate a column of totals across group variable. total.pos One of "before" or "after", denoting where to put the total column relative to the by-variable columns. test.pname character string denoting the p-value column name in summary.tableby. Mod- ifiable also with modpval.tableby. numeric.simplify, date.simplify logical, tell tableby whether to condense numeric/date output to a single line. NOTE: this only simplifies to one line if there is only one statistic reported, such as meansd. In particular, if Nmiss is specified and there are missings, then the output is not simplified. cat.simplify, ordered.simplify logical, tell tableby whether to remove the first level of the categorical/ordinal variable if binary. If TRUE, only the summary stats of the second level are re- ported (unless there’s only one level, in which case it’s reported). If "label", the second level’s label is additionally appended to the label. NOTE: this only simplifies to one line if there is only one statistic reported, such as countpct. In particular, if Nmiss is specified and there are missings, then the output is not simplified. cat.droplevels Should levels be dropped for categorical variables? If set to true, p-values will not be displayed unless test.always = TRUE as well. numeric.test name of test for numeric RHS variables in tableby: anova, kwt (Kruskal- Wallis), medtest (median test). If no LHS variable exists, then a mean is required for a univariate test. cat.test name of test for categorical variables: chisq, fe (Fisher’s Exact) ordered.test name of test for ordered variables: trend surv.test name of test for survival variables: logrank date.test name of test for date variables: kwt selectall.test name of test for date variables: notest test.always Should the test be performed even if one or more by-group has 0 observations? Relevant for kwt and anova. numeric.stats, cat.stats, ordered.stats, surv.stats, date.stats, selectall.stats summary statistics to include for the respective class of RHS variables within the levels of the group LHS variable. stats.labels A named list of labels for all the statistics function names, where the function name is the named element in the list and the value that goes with it is a string containing the formal name that will be printed in all printed renderings of the output, e.g., list(countpct="Count (Pct)"). Any unnamed elements will be ignored. Passing NULL will disable labels. digits Number of decimal places for numeric values. digits.count Number of decimal places for count values. digits.pct Number of decimal places for percents. digits.p Number of decimal places for p-values. format.p Logical, denoting whether to format p-values. See "Details", below. digits.n Number of decimal places for N’s in the header. Set it to NA to suppress the N’s. conf.level Numeric, denoting what confidence level to use for confidence intervals. (See, e.g., binomCI) wilcox.correct, wilcox.exact See wilcox.test chisq.correct logical, correction factor for chisq.test simulate.p.value logical, simulate p-value for categorical tests (fe and chisq) B number of simulations to perform for simulation-based p-value times A vector of times to use for survival summaries. ... additional arguments. Details All tests can be turned off by setting test to FALSE. Otherwise, test are set to default settings in this list, or set explicitly in the formula of tableby. If format.p is FALSE, digits.p denotes the number of significant digits shown. The p-values will be in exponential notation if necessary. If format.p is TRUE, digits.p will determine the number of digits after the decimal point to show. If the p-value is less than the resulting number of places, it will be formatted to show so. Options for statistics are described more thoroughly in the vignette and are listed in tableby.stats Value A list with settings to be used within the tableby function. Author(s) <NAME>, <NAME>, <NAME>, <NAME>, adapted from SAS Macros written by <NAME> and <NAME> See Also anova, chisq.test, tableby, summary.tableby, tableby.stats. Examples set.seed(100) ## make 3+ categories for Response mdat <- data.frame(Response=c(0,0,0,0,0,1,1,1,1,1), Sex=sample(c("Male", "Female"), 10,replace=TRUE), Age=round(rnorm(10,mean=40, sd=5)), HtIn=round(rnorm(10,mean=65,sd=5))) ## allow default summaries in RHS variables, and pass control args to ## main function, to be picked up with ... when calling tableby.control outResp <- tableby(Response ~ Sex + Age + HtIn, data=mdat, total=FALSE, test=TRUE) outCtl <- tableby(Response ~ Sex + Age + HtIn, data=mdat, control=tableby.control(total=TRUE, cat.simplify=TRUE, cat.stats=c("Nmiss","countpct"),digits=1)) summary(outResp, text=TRUE) summary(outCtl, text=TRUE) tableby.internal Helper functions for tableby Description A set of helper functions for tableby. Usage is.tableby(x) is.summary.tableby(x) modpval.tableby(x, pdata, use.pname = FALSE) tests(x) ## S3 method for class 'tableby' tests(x) na.tableby(lhs = TRUE) ## S3 method for class 'tableby' xtfrm(x) ## S3 method for class 'tableby' sort(x, ...) ## S3 method for class 'tableby' Ops(e1, e2) ## S3 method for class 'tableby' head(x, n = 6L, ...) ## S3 method for class 'tableby' tail(x, n = 6L, ...) Arguments x A tableby object. pdata A named data.frame where the first column is the by-variable names, the (op- tional) second is the strata value, the next is the x variable names, the next is p-values (or some test stat), and the (optional) next column is the method name. use.pname Logical, denoting whether the column name in pdata corresponding to the p- values should be used in the output of the object. lhs Logical, denoting whether to remove NAs from the first column of the data.frame (the "left-hand side") ... Other arguments. e1, e2 tableby objects, or numbers to compare them to. n A single integer. See head or tail for more details Details Logical comparisons are implemented for Ops.tableby. Value na.tableby returns a subsetted version of object (with attributes). Ops.tableby returns a logical vector. xtfrm.tableby returns the p-values (which are ordered by order to sort). See Also arsenal_table, sort, head, tail, tableby, summary.tableby, tableby.control tableby.stats tableby Summary Statistics Functions Description A collection of functions that will report summary statistics. To create a custom function, consider using a function with all three arguments and .... See the tableby vignette for an example. Usage arsenal_sum(x, na.rm = TRUE, ...) arsenal_min(x, na.rm = TRUE, ...) arsenal_max(x, na.rm = TRUE, ...) arsenal_mean(x, na.rm = TRUE, weights = NULL, ...) arsenal_sd(x, na.rm = TRUE, weights = NULL, ...) arsenal_var(x, na.rm = TRUE, weights = NULL, ...) meansd(x, na.rm = TRUE, weights = NULL, ...) meanse(x, na.rm = TRUE, weights = NULL, ...) meanCI(x, na.rm = TRUE, weights = NULL, conf.level = 0.95, ...) medianrange(x, na.rm = TRUE, weights = NULL, ...) medianmad(x, na.rm = TRUE, weights = NULL, ...) arsenal_median(x, na.rm = TRUE, weights = NULL, ...) arsenal_range(x, na.rm = TRUE, ...) gmean(x, na.rm = TRUE, weights = NULL, ...) gsd(x, na.rm = TRUE, weights = NULL, ...) gmeansd(x, na.rm = TRUE, weights = NULL, ...) gmeanCI(x, na.rm = TRUE, weights = NULL, conf.level = 0.95, ...) Nsigntest(x, na.rm = TRUE, weights = NULL, ...) Nevents(x, na.rm = TRUE, weights = NULL, ...) medSurv(x, na.rm = TRUE, weights = NULL, ...) NeventsSurv(x, na.rm = TRUE, weights = NULL, times = 1:5, ...) NriskSurv(x, na.rm = TRUE, weights = NULL, times = 1:5, ...) Nrisk(x, na.rm = TRUE, weights = NULL, times = 1:5, ...) medTime(x, na.rm = TRUE, weights = NULL, ...) q1q3(x, na.rm = TRUE, weights = NULL, ...) medianq1q3(x, na.rm = TRUE, weights = NULL, ...) iqr(x, na.rm = TRUE, weights = NULL, ...) Nmiss(x, weights = NULL, ...) Nmiss2(x, weights = NULL, ...) N(x, na.rm = TRUE, weights = NULL, ...) Npct( x, levels = NULL, by, by.levels = sort(unique(by)), na.rm = TRUE, weights = NULL, ..., totallab = "Total" ) count(x, levels = NULL, na.rm = TRUE, weights = NULL, ...) countpct(x, levels = NULL, na.rm = TRUE, weights = NULL, ...) countN(x, levels = NULL, na.rm = TRUE, weights = NULL, ...) countrowpct( x, levels = NULL, by, by.levels = sort(unique(by)), na.rm = TRUE, weights = NULL, ..., totallab = "Total" ) countcellpct( x, levels = NULL, by, by.levels = sort(unique(by)), na.rm = TRUE, weights = NULL, ..., totallab = "Total" ) binomCI(x, levels = NULL, na.rm = TRUE, weights = NULL, conf.level = 0.95, ...) rowbinomCI( x, levels = NULL, by, by.levels = sort(unique(by)), na.rm = TRUE, weights = NULL, conf.level = 0.95, ..., totallab = "Total" ) Arguments x Usually a vector. na.rm Should NAs be removed? ... Other arguments. weights A vector of weights. conf.level Numeric, denoting what confidence level to use for confidence intervals. times A vector of times to use for survival summaries. levels A vector of levels that character xs should have. by a vector of the by-values. by.levels a vector of the levels of by. totallab What to call the total "column" Details Not all these functions are exported, in order to avoid conflicting NAMESPACES. Note also that the functions prefixed with "arsenal_" can be referred to by their short names (e.g., "min" for "arsenal_min"). Value Usually a vector of the appropriate numbers. See Also includeNA, tableby.control tableby.stats.internal Internal tableby functions Description A collection of functions that may help users create custom functions that are formatted correctly. Usage as.tbstat( x, oldClass = NULL, sep = NULL, parens = NULL, sep2 = NULL, pct = NULL, ... ) as.countpct( x, ..., which.count = setdiff(seq_along(x), which.pct), which.pct = 0L ) as.tbstat_multirow(x) Arguments x Usually a vector. oldClass class(es) to add to the resulting object. sep The separator between x[1] and the rest of the vector. parens A length-2 vector denoting parentheses to use around x[2] and x[3]. sep2 The separator between x[2] and x[3]. pct For statistics of length 2, the symbol to use after the second one. (It’s called "pct" because usually the first statistic is never a percent, but the second often is.) ... arguments to pass to as.tbstat. which.count Which statistics are counts? The default is everything except the things that are percents. which.pct Which statistics are percents? The default is 0, indicating that none are. Details The vignette has an example on how to use these. as.tbstat defines a tableby statistic with its appropriate formatting. as.countpct adds another class to as.tbstat to use different "digits" arguments (i.e., digits.count or digits.pct). See tableby.control. as.tbstat_multirow marks an object (usually a list) for multiple-row printing. write2 write2 Description Functions to output tables to a single document. (Also the S3 backbone behind the write2* func- tions.) Usage write2(object, file, ..., output_format) ## S3 method for class 'arsenal_table' write2(object, file, ..., output_format = NULL) ## S3 method for class 'summary.arsenal_table' write2(object, file, ..., output_format = NULL) ## S3 method for class 'comparedf' write2(object, file, ..., output_format = NULL) ## S3 method for class 'summary.comparedf' write2(object, file, ..., output_format = NULL) ## S3 method for class 'verbatim' write2(object, file, ..., output_format = NULL) ## S3 method for class 'yaml' write2(object, file, ..., output_format = NULL) ## S3 method for class 'code.chunk' write2(object, file, ..., output_format = NULL) ## S3 method for class 'knitr_kable' write2(object, file, ..., output_format = NULL) ## S3 method for class 'xtable' write2(object, file, ..., output_format = NULL) ## S3 method for class 'character' write2(object, file, ..., output_format = NULL) ## S3 method for class 'list' write2( object, file, ..., append. = FALSE, render. = TRUE, keep.rmd = !render., output_format = NULL ) ## Default S3 method: write2( object, file, FUN = NULL, ..., append. = FALSE, render. = TRUE, keep.rmd = !render., output_format = NULL ) Arguments object An object. file A single character string denoting the filename for the output document. ... Additional arguments to be passed to FUN, rmarkdown::render, etc. One pop- ular option is to use quiet = TRUE to suppress the command line output. output_format One of the following: 1. An output format object, e.g. rmarkdown::html_document(...). 2. A character string denoting such a format function, e.g. "html_document". In this case, the "..." are NOT passed. 3. The format function itself, e.g. rmarkdown::html_document. In this case, the "..." arguments are passed. 4. One of "html", "pdf", and "word", shortcuts implemented here. In this case, the "..." arguments are passed. 5. NULL, in which the output is HTML by default. See rmarkdown::render for details. append. Logical, denoting whether (if a temporary .Rmd file of the same name already exists) to append on. Used mostly for write2.list. render. Logical, denoting whether to render the temporary .Rmd file. Used mostly for write2.list. keep.rmd Logical, denoting whether to keep the intermediate .Rmd file. Used mostly for write2.list. FUN The summary-like or print-like function to use to generate the markdown con- tent. Can be passed as a function or a character string. It’s expected that FUN(object, ...) looks "good" when put directly in a .Rmd file. Details write2 is an S3 method. The default prints the object (using print) inside a section surrounded by three back ticks. See verbatim for details. There are methods implemented for tableby, modelsum, and freqlist, all of which use the summary function. There are also methods compatible with kable, xtable, and pander_return. Another option is to coerce an object using verbatim() to print out the results monospaced (as if they were in the terminal). To output multiple tables into a document, simply make a list of them and call the same function as before. Finally, to output code chunks to be evaluated, use code.chunk. For more information, see vignette("write2"). Value object is returned invisibly, and file is written. Author(s) <NAME>, adapted from code from <NAME> See Also write2word, write2pdf, write2html, render, word_document, html_document, pdf_document, rtf_document, md_document, odt_document Examples ## Not run: data(mockstudy) # tableby example tab1 <- tableby(arm ~ sex + age, data=mockstudy) write2(tab1, tempfile(fileext = ".rtf"), toc = TRUE, # passed to rmarkdown::rtf_document, though in this case it's not practical quiet = TRUE, # passed to rmarkdown::render title = "My cool new title", # passed to summary.tableby output_format = rmarkdown::rtf_document) write2html(list( "# Header 1", # a header code.chunk(a <- 1, b <- 2, a + b), # a code chunk verbatim("hi there") # verbatim output ), tempfile(fileext = ".html"), quite = TRUE) ## End(Not run) write2.internal Helper functions for write2 Description Helper functions for write2. Usage verbatim(...) code.chunk(..., chunk.opts = "r") Arguments ... For verbatim, objects to print out monospaced (as if in the terminal). For code.chunk, either expressions or single character strings to paste into the code chunk. chunk.opts A single character string giving the code chunk options. Make sure to specify the engine! Details The "verbatim" class is to tell write2 to print the object inside a section surrounded by three back ticks. The results will look like it would in the terminal (monospaced). code.chunk() is to write explicit code chunks in the .Rmd file; it captures the call and writes it to the file, to execute upon knitting. write2specific write2word, write2html, write2pdf Description Functions to output tables to a single Word, HTML, or PDF document. Usage write2word(object, file, ...) write2pdf(object, file, ...) write2html(object, file, ...) Arguments object An object. file A single character string denoting the filename for the output document. ... Additional arguments to be passed to FUN, rmarkdown::render, etc. One pop- ular option is to use quiet = TRUE to suppress the command line output. Details To generate the appropriate file type, the write2* functions use one of rmarkdown::word_document, rmarkdown::html_document, and rmarkdown::pdf_document to get the job done. "..." argu- ments are passed to these functions, too. Value object is returned invisibly, and file is written. Author(s) <NAME>, adapted from code from <NAME> See Also write2 Examples ## Not run: data(mockstudy) # tableby example tab1 <- tableby(arm ~ sex + age, data=mockstudy) write2html(tab1, "~/trash.html") # freqlist example tab.ex <- table(mockstudy[, c("arm", "sex", "mdquality.s")], useNA = "ifany") noby <- freqlist(tab.ex, na.options = "include") write2pdf(noby, "~/trash2.pdf") # A more complicated example write2word(tab1, "~/trash.doc", keep.md = TRUE, reference_docx = mystyles.docx, # passed to rmarkdown::word_document quiet = TRUE, # passed to rmarkdown::render title = "My cool new title") # passed to summary.tableby ## End(Not run) yaml Include a YAML header in write2 Description Include a YAML header in write2 Usage yaml(...) ## S3 method for class 'yaml' print(x, ...) ## S3 method for class 'yaml' c(..., recursive = FALSE) is.yaml(x) Arguments ... For yaml(), arguments to be bundled into a list and passed to as.yaml. For print.yaml(), extra arguments. For c.yaml(), "yaml" objects to be concate- nated. x An object of class "yaml". recursive Not in use at this time. Value A text string of class "yaml". Author(s) <NAME>, adapted from an idea by <NAME> See Also as.yaml, write2 Examples x <- yaml(title = "My cool title", author = "<NAME>") x y <- yaml("header-includes" = list("\\usepackage[labelformat=empty]{caption}")) y c(x, y) %nin% Not in Description The not-in operator for R. Usage x %nin% table Arguments x vector or NULL: the values to be matched. table vector or NULL: the values to be matched against. Value The negation of %in%. Author(s) <NAME> See Also %in% Examples 1 %nin% 2:10 c("a", "b") %nin% c("a", "c", "d")
r0man_alumbra.js
hex
Erlang
alumbra.js.ast === --- #### alumbra->jsclj/s ``` (alumbra->js document) ``` Transform the Alumbra GraphQL `document` AST to JavaScript. ``` Transform the Alumbra GraphQL `document` AST to JavaScript. ``` [source](https://github.com/r0man/alumbra.js/blob/0.1.0/src/alumbra/js/ast.cljc#L5)[raw docstring](#) --- #### js->alumbraclj/s ``` (js->alumbra document) ``` Transform the JavaScript GraphQL `document` AST to Alumbra. ``` Transform the JavaScript GraphQL `document` AST to Alumbra. ``` [source](https://github.com/r0man/alumbra.js/blob/0.1.0/src/alumbra/js/ast.cljc#L10)[raw docstring](#) alumbra.js.ast.alumbra === Transform a GraphQL AST from Alumbra to JS. ``` Transform a GraphQL AST from Alumbra to JS. ``` [raw docstring](#) --- #### alumbra->jsclj/s ``` (alumbra->js {:keys [alumbra/enum-definitions alumbra/directive-definitions alumbra/enum-extensions alumbra/fragments alumbra/input-extensions alumbra/input-type-definitions alumbra/interface-definitions alumbra/interface-extensions alumbra/metadata alumbra/operations alumbra/scalar-definitions alumbra/scalar-extensions alumbra/schema-definitions alumbra/schema-extensions alumbra/type-definitions alumbra/type-extensions alumbra/union-definitions alumbra/union-extensions]}) ``` Transform a GraphQL document from Alumbra to JS. ``` Transform a GraphQL document from Alumbra to JS. ``` [source](https://github.com/r0man/alumbra.js/blob/0.1.0/src/alumbra/js/ast/alumbra.cljc#L487)[raw docstring](#) --- #### type-class->jsclj/smultimethod Transform a GraphQL type from Alumbra to JS. ``` Transform a GraphQL type from Alumbra to JS. ``` [source](https://github.com/r0man/alumbra.js/blob/0.1.0/src/alumbra/js/ast/alumbra.cljc#L321)[raw docstring](#) --- #### value->jsclj/smultimethod Transform a GraphQL value from Alumbra to JS. ``` Transform a GraphQL value from Alumbra to JS. ``` [source](https://github.com/r0man/alumbra.js/blob/0.1.0/src/alumbra/js/ast/alumbra.cljc#L19)[raw docstring](#) alumbra.js.ast.javascript === Transform a GraphQL AST from JS to Alumbra. ``` Transform a GraphQL AST from JS to Alumbra. ``` [raw docstring](#) --- #### js->alumbraclj/s ``` (js->alumbra {:keys [kind definitions loc]}) ``` Transform a GraphQL document from JS to Alumbra. ``` Transform a GraphQL document from JS to Alumbra. ``` [source](https://github.com/r0man/alumbra.js/blob/0.1.0/src/alumbra/js/ast/javascript.cljc#L437)[raw docstring](#) --- #### type->alumbraclj/smultimethod Transform a GraphQL type from JS to Alumbra. ``` Transform a GraphQL type from JS to Alumbra. ``` [source](https://github.com/r0man/alumbra.js/blob/0.1.0/src/alumbra/js/ast/javascript.cljc#L25)[raw docstring](#) --- #### value->alumbraclj/smultimethod Transform a GraphQL value from JS to Alumbra. ``` Transform a GraphQL value from JS to Alumbra. ``` [source](https://github.com/r0man/alumbra.js/blob/0.1.0/src/alumbra/js/ast/javascript.cljc#L53)[raw docstring](#)
anesrake
cran
R
Package ‘anesrake’ October 12, 2022 Version 0.80 Date 2018-04-27 Title ANES Raking Implementation Author <NAME> [aut, cre] Maintainer <NAME> <<EMAIL>> Depends Hmisc, weights Description Provides a comprehensive system for selecting variables and weighting data to match the specifications of the American National Election Studies. The package includes methods for identifying discrepant variables, raking data, and assessing the effects of the raking algorithm. It also allows automated re-raking if target variables fall outside identified bounds and allows greater user specification than other available raking algorithms. A variety of simple weighted statistics that were previously in this package (version .55 and earlier) have been moved to the package 'weights.' License GPL (>= 2) LazyLoad yes NeedsCompilation no Repository CRAN Date/Publication 2018-04-28 09:23:18 UTC R topics documented: anes0... 2 anesrak... 2 anesrakefinde... 6 discre... 8 generaldesigneffec... 9 rakelis... 9 weightasses... 11 anes04 Demographic Data From 2004 American National Election Studies (ANES) Description A dataset containing demographic data from the 2004 American National Election Studies. The data include 5 variables: "female" (A Logical Variable Indicating Sex), "age" (Numerically Coded, Ranging From 18 to a Topcode of 90), "educats" (5 Education Categories corresponding to 1-Less than A High School Degree, 2-High School Gradutate, 3-Some College, 4-College Graduate, 5-Post College Education), "racecats" (6 Racial Categories), and "married" (A Logical Variable Indicating the Respondent’s Marital Status, with one point of missing data). Dataset is designed show how production of survey weights works in practice. Usage data(anes04) Format The format is: chr "anes04" Source http://www.electionstudies.org anesrake Function to perform full ANES variable selection and weighting. Description anesrake takes a list of variables and target values and determines how they should be weighted to match the procedures outlined in DeBell and Krosnick, 2009. It then performs raking to develop weights for the variables selected such that they match the targets provided. Usage anesrake(inputter, dataframe, caseid, weightvec = NULL, cap = 5, verbose = FALSE, maxit = 1000, type = "pctlim", pctlim = 5, nlim = 5, filter = 1, choosemethod = "total", iterate = TRUE, convcrit = 0.01, force1=TRUE, center.baseweights=TRUE) Arguments inputter The inputter object should contain a list of all target values for the raking procedure. Each list element in inputter should be a vector corresponding to the weighting targets for a single variable. Hence, the vector enumerating the weighting targets for a variable with 2 levels should be of length 2, while a vector enumerating the weighting targets for a variable with 5 levels should be of length 5. List elements in inputter should be named according to the variable that they will match in the corresponding dataset. Hence, a list element enumerating the proportion of the sample that should be of each gender should be labeled "female" if the variable in dataframe is also titled "female." inputter elements must be vectors and can be of class numeric, or factor and must match the class of the corresponding variable in dataframe. Logical vari- ables in dataframe can be matched to a numeric vector of length 2 and ordered with the TRUE target as the first element and the FALSE target as the second el- ement. Targets for factors must be labeled to match every level present in the dataframe (e.g. a variable with 2 age groups "under40" and "over40" should have elements named "under40" and "over40" respectively). anesrake attempts to conform any unrecognized types of vectors to class(numeric). Weighting targets can be entered either as an N to be reached or as a percent for any given variable. Targets can be either proportions (ideal) or the number of individuals in the population in each target category (N). Totals of greater than 1.5 for any given list element are treated as Ns, while values of less than 1.5 are treated as percentages. dataframe The dataframe command identifies a data.frame object of the data to be weighted. The data.frame must contain all of the variables that will be used in the weighting process and those variables must have the same names as are present in the inputter list element. caseid The caseid command identifies a unique case identifier for each individual in the dataset. If filters are to be used, the resulting list of weights will be a different length from the overall dataframe. caseid is included in the output so that weights can be matched to the dataset of relevance. caseid must be of a length matching the number of cases in dataframe. weightvec weightvec is an optional input if some kind of base weights, stratification cor- rection, or other sampling probability of note that should be accounted for before weighting is conducted. If defined, weightvec must be of a length equivalent to the number of cases in the dataframe. If undefined, weightvec will be auto- matically seeded with a vector of 1s. cap cap defines the maximum weight to be used. cap can be defined by the user with the command cap=x, where x is any value above 1 at which the algorithm will cap weights. If cap is set below 1, the function will return an error. If cap is set between 1 and 1.5, the function will return a warning that the low cap may substantially increase the amount of time required for weighting. In the absence of a user-defined cap, the algorithm defaults to a starting value of 5 in line with DeBell and Krosnick, 2009. For no cap, cap simply needs to be set to an arbitrarily high number. (Note: Capping using the cap command caps at each iteration.) verbose Users interested in seeing the progress of the algorithm can set verbose to equal TRUE. The algorithm will then inform the user of the progress of each raking and capping iteration. maxit Users can set a maximum number of iterations for the function should it fail to converge using maxit=X, where X is the maximum number of iterations. The default is set to 1000. type type identifies which manner of variable identification should be used to select weighting variables. Five options are available: type=c("nolim", "pctlim", "nlim", "nmin", "nmax"). If type="nolim", all variables specified in inputter will be included in the weighting procedure. If type="pctlim" (DEFAULT), the variable selection algorithm will assess which variables have distributions that deviate from their targets by more than the amount specified by the pctlim command using the method choosemethod. If type="nlim", the variable se- lection algorithm will use the number of varibles specified by nlim, choosing the most discrepant variables as identified by the choosemethod command. If type="nmin", the variable selection algorithm will use at least nlim variables, but will include more if additional variables are off by more than pctmin (all identified using choosemethod). If type="nmax", the variable selection algo- rithm will use no more than nlim variables, but will only use that many vari- ables if at least that many are off by more than pctlim (all identified using choosemethod). pctlim pctlim is the discrepancy limit for selection. Variable selection will only select variables that are discrepant by more than the amount specified. pctlim can be specified either in percentage points (5 is 5 percent) or as a decimal (.05 is 5 percent). The algorithm assumes that a decimal is being used if pctlim<1. Hence researchers interested in a discrepancy limit of half a percent would need to use pctlim=.005. nlim nlim is the number of variables to be chosen via the variable selection method chosen in choosemethod. filter filter is a vector of 1 for cases to be included in weighting and 0 for cases that should not be included. The filter vector must have the same number of cases as the dataframe. In the absence of a user-defined filter, the algorithm defaults to a starting value of 1 (inclusion) for all individuals. choosemethod choosemethod is the method for choosing most discrepant variables. Six op- tions are available: choosemethod=c("total", "max", "average", "totalsquared", "maxsquared", "averagesquared"). If choosemethod="total", variable choice is determined by the sum of the differences between actual and target values for each prospective weighting variable. If choosemethod="max", variable choice is determined by the largest individual difference between actual and target val- ues for each prospective weighting variable. If choosemethod="average", vari- able choice is determined by the mean of the differences between actual and tar- get values for each prospective weighting variable. If choosemethod="totalsquared", variable choice is determined by the sum of the squared differences between ac- tual and target values for each prospective weighting variable. If choosemethod="maxsquared", variable choice is determined by the largest squared difference between actual and target values for each prospective weighting variable (note that this is identi- cal to choosemethod="max" if the selection type is nlim). If choosemethod="averagesquared", variable choice is determined by the mean of the squared differences between actual and target values for each prospective weighting variable. iterate iterate is a logical variable for how raking should proceed if type=c("pctlim", "nmin", "nmax") conditions. If iterate=TRUE, anesrake will check whether any variables that were not used in raking deviate from their targets by more than pctlim percent. When this is the case, raking will be rerun using the raked weights as seeds (weightvec) with additional varibles that meet this qualifica- tion after raking included as well. For the type="nmax" condition, this will only occur if nlim has not been met. convcrit convcrit is the criterion for convergence. The raking algorithm is determined to have converged when the most recent iteration represents less than a convcrit percentage improvement over the prior iteration. force1 force1 ensures that the categories of each raking variable sum to 1. To do so, the target in inputter for each variable is divided by the sum of the targets for that category. center.baseweights center.baseweights forces the initial baseweight to mean to 1 if true (the default setting). Value A list object of anesrake has the following elements: weightvec Vector of weights From raking algorithm type Type of variable selection used (identical to specified type) caseid Case IDs for final weights – helpful for matching weightvec to cases if a filter is used varsused List of variables selected for weighting choosemethod Method for choosing variables for weighting (identical to specified choosemethod) converge Notes whether full convergence was achieved, algorithm failed to converge be- cause convergence was not possible, or maximum iterations were reached nonconvergence Measure of remaining discrepancy from benchmarks if convergence was not achieved targets inputter from above, a list of the targets used for weighting dataframe Copy of the original dataframe used for weighting (filter variable applied if specified) iterations Number of iterations required for convergence (or non-convergence) of final model iterate Copy of iterate from above Author(s) <NAME>, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com). References DeBell, M. and <NAME>. (2009). Computing Weights for American National Election Study Survey Data, ANES Technical Report Series, No. nes012427. Available from: ftp://ftp.electionstudies.org/ftp/nes/bibliograp Examples data("anes04") anes04$caseid <- 1:length(anes04$age) anes04$agecats <- cut(anes04$age, c(0, 25,35,45,55,65,99)) levels(anes04$agecats) <- c("age1824", "age2534", "age3544", "age4554", "age5564", "age6599") marriedtarget <- c(.4, .6) agetarg <- c(.10, .15, .17, .23, .22, .13) names(agetarg) <- c("age1824", "age2534", "age3544", "age4554", "age5564", "age6599") targets <- list(marriedtarget, agetarg) names(targets) <- c("married", "agecats") outsave <- anesrake(targets, anes04, caseid=anes04$caseid, verbose=TRUE) caseweights <- data.frame(cases=outsave$caseid, weights=outsave$weightvec) summary(caseweights) summary(outsave) anesrakefinder Function to determine what variables should be used for weighting. Description anesrake takes a list of variables and target values and determines which variables should be used for weighting in accordance with <NAME> Krosnick, 2009. Used as part of anesrake. Usage anesrakefinder(inputter, dataframe, weightvec = NULL, choosemethod = "total") Arguments inputter The inputter object should contain a list of all target values for the raking procedure. Each list element in inputter should be a vector corresponding to the weighting targets for a single variable. Hence, the vector enumerating the weighting targets for a variable with 2 levels should be of length 2, while a vector enumerating the weighting targets for a variable with 5 levels should be of length 5. List elements in inputter should be named according to the variable that they will match in the corresponding dataset. Hence, a list element enumerating the proportion of the sample that should be of each gender should be labeled "female" if the variable in dataframe is also titled "female." inputter elements must be vectors and can be of class numeric, or factor and must match the class of the corresponding variable in dataframe. Logical vari- ables in dataframe can be matched to a numeric vector of length 2 and ordered with the TRUE target as the first element and the FALSE target as the second el- ement. Targets for factors must be labeled to match every level present in the dataframe (e.g. a variable with 2 age groups "under40" and "over40" should have elements named "under40" and "over40" respectively). anesrake attempts to conform any unrecognized types of vectors to class(numeric). Weighting targets can be entered either as an N to be reached or as a percent for any given variable. Targets can be either proportions (ideal) or the number of individuals in the population in each target category (N). Totals of greater than 1.5 for any given list element are treated as Ns, while values of less than 1.5 are treated as percentages. dataframe The dataframe command identifies a data.frame object of the data to be weighted. The data.frame must contain all of the variables that will be used in the weighting process and those variables must have the same names as are present in the inputter list element. weightvec weightvec is an optional input if some kind of base weights, stratification cor- rection, or other sampling probability of note that should be accounted for before weighting is conducted. If defined, weightvec must be of a length equivalent to the number of cases in the dataframe. If undefined, weightvec will be auto- matically seeded with a vector of 1s. choosemethod choosemethod is the method for choosing most discrepant variables. Six op- tions are available: choosemethod=c("total", "max", "average", "totalsquared", "maxsquared", "averagesquared"). If choosemethod="total", variable choice is determined by the sum of the differences between actual and target values for each prospective weighting variable. If choosemethod="max", variable choice is determined by the largest individual difference between actual and target val- ues for each prospective weighting variable. If choosemethod="average", vari- able choice is determined by the mean of the differences between actual and tar- get values for each prospective weighting variable. If choosemethod="totalsquared", variable choice is determined by the sum of the squared differences between ac- tual and target values for each prospective weighting variable. If choosemethod="maxsquared", variable choice is determined by the largest squared difference between actual and target values for each prospective weighting variable (note that this is identi- cal to choosemethod="max" if the selection type is nlim). If choosemethod="averagesquared", variable choice is determined by the mean of the squared differences between actual and target values for each prospective weighting variable. Value Returns a vector of variable names and discrepancies via the method chosen in choosemethod. Author(s) <NAME>, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com). discrep Function to determine the discrepancy for each level of a variable from targets. Description Finds the discrepancy between the proportion of data in each level of a weighted vector and a set of targets for each level of that same vector. Used as part of anesrake. Usage discrep(datavec, targetvec, weightvec) Arguments datavec Vector of values for a particular variable. targetvec Vector of targets with a single item per level of that variable. weightvec Weighting vector to be applied to datavec. Value Vector of discrepancies at each level. Author(s) <NAME>, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com). generaldesigneffect Calculates a general design effect given weights for a dataset. Description Calculates a general design effect given weights for a dataset. Usage generaldesigneffect(weightvec) Arguments weightvec Vector of weights. rakelist Function to perform full ANES weighting on selected variables. Description rakelist takes a list of variables and target values weights a dataset with those variables to match the targets via raking. It is the primary workhorse command of anesrake. Usage rakelist(inputter, dataframe, caseid, weightvec = NULL, cap = 999999, verbose = FALSE, maxit = 1000, convcrit = 0.01) Arguments inputter The inputter object should contain a list of all target values for the raking procedure. Each list element in inputter should be a vector corresponding to the weighting targets for a single variable. Hence, the vector enumerating the weighting targets for a variable with 2 levels should be of length 2, while a vector enumerating the weighting targets for a variable with 5 levels should be of length 5. List elements in inputter should be named according to the variable that they will match in the corresponding dataset. Hence, a list element enumerating the proportion of the sample that should be of each gender should be labeled "female" if the variable in dataframe is also titled "female." inputter elements must be vectors and can be of class numeric, or factor and must match the class of the corresponding variable in dataframe. Logical vari- ables in dataframe can be matched to a numeric vector of length 2 and ordered with the TRUE target as the first element and the FALSE target as the second el- ement. Targets for factors must be labeled to match every level present in the dataframe (e.g. a variable with 2 age groups "under40" and "over40" should have elements named "under40" and "over40" respectively). anesrake attempts to conform any unrecognized types of vectors to class(numeric). Weighting targets can be entered either as an N to be reached or as a percent for any given variable. Targets can be either proportions (ideal) or the number of individuals in the population in each target category (N). Totals of greater than 1.5 for any given list element are treated as Ns, while values of less than 1.5 are treated as percentages. dataframe The dataframe command identifies a data.frame object of the data to be weighted. The data.frame must contain all of the variables that will be used in the weighting process and those variables must have the same names as are present in the inputter list element. caseid The caseid command identifies a unique case identifier for each individual in the dataset. If filters are to be used, the resulting list of weights will be a different length from the overall dataframe. caseid is included in the output so that weights can be matched to the dataset of relevance. caseid must be of a length matching the number of cases in dataframe. weightvec weightvec is an optional input if some kind of base weights, stratification cor- rection, or other sampling probability of note that should be accounted for before weighting is conducted. If defined, weightvec must be of a length equivalent to the number of cases in the dataframe. If undefined, weightvec will be auto- matically seeded with a vector of 1s. cap cap defines the maximum weight to be used. cap can be defined by the user with the command cap=x, where x is any value above 1 at which the algorithm will cap weights. If cap is set below 1, the function will return an error. If cap is set between 1 and 1.5, the function will return a warning that the low cap may substantially increase the amount of time required for weighting. In the absence of a user-defined cap, the algorithm defaults to a starting value of 5 in line with <NAME> Krosnick, 2009. For no cap, cap simply needs to be set to an arbitrarily high number. (Note: Capping using the cap command caps at each iteration.) verbose Users interested in seeing the progress of the algorithm can set verbose to equal TRUE. The algorithm will then inform the user of the progress of each raking and capping iteration. maxit Users can set a maximum number of iterations for the function should it fail to converge using maxit=X, where X is the maximum number of iterations. The default is set to 1000. convcrit convcrit is the criterion for convergence. The raking algorithm is determined to have converged when the most recent iteration represents less than a convcrit percentage improvement over the prior iteration. Value A list object of rakelist has the following elements: weightvec Vector of weights From raking algorithm caseid Case IDs for final weights – helpful for matching weightvec to cases if a filter is used iterations Number of iterations required for convergence (or non-convergence) of final model nonconvergence Measure of remaining discrepancy from benchmarks if convergence was not achieved converge Notes whether full convergence was achieved, algorithm failed to converge be- cause convergence was not possible, or maximum iterations were reached varsused List of variables selected for weighting targets inputter from above, a list of the targets used for weighting dataframe Copy of the original dataframe used for weighting (filter variable applied if specified) Author(s) <NAME>, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com). weightassess Assessment of Weighting Description Shows weighted data on specified variables compared to targets and baseweights. Usage weightassess(inputter, dataframe, weightvec, prevec = NULL) Arguments inputter The inputter object should contain a list of all target values for the raking procedure. Each list element in inputter should be a vector corresponding to the weighting targets for a single variable. Hence, the vector enumerating the weighting targets for a variable with 2 levels should be of length 2, while a vector enumerating the weighting targets for a variable with 5 levels should be of length 5. List elements in inputter should be named according to the variable that they will match in the corresponding dataset. Hence, a list element enumerating the proportion of the sample that should be of each gender should be labeled "female" if the variable in dataframe is also titled "female." inputter elements must be vectors and can be of class numeric, or factor and must match the class of the corresponding variable in dataframe. Logical vari- ables in dataframe can be matched to a numeric vector of length 2 and ordered with the TRUE target as the first element and the FALSE target as the second el- ement. Targets for factors must be labeled to match every level present in the dataframe (e.g. a variable with 2 age groups "under40" and "over40" should have elements named "under40" and "over40" respectively). anesrake attempts to conform any unrecognized types of vectors to class(numeric). Weighting targets can be entered either as an N to be reached or as a percent for any given variable. Targets can be either proportions (ideal) or the number of individuals in the population in each target category (N). Totals of greater than 1.5 for any given list element are treated as Ns, while values of less than 1.5 are treated as percentages. dataframe The dataframe command identifies a data.frame object of the data to be weighted. The data.frame must contain all of the variables that will be used in the weighting process and those variables must have the same names as are present in the inputter list element. weightvec weightvec is a vector of final weights that are to be assessed. prevec prevec is an optional input if some kind of base weights, stratification correc- tion, or other sampling probability of note that should be accounted for before weighting is conducted. If defined, prevec must be of a length equivalent to the number of cases in the dataframe. If undefined, prevec will be automatically seeded with a vector of 1s. Value Prints out a list of all levels of all variables named in inputter. For each variable, shows values weighted with prevec, weightvec, and the targets and assesses discrepancies for each. Author(s) <NAME>, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com).
MTDates
cocoapods
Objective-C
mtdates === The mtdates library is a powerful toolkit for working with dates and times in your Cocoa projects. With its comprehensive suite of features, it simplifies the complexities of date calculations, formatting, and localization, allowing you to focus on building great applications. This documentation will guide you through the installation, setup, and usage of mtdates in your iOS or macOS project. Getting Started --- To begin using mtdates in your project, follow the steps below: ### Installation First, you need to install mtdates using CocoaPods. Open your terminal and navigate to your project directory. Add the following line to your Podfile: ``` pod 'mtdates' ``` Save the file and run the following command: ``` pod install ``` This will install the mtdates library into your project, and you can now import it in your code files. Basic Usage --- Once installed, you can start taking advantage of mtdates functionality: ### Calculating Dates The mtdates library provides various methods to easily calculate dates and perform operations such as adding or subtracting time intervals, getting the difference between dates, etc. For example: ``` // Create a date representing the current moment let now = MTDate() // Add 2 hours to the current date let futureDate = now + 2.hours // Calculate the difference between two dates let timeDifference = futureDate - now ``` ### Formatting Dates mtdates allows you to format dates according to the desired output format. It provides convenient methods to format dates as strings or to extract specific date components. Here’s an example: ``` // Format a date as a string let formattedDate = someDate.stringWithFormat("yyyy/MM/dd hh:mm a") // Extract date components let year = someDate.year let month = someDate.month ``` ### Localization mtdates supports localization, allowing you to display dates in different languages and formats. You can easily set the desired locale and adjust the formatting options. Take a look at the example below: ``` // Set the desired locale MTDateFormatter.defaultLocale = Locale(identifier: "de_DE") // Format a date using the default locale let localizedDate = someDate.stringWithFormat("dd MMMM, yyyy") ``` Additional Resources --- Explore the mtdates library further with the following resources: ### Official Documentation For comprehensive details about using mtdates, refer to the official documentation: [mtdates GitHub Repository](https://github.com/mysterioustrousers/MTDates) ### GitHub Repository Visit the GitHub repository to access the library’s source code and contribute to its development: [mtdates on GitHub](https://github.com/mysterioustrousers/MTDates) ### Community Support Join the mtdates community and connect with fellow developers for support and discussions: [mtdates on Stack Overflow](https://stackoverflow.com/questions/tagged/mtdates) With mtdates, you can effortlessly manage date and time operations in your Cocoa applications. Start exploring its extensive capabilities and simplify your date-related tasks today!
rusoto_signature
rust
Rust
Crate rusoto_signature === AWS API request signatures. Follows AWS Signature 4 algorithm. If needed, the request will be re-issued to a temporary redirect endpoint. This can happen with newly created S3 buckets not in us-standard/us-east-1. Please note that this module does not expect URIs to already be encoded. Re-exports --- `pub extern crate rusoto_credential as credential;``pub use region::Region;``pub use signature::SignedRequest;``pub use signature::SignedRequestPayload;``pub use stream::ByteStream;`Modules --- regionAWS Regions and helper functions. signatureAWS API request signatures. stream Crate rusoto_signature === AWS API request signatures. Follows AWS Signature 4 algorithm. If needed, the request will be re-issued to a temporary redirect endpoint. This can happen with newly created S3 buckets not in us-standard/us-east-1. Please note that this module does not expect URIs to already be encoded. Re-exports --- `pub extern crate rusoto_credential as credential;``pub use region::Region;``pub use signature::SignedRequest;``pub use signature::SignedRequestPayload;``pub use stream::ByteStream;`Modules --- regionAWS Regions and helper functions. signatureAWS API request signatures. stream Enum rusoto_signature::region::Region === ``` pub enum Region { ApEast1, ApNortheast1, ApNortheast2, ApNortheast3, ApSouth1, ApSoutheast1, ApSoutheast2, ApSoutheast3, CaCentral1, EuCentral1, EuWest1, EuWest2, EuWest3, EuNorth1, EuSouth1, MeSouth1, SaEast1, UsEast1, UsEast2, UsWest1, UsWest2, UsGovEast1, UsGovWest1, CnNorth1, CnNorthwest1, AfSouth1, Custom { name: String, endpoint: String, }, } ``` An AWS region. Default --- `Region` implements the `Default` trait. Calling `Region::default()` will attempt to read the `AWS_DEFAULT_REGION` or `AWS_REGION` environment variable. If it is malformed, it will fall back to `Region::UsEast1`. If it is not present it will fallback on the value associated with the current profile in `~/.aws/config` or the file specified by the `AWS_CONFIG_FILE` environment variable. If that is malformed of absent it will fall back on `Region::UsEast1` AWS-compatible services --- `Region::Custom` can be used to connect to AWS-compatible services such as DynamoDB Local or Ceph. ``` Region::Custom { name: "eu-east-3".to_owned(), endpoint: "http://localhost:8000".to_owned(), }; ``` Caveats --- `CnNorth1` is currently untested due to Rusoto maintainers not having access to AWS China. Variants --- ### `ApEast1` Region that covers the Eastern part of Asia Pacific ### `ApNortheast1` Region that covers the North-Eastern part of Asia Pacific ### `ApNortheast2` Region that covers the North-Eastern part of Asia Pacific ### `ApNortheast3` Region that covers the North-Eastern part of Asia Pacific ### `ApSouth1` Region that covers the Southern part of Asia Pacific ### `ApSoutheast1` Region that covers the South-Eastern part of Asia Pacific ### `ApSoutheast2` Region that covers the South-Eastern part of Asia Pacific ### `ApSoutheast3` Region that covers the South-Eastern part of Asia Pacific ### `CaCentral1` Region that covers Canada ### `EuCentral1` Region that covers Central Europe ### `EuWest1` Region that covers Western Europe ### `EuWest2` Region that covers Western Europe ### `EuWest3` Region that covers Western Europe ### `EuNorth1` Region that covers Northern Europe ### `EuSouth1` Region that covers Southern Europe ### `MeSouth1` Bahrain, Middle East South ### `SaEast1` Region that covers South America ### `UsEast1` Region that covers the Eastern part of the United States ### `UsEast2` Region that covers the Eastern part of the United States ### `UsWest1` Region that covers the Western part of the United States ### `UsWest2` Region that covers the Western part of the United States ### `UsGovEast1` Region that covers the Eastern part of the United States for the US Government ### `UsGovWest1` Region that covers the Western part of the United States for the US Government ### `CnNorth1` Region that covers China ### `CnNorthwest1` Region that covers North-Western part of China ### `AfSouth1` Region that covers southern part Africa ### `Custom` #### Fields `name: String`Name of the endpoint (e.g. `"eu-east-2"`). `endpoint: String`Endpoint to be used. For instance, `"https://s3.my-provider.net"` or just `"s3.my-provider.net"` (default scheme is https). Specifies a custom region, such as a local Ceph target Implementations --- source### impl Region source#### pub fn name(&self) -> &str Name of the region ``` assert_eq!(Region::CaCentral1.name(), "ca-central-1"); assert_eq!( Region::Custom { name: "eu-east-3".to_owned(), endpoint: "s3.net".to_owned() }.name(), "eu-east-3" ); ``` Trait Implementations --- source### impl Clone for Region source#### fn clone(&self) -> Region Returns a copy of the value. Read more 1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Read more source### impl Debug for Region source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl Default for Region source#### fn default() -> Region Returns the “default value” for a type. Read more source### impl<'de> Deserialize<'de> for Region source#### fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where    D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more source### impl FromStr for Region #### type Err = ParseRegionError The associated error which can be returned from parsing. source#### fn from_str(s: &str) -> Result<Region, ParseRegionErrorParses a string `s` to return a value of this type. Read more source### impl Hash for Region source#### fn hash<__H: Hasher>(&self, state: &mut__H) Feeds this value into the given `Hasher`. Read more 1.3.0 · source#### fn hash_slice<H>(data: &[Self], state: &mutH) where    H: Hasher, Feeds a slice of this type into the given `Hasher`. Read more source### impl PartialEq<Region> for Region source#### fn eq(&self, other: &Region) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`. Read more source#### fn ne(&self, other: &Region) -> bool This method tests for `!=`. source### impl Serialize for Region source#### fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where    S: Serializer, Serialize this value into the given Serde serializer. Read more source### impl Eq for Region source### impl StructuralEq for Region source### impl StructuralPartialEq for Region Auto Trait Implementations --- ### impl RefUnwindSafe for Region ### impl Send for Region ### impl Sync for Region ### impl Unpin for Region ### impl UnwindSafe for Region Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> Same<T> for T #### type Output = T Should always be `Self` source### impl<T> ToOwned for T where    T: Clone, #### type Owned = T The resulting type after obtaining ownership. source#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Read more source#### fn clone_into(&self, target: &mutT) 🔬 This is a nightly-only experimental API. (`toowned_clone_into`)Uses borrowed data to replace owned data, usually by cloning. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source### impl<T> DeserializeOwned for T where    T: for<'de> Deserialize<'de>, Struct rusoto_signature::signature::SignedRequest === ``` pub struct SignedRequest { pub method: String, pub service: String, pub region: Region, pub path: String, pub headers: BTreeMap<String, Vec<Vec<u8>>>, pub params: Params, pub scheme: Option<String>, pub hostname: Option<String>, pub payload: Option<SignedRequestPayload>, pub canonical_query_string: String, pub canonical_uri: String, } ``` A data structure for all the elements of an HTTP request that are involved in the Amazon Signature Version 4 signing process Fields --- `method: String`The HTTP Method `service: String`The AWS Service `region: Region`The AWS Region `path: String`The HTTP request path `headers: BTreeMap<String, Vec<Vec<u8>>>`The HTTP Request Headers `params: Params`The HTTP request paramaters `scheme: Option<String>`The HTTP/HTTPS protocol `hostname: Option<String>`The AWS hostname `payload: Option<SignedRequestPayload>`The HTTP Content `canonical_query_string: String`The Standardised query string `canonical_uri: String`The Standardised URI Implementations --- source### impl SignedRequest source#### pub fn new(    method: &str,     service: &str,     region: &Region,     path: &str) -> SignedRequest Default constructor source#### pub fn set_content_type(&mut self, content_type: String) Sets the value of the “content-type” header. source#### pub fn set_hostname(&mut self, hostname: Option<String>) Sets the target hostname source#### pub fn set_endpoint_prefix(&mut self, endpoint_prefix: String) Sets the target hostname using the current service type and region See the implementation of build_hostname to see how this is done source#### pub fn set_payload<B: Into<Bytes>>(&mut self, payload: Option<B>) Sets the new body (payload) source#### pub fn set_payload_stream(&mut self, stream: ByteStream) Sets the new body (payload) as a stream source#### pub fn maybe_set_content_md5_header(&mut self) Computes and sets the Content-MD5 header based on the current payload. Has no effect if the payload is not set, or is not a buffer. Will not override an existing value for the `Content-MD5` header. source#### pub fn method(&self) -> &str Returns the current HTTP method source#### pub fn path(&self) -> &str Returns the current path source#### pub fn canonical_path(&self) -> String Invokes `canonical_uri(path)` to return a canonical path source#### pub fn canonical_uri(&self) -> &str Returns the current canonical URI source#### pub fn canonical_query_string(&self) -> &str Returns the current query string Converts a paramater such as “example param”: “examplekey” into “&example+param=examplekey” source#### pub fn headers(&self) -> &BTreeMap<String, Vec<Vec<u8>>Returns the current headers source#### pub fn scheme(&self) -> String Returns the current http scheme (https or http) source#### pub fn region_for_service(&self) -> String Modify the region used for signing if needed, such as for AWS Organizations source#### pub fn hostname(&self) -> String Converts hostname to String if it exists, else it invokes build_hostname() source#### pub fn remove_header(&mut self, key: &str) If the key exists in headers, set it to blank/unoccupied: source#### pub fn add_header<K: ToString>(&mut self, key: K, value: &str) Add a value to the array of headers for the specified key. Headers are kept sorted by key name for use at signing (BTreeMap) source#### pub fn add_optional_header<K: ToString, V: ToString>(    &mut self,     key: K,     value: Option<V>) source#### pub fn add_param<S>(&mut self, key: S, value: S) where    S: Into<String>, Adds parameter to the HTTP Request source#### pub fn set_params(&mut self, params: Params) Sets paramaters with a given variable of `Params` type source#### pub fn generate_presigned_url(    &mut self,     creds: &AwsCredentials,     expires_in: &Duration,     should_sha256_sign_payload: bool) -> String Generate a Presigned URL for AWS See the documentation for more information. source#### pub fn complement(&mut self) Complement SignedRequest by ensuring the following HTTP headers are set accordingly: * host * content-type * content-length (if applicable) source#### pub fn sign(&mut self, creds: &AwsCredentials) Signs the request using Amazon Signature version 4 to verify identity. Authorization header uses AWS4-HMAC-SHA256 for signing. Trait Implementations --- source### impl Debug for SignedRequest source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl TryInto<Request<Body>> for SignedRequest #### type Error = Error The type returned in the event of a conversion error. source#### fn try_into(self) -> Result<Request<Body>, Self::ErrorPerforms the conversion. Auto Trait Implementations --- ### impl !RefUnwindSafe for SignedRequest ### impl Send for SignedRequest ### impl !Sync for SignedRequest ### impl Unpin for SignedRequest ### impl !UnwindSafe for SignedRequest Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> Same<T> for T #### type Output = T Should always be `Self` source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Struct rusoto_signature::stream::ByteStream === ``` pub struct ByteStream { /* private fields */ } ``` Stream of bytes. Implementations --- source### impl ByteStream source#### pub fn new<S>(stream: S) -> ByteStream where    S: Stream<Item = Result<Bytes, Error>> + Send + 'static, Create a new `ByteStream` by wrapping a `futures` stream. source#### pub fn new_with_size<S>(stream: S, size_hint: usize) -> ByteStream where    S: Stream<Item = Result<Bytes, Error>> + Send + 'static, Creates a new `ByteStream` by wrapping a `futures` stream. Allows for the addition of a size_hint to satisy S3’s `PutObject` API. source#### pub fn into_async_read(self) -> impl AsyncRead + Send Return an implementation of `AsyncRead` that uses async i/o to consume the stream. source#### pub fn into_blocking_read(self) -> impl Read + Send Return an implementation of `Read` that uses blocking i/o to consume the stream. Trait Implementations --- source### impl Debug for ByteStream source#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read more source### impl From<Vec<u8, Global>> for ByteStream source#### fn from(buf: Vec<u8>) -> ByteStream Converts to this type from the input type. source### impl Stream for ByteStream #### type Item = Result<Bytes, ErrorValues yielded by the stream. source#### fn poll_next(    self: Pin<&mutSelf>,     cx: &mut Context<'_>) -> Poll<Option<Self::Item>Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning `None` if the stream is exhausted. Read more #### fn size_hint(&self) -> (usize, Option<usize>) Returns the bounds on the remaining length of the stream. Read more source### impl<'__pin> Unpin for ByteStream where    __Origin<'__pin>: Unpin, Auto Trait Implementations --- ### impl !RefUnwindSafe for ByteStream ### impl Send for ByteStream ### impl !Sync for ByteStream ### impl !UnwindSafe for ByteStream Blanket Implementations --- source### impl<T> Any for T where    T: 'static + ?Sized, source#### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. Read more source### impl<T> Borrow<T> for T where    T: ?Sized, const: unstable · source#### fn borrow(&self) -> &T Immutably borrows from an owned value. Read more source### impl<T> BorrowMut<T> for T where    T: ?Sized, const: unstable · source#### fn borrow_mut(&mut self) -> &mutT Mutably borrows from an owned value. Read more source### impl<T> From<T> for T const: unstable · source#### fn from(t: T) -> T Returns the argument unchanged. source### impl<T> Instrument for T source#### fn instrument(self, span: Span) -> Instrumented<SelfInstruments this type with the provided `Span`, returning an `Instrumented` wrapper. Read more source#### fn in_current_span(self) -> Instrumented<SelfInstruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more source### impl<T, U> Into<U> for T where    U: From<T>, const: unstable · source#### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. source### impl<T> Same<T> for T #### type Output = T Should always be `Self` ### impl<T> StreamExt for T where    T: Stream + ?Sized, #### fn next(&mut self) -> Next<'_, Self> where    Self: Unpin, Creates a future that resolves to the next item in the stream. Read more #### fn into_future(self) -> StreamFuture<Self> where    Self: Unpin, Converts this stream into a future of `(next_item, tail_of_stream)`. If the stream terminates, then the next item is `None`. Read more #### fn map<T, F>(self, f: F) -> Map<Self, F> where    F: FnMut(Self::Item) -> T, Maps this stream’s items to a different type, returning a new stream of the resulting type. Read more #### fn enumerate(self) -> Enumerate<SelfCreates a stream which gives the current iteration count as well as the next value. Read more #### fn filter<Fut, F>(self, f: F) -> Filter<Self, Fut, F> where    F: FnMut(&Self::Item) -> Fut,    Fut: Future<Output = bool>, Filters the values produced by this stream according to the provided asynchronous predicate. Read more #### fn filter_map<Fut, T, F>(self, f: F) -> FilterMap<Self, Fut, F> where    F: FnMut(Self::Item) -> Fut,    Fut: Future<Output = Option<T>>, Filters the values produced by this stream while simultaneously mapping them to a different type according to the provided asynchronous closure. Read more #### fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F> where    F: FnMut(Self::Item) -> Fut,    Fut: Future, Computes from this stream’s items new items of a different type using an asynchronous closure. Read more #### fn collect<C>(self) -> Collect<Self, C> where    C: Default + Extend<Self::Item>, Transforms a stream into a collection, returning a future representing the result of that computation. Read more #### fn unzip<A, B, FromA, FromB>(self) -> Unzip<Self, FromA, FromB> where    FromA: Default + Extend<A>,    FromB: Default + Extend<B>,    Self: Stream<Item = (A, B)>, Converts a stream of pairs into a future, which resolves to pair of containers. Read more #### fn concat(self) -> Concat<Self> where    Self::Item: Extend<<Self::Item as IntoIterator>::Item>,    Self::Item: IntoIterator,    Self::Item: Default, Concatenate all items of a stream into a single extendable destination, returning a future representing the end result. Read more #### fn count(self) -> Count<SelfDrives the stream to completion, counting the number of items. Read more #### fn cycle(self) -> Cycle<Self> where    Self: Clone, Repeats a stream endlessly. Read more #### fn fold<T, Fut, F>(self, init: T, f: F) -> Fold<Self, Fut, T, F> where    F: FnMut(T, Self::Item) -> Fut,    Fut: Future<Output = T>, Execute an accumulating asynchronous computation over a stream, collecting all the values into one final result. Read more #### fn any<Fut, F>(self, f: F) -> Any<Self, Fut, F> where    F: FnMut(Self::Item) -> Fut,    Fut: Future<Output = bool>, Execute predicate over asynchronous stream, and return `true` if any element in stream satisfied a predicate. Read more #### fn all<Fut, F>(self, f: F) -> All<Self, Fut, F> where    F: FnMut(Self::Item) -> Fut,    Fut: Future<Output = bool>, Execute predicate over asynchronous stream, and return `true` if all element in stream satisfied a predicate. Read more #### fn flatten(self) -> Flatten<Self> where    Self::Item: Stream, Flattens a stream of streams into just one continuous stream. Read more #### fn flatten_unordered(    self,     limit: impl Into<Option<usize>>) -> FlattenUnordered<Self> where    Self::Item: Stream,    Self::Item: Unpin, Flattens a stream of streams into just one continuous stream. Polls inner streams concurrently. Read more #### fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> where    F: FnMut(Self::Item) -> U,    U: Stream, Maps a stream like [`StreamExt::map`] but flattens nested `Stream`s. Read more #### fn flat_map_unordered<U, F>(    self,     limit: impl Into<Option<usize>>,     f: F) -> FlatMapUnordered<Self, U, F> where    U: Stream + Unpin,    F: FnMut(Self::Item) -> U, Maps a stream like [`StreamExt::map`] but flattens nested `Stream`s and polls them concurrently, yielding items in any order, as they made available. Read more #### fn scan<S, B, Fut, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F> where    F: FnMut(&mutS, Self::Item) -> Fut,    Fut: Future<Output = Option<B>>, Combinator similar to [`StreamExt::fold`] that holds internal state and produces a new stream. Read more #### fn skip_while<Fut, F>(self, f: F) -> SkipWhile<Self, Fut, F> where    F: FnMut(&Self::Item) -> Fut,    Fut: Future<Output = bool>, Skip elements on this stream while the provided asynchronous predicate resolves to `true`. Read more #### fn take_while<Fut, F>(self, f: F) -> TakeWhile<Self, Fut, F> where    F: FnMut(&Self::Item) -> Fut,    Fut: Future<Output = bool>, Take elements from this stream while the provided asynchronous predicate resolves to `true`. Read more #### fn take_until<Fut>(self, fut: Fut) -> TakeUntil<Self, Fut> where    Fut: Future, Take elements from this stream until the provided future resolves. Read more #### fn for_each<Fut, F>(self, f: F) -> ForEach<Self, Fut, F> where    F: FnMut(Self::Item) -> Fut,    Fut: Future<Output = ()>, Runs this stream to completion, executing the provided asynchronous closure for each element on the stream. Read more #### fn for_each_concurrent<Fut, F>(    self,     limit: impl Into<Option<usize>>,     f: F) -> ForEachConcurrent<Self, Fut, F> where    F: FnMut(Self::Item) -> Fut,    Fut: Future<Output = ()>, Runs this stream to completion, executing the provided asynchronous closure for each element on the stream concurrently as elements become available. Read more #### fn take(self, n: usize) -> Take<SelfCreates a new stream of at most `n` items of the underlying stream. Read more #### fn skip(self, n: usize) -> Skip<SelfCreates a new stream which skips `n` items of the underlying stream. Read more #### fn fuse(self) -> Fuse<SelfFuse a stream such that `poll_next` will never again be called once it has finished. This method can be used to turn any `Stream` into a `FusedStream`. Read more #### fn by_ref(&mut self) -> &mutSelf Borrows a stream, rather than consuming it. Read more #### fn catch_unwind(self) -> CatchUnwind<Self> where    Self: UnwindSafe, Catches unwinding panics while polling the stream. Read more #### fn boxed<'a>(    self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a, Global>> where    Self: 'a + Send, Wrap the stream in a Box, pinning it. Read more #### fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a, Global>> where    Self: 'a, Wrap the stream in a Box, pinning it. Read more #### fn buffered(self, n: usize) -> Buffered<Self> where    Self::Item: Future, An adaptor for creating a buffered list of pending futures. Read more #### fn buffer_unordered(self, n: usize) -> BufferUnordered<Self> where    Self::Item: Future, An adaptor for creating a buffered list of pending futures (unordered). Read more #### fn zip<St>(self, other: St) -> Zip<Self, St> where    St: Stream, An adapter for zipping two streams together. Read more #### fn chain<St>(self, other: St) -> Chain<Self, St> where    St: Stream<Item = Self::Item>, Adapter for chaining two streams. Read more #### fn peekable(self) -> Peekable<SelfCreates a new stream which exposes a `peek` method. Read more #### fn chunks(self, capacity: usize) -> Chunks<SelfAn adaptor for chunking up items of the stream inside a vector. Read more #### fn ready_chunks(self, capacity: usize) -> ReadyChunks<SelfAn adaptor for chunking up ready items of the stream inside a vector. Read more #### fn forward<S>(self, sink: S) -> Forward<Self, S> where    S: Sink<Self::Ok, Error = Self::Error>,    Self: TryStream, A future that completes after the given stream has been fully processed into the sink and the sink has been flushed and closed. Read more #### fn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>) where    Self: Sink<Item>, Splits this `Stream + Sink` object into separate `Sink` and `Stream` objects. Read more #### fn inspect<F>(self, f: F) -> Inspect<Self, F> where    F: FnMut(&Self::Item), Do something with each item of this stream, afterwards passing it on. Read more #### fn left_stream<B>(self) -> Either<Self, B> where    B: Stream<Item = Self::Item>, Wrap this stream in an `Either` stream, making it the left-hand variant of that `Either`. Read more #### fn right_stream<B>(self) -> Either<B, Self> where    B: Stream<Item = Self::Item>, Wrap this stream in an `Either` stream, making it the right-hand variant of that `Either`. Read more #### fn poll_next_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> where    Self: Unpin, A convenience method for calling [`Stream::poll_next`] on `Unpin` stream types. Read more #### fn select_next_some(&mut self) -> SelectNextSome<'_, Self> where    Self: Unpin + FusedStream, Returns a `Future` that resolves when the next item in this stream is ready. Read more source### impl<T, U> TryFrom<U> for T where    U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error. const: unstable · source#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion. source### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error. const: unstable · source#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. ### impl<S, T, E> TryStream for S where    S: Stream<Item = Result<T, E>> + ?Sized, #### type Ok = T The type of successful values yielded by this future #### type Error = E The type of failures yielded by this future #### fn try_poll_next(    self: Pin<&mutS>,     cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>Poll this `TryStream` as if it were a `Stream`. Read more ### impl<S> TryStreamExt for S where    S: TryStream + ?Sized, #### fn err_into<E>(self) -> ErrInto<Self, E> where    Self::Error: Into<E>, Wraps the current stream in a new stream which converts the error type into the one provided. Read more #### fn map_ok<T, F>(self, f: F) -> MapOk<Self, F> where    F: FnMut(Self::Ok) -> T, Wraps the current stream in a new stream which maps the success value using the provided closure. Read more #### fn map_err<E, F>(self, f: F) -> MapErr<Self, F> where    F: FnMut(Self::Error) -> E, Wraps the current stream in a new stream which maps the error value using the provided closure. Read more #### fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F> where    F: FnMut(Self::Ok) -> Fut,    Fut: TryFuture<Error = Self::Error>, Chain on a computation for when a value is ready, passing the successful results to the provided closure `f`. Read more #### fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F> where    F: FnMut(Self::Error) -> Fut,    Fut: TryFuture<Ok = Self::Ok>, Chain on a computation for when an error happens, passing the erroneous result to the provided closure `f`. Read more #### fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F> where    F: FnMut(&Self::Ok), Do something with the success value of this stream, afterwards passing it on. Read more #### fn inspect_err<F>(self, f: F) -> InspectErr<Self, F> where    F: FnMut(&Self::Error), Do something with the error value of this stream, afterwards passing it on. Read more #### fn into_stream(self) -> IntoStream<SelfWraps a [`TryStream`] into a type that implements `Stream` Read more #### fn try_next(&mut self) -> TryNext<'_, Self> where    Self: Unpin, Creates a future that attempts to resolve the next item in the stream. If an error is encountered before the next item, the error is returned instead. Read more #### fn try_for_each<Fut, F>(self, f: F) -> TryForEach<Self, Fut, F> where    F: FnMut(Self::Ok) -> Fut,    Fut: TryFuture<Ok = (), Error = Self::Error>, Attempts to run this stream to completion, executing the provided asynchronous closure for each element on the stream. Read more #### fn try_skip_while<Fut, F>(self, f: F) -> TrySkipWhile<Self, Fut, F> where    F: FnMut(&Self::Ok) -> Fut,    Fut: TryFuture<Ok = bool, Error = Self::Error>, Skip elements on this stream while the provided asynchronous predicate resolves to `true`. Read more #### fn try_take_while<Fut, F>(self, f: F) -> TryTakeWhile<Self, Fut, F> where    F: FnMut(&Self::Ok) -> Fut,    Fut: TryFuture<Ok = bool, Error = Self::Error>, Take elements on this stream while the provided asynchronous predicate resolves to `true`. Read more #### fn try_for_each_concurrent<Fut, F>(    self,     limit: impl Into<Option<usize>>,     f: F) -> TryForEachConcurrent<Self, Fut, F> where    F: FnMut(Self::Ok) -> Fut,    Fut: Future<Output = Result<(), Self::Error>>, Attempts to run this stream to completion, executing the provided asynchronous closure for each element on the stream concurrently as elements become available, exiting as soon as an error occurs. Read more #### fn try_collect<C>(self) -> TryCollect<Self, C> where    C: Default + Extend<Self::Ok>, Attempt to transform a stream into a collection, returning a future representing the result of that computation. Read more #### fn try_chunks(self, capacity: usize) -> TryChunks<SelfAn adaptor for chunking up successful items of the stream inside a vector. Read more #### fn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F> where    Fut: Future<Output = bool>,    F: FnMut(&Self::Ok) -> Fut, Attempt to filter the values produced by this stream according to the provided asynchronous closure. Read more #### fn try_filter_map<Fut, F, T>(self, f: F) -> TryFilterMap<Self, Fut, F> where    Fut: TryFuture<Ok = Option<T>, Error = Self::Error>,    F: FnMut(Self::Ok) -> Fut, Attempt to filter the values produced by this stream while simultaneously mapping them to a different type according to the provided asynchronous closure. Read more #### fn try_flatten(self) -> TryFlatten<Self> where    Self::Ok: TryStream,    <Self::Ok as TryStream>::Error: From<Self::Error>, Flattens a stream of streams into just one continuous stream. Read more #### fn try_fold<T, Fut, F>(self, init: T, f: F) -> TryFold<Self, Fut, T, F> where    F: FnMut(T, Self::Ok) -> Fut,    Fut: TryFuture<Ok = T, Error = Self::Error>, Attempt to execute an accumulating asynchronous computation over a stream, collecting all the values into one final result. Read more #### fn try_concat(self) -> TryConcat<Self> where    Self::Ok: Extend<<Self::Ok as IntoIterator>::Item>,    Self::Ok: IntoIterator,    Self::Ok: Default, Attempt to concatenate all items of a stream into a single extendable destination, returning a future representing the end result. Read more #### fn try_buffer_unordered(self, n: usize) -> TryBufferUnordered<Self> where    Self::Ok: TryFuture,    <Self::Ok as TryFuture>::Error == Self::Error, Attempt to execute several futures from a stream concurrently (unordered). Read more #### fn try_buffered(self, n: usize) -> TryBuffered<Self> where    Self::Ok: TryFuture,    <Self::Ok as TryFuture>::Error == Self::Error, Attempt to execute several futures from a stream concurrently. Read more #### fn try_poll_next_unpin(    &mut self,     cx: &mut Context<'_>) -> Poll<Option<Result<Self::Ok, Self::Error>>> where    Self: Unpin, A convenience method for calling [`TryStream::try_poll_next`] on `Unpin` stream types. Read more #### fn into_async_read(self) -> IntoAsyncRead<Self> where    Self: TryStreamExt<Error = Error> + Unpin,    Self::Ok: AsRef<[u8]>, Adapter that converts this stream into an `AsyncRead`. Read more source### impl<T> WithSubscriber for T source#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where    S: Into<Dispatch>, Attaches the provided `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more source#### fn with_current_subscriber(self) -> WithDispatch<SelfAttaches the current default `Subscriber` to this type, returning a `WithDispatch` wrapper. Read more Module rusoto_signature::region === AWS Regions and helper functions. Mostly used for translating the Region enum to a string AWS accepts. For example: `UsEast1` to “us-east-1” Structs --- ParseRegionErrorAn error produced when attempting to convert a `str` into a `Region` fails. Enums --- RegionAn AWS region. Module rusoto_signature::signature === AWS API request signatures. Follows AWS Signature 4 algorithm. If needed, the request will be re-issued to a temporary redirect endpoint. This can happen with newly created S3 buckets not in us-standard/us-east-1. Please note that this module does not expect URIs to already be encoded. Structs --- SignedRequestA data structure for all the elements of an HTTP request that are involved in the Amazon Signature Version 4 signing process Enums --- SignedRequestPayloadPossible payloads included in a `SignedRequest`. Constants --- STRICT_ENCODE_SETThis constant is used to maintain the strict URI encoding standard as proposed by RFC 3986 STRICT_PATH_ENCODE_SETThis struct is used to maintain the URI path encoding Statics --- EMPTY_SHA256_HASHPayload string to use for signed empty payload UNSIGNED_PAYLOADPayload string to use for unsigned payload Functions --- string_to_signMark string as AWS4-HMAC-SHA256 hashed Type Definitions --- Params
kraftkit.sh/cmdfactory
go
Go
None Documentation [¶](#section-documentation) --- ### Overview [¶](#pkg-overview) SPDX-License-Identifier: MIT Copyright (c) 2019, 2019 GitHub Inc. Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the MIT License (the "License"). You may not use this file expect in compliance with the License. SPDX-License-Identifier: Apache-2.0 Copyright 2022 Acorn Labs, Inc; All rights reserved. Copyright 2022 Unikraft GmbH; All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. SPDX-License-Identifier: MIT Copyright (c) 2019 GitHub Inc. Copyright (c) 2022 Unikraft GmbH. SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2012 <NAME>. Copyright (c) 2012 The Go Authors. Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License. SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2012 <NAME>. Copyright (c) 2012 The Go Authors. Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License. SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file expect in compliance with the License. SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2012 <NAME>. Copyright (c) 2012 The Go Authors. Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License. SPDX-License-Identifier: MIT Copyright (c) 2019 GitHub Inc. Copyright (c) 2022 Unikraft GmbH. ### Index [¶](#pkg-index) * [Constants](#pkg-constants) * [Variables](#pkg-variables) * [func AttributeFlags(c *cobra.Command, obj any, args ...string) error](#AttributeFlags) * [func BoolVar(p *bool, name string, value bool, usage string) *pflag.Flag](#BoolVar) * [func BoolVarP(p *bool, name, shorthand string, value bool, usage string) *pflag.Flag](#BoolVarP) * [func ExactArgs(n int, msg string) cobra.PositionalArgs](#ExactArgs) * [func FlagErrorWrap(err error) error](#FlagErrorWrap) * [func FlagErrorf(format string, args ...interface{}) error](#FlagErrorf) * [func HasFailed() bool](#HasFailed) * [func IsUserCancellation(err error) bool](#IsUserCancellation) * [func Main(ctx context.Context, cmd *cobra.Command)](#Main) * [func MaxDirArgs(n int) cobra.PositionalArgs](#MaxDirArgs) * [func MinimumArgs(n int, msg string) cobra.PositionalArgs](#MinimumArgs) * [func MutuallyExclusive(message string, conditions ...bool) error](#MutuallyExclusive) * [func Name(obj any) string](#Name) * [func New(obj Runnable, cmd cobra.Command) (*cobra.Command, error)](#New) * [func NoArgsQuoteReminder(cmd *cobra.Command, args []string) error](#NoArgsQuoteReminder) * [func RegisterFlag(cmdline string, flag *pflag.Flag)](#RegisterFlag) * [func StringVar(p *string, name string, value string, usage string) *pflag.Flag](#StringVar) * [func StringVarP(p *string, name, shorthand string, value string, usage string) *pflag.Flag](#StringVarP) * [func VarF(value pflag.Value, name, usage string) *pflag.Flag](#VarF) * [func VarPF(value pflag.Value, name, shorthand, usage string) *pflag.Flag](#VarPF) * [type EnumFlag](#EnumFlag) * + [func NewEnumFlag(allowed []string, d string) *EnumFlag](#NewEnumFlag) * + [func (a *EnumFlag) Set(p string) error](#EnumFlag.Set) + [func (a *EnumFlag) String() string](#EnumFlag.String) + [func (a *EnumFlag) Type() string](#EnumFlag.Type) * [type FlagError](#FlagError) * + [func (fe *FlagError) Error() string](#FlagError.Error) + [func (fe *FlagError) Unwrap() error](#FlagError.Unwrap) * [type PersistentPreRunnable](#PersistentPreRunnable) * [type PreRunnable](#PreRunnable) * [type Runnable](#Runnable) ### Constants [¶](#pkg-constants) ``` const AnnotationHelpGroup = "help:group" ``` AnnotationHelpGroup is used to indicate in which help group a command belongs. ### Variables [¶](#pkg-variables) ``` var ErrCancel = [errors](/errors).[New](/errors#New)("ErrCancel") ``` ErrCancel signals user-initiated cancellation ``` var ErrSilent = [errors](/errors).[New](/errors#New)("ErrSilent") ``` ErrSilent is an error that triggers exit code 1 without any error messaging ### Functions [¶](#pkg-functions) #### func [AttributeFlags](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/builder.go#L331) [¶](#AttributeFlags) added in v0.4.0 ``` func AttributeFlags(c *[cobra](/github.com/spf13/cobra).[Command](/github.com/spf13/cobra#Command), obj [any](/builtin#any), args ...[string](/builtin#string)) [error](/builtin#error) ``` AttributeFlags associates a given struct with public attributes and a set of tags with the provided cobra command so as to enable dynamic population of CLI flags. #### func [BoolVar](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_bool.go#L36) [¶](#BoolVar) added in v0.4.0 ``` func BoolVar(p *[bool](/builtin#bool), name [string](/builtin#string), value [bool](/builtin#bool), usage [string](/builtin#string)) *[pflag](/github.com/spf13/pflag).[Flag](/github.com/spf13/pflag#Flag) ``` BoolVar returns an instantiated flag for to an associated pointer boolean value with a given name, default value and usage line. #### func [BoolVarP](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_bool.go#L44) [¶](#BoolVarP) ``` func BoolVarP(p *[bool](/builtin#bool), name, shorthand [string](/builtin#string), value [bool](/builtin#bool), usage [string](/builtin#string)) *[pflag](/github.com/spf13/pflag).[Flag](/github.com/spf13/pflag#Flag) ``` BoolVarP is like BoolVar, but accepts a shorthand letter that can be used after a single dash. #### func [ExactArgs](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/args.go#L29) [¶](#ExactArgs) ``` func ExactArgs(n [int](/builtin#int), msg [string](/builtin#string)) [cobra](/github.com/spf13/cobra).[PositionalArgs](/github.com/spf13/cobra#PositionalArgs) ``` #### func [FlagErrorWrap](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/errors.go#L20) [¶](#FlagErrorWrap) ``` func FlagErrorWrap(err [error](/builtin#error)) [error](/builtin#error) ``` FlagError returns a new FlagError that wraps the specified error. #### func [FlagErrorf](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/errors.go#L15) [¶](#FlagErrorf) ``` func FlagErrorf(format [string](/builtin#string), args ...interface{}) [error](/builtin#error) ``` FlagErrorf returns a new FlagError that wraps an error produced by fmt.Errorf(format, args...). #### func [HasFailed](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/help.go#L58) [¶](#HasFailed) ``` func HasFailed() [bool](/builtin#bool) ``` HasFailed signals that the main process should exit with non-zero status #### func [IsUserCancellation](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/errors.go#L43) [¶](#IsUserCancellation) ``` func IsUserCancellation(err [error](/builtin#error)) [bool](/builtin#bool) ``` #### func [Main](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/builder.go#L316) [¶](#Main) ``` func Main(ctx [context](/context).[Context](/context#Context), cmd *[cobra](/github.com/spf13/cobra).[Command](/github.com/spf13/cobra#Command)) ``` Main executes the given command #### func [MaxDirArgs](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/args.go#L67) [¶](#MaxDirArgs) ``` func MaxDirArgs(n [int](/builtin#int)) [cobra](/github.com/spf13/cobra).[PositionalArgs](/github.com/spf13/cobra#PositionalArgs) ``` #### func [MinimumArgs](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/args.go#L16) [¶](#MinimumArgs) ``` func MinimumArgs(n [int](/builtin#int), msg [string](/builtin#string)) [cobra](/github.com/spf13/cobra).[PositionalArgs](/github.com/spf13/cobra#PositionalArgs) ``` #### func [MutuallyExclusive](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/errors.go#L47) [¶](#MutuallyExclusive) ``` func MutuallyExclusive(message [string](/builtin#string), conditions ...[bool](/builtin#bool)) [error](/builtin#error) ``` #### func [Name](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/builder.go#L79) [¶](#Name) ``` func Name(obj [any](/builtin#any)) [string](/builtin#string) ``` #### func [New](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/builder.go#L487) [¶](#New) ``` func New(obj [Runnable](#Runnable), cmd [cobra](/github.com/spf13/cobra).[Command](/github.com/spf13/cobra#Command)) (*[cobra](/github.com/spf13/cobra).[Command](/github.com/spf13/cobra#Command), [error](/builtin#error)) ``` New populates a cobra.Command object by extracting args from struct tags of the Runnable obj passed. Also the Run method is assigned to the RunE of the command. name = Override the struct field with #### func [NoArgsQuoteReminder](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/args.go#L43) [¶](#NoArgsQuoteReminder) ``` func NoArgsQuoteReminder(cmd *[cobra](/github.com/spf13/cobra).[Command](/github.com/spf13/cobra#Command), args [][string](/builtin#string)) [error](/builtin#error) ``` #### func [RegisterFlag](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/builder.go#L32) [¶](#RegisterFlag) ``` func RegisterFlag(cmdline [string](/builtin#string), flag *[pflag](/github.com/spf13/pflag).[Flag](/github.com/spf13/pflag#Flag)) ``` #### func [StringVar](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_string.go#L33) [¶](#StringVar) added in v0.4.0 ``` func StringVar(p *[string](/builtin#string), name [string](/builtin#string), value [string](/builtin#string), usage [string](/builtin#string)) *[pflag](/github.com/spf13/pflag).[Flag](/github.com/spf13/pflag#Flag) ``` StringVar returns an instantiated flag for to an associated pointer string value with a given name, default value and usage line. #### func [StringVarP](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_string.go#L39) [¶](#StringVarP) ``` func StringVarP(p *[string](/builtin#string), name, shorthand [string](/builtin#string), value [string](/builtin#string), usage [string](/builtin#string)) *[pflag](/github.com/spf13/pflag).[Flag](/github.com/spf13/pflag#Flag) ``` StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash. #### func [VarF](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags.go#L15) [¶](#VarF) added in v0.4.0 ``` func VarF(value [pflag](/github.com/spf13/pflag).[Value](/github.com/spf13/pflag#Value), name, usage [string](/builtin#string)) *[pflag](/github.com/spf13/pflag).[Flag](/github.com/spf13/pflag#Flag) ``` VarF returns and instantiated flag based on a pointer value, a name and usage line. #### func [VarPF](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags.go#L27) [¶](#VarPF) ``` func VarPF(value [pflag](/github.com/spf13/pflag).[Value](/github.com/spf13/pflag#Value), name, shorthand, usage [string](/builtin#string)) *[pflag](/github.com/spf13/pflag).[Flag](/github.com/spf13/pflag#Flag) ``` VarPF is like VarP, but returns the flag created ### Types [¶](#pkg-types) #### type [EnumFlag](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_enum.go#L12) [¶](#EnumFlag) ``` type EnumFlag struct { Allowed [][string](/builtin#string) Value [string](/builtin#string) } ``` #### func [NewEnumFlag](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_enum.go#L19) [¶](#NewEnumFlag) ``` func NewEnumFlag(allowed [][string](/builtin#string), d [string](/builtin#string)) *[EnumFlag](#EnumFlag) ``` NewEnumFlag give a list of allowed flag parameters, where the second argument is the default #### func (*EnumFlag) [Set](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_enum.go#L30) [¶](#EnumFlag.Set) ``` func (a *[EnumFlag](#EnumFlag)) Set(p [string](/builtin#string)) [error](/builtin#error) ``` #### func (*EnumFlag) [String](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_enum.go#L26) [¶](#EnumFlag.String) ``` func (a *[EnumFlag](#EnumFlag)) String() [string](/builtin#string) ``` #### func (*EnumFlag) [Type](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/flags_enum.go#L49) [¶](#EnumFlag.Type) ``` func (a *[EnumFlag](#EnumFlag)) Type() [string](/builtin#string) ``` #### type [FlagError](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/errors.go#L24) [¶](#FlagError) ``` type FlagError struct { // contains filtered or unexported fields } ``` A *FlagError indicates an error processing command-line flags or other arguments. Such errors cause the application to display the usage message. #### func (*FlagError) [Error](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/errors.go#L29) [¶](#FlagError.Error) ``` func (fe *[FlagError](#FlagError)) Error() [string](/builtin#string) ``` #### func (*FlagError) [Unwrap](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/errors.go#L33) [¶](#FlagError.Unwrap) ``` func (fe *[FlagError](#FlagError)) Unwrap() [error](/builtin#error) ``` #### type [PersistentPreRunnable](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/builder.go#L36) [¶](#PersistentPreRunnable) ``` type PersistentPreRunnable interface { PersistentPre(cmd *[cobra](/github.com/spf13/cobra).[Command](/github.com/spf13/cobra#Command), args [][string](/builtin#string)) [error](/builtin#error) } ``` #### type [PreRunnable](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/builder.go#L40) [¶](#PreRunnable) ``` type PreRunnable interface { Pre(cmd *[cobra](/github.com/spf13/cobra).[Command](/github.com/spf13/cobra#Command), args [][string](/builtin#string)) [error](/builtin#error) } ``` #### type [Runnable](https://github.com/unikraft/kraftkit/blob/v0.6.7/cmdfactory/builder.go#L44) [¶](#Runnable) ``` type Runnable interface { Run(cmd *[cobra](/github.com/spf13/cobra).[Command](/github.com/spf13/cobra#Command), args [][string](/builtin#string)) [error](/builtin#error) } ```
gaphas
readthedoc
Python
Gaphas Hide navigation sidebar Hide table of contents sidebar Toggle site navigation sidebar [Gaphas](#) Toggle Light / Dark / Auto color theme Toggle table of contents sidebar [Gaphas](#) The basics * [Class diagram](index.html#document-diagram) * [Interacting with diagrams](index.html#document-tools) * [Connections](index.html#document-connectors) * [Constraint Solver](index.html#document-solver) Advanced * [Guides](index.html#document-guide) * [Line Segments](index.html#document-segment) API * [API reference](index.html#document-api)Toggle navigation of API reference + [View](index.html#document-api/view) + [Model](index.html#document-api/model) + [Painters](index.html#document-api/painters) + [Tools](index.html#document-api/tools) + [Handles and Ports](index.html#document-api/handles) + [Connections](index.html#document-api/connections) + [Variables and Position](index.html#document-api/variable) + [Matrix](index.html#document-api/matrix) + [Rectangle](index.html#document-api/geometry) + [Geometry functions](index.html#geometry-functions) Internals * [Quadtree](index.html#document-quadtree) * [Table](index.html#document-table) * [Tree](index.html#document-tree) * [Decorators](index.html#document-decorators) [Back to top](#) Toggle Light / Dark / Auto color theme Toggle table of contents sidebar Gaphas 3 Documentation[#](#gaphas-3-documentation) === Gaphas is the diagramming widget library for Python. Gaphas has been built with extensibility in mind. It can be used for many drawing purposes, including vector drawing applications, and diagram drawing tools. The basic idea is: * Gaphas has a [Model-View-Controller](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) design. * A model is presented as a protocol in Gaphas. This means that it’s very easy to define a class that acts as a model. * A model can be visualized by one or more Views. * A constraint solver is used to maintain item constraints and inter-item constraints. * The item (and user) should not be bothered with things like bounding-box calculations. * Very modular: The view contains the basic features. Painters and tools can be swapped out as needed. * Rendering using [Cairo](https://cairographics.org). This implies the diagrams can be exported in a number of formats, including PNG and SVG. Gaphas is released under the terms of the Apache Software License, version 2.0. * Git repository: <https://github.com/gaphor/gaphas> * Python Package index (PyPI): <https://pypi.org/project/gaphasClass diagram[#](#class-diagram) --- This class diagram describes the basic layout of Gaphas. The central class is `GtkView`. It takes a model. A default implementation is provided by gaphas.Canvas. A view is rendered by Painters. Interaction is handled by Tools. Painting is done by painters. Each painter will paint a layer of the canvas. Besides the view, there is constraint based connection management. Constraints can be used within an item, and to connect different items. A default model and item implementations, a line and an element. Interacting with diagrams[#](#interacting-with-diagrams) --- Tools are used to handle user actions, like moving a mouse pointer over the screen and clicking on items in the canvas. Tools are registered on the `View`. They have some internal state (e.g. when and where a mouse button was pressed). Therefore tools can not be reused by different views [[1]](#id3). Tools are simply [Gtk.EventController](https://docs.gtk.org/gtk4/class.EventController.html) instances. For a certain action to happen multiple user events are used. For example a click is a combination of a button press and button release event (only talking mouse clicks now). In most cases also some movement is done. A sequence of a button press, some movement and a button release is treated as one transaction. Once a button is pressed the tool registers itself as the tool that will deal with all subsequent events (a `grab`). Several events can happen based on user events. E.g.: * item is hovered over (motion) * item is hovered over while another item is being moved (`press`, `motion`) * item is hovered over while dragging something else (DnD; `press`, `move`) * grabbed (button press on item) * handle is grabbed (button press on handle) * center of line segment is grabbed (will cause segment to split; button press on line) * ungrabbed (button release) * move (item is moved -> hover + grabbed) * key is pressed * key is released * modifier is pressed (e.g. may cause mouse pointer to change, giving a hit about what a grab event will do. There is a lot of behaviour possible and it can depend on the kind of diagrams that are created what has to be done. To organize the event sequences and keep some order in what the user is doing Tools are used. Tools define what has to happen (find a handle nearly the mouse cursor, move an item). Gaphas contains a set of default tools. Each tool is meant to deal with a special part of the view. A list of responsibilities is also defined here: hover tool: First thing a user wants to know is if the mouse cursor is over an item. The `HoverTool` makes that explicit. - Find a handle or item, if found, mark it as the `hovered_item` item tool: Items are the elements that are actually providing any (visual) meaning to the diagram. ItemTool deals with moving them around. The tool makes sure the right subset of selected elements are moved (e.g. you don’t want to move a nested item if its parent item is already moved, this gives funny visual effects) * On click: find an item, if found become the grabbed tool and set the item as focused. If a used clicked on a handle position that is taken into account * On motion: move the selected items (only the ones that have no selected parent items) * On release: release grab and release item The item tool invokes the Move aspect, or the HandleMove aspect in case a handle is being grabbed. rubberband tool: If no handle or item is selected a rubberband selection is started. scroll and zoom tool: Handy tools for moving the canvas around and zooming in and out. Convenience functionality, basically. There is one more tool, that has not been mentioned yet: placement tool: A special tool to use for placing new items on the screen. As said, tools define *what* has to happen, they don’t say how. Take for example finding a handle: on a normal element (a box or something) that would mean find the handle in one of the corners. On a line, however, that may also mean a not-yet existing handle in the middle of a line segment (there is a functionality that splits the line segment). The *how* is defined by so called aspects [[2]](#id4). ### Separating the *What* from the *How*[#](#separating-the-what-from-the-how) The *what* is decided in a tool. Based on this the *how* logic can be applied to the item at hand. For example: if an item is clicked, it should be marked as the focused item. Same for dragging: if an item is dragged it should be updated based on the event information. It may even apply this to all other selected items. The how logic depends actually on the item it is applied to. Lines have different behaviours than boxes for example. In Gaphas this has been resolved by defining a generic methods. To put it simple: a generic method is a factory that returns a specific method (or instance of a class, as we do in gaphas) based on its parameters. The advantage is that more complex behaviour can be composed. Since the decision on what should happen is done in the tool, the aspect which is then used to work on the item ensures a certain behaviour is performed. [[1](#id1)] as opposed to versions < 0.5, where tools could be shared among multiple views. [[2](#id2)] not the AOP term. The term aspect is coming from a paper by <NAME>: The Tools and Materials metaphor <https://wiki.c2.com/?ToolsAndMaterialsMetaphor..>>. Connections[#](#connections) --- A Port defines a connectable part of an item. Handles can connect to ports to make connections between items. ### Constraints[#](#constraints) Diagram items can have internal constraints, which can be used to position item’s ports within an item itself. For example, Element item could create constraints to position ports over its edges of rectanglular area. The result is duplication of constraints as Element already constraints position of handles to keep them in a rectangle. For example, a horizontal line could be implemented like: ``` class HorizontalLine(gaphas.item.Item): def __init__(self, connections: gaphas.connections.Connections): super(HorizontalLine, self).__init__() self.start = Handle() self.end = Handle() self.port = LinePort(self.start.pos, self.end.pos) connections.add_constraint(self, constraint(horizontal=(self.start.pos, self.end.pos))) ``` ### Connections[#](#id1) Connection between two items is established by creating a constraint between handle’s position and port’s positions (positions are constraint solver variables). To create a constraint between two items, the constraint needs a common coordinate space (each item has it’s own origin coordinate). This can be done with the gaphas.position.MatrixProjection class, which translates coordinates to a common (“canvas”) coordinate space where they can be used to connect two different items. Examples of ports can be found in Gaphas and Gaphor source code * gaphas.item.Line and gaphas.item.Element classes * Gaphor interface and lifeline items have own specific ports Constraint Solver[#](#constraint-solver) --- Gaphas’ constraint solver can be consider the heart of the library. The constraint solver (‘solver’ for short) is used to manage constraints. Both constraint internal to an item, such as handle alignment for a box, as well as inter-item connections, for example when a line is connected to a box. The solver is called during the update of the canvas. A solver contains a set of constraints. Each constraint in itself is pretty straightforward (e.g. variable ‘’a’’ equals variable ‘’b’’). Did I say variable? Yes I did. Let’s start at the bottom and work our way to the solver. A `Variable` is a simple class, contains a value. It behaves like a `float` in many ways. There is one typical thing about Variables: they can be added to Constraints. Constraint are basically equations. The trick is to make all constraints true. That can be pretty tricky, since a Variable can play a role in more than one Constraint. Constraint solving is overseen by the Solver (ah, there it is). Constraints are instances of Constraint class. More specific: subclasses of the Constraint class. A Constraint can perform a specific trick, e.g. centre one Variable between two other Variables or make one Variable equal to another Variable. It’s the Solver’s job to make sure all constraint are true in the end. In some cases this means a constraint needs to be resolved twice, but the Solver sees to it that no deadlocks occur. ### Variables[#](#variables) When a variable is assigned a value it marks itself __dirty__. As a result it will be resolved the next time the solver is asked to. Each variable has a specific ‘’strength’’. Strong variables can not be changed by weak variables, but weak variables can change when a new value is assigned to a stronger variable. The Solver always tries to solve a constraint for the weakest variable. If two variables have equal strength, however, the variable that is most recently changed is considered slightly stronger than the not (or earlier) changed variable. --- The Solver can be found at: <https://github.com/gaphor/gaphas/blob/main/gaphas/solver/>, along with Variable and the Constraint base class. Guides[#](#guides) --- Guides are a tool to align elements with one another. Guides consist of a couple of elements: aspects that hook into the item-drag cycle, and a dedicated painter. ``` >>> from gaphas.view import GtkView >>> from gaphas.painter import PainterChain, ItemPainter, HandlePainter >>> from gaphas.tool import item_tool, zoom_tool >>> from gaphas.guide import GuidePainter >>> view = GtkView() >>> view.painter = ( ... PainterChain() ... .append(ItemPainter(view.selection)) ... .append(HandlePainter(view)) ... .append(GuidePainter(view)) ... ) >>> view.add_controller(item_tool(view)) >>> view.add_controller(zoom_tool(view)) ``` You need to hook up the `GuidePainter`. The aspect are loaded as soon as the module is loaded. Line Segments[#](#line-segments) --- The line segment functionality is an add-on, that will allow the user to add line segments to a line, and merge them. To use this behavior, import the `gaphas.segment` module and add `LineSegmentPainter` to the list of painters for the view. Splitting and merging of lines is supported by `item_tool`, however to actually use it, the `segment` module needs to be imported. ``` >>> from gaphas.view import GtkView >>> from gaphas.painter import PainterChain, ItemPainter, HandlePainter >>> from gaphas.tool import item_tool, zoom_tool >>> from gaphas.segment import LineSegmentPainter >>> view = GtkView() >>> view.painter = ( ... PainterChain() ... .append(ItemPainter(view.selection)) ... .append(HandlePainter(view)) ... .append(LineSegmentPainter(view.selection)) ... ) >>> view.add_controller(item_tool(view)) >>> view.add_controller(zoom_tool(view)) ``` API reference[#](#api-reference) --- ### View[#](#view) View is the central class in Gaphas. It shows your diagram and allows you to interact with it. ### Model[#](#model) #### Protocols[#](#protocols) Although `gaphas.Canvas` can be used as a default model, any class that adhere’s to the Model protocol can be used as a model. *class* gaphas.model.Model(**args*, ***kwargs*)[[source]](_modules/gaphas/model.html#Model)[#](#gaphas.model.Model) Any class that adhere’s to the Model protocol can be used as a model for GtkView. *property* connections*: [Connections](index.html#gaphas.connections.Connections)*[#](#gaphas.model.Model.connections) The connections instance used for this model. get_all_items() → Iterable[[Item](index.html#gaphas.item.Item)][[source]](_modules/gaphas/model.html#Model.get_all_items)[#](#gaphas.model.Model.get_all_items) Iterate over all items in the order they need to be rendered in. Normally that will be depth-first. get_parent(*item: [Item](index.html#gaphas.item.Item)*) → [Item](index.html#gaphas.item.Item) | None[[source]](_modules/gaphas/model.html#Model.get_parent)[#](#gaphas.model.Model.get_parent) Get the parent item of an item. Returns `None` if there is no parent item. get_children(*item: [Item](index.html#gaphas.item.Item) | None*) → Iterable[[Item](index.html#gaphas.item.Item)][[source]](_modules/gaphas/model.html#Model.get_children)[#](#gaphas.model.Model.get_children) Iterate all direct child items of an item. sort(*items: Collection[[Item](index.html#gaphas.item.Item)]*) → Iterable[[Item](index.html#gaphas.item.Item)][[source]](_modules/gaphas/model.html#Model.sort)[#](#gaphas.model.Model.sort) Sort a collection of items in the order they need to be rendered in. request_update(*item: [Item](index.html#gaphas.item.Item)*) → None[[source]](_modules/gaphas/model.html#Model.request_update)[#](#gaphas.model.Model.request_update) Request update for an item. Parameters: **item** ([*Item*](index.html#gaphas.item.Item)) – The item to be updated update_now(*dirty_items: Collection[[Item](index.html#gaphas.item.Item)]*) → None[[source]](_modules/gaphas/model.html#Model.update_now)[#](#gaphas.model.Model.update_now) This method is called during the update process. It will allow the model to do some additional updating of it’s own. register_view(*view: View*) → None[[source]](_modules/gaphas/model.html#Model.register_view)[#](#gaphas.model.Model.register_view) Allow a view to be registered. Registered views should receive update requests for modified items. unregister_view(*view: View*) → None[[source]](_modules/gaphas/model.html#Model.unregister_view)[#](#gaphas.model.Model.unregister_view) Unregister a previously registered view. If a view is not registered, nothing should happen. An item should implement these methods, so it can be rendered by the View. Not that painters or tools can require additional methods. *class* gaphas.item.Item(**args*, ***kwargs*)[[source]](_modules/gaphas/item.html#Item)[#](#gaphas.item.Item) This protocol should be implemented by model items. All items that are rendered on a view. *property* matrix*: [Matrix](index.html#gaphas.matrix.Matrix)*[#](#gaphas.item.Item.matrix) The “local”, item-to-parent matrix. *property* matrix_i2c*: [Matrix](index.html#gaphas.matrix.Matrix)*[#](#gaphas.item.Item.matrix_i2c) Matrix from item to toplevel. handles() → Sequence[[Handle](index.html#gaphas.connector.Handle)][[source]](_modules/gaphas/item.html#Item.handles)[#](#gaphas.item.Item.handles) Return a list of handles owned by the item. ports() → Sequence[[Port](index.html#gaphas.connector.Port)][[source]](_modules/gaphas/item.html#Item.ports)[#](#gaphas.item.Item.ports) Return list of ports owned by the item. point(*x: float*, *y: float*) → float[[source]](_modules/gaphas/item.html#Item.point)[#](#gaphas.item.Item.point) Get the distance from a point (`x`, `y`) to the item. `x` and `y` are in item coordinates. A distance of 0 means the point is on the item. draw(*context: DrawContext*) → None[[source]](_modules/gaphas/item.html#Item.draw)[#](#gaphas.item.Item.draw) Render the item to a canvas view. Context contains the following attributes: * cairo: the CairoContext use this one to draw * selected, focused, hovered: view state of items (True/False) #### Default implementations[#](#default-implementations) ##### Canvas[#](#canvas) The default implementation for a `Model`, is a class called `Canvas`. *class* gaphas.canvas.Canvas[[source]](_modules/gaphas/canvas.html#Canvas)[#](#gaphas.canvas.Canvas) Container class for items. add(*item*, *parent=None*, *index=None*)[[source]](_modules/gaphas/canvas.html#Canvas.add)[#](#gaphas.canvas.Canvas.add) Add an item to the canvas. ``` >>> c = Canvas() >>> from gaphas import item >>> i = item.Item() >>> c.add(i) >>> len(c._tree.nodes) 1 >>> i._canvas is c True ``` remove(*item*)[[source]](_modules/gaphas/canvas.html#Canvas.remove)[#](#gaphas.canvas.Canvas.remove) Remove item from the canvas. ``` >>> c = Canvas() >>> from gaphas import item >>> i = item.Item() >>> c.add(i) >>> c.remove(i) >>> c._tree.nodes [] >>> i._canvas ``` reparent(*item*, *parent*, *index=None*)[[source]](_modules/gaphas/canvas.html#Canvas.reparent)[#](#gaphas.canvas.Canvas.reparent) Set new parent for an item. get_all_items() → Iterable[[Item](index.html#gaphas.item.Item)][[source]](_modules/gaphas/canvas.html#Canvas.get_all_items)[#](#gaphas.canvas.Canvas.get_all_items) Get a list of all items. ``` >>> c = Canvas() >>> c.get_all_items() [] >>> from gaphas import item >>> i = item.Item() >>> c.add(i) >>> c.get_all_items() [<gaphas.item.Item ...>] ``` get_root_items()[[source]](_modules/gaphas/canvas.html#Canvas.get_root_items)[#](#gaphas.canvas.Canvas.get_root_items) Return the root items of the canvas. ``` >>> c = Canvas() >>> c.get_all_items() [] >>> from gaphas import item >>> i = item.Item() >>> c.add(i) >>> ii = item.Item() >>> c.add(ii, i) >>> c.get_root_items() [<gaphas.item.Item ...>] ``` get_parent(*item: [Item](index.html#gaphas.item.Item)*) → [Item](index.html#gaphas.item.Item) | None[[source]](_modules/gaphas/canvas.html#Canvas.get_parent)[#](#gaphas.canvas.Canvas.get_parent) See tree.Tree.get_parent(). ``` >>> c = Canvas() >>> from gaphas import item >>> i = item.Item() >>> c.add(i) >>> ii = item.Item() >>> c.add(ii, i) >>> c.get_parent(i) >>> c.get_parent(ii) <gaphas.item.Item ...> ``` get_children(*item: [Item](index.html#gaphas.item.Item) | None*) → Iterable[[Item](index.html#gaphas.item.Item)][[source]](_modules/gaphas/canvas.html#Canvas.get_children)[#](#gaphas.canvas.Canvas.get_children) See tree.Tree.get_children(). ``` >>> c = Canvas() >>> from gaphas import item >>> i = item.Item() >>> c.add(i) >>> ii = item.Item() >>> c.add(ii, i) >>> iii = item.Item() >>> c.add(iii, ii) >>> list(c.get_children(iii)) [] >>> list(c.get_children(ii)) [<gaphas.item.Item ...>] >>> list(c.get_children(i)) [<gaphas.item.Item ...>] ``` sort(*items: Iterable[[Item](index.html#gaphas.item.Item)]*) → Iterable[[Item](index.html#gaphas.item.Item)][[source]](_modules/gaphas/canvas.html#Canvas.sort)[#](#gaphas.canvas.Canvas.sort) Sort a list of items in the order in which they are traversed in the canvas (Depth first). ``` >>> c = Canvas() >>> from gaphas import item >>> i1 = item.Line() >>> c.add(i1) >>> i2 = item.Line() >>> c.add(i2) >>> i3 = item.Line() >>> c.add (i3) >>> c.update_now((i1, i2, i3)) # ensure items are indexed >>> s = c.sort([i2, i3, i1]) >>> s[0] is i1 and s[1] is i2 and s[2] is i3 True ``` get_matrix_i2c(*item: [Item](index.html#gaphas.item.Item)*) → [Matrix](index.html#gaphas.matrix.Matrix)[[source]](_modules/gaphas/canvas.html#Canvas.get_matrix_i2c)[#](#gaphas.canvas.Canvas.get_matrix_i2c) Get the Item to Canvas matrix for `item`. item:The item who’s item-to-canvas transformation matrix should be found calculate:True will allow this function to actually calculate it, instead of raising an AttributeError when no matrix is present yet. Note that out-of-date matrices are not recalculated. request_update(*item: [Item](index.html#gaphas.item.Item)*) → None[[source]](_modules/gaphas/canvas.html#Canvas.request_update)[#](#gaphas.canvas.Canvas.request_update) Set an update request for the item. ``` >>> c = Canvas() >>> from gaphas import item >>> i = item.Item() >>> ii = item.Item() >>> c.add(i) >>> c.add(ii, i) >>> len(c._dirty_items) 0 >>> c.update_now((i, ii)) >>> len(c._dirty_items) 0 ``` request_matrix_update(*item*)[[source]](_modules/gaphas/canvas.html#Canvas.request_matrix_update)[#](#gaphas.canvas.Canvas.request_matrix_update) Schedule only the matrix to be updated. update_now(***kwargs*)[#](#gaphas.canvas.Canvas.update_now) Decorate function with a mutex that prohibits recursive execution. register_view(*view: View*) → None[[source]](_modules/gaphas/canvas.html#Canvas.register_view)[#](#gaphas.canvas.Canvas.register_view) Register a view on this canvas. This method is called when setting a canvas on a view and should not be called directly from user code. unregister_view(*view: View*) → None[[source]](_modules/gaphas/canvas.html#Canvas.unregister_view)[#](#gaphas.canvas.Canvas.unregister_view) Unregister a view on this canvas. This method is called when setting a canvas on a view and should not be called directly from user code. ##### Items[#](#items) Gaphas provides two default items, an box-like element and a line shape. *class* gaphas.item.Element(*connections: [Connections](index.html#gaphas.connections.Connections)*, *width: float = 10*, *height: float = 10*, ***kwargs: object*)[[source]](_modules/gaphas/item.html#Element)[#](#gaphas.item.Element) An Element has 4 handles (for a start): ``` NW +---+ NE | | SW +---+ SE ``` *property* width*: float*[#](#gaphas.item.Element.width) Width of the box, calculated as the distance from the left and right handle. *property* height*: float*[#](#gaphas.item.Element.height) Height. handles() → Sequence[[Handle](index.html#gaphas.connector.Handle)][[source]](_modules/gaphas/item.html#Element.handles)[#](#gaphas.item.Element.handles) Return a list of handles owned by the item. ports() → Sequence[[Port](index.html#gaphas.connector.Port)][[source]](_modules/gaphas/item.html#Element.ports)[#](#gaphas.item.Element.ports) Return list of ports. point(*x: float*, *y: float*) → float[[source]](_modules/gaphas/item.html#Element.point)[#](#gaphas.item.Element.point) Distance from the point (x, y) to the item. ``` >>> e = Element() >>> e.point(20, 10) 10.0 ``` *class* gaphas.item.Line(*connections: [Connections](index.html#gaphas.connections.Connections)*, ***kwargs: object*)[[source]](_modules/gaphas/item.html#Line)[#](#gaphas.item.Line) A Line item. Properties:* fuzziness (0.0..n): an extra margin that should be taken intoaccount when calculating the distance from the line (using point()). * orthogonal (bool): whether or not the line should beorthogonal (only straight angles) * horizontal: first line segment is horizontal * line_width: width of the line to be drawn This line also supports arrow heads on both the begin and end of the line. These are drawn with the methods draw_head(context) and draw_tail(context). The coordinate system is altered so the methods do not have to know about the angle of the line segment (e.g. drawing a line from (10, 10) via (0, 0) to (10, -10) will draw an arrow point). update_orthogonal_constraints() → None[[source]](_modules/gaphas/item.html#Line.update_orthogonal_constraints)[#](#gaphas.item.Line.update_orthogonal_constraints) Update the constraints required to maintain the orthogonal line. opposite(*handle: [Handle](index.html#gaphas.connector.Handle)*) → [Handle](index.html#gaphas.connector.Handle)[[source]](_modules/gaphas/item.html#Line.opposite)[#](#gaphas.item.Line.opposite) Given the handle of one end of the line, return the other end. handles() → Sequence[[Handle](index.html#gaphas.connector.Handle)][[source]](_modules/gaphas/item.html#Line.handles)[#](#gaphas.item.Line.handles) Return a list of handles owned by the item. ports() → Sequence[[Port](index.html#gaphas.connector.Port)][[source]](_modules/gaphas/item.html#Line.ports)[#](#gaphas.item.Line.ports) Return list of ports. point(*x: float*, *y: float*) → float[[source]](_modules/gaphas/item.html#Line.point)[#](#gaphas.item.Line.point) ``` >>> a = Line() >>> a.handles()[1].pos = 25, 5 >>> a._handles.append(a._create_handle((30, 30))) >>> a.point(-1, 0) 1.0 >>> f"{a.point(5, 4):.3f}" '2.942' >>> f"{a.point(29, 29):.3f}" '0.784' ``` draw_head(*context: DrawContext*) → None[[source]](_modules/gaphas/item.html#Line.draw_head)[#](#gaphas.item.Line.draw_head) Default head drawer: move cursor to the first handle. draw_tail(*context: DrawContext*) → None[[source]](_modules/gaphas/item.html#Line.draw_tail)[#](#gaphas.item.Line.draw_tail) Default tail drawer: draw line to the last handle. draw(*context: DrawContext*) → None[[source]](_modules/gaphas/item.html#Line.draw)[#](#gaphas.item.Line.draw) Draw the line itself. See Item.draw(context). ### Painters[#](#painters) Painters are used to draw the view. #### Protocols[#](#protocols) Each painter adheres to the `Painter` protocol. *class* gaphas.painter.Painter(**args*, ***kwargs*)[[source]](_modules/gaphas/painter/painter.html#Painter)[#](#gaphas.painter.Painter) Painter interface. paint(*items: Collection[[Item](index.html#gaphas.item.Item)]*, *cairo: cairo.Context*) → None[[source]](_modules/gaphas/painter/painter.html#Painter.paint)[#](#gaphas.painter.Painter.paint) Do the paint action (called from the View). Some painters, such as `FreeHandPainter` and `BoundingBoxPainter`, require a special painter protocol: *class* gaphas.painter.painter.ItemPainterType(**args*, ***kwargs*)[[source]](_modules/gaphas/painter/painter.html#ItemPainterType)[#](#gaphas.painter.painter.ItemPainterType) paint_item(*item: [Item](index.html#gaphas.item.Item)*, *cairo: cairo.Context*) → None[[source]](_modules/gaphas/painter/painter.html#ItemPainterType.paint_item)[#](#gaphas.painter.painter.ItemPainterType.paint_item) Draw a single item. paint(*items: Collection[[Item](index.html#gaphas.item.Item)]*, *cairo: cairo.Context*) → None[[source]](_modules/gaphas/painter/painter.html#ItemPainterType.paint)[#](#gaphas.painter.painter.ItemPainterType.paint) Do the paint action (called from the View). #### Default implementations[#](#default-implementations) *class* gaphas.painter.PainterChain[[source]](_modules/gaphas/painter/chain.html#PainterChain)[#](#gaphas.painter.PainterChain) Chain up a set of painters. append(*painter: [Painter](index.html#gaphas.painter.Painter)*) → [PainterChain](index.html#gaphas.painter.PainterChain)[[source]](_modules/gaphas/painter/chain.html#PainterChain.append)[#](#gaphas.painter.PainterChain.append) Add a painter to the list of painters. prepend(*painter: [Painter](index.html#gaphas.painter.Painter)*) → [PainterChain](index.html#gaphas.painter.PainterChain)[[source]](_modules/gaphas/painter/chain.html#PainterChain.prepend)[#](#gaphas.painter.PainterChain.prepend) Add a painter to the beginning of the list of painters. *class* gaphas.painter.ItemPainter(*selection: Selection | None = None*)[[source]](_modules/gaphas/painter/itempainter.html#ItemPainter)[#](#gaphas.painter.ItemPainter) *class* gaphas.painter.HandlePainter(*view: GtkView*)[[source]](_modules/gaphas/painter/handlepainter.html#HandlePainter)[#](#gaphas.painter.HandlePainter) Draw handles of items that are marked as selected in the view. *class* gaphas.painter.BoundingBoxPainter(*item_painter: [ItemPainterType](index.html#gaphas.painter.painter.ItemPainterType)*)[[source]](_modules/gaphas/painter/boundingboxpainter.html#BoundingBoxPainter)[#](#gaphas.painter.BoundingBoxPainter) This specific case of an ItemPainter is used to calculate the bounding boxes (in cairo device coordinates) for the items. Deprecated since 3.2: Bounding boxes are calculated in the View directly. This class is not a pass-through for the provided item_painter. *class* gaphas.painter.FreeHandPainter(*item_painter: [ItemPainterType](index.html#gaphas.painter.painter.ItemPainterType)*, *sloppiness: float = 0.5*)[[source]](_modules/gaphas/painter/freehand.html#FreeHandPainter)[#](#gaphas.painter.FreeHandPainter) This painter is a wrapper for an Item painter. The Cairo context is modified to allow for a sloppy, hand written drawing style. Range [0..2.0] gives acceptable results. * Draftsman: 0.0 * Artist: 0.25 * Cartoonist: 0.5 * Child: 1.0 * Drunk: 2.0 #### Rubberband tool[#](#rubberband-tool) A special painter is used to display rubberband selection. This painter shares some state with the rubberband tool. ### Tools[#](#tools) Tools are used to interact with the view. Each tool is basically a function that produces a [Gtk.EventController](https://docs.gtk.org/gtk4/class.EventController.html). The event controllers are already configured. The central part for Gaphas is the View. That’s the class that ensures stuff is displayed and can be interacted with. ### Handles and Ports[#](#handles-and-ports) To connect one item to another, you need something to connect, and something to connect to. These roles are fulfilled by `Handle` and `Port`. The Handle is an item you normally see on screen as a small square, either green or red. Although the actual shape depends on the [Painter](painters.html#gaphas.painter.HandlePainter) used. Ports represent the receiving side. A port decides if it wants a connection with a handle. If it does, a constraint can be created and this constraint will be managed by a [Connections](connections.html) instance. It is not uncommon to create special ports to suite your application’s behavior, whereas Handles are rarely subtyped. #### Handle[#](#handle) *class* gaphas.connector.Handle(*pos: Tuple[float, float] = (0, 0)*, *strength: int = 20*, *connectable: bool = False*, *movable: bool = True*)[[source]](_modules/gaphas/handle.html#Handle)[#](#gaphas.connector.Handle) Handles are used to support modifications of Items. If the handle is connected to an item, the `connected_to` property should refer to the item. A `disconnect` handler should be provided that handles all disconnect behaviour (e.g. clean up constraints and `connected_to`). Note for those of you that use the Pickle module to persist a canvas: The property `disconnect` should contain a callable object (with __call__() method), so the pickle handler can also pickle that. Pickle is not capable of pickling `instancemethod` or `function` objects. *property* pos[#](#gaphas.connector.Handle.pos) The Handle’s position *property* connectable*: bool*[#](#gaphas.connector.Handle.connectable) Can this handle actually connectect to a port? *property* movable*: bool*[#](#gaphas.connector.Handle.movable) Can this handle be moved by a mouse pointer? *property* visible*: bool*[#](#gaphas.connector.Handle.visible) Is this handle visible to the user? *property* glued*: bool*[#](#gaphas.connector.Handle.glued) Is the handle being moved and about to be connected? #### Port[#](#port) The `Port` class. There are two default implementations: `LinePort` and `PointPort`. *class* gaphas.connector.Port[[source]](_modules/gaphas/port.html#Port)[#](#gaphas.connector.Port) Port connectable part of an item. The Item’s handle connects to a port. glue(*pos: Tuple[SupportsFloat, SupportsFloat]*) → tuple[Tuple[float, float], float][[source]](_modules/gaphas/port.html#Port.glue)[#](#gaphas.connector.Port.glue) Get glue point on the port and distance to the port. constraint(*item: [Item](index.html#gaphas.item.Item)*, *handle: [Handle](index.html#gaphas.connector.Handle)*, *glue_item: [Item](index.html#gaphas.item.Item)*) → Constraint[[source]](_modules/gaphas/port.html#Port.constraint)[#](#gaphas.connector.Port.constraint) Create connection constraint between item’s handle and glue item. *class* gaphas.connector.LinePort(*start: [Position](index.html#gaphas.position.Position)*, *end: [Position](index.html#gaphas.position.Position)*)[[source]](_modules/gaphas/port.html#LinePort)[#](#gaphas.connector.LinePort) Port defined as a line between two handles. glue(*pos: Tuple[SupportsFloat, SupportsFloat]*) → tuple[Tuple[float, float], float][[source]](_modules/gaphas/port.html#LinePort.glue)[#](#gaphas.connector.LinePort.glue) Get glue point on the port and distance to the port. ``` >>> p1, p2 = (0.0, 0.0), (100.0, 100.0) >>> port = LinePort(p1, p2) >>> port.glue((50, 50)) ((50.0, 50.0), 0.0) >>> port.glue((0, 10)) ((5.0, 5.0), 7.0710678118654755) ``` constraint(*item: [Item](index.html#gaphas.item.Item)*, *handle: [Handle](index.html#gaphas.connector.Handle)*, *glue_item: [Item](index.html#gaphas.item.Item)*) → Constraint[[source]](_modules/gaphas/port.html#LinePort.constraint)[#](#gaphas.connector.LinePort.constraint) Create connection line constraint between item’s handle and the port. *class* gaphas.connector.PointPort(*point: [Position](index.html#gaphas.position.Position)*)[[source]](_modules/gaphas/port.html#PointPort)[#](#gaphas.connector.PointPort) Port defined as a point. glue(*pos: Tuple[SupportsFloat, SupportsFloat]*) → tuple[Tuple[float, float], float][[source]](_modules/gaphas/port.html#PointPort.glue)[#](#gaphas.connector.PointPort.glue) Get glue point on the port and distance to the port. ``` >>> h = Handle((10, 10)) >>> port = PointPort(h.pos) >>> port.glue((10, 0)) (<Position object on (10, 10)>, 10.0) ``` constraint(*item: [Item](index.html#gaphas.item.Item)*, *handle: [Handle](index.html#gaphas.connector.Handle)*, *glue_item: [Item](index.html#gaphas.item.Item)*) → MultiConstraint[[source]](_modules/gaphas/port.html#PointPort.constraint)[#](#gaphas.connector.PointPort.constraint) Return connection position constraint between item’s handle and the port. ### Connections[#](#connections) The `Connections` class can be used to manage any type of constraint within, and between items. *class* gaphas.connections.Connections(*solver: Solver | None = None*)[[source]](_modules/gaphas/connections.html#Connections)[#](#gaphas.connections.Connections) Manage connections and constraints. add_handler(*handler*)[[source]](_modules/gaphas/connections.html#Connections.add_handler)[#](#gaphas.connections.Connections.add_handler) Add a callback handler. Handlers are triggered when a constraint has been solved. remove_handler(*handler*)[[source]](_modules/gaphas/connections.html#Connections.remove_handler)[#](#gaphas.connections.Connections.remove_handler) Remove a previously assigned handler. *property* solver*: Solver*[#](#gaphas.connections.Connections.solver) The solver used by this connections instance. solve() → None[[source]](_modules/gaphas/connections.html#Connections.solve)[#](#gaphas.connections.Connections.solve) Solve all constraints. add_constraint(*item: [Item](index.html#gaphas.item.Item)*, *constraint: Constraint*) → Constraint[[source]](_modules/gaphas/connections.html#Connections.add_constraint)[#](#gaphas.connections.Connections.add_constraint) Add a “simple” constraint for an item. remove_constraint(*item: [Item](index.html#gaphas.item.Item)*, *constraint: Constraint*) → None[[source]](_modules/gaphas/connections.html#Connections.remove_constraint)[#](#gaphas.connections.Connections.remove_constraint) Remove an item specific constraint. connect_item(*item: [Item](index.html#gaphas.item.Item)*, *handle: [Handle](index.html#gaphas.connector.Handle)*, *connected: [Item](index.html#gaphas.item.Item)*, *port: [Port](index.html#gaphas.connector.Port) | None*, *constraint: Constraint | None = None*, *callback: Callable[[[Item](index.html#gaphas.item.Item), [Handle](index.html#gaphas.connector.Handle), [Item](index.html#gaphas.item.Item), [Port](index.html#gaphas.connector.Port)], None] | None = None*) → None[[source]](_modules/gaphas/connections.html#Connections.connect_item)[#](#gaphas.connections.Connections.connect_item) Create a connection between two items. The connection is registered and the constraint is added to the constraint solver. The pair `(item, handle)` should be unique and not yet connected. The callback is invoked when the connection is broken. Parameters: * **item** ([*Item*](index.html#gaphas.item.Item)) – Connecting item (i.e. a line). * **handle** ([*Handle*](index.html#gaphas.connector.Handle)) – Handle of connecting item. * **connected** ([*Item*](index.html#gaphas.item.Item)) – Connected item (i.e. a box). * **port** ([*Port*](index.html#gaphas.connector.Port)) – Port of connected item. * **constraint** (*Constraint*) – Constraint to keep the connection in place. * **callback** (*(**)* *-> None*) – Function to be called on disconnection. `ConnectionError` is raised in case handle is already registered on a connection. disconnect_item(*item: [Item](index.html#gaphas.item.Item)*, *handle: [Handle](index.html#gaphas.connector.Handle) | None = None*) → None[[source]](_modules/gaphas/connections.html#Connections.disconnect_item)[#](#gaphas.connections.Connections.disconnect_item) Disconnect the connections of an item. If handle is not None, only the connection for that handle is disconnected. remove_connections_to_item(*item: [Item](index.html#gaphas.item.Item)*) → None[[source]](_modules/gaphas/connections.html#Connections.remove_connections_to_item)[#](#gaphas.connections.Connections.remove_connections_to_item) Remove all connections (handles connected to and constraints) for a specific item (to and from the item). This is some brute force cleanup (e.g. if constraints are referenced by items, those references are not cleaned up). reconnect_item(*item: [Item](index.html#gaphas.item.Item)*, *handle: [Handle](index.html#gaphas.connector.Handle)*, *port: [Port](index.html#gaphas.connector.Port) | None = None*, *constraint: Constraint | None = None*) → None[[source]](_modules/gaphas/connections.html#Connections.reconnect_item)[#](#gaphas.connections.Connections.reconnect_item) Update an existing connection. This is used to provide a new constraint to the connection. `item` and `handle` are the keys to the to-be-updated connection. get_connection(*handle: [Handle](index.html#gaphas.connector.Handle)*) → Connection | None[[source]](_modules/gaphas/connections.html#Connections.get_connection)[#](#gaphas.connections.Connections.get_connection) Get connection information for specified handle. ``` >>> c = Connections() >>> from gaphas.item import Line >>> line = Line() >>> from gaphas import item >>> i = item.Line() >>> ii = item.Line() >>> c.connect_item(i, i.handles()[0], ii, ii.ports()[0]) >>> c.get_connection(i.handles()[0]) Connection(item=<gaphas.item.Line object at 0x...) >>> c.get_connection(i.handles()[1]) >>> c.get_connection(ii.handles()[0]) ``` get_connections(*item: [Item](index.html#gaphas.item.Item) | None = None*, *handle: [Handle](index.html#gaphas.connector.Handle) | None = None*, *connected: [Item](index.html#gaphas.item.Item) | None = None*, *port: [Port](index.html#gaphas.connector.Port) | None = None*) → Iterator[Connection][[source]](_modules/gaphas/connections.html#Connections.get_connections)[#](#gaphas.connections.Connections.get_connections) Return an iterator of connection information. The list contains (item, handle). As a result an item may be in the list more than once (depending on the number of handles that are connected). If `item` is connected to itself it will also appear in the list. ``` >>> c = Connections() >>> from gaphas import item >>> i = item.Line() >>> ii = item.Line() >>> iii = item.Line() >>> c.connect_item(i, i.handles()[0], ii, ii.ports()[0], None) ``` ``` >>> list(c.get_connections(item=i)) [Connection(item=<gaphas.item.Line object at 0x...] >>> list(c.get_connections(connected=i)) [] >>> list(c.get_connections(connected=ii)) [Connection(item=<gaphas.item.Line object at 0x...] ``` ``` >>> c.connect_item(ii, ii.handles()[0], iii, iii.ports()[0], None) >>> list(c.get_connections(item=ii)) [Connection(item=<gaphas.item.Line object at 0x...] >>> list(c.get_connections(connected=iii)) [Connection(item=<gaphas.item.Line object at 0x...] ``` ### Variables and Position[#](#variables-and-position) The most basic class for a solvable value is `Variable`. It acts a lot like a `float`, which makes it easy to work with. Next to that there’s Position, which is a coordinate `(x, y)` defined by two variables. To support connections between variables, a `MatrixProjection` class is available. It translates a position to a common coordinate space, based on `Item.matrix_i2c`. Normally, it’s only `Ports` that deal with item-to-common translation of positions. *class* gaphas.solver.Variable(*value: SupportsFloat = 0.0*, *strength: int = 20*)[[source]](_modules/gaphas/solver/variable.html#Variable)[#](#gaphas.solver.Variable) Representation of a variable in the constraint solver. Each Variable has a `value` and a `strength`. In a constraint the weakest variables are changed. You can even do some calculating with it. The Variable always represents a float variable. The `variable` decorator can be used to easily define variables in classes. add_handler(*handler: Callable[[[Variable](index.html#gaphas.solver.Variable), float], None]*) → None[[source]](_modules/gaphas/solver/variable.html#Variable.add_handler)[#](#gaphas.solver.Variable.add_handler) Add a handler, to be invoked when the value changes. remove_handler(*handler: Callable[[[Variable](index.html#gaphas.solver.Variable), float], None]*) → None[[source]](_modules/gaphas/solver/variable.html#Variable.remove_handler)[#](#gaphas.solver.Variable.remove_handler) Remove a handler. notify(*old: float*) → None[[source]](_modules/gaphas/solver/variable.html#Variable.notify)[#](#gaphas.solver.Variable.notify) Notify all handlers. *property* strength*: int*[#](#gaphas.solver.Variable.strength) Strength. dirty() → None[[source]](_modules/gaphas/solver/variable.html#Variable.dirty)[#](#gaphas.solver.Variable.dirty) Mark the variable dirty in all attached constraints. Variables are marked dirty also during constraints solving to solve all dependent constraints, i.e. two equals constraints between 3 variables. Variables can have different strengths. The higher the number, the stronger the variable. Variables can be `VERY_WEAK` (0), up to `REQUIRED` (100). Other constants are `WEAK` (10) `NORMAL` (20) `STRONG` (30), and `VERY_STRONG` (40). gaphas.solver.variable(*strength=20*, *varname=None*)[[source]](_modules/gaphas/solver/variable.html#variable)[#](#gaphas.solver.variable) Easy-to-use drop Variable descriptor. ``` >>> class A(object): ... x = variable(varname='_v_x') ... y = variable(STRONG) ... def __init__(self): ... self.x = 12 >>> a = A() >>> a.x Variable(12, 20) >>> a._v_x Variable(12, 20) >>> a.x = 3 >>> a.x Variable(3, 20) >>> a.y Variable(0, 30) ``` *class* gaphas.position.Position(*x*, *y*, *strength=20*)[[source]](_modules/gaphas/position.html#Position)[#](#gaphas.position.Position) A point constructed of two Variable’s. ``` >>> vp = Position(3, 5) >>> vp.x, vp.y (Variable(3, 20), Variable(5, 20)) >>> vp.pos (Variable(3, 20), Variable(5, 20)) >>> vp[0], vp[1] (Variable(3, 20), Variable(5, 20)) ``` *class* gaphas.position.MatrixProjection(*pos: [Position](index.html#gaphas.position.Position)*, *matrix: [Matrix](index.html#gaphas.matrix.Matrix)*)[[source]](_modules/gaphas/position.html#MatrixProjection)[#](#gaphas.position.MatrixProjection) One of Gaphas’ USP is it’s the way it handles connections and the constraint solver. ### Matrix[#](#matrix) The `Matrix` class used to records item placement (translation), scale and skew. *class* gaphas.matrix.Matrix(*xx: float = 1.0*, *yx: float = 0.0*, *xy: float = 0.0*, *yy: float = 1.0*, *x0: float = 0.0*, *y0: float = 0.0*, *matrix: cairo.Matrix | None = None*)[[source]](_modules/gaphas/matrix.html#Matrix)[#](#gaphas.matrix.Matrix) Matrix wrapper. ``` >>> Matrix() Matrix(1.0, 0.0, 0.0, 1.0, 0.0, 0.0) ``` ### Rectangle[#](#rectangle) *class* gaphas.geometry.Rectangle(*x: float = 0*, *y: float = 0*, *width: float | None = None*, *height: float | None = None*, *x1: float = 0*, *y1: float = 0*)[[source]](_modules/gaphas/geometry.html#Rectangle)[#](#gaphas.geometry.Rectangle) Python Rectangle implementation. Rectangles can be added (union), substituted (intersection) and points and rectangles can be tested to be in the rectangle. ``` >>> r1= Rectangle(1,1,5,5) >>> r2 = Rectangle(3,3,6,7) ``` Test if two rectangles intersect: ``` >>> if r1 - r2: 'yes' 'yes' ``` ``` >>> r1, r2 = Rectangle(1,2,3,4), Rectangle(1,2,3,4) >>> r1 == r2 True ``` ``` >>> r = Rectangle(-5, 3, 10, 8) >>> r.width = 2 >>> r Rectangle(-5, 3, 2, 8) ``` ``` >>> r = Rectangle(-5, 3, 10, 8) >>> r.height = 2 >>> r Rectangle(-5, 3, 10, 2) ``` expand(*delta: float*) → None[[source]](_modules/gaphas/geometry.html#Rectangle.expand)[#](#gaphas.geometry.Rectangle.expand) ``` >>> r = Rectangle(-5, 3, 10, 8) >>> r.expand(5) >>> r Rectangle(-10, -2, 20, 18) ``` tuple() → tuple[float, float, float, float][[source]](_modules/gaphas/geometry.html#Rectangle.tuple)[#](#gaphas.geometry.Rectangle.tuple) A type safe version of tuple(rectangle). ### Geometry functions[#](#geometry-functions) gaphas.geometry.distance_point_point(*point1: Tuple[float, float]*, *point2: Tuple[float, float] = (0.0, 0.0)*) → float[[source]](_modules/gaphas/geometry.html#distance_point_point)[#](#gaphas.geometry.distance_point_point) Return the distance from point `point1` to `point2`. ``` >>> f"{distance_point_point((0,0), (1,1)):.3f}" '1.414' ``` gaphas.geometry.distance_point_point_fast(*point1: Tuple[float, float]*, *point2: Tuple[float, float] = (0.0, 0.0)*) → float[[source]](_modules/gaphas/geometry.html#distance_point_point_fast)[#](#gaphas.geometry.distance_point_point_fast) Return the distance from point `point1` to `point2`. This version is faster than `distance_point_point()`, but less precise. ``` >>> distance_point_point_fast((0,0), (1,1)) 2 ``` gaphas.geometry.distance_rectangle_point(*rect: Rect | [Rectangle](index.html#gaphas.geometry.Rectangle)*, *point: Point*) → float[[source]](_modules/gaphas/geometry.html#distance_rectangle_point)[#](#gaphas.geometry.distance_rectangle_point) Return the distance (fast) from a rectangle `(x, y, width,height)` to a `point`. gaphas.geometry.point_on_rectangle(*rect: Rect | [Rectangle](index.html#gaphas.geometry.Rectangle)*, *point: Point*, *border: bool = False*) → Point[[source]](_modules/gaphas/geometry.html#point_on_rectangle)[#](#gaphas.geometry.point_on_rectangle) Return the point on which `point` can be projecten on the rectangle. `border = True` will make sure the point is bound to the border of the reactangle. Otherwise, if the point is in the rectangle, it’s okay. gaphas.geometry.distance_line_point(*line_start: Tuple[float, float]*, *line_end: Tuple[float, float]*, *point: Tuple[float, float]*) → tuple[float, Tuple[float, float]][[source]](_modules/gaphas/geometry.html#distance_line_point)[#](#gaphas.geometry.distance_line_point) Calculate the distance of a `point` from a line. The line is marked by begin and end point `line_start` and `line_end`. A tuple is returned containing the distance and point on the line. gaphas.geometry.intersect_line_line(*line1_start: Point*, *line1_end: Point*, *line2_start: Point*, *line2_end: Point*) → Point | None[[source]](_modules/gaphas/geometry.html#intersect_line_line)[#](#gaphas.geometry.intersect_line_line) Find the point where the lines (segments) defined by `(line1_start, line1_end)` and `(line2_start, line2_end)` intersect. If no intersection occurs, `None` is returned. ``` >>> intersect_line_line((3, 0), (8, 10), (0, 0), (10, 10)) (6, 6) >>> intersect_line_line((0, 0), (10, 10), (3, 0), (8, 10)) (6, 6) >>> intersect_line_line((0, 0), (10, 10), (8, 10), (3, 0)) (6, 6) >>> intersect_line_line((8, 10), (3, 0), (0, 0), (10, 10)) (6, 6) >>> intersect_line_line((0, 0), (0, 10), (3, 0), (8, 10)) >>> intersect_line_line((0, 0), (0, 10), (3, 0), (3, 10)) ``` Ticket #168: >>> intersect_line_line((478.0, 117.0), (478.0, 166.0), (527.5, 141.5), (336.5, 139.5)) (478.5, 141.48167539267016) >>> intersect_line_line((527.5, 141.5), (336.5, 139.5), (478.0, 117.0), (478.0, 166.0)) (478.5, 141.48167539267016) This is a Python translation of the `lines_intersect`, C Code from Graphics Gems II, Academic Press, Inc. The original routine was written by <NAME>. EULA: The Graphics Gems code is copyright-protected. In other words, you cannot claim the text of the code as your own and resell it. Using the code is permitted in any program, product, or library, non-commercial or commercial. Giving credit is not required, though is a nice gesture. The code comes as-is, and if there are any flaws or problems with any Gems code, nobody involved with Gems - authors, editors, publishers, or webmasters - are to be held responsible. Basically, don’t be a jerk, and remember that anything free comes with no guarantee. gaphas.geometry.rectangle_contains(*inner: Tuple[float, float, float, float]*, *outer: Tuple[float, float, float, float]*) → bool[[source]](_modules/gaphas/geometry.html#rectangle_contains)[#](#gaphas.geometry.rectangle_contains) Returns True if `inner` rect is contained in `outer` rect. gaphas.geometry.rectangle_intersects(*recta: Tuple[float, float, float, float]*, *rectb: Tuple[float, float, float, float]*) → bool[[source]](_modules/gaphas/geometry.html#rectangle_intersects)[#](#gaphas.geometry.rectangle_intersects) Return True if `recta` and `rectb` intersect. ``` >>> rectangle_intersects((5,5,20, 20), (10, 10, 1, 1)) True >>> rectangle_intersects((40, 30, 10, 1), (1, 1, 1, 1)) False ``` gaphas.geometry.rectangle_clip(*recta: Rect*, *rectb: Rect*) → Rect | None[[source]](_modules/gaphas/geometry.html#rectangle_clip)[#](#gaphas.geometry.rectangle_clip) Return the clipped rectangle of `recta` and `rectb`. If they do not intersect, `None` is returned. ``` >>> rectangle_clip((0, 0, 20, 20), (10, 10, 20, 20)) (10, 10, 10, 10) ``` Finally there are classes and modules that make up the building blocks on which Gaphas is built: Quadtree[#](#quadtree) --- In order to find items and handles fast on a 2D surface, a geometric structure is required. There are two popular variants: [Quadtrees](http://en.wikipedia.org/wiki/Quadtree) and [R-trees](http://en.wikipedia.org/wiki/R-tree). R-trees are tough and well suited for non-moving data. Quadtrees are easier to understand and easier to maintain. Idea: * Divide the view in 4 quadrants and place each item in a quadrant. * When a quadrant has more than ‘’x’’ elements, divide it again. * When an item overlaps more than one quadrant, it’s added to the owner. Gaphas uses item bounding boxed to determine where items should be put. It is also possible to relocate or remove items to the tree. The Quadtree itself is added as part of Gaphas’ View. The view is aware of item’s bounding boxes as it is responsible for user interaction. The Quadtree size is defined by its contents. ### Interface[#](#interface) The Quadtree interface is simple and tailored towards the use cases of gaphas. Important properties: * bounds: boundaries of the canvas Methods for working with items in the quadtree: * add(item, bounds): add an item to the quadtree * remove(item): remove item from the tree * update(item, new_bounds): replace an item in the quadtree, using it’s new boundaries. * Multiple ways of finding items have been implemented: 1. Find item closest to point 2. Find all items within distance d of a point 3. Find all items inside a rectangle 4. Find all items inside or intersecting with a rectangle ### Implementation[#](#implementation) The implementation of gaphas’ Quadtree can be found at <https://github.com/gaphor/gaphas/blob/main/gaphas/quadtree.py>. Here’s an example of the Quadtree in action (Gaphas’ demo app with gaphas.view.DEBUG_DRAW_QUADTREE enabled): The screen is divided into four equal quadrants. The first quadrant has many items, therefore it has been divided again. #### References[#](#references) (!PyGame) <http://www.pygame.org/wiki/QuadTree?parent=CookBook(PythonCAD) <https://sourceforge.net/p/pythoncad/code/ci/master/tree/PythonCAD/Generic/quadtree.pyTable[#](#table) --- Table is an internal structure. It can be best compared to a table in a database. On the table, indexes can be defined. Tables are used when data should be made available in different forms. Source code: <https://github.com/gaphor/gaphas/blob/main/gaphas/table.py>. Tree[#](#tree) --- Tree is an internal structure used by the default view model implementation (`gaphas.Canvas`). A tree consists of nodes. The tree is optimized for depth-first search. Source code: <https://github.com/gaphor/gaphas/blob/main/gaphas/tree.py>. Decorators[#](#decorators) --- *class* gaphas.decorators.g_async(*single: bool = False*, *timeout: int = 0*, *priority: int = 200*)[[source]](_modules/gaphas/decorators.html#g_async)[#](#gaphas.decorators.g_async) Instead of calling the function, schedule an idle handler at a given priority. This requires the async’ed method to be called from within the GTK main loop. Otherwise the method is executed directly. If a function’s first argument is “self”, it’s considered a method. Calling the async function from outside the gtk main loop will yield immediate execution. A function can also be a generator. The generator will be fully executed. If run in the main loop, an empty iterator will be returned. A generator is “single” by default. Because of the nature of generators the first invocation will run till completion. gaphas.decorators.nonrecursive(*func*)[[source]](_modules/gaphas/decorators.html#nonrecursive)[#](#gaphas.decorators.nonrecursive) Enforce a function or method is not executed recursively: ``` >>> class A(object): ... @nonrecursive ... def a(self, x=1): ... print(x) ... self.a(x+1) >>> A().a() 1 >>> A().a() 1 ``` On this page The basics * [Class diagram](index.html#document-diagram) * [Interacting with diagrams](index.html#document-tools) * [Connections](index.html#document-connectors) * [Constraint Solver](index.html#document-solver) Advanced * [Guides](index.html#document-guide) * [Line Segments](index.html#document-segment) API * [API reference](index.html#document-api) + [View](index.html#document-api/view) + [Model](index.html#document-api/model) + [Painters](index.html#document-api/painters) + [Tools](index.html#document-api/tools) + [Handles and Ports](index.html#document-api/handles) + [Connections](index.html#document-api/connections) + [Variables and Position](index.html#document-api/variable) + [Matrix](index.html#document-api/matrix) + [Rectangle](index.html#document-api/geometry) + [Geometry functions](index.html#geometry-functions) Internals * [Quadtree](index.html#document-quadtree) * [Table](index.html#document-table) * [Tree](index.html#document-tree) * [Decorators](index.html#document-decorators)
cowplot
cran
R
Package ‘cowplot’ October 12, 2022 Title Streamlined Plot Theme and Plot Annotations for 'ggplot2' Version 1.1.1 Description Provides various features that help with creating publication-quality figures with 'ggplot2', such as a set of themes, functions to align plots and arrange them into complex compound figures, and functions that make it easy to annotate plots and or mix plots with images. The package was originally written for internal use in the Wilke lab, hence the name (<NAME>'s plot package). It has also been used extensively in the book Fundamentals of Data Visualization. URL https://wilkelab.org/cowplot/ BugReports https://github.com/wilkelab/cowplot/issues Depends R (>= 3.5.0) Imports ggplot2 (> 2.2.1), grid, gtable, grDevices, methods, rlang, scales License GPL-2 LazyData true Suggests Cairo, covr, dplyr, forcats, gridGraphics (>= 0.4-0), knitr, lattice, magick, maps, PASWR, patchwork, rmarkdown, ragg, testthat (>= 1.0.0), tidyr, vdiffr (>= 0.3.0), VennDiagram VignetteBuilder knitr Collate 'add_sub.R' 'align_plots.R' 'as_grob.R' 'as_gtable.R' 'axis_canvas.R' 'cowplot.R' 'draw.R' 'get_plot_component.R' 'get_axes.R' 'get_titles.R' 'get_legend.R' 'get_panel.R' 'gtable.R' 'key_glyph.R' 'plot_grid.R' 'save.R' 'set_null_device.R' 'setup.R' 'stamp.R' 'themes.R' 'utils_ggplot2.R' RoxygenNote 7.1.1 Encoding UTF-8 NeedsCompilation no Author <NAME> [aut, cre] (<https://orcid.org/0000-0002-7470-9261>) Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2020-12-30 14:30:02 UTC R topics documented: add_su... 3 align_plot... 5 as_gro... 6 as_gtabl... 7 axis_canva... 7 background_gri... 9 cowplo... 10 draw_figure_labe... 10 draw_gro... 12 draw_imag... 13 draw_labe... 14 draw_lin... 16 draw_plo... 17 draw_plot_labe... 18 draw_tex... 19 get_legen... 20 get_pane... 21 get_plot_componen... 21 get_titl... 22 get_y_axi... 23 ggdra... 24 ggsave... 24 gtable_remove_grob... 25 gtable_squash_col... 26 gtable_squash_row... 26 insert_xaxis_gro... 27 panel_borde... 28 plot_gri... 28 png_null_devic... 32 rectangle_key_glyp... 32 save_plo... 34 set_null_devic... 36 stam... 37 theme_cowplo... 38 theme_ma... 39 theme_minimal_gri... 40 theme_nothin... 42 add_sub Add annotation underneath a plot Description This function can add an arbitrary label or mathematical expression underneath the plot, simi- lar to the sub parameter in base R. It is mostly superseded now by the caption argument to ggplot2::labs(), and it is recommended to use caption instead of add_sub() whenever pos- sible. Usage add_sub( plot, label, x = 0.5, y = 0.5, hjust = 0.5, vjust = 0.5, vpadding = grid::unit(1, "lines"), fontfamily = "", fontface = "plain", color = "black", size = 14, angle = 0, lineheight = 0.9, colour ) Arguments plot A ggplot object or gtable object derived from a ggplot object. label The label with which the plot should be annotated. Can be a plotmath expres- sion. x The x position of the label y The y position of the label hjust Horizontal justification vjust Vertical justification vpadding Vertical padding. The total vertical space added to the label, given in grid units. By default, this is added equally above and below the label. However, by chang- ing the y and vjust parameters, this can be changed. fontfamily The font family fontface The font face ("plain", "bold", etc.) color, colour Text color size Point size of text angle Angle at which text is drawn lineheight Line height of text Details The exact location where the label is placed is controlled by the parameters x, y, hjust, and vjust. By default, all these parameters are set to 0.5, which places the label centered underneath the plot panel. A value of x = 0 indicates the left boundary of the plot panel and a value of x = 1 indicates the right boundary. The parameter hjust works just as elsewhere in ggplot2. Thus, x = 0, hjust = 0 places the label left-justified at the left boundary of the plot panel, x = 0.5, hjust = 0.5 places the label centered underneath the plot panel, and x = 1, hjust = 1 places it right-justified at the right boundary of the plot panel. x-values below 0 or above 1 are allowed, and they move the label beyond the limits of the plot panel. The y coordinates are relative to the added vertical space that is introduced underneath the x-axis label to place the annotation. A value of y=0 indicates the bottom-most edge of that space and a value of y=1 indicates the top-most edge of that space. The total height of the added space is given by the height needed to draw the label plus the value of vpadding. Thus, if y=0, vjust=0 then the extra padding is added entirely above the label, if y=1, vjust=1 then the extra padding is added entirely below the label, and if y=0.5, vjust=0.5 (the default) then the extra padding is added equally above and below the label. As is the case with x, y-values outside the range 0-1 are allowed. In particular, for sufficiently large values of y, the label will eventually be located inside the plot panel. Value A gtable object holding the modified plot. Examples library(ggplot2) theme_set(theme_half_open()) p1 <- ggplot(mtcars, aes(mpg, disp)) + geom_line(colour = "blue") + background_grid(minor='none') ggdraw(add_sub(p1, "This is an annotation.\nAnnotations can span multiple lines.")) # You can also do this repeatedly. p2 <- add_sub(p1, "This formula has no relevance here:", y = 0, vjust = 0) p3 <- add_sub(p2, expression(paste(a^2+b^2, " = ", c^2))) ggdraw(p3) #This code also works with faceted plots: plot.iris <- ggplot(iris, aes(Sepal.Length, Sepal.Width)) + geom_point() + facet_grid(. ~ Species) + stat_smooth(method = "lm") + background_grid(major = 'y', minor = "none") + # add thin horizontal lines panel_border() # and a border around each panel p2 <- add_sub(plot.iris, "Annotation underneath a faceted plot, left justified.", x = 0, hjust = 0) ggdraw(p2) # Finally, it is possible to move the annotation inside of the plot if desired. ggdraw(add_sub(p1, "Annotation inside plot", vpadding=grid::unit(0, "lines"), y = 6, x = 0.03, hjust = 0)) align_plots Align multiple plots vertically and/or horizontally Description Align the plot area of multiple plots. Inputs are a list of plots plus alignment parameters. Horizontal or vertical alignment or both are possible. In the simplest case the function will align all elements of each plot, but it can handle more complex cases as long as the axis parameter is defined. In this case, alignment is done through a call to align_margin(). The function align_plots is called by the plot_grid() function and is usually not called directly, though direct calling of the function is useful if plots with multiple y-axes are desired (see example). Usage align_plots( ..., plotlist = NULL, align = c("none", "h", "v", "hv"), axis = c("none", "l", "r", "t", "b", "lr", "tb", "tblr"), greedy = TRUE ) Arguments ... List of plots to be aligned. plotlist (optional) List of plots to display. Alternatively, the plots can be provided in- dividually as the first n arguments of the function align_plots (see plot_grid examples). align (optional) Specifies whether graphs in the grid should be horizontally ("h") or vertically ("v") aligned. Options are align="none" (default), "hv" (align in both directions), "h", and "v". axis (optional) Specifies whether graphs should be aligned by the left ("l"), right ("r"), top ("t"), or bottom ("b") margins. Options are axis="none" (default), or a string of any combination of "l", "r", "t", and/or "b" in any order (e.g. axis="tblr" or axis="rlbt" for aligning all margins) greedy (optional) Defines the alignment policy when alignment axes are specified via the axis option. greedy = TRUE tries to always align by adjusting the outmost margin. greedy = FALSE aligns all columns/rows in the gtable if possible. Examples library(ggplot2) p1 <- ggplot(mpg, aes(manufacturer, hwy)) + stat_summary(fun.y="median", geom = "bar") + theme_half_open() + theme(axis.text.x = element_text(angle = 45, hjust = 1, vjust= 1)) p2 <- ggplot(mpg, aes(manufacturer, displ)) + geom_point(color="red") + scale_y_continuous(position = "right") + theme_half_open() + theme(axis.text.x = element_blank()) # manually align and plot on top of each other aligned_plots <- align_plots(p1, p2, align="hv", axis="tblr") # Note: In most cases two y-axes should not be used, but this example # illustrates how one could accomplish it. ggdraw(aligned_plots[[1]]) + draw_plot(aligned_plots[[2]]) as_grob Convert a base plot or a ggplot2 plot into a grob Description This function does its best attempt to take whatever you provide it and turn it into a grob. It is primarily meant to convert ggplot plots into grobs, but it will also take any grid object (grob), a recorded base R plot, a formula specifying a base R plot, a function that generates a base R plot, or a trellis object. Usage as_grob(plot, device = NULL) Arguments plot The plot to convert device A function that creates an appropriate null device. See set_null_device() for details. If set to NULL, will use the cowplot-wide default. Examples library(grid) x <- 1:10 y <- (1:10)^2 p <- ~plot(x, y) grid.newpage() grid.draw(as_grob(p)) as_gtable Convert plot or other graphics object into a gtable Description This function does its best attempt to take whatever you provide it and turn it into a gtable. It is primarily meant to convert ggplot plots into gtables, but it will also take any grid object (grob), a recorded R base plot, or a function that generates an R base plot. Usage as_gtable(plot) plot_to_gtable(plot) Arguments plot The plot or other graphics object to convert into a gtable. Here, plot can be any object handled by as_grob(). Details To convert ggplot plots, the function needs to use a null graphics device. This can be set with set_null_device(). axis_canvas Generates a canvas onto which one can draw axis-like objects. Description This function takes an existing ggplot2 plot and copies one or both of the axis into a new plot. The main idea is to use this in conjunction with insert_xaxis_grob() or insert_yaxis_grob() to draw custom axis-like objects or margin annotations. Importantly, while this function works for both continuous and discrete scales, notice that discrete scales are converted into continuous scales in the returned axis canvas. The levels of the discrete scale are placed at continuous values of 1, 2, 3, etc. See Examples for an example of how to convert a discrete scale into a continuous scale. Usage axis_canvas( plot, axis = "y", data = NULL, mapping = aes(), xlim = NULL, ylim = NULL, coord_flip = FALSE ) Arguments plot The plot defining the x and/or y axis range for the axis canvas. axis Specifies which axis to copy from plot. Can be "x", "y", or "xy". data (optional) Data to be displayed in this layer. mapping (optional) Aesthetic mapping to be used in this layer. xlim (optional) Vector of two numbers specifying the limits of the x axis. Ignored if the x axis is copied over from plot. ylim (optional) Vector of two numbers specifying the limits of the y axis. Ignored if the y axis is copied over from plot. coord_flip (optional) If true, flips the coordinate system and applies x limits to the y axis and vice versa. Useful in combination with ggplot2’s coord_flip() function. Examples # annotate line graphs with labels on the right library(dplyr) library(tidyr) library(ggplot2) theme_set(theme_half_open()) x <- seq(0, 10, .1) d <- data.frame(x, linear = x, squared = x*x/5, cubed = x*x*x/25) %>% gather(fun, y, -x) pmain <- ggplot(d, aes(x, y, group = fun)) + geom_line() + scale_x_continuous(expand = c(0, 0)) paxis <- axis_canvas(pmain, axis = "y") + geom_text(data = filter(d, x == max(x)), aes(y = y, label = paste0(" ", fun)), x = 0, hjust = 0, vjust = 0.5) ggdraw(insert_yaxis_grob(pmain, paxis, grid::unit(.25, "null"))) # discrete scale with integrated color legend pmain <- ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_violin(trim = FALSE) + guides(fill = "none") + scale_x_discrete(labels = NULL) + theme_minimal() label_data <- data.frame(x = 1:nlevels(iris$Species), Species = levels(iris$Species)) paxis <- axis_canvas(pmain, axis = "x", data = label_data, mapping = aes(x = x)) + geom_tile(aes(fill = Species, y = 0.5), width = 0.9, height = 0.3) + geom_text(aes(label = Species, y = 0.5), hjust = 0.5, vjust = 0.5, size = 11/.pt) ggdraw(insert_xaxis_grob(pmain, paxis, grid::unit(.07, "null"), position = "bottom")) # add marginal density distributions to plot pmain <- ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) + geom_point() xdens <- axis_canvas(pmain, axis = "x") + geom_density(data=iris, aes(x=Sepal.Length, fill=Species), alpha=0.7, size=.2) # need to set `coord_flip = TRUE` if you plan to use `coord_flip()` ydens <- axis_canvas(pmain, axis = "y", coord_flip = TRUE) + geom_density(data=iris, aes(x=Sepal.Width, fill=Species), alpha=0.7, size=.2) + coord_flip() p1 <- insert_xaxis_grob(pmain, xdens, grid::unit(.2, "null"), position = "top") p2 <- insert_yaxis_grob(p1, ydens, grid::unit(.2, "null"), position = "right") ggdraw(p2) background_grid Add/modify/remove the background grid in a ggplot2 plot Description This function provides a simple way to set the background grid in ggplot2. It doesn’t do anything that can’t be done just the same with theme(). However, it simplifies creation of the most com- monly needed variations. Usage background_grid( major = c("xy", "x", "y", "only_minor", "none"), minor = c("none", "xy", "x", "y"), size.major = 0.5, size.minor = 0.2, color.major = "grey85", color.minor = "grey85", colour.major, colour.minor ) Arguments major Specifies along which axes you would like to plot major grid lines. Options are "xy", "x", "y", "none". minor Specifies along which axes you would like to plot minor grid lines. Options are "xy", "x", "y", "none". size.major Size of the major grid lines. size.minor Size of the minor grid lines. color.major, colour.major Color of the major grid lines. color.minor, colour.minor Color of the minor grid lines. Details Note: This function completely overwrites all background grid settings of the current theme. If that is not what you want, you may be better off using theme() directly. Examples library(ggplot2) ggplot(iris, aes(Sepal.Length, Sepal.Width)) + geom_point() + theme_half_open() + background_grid() cowplot Streamlined Plot Theme and Plot Annotations for ’ggplot2’ Description Provides various features that help with creating publication-quality figures with ’ggplot2’, such as a set of themes, functions to align plots and arrange them into complex compound figures, and functions that make it easy to annotate plots and or mix plots with images. The package was originally written for internal use in the Wilke lab, hence the name (<NAME>’s plot package). It has also been used extensively in the book Fundamentals of Data Visualization. draw_figure_label Add a label to a figure Description The main purpose of this function is to add labels specifying extra information about the figure, such as "Figure 1", or "A" - often useful in cowplots with more than one pane. The function is similar to draw_plot_label. Usage draw_figure_label( label, position = c("top.left", "top", "top.right", "bottom.left", "bottom", "bottom.right"), size, fontface, ... ) Arguments label Label to be drawn position Position of the label, can be one of "top.left", "top", "top.right", "bottom.left", "bottom", "bottom.right". Default is "top.left" size (optional) Size of the label to be drawn. Default is the text size of the current theme fontface (optional) Font face of the label to be drawn. Default is the font face of the current theme ... other arguments passed to draw_plot_label Author(s) <NAME> (<EMAIL>) See Also draw_plot_label Examples library(ggplot2) df <- data.frame( x = 1:10, y1 = 1:10, y2 = (1:10)^2, y3 = (1:10)^3, y4 = (1:10)^4 ) p1 <- ggplot(df, aes(x, y1)) + geom_point() p2 <- ggplot(df, aes(x, y2)) + geom_point() p3 <- ggplot(df, aes(x, y3)) + geom_point() p4 <- ggplot(df, aes(x, y4)) + geom_point() # Create a simple grid p <- plot_grid(p1, p2, p3, p4, align = 'hv') # Default font size and position p + draw_figure_label(label = "Figure 1") # Different position and font size p + draw_figure_label(label = "Figure 1", position = "bottom.right", size = 10) # Using bold font face p + draw_figure_label(label = "Figure 1", fontface = "bold") # Making the label red and slanted p + draw_figure_label(label = "Figure 1", angle = -45, colour = "red") # Labeling an individual plot ggdraw(p2) + draw_figure_label(label = "Figure 1", position = "bottom.right", size = 10) draw_grob Draw a grob. Description Places an arbitrary grob somewhere onto the drawing canvas. By default, coordinates run from 0 to 1, and the point (0, 0) is in the lower left corner of the canvas. Usage draw_grob( grob, x = 0, y = 0, width = 1, height = 1, scale = 1, clip = "inherit", hjust = 0, vjust = 0, halign = 0.5, valign = 0.5 ) Arguments grob The grob to place. x The x location of the grob. (Left side if hjust = 0.) y The y location of the grob. (Bottom side if vjust = 0.) width Width of the grob. height Height of the grob. scale Scales the grob relative to the rectangle defined by x, y, width, height. A setting of scale = 1 indicates no scaling. clip Set to "on" to clip the grob or "inherit" to not clip. Note that clipping doesn’t always work as expected, due to limitations of the grid graphics system. hjust, vjust Horizontal and vertical justification relative to x. halign, valign Horizontal and vertical justification of the grob inside the box. Examples # A grid grob (here a blue circle) g <- grid::circleGrob(gp = grid::gpar(fill = "blue")) # place into the middle of the plotting area, at a scale of 50% ggdraw() + draw_grob(g, scale = 0.5) draw_image Draw an image Description Places an image somewhere onto the drawing canvas. By default, coordinates run from 0 to 1, and the point (0, 0) is in the lower left corner of the canvas. Requires the magick package to work, and fails gracefully if that package is not installed. Usage draw_image( image, x = 0, y = 0, width = 1, height = 1, scale = 1, clip = "inherit", interpolate = TRUE, hjust = 0, vjust = 0, halign = 0.5, valign = 0.5 ) Arguments image The image to place. Can be a file path, a URL, or a raw vector with image data, as in magick::image_read(). Can also be an image previously created by magick::image_read() and related functions. x The x location of the image. (Left side if hjust = 0.) y The y location of the image. (Bottom side if vjust = 0.) width Width of the image. height Height of the image. scale Scales the image relative to the rectangle defined by x, y, width, height. A setting of scale = 1 indicates no scaling. clip Set to "on" to clip the image relative to the box into which it is draw (useful for scale > 1). Note that clipping doesn’t always work as expected, due to limitations of the grid graphics system. interpolate A logical value indicating whether to linearly interpolate the image (the alterna- tive is to use nearest-neighbour interpolation, which gives a more blocky result). hjust, vjust Horizontal and vertical justification relative to x. halign, valign Horizontal and vertical justification of the image inside the box. Examples library(ggplot2) # Use image as plot background p <- ggplot(iris, aes(x = Sepal.Length, fill = Species)) + geom_density(alpha = 0.7) + scale_y_continuous(expand = expansion(mult = c(0, 0.05))) + theme_half_open(12) logo_file <- system.file("extdata", "logo.png", package = "cowplot") ggdraw() + draw_image( logo_file, scale = .7 ) + draw_plot(p) # Place in lower right corner ggdraw() + draw_image( logo_file, scale = .3, x = 1, hjust = 1, halign = 1, valign = 0 ) + draw_plot(p) # Make grid with plot and image cow_file <- system.file("extdata", "cow.jpg", package = "cowplot") p2 <- ggdraw() + draw_image(cow_file, scale = 0.9) plot_grid( p + theme(legend.position = c(1, 1), legend.justification = c(1, 1)), p2, labels = "AUTO" ) # Manipulate images and draw in plot coordinates if (requireNamespace("magick", quietly = TRUE)){ img <- magick::image_transparent( magick::image_read(logo_file), color = "white" ) img2 <- magick::image_negate(img) ggplot(data.frame(x = 1:3, y = 1:3), aes(x, y)) + geom_point(size = 3) + geom_abline(slope = 1, intercept = 0, linetype = 2, color = "blue") + draw_image(img , x = 1, y = 1, scale = .9) + draw_image(img2, x = 2, y = 2, scale = .9) } draw_label Draw a text label or mathematical expression. Description This function can draw either a character string or mathematical expression at the given coordinates. It works both on top of ggdraw and directly with ggplot, depending on which coordinate system is desired (see examples). Usage draw_label( label, x = 0.5, y = 0.5, hjust = 0.5, vjust = 0.5, fontfamily = "", fontface = "plain", color = "black", size = 14, angle = 0, lineheight = 0.9, alpha = 1, colour ) Arguments label String or plotmath expression to be drawn. x The x location (origin) of the label. y The y location (origin) of the label. hjust Horizontal justification. Default = 0.5 (centered on x). 0 = flush-left at x, 1 = flush-right. vjust Vertical justification. Default = 0.5 (centered on y). 0 = baseline at y, 1 = ascender at y. fontfamily The font family fontface The font face ("plain", "bold", etc.) color, colour Text color size Point size of text angle Angle at which text is drawn lineheight Line height of text alpha The alpha value of the text Details By default, the x and y coordinates specify the center of the text box. Set hjust = 0, vjust = 0 to specify the lower left corner, and other values of hjust and vjust for any other relative location you want to specify. See Also ggdraw Examples library(ggplot2) # setup plot and a label (regression description) p <- ggplot(mtcars, aes(disp, mpg)) + geom_line(color = "blue") + theme_half_open() + background_grid(minor = 'none') out <- cor.test(mtcars$disp, mtcars$mpg, method = 'sp', exact = FALSE) label <- substitute( paste("Spearman ", rho, " = ", estimate, ", P = ", pvalue), list(estimate = signif(out$estimate, 2), pvalue = signif(out$p.value, 2)) ) # Add label to plot, centered on {x,y} (in data coordinates) p + draw_label(label, x = 300, y = 32) # Add label to plot in data coordinates, flush-left at x, baseline at y. p + draw_label(label, x = 100, y = 30, hjust = 0, vjust = 0) # Add labels via ggdraw. Uses ggdraw coordinates. # ggdraw coordinates default to xlim = c(0, 1), ylim = c(0, 1). ggdraw(p) + draw_label("centered on 70% of x range,\n90% of y range", x = 0.7, y = 0.9) ggdraw(p) + draw_label("bottom left at (0, 0)", x = 0, y = 0, hjust = 0, vjust = 0) + draw_label("top right at (1, 1)", x = 1, y = 1, hjust = 1, vjust = 1) + draw_label("centered on (0.5, 0.5)", x = 0.5, y = 0.5, hjust = 0.5, vjust = 0.5) draw_line Draw a line from connected points Description Provide a sequence of x values and accompanying y values to draw a line on a plot. Usage draw_line(x, y, ...) Arguments x Vector of x coordinates. y Vector of y coordinates. ... geom_path parameters such as colour, alpha, size, etc. Details This is a convenience function, providing a wrapper around ggplot2’s geom_path. See Also geom_path, ggdraw Examples ggdraw() + draw_line( x = c(0.2, 0.7, 0.7, 0.3), y = c(0.1, 0.3, 0.9, 0.8), color = "blue", size = 2 ) draw_plot Draw a (sub)plot. Description Places a plot somewhere onto the drawing canvas. By default, coordinates run from 0 to 1, and the point (0, 0) is in the lower left corner of the canvas. Usage draw_plot( plot, x = 0, y = 0, width = 1, height = 1, scale = 1, hjust = 0, vjust = 0, halign = 0.5, valign = 0.5 ) Arguments plot The plot to place. Can be a ggplot2 plot, an arbitrary grob or gtable, or a recorded base-R plot, as in as_grob(). x The x location of the plot. (Left side if hjust = 0.) y The y location of the plot. (Bottom side if vjust = 0.) width Width of the plot. height Height of the plot. scale Scales the grob relative to the rectangle defined by x, y, width, height. A setting of scale = 1 indicates no scaling. hjust, vjust Horizontal and vertical justification relative to x. halign, valign Horizontal and vertical justification of the plot inside the box. Examples library(ggplot2) # make a plot p <- ggplot(data.frame(x = 1:3, y = 1:3), aes(x, y)) + geom_point() # draw into the top-right corner of a larger plot area ggdraw() + draw_plot(p, .6, .6, .4, .4) draw_plot_label Add a label to a plot Description This function adds a plot label to the upper left corner of a graph (or an arbitrarily specified posi- tion). It takes all the same parameters as draw_text, but has defaults that make it convenient to label graphs with letters A, B, C, etc. Just like draw_text(), it can handle vectors of labels with associated coordinates. Usage draw_plot_label( label, x = 0, y = 1, hjust = -0.5, vjust = 1.5, size = 16, fontface = "bold", family = NULL, color = NULL, colour, ... ) Arguments label String (or vector of strings) to be drawn as the label. x The x position (or vector thereof) of the label(s). y The y position (or vector thereof) of the label(s). hjust Horizontal adjustment. vjust Vertical adjustment. size Font size of the label to be drawn. fontface Font face of the label to be drawn. family (optional) Font family of the plot labels. If not provided, is taken from the current theme. color, colour (optional) Color of the plot labels. If not provided, is taken from the current theme. ... Other arguments to be handed to draw_text. draw_text Draw multiple text-strings in one go. Description This is a convenience function to plot multiple pieces of text at the same time. It cannot handle mathematical expressions, though. For those, use draw_label. Usage draw_text(text, x = 0.5, y = 0.5, size = 14, hjust = 0.5, vjust = 0.5, ...) Arguments text A vector of Character (not expressions) specifying the string(s) to be written. x Vector of x coordinates. y Vector of y coordinates. size Font size of the text to be drawn. hjust (default = 0.5) vjust (default = 0.5) ... Style parameters, such as colour, alpha, angle, size, etc. Details Note that font sizes are scaled by a factor of 2.85, so sizes agree with those of the theme. This is different from geom_text in ggplot2. By default, the x and y coordinates specify the center of the text box. Set hjust = 0, vjust = 0 to specify the lower left corner, and other values of hjust and vjust for any other relative location you want to specify. For a full list of ... options, see geom_label. See Also draw_label Examples # Draw onto a 1*1 drawing surface ggdraw() + draw_text("Hello World!", x = 0.5, y = 0.5) # # Adorn a plot from the Anscombe data set of "identical" data. library(ggplot2) p <- ggplot(anscombe, aes(x1, y1)) + geom_point() + geom_smooth() three_strings <- c("Hello World!", "to be or not to be", "over and out") p + draw_text(three_strings, x = 8:10, y = 5:7, hjust = 0) get_legend Retrieve the legend of a plot Description This function extracts just the legend from a ggplot Usage get_legend(plot) Arguments plot A ggplot or gtable from which to retrieve the legend Value A gtable object holding just the legend or NULL if there is no legend. Examples library(ggplot2) theme_set(theme_half_open()) p1 <- ggplot(mtcars, aes(mpg, disp)) + geom_line() plot.mpg <- ggplot(mpg, aes(x = cty, y = hwy, colour = factor(cyl))) + geom_point(size=2.5) # Note that these cannot be aligned vertically due to the legend in the plot.mpg ggdraw(plot_grid(p1, plot.mpg, ncol=1, align='v')) legend <- get_legend(plot.mpg) plot.mpg <- plot.mpg + theme(legend.position='none') # Now plots are aligned vertically with the legend to the right ggdraw(plot_grid(plot_grid(p1, plot.mpg, ncol=1, align='v'), plot_grid(NULL, legend, ncol=1), rel_widths=c(1, 0.2))) get_panel Retrieve the panel or part of a panel of a plot Description get_panel() extracts just the main panel from a ggplot or a specified panel in a faceted plot. get_panel_component() extracts components from the panel, such as geoms. Usage get_panel(plot, panel = NULL, return_all = FALSE) get_panel_component(panel, pattern) Arguments plot A ggplot or gtable from which to retrieve the panel panel An integer indicating which panel to pull. ggplot orders panels column-wise, so this is in order from the top left down. return_all If there is more than one panel, should all be returned as a list? Default is FALSE. pattern the name of the component Value A gtable object holding the panel(s) or a grob of the component Examples library(ggplot2) p <- ggplot(mpg, aes(displ, cty)) + geom_point() plot_panel <- get_panel(p) ggdraw(plot_panel) ggdraw(get_panel_component(plot_panel, "geom_point")) get_plot_component Get plot components Description Extract plot components from a ggplot or gtable. get_plot_component() extracts grobs or a list of grobs. plot_component_names() provides the names of the components in the plot. plot_components() returns all components as a list. Usage get_plot_component(plot, pattern, return_all = FALSE) plot_component_names(plot) plot_components(plot) Arguments plot A ggplot or gtable to extract from. pattern The name of the component. return_all If there is more than one component, should all be returned as a list? Default is FALSE. Value A grob or list of grobs (get_plot_component(), plot_components()) or a character vector (plot_component_names()) Examples library(ggplot2) p <- ggplot(mpg, aes(displ, cty)) + geom_point() ggdraw(get_plot_component(p, "ylab-l")) get_title Get plot titles Description These functions extract just the titles from a ggplot. get_title() pulls the title, while get_subtitle() pulls the subtitle. Usage get_title(plot) get_subtitle(plot) Arguments plot A ggplot or gtable. Examples library(ggplot2) p <- ggplot(mpg, aes(displ, cty)) + geom_point() + labs( title = "Plot title", subtitle = "Plot subtitle" ) ggdraw(get_title(p)) ggdraw(get_subtitle(p)) get_y_axis Get plot axes Description These functions extract just the axes from a ggplot. get_y_axis() pulls the y-axis, while get_x_axis() pulls the x-axis. Usage get_y_axis(plot, position = c("left", "right")) get_x_axis(plot, position = c("bottom", "top")) Arguments plot A ggplot or gtable. position Which side of the plot is the axis on? For the x-axis, this can be "top" or "bot- tom", and for the y-axis, it can be "left" or "right". Examples library(ggplot2) p <- ggplot(mpg, aes(displ, cty)) + geom_point() ggdraw(get_y_axis(p)) p <- p + scale_x_continuous(position = "top") ggdraw(get_x_axis(p, position = "top")) ggdraw Set up a drawing layer on top of a ggplot Description Set up a drawing layer on top of a ggplot. Usage ggdraw(plot = NULL, xlim = c(0, 1), ylim = c(0, 1), clip = "off") Arguments plot The plot to use as a starting point. Can be a ggplot2 plot, an arbitrary grob or gtable, or a recorded base-R plot, as in as_grob(). xlim The x-axis limits for the drawing layer. ylim The y-axis limits for the drawing layer. clip Should drawing be clipped to the set limits? The default is no ("off"). Examples library(ggplot2) p <- ggplot(mpg, aes(displ, cty)) + geom_point() + theme_minimal_grid() ggdraw(p) + draw_label("Draft", colour = "#80404080", size = 120, angle = 45) ggsave2 Cowplot reimplementation of ggsave(). Description This function behaves just like ggsave() from ggplot2. The main difference is that by default it doesn’t use the Dingbats font for pdf output. The Dingbats font causes problems with some pdf readers. Usage ggsave2( filename, plot = ggplot2::last_plot(), device = NULL, path = NULL, scale = 1, width = NA, height = NA, units = c("in", "cm", "mm"), dpi = 300, limitsize = TRUE, ... ) Arguments filename Filename of the plot. plot Plot to save, defaults to last plot displayed. device Device to use, automatically extract from file name extension. path Path to save plot to (if you just want to set path and not filename). scale Scaling factor. width Width (defaults to the width of current plotting window). height Height (defaults to the height of current plotting window). units Units for width and height when either one is explicitly specified (in, cm, or mm). dpi DPI to use for raster graphics. limitsize When TRUE (the default), ggsave2() will not save images larger than 50x50 inches, to prevent the common error of specifying dimensions in pixels. ... Other arguments to be handed to the plot device. gtable_remove_grobs Remove named elements from gtable Description Remove named elements from gtable Usage gtable_remove_grobs(table, names, ...) Arguments table The table from which grobs should be removed names A character vector of the grob names (as listed in table$layout) that should be removed ... Other parameters passed through to gtable_filter. gtable_squash_cols Set the width of given columns to 0. Description Set the width of given columns to 0. Usage gtable_squash_cols(table, cols) Arguments table The gtable on which to operate cols Numerical vector indicating the columns whose width should be set to zero. gtable_squash_rows Set the height of given rows to 0. Description Set the height of given rows to 0. Usage gtable_squash_rows(table, rows) Arguments table The gtable on which to operate rows Numerical vector indicating the rows whose heights should be set to zero. insert_xaxis_grob Insert an axis-like grob on either side of a plot panel in a ggplot2 plot. Description The function insert_xaxis_grob() inserts a grob at the top or bottom of the plot panel in a ggplot2 plot. Usage insert_xaxis_grob( plot, grob, height = grid::unit(0.2, "null"), position = c("top", "bottom"), clip = "on" ) insert_yaxis_grob( plot, grob, width = grid::unit(0.2, "null"), position = c("right", "left"), clip = "on" ) Arguments plot The plot into which the grob will be inserted. grob The grob to insert. This will generally have been obtained via get_panel() from a ggplot2 object, in particular one generated with axis_canvas(). If a ggplot2 plot is provided instead of a grob, then get_panel() is called to extract the panel grob. height The height of the grob, in grid units. Used by insert_xaxis_grob(). position The position of the grob. Can be "right" or "left" for insert_yaxis_grob() and "top" or "botton" for insert_xaxis_grob(). clip Set to "off" to turn off clipping of the inserted grob. width The width of the grob, in grid units. Used by insert_yaxis_grob(). Details For usage examples, see axis_canvas(). panel_border Add/remove the panel border in a ggplot2 plot Description This function provides a simple way to modify the panel border in ggplot2. It doesn’t do anything that can’t be done just the same with theme(). However, it saves some typing. Usage panel_border(color = "grey85", size = 1, linetype = 1, remove = FALSE, colour) Arguments color, colour The color of the border. size Size. Needs to be twice as large as desired outcome when panel clipping is on (the default). linetype Line type. remove If TRUE, removes the current panel border. plot_grid Arrange multiple plots into a grid Description Arrange multiple plots into a grid. Usage plot_grid( ..., plotlist = NULL, align = c("none", "h", "v", "hv"), axis = c("none", "l", "r", "t", "b", "lr", "tb", "tblr"), nrow = NULL, ncol = NULL, rel_widths = 1, rel_heights = 1, labels = NULL, label_size = 14, label_fontfamily = NULL, label_fontface = "bold", label_colour = NULL, label_x = 0, label_y = 1, hjust = -0.5, vjust = 1.5, scale = 1, greedy = TRUE, byrow = TRUE, cols = NULL, rows = NULL ) Arguments ... List of plots to be arranged into the grid. The plots can be any objects that the function as_gtable() can handle (see also examples). plotlist (optional) List of plots to display. Alternatively, the plots can be provided indi- vidually as the first n arguments of the function plot_grid (see examples). align (optional) Specifies whether graphs in the grid should be horizontally ("h") or vertically ("v") aligned. Options are "none" (default), "hv" (align in both direc- tions), "h", and "v". axis (optional) Specifies whether graphs should be aligned by the left ("l"), right ("r"), top ("t"), or bottom ("b") margins. Options are "none" (default), or a string of any combination of l, r, t, and b in any order (e.g. "tblr" or "rlbt" for aligning all margins). Must be specified if any of the graphs are complex (e.g. faceted) and alignment is specified and desired. See align_plots() for details. nrow (optional) Number of rows in the plot grid. ncol (optional) Number of columns in the plot grid. rel_widths (optional) Numerical vector of relative columns widths. For example, in a two- column grid, rel_widths = c(2, 1) would make the first column twice as wide as the second column. rel_heights (optional) Numerical vector of relative rows heights. Works just as rel_widths does, but for rows rather than columns. labels (optional) List of labels to be added to the plots. You can also set labels="AUTO" to auto-generate upper-case labels or labels="auto" to auto-generate lower- case labels. label_size (optional) Numerical value indicating the label size. Default is 14. label_fontfamily (optional) Font family of the plot labels. If not provided, is taken from the current theme. label_fontface (optional) Font face of the plot labels. Default is "bold". label_colour (optional) Color of the plot labels. If not provided, is taken from the current theme. label_x (optional) Single value or vector of x positions for plot labels, relative to each subplot. Defaults to 0 for all labels. (Each label is placed all the way to the left of each plot.) label_y (optional) Single value or vector of y positions for plot labels, relative to each subplot. Defaults to 1 for all labels. (Each label is placed all the way to the top of each plot.) hjust Adjusts the horizontal position of each label. More negative values move the label further to the right on the plot canvas. Can be a single value (applied to all labels) or a vector of values (one for each label). Default is -0.5. vjust Adjusts the vertical position of each label. More positive values move the label further down on the plot canvas. Can be a single value (applied to all labels) or a vector of values (one for each label). Default is 1.5. scale Individual number or vector of numbers greater than 0. Enables you to scale the size of all or select plots. Usually it’s preferable to set margins instead of using scale, but scale can sometimes be more powerful. greedy (optional) How should margins be adjusted during alignment. See align_plots() for details. byrow Logical value indicating if the plots should be arrange by row (default) or by column. cols Deprecated. Use ncol. rows Deprecated. Use nrow. Examples library(ggplot2) df <- data.frame( x = 1:10, y1 = 1:10, y2 = (1:10)^2, y3 = (1:10)^3, y4 = (1:10)^4 ) p1 <- ggplot(df, aes(x, y1)) + geom_point() p2 <- ggplot(df, aes(x, y2)) + geom_point() p3 <- ggplot(df, aes(x, y3)) + geom_point() p4 <- ggplot(df, aes(x, y4)) + geom_point() p5 <- ggplot(mpg, aes(as.factor(year), hwy)) + geom_boxplot() + facet_wrap(~class, scales = "free_y") # simple grid plot_grid(p1, p2, p3, p4) # simple grid with labels and aligned plots plot_grid( p1, p2, p3, p4, labels = c('A', 'B', 'C', 'D'), align="hv" ) # manually setting the number of rows, auto-generate upper-case labels plot_grid(p1, p2, p3, nrow = 3, labels = "AUTO", label_size = 12, align = "v" ) # making rows and columns of different widths/heights plot_grid( p1, p2, p3, p4, align = 'hv', rel_heights = c(2,1), rel_widths = c(1,2) ) # aligning complex plots in a grid plot_grid( p1, p5, align = "h", axis = "b", nrow = 1, rel_widths = c(1, 2) ) # more examples #' # missing plots in some grid locations, auto-generate lower-case labels plot_grid( p1, NULL, NULL, p2, p3, NULL, ncol = 2, labels = "auto", label_size = 12, align = "v" ) # can arrange plots on the grid by column as well as by row. plot_grid( p1, NULL, p2, NULL, p3, ncol = 2, byrow = TRUE ) # can align top of plotting area as well as bottom plot_grid( p1, p5, align = "h", axis = "tb", nrow = 1, rel_widths = c(1, 2) ) # other types of plots not generated with ggplot p6 <- ~{ par( mar = c(3, 3, 1, 1), mgp = c(2, 1, 0) ) plot(sqrt) } p7 <- function() { par( mar = c(2, 2, 1, 1), mgp = c(2, 1, 0) ) image(volcano) } p8 <- grid::circleGrob() plot_grid(p1, p6, p7, p8, labels = "AUTO", scale = c(1, .9, .9, .7)) png_null_device Null devices Description Null devices to be used when rendering graphics in the background. See set_null_device() for details. Usage png_null_device(width, height) pdf_null_device(width, height) cairo_null_device(width, height) agg_null_device(width, height) Arguments width Device width in inch height Device height in inch rectangle_key_glyph Create customizable legend key glyphs Description These functions create customizable legend key glyphs, such as filled rectangles or circles. Usage rectangle_key_glyph( colour = NA, fill = fill, alpha = alpha, size = size, linetype = linetype, padding = unit(c(0, 0, 0, 0), "pt"), color ) circle_key_glyph( colour = NA, fill = fill, alpha = alpha, size = size, linetype = linetype, padding = unit(c(0, 0, 0, 0), "pt"), color ) Arguments colour, color Unquoted name of the aesthetic to use for the outline color, usually colour, color, or fill. Can also be a color constant, e.g. "red". fill Unquoted name of the aesthetic to use for the fill color, usually colour, color, or fill. Can also be a color constant, e.g. "red". alpha Unquoted name of the aesthetic to use for alpha, usually alpha. Can also be a numerical constant, e.g. 0.5. size Unquoted name of the aesthetic to use for the line thickness of the outline, usu- ally size. Can also be a numerical constant, e.g. 0.5. linetype Unquoted name of the aesthetic to use for the line type of the outline, usually linetype. Can also be a constant, e.g. 2. padding Unit vector with four elements specifying the top, right, bottom, and left padding from the edges of the legend key to the edges of the key glyph. Examples library(ggplot2) set.seed(1233) df <- data.frame( x = sample(letters[1:2], 10, TRUE), y = rnorm(10) ) ggplot(df, aes(x, y, color = x)) + geom_boxplot( key_glyph = rectangle_key_glyph(fill = color, padding = margin(3, 3, 3, 3)) ) ggplot(df, aes(x, y, color = x)) + geom_boxplot( key_glyph = circle_key_glyph( fill = color, color = "black", linetype = 3, size = 0.3, padding = margin(2, 2, 2, 2) ) ) save_plot Alternative to ggsave(), with better support for multi-figure plots. Description This function replaces the standard ggsave() function for saving a plot into a file. It has several advantages over ggsave(). First, it uses default sizes that work well with the cowplot theme, so that frequently a plot size does not have to be explicitly specified. Second, it acknowledges that one often first develops individual plots and then combines them into multi-plot figures, and it makes it easy—in combination with plot_grid()—to carry out this workflow. Finally, it makes it easy to adjust the aspect ratio of the figure, which is frequently necessary to accommodate plots with or without figure legend. Usage save_plot( filename, plot, ncol = 1, nrow = 1, base_height = 3.71, base_asp = 1.618, base_width = NULL, ..., cols, rows, base_aspect_ratio, width, height ) Arguments filename Name of the plot file to generate. plot Plot to save. ncol Number of subplot columns. nrow Number of subplot rows. base_height The height (in inches) of the plot or of one sub-plot if nrow or ncol > 1. Default is 3.71. base_asp The aspect ratio (width/height) of the plot or of one sub-plot if nrow or ncol > 1. This argument is used if base_width = NULL or if base_height = NULL; if both width and height are provided then the aspect ratio is ignored. The default is 1.618 (the golden ratio), which works well for figures with a legend. base_width The width (in inches) of the plot or of one sub-plot if nrow or ncol > 1. De- fault is NULL, which means that the width is calculated from base_height and base_aspect_ratio. ... Other arguments to be handed to ggsave2(). cols Deprecated. Use ncol. rows Deprecated. Use nrow. base_aspect_ratio Deprecated. Use base_asp. width Deprecated. Don’t use. height Deprecated. Don’t use. Details The key idea for this function is that plots are often grids, with sup-plots at the individual grid locations. Therefore, for this function we specify a base width and aspect ratio that apply to one sup-plot, and we then specify how many rows and columns of subplots we have. This means that if we have code that can save a single figure, it is trivial to adapt this code to save a combination of multiple comparable figures. See examples for details. Examples library(ggplot2) # save a single plot with a legend p1 <- ggplot(mpg, aes(x = cty, y = hwy, color = factor(cyl))) + geom_point(size = 2) + theme_half_open() file1 <- tempfile("file1", fileext = ".png") file2 <- tempfile("file2", fileext = ".png") save_plot(file1, p1) # same as file1 but determine base_width given base_height save_plot(file2, p1, base_height = NULL, base_width = 6) # save a single plot without legend, adjust aspect ratio x <- (1:100)/10 p3 <- ggplot(data.frame(x = x, y = x*sin(x)), aes(x, y)) + geom_line() + theme_minimal_hgrid() file3 <- tempfile("file3", fileext = ".pdf") save_plot(file3, p3, base_asp = 1.1) # now combine with a second plot and save p3b <- ggplot(data.frame(x = x, y = cos(x)+x), aes(x, y)) + geom_line() + theme_minimal_hgrid() p4 <- plot_grid(p3, p3b, labels = "AUTO") file4 <- tempfile("file4", fileext = ".pdf") save_plot(file4, p4, ncol = 2, base_asp = 1.1) set_null_device Sets the null graphics device Description The function as_grob() needs to open a graphics device to render ggplot objects into grid graphics objects. Unfortunately, there is no universally reliable graphics device available in R that always works. Therefore, this function allows you to switch out the null device. Usage set_null_device(null_device) Arguments null_device Either a string that defines the null device ("pdf", "png", "cairo", "agg") or a function that returns a new graphics device. Details You need to be aware that some graphics devices cause side effects when used as null devices. If you use an interactive device as null device, you may see an empty plot window pop up. Similarly, if you use a graphics device that writes a file, then you may find temporary files associated with the device. The default null device, pdf(NULL), does not cause these side effects. However, it has has other limitations. For example, on OS X, it cannot use all the fonts that are available on the system. The ragg device can use all fonts, but it will create temporary files. See Also Available null devices are: pdf_null_device(), png_null_device(), cairo_null_device(), agg_null_device() Examples set_null_device("png") # set the png null device # create a jpeg null device jpeg_null_device <- function(width, height) { jpeg( filename = tempfile(pattern = "jpeg_null_plot", fileext = ".jpg"), width = width, height = height, units = "in", res = 96 ) dev.control("enable") } set_null_device(jpeg_null_device) stamp Stamp plots with a label, such as good, bad, or ugly. Description Stamp plots with a label, such as good, bad, or ugly. Usage stamp( p, label, color = "black", alpha = 1, vjust = 1.1, hjust = 1, size = 14, family = "", fontface = "bold", clip = "on", colour ) stamp_good(p, ...) stamp_bad(p, ...) stamp_wrong(p, ...) stamp_ugly(p, ...) Arguments p The plot to stamp label The text label used for the stamp color, colour The color of the stamp alpha Transparency level of the stamp hjust, vjust Horizontal and vertical adjustment of the label size Font size family Font family fontface Font face clip Should figure be clipped (default is "on") ... Arguments handed off to stamp(). Examples library(ggplot2) p <- ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) + geom_point(aes(color = factor(Petal.Width))) stamp_bad(p + guides(color = "none")) stamp_ugly(p) theme_cowplot Create the default cowplot theme Description The default cowplot theme, with a simple half-open frame and no grid. This theme used to be set by default after loading the cowplot package, but this is no longer the case. Usage theme_cowplot( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14 ) theme_half_open( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14 ) Arguments font_size Overall font size. font_family Font family for plot title, axis titles and labels, legend texts, etc. line_size Line size for axis lines. rel_small Relative size of small text (e.g., axis tick labels) rel_tiny Relative size of tiny text (e.g., caption) rel_large Relative size of large text (e.g., title) Details Both theme_cowplot() and theme_half_open() provide exactly the same styling. Value The theme. Examples library(ggplot2) ggplot(mtcars, aes(disp, mpg)) + geom_point() + theme_cowplot(font_size = 12) theme_map Create a theme for map plotting Description The theme created by this function is useful for plotting maps with cowplot default sizing. Usage theme_map( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14 ) Arguments font_size Overall font size. Default is 14. font_family Base font family. line_size Line size for axis lines. rel_small Relative size of small text (e.g., axis tick labels) rel_tiny Relative size of tiny text (e.g., caption) rel_large Relative size of large text (e.g., title) Value The theme. Examples library(ggplot2) library(maps) usa_data = map_data("usa") ggplot(usa_data, aes(long, lat, fill = region)) + geom_polygon() + theme_map() ggplot(usa_data, aes(long, lat, fill = region)) + facet_wrap(~region, scales = "free") + geom_polygon() + theme_map() theme_minimal_grid Minimalistic themes with grids Description Three minimalistic themes that provide either a full grid, a horizontal grid, or a vertical grid. Similar to theme_minimal(), but with some stylistic differences. Most importantly, these themes do not draw minor grid lines. Also, font sizes are coordinated with theme_half_open() and with the defaults in the save_plot() function. Usage theme_minimal_grid( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14, color = "grey85", colour ) theme_minimal_vgrid( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14, color = "grey85", colour ) theme_minimal_hgrid( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14, color = "grey85", colour ) Arguments font_size Overall font size. font_family Font family for plot title, axis titles and labels, legend texts, etc. line_size Line size for grid lines. rel_small Relative size of small text (e.g., axis tick labels) rel_tiny Relative size of tiny text (e.g., caption) rel_large Relative size of large text (e.g., title) color, colour Color of grid lines. Details theme_minimal_grid() provides a minimal grid theme. theme_minimal_hgrid() strips down this theme even further and draws only horizontal lines, and theme_minimal_vgrid() does the same for vertical lines. Examples library(ggplot2) # theme_minimal_grid() ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) + geom_point() + theme_minimal_grid() # theme_minimal_hgrid() ggplot(mtcars, aes(x = carb)) + geom_bar(fill = "lightblue") + scale_y_continuous(limits = c(0, 11.5), expand = c(0, 0)) + theme_minimal_hgrid() # theme_minimal_vgrid() ggplot(mtcars, aes(x = carb)) + geom_bar(fill = "lightblue") + scale_y_continuous(limits = c(0, 11.5), expand = c(0, 0)) + coord_flip() + theme_minimal_vgrid() theme_nothing Create a completely empty theme Description The theme created by this function shows nothing but the plot panel. Usage theme_nothing(font_size = 14, font_family = "", rel_small = 12/14) Arguments font_size Overall font size. Default is 14. font_family Base font family. rel_small Relative size of small text Value The theme. Examples library(ggplot2) ggplot(mtcars, aes(disp, mpg, color = cyl)) + geom_point() + theme_nothing()
sidewalk
hex
Erlang
Toggle Theme sidewalk v0.4.0 API Reference === Modules --- [Sidewalk](Sidewalk.html) Sidewalk is an Elixir client which is compatible with Sidekiq, the »efficient background processing library for Ruby«. It can be used to enqueue jobs for later processing alongside e.g. with an already existing Ruby application. For more information about Sidekiq please refer to http://sidekiq.org [Sidewalk.Client](Sidewalk.Client.html) The Client module contains functions to interact with the Redis server and to enqueue jobs in the format Sidekiq uses. Like Sidekiq or Resque it supports three types of enqueuing [Sidewalk.Job](Sidewalk.Job.html) This struct represents a typical Sidewalk job Toggle Theme sidewalk v0.4.0 Sidewalk === Sidewalk is an Elixir client which is compatible with Sidekiq, the »efficient background processing library for Ruby«. It can be used to enqueue jobs for later processing alongside e.g. with an already existing Ruby application. For more information about Sidekiq please refer to http://sidekiq.org. Supported features --- * Redis namespaces as already known with Sidekiq * Ability to configure the Redis server connection details * Ability to configuration a Redis pool size * Enqueuing jobs to be executed immediately * Enqueuing jobs to be executed in X seconds * Enqueuing jobs to be executed at a specific time Configuration example --- ``` config :sidewalk, host: "localhost", port: 6379, password: "you password", namespace: "your_namespace", database: 0, pool_size: 10 ``` Adding sidewalk to your applications --- ``` def application do [applications: [:sidewalk], mod: {YourApplication, []}] end ``` To use Sidewalk you need to create a `%Sidewalk.Job{}` and enqueue it with one of the enqueue functions. [Link to this section](#summary) Summary === [Functions](#functions) --- [redix_options()](#redix_options/0) [start(type, args)](#start/2) Called when an application is started [Link to this section](#functions) Functions === [Link to this function](#redix_options/0 "Link to this function") redix_options() [Link to this function](#start/2 "Link to this function") start(type, args) Called when an application is started. This function is called when an application is started using [`Application.start/2`](https://hexdocs.pm/elixir/Application.html#start/2) (and functions on top of that, such as [`Application.ensure_started/2`](https://hexdocs.pm/elixir/Application.html#ensure_started/2)). This function should start the top-level process of the application (which should be the top supervisor of the application’s supervision tree if the application follows the OTP design principles around supervision). `start_type` defines how the application is started: * `:normal` - used if the startup is a normal startup or if the application is distributed and is started on the current node because of a failover from another node and the application specification key `:start_phases` is `:undefined`. * `{:takeover, node}` - used if the application is distributed and is started on the current node because of a failover on the node `node`. * `{:failover, node}` - used if the application is distributed and is started on the current node because of a failover on node `node`, and the application specification key `:start_phases` is not `:undefined`. `start_args` are the arguments passed to the application in the `:mod` specification key (e.g., `mod: {MyApp, [:my_args]}`). This function should either return `{:ok, pid}` or `{:ok, pid, state}` if startup is successful. `pid` should be the PID of the top supervisor. `state` can be an arbitrary term, and if omitted will default to `[]`; if the application is later stopped, `state` is passed to the `stop/1` callback (see the documentation for the `c:stop/1` callback for more information). `use Application` provides no default implementation for the [`start/2`](#start/2) callback. Callback implementation for [`Application.start/2`](https://hexdocs.pm/elixir/Application.html#c:start/2). Toggle Theme sidewalk v0.4.0 Sidewalk.Client === The Client module contains functions to interact with the Redis server and to enqueue jobs in the format Sidekiq uses. Like Sidekiq or Resque it supports three types of enqueuing. * Enquing with an immediate execution * Enquing with an execution delay defined in seconds * Enquing with an explicit execution at a given unix timestamp For more information of the structure of a Sidewalk job, please have a look at the `Job` module. [Link to this section](#summary) Summary === [Types](#types) --- [enqueue_delay()](#t:enqueue_delay/0) [enqueue_time()](#t:enqueue_time/0) [job()](#t:job/0) [response()](#t:response/0) [Functions](#functions) --- [enqueue(job)](#enqueue/1) Jobs enqueued with this function will be executed by Sidekiq as soon as possible [enqueue_at(job, enqueue_at_timestamp \\ current_unix_timestamp() + 60)](#enqueue_at/2) Jobs enqueued with this function will be executed by Sidekiq at a given unix timestamp [enqueue_in(job, enqueue_in_seconds \\ 60)](#enqueue_in/2) Jobs enqueued with this function will be executed by Sidekiq after a defined delay in seconds [Link to this section](#types) Types === [Link to this type](#t:enqueue_delay/0 "Link to this type") enqueue_delay() ``` enqueue_delay() :: [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)() ``` [Link to this type](#t:enqueue_time/0 "Link to this type") enqueue_time() ``` enqueue_time() :: [float](https://hexdocs.pm/elixir/typespecs.html#basic-types)() ``` [Link to this type](#t:job/0 "Link to this type") job() ``` job() :: [Sidewalk.Job.t](Sidewalk.Job.html#t:t/0)() ``` [Link to this type](#t:response/0 "Link to this type") response() ``` response() :: {:ok, [String.t](https://hexdocs.pm/elixir/String.html#t:t/0)()} | {:error, [String.t](https://hexdocs.pm/elixir/String.html#t:t/0)()} ``` [Link to this section](#functions) Functions === [Link to this function](#enqueue/1 "Link to this function") enqueue(job) ``` enqueue([job](#t:job/0)()) :: [response](#t:response/0)() ``` Jobs enqueued with this function will be executed by Sidekiq as soon as possible. Example --- ``` # Enqueue a job which should be executed immediately job = %Sidewalk.Job{class: "MyWorker", args: ['bob', 1, %{foo: 'bar'}]} {:ok, jid} = Sidewalk.Client.enqueue(job) # => jid: "2f87a952ced00ea6cdd61245" ``` [Link to this function](#enqueue_at/2 "Link to this function") enqueue_at(job, enqueue_at_timestamp \\ current_unix_timestamp() + 60) ``` enqueue_at([job](#t:job/0)(), [enqueue_time](#t:enqueue_time/0)()) :: [response](#t:response/0)() ``` Jobs enqueued with this function will be executed by Sidekiq at a given unix timestamp. Example --- ``` # Enquing a job which would be executed at 31th December 2018 (unix timestamp: 1546293600) job = %Sidewalk.Job{class: "MyWorker", args: ['bob', 1, %{foo: 'bar'}]} {:ok, jid} = Sidewalk.Client.enqueue_at(job, 1546293600) # => jid: "d6ceac7d6c42d35ff6cac8a0" ``` [Link to this function](#enqueue_in/2 "Link to this function") enqueue_in(job, enqueue_in_seconds \\ 60) ``` enqueue_in([job](#t:job/0)(), [enqueue_delay](#t:enqueue_delay/0)()) :: [response](#t:response/0)() ``` Jobs enqueued with this function will be executed by Sidekiq after a defined delay in seconds. Example --- ``` # Enquing a job which would be executed in 2 minutes (120 seconds) from now job = %Sidewalk.Job{class: "MyWorker", args: ['bob', 1, %{foo: 'bar'}]} {:ok, jid} = Sidewalk.Client.enqueue_in(job, 120) # => jid: "a805893e8bd98bf965d1dd54" ``` Toggle Theme sidewalk v0.4.0 Sidewalk.Job === This struct represents a typical Sidewalk job. Struct definitions --- * **jid** -> A 24 character long job identifier * **class** -> The worker class which is responsible for executing the job. * **args** -> The arguments passed which should be passed to the worker. * **created_at** -> The timestamp when the job is created by Sidewalk. * **enqueue_at** -> The timestamp when the job is really enqueued with the Redis server. * **queue** -> The queue where a job should be enqueued. Defaults to “default” queue. * **retry** -> Tells the Sidekiq worker to retry the enqueue job. * **wrapped** -> For use when dealing with an ActiveJob system. [Link to this section](#summary) Summary === [Types](#types) --- [t()](#t:t/0) [Link to this section](#types) Types === [Link to this type](#t:t/0 "Link to this type") t() ``` t() :: %Sidewalk.Job{ args: [list](https://hexdocs.pm/elixir/typespecs.html#built-in-types)(), class: [String.t](https://hexdocs.pm/elixir/String.html#t:t/0)(), created_at: [float](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), enqueued_at: [float](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), jid: [String.t](https://hexdocs.pm/elixir/String.html#t:t/0)(), queue: [String.t](https://hexdocs.pm/elixir/String.html#t:t/0)(), retry: [boolean](https://hexdocs.pm/elixir/typespecs.html#built-in-types)(), wrapped: [String.t](https://hexdocs.pm/elixir/String.html#t:t/0)() } ```
freegs
readthedoc
Python
FreeGS 0.2.0 documentation Welcome to FreeGS’s documentation![¶](#welcome-to-freegs-s-documentation) === Creating equilibria[¶](#creating-equilibria) --- To generate a Grad-shafranov solution from scratch FreeGS needs some physical parameters: 1. The locations of the coils 2. Plasma profiles (typically pressure and a current function) used to calculate toroidal current density 3. The desired locations of X-points, and constraints on the shape of the plasma. and some numerical parameters: 1. The domain in which we want to calculate the solution 2. The methods to be used to solve the equations These inputs are combined in a nonlinear Picard iteration with the main components shown in the figure below. ### Tokamak coils, circuits and solenoid[¶](#tokamak-coils-circuits-and-solenoid) Example 1 (01-freeboundary.py) creates a simple lower single null plasma from scratch. First import the freegs library ``` import freegs ``` then create a tokamak, which specifies the location of the coils. In this example this is done using ``` tokamak = freegs.machine.TestTokamak() ``` which creates an example machine with four poloidal field coils (two for the vertical field, and two for the radial field). To define a custom machine, first create a list of coils: ``` from freegs.machine import Coil coils = [("P1L", Coil(1.0, -1.1)), ("P1U", Coil(1.0, 1.1)), ("P2L", Coil(1.75, -0.6)), ("P2U", Coil(1.75, 0.6))] ``` Each tuple in the list defines the name of the coil (e.g. `"P1L"`), then the corresponding object (e.g. `Coil(1.0, -1.1)` ). Here `Coil(R, Z)` specifies the R (major radius) and Z (height) location of the coil in meters. Create a tokamak by passing the list of coils to `Machine`: ``` tokamak = freegs.machine.Machine(coils) ``` #### Coil current control[¶](#coil-current-control) By default all coils can be controlled by the feedback system, but it may be that you want to fix the current in some of the coils. This can be done by turning off control and setting the current: ``` Coil(1.0, -1.1, control=False, current=50000.) ``` where the current is in Amps, and is for a coil with a single turn. Setting `control=False` removes the coil from feedback control. #### Shaped coils[¶](#shaped-coils) The `ShapedCoil` class models a coil with uniform current density across a specified shape (a polygon). This is done by splitting the polygon into triangles (using the [ear clipping method](https://en.wikipedia.org/wiki/Polygon_triangulation#Ear_clipping_method)) and then using Gaussian quadrature to integrate over each triangle (by default using 6 points per triangle). The shape of the coil should be specified as a list of `(R,Z)` points: ``` from freegs.machine import ShapedCoil coils = [("P1L", ShapedCoil([(0.95, -1.15), (0.95, -1.05), (1.05, -1.05), (1.05, -1.15)])), ...] ``` The above would create a square coil. The number of turns and the current in the circuit can be specified: ``` coils = [("P1L", ShapedCoil([(0.95, -1.15), (0.95, -1.05), (1.05, -1.05), (1.05, -1.15)], current = 1e3, turns=20)), ...] ``` The number of turns doesn’t affect the integration, but the total current in the coil block is set to `current * turns`. #### Multi strand coils[¶](#multi-strand-coils) The `MultiCoil` class provides a way to model a coil block with turns in specified locations. For large numbers of turns this is usually more convenient than creating multiple `Coil` objects. A `MultiCoil` can be used anywhere a `Coil` object would be: ``` from freegs.machine import MultiCoil coils = [ ("P2", MultiCoil([0.95, 0.95, 1.05, 1.05], [1.15, 1.05, 1.05, 1.15])) ] ``` For coils which are wired together as pairs, mirrored in Z, the `mirror=True` keyword can be given. The `polarity` keyword then sets the relative sign of the current in the original and mirrored coil. #### Coil circuits[¶](#coil-circuits) Usually not all coils in a tokamak are independently powered, but several coils may be connected to the same power supply. This is handled in FreeGS using `Circuit` objects, which consist of several coils. For example: ``` from freegs.machine import Circuit Circuit( [("P2U", Coil(0.49, 1.76), 1.0), ("P2L", Coil(0.49, -1.76), 1.0)] ) ``` This creates a `Circuit` by passing a list of tuples. Each tuple defines the coil name, the `Coil` object (with R,Z location), and a current multiplier. In this case the current multiplier is `1.0` for both coils, so the same current will flow in both coils. Alternatively coils may be wired in opposite directions: ``` Circuit( [("P6U", Coil(1.5, 0.9), 1.0), ("P6L", Coil(1.5, -0.9), -1.0)] ) ``` so the current in coil “P6L” is in the opposite direction, but same magnitude, as the current in coil “P6U”. As with coils, circuits by default are controlled by the feedback system, and can be fixed by setting `control=False` and specifying a current. #### Solenoid[¶](#solenoid) Tokamaks typically operate with Ohmic current drive using a central solenoid. Flux leakage from this solenoid can modify the equilibrum, particularly the locations of the strike points. Solenoids are represented in FreeGS by a set of poiloidal coils: ``` from freegs.machine import Solenoid solenoid = Solenoid(0.15, -1.4, 1.4, 100) ``` which defines the radius of the solenoid in meters (0.15m here), the lower and upper limits in Z (vertical position, here 1.4 m), and the number of poloidal coils to be used. These poloidal coils will be equally spaced between the lower and upper Z limits. As with `Coil` and `Circuit`, solenoids can be removed from feedback control by setting `control=False` and specifying a fixed current. #### Mega-Amp Spherical Tokamak[¶](#mega-amp-spherical-tokamak) As an example, the definition of the Mega-Amp Spherical Tokamak (MAST) coilset is given in the `freegs.machine.MAST_sym()` function: ``` coils = [("P2", Circuit( [("P2U", Coil(0.49, 1.76), 1.0), ("P2L", Coil(0.49, -1.76),1.0)] )) ,("P3", Circuit( [("P3U", Coil(1.1, 1.1), 1.0), ("P3L", Coil(1.1, -1.1), 1.0)] )) ,("P4", Circuit( [("P4U", Coil(1.51, 1.095), 1.0), ("P4L", Coil(1.51, -1.095), 1.0)] )) ,("P5", Circuit( [("P5U", Coil(1.66, 0.52), 1.0), ("P5L", Coil(1.66, -0.52), 1.0)] )) ,("P6", Circuit( [("P6U", Coil(1.5, 0.9), 1.0), ("P6L", Coil(1.5, -0.9), -1.0)] )) ,("P1", Solenoid(0.15, -1.45, 1.45, 100)) ] tokamak = freegs.machine.Machine(coils) ``` This uses circuits “P2” to “P5” connecting pairs of upper and lower coils in series. Circuit “P6” has its coils connected in opposite directions, so is used for vertical position control. Finally “P1” is the central solenoid. Here all circuits and solenoid are under position feedback control. ### Machine walls (limiters)[¶](#machine-walls-limiters) The internal walls of the machine are specified by a polygon in R-Z i.e. an ordered list of (R,Z) points which form a closed boundary. These are stored in a `Wall` object: ``` from freegs.machine import Wall wall = Wall([ 0.75, 0.75, 1.5, 1.8, 1.8, 1.5], # R [-0.85, 0.85, 0.85, 0.25, -0.25, -0.85]) # Z ``` The wall can then be specified when creating a machine: ``` tokamak = freegs.machine.Machine(coils, wall) ``` or an existing machine can be modified: ``` tokamak.wall = wall ``` Note that the location of these walls does not currently affect the equilibrium, but is used by some diagnostics, and is written to output files such as EQDSK format. ### Sensors[¶](#sensors) Rogowski (Rog), Poloidal Field (BP), and Flux Loop (FL) sensors can be added to the machine. Each individual sensor inherits from the Sensor class, which have inputs as follows: ``` class Sensor: def __init__(self, R, Z, name=None, weight=1, status=True, measurement=None): ``` R and Z take the input for the position of the sensors. The weight is an attribute that is useful to consider with reconstruction on real data, can be thought of as the inverse of the sensor measurement uncertainty. Will discuss more in future chapters. The status of a sensor determines whether it is turned on or not, and therefore whether it will take a measurement when `takeMeasurement` method of machine is called. A list of sensors can be specified when creating a machine: tokamak = freegs.machine.Machine(coils, wall, sensors) #### Rogowski Sensors[¶](#rogowski-sensors) Rog sensors measure the total current within their shape. The R-Z input is the same as the `Wall` class, taking an ordered list of (R,Z) points which form a closed boundary. #### BP Sensors[¶](#bp-sensors) BP sensors measure the poloidal field at a given angle. They are effectively ‘point’ sensors so single values for R and Z are given, aswell as a value for theta (angle of measurement) #### FL Sensors[¶](#fl-sensors) FL sensors measure the flux at an R,Z position. They are also point sensors, so need a single value for R and Z input. Adding each one of these sensors to a machine when creating can be done as follows: ``` sensors = [RogowskiSensor(R = [ 0.75, 0.75, 1.5, 1.8, 1.8, 1.5], Z = [-0.85, 0.85, 0.85, 0.25, -0.25, -0.85]), PoloidalFieldSensor(R = 0.75, Z = 1, theta = 0.9), FluxLoopSensor(R = 1.8, Z = 0.2)] tokamak = Machine(coils, wall, sensors) ``` ### Equilibrium and plasma domain[¶](#equilibrium-and-plasma-domain) Having created a tokamak, an `Equilibrium` object can be created. This represents the plasma solution, and contains the tokamak with the coil currents. ``` eq = freegs.Equilibrium(tokamak=tokamak, Rmin=0.1, Rmax=2.0, # Radial domain Zmin=-1.0, Zmax=1.0, # Height range nx=65, ny=65) # Number of grid points ``` In addition to the tokamak `Machine` object, this must be given the range of major radius R and height Z (in meters), along with the radial (x) and vertical (y) resolution. This resolution must be greater than 3, and is typically a power of 2 + 1 () for efficiency, but does not need to be. ### Boundaries[¶](#boundaries) The boundary conditions to be applied are set when an Equilibrium object is created, since this forms part of the specification of the domain. By default a free boundary condition is set, using an accurate but inefficient method which integrates the Greens function over the domain. For every point on the boundary the flux is calculated using where is the Greens function. An alternative method, which scales much better to large grid sizes, is von Hagenow’s method. To use this, specify the `freeBoundaryHagenow` boundary function: ``` eq = freegs.Equilibrium(tokamak=tokamak, Rmin=0.1, Rmax=2.0, # Radial domain Zmin=-1.0, Zmax=1.0, # Height range nx=65, ny=65, # Number of grid points boundary=freegs.boundary.freeBoundaryHagenow) ``` Alternatively for simple tests the `fixedBoundary` function sets the poloidal flux to zero on the computational boundary. #### Conducting walls[¶](#conducting-walls) To specify a conducting wall on which the poloidal flux is fixed, so that there is a skin current on the wall, a series of coils can be used. The current in each coil is set using the feedback controller, to satisfy a fixed poloidal flux constraint. For the full example code, see (and try running) `09-metal-wall.py`. First create an array of R,Z locations, here called `Rwalls` and `Zwalls`. For example a circular wall: ``` R0 = 1.0 # Middle of the circle rwall = 0.5 # Radius of the circular wall npoints = 200 # Number of points on the wall # Poloidal angles thetas = np.linspace(0, 2*np.pi, npoints, endpoint=False) # Points on the wall Rwalls = R0 + rwall * np.cos(thetas) Zwalls = rwall * np.sin(thetas) ``` Then create a set of coils, one at each of these locations: ``` coils = [ ("wall_"+str(theta), # Label freegs.machine.Coil(R, Z)) # Coil at (R,Z) for theta, R, Z in zip(thetas, Rwalls, Zwalls) ] ``` The label doesn’t have to be unique , but having unique names makes referring to them later easier. The tokamak can then be created: ``` tokamak = freegs.machine.Machine(coils) ``` The next part is to control the currents in the coils using fixed poloidal flux constraints: ``` psivals = [ (R, Z, 0.0) for R, Z in zip(Rwalls, Zwalls) ] ``` This is a list of `(R, Z, value)` tuples, which specify that the poloidal flux should be fixed to zero (in this case) at the given `(R,Z)` location. The control system is then created: ``` constrain = freegs.control.constrain(psivals=psivals) ``` The final modification to the usual solve is that we can specify a poloidal flux for the plasma boundary: ``` freegs.solve(eq, # The equilibrium to adjust profiles, # The toroidal current profile function constrain, # Constraint function to set coil currents psi_bndry=0.0) # Because no X-points, specify the separatrix psi ``` If `psi_bndry` is set then this overrides the usual process, which uses the innermost X-point to set the plasma boundary psi. In this case there are some X-points between coils, but its more reliable to set the boundary like this. ### Plasma profiles[¶](#plasma-profiles) The plasma profiles, such as pressure or safety factor, are used to determine the toroidal current : where the flux function is the plasma pressure (in Pascals), and is the poloidal current function. Classes and functions to handle these profiles are in `freegs.jtor` #### Constrain pressure and current[¶](#constrain-pressure-and-current) One of the most intuitive methods is to fix the shape of the plasma profiles, and adjust them to fix the pressure on the magnetic axis and total plasma current. To do this, create a `ConstrainPaxisIp` profile object: ``` profiles = freegs.jtor.ConstrainPaxisIp(1e4, # Pressure on axis [Pa] 1e6, # Plasma current [Amps] 1.0) # Vacuum f=R*Bt ``` This sets the toroidal current to: where is the normalised poloidal flux, 0 on the magnetic axis and 1 on the plasma boundary/separatrix. The constants which determine the profile shapes are and . These can be changed by specifying in the initialisation of `ConstrainPaxisIp`. The values of and are determined from the constraints: The pressure on axis is given by integrating the pressure gradient flux function The total toroidal plasma current is calculated by integrating the toroidal current function over the 2D domain: The integrals in these two constraints are done numerically, and then rearranged to get and . #### Constrain poloidal beta and current[¶](#constrain-poloidal-beta-and-current) This is a variation which replaces the constraint on pressure with a constraint on poloidal beta: This is the method used in [Y.M.Jeon 2015](https://arxiv.org/abs/1503.03135), on which the profile choices here are based. ``` profiles = freegs.jtor.ConstrainBetapIp(0.5, # Poloidal beta 1e6, # Plasma current [Amps] 1.0) # Vacuum f=R*Bt ``` By integrating over the plasma domain and combining the constraints on poloidal beta and plasma current, the values of and are found. ### Feedback and shape control[¶](#feedback-and-shape-control) To determine the currents in the coils, the shape and position of the plasma needs to be constrained. In addition, diverted tokamak plasmas are inherently vertically unstable, and need vertical position feedback to maintain a stationary equilibrium. If vertical position is not constrained, then free boundary equilibrium solvers can also become vertically unstable. A typical symptom is that each nonlinear iteration of the solver results in a slightly shifted or smaller plasma, until the plasma hits the boundary, disappears, or forms unphysical shapes causing the solver to fail. Currently the following kinds of constraints are implemented: * X-point constraints adjust the coil currents so that X-points (nulls in the poloidal field) are formed at the locations requested. * Isoflux constraints adjust the coil currents so that the two locations specified have the same poloidal flux. This usually means they are on the same flux surface, but not necessarily. * Psi value constraints, which adjust the coil currents so that given locations have the specified flux. As an example, the following code creates a feedback control with two X-point constraints and one isoflux constraint: ``` xpoints = [(1.1, -0.6), # (R,Z) locations of X-points (1.1, 0.8)] isoflux = [(1.1,-0.6, 1.1,0.6)] # (R1,Z1, R2,Z2) pairs constrain = freegs.control.constrain(xpoints=xpoints, isoflux=isoflux) ``` The control system determines the currents in the coils which are under feedback control, using the given constraints. There may be more unknown coil currents than constraints, or more constraints than coil currents. There may therefore be either no solution or many solutions to the constraint problem. Here Tikhonov regularisation is used to produce a unique solution and penalise large coil currents. ### Solving[¶](#solving) To solve the Grad-Shafranov equation to find the free boundary solution, call `freegs.solve`: ``` freegs.solve(eq, # The equilibrium to adjust profiles, # The toroidal current profile constrain) # Feedback control ``` This call modifies the input equilibrium (eq), finding a solution based on the given plasma profiles and shape control. The Grad-Shafranov equation is nonlinear, and is solved using Picard iteration. This consists of calculating the toroidal current given the poloidal flux , then solving a linear elliptic equation to calculate the poloidal flux from the toroidal current. This loop is repeated until a given relative tolerance is achieved: To see how the solution is evolving at each nonlinear iteration, for example to diagnose a failing solve, set `show=True` in the solve call. To add a delay between iterations set `pause=2.0` using the desired delay in seconds. #### Inner linear solver[¶](#inner-linear-solver) To calculate the poloidal flux given the toroidal current, an elliptic equation must be solved. To do this a multigrid scheme is implemented, which uses Jacobi iterations combined with SciPy’s sparse matrix direct solvers at the coarsest level. By default the multigrid is not used, and SciPy’s direct solver is used for the full grid. This is because for typical grid resolutions (65 by 65) this has been found to be fastest. The multigrid method will however scale efficiently to larger grid sizes. The easiest way to adjust the solver settings is to call the Equilibrium method `setSolverVcycle`. For example ``` eq.setSolverVcycle(nlevels = 4, ncycle = 2, niter = 10, direct=True) ``` This specifies that four levels of grid resolution should be used, including the original. In order to be able to coarsen (restrict) a grid, the number of points in both R and Z dimensions should be an odd number. This is one reason why grid sizes are usually ; it allows the maximum number of multigrid levels. The number of V-cycles (finest -> coarsest -> finest) is given by `ncycle`. At each level of refinement the number of Jacobi iterations to perform before restriction and again after interpolation is `niter`. At the coarsest level of refinement the default is to use a direct (sparse) solver. Some experimentation is needed to find the optimium settings for a given problem. Input and Output[¶](#input-and-output) --- A standard format for storing tokamak equilibrium data is [G-EQDSK](https://fusion.gat.com/theory/Efitgeqdsk) which contains the poloidal flux in (R,Z) and 1D profiles of pressure, , safety factor q, and other quantities related to the Grad-Shafranov solution. The G-EQDSK format does not however have a standard for specifying the location of, and currents in, the poloidal field coils. This makes writing G-EQDSK files quite straightforward, but reading them more challenging, as these coil currents must be inferred. The implementation of the file input and output is divided into a high level interface in `freegs.geqdsk` and a low level interface in `freegs._geqdsk`. The high level interface handles `Equilibrium` objects, whilst the low level interface handles simple dictionaries. ### Writing G-EQDSK files[¶](#writing-g-eqdsk-files) Import the `geqdsk` module from `freegs`, passing an `Equilibrium` object and a file handle: ``` from freegs import geqdsk with open("lsn.geqdsk", "w") as f: geqdsk.write(eq, f) ``` ### Reading G-EQDSK files[¶](#reading-g-eqdsk-files) This is complicated by the need to infer the currents in the coils. To do this the locations of the coils need to be specified. An example is `02-read-geqdsk.py` which reads a file produced by `01-freeboundary.py`. First create a machine object which specifies the location of the coils ``` from freegs import machine tokamak = machine.TestTokamak() ``` Reading the file then consists of ``` from freegs import geqdsk with open("lsn.geqdsk") as f: eq = geqdsk.read(f, tokamak, show=True) ``` This `read` function has the following stages: 1. Reads the plasma state from the file into an Equilibrium object 2. Uses the control system to find starting values for the coil currents, keeping the plasma boundary and X-point locations fixed 3. Runs the Grad-Shafranov picard solver, keeping profiles and boundary shape fixed. This adjusts the plasma solution and coil currents to find a self-consistent solution. The `show` optional parameter displays a plot of the equilibrium, and shows the stages in the Grad-shafranov solve. Some options are: 1. domain = (Rmin, Rmax, Zmin, Zmax) which can be used to specify the (R,Z) domain to solve on. This is useful for reading inputs from fixed boundary codes like SCENE, where the X-point(s) may lie outside the domain. The coil current feedback needs to find where the edge of the plasma is, so needs to find an X-point to work correctly. The grid spacing is never allowed to increase, so this may result in an increase in the number of grid points. 2. blend is a number between 0 and 1, and is used in the nonlinear Picard iteration. It determines what fraction of the previous solution is used in the next solution. The default is 0, so no blending is done. Adding blending (e.g. 0.5, 0.7) usually slows convergence, but can stabilise oscillating or unstable solutions. 3. fit_sol is False by default, so only points inside the separatrix are used when fitting the coil currents to match the input poloidal flux. This is useful in cases like reading SCENE inputs, where the poloidal flux in the Scrape-Off Layer (SOL) is not valid in the input. Setting fit_sol=True causes the whole input domain to be used in the fitting. Currently this is NOT compatible with setting a domain. It is useful when the locations of strike points need to be matched, and may better constrain coil currents for free boundary inputs (e.g. EFIT). #### Specifying coil currents[¶](#specifying-coil-currents) A feedback control system is used to keep the plasma boundary and X-point locations fixed whilst adjusting the coil currents. If additional information about coil currents is available, then this can be used to fix some or all of the coil currents. To see a list of the coils available: ``` print(tokamak.coils) [('P1L', Coil(R=1.0,Z=-1.1,current=0.0,control=True)), ('P1U', Coil(R=1.0,Z=1.1,current=0.0,control=True)), ('P2L', Coil(R=1.75,Z=-0.6,current=0.0,control=True)), ('P2U', Coil(R=1.75,Z=0.6,current=0.0,control=True))] ``` Before calling `geqdsk.read`, specify the coil currents in the `tokamak` object: ``` tokamak["P1L"].current = 5e4 # Amp-turns ``` This will give the control system a starting value for the coil currents, but since the coil is still under feedback control it may still be altered. To fix the current in the coil turn off control: ``` tokamak["P1L"].control = False # No feedback control (fixed current) ``` ### Writing DivGeo files[¶](#writing-divgeo-files) These are used as input to the SOLPS grid generator. They contain a subset of what’s in G-EQDSK files, with no plasma pressure or current profiles. To convert a G-EQDSK file directly to DivGeo without any solves, and without needing to know the coil locations, use the low-level routines: ``` from freeqdsk import geqdsk from freegs import _divgeo with open("input.geqdsk") as f: data = geqdsk.read(f) with open("output.equ", "w") as f: _divgeo.write(data, f) ``` FreeGS equilibria objects can also be written to DivGeo files using the divgeo module: ``` from freegs import geqdsk from freegs import divgeo from freegs.machine import TestTokamak # Read a G-EQDSK file with open("lsn.geqdsk") as f: eq = geqdsk.read(f, TestTokamak(), show=True) # Modify the equilbrium... # Save to DivGeo with open("lsn.equ", "w") as f: divgeo.write(eq, f) ``` Diagnostics[¶](#diagnostics) --- Once an equilibrium has been generated (see [creating_equilibria_](#id1)) there are routines for diagnosing and calculating derived quantities. Here the `Equilibrium` object is assumed to be called `eq` and the `Tokamak` object called `tokamak`. ### Safety factor, q[¶](#safety-factor-q) The safety factor at a given normalised poloidal flux (0 on the magnetic axis, 1 at the separatrix) can be calculated using the `q(psinorm)` function: ``` eq.q(0.9) # safety factor at psi_norm = 0.9 ``` Note that calculating on either the magnetic axis or separatrix is problematic, so values calculated at and are likely to be inaccurate. This function can be used to print the safety factor on a set of flux surfaces: ``` print("\nSafety factor:\n\tpsi \t q") for psi in [0.01, 0.9, 0.95]: print("\t{:.2f}\t{:.2f}".format(psi, eq.q(psi))) ``` If no value is given for the normalised psi, then a uniform array of values between 0 and 1 is generated (not including the end points). In this case both the values of normalised psi and the values of q are returned: ``` psinorm, q = eq.q() ``` which can be used to make a plot of the safety factor: ``` import matplotlib.pyplot as plt plt.plot(*eq.q()) plt.xlabel(r"Normalised $\psi$") plt.ylabel(r"Safety factor $q$") plt.show() ``` ### Poloidal beta[¶](#poloidal-beta) The poloidal beta is given by: ``` betap = eq.poloidalBeta() ``` This is calculated using the expression i.e. the same calculation as is done in the poloidal beta constraint [constrain_betap_ip_](#id3). ### Plasma pressure[¶](#plasma-pressure) The pressure at a specified normalised psi is: ``` p = eq.pressure(0.0) # Pressure on axis ``` ### Separatrix location[¶](#separatrix-location) A set of points on the separatrix, measured in meters: ``` RZ = eq.separatrix() R = RZ[:,0] Z = RZ[:,1] import matplotlib.pyplot as plt plt.plot(R,Z) ``` ### Currents in the coils[¶](#currents-in-the-coils) The coil objects can be accessed and their currents queried. The current in a coil named “P1L” is given by: ``` eq.tokamak["P1L"].current ``` The currents in all coils can be printed using: ``` tokamak.printCurrents() ``` which is the same as: ``` for label, coil in eq.tokamak.coils: print(label + " : " + str(coil)) ``` ### Forces on the coils[¶](#forces-on-the-coils) The forces on all poloidal field coils can be calculated and returned as a dictionary: ``` eq.getForces() ``` or formatted and printed: ``` eq.printForces() ``` These forces on the poloidal coils are due to a combination of: * The magnetic fields due to other coils * The magnetic field of the plasma * A self (hoop) force due to the coil’s own current The self force is the most difficult to calculate, since the force depends on the cross-section of the coil. The formula used is from [<NAME> and <NAME> (1998)](https://doi.org/10.1063/1.870491). For a circular current loop of radius and minor radius , the outward force per unit length is: where is a constant which depends on the internal current distribution. For a constant, uniform current ; for a rapidly varying surface current . For the purposes of calculating this force the cross-section is assumed to be circular. The area can be set to a fixed value: ``` tokamak["P1L"].area = 0.01 # Area in m^2 ``` where here “P1L” is the label of the coil. The default is to calculate the area using a limit on the maximum current density. A typical value chosen here for Nb3Sn superconductor is , taken from [Kalsi (1986)](https://doi.org/10.1016/0167-899X(86)90010-8) . This can be changed e.g: ``` from freegs import machine tokamak["P1L"].area = machine.AreaCurrentLimit(1e9) ``` would set the current limit for coil “P1L” to 1e9 Amps per square meter. ### Sensor Measurements[¶](#sensor-measurements) For a machine populated with sensors, to run the `get_Measure(equilibrium)` method of each sensor, `tokamak.takeMeasurments(equilibrium)` is used. The measurement atrribute of each sensor is then updated with the measured values. If no equilibrium object is passed, then the sensors will find the coil contribution (and in a future update, vessel current contribution) to each of the measurements. To measure and print the values, the following method is used: ``` from freegs import machine tokamak = machine.TestTokamakSensor() tokamak.printMeasurements(equilibrium) ``` The Rogowski Coils uses a nearest neighbour interpolation method. The following diagram illustrates this. The points correspond to each grid point on the equilibrium grid. A shapely square object is created, centered around the point. The sensor calculates the intersection area of each square with the rog and multiplies it by the value of the current density at that point. Both the BP and FL sensors use pre specified methods using interpolation in the machine and equilibrium classes. ### Field line connection length[¶](#field-line-connection-length) Example: `10-mastu-connection.py`. Requires the file `mast-upgrade.geqdsk` which is created by running `08-mast-upgrade.py`. To calculate the distance along magnetic field lines from the outboard midplane to the walls in an equilibrium `eq`, the simplest way is: ``` from freegs import fieldtracer forward, backward = fieldtracer.traceFieldLines(eq) ``` To also plot the field lines on top of the equilibrium: ``` axis = eq.plot(show=False) forward, backward = fieldtracer.traceFieldLines(eq, axis=axis) plt.show() ``` This will display the poloidal cross-section of the plasma, and plot field lines traced in both directions along the magnetic field from the outboard midplane. To plot the distances along the magnetic field from midplane to target as a function of the starting radius: ``` plt.plot(forward.R[0,:], forward.length[-1,:], label="Forward") plt.plot(backward.R[0,:], backward.length[-1,:], label="Backward") plt.legend() plt.xlabel("Starting major radius [m]") plt.ylabel("Parallel connection length [m]") plt.show() ``` Here `forward.R` and `forward.length` are 2D arrays, where the first index is the point along the magnetic field (0 = start, -1 = end), and the second index is the field line number. There is also `forward.Z` with the height in meters. The output can be customised by passing keywords to `traceFieldLines`: `solwidth` sets the width of the starting region at the outboard midplane; `nlines` is the number of field lines to follow in each direction; `nturns` the number of times around the torus to follow the field; `npoints` is the number of points along each field line. For more control over which field lines are followed, the `FieldTracer` class does the actual field line following: ``` from freegs import fieldtracer import numpy as np tracer = fieldtracer.FieldTracer(eq) result = tracer.follow([1.35], [0.0], np.linspace(0.0, 2*np.pi, 20)) ``` This follows a magnetic field in the direction of B, starting at , , outputting positions at 20 toroidal angles between 0 and 2pi i.e. one toroidal turn. The R and Z starting locations should be an array or list with the same shape. The `result` is an array: The first index is the angle (size 20 here), and the last index has size 3 (R, Z, length). Between the first and last indices the result has the same shape as the R and Z starting positions. In the above code `result` has size `(20, 1, 3)`. To plot the field line on top of the equilibrium: ``` import matplotlib.pyplot as plt eq.plot(show=False) plt.plot(result[:,0,0], result[:,0,1]) plt.show() ``` The direction to follow along the field can be reversed by passing `backward=True` keyword to `tracer.follow`. Tests[¶](#tests) --- ### Unit tests[¶](#unit-tests) Unit testing is done with [pytest](https://docs.pytest.org/en/latest/). Run the tests in the `freegs` directory with: ``` pytest ``` ### Convergence test[¶](#convergence-test) The `test-convergence.py` script solves for the same plasma as the `01-freeboundary.py` example, with four poloidal field coils and an X-point. The change in results as the resolution is doubled is plotted as a function of grid resolution. This is therefore not testing convergence to a known solution, but is a check that the code converges to value, and indication of its convergence rate. Results are shown below, using the von Hagenow free boundary, and 4th-order solver for the poloidal flux . This indicates that in general convergence is between 2nd and 4th-order. The plasma volume is currently calculated by integrating over the poloidal cross-section, and could be improved by converting this to a surface integral. Optimisation[¶](#optimisation) --- This is an experimental feature which is at an early stage of development. The aim is to enable equilibria to be automatically optimised. This has the following components: 1. Measures, a quantity which measures how “good” a solution is. Typically the aim is to minimise this quantity, so I suppose it’s really a measure of how bad the solution is. 2. Controls, quantities which can be changed. These could be machine parameters such as coil locations, constraints like X-point location, or plasma profiles such as poloidal beta or plasma current. 3. An algorithm which modifies the controls and finds the best equilibrium according to the measure it’s given. At the moment the method used is Differential Evolution. ### Differential Evolution[¶](#differential-evolution) [Differential Evolution](https://en.wikipedia.org/wiki/Differential_evolution) is a type of stochastic search, similar to Genetic Algorithms, generally well suited to problems involving continuously varying parameters. The implementation of the algorithm is in [freegs.optimiser](https://github.com/bendudson/freegs/blob/master/freegs/optimiser.py). It is generic, in that it operates on objects but does not need to know any details of what those objects are. To modify objects a list of `controls` are passed to the optimiser, each of which can set and get a value. To score each object a `measure` function is needed, which takes an object as input and returns a value. The optimiser works to minimise this value. An example which uses the optimisation method is in the `freegs` directory. This optimises a quadratic in 2D rather than tokamak equilibria. 100 generations are run, with 10 solutions (sometimes called agents) in each generation. Run this example with the command: ``` python test_optimiser.py ``` This should produce the figure below. The red point is the best solution at each generation; black points are the other points in that generation. Faded colors (light red, grey) are used to show previous generations. It can be seen that the points are clustered around the starting solution, as the agents spread out, and then around the solution as the agents converge to the minimum. ### Optimising tokamak equilibria[¶](#optimising-tokamak-equilibria) The code specific to FreeGS optimisation is in [freegs.optimise](https://github.com/bendudson/freegs/blob/master/freegs/optimise.py). This includes controls which modify aspects of the tokamak or equilibrium: | Control | Description | | --- | --- | | CoilRadius(name [, min, max]) | Modify coil radius, given name and optional limits | | CoilHeight(name [, min, max]) | Modify coil height | Measures which can be used by themselves or combined to specify the quantities which should be optimised: | Measure function | Description | | --- | --- | | max_abs_coil_current | Maximum current in any coil circuit | | max_coil_force | Maximum force on any coil | | no_wall_intersection | Prevent intersections of wall and LCFS | Each measure function takes an Equilibrium as input, and returns a value. These can be combined in a weighted sum using `optimise.weighted_sum`, or by passing your own function to `optimise`. The example [11-optimise-coils.py](https://github.com/bendudson/freegs/blob/master/11-optimise-coils.py) uses the following code to reduce the maximum force on the coils, while avoiding wall intersections: ``` from freegs import optimise as opt best_eq = opt.optimise(eq, # Starting equilibrium # List of controls [opt.CoilRadius("P2U"), opt.CoilRadius("P2L"), opt.CoilHeight("P2L")], # The function to minimise opt.weighted_sum(opt.max_coil_force, opt.no_wall_intersection), N=10, # Number of solutions in each generation maxgen=20, # How many generations monitor=opt.PlotMonitor()) # Plot the best in each generation ``` The monitor should be a callable (here it is an object of class `PlotMonitor`), which is called after each generation. This is used to update a plot showing the best solution in each generation, and save the figure to file. #.. automodule:: freegs.equilibrium # :members: Indices and tables[¶](#indices-and-tables) --- * [Index](genindex.html) * [Module Index](py-modindex.html) * [Search Page](search.html) [FreeGS](index.html#document-index) === ### Navigation Contents: * [Creating equilibria](index.html#document-creating_equilibria) * [Input and Output](index.html#document-input_and_output) * [Diagnostics](index.html#document-diagnostics) * [Tests](index.html#document-tests) * [Optimisation](index.html#document-optimisation) ### Related Topics * [Documentation overview](index.html#document-index) ### Quick search
rmq
hex
Erlang
RMQ === A set of tools for convenient work with RabbitMQ. Based on [`AMQP`](https://hexdocs.pm/amqp/AMQP.html) library. It includes: * [`RMQ.Connection`](RMQ.Connection.html) - for holding a robust connection to the server. * [`RMQ.Consumer`](RMQ.Consumer.html) - for implementing consumers. * [`RMQ.RPC`](RMQ.RPC.html) - for implementing RPC via RabbitMQ. RMQ.Connection behaviour === A [`GenServer`](https://hexdocs.pm/elixir/GenServer.html) which provides a robust connection to the RabbitMQ server. Usage --- ``` iex> RMQ.Connection.start_link([]) {:ok, #PID<0.310.0>} iex> RMQ.Connection.get_connection() {:ok, %AMQP.Connection{pid: #PID<0.314.0>}} ``` Configuration --- ``` config :rmq, :connection, uri: "amqp://localhost", name: "MyAppConnection", reconnect_interval: 5000, username: "user", password: "password" # ... other options for AMQP.Connection.open/3 ``` All configuration is optional. * `:uri` - an AMQP URI. Defaults to `"amqp://localhost"`; * `:reconnect_interval` - a reconnect interval in milliseconds. It can be also a function that accepts the current connection attempt as a number and returns a new interval. Defaults to `5000`; * other options for [`AMQP.Connection.open/2`](https://hexdocs.pm/amqp/AMQP.Connection.html#open/2). Dynamic configuration --- In case you need to read the configuration dynamically you can use [`config/0`](#c:config/0) callback: ``` defmodule MyApp.RabbitConnection do use RMQ.Connection def config do [ uri: System.get_env("RABBITMQ_URI"), name: "MyAppConnection", reconnect_interval: fn attempt -> attempt * 1000 end # ... ] end end ``` Multiple connections --- If for some reason, you need to hold multiple connections you can use the following approach: ``` defmodule MyApp.RabbitConnection1 do use RMQ.Connection, otp_app: :my_app end defmodule MyApp.RabbitConnection2 do use RMQ.Connection, otp_app: :my_app end # config.exs config :my_app, MyApp.RabbitConnection1, uri: "amqp://localhost", name: "MyAppConnection1" config :my_app, MyApp.RabbitConnection2, uri: "amqp://localhost", name: "MyAppConnection2" ``` `otp_app: :my_app` here can be omitted and in that case `otp_app: :rmq` will be used. [Link to this section](#summary) Summary === [Functions](#functions) --- [child_spec(init_arg)](#child_spec/1) Returns a specification to start this module under a supervisor. [config()](#config/0) Returns the configuration. [get_connection(module \\ __MODULE__)](#get_connection/1) Gets the connection. [start_link(opts)](#start_link/1) Starts a [`GenServer`](https://hexdocs.pm/elixir/GenServer.html) process linked to the current process. [start_link(module, opts)](#start_link/2) Starts a [`GenServer`](https://hexdocs.pm/elixir/GenServer.html) process linked to the current process. [Callbacks](#callbacks) --- [config()](#c:config/0) A callback invoked right before connection. [Link to this section](#functions) Functions === [Link to this section](#callbacks) Callbacks === RMQ.Consumer behaviour === RabbitMQ Consumer. Configuration --- * `:connection` - the connection module which implements [`RMQ.Connection`](RMQ.Connection.html) behaviour. Defaults to [`RMQ.Connection`](RMQ.Connection.html); * `:queue` - the name of the queue to consume. Will be created if does not exist. Also can be a tuple `{queue, options}`. See the options for [`AMQP.Queue.declare/3`](https://hexdocs.pm/amqp/AMQP.Queue.html#declare/3); * `:exchange` - the name of the exchange to which `queue` should be bound. Also can be a tuple `{exchange, type, options}`. See the options for [`AMQP.Exchange.declare/4`](https://hexdocs.pm/amqp/AMQP.Exchange.html#declare/4). Defaults to `""`; * `:routing_key` - queue binding key. Defaults to `queue`; Will be created if does not exist. Defaults to `""`; * `:dead_letter` - defines if the consumer should setup deadletter exchange and queue. Defaults to `true`; * `:dead_letter_queue` - the name of dead letter queue. Also can be a tuple `{queue, options}`. See the options for [`AMQP.Queue.declare/3`](https://hexdocs.pm/amqp/AMQP.Queue.html#declare/3). Defaults to `"#{queue}_error"`.; * `:dead_letter_exchange` - the name of the exchange to which `dead_letter_queue` should be bound. Also can be a tuple `{type, exchange}` or `{type, exchange, options}`. See the options for [`AMQP.Exchange.declare/4`](https://hexdocs.pm/amqp/AMQP.Exchange.html#declare/4). Defaults to `"#{exchange}.dead-letter"`; * `:dead_letter_routing_key` - routing key for dead letter messages. Defaults to `queue`; * `:concurrency` - defines if [`consume/3`](#c:consume/3) callback should be called in a separate process. Defaults to `true`; * `:prefetch_count` - sets the message prefetch count. Defaults to `10`; * `:consumer_tag` - consumer tag. Defaults to a current module name; * `:reconnect_interval` - a reconnect interval in milliseconds. It can be also a function that accepts the current connection attempt as a number and returns a new interval. Defaults to `5000`; Examples --- ``` defmodule MyApp.Consumer do use RMQ.Consumer, queue: {"my-app-consumer-queue", durable: true}, exchange: {"my-exchange", :direct, durable: true} @impl RMQ.Consumer def consume(chan, payload, meta) do # do something with the payload ack(chan, meta.delivery_tag) end end defmodule MyApp.Consumer2 do use RMQ.Consumer @impl RMQ.Consumer def config do [ queue: System.fetch_env!("QUEUE_NAME"), reconnect_interval: fn attempt -> attempt * 1000 end, ] end @impl RMQ.Consumer def consume(chan, payload, meta) do # do something with the payload ack(chan, meta.delivery_tag) end end ``` [Link to this section](#summary) Summary === [Functions](#functions) --- [setup_queue(chan, config)](#setup_queue/2) The default implementation for [`setup_queue/2`](#c:setup_queue/2) callback. [Callbacks](#callbacks) --- [config()](#c:config/0) A callback for dynamic configuration. [consume(chan, payload, meta)](#c:consume/3) A callback for consuming a message. [setup_queue(chan, config)](#c:setup_queue/2) Does all the job on preparing the queue. [Link to this section](#functions) Functions === [Link to this section](#callbacks) Callbacks === RMQ.RPC behaviour === RPC via RabbitMQ. In short, it's a [`GenServer`](https://hexdocs.pm/elixir/GenServer.html) which implements a publisher and a consumer at once. You can read more about how this works in the [tutorial](https://www.rabbitmq.com/tutorials/tutorial-six-python.html). Configuration --- * `:connection` - the connection module which implements [`RMQ.Connection`](RMQ.Connection.html) behaviour; * `:queue` - the queue name to which the module will be subscribed for consuming responses. Also can be a tuple `{queue, options}`. See the options for [`AMQP.Queue.declare/3`](https://hexdocs.pm/amqp/AMQP.Queue.html#declare/3). Defaults to `""` which means the broker will assign a name to the newly created queue by itself; * `:exchange` - the exchange name to which `:queue` will be bound. Please make sure the exchange exist. Defaults to `""` - the default exchange; * `:consumer_tag` - a consumer tag for `:queue`. Defaults to the current module name; * `:publishing_options` - any valid options for [`AMQP.Basic.publish/5`](https://hexdocs.pm/amqp/AMQP.Basic.html#publish/5) except `reply_to`, `correlation_id` - these will be set automatically and cannot be changed. Defaults to `[]`; * `:reconnect_interval` - a reconnect interval in milliseconds. It can be also a function that accepts the current connection attempt as a number and returns a new interval. Defaults to `5000`; * `:filter_parameters` - a list of parameters that may contain sensitive data and have to be filtered out when logging. Defaults to `["password"]`. Example --- Application 1: ``` defmodule MyApp.RemoteResource do use RMQ.RPC, publishing_options: [app_id: "MyApp"] def find_by_id(id) do call("remote-resource-finder", %{id: id}) end end ``` Application 2: ``` defmodule MyOtherApp.Consumer do use RMQ.Consumer, queue: "remote-resource-finder" @impl RMQ.Consumer def consume(chan, payload, meta) do response = payload |> Jason.decode!() |> Map.fetch!("id") |> MyOtherApp.Resource.get() |> Jason.encode!() reply(chan, meta, response) ack(chan, meta) end end ``` [Link to this section](#summary) Summary === [Functions](#functions) --- [call(module, queue, payload \\ %{}, options \\ [], timeout \\ 5000)](#call/5) Performs a call against the given module. [setup_queue(chan, conf)](#setup_queue/2) The default implementation for [`setup_queue/2`](#c:setup_queue/2) callback. [Callbacks](#callbacks) --- [config()](#c:config/0) A callback for dynamic configuration. [setup_queue(chan, config)](#c:setup_queue/2) Does all the job on preparing the queue. [Link to this section](#functions) Functions === [Link to this section](#callbacks) Callbacks === RMQ.Utils === Utility functions. [Link to this section](#summary) Summary === [Functions](#functions) --- [ack(chan, delivery_tag_or_meta, options \\ [])](#ack/3) Acknowledges one or more messages. [reply(chan, meta, payload, options \\ [])](#reply/4) Produces a reply to the message. [Link to this section](#functions) Functions ===
CNPS
cran
R
Package ‘CNPS’ October 12, 2022 Type Package Title Nonparametric Statistics Version 1.0.0 Author <NAME> [aut,cre] (<<EMAIL>>), <NAME> [aut], <NAME> [aut], <NAME> [aut] Maintainer <NAME> <<EMAIL>> Description We unify various nonparametric hypothesis testing problems in a framework of permutation test- ing, enabling hypothesis testing on multi-sample, multidimensional data and contingency ta- bles. Most of the functions available in the R environment to implement permutation tests are sin- gle functions constructed for specific test problems; to facilitate the use of the package, the pack- age encapsulates similar tests in a categorized manner, greatly improving ease of use. We will all provide functions for self-selected permutation scoring methods and self-selected p- value calculation methods (asymptotic, exact, and sampling). For two-sample tests, we will pro- vide mean tests and estimate drift sizes; we will provide tests on variance; we will pro- vide paired-sample tests; we will provide correlation coefficient tests under three mea- sures. For multi-sample problems, we will provide both ordinary and ordered alterna- tive test problems. For multidimensional data, we will implement multivariate means (includ- ing ordered alternatives) and multivariate pairwise tests based on four statistics; the compo- nents with significant differences are also calculated. For contingency tables, we will per- form permutation chi-square test or ordered alternative. License GPL-2 Encoding UTF-8 Suggests e1071 NeedsCompilation no Repository CRAN Date/Publication 2021-05-25 07:00:06 UTC R topics documented: ci... 2 corr_tes... 3 emcd... 4 ksample_tes... 5 MultiDimen_tes... 6 pairwise_tes... 8 permu_tabl... 10 RMD_tes... 12 siegel_tuke... 13 twosample_tes... 14 cip confidence interval for percentiles in the one-sample case Description Finding confidence interval for (100p)th percentile in the one-sample case. Usage cip(x, conf.level = 0.95, p = 0.5) Arguments x numeric vector of data values conf.level confidence level for the returned confidence interval p an arbitrary value from 0 to 1 which indicates the percentile Details Usually we take the set with the shortest interval. But if the upper bound is greater than the maxi- mum value(or the lower bound is less than the minimum value), we will choose the maximum value as the upper bound(the minimum value as the lower bound). Value A list with following components Lower.rank rank of the lower bound of the confidence interval in the order statistic Upper.rank rank of the upper bound of the confidence interval in the order statistic Lower the lower bound of the confidence interval Upper the upper bound of the confidence interval Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References Higgins, J. J. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples x <- c(72.1, 72.8, 72.9, 73.3, 76.1, 76.5, 78.8, 78.9, 79.7, 80.3, 80.5, 81.0) cip(x) cip(x, conf.level =0.9, p=0.7) corr_test Correlation test Description Test the correlation coefficient of the sample. Usage corr_test(x, y, alternative = "greater", measure = "pearson", method_p = "sampling", samplenum = 1000, conf.level.sample = 0.95) Arguments x numeric vectors of data values and should have the same length y numeric vectors of data values and should have the same length alternative a character string specifying the alternative hypothesis, must be one of "two.sided", "greater"(default) or "less" measure the way to measure the correlation coefficient and must be one of "pearson", "spearman" or "kendall" method_p a string indicating what method to use for p-value. "sampling" represents sam- pling; "asymptotic" represents using large sample approximations samplenum the number of SRS samples conf.level.sample p-value confidence level for SRS sampling Details All procedures and methods of the correlation coefficient test based on the Spearman Correlation Coefficient are the same as for the Pearson Correlation Coefficient. But pay attention to that the correlation coefficient test based on Kendall Correlation Coefficient is a little different from the above two due to its definition. Value A list with following components method the test uesd score the score which is used stat the statistic of the data under the given scoring system conf.int the confidence interval for p-value(only if method_p = "sampling") pval p-value for the test null.value a character string describing the alternative hypothesis Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References Higgins, J. J. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples x=c(68,70,71,72) y=c(153,155,140,180) corr_test(x , y , measure = "kendall" , method = "asymptotic") corr_test(x , y , measure = "kendall" , method = "sampling") emcdf Estimating the population cdf Description Finding confidence interval for the population cdf. Usage emcdf(x, conf.level = 0.05) Arguments x numeric vector of data values conf.level confidence level for the returned confidence interval Details This "emcdf" constructs the approximation interval according to the central limit theorem. And use "plot(emcdf(data))" will help us draw a plot conveniently. Value A list with following components sample the given vector empirical.cdf the value of the empirical cdf Lower the lower bound of the confidence interval of the empirical cdf Upper the upper bound of the confidence interval of the empirical cdf Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References Higgins, <NAME>. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples x <- c(7,11,15, 16, 20, 22, 24, 25, 29, 33, 34, 37, 41, 42, 49, 57, 66, 71, 84, 90) em <- emcdf(x) plot(em) ksample_test Multiple sample permutation test Description Test whether there is a difference among k treatments. Usage ksample_test(x, group, score = "kruskal", method_p = "sampling", type = "normal", samplenum = 1000, conf.level.sample = 0.95) Arguments x numeric vector of data values group factor that determines the grouping of elements in x score a discrete value indicating the type of score. There are "original", "Wilcoxon", "van" and "exp" to be selected method_p a string indicating what method to use for p-value. "sampling" represents sam- pling; "asymptotic" represents using large sample approximations type "normal" refers to ordinary test, "JT" refers to ordered alternative hypothesis samplenum the number of SRS samples conf.level.sample p-value confidence level for SRS sampling Details Use a permutation sample based on the F-statistic or use a large sample approximation to determine if there is a difference between the populations (treatments). If the sample is ordered, you can also use the JT test. The argument "score" allows you to choose different scoring system to do the test. If you want to use a special scoring system defined by yourself, just transform the data first and then choose score="original" in the function. Value A list with following components method the test uesd stat the statistic of the data under the given scoring system conf.int the confidence interval for p-value(only if method_p = "sampling") pval p-value for the test alternative a character string describing the alternative hypothesis Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References <NAME>. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples x1=c( 13.0, 24.1, 11.7, 16.3, 15.5, 24.5) x2=c( 42.0, 18.0, 14.0, 36.0, 11.6, 19.0) x3=c( 15.6, 23.8, 24.4, 24.0, 21.0, 21.1) x4=c( 35.3, 22.5, 16.9, 25.0, 23.1, 26.0) x <- c(x1, x2, x3, x4) ind=c(rep(1,length(x1)), rep(2, length(x2)), rep(3, length(x3)), rep(4, length(x4))) group=as.factor(ind) ksample_test(x , group , type = "JT" , samplenum = 4000) MultiDimen_test Multivariate Permutation Test and Paired Comparisons Description Performs multivariate permutation tests, including paired tests. Usage MultiDimen_test (data , stat = "HT",pair=FALSE, method_p = "sampling",rank = FALSE, diff = FALSE , samplenum = 1000) Arguments data a matrix or data frame of data values. stat a character string specifying the statistic, must be one of "HT" (default), "tmax", "tmaxabs", "wsum", "zmax", "zmaxabs". pair a logical indicating whether you want a paired test. method_p a character string specifying the method of calculating p-value, must be one of "sampling" (default), " asymptotic", "exact". rank a logical indicating whether you want Wilcoxon test. diff a logical indicating whether you want to present which variables are different. samplenum a number specifying the number of sampling. Details The test can be used for multivariate permutation test and multivariate paired comparisons. When doing multivariate paired comparisons, that is pair = TRUE, the statistic wsum is not suitable. Meanwhile, asymptotic method can only be used when statistic is HT. Besides, the second last column of the data must only contain two unique numbers to represent the two samples; the last column represents different pairs. When doing multivariate permutation test, that is pair = FALSE, the statistic zmax and zmaxabs are not suitable. Meanwhile, the last column of the data must only contain 0 and 1 to represent the two samples. Besides, asymptotic method can not be used when statistic is tmax or tmaxabs. Value method the test which is used. score a character string describing the score used for test. stat the test statistic. pval p-value for the test. alternative a character string describing the alternative hypothesis. addition a character string describing which variable is different in two samples.(presents only if pair = FALSE) Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References <NAME>. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples ## Multivariate permutation test data = matrix(c(6.81, 6.16, 5.92, 5.86, 5.80, 5.39, 6.68, 6.30, 6.12, 5.71, 6.09, 5.28, 6.34, 6.22, 5.90, 5.38, 5.20, 5.46, 6.68, 5.24, 5.83, 5.49, 5.37, 5.43, 6.79, 6.28, 6.23, 5.85, 5.56, 5.38, 6.85, 6.51, 5.95, 6.06, 6.31, 5.39, 6.64, 5.91, 5.59, 5.41, 5.24, 5.23, 6.57, 5.89, 5.32, 5.41, 5.32, 5.30, 6.84, 6.01, 5.34, 5.31, 5.38, 5.45, 6.71, 5.60, 5.29, 5.37, 5.26, 5.41, 6.58, 5.63, 5.38, 5.44, 5.17, 6.62, 6.68, 6.04, 5.62, 5.31, 5.41, 5.44), nrow = 12,ncol = 6,byrow = TRUE ) data=as.matrix(data) index=c(rep(0,6),rep(1,6)) data = cbind(data,index) x = MultiDimen_test(data , rank = FALSE , method_p = "sampling", samplenum = 100 , stat = "HT",diff = TRUE ) y = MultiDimen_test(data , rank = FALSE , method_p = "sampling", samplenum = 100 , stat = "tmax",diff = TRUE) z = MultiDimen_test(data , rank = TRUE , method_p = "sampling" , stat = "HT" , samplenum = 100,diff = TRUE) ## Multivaraite paired comparisons data = matrix(c(82, 60, 72, 62, 75, 71, 70, 68, 85, 59, 87, 64, 90, 77, 87, 78), nrow = 4,ncol = 4,byrow = TRUE ) x = data[,c(1,2)] y = data[,c(3,4)] data = cbind(rbind(x,y) , c(0,0,1,1) , c(1,2,1,2)) MultiDimen_test(data , method_p = "exact" , pair = TRUE) pairwise_test Paired Comparisons Description Detects differences between two related samples. Usage pairwise_test(x, y, alternative = "greater", score = "wilcoxon", method_p = "asymptotic", method_asymptotic = "norm", method_wilcoxon = "type1", samplenum = 1000, conf.level.sample = 0.95, samplemethod = "R") Arguments x numeric vectors of data values and should have the same length y numeric vectors of data values and should have the same length alternative a character string specifying the alternative hypothesis, must be one of "two.sided", "greater"(default) or "less" score determines scoring systems and must be one of "original", "wilcoxon" or "sign" method_p a string indicating what method to use for p-value. "sampling" represents sam- pling; "asymptotic" represents using large sample approximations; "exact" rep- resents Iterate through all combinations method_asymptotic determines the asymptotic distribution and should be one of "norm" or "bino- mial"(only for method_p="sign") method_wilcoxon indicates the way to compute wilcoxon ranks when the ties are 0 and could be one of "type1" or "type2" samplenum the number of SRS samples conf.level.sample p-value confidence level for SRS sampling samplemethod a discrete value indicating the method of sampling. "S" represents sample func- tion sampling; "R" represents Put-back sampling Details If score="sign", then method_p must be "asymptotic". Three scoring systems can use the normal ap- proximation but only "sign" can use binomial approximation. Namely, the argument method_asymptotic can be selected as "binomial" only if method_p="sign". And method_wilcoxon indicates the method to deal with ties. "type1" means ranking with zeros and "type2" means ranking without zeros. Value A list with following components method the test uesd score the score which is used stat the statistic of the data under the given scoring system conf.int the confidence interval for p-value(only if method_p = "sampling") pval p-value for the test null.value a character string describing the alternative hypothesis Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References Higgins, <NAME>. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples x1=c(1530, 2130,2940,1960,2270) x2=c(1290, 2250,2430,1900,2120) pairwise_test(x1 , x2) pairwise_test(x1 , x2 , method_p = "sampling" , samplenum = 4000) pairwise_test(x1 , x2 , method_p = "asymptotic" , method_asymptotic = "norm") permu_table Permutation Tests for Contingency Tables Description Performs permutation tests on contingency tables, including tables with ordered or disordered cat- egories. Usage permu_table(data , permu = "row" , row = NULL , col = NULL , fix = "row" , samplenum = 1000) Arguments data a matrix or data frame of data values. permu a character string specifying the method of generating permutation samples, must be one of "row" (default), "col". row a numeric vector of the order of row categories. "row =NULL" indicates the categories are disordered. col a numeric vector of the order of colnum categories."col =NULL" indicates the categories are disordered. fix a character string specifying the group characteristic, must be one of "row" (de- fault), "col". This argument is used for JT test when both "row" and "col" argu- ments are not "NULL". samplenum a number specifying the number of sampling. Details The test can deal with the contingency tables with or without ordered categories. if both row and col are null, the data is viewed as normal contingency table with disordered categories. The test will use chi-square statistic. If one of row and col is not null, the data is viewed as contingency table with one ordered char- acteristic. The vector you put in represents the order. For another characteristic, the Wilcoxon test can be performed if it has two classes; if the characteristic has several different values, the Kruskal-Wallis test can be used. if both row and col are not null, that is both characteristics are ordered, the different values of one of the characteristic can be treated as observations and the JT test used for the other characteristic. Value method a character string describing the type of test. stat the value of the test statistic with a name describing it. pval the p-value for the test. alternative a character string describing the alternative hypothesis. conf.int 95% confidence interval of p-value(presents if either "row" and "col" arguments are not "NULL".) Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References Higgins, <NAME>. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples ## generate a contingency table x1=c(10,12, 17, 30) x2=c( 9, 9, 11, 35) x3=c( 7, 8, 12, 43) data = rbind(x1,x2,x3) ## without ordered categories permu_table(data) ## with ordered column categories permu_table(data , col = c(1,2,3,4) ) ## with ordered row categories permu_table(data , row = c(1,2,3)) ## with ordered row and column categories permu_table(data , col = c(1,2,3,4),row = c(1,2,3),fix = "row") RMD_test RMD Test Description Perform two-sample RMD test on vectors of data. Usage RMD_test(x , y , alternative = "greater" , mu1=median(x) , mu2=median(y), method_p="exact" , samplenum = 2000 , samplemethod = "R" , conf.level.sample = 0.95 ) Arguments x numeric vector of data values. y numeric vector of data values. alternative a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". mu1 mean value of x, or median if not given mu2 mean value of y, or median if not given method_p a character string specifying the method of calculating p-value, must be one of "exact" (default), "sampling". samplenum The number of samples samplemethod a discrete value indicating the method of sampling. "S" represents sample func- tion sampling; "W" represents Cistern Sampling; "R" represents Put-back sam- pling. conf.level.sample p-value confidence level for SRS sampling Details The test is to test the difference of deviance of two samples, which has different sample means. The arguments samplenum and samplemethod only work when method_p="sampling". Value method the test uesd stat RMD of the original data. pval p-value for the test. conf.int the confidence interval for p-value(only if method_p = "sampling") alternative a character string describing the alternative hypothesis Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References Higgins, J. J. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples ## A simple example x=c(16.55, 15.36, 15.94, 16.43, 16.01) y=c(16.05, 15.98, 16.10, 15.88, 15.91) RMD_test(x , y , alternative = "greater" ) siegel_tukey Siegel-Tukey Test Description Performs two-sample Siegel-Tukey test on vectors of data. Usage siegel_tukey (x,y,adjust.median=FALSE,...) Arguments x numeric vector of data values. y numeric vector of data values. adjust.median a logical indicating whether you want the adjusted median, which represents difference of each value with median. ... The input from twosample_test function. Details The test is about the scale parameter, to test the deviance. The arguments you want to modify is almost same with twosample_test. Value method the test used. stat the statistic of the original data. conf.int the confidence interval for p-value(only if method_p = "sampling") pval p-value for the test alternative a character string describing the alternative hypothesis. Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References <NAME>. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. Examples ## A simple example x <- c(33, 62, 84, 85, 88, 93, 97) y<-c(4, 16, 48, 51, 66, 98) siegel_tukey(x,y,adjust.median=FALSE) twosample_test Comprehensive two-sample permutation tests Description Perform two-sample permutation test on vectors of data. Usage twosample_test (x , y , alternative = "greater" , score = "wilcoxon" , method_p = "sampling" , samplenum = 2000 ,samplemethod="R", conf.level.sample = 0.95 , conf.diff = TRUE, conf.level.diff = 0.95) Arguments x numeric vector of data values. y numeric vector of data values. alternative a character string specifying the alternative hypothesis, must be one of "two.sided", "greater"(default) or "less". score a discrete value indicating the type of score. There are "original", "Wilcoxon", "van" and "exp" to be selected. method_p a string indicating what method to use for p-value. "sampling" represents sam- pling; "asymptotic" represents using large sample approximations; "exact" rep- resents Iterate through all combinations. samplenum The number of samples samplemethod a discrete value indicating the method of sampling. "S" represents sample func- tion sampling; "W" represents Cistern Sampling; "R" represents Put-back sam- pling. conf.level.sample p-value confidence level for SRS sampling conf.diff a logical indicating whether to calculate the confidence interval of drift parame- ters. conf.level.diff the level of confidence of drift parameters. Details score has 4 options: "original", "Wilcoxon", "van" and "exp". When choosing "original", the test is based on the original data; if score = "Wilcoxon", the test is baesd on rank-sum; if score = "van", the test is based on Van der Waerden score; if score = "exp", the test is based on exponential score. samplenum and samplemethod only work when method_p="sampling". Similarly, conf.level.diff only works when conf.diff =TRUE. Value method the test used. score the score which is used. stat the statistic of the original data. conf.int the confidence interval for p-value(only if method_p = "sampling") pval p-value for the test alternative a character string describing the alternative hypothesis. addition a character string describing the Hodges-Lehmann estimate and the confidence interval of the drift parameter. Author(s) <NAME>, <NAME>, <NAME>, <NAME>. Tutored by <NAME> and <NAME>. References <NAME>. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole. 16 twosample_test Examples ## A simple example x = c(1,2,3,4,5) y = c(2,3,4,5,6) twosample_test(x,y,samplemethod = "R" )
popupmenu
ctan
TeX
## The manual for the popupmenu package D. P. StoryTable of Contents * 1 Introduction * 1.1 Sample files * 1.2 Options, requirements, and workflows * 2 The popupmenu environment * 3 The popupmenu environment * 4 Executing a pop-up menu * 4.1 Declaring popupmenu in the body * 4.2 Declaring popupmenu in the preamble * 5 Remarks on ps2pdf 1. Introduction Acrobat JavaScript has an interesting function, app.popUpMenuEx(), that we exploit in this package. The function takes as its argument an array of structured menu items and displays these items as a pop-up menu. When an item is selected, a value is returned, which can then be acted upon in some way. Here is a simple example, pass your mouse pointer over the button:. This documentation describes the environments, commands, and JavaScript required to create such pop-up menus. ### Sample files The file pu-exmpls.tex is the only demo file; it incorporates the examples of this documentation, as well as few other bits and pieces. ### Options, requirements, and workflows _tracking_ **Options.** There are two options for this package tracking and!tracking (the default). The push button introduced earlier is an example of a menu system with _no tracking_ (!tracking). As you selected menu items appearance of the item does not change. When the tracking option is taken, the menu keeps track of which menu item is selected by placing a check mark to the left of the menu item; for example,, notice as you select items, a check mark appears; select another item, the previous check mark is removed, and the latest item selected is now checked. More on tracking in Section 4.2. **Requirements.** This package requires the eforms package, which is part of acrotex.1 Footnote 1: [http://www.ctan/pkg/acretex](http://www.ctan/pkg/acretex) **Workflows.** This is a general HEIX package, any workflows can be used to build a pop-upmenu document: pdflatex, lualatex, xelatex, or dvips > (distiller | ps2pdf).2 Footnote 2: popupmenu environment To generate a pop-up menu using app.popUpMenuEx() you need to pass to it through its argument a menu-array. The most convenient way of creating this "menu-array" is with the popupmenu environment. Before discussing the full syntax of popupmenu we reproduce the popupmenu environment that produced the Intro button in first paragraph of this section: \begin{popupmenu}{Intro} \item{titletitle,return=Title: The manual for the popupmenu package} \item{titleauthor,return=Author: <NAME>} \item{titlepackage name,return=Package: popupmenu} \end{tabular} This environment defines a JavaScript variable Intro and a HEIX command \Intro that expands to what you see below. * Line (8) The 'none; return value is used. * Line (12) The fragment (\(\#\)) is escaped (\(\backslash\)\(\#\)). * Line (31) The value of the title key is passed through the hyperref command \pdfstringdef, consequently, you can use standard FIFEX markup for Latin-1 characters. * Line (32) The return value has an equal sign (=), the return value is enclosed in braces to avoid a xkeyval parsing error. * Line (33) The double quote needs to be escaped (because ultimately, the value will appear within double quotes. We use a special \Esc command of popupmenu. * \cs * Line (35) To place a backslash(\'), use the \cs command. The popupmenu can be placed in the preamble or in the body of the document. Let's begin with the one declared in the body. ### Declaring popupmenu in the body Here, in the body, we declare a (simple) menu: \begin{popumpenum}{localMenu} \item{title=First Item} \item{title=Second Item} \end{popumpenum} \psubButton|CA[MyMenu]\AAnouseneter[\% \AocalMenu\r /Expand the command version of the menu-array \var cChoice = \popUpMenu(LocalMenu);\r // use \popUpMenu if (choice!= null ) \ app.alert("You cheese the \"+cChoice*\"\""); \}[LocalMenu@nth]{l[llbp] In line \(\bullet\) we declare our simple menu. In line \(\bullet\) we expand the command version of the _menu-array_. (Refer to comment \(\bullet\) of display (1) on page 4.) Finally, in line \(\bullet\), we execute \popUpMenu(LocalMenu) (See display (3) on page 5, and the comments that follow). Using this technique, there is _no tracking_; that is, the menu item chosen is not checked. The popupmenu can be declared in the preamble to obtain the same results, but still no tracking. To obtain tracking of the menu items, you must (1) declare popupmenu in the preamble; (2) include its name (LocalMenu) in the list of \(\langle\)_menu-array-names_\(\rangle\) of the \(\langle\)puUseMenu command of display (2); (3) delete line \(\bullet\); (4) replace \popUpMenu in line \(\bullet\) with \(\langle\)puProcessMenu; and (5) the tracking option must be specified. Details of setting up tracking are found in the Section 4.2. ### Declaring popupmenu in the preamble A popupmenu environment can be declared anywhere _before_ its first use in field JavaScript to actually display the menu to the user; however, to obtain tracking of the menu items chosen you must (1) specify \usepackage[tracking]\popupmenu, the %Declare popupmenu environment, return values are integers \begin{popupmenu}{puMulti} \item{title=Item1,return=0} \item{title=Item2,return=1} \begin{submenu}{title=Otheritems} \item{title=Item3,return=2} \end{submenu} \end{end{popupmenu} %Now execute the pop-up menu as a mouse enter event \pushButton{\CA{Multi}}\AMoumsouessenter{\puMultiAtn}}{MultiStn}{\{1lbp} 5. Remarks on ps2pdf To use the dwjs>ps2pdf workflow, document JavaScript needs to be avoided. Do not use the tracking option, do not use \puUseMenus, and use only the \popUpMenu command in field JavaScript. A simple outline of an document is found below, it is a working example. \documentclass{article} \usepackage{popupmenu} \partiendentOpt{parskip6pt} \begin{document} \%Declare in the body of the text, can use anywhere after this declaration \begin{popupmenu}{LocalMenu} \item{title=FirstItem} \item{title=SecondItem} \end{item} \end{popupmenu} Pop-up menu using \verb|\pushButton| of \textsf{eforms}: \pushButton{\CA{MyMenu}}\AMoumsouessenter{\LocalMenu} var cChoice = \popUpMenu(LocalMenu);\n if ( cChoice = null )\n\n\n \n app.alert("You chose the \"+Choice"\n" menu item"); \}[LocalMenuStn]}{[1libp]. Pop-up menu using \verb|\pushButton| of \textsf{hyperref}: \pushButton[name=hyperbutton1,onenter={\LocalMenu} var cChoice = \popUpMenu(LocalMenu); if ( cChoice!= null ) append.alert("You chose the \"+Choice"\n" menu item");\
GITHUB_papers-we-love_papers-we-love.zip_unzipped_the-dining-cryptographers-problem.pdf
free_programming_book
Unknown
J. Cryptology (1988) 1:65-75 Journal of Cryptology 9 1988 International Association for Cryptologic Research The Dining Cryptographers Problem: Unconditional Sender and Recipient Untraceability David C h a u m Centre for Mathematics and Computer Science, Kruislan 413, 1098SJ Amsterdam,The Netherlands Abstract. Keeping confidential who sends which messages, in a world where any physical transmission can be traced to its origin, seems impossible.The solution presented here is unconditionally or cryptographicallysecure, depending on whether it is based on one-time-usekeys or on public keys, respectively.It can be adapted to address efficientlya wide variety of practical considerations. Key words. Untraceability, Unconditional Security, Pseudonymity. Introduction Three cryptographers are sitting down to dinner at their favorite three-star restaurant. Their waiter informs them that arrangements have been made with the maitre d'h6tel for the bill to be paid anonymously. One of the cryptographers might be paying for the dinner, or it might have been NSA (U.S. National Security Agency). The three cryptographers respect each other's right to make an anonymous payment, but they wonder if NSA is paying. They resolve their uncertainty fairly by carrying out the following protocol: Each cryptographer flips an unbiased coin behind his menu, between him and the cryptographer on his right, so that only the two of them can see the outcome. Each cryptographer then states aloud whether the two coins he can s e e - - t h e one he flipped and the one his left-hand neighbor flipped--fell on the same side or on different sides. If one of the cryptographers is the payer, he states the opposite of what he sees. An odd number of differences uttered at the table indicates that a cryptographer is paying; an even number indicates that NSA is paying (assuming that the dinner was paid for only once). Yet if a cryptographer is paying, neither of the other two learns anything from the utterances about which cryptographer it is. To see why the protocol is unconditionally secure if carried out faithfully, consider the dilemma of a cryptographer who is not the payer and wishes to find out which cryptographer is. (IfNSA pays, there is no anonymity problem.) There are two cases. In case (1) the two coins he sees are the same, one of the other cryptographers said "different," and the other one said "same." If the hidden outcome was the same as the two outcomes he sees, the cryptographer who said "different" is the payer; if the outcome was different, the one who said "same" is the payer. But since the hidden coin is fair, both possibilities are equally likely. In case (2) the coins he sees are 65 66 D. Chaum different; if both other cryptographers said "different," then the payer is closest to the coin that is the same as the hidden coin; if both said "same," then the payer is closest to the coin that differs from the hidden coin. Thus, in each subcase, a nonpaying cryptographer learns nothing about which of the other two is paying. The cryptographers become intrigued with the ability to make messages public untraceably. They devise a way to do this at the table for a statement of arbitrary length: the basic protocol is repeated over and over; when one cryptographer wishes to make a message public, he merely begins inverting his statements in those rounds corresponding to l's in a binary coded version of his message. If he notices that his message would collide with some other message, he may for example wait a number of rounds chosen at random from a suitable distribution before trying to transmit again. 1. Generalizing the Approach During dinner, the cryptographers also consider how any number of participants greater than one can carry out a version of the protocol. (With two participants, only nonparticipant listeners are unable to distinguish between the two potential senders.) Each participant has a secret key bit in common with, say, every other participant. Each participant outputs the sum, modulo two, of all the key bits he shares, and if he wishes to transmit, he inverts his output. If no participant transmits, the modulo two sum of the outputs must be zero, since every key bit enters exactly twice; if one participant transmits, the sum must be one. (In fact, any even number of transmitting participants yields zero, and any odd number yields one.) For j rounds, each participant could have a j-bit key in common with every other participant, and the ith bit of each such key would be used only in the ith round. Detected collision of messages leads to attempted retransmission as described above; undetected collision results only from an odd number of synchronized identical message segments. (Generalization to fields other than GF(2) is possible, but seems to offer little practical advantage.) Other generalizations are also considered during dinner. The underlying assumptions are first made explicit, including modeling key-sharing arrangements as graphs. Next, the model is illustrated with some simple examples. The potential for cooperations of participants to violate the security of others is then looked at. Finally, a proof of security based on systems of linear equations is given. 1.1. Model Each participant is assumed to have two kinds of secret: (a) the keys shared with other participants for each round; and (b) the inversion used in each round (i.e., a 1 if the participant inverts in that round and a 0 if not). Some or all of a participant's secrets may be given to other participants in various forms of collusion, discussion of which is postponed until Section 1.3. (For simplicity in exposition, the possibility of secrets being stolen is ignored throughout.) The remaining information about the system may be described as: (a) who shares keys with whom; and (b) w h a t each participant outputs during each round (the The DiningCryptographersProblem 67 modulo two sum of that participant's keys and inversion). This information need not be secret to ensure untraceability. If it is publicly known and agreed, it allows various extensions discussed in Sections 2.5 and 2.6. The sum of all the outputs will, of course, usually become known to all participants. In the terminology of graphs, each participant corresponds to a vertex and each key corresponds to an edge. An edge is incident on the vertices corresponding to the pair of participants that shares the corresponding key. From here on, the graph and dinner-table terminologies will be used interchangeably. Also, without loss of generality, it will be assumed that the graph is connected (i.e., that a path exists between every pair of vertices), since each connected component (i.e., each maximal connected subgraph) could be considered a separate untraceable-sender system. An anonymity set seen by a set of keys is the set of vertices in a connected component of the graph formed from the original graph by removing the edges concerned. Thus a set of keys sees one anonymity set for each connected partition induced by removing the keys. The main theorem of Section 1.4 is essentially that those having only the public information and a set of keys seeing some anonymity set can learn nothing about the members of that anonymity set except the overall parity of their inversions. Thus, for example, any two participants connected by at least one chain of keys unknown to an observer are both in the same anonymity set seen by the observer's keys, and the observer gains nothing that would help distinguish between their messages. 1.2. Some Examples A few simple consequences of the above model may be illustrative. The anonymity set seen by the empty set (i.e., by a nonparticipant observer) is the set of all vertices, since the graph is assumed connected and remains so after zero edges are removed. Also, the anonymity sets seen by the full set of edges are all singleton sets, since each vertex's inversion is just the sum of its output and the corresponding key bits. If all other participants cooperate fully against one, of course no protocol can keep that singleton's messages untraceable, since untraceability exists only among a set of possible actors, and if the set has only one member, its messages are traceable. For similar reasons, if a participant believes that some subset of other participants will fully cooperate against him, there is no need for him to have keys in common with them. A biconnected graph (i.e., a graph with at least two vertex-disjoint paths between every pair of vertices) has no cut-vertices (i.e., a single vertex whose removal partitions the graph into disjoint subgraphs). In such a graph, the set of edges incident on a vertex v sees (apart from v) one anonymity set containing all other vertices, since there is a path not containing v between every pair of vertices, and thus they form a connected subgraph excluding v; each participant acting alone learns nothing about the contribution of other participants. 1.3. Collusion of Participants Some participants may cooperate by pooling their keys in efforts to trace the messages of others; such cooperation will be called collusion. For simplicity, the 68 D. Chaum possibilities for multiple collusions or for pooling of information other than full edges will be ignored. Colluders who lie to each other are only touched on briefly, in Section 2.6. Consider collusion in a complete graph. A vertex is only seen as a singleton anonymity set by the collection of all edges incident on it; all other participants must supply the key they share with a participant in order to determine that participant's inversions. But since a collusion of all but one participant can always trace that participant merely by pooling its members' inversions as already mentioned, it gains nothing more by pooling its keys. The nonsingleton anonymity set seen by all edges incident on a colluding set of vertices in a complete graph is the set of all other vertices; again, a collusion yields nothing more from pooling all its keys than from pooling all its inversions. Now consider noncomplete graphs. A full collusion is a subset of participants pooling all of their keys. The pooled keys see each colluder as a singleton anonymity set; the colluders completely sacrifice the untraceability of their own messages. If a full collusion includes a cut-set of vertices (i.e., one whose removal partitions the graph), the collusion becomes nontrivial because it can learn something about the origin of messages originating outside the collusion; the noncolluding vertices are partitioned into disjoint subgraphs, which are the anonymity sets seen by the pooled keys. Members of a partial collusion pool some but not all of their keys. Unlike the members of a full collusion, each member of a partial collusion in general has a different set of keys. For it to be nontrivial, a partial collusion's pooled keys must include the bridges or separating edges of a segregation or splitting of the graph (i.e., those edges whose removal would partition the graph). Settings are easily constructed in which the pooled keys see anonymity sets that partition the graph and yet leave each colluder in a nonsingleton partition seen by any other participant. Thus, coUuders can join a collusion without having to make themselves completely traceable to the collusion's other members. 1.4. Proof of Security Consider, without loss of generality, a single round in which say some full collusion knows some set of keys. Remove the edges known to the collusion from the key-sharing graph and consider any particular connected component C of the remaining graph. The vertices of C thus form an anonymity set seen by the pooled keys. Informally, what remains to be shown is that the only thing the collusion learns about the members of C is the parity sum of their inversions. This is intuitively apparent, since the inversions of the members of C are each in effect hidden from the collusion by one or more unknown key bits, and only the parity of the sum of these key bits is known (to be zero). Thus the inversions are hidden by a one-time pad, and only their parity is revealed, because only the parity of the pad is known. The setting is formalized as follows: the connected component C is comprised of m vertices and n edges. The incidence matrix M of C is defined as usual, with the vertices labeling the rows and the edges labeling the columns. Let K, I, and A be stochastic variables defined on GF(2) n, GF(2) m, and GF(2) m, respectively, such that The Dining CryptographersProblem 69 K is uniformly distributed over GF(2) ", K and I are mutually independent, and A = (MK) @ I. In terms of the protocol, K comprises the keys corresponding to the edges, I consists of the inversions corresponding to the vertices, and A is formed by the outputs of the vertices. Notice that the parity of A (i.e., the modulo two sum of its components) is always equal to the parity of I, since the columns of M each have zero parity. The desired result is essentially that A reveals no more information about I than the parity of I. More formally: Theorem. Let a be in GF(2) n. For each i in GF(2)", which is assumed by I with nonzero probability and which has the same parity as a, the conditional probability that A = a given that I = i is 2 l-re. Hence, the conditional probability that I = i given that A = a is the a priori probability that I = i. Proof. Let i e GF(2)" have the same parity as a. Consider the system of linear equations (MK) G i = a, in k e GF(2) n. Since the columns of M each have even parity, as mentioned above, its rows are linearly dependent over GF(2) m. But as a consequence of the connectedness of the graph, every proper subset of rows of M is linearly independent. Thus, the rank of M is m - 1, and so each vector with zero parity can be written as a linear combination of the columns of M. This implies that the system is solvable because i ~ a has even parity. Since the set of n column vectors of M has rank m - 1, the system has exactly 2 "-m+l solutions. Together with the fact that K and I are mutually independent and that K is uniformly distributed, the theorem follows easily. [] 2. Some Practical Considerations After dinner, while discussing how they can continue to make untraceable statements from this respective homes, the cryptographers take up a variety of other topics. In particular, they consider different ways to establish the needed keys; debate adapting the approach to various kinds of communication networks; examine the traditional problems of secrecy and authentication in the context of a system that can provide essentially optimal untraceability; address denial of service caused by malicious and devious participants; and propose means to discourage socially undesirable messages from being sent. 2.1. Establishing K e y s One way to provide the keys needed for longer messages is for one member of each pair to toss many coins in advance. Two identical copies of the resulting bits are made, say each on a separate optical disk. Supplying one such disk (which today can hold on the order of 10 l~ bits) to a partner provides enough key bits to allow people to type messages at full speed for years. If participants are not transmitting all the time, the keys can be made to last even longer by using a substantially slower rate when no message is being sent; the full rate would be invoked automatically only when a 1 bit indicated the beginning of a message. (This can also reduce the bandwidth requirements discussed in Section 2.2.) 70 D. Chaum Another possibility is for a pair to establish a short key and use a cryptographic pseudorandom-sequence generator to expand it as needed. Of course this system might be broken if the generator were broken. Cryptanalysis may be made more difficult, however, by lack of access to the output of individual generators. Even when the cryptographers do not exchange keys at dinner, they can safely do so later using a public-key distribution system (first proposed by [4] and [3]). 2.2 Underlying Communication Techniques A variety of underlying communication networks can be used, and their topology need not be related to that of the key-sharing graph. Communication systems based on simple cycles, called rings, are common in local area networks. In a typical ring, each node receives each bit and passes it roundrobin to the next node. This technology is readily adapted to the present protocols. Consider a single-bit message like the "I paid" message originally sent at the dinner table. Each participant exclusive-or's the bit he receives with his own output before forwarding it to the next participant. When the bit has traveled full circle, it is the exclusive-or sum of all the participants' outputs, which is the desired result of the protocol. To provide these messages to all participants, each bit is sent around a second time by the participant at the end of the loop. Such an adapted ring requires, on average, a fourfold increase in bandwidth over the obvious traceable protocols in which messages travel only halfway around on average before being taken off the ring by their recipients. Rings differ from the dinner table in that several bit-transmission delays may be required before all the outputs of a particular round are known to all participants; collisions are detected only after such delays. Efficient use of many other practical communication techniques requires participants to group output bits into blocks. For example, in high-capacity broadcast systems, such as those based on coaxial cable, surface radio, or satellites, more efficient use of channel capacity is obtained by grouping a participant's contribution into a block about the size of a single message (see, e.g., [5]). Use of such communication techniques could require an increase in bandwidth on the order of the number of participants. In a network with one message per block, the well-known contention protocols can be used: time is divided evenly into frames; a participant transmits a block during one frame; if the block was garbled by collision (presumably with another transmitted block), the participant waits a number of frames chosen at random from some distribution before attempting to retransmit; the participants' waiting intervals may be adjusted on the basis of the collision rate and possibly of other heuristics [5]. In a network with many messages per block, a first block may be used by various anonymous senders to request a "slot reservation" in a second block. A simple scheme would be for each anonymous sender to invert one randomly selected bit in the first block for each slot they wish to reserve in the second block. After the result of the first block becomes known, the participant who caused the ith 1 bit in the first block sends in the ith slot of the second block. The DiningCryptographersProblem 71 2.3. Example Key-Sharing Graphs In large systems it may be desirable to use fewer than the m(m - 1)/2 keys required by a complete graph. If the graph is merely a cycle, then individuals acting alone learn nothing, but any two colluders can partition the graph, perhaps fully compromising a participant immediately between them. Such a topology might nevertheless be adequate in an application in which nearby participants are not likely to collude against one another. A different topology assumes the existence of a subset of participants who each partidpant believes are sufficiently unlikely to collude, such as participants with conflicting interests. This subset constitutes a fully connected subgraph, and the other participants each share a key with every member of it. Every participant is then untraceable among all the others, unless all members of the completely connected subset cooperate. (Such a situation is mentioned again in Section 3.) If many people wish to participate in an untraceable communication system, hierarchical arrangements may offer further economy of keys. Consider an example in which a representative from each local fully connected subgraph is also a member of the fully connected central subgraph. The nonrepresentative members of a local subgraph provide the sum of their outputs to their representative. Representatives would then add their own contributions before providing the sum to the central subgraph. Only a local subgraph's representative, or a collusion of representatives from all other local subgraphs, can recognize messages as coming from the local subgraph. A collusion comprising the representative and all but one nonrepresentative member of a local subgraph is needed for messages to be recognized as coming from the remaining member. 2.4. Secrecy and Authentication What about the usual cryptologic problems of secrecy and authentication? A cryptographer can ensure the secrecy of an anonymous message by encrypting the message with the intended recipient's public key. (The message should include a hundred or so random bits to foil attempts to confirm a guess at its content [1].) The sender can even keep the identity of the intended recipient secret by leaving it to each recipient to try to decrypt every message. Alternatively, a prearranged prefix could be attached to each message so that the recipient need only decrypt messages with recognized prefixes. To keep even the multiplicity of a prefix's use from being revealed, a different prefix might be used each time. New prefixes could be agreed in advance, generated cryptographically as needed, or supplied in earlier messages. Authentication is also quite useful in systems without identification. Even though the messages are untraceable, they might still bear digital signatures corresponding to public-key "digital pseudonyms" Ill; only the untraceable owner of such a pseudonym would be able to sign subsequent messages with it. Secure payment protocols have elsewhere been proposed in which the payer and/or the payee might be untraceable [2]. Other protocols have been proposed that allow individuals known only by pseudonyms to transfer securely information about themselves between organizations [2]. All these systems require solutions to the sender untrace- 72 D. Chaum ability problem, such as the solution presented here, if they are to protect the unlinkability of pseudonyms used to conduct transactions from home. 2.5. Disruption Another question is how to stop participants who, accidentally or even intentionally, disrupt the system by preventing others from sending messages. In a sense, this problem has no solution, since any participant can send messages continuously, thereby clogging the channel. But nondisupters can ultimately stop disruption in a system meeting the following requirements: (1) the key-sharing graph is publicly agreed on; (2) each participant's outputs are publicly agreed on in such a way that participants cannot change their output for a round on the basis of other participants' outputs for that round; and (3) some rounds contain inversions that would not compromise the untraceability of any nondisrupter. The first requirement has already been mentioned in Section 1.1, where it was said that this information need not be secret; now it is required that this information actually be made known to all participants and that the participants agree on it. The second requirement is in part that disrupters be unable (at least with some significant probability) to change their output after hearing other participants' outputs. Some actual channels would automatically ensure this, such as broadcast systems in which all broadcasts are made simultaneously on different frequencies. The remainder of the second requirement, that the outputs be publicly agreed on, might also be met by broadcasting. Having only channels that do not provide it automatically, an effective way to meet the full second requirement would be for participants to "commit" to their outputs before making them. One way to do this is for participants to make public and agree on some (possibly compressing and hierarchical, see Section 2.6) one-way function of their outputs, before the outputs are made public. The third requirement is that at least some rounds can be contested (i.e., that all inversions can be made public) without compromising the untraceability of nondisrupting senders. The feasibility of this will be demonstrated here by a simple example protocol based on the slot reservation technique already described in Section 2.2. Suppose that each participant is always to make a single reservation in each reserving block, whether or not he actually intends to send a message. (Notice that, because of the "birthday paradox," the number of bits per reserving block must be quadratic in the number of participants.) A disrupted reserving block would then with very high probability have Hamming weight unequal to the number of participants. All bits of such a disrupted reserving block could be contested without loss of untraceability for nondisrupters. The reserved blocks can also be made to have such safely contestable bits if participants send trap messages. To lay a trap, a participant first chooses the index of a bit in some reserving block, a random message, and a secret key. Then the trapper makes public an encryption, using the secret key, of both the bit index and the random message. Later, the trapper reserves by inverting in the round corresponding to the bit index, and sends the random message in the resulting reserved The Dining CryptographersProblem 73 slot. If a disrupter is unlucky enough to have damaged a trap message, then release of the secret key by the trapper would cause at least one bit of the reserved slot to be contested. With the three requirements satisfied, it remains to be shown how if enough disrupted rounds are contested, the disrupters will be excluded from the network. Consider first the case of a single participant's mail computer disrupting the network. If it tells the truth about contested key bits it shares (or lies about an even number of bits), the disrupter implicates itself, because its contribution to the sum is unequal to the sum of these bits (apart from any allowed inversion). If, on the other hand, the single disrupter lies about some odd number of shared bits, the values it claims will differ from those claimed for the same shared bits by the other participants sharing them. The disrupter thereby casts suspicion on all participants, including itself, that share the disputed bits. (It may be difficult for a disrupter to cast substantial suspicion on a large set of participants, since all the disputed bits will be in common with the disrupter.) Notice, however, that participants who have been falsely accused will know that they have been--and by w h o m - - a n d should at least refuse to share bits with the disrupter in the future. Even with colluding multiple disrupters, at least one inversion must be revealed as illegitimate or at least one key bit disputed, since the parity of the outputs does not correspond to the number of legitimate inversions. The result of such a contested round will be the removal of at least one edge or at least one vertex from the agreed graph. Thus, if every disruptive action has a nonzero probability of being contested, only a bounded amount of disruption is possible before the disrupters share no keys with anyone in the network, or before they are revealed, and are in either case excluded from the network. The extension presented next can demonstrate the true value of disputed bits, and hence allows direct incrimination of disrupters. 2.6. Tracin9 by Consent Antisocial use of a network can be deterred if the cooperation of most participants makes it possible, albeit expensive, to trace any message. If, for example, a threatening message is sent, a court might order all participants to reveal their shared key bits for a round of the message. The sender of the offending message might try to spread the blame, however, by lying about some odd number of shared bits. Digital signatures can be used to stop such blame-spreading altogether. In principle, each party sharing a key could insist on a signature, made by the other party sharing, for the value of each shared bit. Such signatures would allow for contested rounds to be fully resolved, for accused senders to exonerate themselves, and even for colluders to convince each other that they are pooling true keys. Unfortunately, cooperating participants able to trace a message to its sender could convince others of the message's origin by revealing the sender's own signatures. A variation can prevent a participant's signatures from being used against him in this way: instead of each member of a pair of participants signing the same shared key bit, each signs a separate bit, such that the sum of the signed bits is the actual shared key bit. Signatures on such "split" 74 D. Chaum key bits would still be useful in resolving contested rounds, since if one contester of a bit shows a signature made by the second contester, then the second would have to reveal the corresponding signature made by the first or be thought to be a disrupter. In many applications it may be impractical to obtain a separate signature on every key bit or split key bit. The overhead involved could be greatly reduced, however, by digitally signing cryptographic compressions of large numbers of key bits. This might of course require that a whole block of key bits be exposed in showing a signature, but such blocks could be padded with cryptographically generated pseudorandom (or truly random) bits, to allow the exposure of fewer bits per signature. The number of bits and amount of time required to verify a signature for a single bit can be reduced further by using a rooted tree in which each node is the one-way compression function of all its direct descendants; only a digital signature of each participant's root need be agreed on before use of the keys comprising the leaves. 3. Relation to Previous Work There is another multiparty-secure sender-untraceability protocol in the literature [1]. To facilitate comparison, it will be called a mix-net here, while the protocol of the present work is called a dc-net. The mix-net approach relies on the security of a true public-key system (and possibly also of a conventional cryptosystem), and is thus at best computationally secure; the dc-net approach can use unconditional secrecy channels to provide an unconditionally secure untraceable-sender system, or can use public-key distribution to provide a computationally secure system (as described in Section 2.1). Under some trust assumptions and channel limitations, however, mix-nets can operate where dc-nets cannot. Suppose that a subset of participants is trusted by every other participant not to collude and that the bandwidth of at least some participants' channels to the trusted subset is incapable of handling the total message traffic. Then mix-nets may operate quite satisfactorily, but dc-nets will be unable to protect fully each participant's untraceability. Mix-nets can also provide recipient untraceability in this communication environment, even though there is insufficient bandwidth for use of the broadcast approach (mentioned in Section 2.4). If optimal protection against collusion is to be provided and the crypto-security of mix-nets is acceptable, a choice between mix-nets and dc-nets may depend on the nature of the traffic. With a mail-like system that requires only periodic deliveries, and where the average number of messages per interval is relatively large, mix-nets may be suitable. When messages must be delivered continually and there is no time for batching large numbers of them, dc-nets appear preferable. 4. Conclusion This solution to the dining cryptographers problem demonstrates that unconditional secrecy channels can be used to construct an unconditional sender-untraceability channel. It also shows that a public-key distribution system can be used to The Dining Cryptographers Problem 75 construct a computationally secure sender-untraceability channel. The approach appears able to satisfy a wide range of practical concerns. Acknowledgments I am pleased to thank <NAME>, <NAME>, <NAME>, and the untraceable referees for all their help in revising this article. It is also a pleasure to thank, as in the original version that was distributed at Crypto 84, Whitfield Dime, <NAME>, and <NAME> for some stimulating dinner-table conversations. References I-1] <NAME>., Untraceable Electronic Mail, Return Addresses, and Digital Pseudonyms, Communications of the ACM, vol. 24, no. 2, February 1981, pp. 84-88. I-2] <NAME>., Security Without Identification: Transaction Systems to Make Big Brother Obsolete, Communications of the ACM, vol. 28, no. 10, October 1985, pp. 1030-1044. 1-3] <NAME>., and <NAME>., New Directions in Cryptography, IEEE Transactions on Information Theory, vol. 22, no. 6, November 1976, pp. 644-654. 1-4] <NAME>., Secure Communication over Insecure Channels, Communications of the ACM, vol. 21, no. 4, 1978, pp. 294-299. 1-5] <NAME>., Computer Networks, Prentice Hall, Englewood Cliffs, New Jersey, 1981.
makeunique
cran
R
Package ‘makeunique’ October 13, 2022 Title Make Character Strings Unique Version 1.0.0 Description Make all elements of a character vector unique. Differs from 'make.unique' by starting at 1 and allowing users to customise suffix format. License MIT + file LICENSE Suggests covr, knitr, rmarkdown, testthat (>= 3.0.0) Config/testthat/edition 3 Encoding UTF-8 RoxygenNote 7.2.0 URL https://github.com/selkamand/makeunique BugReports https://github.com/selkamand/makeunique/issues NeedsCompilation no Author <NAME> [aut, cre, cph] (<https://orcid.org/0000-0003-2270-8088>) Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2022-10-13 17:30:01 UTC R topics documented: make_uniqu... 2 make_unique Make Values Unique Description Append numbers to duplicate values to ensure all are unique Usage make_unique( x, sep = " ", wrap_in_brackets = TRUE, warn_about_type_conversion = TRUE ) Arguments x vector to de-duplicate sep string separating (string) wrap_in_brackets should the number indicating order of duplicated elements be wrapped in round brackets? (flag) warn_about_type_conversion should the function warn user if input type is converted to ’character’ in output (flag) Details Differs from ’make.unique’ in base R by starting suffixes at 1 and allowing users to customize suffix format. Value x but duplicated values are de-duplicated by adding a number corresponding to the order in which duplicates appear Examples make_unique(c('bob', 'billy', 'bob', 'bob'))
bb8
rust
Rust
Crate bb8 === A full-featured connection pool, designed for asynchronous connections (using tokio). Originally based on r2d2. Opening a new database connection every time one is needed is both inefficient and can lead to resource exhaustion under high traffic conditions. A connection pool maintains a set of open connections to a database, handing them out for repeated use. bb8 is agnostic to the connection type it is managing. Implementors of the `ManageConnection` trait provide the database-specific logic to create and check the health of connections. Example --- Using an imaginary “foodb” database. ``` #[tokio::main] async fn main() { let manager = bb8_foodb::FooConnectionManager::new("localhost:1234"); let pool = bb8::Pool::builder().build(manager).await.unwrap(); for _ in 0..20 { let pool = pool.clone(); tokio::spawn(async move { let conn = pool.get().await.unwrap(); // use the connection // it will be returned to the pool when it falls out of scope. }); } } ``` Structs --- * BuilderA builder for a connection pool. * NopErrorSinkAn `ErrorSink` implementation that does nothing. * PoolA generic connection pool. * PooledConnectionA smart pointer wrapping a connection. * StateInformation about the state of a `Pool`. Enums --- * QueueStrategybb8’s queue strategy when getting pool resources * RunErrorbb8’s error type. Traits --- * CustomizeConnectionA trait which provides functionality to initialize a connection * ErrorSinkA trait to receive errors generated by connection management that aren’t tied to any particular caller. * ManageConnectionA trait which provides connection-specific functionality. Crate bb8 === A full-featured connection pool, designed for asynchronous connections (using tokio). Originally based on r2d2. Opening a new database connection every time one is needed is both inefficient and can lead to resource exhaustion under high traffic conditions. A connection pool maintains a set of open connections to a database, handing them out for repeated use. bb8 is agnostic to the connection type it is managing. Implementors of the `ManageConnection` trait provide the database-specific logic to create and check the health of connections. Example --- Using an imaginary “foodb” database. ``` #[tokio::main] async fn main() { let manager = bb8_foodb::FooConnectionManager::new("localhost:1234"); let pool = bb8::Pool::builder().build(manager).await.unwrap(); for _ in 0..20 { let pool = pool.clone(); tokio::spawn(async move { let conn = pool.get().await.unwrap(); // use the connection // it will be returned to the pool when it falls out of scope. }); } } ``` Structs --- * BuilderA builder for a connection pool. * NopErrorSinkAn `ErrorSink` implementation that does nothing. * PoolA generic connection pool. * PooledConnectionA smart pointer wrapping a connection. * StateInformation about the state of a `Pool`. Enums --- * QueueStrategybb8’s queue strategy when getting pool resources * RunErrorbb8’s error type. Traits --- * CustomizeConnectionA trait which provides functionality to initialize a connection * ErrorSinkA trait to receive errors generated by connection management that aren’t tied to any particular caller. * ManageConnectionA trait which provides connection-specific functionality. Struct bb8::Builder === ``` pub struct Builder<M: ManageConnection> { /* private fields */ } ``` A builder for a connection pool. Implementations --- ### impl<M: ManageConnection> Builder<M#### pub fn new() -> Self Constructs a new `Builder`. Parameters are initialized with their default values. #### pub fn max_size(self, max_size: u32) -> Self Sets the maximum number of connections managed by the pool. Defaults to 10. ##### Panics Will panic if `max_size` is 0. #### pub fn min_idle(self, min_idle: Option<u32>) -> Self Sets the minimum idle connection count maintained by the pool. If set, the pool will try to maintain at least this many idle connections at all times, while respecting the value of `max_size`. Defaults to None. #### pub fn test_on_check_out(self, test_on_check_out: bool) -> Self If true, the health of a connection will be verified through a call to `ManageConnection::is_valid` before it is provided to a pool user. Defaults to true. #### pub fn max_lifetime(self, max_lifetime: Option<Duration>) -> Self Sets the maximum lifetime of connections in the pool. If set, connections will be closed at the next reaping after surviving past this duration. If a connection reaches its maximum lifetime while checked out it will be closed when it is returned to the pool. Defaults to 30 minutes. ##### Panics Will panic if `max_lifetime` is 0. #### pub fn idle_timeout(self, idle_timeout: Option<Duration>) -> Self Sets the idle timeout used by the pool. If set, idle connections in excess of `min_idle` will be closed at the next reaping after remaining idle past this duration. Defaults to 10 minutes. ##### Panics Will panic if `idle_timeout` is 0. #### pub fn connection_timeout(self, connection_timeout: Duration) -> Self Sets the connection timeout used by the pool. Futures returned by `Pool::get` will wait this long before giving up and resolving with an error. Defaults to 30 seconds. ##### Panics Will panic if `connection_timeout` is 0. #### pub fn retry_connection(self, retry: bool) -> Self Instructs the pool to automatically retry connection creation if it fails, until the `connection_timeout` has expired. Useful for transient connectivity errors like temporary DNS resolution failure or intermittent network failures. Some applications however are smart enough to know that the server is down and retries won’t help (and could actually hurt recovery). In that case, it’s better to disable retries here and let the pool error out. Defaults to enabled. #### pub fn error_sink(self, error_sink: Box<dyn ErrorSink<M::Error>>) -> Self Set the sink for errors that are not associated with any particular operation on the pool. This can be used to log and monitor failures. Defaults to `NopErrorSink`. #### pub fn reaper_rate(self, reaper_rate: Duration) -> Self Used by tests #### pub fn queue_strategy(self, queue_strategy: QueueStrategy) -> Self Sets the queue strategy to be used by the pool Defaults to `Fifo`. #### pub fn connection_customizer( self, connection_customizer: Box<dyn CustomizeConnection<M::Connection, M::Error>> ) -> Self Set the connection customizer to customize newly checked out connections #### pub async fn build(self, manager: M) -> Result<Pool<M>, M::ErrorConsumes the builder, returning a new, initialized `Pool`. The `Pool` will not be returned until it has established its configured minimum number of connections, or it times out. #### pub fn build_unchecked(self, manager: M) -> Pool<MConsumes the builder, returning a new, initialized `Pool`. Unlike `build`, this does not wait for any connections to be established before returning. Trait Implementations --- ### impl<M: Debug + ManageConnection> Debug for Builder<M>where M::Error: Debug, M::Connection: Debug, #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Returns the “default value” for a type. Read moreAuto Trait Implementations --- ### impl<M> !RefUnwindSafe for Builder<M### impl<M> Send for Builder<M### impl<M> Sync for Builder<M### impl<M> Unpin for Builder<M>where M: Unpin, ### impl<M> !UnwindSafe for Builder<MBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct bb8::NopErrorSink === ``` pub struct NopErrorSink; ``` An `ErrorSink` implementation that does nothing. Trait Implementations --- ### impl Clone for NopErrorSink #### fn clone(&self) -> NopErrorSink Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn sink(&self, _: E) Receive an error#### fn boxed_clone(&self) -> Box<dyn ErrorSink<E>Clone this sink.### impl Copy for NopErrorSink Auto Trait Implementations --- ### impl RefUnwindSafe for NopErrorSink ### impl Send for NopErrorSink ### impl Sync for NopErrorSink ### impl Unpin for NopErrorSink ### impl UnwindSafe for NopErrorSink Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct bb8::Pool === ``` pub struct Pool<M>where M: ManageConnection,{ /* private fields */ } ``` A generic connection pool. Implementations --- ### impl<M: ManageConnection> Pool<M#### pub fn builder() -> Builder<MReturns a `Builder` instance to configure a new pool. #### pub fn state(&self) -> State Returns information about the current state of the pool. #### pub async fn get(&self) -> Result<PooledConnection<'_, M>, RunError<M::Error>Retrieves a connection from the pool. #### pub async fn get_owned( &self ) -> Result<PooledConnection<'static, M>, RunError<M::Error>Retrieves an owned connection from the pool Using an owning `PooledConnection` makes it easier to leak the connection pool. Therefore, `Pool::get` (which stores a lifetime-bound reference to the pool) should be preferred whenever possible. #### pub async fn dedicated_connection(&self) -> Result<M::Connection, M::ErrorGet a new dedicated connection that will not be managed by the pool. An application may want a persistent connection (e.g. to do a postgres LISTEN) that will not be closed or repurposed by the pool. This method allows reusing the manager’s configuration but otherwise bypassing the pool Trait Implementations --- ### impl<M> Clone for Pool<M>where M: ManageConnection, #### fn clone(&self) -> Self Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. M: ManageConnection, #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read moreAuto Trait Implementations --- ### impl<M> !RefUnwindSafe for Pool<M### impl<M> Send for Pool<M### impl<M> Sync for Pool<M### impl<M> Unpin for Pool<M### impl<M> !UnwindSafe for Pool<MBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct bb8::PooledConnection === ``` pub struct PooledConnection<'a, M>where M: ManageConnection,{ /* private fields */ } ``` A smart pointer wrapping a connection. Trait Implementations --- ### impl<'a, M> Debug for PooledConnection<'a, M>where M: ManageConnection, M::Connection: Debug, #### fn fmt(&self, fmt: &mut Formatter<'_>) -> Result Formats the value using the given formatter. M: ManageConnection, #### type Target = <M as ManageConnection>::Connection The resulting type after dereferencing.#### fn deref(&self) -> &Self::Target Dereferences the value.### impl<'a, M> DerefMut for PooledConnection<'a, M>where M: ManageConnection, #### fn deref_mut(&mut self) -> &mut M::Connection Mutably dereferences the value.### impl<'a, M> Drop for PooledConnection<'a, M>where M: ManageConnection, #### fn drop(&mut self) Executes the destructor for this type. Read moreAuto Trait Implementations --- ### impl<'a, M> !RefUnwindSafe for PooledConnection<'a, M### impl<'a, M> Send for PooledConnection<'a, M### impl<'a, M> Sync for PooledConnection<'a, M>where <M as ManageConnection>::Connection: Sync, ### impl<'a, M> Unpin for PooledConnection<'a, M>where <M as ManageConnection>::Connection: Unpin, ### impl<'a, M> !UnwindSafe for PooledConnection<'a, MBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct bb8::State === ``` #[non_exhaustive]pub struct State { pub connections: u32, pub idle_connections: u32, } ``` Information about the state of a `Pool`. Fields (Non-exhaustive) --- Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional `Struct { .. }` syntax; cannot be matched against without a wildcard `..`; and struct update syntax will not work.`connections: u32`The number of connections currently being managed by the pool. `idle_connections: u32`The number of idle connections. Trait Implementations --- ### impl Debug for State #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read moreAuto Trait Implementations --- ### impl RefUnwindSafe for State ### impl Send for State ### impl Sync for State ### impl Unpin for State ### impl UnwindSafe for State Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum bb8::QueueStrategy === ``` pub enum QueueStrategy { Fifo, Lifo, } ``` bb8’s queue strategy when getting pool resources Variants --- ### Fifo First in first out This strategy behaves like a queue It will evenly spread load on all existing connections, resetting their idle timeouts, maintaining the pool size ### Lifo Last in first out This behaves like a stack It will use the most recently used connection and help to keep the total pool size small by evicting idle connections Trait Implementations --- ### impl Clone for QueueStrategy #### fn clone(&self) -> QueueStrategy Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. #### fn default() -> Self Returns the “default value” for a type. Auto Trait Implementations --- ### impl RefUnwindSafe for QueueStrategy ### impl Send for QueueStrategy ### impl Sync for QueueStrategy ### impl Unpin for QueueStrategy ### impl UnwindSafe for QueueStrategy Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Enum bb8::RunError === ``` pub enum RunError<E> { User(E), TimedOut, } ``` bb8’s error type. Variants --- ### User(E) An error returned from user code. ### TimedOut bb8 attempted to get a connection but the provided timeout was exceeded. Trait Implementations --- ### impl<E: Clone> Clone for RunError<E#### fn clone(&self) -> RunError<EReturns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. Formats the value using the given formatter. E: Error + 'static, #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. E: Error + 'static, #### fn source(&self) -> Option<&(dyn Error + 'static)The lower-level source of this error, if any. Read more1.0.0 · source#### fn description(&self) -> &str 👎Deprecated since 1.42.0: use the Display impl or to_string() Read more1.0.0 · source#### fn cause(&self) -> Option<&dyn Error👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting#### fn provide<'a>(&'a self, demand: &mut Demand<'a>) 🔬This is a nightly-only experimental API. (`error_generic_member_access`)Provides type based access to context intended for error reports. E: Error, #### fn from(error: E) -> Self Converts to this type from the input type.### impl<E: PartialEq> PartialEq<RunError<E>> for RunError<E#### fn eq(&self, other: &RunError<E>) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<E: Eq> Eq for RunError<E### impl<E> StructuralEq for RunError<E### impl<E> StructuralPartialEq for RunError<EAuto Trait Implementations --- ### impl<E> RefUnwindSafe for RunError<E>where E: RefUnwindSafe, ### impl<E> Send for RunError<E>where E: Send, ### impl<E> Sync for RunError<E>where E: Sync, ### impl<E> Unpin for RunError<E>where E: Unpin, ### impl<E> UnwindSafe for RunError<E>where E: UnwindSafe, Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: !) -> T Converts to this type from the input type.### impl<T> From<T> for T #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<E> Provider for Ewhere E: Error + ?Sized, #### fn provide<'a>(&'a self, demand: &mut Demand<'a>) 🔬This is a nightly-only experimental API. (`provide_any`)Data providers should implement this method to provide *all* values they are able to provide by using `demand`. T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. T: Display + ?Sized, #### default fn to_string(&self) -> String Converts the given value to a `String`. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Trait bb8::CustomizeConnection === ``` pub trait CustomizeConnection<C: Send + 'static, E: 'static>: Debug + Send + Sync + 'static { // Provided method fn on_acquire<'life0, 'life1, 'async_trait>( &'life0 self, _connection: &'life1 mut C ) -> Pin<Box<dyn Future<Output = Result<(), E>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } } ``` A trait which provides functionality to initialize a connection Provided Methods --- #### fn on_acquire<'life0, 'life1, 'async_trait>( &'life0 self, _connection: &'life1 mut C ) -> Pin<Box<dyn Future<Output = Result<(), E>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, Called with connections immediately after they are returned from `ManageConnection::connect`. The default implementation simply returns `Ok(())`. If this method returns an error, it will be forwarded to the configured error sink. Implementors --- Trait bb8::ErrorSink === ``` pub trait ErrorSink<E>: Debug + Send + Sync + 'static { // Required methods fn sink(&self, error: E); fn boxed_clone(&self) -> Box<dyn ErrorSink<E>>; } ``` A trait to receive errors generated by connection management that aren’t tied to any particular caller. Required Methods --- #### fn sink(&self, error: E) Receive an error #### fn boxed_clone(&self) -> Box<dyn ErrorSink<E>Clone this sink. Implementors --- ### impl<E> ErrorSink<E> for NopErrorSink Trait bb8::ManageConnection === ``` pub trait ManageConnection: Sized + Send + Sync + 'static { type Connection: Send + 'static; type Error: Debug + Send + 'static; // Required methods fn connect<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn is_valid<'life0, 'life1, 'async_trait>( &'life0 self, conn: &'life1 mut Self::Connection ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn has_broken(&self, conn: &mut Self::Connection) -> bool; } ``` A trait which provides connection-specific functionality. Required Associated Types --- #### type Connection: Send + 'static The connection type this manager deals with. #### type Error: Debug + Send + 'static The error type returned by `Connection`s. Required Methods --- #### fn connect<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, Attempts to create a new connection. #### fn is_valid<'life0, 'life1, 'async_trait>( &'life0 self, conn: &'life1 mut Self::Connection ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, Determines if the connection is still connected to the database. #### fn has_broken(&self, conn: &mut Self::Connection) -> bool Synchronously determine if the connection is no longer usable, if possible. Implementors ---
github.com/sigstore/sigstore/pkg/signature/kms/aws
go
Go
None Documentation [¶](#section-documentation) --- ### Overview [¶](#pkg-overview) Package aws implement the interface with amazon aws kms service Package aws contains utilities related to AWS KMS. ### Index [¶](#pkg-index) * [Constants](#pkg-constants) * [func ParseReference(resourceID string) (endpoint, keyID, alias string, err error)](#ParseReference) * [func ValidReference(ref string) error](#ValidReference) * [type SignerVerifier](#SignerVerifier) * + [func LoadSignerVerifier(ctx context.Context, referenceStr string, ...) (*SignerVerifier, error)](#LoadSignerVerifier) * + [func (a *SignerVerifier) CreateKey(ctx context.Context, algorithm string) (crypto.PublicKey, error)](#SignerVerifier.CreateKey) + [func (a *SignerVerifier) CryptoSigner(ctx context.Context, errFunc func(error)) (crypto.Signer, crypto.SignerOpts, error)](#SignerVerifier.CryptoSigner) + [func (*SignerVerifier) DefaultAlgorithm() string](#SignerVerifier.DefaultAlgorithm) + [func (a *SignerVerifier) PublicKey(opts ...signature.PublicKeyOption) (crypto.PublicKey, error)](#SignerVerifier.PublicKey) + [func (a *SignerVerifier) SignMessage(message io.Reader, opts ...signature.SignOption) ([]byte, error)](#SignerVerifier.SignMessage) + [func (*SignerVerifier) SupportedAlgorithms() []string](#SignerVerifier.SupportedAlgorithms) + [func (a *SignerVerifier) VerifySignature(sig, message io.Reader, opts ...signature.VerifyOption) (err error)](#SignerVerifier.VerifySignature) ### Constants [¶](#pkg-constants) ``` const ( // ReferenceScheme schemes for various KMS services are copied from <https://github.com/google/go-cloud/tree/master/secrets> ReferenceScheme = "awskms://" ) ``` ### Variables [¶](#pkg-variables) This section is empty. ### Functions [¶](#pkg-functions) #### func [ParseReference](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/client.go#L97) [¶](#ParseReference) ``` func ParseReference(resourceID [string](/builtin#string)) (endpoint, keyID, alias [string](/builtin#string), err [error](/builtin#error)) ``` ParseReference parses an awskms-scheme URI into its constituent parts. #### func [ValidReference](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/client.go#L87) [¶](#ValidReference) ``` func ValidReference(ref [string](/builtin#string)) [error](/builtin#error) ``` ValidReference returns a non-nil error if the reference string is invalid ### Types [¶](#pkg-types) #### type [SignerVerifier](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L46) [¶](#SignerVerifier) ``` type SignerVerifier struct { // contains filtered or unexported fields } ``` SignerVerifier is a signature.SignerVerifier that uses the AWS Key Management Service #### func [LoadSignerVerifier](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L53) [¶](#LoadSignerVerifier) ``` func LoadSignerVerifier(ctx [context](/context).[Context](/context#Context), referenceStr [string](/builtin#string), opts ...func(*[config](/github.com/aws/aws-sdk-go-v2/config).[LoadOptions](/github.com/aws/aws-sdk-go-v2/config#LoadOptions)) [error](/builtin#error)) (*[SignerVerifier](#SignerVerifier), [error](/builtin#error)) ``` LoadSignerVerifier generates signatures using the specified key object in AWS KMS and hash algorithm. It also can verify signatures locally using the public key. hashFunc must not be crypto.Hash(0). #### func (*SignerVerifier) [CreateKey](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L184) [¶](#SignerVerifier.CreateKey) ``` func (a *[SignerVerifier](#SignerVerifier)) CreateKey(ctx [context](/context).[Context](/context#Context), algorithm [string](/builtin#string)) ([crypto](/crypto).[PublicKey](/crypto#PublicKey), [error](/builtin#error)) ``` CreateKey attempts to create a new key in Vault with the specified algorithm. #### func (*SignerVerifier) [CryptoSigner](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L219) [¶](#SignerVerifier.CryptoSigner) ``` func (a *[SignerVerifier](#SignerVerifier)) CryptoSigner(ctx [context](/context).[Context](/context#Context), errFunc func([error](/builtin#error))) ([crypto](/crypto).[Signer](/crypto#Signer), [crypto](/crypto).[SignerOpts](/crypto#SignerOpts), [error](/builtin#error)) ``` CryptoSigner returns a crypto.Signer object that uses the underlying SignerVerifier, along with a crypto.SignerOpts object that allows the KMS to be used in APIs that only accept the standard golang objects #### func (*SignerVerifier) [DefaultAlgorithm](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L245) [¶](#SignerVerifier.DefaultAlgorithm) ``` func (*[SignerVerifier](#SignerVerifier)) DefaultAlgorithm() [string](/builtin#string) ``` DefaultAlgorithm returns the default algorithm for the AWS KMS service #### func (*SignerVerifier) [PublicKey](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L114) [¶](#SignerVerifier.PublicKey) ``` func (a *[SignerVerifier](#SignerVerifier)) PublicKey(opts ...[signature](/github.com/sigstore/sigstore/pkg/signature).[PublicKeyOption](/github.com/sigstore/sigstore/pkg/signature#PublicKeyOption)) ([crypto](/crypto).[PublicKey](/crypto#PublicKey), [error](/builtin#error)) ``` PublicKey returns the public key that can be used to verify signatures created by this signer. If the caller wishes to specify the context to use to obtain the public key, pass option.WithContext(desiredCtx). All other options are ignored if specified. #### func (*SignerVerifier) [SignMessage](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L78) [¶](#SignerVerifier.SignMessage) ``` func (a *[SignerVerifier](#SignerVerifier)) SignMessage(message [io](/io).[Reader](/io#Reader), opts ...[signature](/github.com/sigstore/sigstore/pkg/signature).[SignOption](/github.com/sigstore/sigstore/pkg/signature#SignOption)) ([][byte](/builtin#byte), [error](/builtin#error)) ``` SignMessage signs the provided message using AWS KMS. If the message is provided, this method will compute the digest according to the hash function specified when the Signer was created. SignMessage recognizes the following Options listed in order of preference: - WithContext() - WithDigest() - WithCryptoSignerOpts() All other options are ignored if specified. #### func (*SignerVerifier) [SupportedAlgorithms](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L236) [¶](#SignerVerifier.SupportedAlgorithms) ``` func (*[SignerVerifier](#SignerVerifier)) SupportedAlgorithms() [][string](/builtin#string) ``` SupportedAlgorithms returns the list of algorithms supported by the AWS KMS service #### func (*SignerVerifier) [VerifySignature](https://github.com/sigstore/sigstore/blob/pkg/signature/kms/aws/v1.7.4/pkg/signature/kms/aws/signer.go#L144) [¶](#SignerVerifier.VerifySignature) ``` func (a *[SignerVerifier](#SignerVerifier)) VerifySignature(sig, message [io](/io).[Reader](/io#Reader), opts ...[signature](/github.com/sigstore/sigstore/pkg/signature).[VerifyOption](/github.com/sigstore/sigstore/pkg/signature#VerifyOption)) (err [error](/builtin#error)) ``` VerifySignature verifies the signature for the given message. Unless provided in an option, the digest of the message will be computed using the hash function specified when the SignerVerifier was created. This function returns nil if the verification succeeded, and an error message otherwise. This function recognizes the following Options listed in order of preference: - WithContext() - WithDigest() - WithRemoteVerification() - WithCryptoSignerOpts() All other options are ignored if specified.
performance
cran
R
Package ‘performance’ September 12, 2023 Type Package Title Assessment of Regression Models Performance Version 0.10.5 Maintainer <NAME> <<EMAIL>> Description Utilities for computing measures to assess model quality, which are not directly provided by R's 'base' or 'stats' packages. These include e.g. measures like r-squared, intraclass correlation coefficient (Nakagawa, Johnson & Schielzeth (2017) <doi:10.1098/rsif.2017.0213>), root mean squared error or functions to check models for overdispersion, singularity or zero-inflation and more. Functions apply to a large variety of regression models, including generalized linear models, mixed effects models and Bayesian models. References: Lüdecke et al. (2021) <doi:10.21105/joss.03139>. License GPL-3 URL https://easystats.github.io/performance/ BugReports https://github.com/easystats/performance/issues Depends R (>= 3.6) Imports bayestestR (>= 0.13.0), insight (>= 0.19.4), datawizard (>= 0.7.0), methods, stats, utils Suggests AER, afex, BayesFactor, bayesplot, betareg, bigutilsr, blavaan, boot, brms, car, CompQuadForm, correlation, cplm, dbscan, estimatr, fixest, forecast, gamm4, ggplot2, glmmTMB, graphics, Hmisc, httr, ICS, ICSOutlier, ISLR, ivreg, lavaan, lme4, lmtest, loo, MASS, Matrix, mclogit, mclust, metadat, metafor, mgcv, mlogit, multimode, nlme, nonnest2, ordinal, parallel, parameters (>= 0.20.3), patchwork, pscl, psych, qqplotr (>= 0.0.6), randomForest, rmarkdown, rstanarm, rstantools, sandwich, see (>= 0.7.5), survey, survival, testthat, tweedie, VGAM, withr Encoding UTF-8 Language en-US RoxygenNote 7.2.3.9000 Config/testthat/edition 3 Config/testthat/parallel true Config/Needs/website rstudio/bslib, r-lib/pkgdown, easystats/easystatstemplate Config/rcmdcheck/ignore-inconsequential-notes true NeedsCompilation no Author <NAME> [aut, cre] (<https://orcid.org/0000-0002-8895-3206>, @strengejacke), <NAME> [aut, ctb] (<https://orcid.org/0000-0001-5375-9967>, @Dom_Makowski), <NAME> [aut, ctb] (<https://orcid.org/0000-0002-4287-4801>, @mattansb), <NAME> [aut, ctb] (<https://orcid.org/0000-0003-1995-6531>, @patilindrajeets), <NAME> [aut, ctb] (<https://orcid.org/0000-0002-7825-7573>), <NAME> [aut, ctb] (<https://orcid.org/0000-0001-9560-6336>, @bmwiernik), <NAME> [ctb] (<https://orcid.org/0000-0003-2042-7063>), <NAME> [ctb] (<https://orcid.org/0000-0003-4315-6788>, @rempsyc), <NAME> [rev], gjo11 [rev], <NAME> [ctb] (<https://orcid.org/0000-0002-9271-5075>) Repository CRAN Date/Publication 2023-09-12 08:50:02 UTC R topics documented: binned_residual... 4 check_autocorrelatio... 5 check_clusterstructur... 6 check_collinearit... 7 check_convergenc... 10 check_distributio... 12 check_factorstructur... 13 check_heterogeneity_bia... 15 check_heteroscedasticit... 16 check_homogeneit... 17 check_itemscal... 18 check_mode... 19 check_multimoda... 23 check_normalit... 24 check_outlier... 26 check_overdispersio... 32 check_prediction... 33 check_singularit... 36 check_sphericit... 37 check_symmetr... 38 check_zeroinflatio... 39 classify_distributio... 40 compare_performanc... 40 cronbachs_alph... 42 display.performance_mode... 43 ic... 44 item_difficult... 47 item_discriminatio... 48 item_interco... 49 item_reliabilit... 50 item_split_hal... 51 looi... 52 model_performanc... 53 model_performance.ivre... 54 model_performance.kmean... 54 model_performance.lavaa... 55 model_performance.l... 57 model_performance.merMo... 58 model_performance.rm... 59 model_performance.stanre... 61 performance_accurac... 63 performance_aic... 64 performance_c... 65 performance_hosme... 66 performance_loglos... 67 performance_ma... 68 performance_ms... 69 performance_pc... 69 performance_rms... 71 performance_ro... 72 performance_rs... 73 performance_scor... 74 r... 75 r2_baye... 77 r2_coxsnel... 79 r2_efro... 80 r2_kullbac... 81 r2_lo... 81 r2_mcfadde... 82 r2_mckelve... 83 r2_nagelkerk... 84 r2_nakagaw... 85 r2_somer... 87 r2_tju... 87 r2_x... 88 r2_zeroinflate... 89 test_b... 90 binned_residuals Binned residuals for binomial logistic regression Description Check model quality of binomial logistic regression models. Usage binned_residuals(model, term = NULL, n_bins = NULL, ...) Arguments model A glm-object with binomial-family. term Name of independent variable from x. If not NULL, average residuals for the cate- gories of term are plotted; else, average residuals for the estimated probabilities of the response are plotted. n_bins Numeric, the number of bins to divide the data. If n_bins = NULL, the square root of the number of observations is taken. ... Currently not used. Details Binned residual plots are achieved by "dividing the data into categories (bins) based on their fitted values, and then plotting the average residual versus the average fitted value for each bin." (Gelman, Hill 2007: 97). If the model were true, one would expect about 95% of the residuals to fall inside the error bounds. If term is not NULL, one can compare the residuals in relation to a specific model predictor. This may be helpful to check if a term would fit better when transformed, e.g. a rising and falling pattern of residuals along the x-axis is a signal to consider taking the logarithm of the predictor (cf. Gelman and Hill 2007, pp. 97-98). Value A data frame representing the data that is mapped in the accompanying plot. In case all residuals are inside the error bounds, points are black. If some of the residuals are outside the error bounds (indicated by the grey-shaded area), blue points indicate residuals that are OK, while red points indicate model under- or over-fitting for the relevant range of estimated probabilities. Note binned_residuals() returns a data frame, however, the print() method only returns a short summary of the result. The data frame itself is used for plotting. The plot() method, in turn, creates a ggplot-object. References <NAME>., and <NAME>. (2007). Data analysis using regression and multilevel/hierarchical models. Cambridge; New York: Cambridge University Press. Examples model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") result <- binned_residuals(model) result # look at the data frame as.data.frame(result) ## Not run: # plot if (require("see")) { plot(result) } ## End(Not run) check_autocorrelation Check model for independence of residuals. Description Check model for independence of residuals, i.e. for autocorrelation of error terms. Usage check_autocorrelation(x, ...) ## Default S3 method: check_autocorrelation(x, nsim = 1000, ...) Arguments x A model object. ... Currently not used. nsim Number of simulations for the Durbin-Watson-Test. Details Performs a Durbin-Watson-Test to check for autocorrelated residuals. In case of autocorrelation, robust standard errors return more accurate results for the estimates, or maybe a mixed model with error term for the cluster groups should be used. Value Invisibly returns the p-value of the test statistics. A p-value < 0.05 indicates autocorrelated residuals. See Also Other functions to check model assumptions and and assess model quality: check_collinearity(), check_convergence(), check_heteroscedasticity(), check_homogeneity(), check_model(), check_outliers(), check_overdispersion(), check_predictions(), check_singularity(), check_zeroinflation() Examples m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) check_autocorrelation(m) check_clusterstructure Check suitability of data for clustering Description This checks whether the data is appropriate for clustering using the Hopkins’ H statistic of given data. If the value of Hopkins statistic is close to 0 (below 0.5), then we can reject the null hypothesis and conclude that the dataset is significantly clusterable. A value for H lower than 0.25 indicates a clustering tendency at the 90% confidence level. The visual assessment of cluster tendency (VAT) approach (Bezdek and Hathaway, 2002) consists in investigating the heatmap of the ordered dis- similarity matrix. Following this, one can potentially detect the clustering tendency by counting the number of square shaped blocks along the diagonal. Usage check_clusterstructure(x, standardize = TRUE, distance = "euclidean", ...) Arguments x A data frame. standardize Standardize the dataframe before clustering (default). distance Distance method used. Other methods than "euclidean" (default) are exploratory in the context of clustering tendency. See stats::dist() for list of available methods. ... Arguments passed to or from other methods. Value The H statistic (numeric) References • <NAME>., & <NAME>. (1990). New index for clustering tendency and its application to chemical problems. Journal of chemical information and computer sciences, 30(1), 36-41. • <NAME>., & <NAME>. (2002, May). VAT: A tool for visual assessment of (cluster) tendency. In Proceedings of the 2002 International Joint Conference on Neural Networks. IJCNN02 (3), 2225-2230. IEEE. See Also check_kmo(), check_sphericity_bartlett() and check_factorstructure(). Examples library(performance) check_clusterstructure(iris[, 1:4]) plot(check_clusterstructure(iris[, 1:4])) check_collinearity Check for multicollinearity of model terms Description check_collinearity() checks regression models for multicollinearity by calculating the variance inflation factor (VIF). multicollinearity() is an alias for check_collinearity(). check_concurvity() is a wrapper around mgcv::concurvity(), and can be considered as a collinearity check for smooth terms in GAMs. Confidence intervals for VIF and tolerance are based on Marcoulides et al. (2019, Appendix B). Usage check_collinearity(x, ...) multicollinearity(x, ...) ## Default S3 method: check_collinearity(x, ci = 0.95, verbose = TRUE, ...) ## S3 method for class 'glmmTMB' check_collinearity( x, component = c("all", "conditional", "count", "zi", "zero_inflated"), ci = 0.95, verbose = TRUE, ... ) check_concurvity(x, ...) Arguments x A model object (that should at least respond to vcov(), and if possible, also to model.matrix() - however, it also should work without model.matrix()). ... Currently not used. ci Confidence Interval (CI) level for VIF and tolerance values. verbose Toggle off warnings or messages. component For models with zero-inflation component, multicollinearity can be checked for the conditional model (count component, component = "conditional" or component = "count"), zero-inflation component (component = "zero_inflated" or component = "zi") or both components (component = "all"). Following model-classes are currently supported: hurdle, zeroinfl, zerocount, MixMod and glmmTMB. Value A data frame with information about name of the model term, the variance inflation factor and asso- ciated confidence intervals, the factor by which the standard error is increased due to possible cor- relation with other terms, and tolerance values (including confidence intervals), where tolerance = 1/vif. Multicollinearity Multicollinearity should not be confused with a raw strong correlation between predictors. What matters is the association between one or more predictor variables, conditional on the other vari- ables in the model. In a nutshell, multicollinearity means that once you know the effect of one predictor, the value of knowing the other predictor is rather low. Thus, one of the predictors doesn’t help much in terms of better understanding the model or predicting the outcome. As a consequence, if multicollinearity is a problem, the model seems to suggest that the predictors in question don’t seems to be reliably associated with the outcome (low estimates, high standard errors), although these predictors actually are strongly associated with the outcome, i.e. indeed might have strong effect (McElreath 2020, chapter 6.1). Multicollinearity might arise when a third, unobserved variable has a causal effect on each of the two predictors that are associated with the outcome. In such cases, the actual relationship that matters would be the association between the unobserved variable and the outcome. Remember: "Pairwise correlations are not the problem. It is the conditional associations - not correlations - that matter." (McElreath 2020, p. 169) Interpretation of the Variance Inflation Factor The variance inflation factor is a measure to analyze the magnitude of multicollinearity of model terms. A VIF less than 5 indicates a low correlation of that predictor with other predictors. A value between 5 and 10 indicates a moderate correlation, while VIF values larger than 10 are a sign for high, not tolerable correlation of model predictors (James et al. 2013). The Increased SE column in the output indicates how much larger the standard error is due to the association with other predictors conditional on the remaining variables in the model. Note that these thresholds, although commonly used, are also criticized for being too high. Zuur et al. (2010) suggest using lower values, e.g. a VIF of 3 or larger may already no longer be considered as "low". Multicollinearity and Interaction Terms If interaction terms are included in a model, high VIF values are expected. This portion of multi- collinearity among the component terms of an interaction is also called "inessential ill-conditioning", which leads to inflated VIF values that are typically seen for models with interaction terms (Fran- coeur 2013). Concurvity for Smooth Terms in Generalized Additive Models check_concurvity() is a wrapper around mgcv::concurvity(), and can be considered as a collinearity check for smooth terms in GAMs."Concurvity occurs when some smooth term in a model could be approximated by one or more of the other smooth terms in the model." (see ?mgcv::concurvity). check_concurvity() returns a column named VIF, which is the "worst" measure. While mgcv::concurvity() range between 0 and 1, the VIF value is 1 / (1 - worst), to make interpretation comparable to classical VIF values, i.e. 1 indicates no problems, while higher values indicate increasing lack of identifiability. The VIF proportion column equals the "estimate" column from mgcv::concurvity(), ranging from 0 (no problem) to 1 (total lack of identifiability). Note The code to compute the confidence intervals for the VIF and tolerance values was adapted from the Appendix B from the Marcoulides et al. paper. Thus, credits go to these authors the original algorithm. There is also a plot()-method implemented in the see-package. References • <NAME>. (2013). Could Sequential Residual Centering Resolve Low Sensitivity in Moderated Regression? Simulations and Cancer Symptom Clusters. Open Journal of Statis- tics, 03(06), 24-44. • <NAME>., <NAME>., <NAME>., and <NAME>. (eds.). (2013). An introduction to statis- tical learning: with applications in R. New York: Springer. • <NAME>., and <NAME>. (2019). Evaluation of Variance Inflation Factors in Re- gression Models Using Latent Variable Modeling Methods. Educational and Psychological Measurement, 79(5), 874–882. • <NAME>. (2020). Statistical rethinking: A Bayesian course with examples in R and Stan. 2nd edition. Chapman and Hall/CRC. • <NAME>. (2019). Collinearity isn’t a disease that needs curing. webpage • <NAME>, Ieno EN, Elphick CS. A protocol for data exploration to avoid common statistical problems: Data exploration. Methods in Ecology and Evolution (2010) 1:3–14. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_convergence(), check_heteroscedasticity(), check_homogeneity(), check_model(), check_outliers(), check_overdispersion(), check_predictions(), check_singularity(), check_zeroinflation() Examples m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) check_collinearity(m) # plot results x <- check_collinearity(m) plot(x) check_convergence Convergence test for mixed effects models Description check_convergence() provides an alternative convergence test for merMod-objects. Usage check_convergence(x, tolerance = 0.001, ...) Arguments x A merMod or glmmTMB-object. tolerance Indicates up to which value the convergence result is accepted. The smaller tolerance is, the stricter the test will be. ... Currently not used. Value TRUE if convergence is fine and FALSE if convergence is suspicious. Additionally, the convergence value is returned as attribute. Convergence and log-likelihood Convergence problems typically arise when the model hasn’t converged to a solution where the log-likelihood has a true maximum. This may result in unreliable and overly complex (or non- estimable) estimates and standard errors. Inspect model convergence lme4 performs a convergence-check (see ?lme4::convergence), however, as as discussed here and suggested by one of the lme4-authors in this comment, this check can be too strict. check_convergence() thus provides an alternative convergence test for merMod-objects. Resolving convergence issues Convergence issues are not easy to diagnose. The help page on ?lme4::convergence provides most of the current advice about how to resolve convergence issues. Another clue might be large parameter values, e.g. estimates (on the scale of the linear predictor) larger than 10 in (non-identity link) generalized linear model might indicate complete separation. Complete separation can be ad- dressed by regularization, e.g. penalized regression or Bayesian regression with appropriate priors on the fixed effects. Convergence versus Singularity Note the different meaning between singularity and convergence: singularity indicates an issue with the "true" best estimate, i.e. whether the maximum likelihood estimation for the variance-covariance matrix of the random effects is positive definite or only semi-definite. Convergence is a question of whether we can assume that the numerical optimization has worked correctly or not. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_heteroscedasticity(), check_homogeneity(), check_model(), check_outliers(), check_overdispersion(), check_predictions(), check_singularity(), check_zeroinflation() Examples if (require("lme4")) { data(cbpp) set.seed(1) cbpp$x <- rnorm(nrow(cbpp)) cbpp$x2 <- runif(nrow(cbpp)) model <- glmer( cbind(incidence, size - incidence) ~ period + x + x2 + (1 + x | herd), data = cbpp, family = binomial() ) check_convergence(model) } ## Not run: if (require("glmmTMB")) { model <- glmmTMB( Sepal.Length ~ poly(Petal.Width, 4) * poly(Petal.Length, 4) + (1 + poly(Petal.Width, 4) | Species), data = iris ) check_convergence(model) } ## End(Not run) check_distribution Classify the distribution of a model-family using machine learning Description Choosing the right distributional family for regression models is essential to get more accurate estimates and standard errors. This function may help to check a models’ distributional family and see if the model-family probably should be reconsidered. Since it is difficult to exactly predict the correct model family, consider this function as somewhat experimental. Usage check_distribution(model) Arguments model Typically, a model (that should response to residuals()). May also be a nu- meric vector. Details This function uses an internal random forest model to classify the distribution from a model-family. Currently, following distributions are trained (i.e. results of check_distribution() may be one of the following): "bernoulli", "beta", "beta-binomial", "binomial", "chi", "exponential", "F", "gamma", "lognormal", "normal", "negative binomial", "negative binomial (zero-inflated)", "pareto", "poisson", "poisson (zero-inflated)", "uniform" and "weibull". Note the similarity between certain distributions according to shape, skewness, etc. Thus, the pre- dicted distribution may not be perfectly representing the distributional family of the underlying fitted model, or the response value. There is a plot() method, which shows the probabilities of all predicted distributions, however, only if the probability is greater than zero. Note This function is somewhat experimental and might be improved in future releases. The final deci- sion on the model-family should also be based on theoretical aspects and other information about the data and the model. There is also a plot()-method implemented in the see-package. Examples if (require("lme4") && require("parameters") && require("see") && require("patchwork") && require("randomForest")) { data(sleepstudy) model <<- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) check_distribution(model) plot(check_distribution(model)) } check_factorstructure Check suitability of data for Factor Analysis (FA) with Bartlett’s Test of Sphericity and KMO Description This checks whether the data is appropriate for Factor Analysis (FA) by running the Bartlett’s Test of Sphericity and the Kaiser, <NAME> (KMO) Measure of Sampling Adequacy (MSA). See details below for more information about the interpretation and meaning of each test. Usage check_factorstructure(x, n = NULL, ...) check_kmo(x, n = NULL, ...) check_sphericity_bartlett(x, n = NULL, ...) Arguments x A dataframe or a correlation matrix. If the latter is passed, n must be provided. n If a correlation matrix was passed, the number of observations must be specified. ... Arguments passed to or from other methods. Details Bartlett’s Test of Sphericity: Bartlett’s (1951) test of sphericity tests whether a matrix (of correlations) is significantly different from an identity matrix (filled with 0). It tests whether the correlation coefficients are all 0. The test computes the probability that the correlation matrix has significant correlations among at least some of the variables in a dataset, a prerequisite for factor analysis to work. While it is often suggested to check whether Bartlett’s test of sphericity is significant before start- ing with factor analysis, one needs to remember that the test is testing a pretty extreme scenario (that all correlations are non-significant). As the sample size increases, this test tends to be always significant, which makes it not particularly useful or informative in well-powered studies. <NAME> (KMO): (Measure of Sampling Adequacy (MSA) for Factor Analysis.) Kaiser (1970) introduced a Measure of Sampling Adequacy (MSA), later modified by Kaiser and Rice (1974). The Kaiser-Meyer-Olkin (KMO) statistic, which can vary from 0 to 1, indicates the degree to which each variable in a set is predicted without error by the other variables. A value of 0 indicates that the sum of partial correlations is large relative to the sum correlations, indicating factor analysis is likely to be inappropriate. A KMO value close to 1 indicates that the sum of partial correlations is not large relative to the sum of correlations and so factor analysis should yield distinct and reliable factors. It means that patterns of correlations are relatively compact, and so factor analysis should yield distinct and reliable factors. Values smaller than 0.5 suggest that you should either collect more data or rethink which variables to include. Kaiser (1974) suggested that KMO > .9 were marvelous, in the .80s, meritorious, in the .70s, middling, in the .60s, mediocre, in the .50s, miserable, and less than .5, unacceptable. Hair et al. (2006) suggest accepting a value > 0.5. Values between 0.5 and 0.7 are mediocre, and values between 0.7 and 0.8 are good. Variables with individual KMO values below 0.5 could be considered for exclusion them from the analysis (note that you would need to re-compute the KMO indices as they are dependent on the whole dataset). Value A list of lists of indices related to sphericity and KMO. References This function is a wrapper around the KMO and the cortest.bartlett() functions in the psych package (Revelle, 2016). • <NAME>. (2016). How To: Use the psych package for Factor Analysis and data reduction. • <NAME>. (1951). The effect of standardization on a Chi-square approximation in factor analysis. Biometrika, 38(3/4), 337-344. • <NAME>. (1970). A second generation little jiffy. Psychometrika, 35(4), 401-415. • <NAME>., & <NAME>. (1974). Little jiffy, mark IV. Educational and psychological measure- ment, 34(1), 111-117. • <NAME>. (1974). An index of factorial simplicity. Psychometrika, 39(1), 31-36. See Also check_clusterstructure(). Examples library(performance) check_factorstructure(mtcars) # One can also pass a correlation matrix r <- cor(mtcars) check_factorstructure(r, n = nrow(mtcars)) check_heterogeneity_bias Check model predictor for heterogeneity bias Description check_heterogeneity_bias() checks if model predictors or variables may cause a heterogeneity bias, i.e. if variables have a within- and/or between-effect (Bell and Jones, 2015). Usage check_heterogeneity_bias(x, select = NULL, group = NULL) Arguments x A data frame or a mixed model object. select Character vector (or formula) with names of variables to select that should be checked. If x is a mixed model object, this argument will be ignored. group Character vector (or formula) with the name of the variable that indicates the group- or cluster-ID. If x is a model object, this argument will be ignored. References • <NAME>, <NAME>. 2015. Explaining Fixed Effects: Random Effects Modeling of Time-Series Cross-Sectional and Panel Data. Political Science Research and Methods, 3(1), 133–153. See Also For further details, read the vignette https://easystats.github.io/parameters/articles/ demean.html and also see documentation for datawizard::demean(). Examples data(iris) iris$ID <- sample(1:4, nrow(iris), replace = TRUE) # fake-ID check_heterogeneity_bias(iris, select = c("Sepal.Length", "Petal.Length"), group = "ID") check_heteroscedasticity Check model for (non-)constant error variance Description Significance testing for linear regression models assumes that the model errors (or residuals) have constant variance. If this assumption is violated the p-values from the model are no longer reliable. Usage check_heteroscedasticity(x, ...) check_heteroskedasticity(x, ...) Arguments x A model object. ... Currently not used. Details This test of the hypothesis of (non-)constant error is also called Breusch-Pagan test (1979 ). Value The p-value of the test statistics. A p-value < 0.05 indicates a non-constant variance (heteroskedas- ticity). Note There is also a plot()-method implemented in the see-package. References <NAME>., and <NAME>. (1979) A simple test for heteroscedasticity and random coefficient variation. Econometrica 47, 1287-1294. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_convergence(), check_homogeneity(), check_model(), check_outliers(), check_overdispersion(), check_predictions(), check_singularity(), check_zeroinflation() Examples m <<- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) check_heteroscedasticity(m) # plot results if (require("see")) { x <- check_heteroscedasticity(m) plot(x) } check_homogeneity Check model for homogeneity of variances Description Check model for homogeneity of variances between groups described by independent variables in a model. Usage check_homogeneity(x, method = c("bartlett", "fligner", "levene", "auto"), ...) ## S3 method for class 'afex_aov' check_homogeneity(x, method = "levene", ...) Arguments x A linear model or an ANOVA object. method Name of the method (underlying test) that should be performed to check the homogeneity of variances. May either be "levene" for Levene’s Test for Ho- mogeneity of Variance, "bartlett" for the Bartlett test (assuming normal dis- tributed samples or groups), "fligner" for the Fligner-Killeen test (rank-based, non-parametric test), or "auto". In the latter case, Bartlett test is used if the model response is normal distributed, else Fligner-Killeen test is used. ... Arguments passed down to car::leveneTest(). Value Invisibly returns the p-value of the test statistics. A p-value < 0.05 indicates a significant difference in the variance between the groups. Note There is also a plot()-method implemented in the see-package. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_convergence(), check_heteroscedasticity(), check_model(), check_outliers(), check_overdispersion(), check_predictions(), check_singularity(), check_zeroinflation() Examples model <<- lm(len ~ supp + dose, data = ToothGrowth) check_homogeneity(model) # plot results if (require("see")) { result <- check_homogeneity(model) plot(result) } check_itemscale Describe Properties of Item Scales Description Compute various measures of internal consistencies applied to (sub)scales, which items were ex- tracted using parameters::principal_components(). Usage check_itemscale(x) Arguments x An object of class parameters_pca, as returned by parameters::principal_components(). Details check_itemscale() calculates various measures of internal consistencies, such as Cronbach’s al- pha, item difficulty or discrimination etc. on subscales which were built from several items. Sub- scales are retrieved from the results of parameters::principal_components(), i.e. based on how many components were extracted from the PCA, check_itemscale() retrieves those variables that belong to a component and calculates the above mentioned measures. Value A list of data frames, with related measures of internal consistencies of each subscale. Note • Item difficulty should range between 0.2 and 0.8. Ideal value is p+(1-p)/2 (which mostly is between 0.5 and 0.8). See item_difficulty() for details. • For item discrimination, acceptable values are 0.20 or higher; the closer to 1.00 the better. See item_reliability() for more details. • In case the total Cronbach’s alpha value is below the acceptable cut-off of 0.7 (mostly if an index has few items), the mean inter-item-correlation is an alternative measure to indicate acceptability. Satisfactory range lies between 0.2 and 0.4. See also item_intercor(). References • <NAME>, Cheek JM (1986) The role of factor analysis in the development and evalua- tion of personality scales. Journal of Personality, 54(1), 106-148. doi: 10.1111/j.1467- 6494.1986.tb00391.x • Trochim WMK (2008) Types of Reliability. (web) Examples # data generation from '?prcomp', slightly modified C <- chol(S <- toeplitz(0.9^(0:15))) set.seed(17) X <- matrix(rnorm(1600), 100, 16) Z <- X %*% C if (require("parameters") && require("psych")) { pca <- principal_components(as.data.frame(Z), rotation = "varimax", n = 3) pca check_itemscale(pca) } check_model Visual check of model assumptions Description Visual check of various model assumptions (normality of residuals, normality of random effects, linear relationship, homogeneity of variance, multicollinearity). Usage check_model(x, ...) ## Default S3 method: check_model( x, dot_size = 2, line_size = 0.8, panel = TRUE, check = "all", alpha = 0.2, dot_alpha = 0.8, colors = c("#3aaf85", "#1b6ca8", "#cd201f"), theme = "see::theme_lucid", detrend = TRUE, show_dots = NULL, bandwidth = "nrd", type = "density", verbose = FALSE, ... ) Arguments x A model object. ... Currently not used. dot_size, line_size Size of line and dot-geoms. panel Logical, if TRUE, plots are arranged as panels; else, single plots for each diag- nostic are returned. check Character vector, indicating which checks for should be performed and plot- ted. May be one or more of "all", "vif", "qq", "normality", "linearity", "ncv", "homogeneity", "outliers", "reqq", "pp_check", "binned_residuals" or "overdispersion", Not that not all check apply to all type of models (see ’Details’). "reqq" is a QQ-plot for random effects and only available for mixed models. "ncv" is an alias for "linearity", and checks for non-constant vari- ance, i.e. for heteroscedasticity, as well as the linear relationship. By default, all possible checks are performed and plotted. alpha, dot_alpha The alpha level of the confidence bands and dot-geoms. Scalar from 0 to 1. colors Character vector with color codes (hex-format). Must be of length 3. First color is usually used for reference lines, second color for dots, and third color for outliers or extreme values. theme String, indicating the name of the plot-theme. Must be in the format "package::theme_name" (e.g. "ggplot2::theme_minimal"). detrend Logical. Should Q-Q/P-P plots be de-trended? Defaults to TRUE. show_dots Logical, if TRUE, will show data points in the plot. Set to FALSE for models with many observations, if generating the plot is too time-consuming. By default, show_dots = NULL. In this case check_model() tries to guess whether perfor- mance will be poor due to a very large model and thus automatically shows or hides dots. bandwidth A character string indicating the smoothing bandwidth to be used. Unlike stats::density(), which used "nrd0" as default, the default used here is "nrd" (which seems to give more plausible results for non-Gaussian models). When problems with plotting occur, try to change to a different value. type Plot type for the posterior predictive checks plot. Can be "density", "discrete_dots", "discrete_interval" or "discrete_both" (the discrete_* options are ap- propriate for models with discrete - binary, integer or ordinal etc. - outcomes). verbose If FALSE (default), suppress most warning messages. Details For Bayesian models from packages rstanarm or brms, models will be "converted" to their fre- quentist counterpart, using bayestestR::bayesian_as_frequentist. A more advanced model- check for Bayesian models will be implemented at a later stage. See also the related vignette. Value The data frame that is used for plotting. Posterior Predictive Checks Posterior predictive checks can be used to look for systematic discrepancies between real and simu- lated data. It helps to see whether the type of model (distributional family) fits well to the data. See check_predictions() for further details. Linearity Assumption The plot Linearity checks the assumption of linear relationship. However, the spread of dots also indicate possible heteroscedasticity (i.e. non-constant variance, hence, the alias "ncv" for this plot), thus it shows if residuals have non-linear patterns. This plot helps to see whether predictors may have a non-linear relationship with the outcome, in which case the reference line may roughly indicate that relationship. A straight and horizontal line indicates that the model specification seems to be ok. But for instance, if the line would be U-shaped, some of the predictors probably should better be modeled as quadratic term. See check_heteroscedasticity() for further details. Some caution is needed when interpreting these plots. Although these plots are helpful to check model assumptions, they do not necessarily indicate so-called "lack of fit", e.g. missed non-linear relationships or interactions. Thus, it is always recommended to also look at effect plots, including partial residuals. Homogeneity of Variance This plot checks the assumption of equal variance (homoscedasticity). The desired pattern would be that dots spread equally above and below a straight, horizontal line and show no apparent deviation. Influential Observations This plot is used to identify influential observations. If any points in this plot fall outside of Cook’s distance (the dashed lines) then it is considered an influential observation. See check_outliers() for further details. Multicollinearity This plot checks for potential collinearity among predictors. In a nutshell, multicollinearity means that once you know the effect of one predictor, the value of knowing the other predictor is rather low. Multicollinearity might arise when a third, unobserved variable has a causal effect on each of the two predictors that are associated with the outcome. In such cases, the actual relation- ship that matters would be the association between the unobserved variable and the outcome. See check_collinearity() for further details. Normality of Residuals This plot is used to determine if the residuals of the regression model are normally distributed. Usu- ally, dots should fall along the line. If there is some deviation (mostly at the tails), this indicates that the model doesn’t predict the outcome well for that range that shows larger deviations from the line. For generalized linear models, a half-normal Q-Q plot of the absolute value of the stan- dardized deviance residuals is shown, however, the interpretation of the plot remains the same. See check_normality() for further details. Overdispersion For count models, an overdispersion plot is shown. Overdispersion occurs when the observed variance is higher than the variance of a theoretical model. For Poisson models, variance increases with the mean and, therefore, variance usually (roughly) equals the mean value. If the variance is much higher, the data are "overdispersed". See check_overdispersion() for further details. Binned Residuals For models from binomial families, a binned residuals plot is shown. Binned residual plots are achieved by cutting the the data into bins and then plotting the average residual versus the average fitted value for each bin. If the model were true, one would expect about 95% of the residuals to fall inside the error bounds. See binned_residuals() for further details. Residuals for (Generalized) Linear Models Plots that check the normality of residuals (QQ-plot) or the homogeneity of variance use standard- ized Pearson’s residuals for generalized linear models, and standardized residuals for linear models. The plots for the normality of residuals (with overlayed normal curve) and for the linearity assump- tion use the default residuals for lm and glm (which are deviance residuals for glm). Troubleshooting For models with many observations, or for more complex models in general, generating the plot might become very slow. One reason might be that the underlying graphic engine becomes slow for plotting many data points. In such cases, setting the argument show_dots = FALSE might help. Furthermore, look at the check argument and see if some of the model checks could be skipped, which also increases performance. Note This function just prepares the data for plotting. To create the plots, see needs to be installed. Furthermore, this function suppresses all possible warnings. In case you observe suspicious plots, please refer to the dedicated functions (like check_collinearity(), check_normality() etc.) to get informative messages and warnings. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_convergence(), check_heteroscedasticity(), check_homogeneity(), check_outliers(), check_overdispersion(), check_predictions(), check_singularity(), check_zeroinflation() Examples ## Not run: m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) check_model(m) if (require("lme4")) { m <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) check_model(m, panel = FALSE) } if (require("rstanarm")) { m <- stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200) check_model(m) } ## End(Not run) check_multimodal Check if a distribution is unimodal or multimodal Description For univariate distributions (one-dimensional vectors), this functions performs a Ameijeiras-Alonso et al. (2018) excess mass test. For multivariate distributions (data frames), it uses mixture mod- elling. However, it seems that it always returns a significant result (suggesting that the distribution is multimodal). A better method might be needed here. Usage check_multimodal(x, ...) Arguments x A numeric vector or a data frame. ... Arguments passed to or from other methods. References • <NAME>., <NAME>., and <NAME>. (2019). Mode testing, criti- cal bandwidth and excess mass. Test, 28(3), 900-919. Examples ## Not run: if (require("multimode")) { # Univariate x <- rnorm(1000) check_multimodal(x) } if (require("multimode") && require("mclust")) { x <- c(rnorm(1000), rnorm(1000, 2)) check_multimodal(x) # Multivariate m <- data.frame( x = rnorm(200), y = rbeta(200, 2, 1) ) plot(m$x, m$y) check_multimodal(m) m <- data.frame( x = c(rnorm(100), rnorm(100, 4)), y = c(rbeta(100, 2, 1), rbeta(100, 1, 4)) ) plot(m$x, m$y) check_multimodal(m) } ## End(Not run) check_normality Check model for (non-)normality of residuals. Description Check model for (non-)normality of residuals. Usage check_normality(x, ...) ## S3 method for class 'merMod' check_normality(x, effects = c("fixed", "random"), ...) Arguments x A model object. ... Currently not used. effects Should normality for residuals ("fixed") or random effects ("random") be tested? Only applies to mixed-effects models. May be abbreviated. Details check_normality() calls stats::shapiro.test and checks the standardized residuals (or stu- dentized residuals for mixed models) for normal distribution. Note that this formal test almost always yields significant results for the distribution of residuals and visual inspection (e.g. Q-Q plots) are preferable. For generalized linear models, no formal statistical test is carried out. Rather, there’s only a plot() method for GLMs. This plot shows a half-normal Q-Q plot of the absolute value of the standardized deviance residuals is shown (in line with changes in plot.lm() for R 4.3+). Value The p-value of the test statistics. A p-value < 0.05 indicates a significant deviation from normal distribution. Note For mixed-effects models, studentized residuals, and not standardized residuals, are used for the test. There is also a plot()-method implemented in the see-package. Examples m <<- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) check_normality(m) # plot results if (require("see")) { x <- check_normality(m) plot(x) } ## Not run: # QQ-plot plot(check_normality(m), type = "qq") # PP-plot plot(check_normality(m), type = "pp") ## End(Not run) check_outliers Outliers detection (check for influential observations) Description Checks for and locates influential observations (i.e., "outliers") via several distance and/or clustering methods. If several methods are selected, the returned "Outlier" vector will be a composite outlier score, made of the average of the binary (0 or 1) results of each method. It represents the probability of each observation of being classified as an outlier by at least one method. The decision rule used by default is to classify as outliers observations which composite outlier score is superior or equal to 0.5 (i.e., that were classified as outliers by at least half of the methods). See the Details section below for a description of the methods. Usage check_outliers(x, ...) ## Default S3 method: check_outliers( x, method = c("cook", "pareto"), threshold = NULL, ID = NULL, ... ) ## S3 method for class 'numeric' check_outliers(x, method = "zscore_robust", threshold = NULL, ...) ## S3 method for class 'data.frame' check_outliers(x, method = "mahalanobis", threshold = NULL, ID = NULL, ...) Arguments x A model or a data.frame object. ... When method = "ics", further arguments in ... are passed down to ICSOutlier::ics.outlier(). When method = "mahalanobis", they are passed down to stats::mahalanobis(). method The outlier detection method(s). Can be "all" or some of "cook", "pareto", "zscore", "zscore_robust", "iqr", "ci", "eti", "hdi", "bci", "mahalanobis", "mahalanobis_robust", "mcd", "ics", "optics" or "lof". threshold A list containing the threshold values for each method (e.g. list('mahalanobis' = 7, 'cook' = 1)), above which an observation is considered as outlier. If NULL, default values will be used (see ’Details’). If a numeric value is given, it will be used as the threshold for any of the method run. ID Optional, to report an ID column along with the row number. Details Outliers can be defined as particularly influential observations. Most methods rely on the compu- tation of some distance metric, and the observations greater than a certain threshold are considered outliers. Importantly, outliers detection methods are meant to provide information to consider for the researcher, rather than to be an automatized procedure which mindless application is a substitute for thinking. An example sentence for reporting the usage of the composite method could be: "Based on a composite outlier score (see the ’check_outliers’ function in the ’performance’ R pack- age; Lüdecke et al., 2021) obtained via the joint application of multiple outliers detection algorithms (Z-scores, Iglewicz, 1993; Interquartile range (IQR); Mahalanobis distance, Cabana, 2019; Robust Mahalanobis distance, Gnanadesikan and Kettenring, 1972; Minimum Covariance Determinant, Leys et al., 2018; Invariant Coordinate Selection, Archimbaud et al., 2018; OPTICS, Ankerst et al., 1999; Isolation Forest, Liu et al. 2008; and Local Outlier Factor, Breunig et al., 2000), we excluded n participants that were classified as outliers by at least half of the methods used." Value A logical vector of the detected outliers with a nice printing method: a check (message) on whether outliers were detected or not. The information on the distance measure and whether or not an observation is considered as outlier can be recovered with the as.data.frame function. Note that the function will (silently) return a vector of FALSE for non-supported data types such as character strings. Model-specific methods • Cook’s Distance: Among outlier detection methods, Cook’s distance and leverage are less common than the basic Mahalanobis distance, but still used. Cook’s distance estimates the variations in regression coefficients after removing each observation, one by one (Cook, 1977). Since Cook’s distance is in the metric of an F distribution with p and n-p degrees of freedom, the median point of the quantile distribution can be used as a cut-off (Bollen, 1985). A com- mon approximation or heuristic is to use 4 divided by the numbers of observations, which usually corresponds to a lower threshold (i.e., more outliers are detected). This only works for frequentist models. For Bayesian models, see pareto. • Pareto: The reliability and approximate convergence of Bayesian models can be assessed using the estimates for the shape parameter k of the generalized Pareto distribution. If the estimated tail shape parameter k exceeds 0.5, the user should be warned, although in practice the authors of the loo package observed good performance for values of k up to 0.7 (the default threshold used by performance). Univariate methods • Z-scores ("zscore", "zscore_robust"): The Z-score, or standard score, is a way of de- scribing a data point as deviance from a central value, in terms of standard deviations from the mean ("zscore") or, as it is here the case ("zscore_robust") by default (Iglewicz, 1993), in terms of Median Absolute Deviation (MAD) from the median (which are robust measures of dispersion and centrality). The default threshold to classify outliers is 1.959 (threshold = list("zscore" = 1.959)), corresponding to the 2.5% (qnorm(0.975)) most extreme ob- servations (assuming the data is normally distributed). Importantly, the Z-score method is univariate: it is computed column by column. If a dataframe is passed, the Z-score is calcu- lated for each variable separately, and the maximum (absolute) Z-score is kept for each ob- servations. Thus, all observations that are extreme on at least one variable might be detected as outliers. Thus, this method is not suited for high dimensional data (with many columns), returning too liberal results (detecting many outliers). • IQR ("iqr"): Using the IQR (interquartile range) is a robust method developed by John Tukey, which often appears in box-and-whisker plots (e.g., in ggplot2::geom_boxplot). The interquartile range is the range between the first and the third quartiles. Tukey considered as outliers any data point that fell outside of either 1.5 times (the default threshold is 1.7) the IQR below the first or above the third quartile. Similar to the Z-score method, this is a univariate method for outliers detection, returning outliers detected for at least one column, and might thus not be suited to high dimensional data. The distance score for the IQR is the absolute deviation from the median of the upper and lower IQR thresholds. Then, this value is divided by the IQR threshold, to “standardize” it and facilitate interpretation. • CI ("ci", "eti", "hdi", "bci"): Another univariate method is to compute, for each variable, some sort of "confidence" interval and consider as outliers values lying beyond the edges of that interval. By default, "ci" computes the Equal-Tailed Interval ("eti"), but other types of intervals are available, such as Highest Density Interval ("hdi") or the Bias Corrected and Accelerated Interval ("bci"). The default threshold is 0.95, considering as outliers all observations that are outside the 95% CI on any of the variable. See bayestestR::ci() for more details about the intervals. The distance score for the CI methods is the absolute deviation from the median of the upper and lower CI thresholds. Then, this value is divided by the difference between the upper and lower CI bounds divided by two, to “standardize” it and facilitate interpretation. Multivariate methods • Mahalanobis Distance: Mahalanobis distance (Mahalanobis, 1930) is often used for multi- variate outliers detection as this distance takes into account the shape of the observations. The default threshold is often arbitrarily set to some deviation (in terms of SD or MAD) from the mean (or median) of the Mahalanobis distance. However, as the Mahalanobis distance can be approximated by a Chi squared distribution (Rousseeuw and <NAME>, 1990), we can use the alpha quantile of the chi-square distribution with k degrees of freedom (k being the number of columns). By default, the alpha threshold is set to 0.025 (corresponding to the 2.5\ Cabana, 2019). This criterion is a natural extension of the median plus or minus a coefficient times the MAD method (Leys et al., 2013). • Robust Mahalanobis Distance: A robust version of Mahalanobis distance using an Orthog- onalized Gnanadesikan-Kettenring pairwise estimator (Gnanadesikan and Kettenring, 1972). Requires the bigutilsr package. See the bigutilsr::dist_ogk() function. • Minimum Covariance Determinant (MCD): Another robust version of Mahalanobis. Leys et al. (2018) argue that Mahalanobis Distance is not a robust way to determine outliers, as it uses the means and covariances of all the data - including the outliers - to determine individual difference scores. Minimum Covariance Determinant calculates the mean and covariance matrix based on the most central subset of the data (by default, 66\ is deemed to be a more robust method of identifying and removing outliers than regular Mahalanobis distance. • Invariant Coordinate Selection (ICS): The outlier are detected using ICS, which by default uses an alpha threshold of 0.025 (corresponding to the 2.5\ value for outliers classification. Refer to the help-file of ICSOutlier::ics.outlier() to get more details about this proce- dure. Note that method = "ics" requires both ICS and ICSOutlier to be installed, and that it takes some time to compute the results. • OPTICS: The Ordering Points To Identify the Clustering Structure (OPTICS) algorithm (Ankerst et al., 1999) is using similar concepts to DBSCAN (an unsupervised clustering technique that can be used for outliers detection). The threshold argument is passed as minPts, which cor- responds to the minimum size of a cluster. By default, this size is set at 2 times the number of columns (Sander et al., 1998). Compared to the other techniques, that will always detect several outliers (as these are usually defined as a percentage of extreme values), this algo- rithm functions in a different manner and won’t always detect outliers. Note that method = "optics" requires the dbscan package to be installed, and that it takes some time to compute the results. • Local Outlier Factor: Based on a K nearest neighbors algorithm, LOF compares the local density of a point to the local densities of its neighbors instead of computing a distance from the center (Breunig et al., 2000). Points that have a substantially lower density than their neighbors are considered outliers. A LOF score of approximately 1 indicates that density around the point is comparable to its neighbors. Scores significantly larger than 1 indicate outliers. The default threshold of 0.025 will classify as outliers the observations located at qnorm(1-0.025) * SD) of the log-transformed LOF distance. Requires the dbscan package. Threshold specification Default thresholds are currently specified as follows: list( zscore = stats::qnorm(p = 1 - 0.001 / 2), zscore_robust = stats::qnorm(p = 1 - 0.001 / 2), iqr = 1.7, ci = 1 - 0.001, eti = 1 - 0.001, hdi = 1 - 0.001, bci = 1 - 0.001, cook = stats::qf(0.5, ncol(x), nrow(x) - ncol(x)), pareto = 0.7, mahalanobis = stats::qchisq(p = 1 - 0.001, df = ncol(x)), mahalanobis_robust = stats::qchisq(p = 1 - 0.001, df = ncol(x)), mcd = stats::qchisq(p = 1 - 0.001, df = ncol(x)), ics = 0.001, optics = 2 * ncol(x), lof = 0.001 ) Meta-analysis models For meta-analysis models (e.g. objects of class rma from the metafor package or metagen from package meta), studies are defined as outliers when their confidence interval lies outside the confi- dence interval of the pooled effect. Note There is also a plot()-method implemented in the see-package. Please note that the range of the distance-values along the y-axis is re-scaled to range from 0 to 1. References • <NAME>., <NAME>., and <NAME>. (2018). ICS for multivariate outlier detection with application to quality control. Computational Statistics and Data Analysis, 128, 184-199. doi:10.1016/j.csda.2018.06.011 • <NAME>., and <NAME>. (1972). Robust estimates, residuals, and outlier de- tection with multiresponse data. Biometrics, 81-124. • <NAME>., and <NAME>. (1985). Regression diagnostics: An expository treatment of outliers and influential cases. Sociological Methods and Research, 13(4), 510-542. • <NAME>., <NAME>., and <NAME>. (2019). Multivariate outlier detection based on a robust Mahalanobis distance with shrinkage estimators. arXiv preprint arXiv:1904.02596. • <NAME>. (1977). Detection of influential observation in linear regression. Technometrics, 19(1), 15-18. • <NAME>., and <NAME>. (1993). How to detect and handle outliers (Vol. 16). Asq Press. • <NAME>., <NAME>., <NAME>., and <NAME>. (2018). Detecting multivariate outliers: Use a robust variant of Mahalanobis distance. Journal of Experimental Social Psychology, 74, 150-156. • <NAME>., <NAME>., and <NAME>. (2008, December). Isolation forest. In 2008 Eighth IEEE International Conference on Data Mining (pp. 413-422). IEEE. • <NAME>., <NAME>., <NAME>., <NAME>., and <NAME>. (2021). perfor- mance: An R package for assessment, comparison and testing of statistical models. Journal of Open Source Software, 6(60), 3139. doi:10.21105/joss.03139 • <NAME>., and <NAME>. (1990). Unmasking multivariate outliers and lever- age points. Journal of the American Statistical association, 85(411), 633-639. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_convergence(), check_heteroscedasticity(), check_homogeneity(), check_model(), check_overdispersion(), check_predictions(), check_singularity(), check_zeroinflation() Examples data <- mtcars # Size nrow(data) = 32 # For single variables ------------------------------------------------------ outliers_list <- check_outliers(data$mpg) # Find outliers outliers_list # Show the row index of the outliers as.numeric(outliers_list) # The object is a binary vector... filtered_data <- data[!outliers_list, ] # And can be used to filter a dataframe nrow(filtered_data) # New size, 28 (4 outliers removed) # Find all observations beyond +/- 2 SD check_outliers(data$mpg, method = "zscore", threshold = 2) # For dataframes ------------------------------------------------------ check_outliers(data) # It works the same way on dataframes # You can also use multiple methods at once outliers_list <- check_outliers(data, method = c( "mahalanobis", "iqr", "zscore" )) outliers_list # Using `as.data.frame()`, we can access more details! outliers_info <- as.data.frame(outliers_list) head(outliers_info) outliers_info$Outlier # Including the probability of being an outlier # And we can be more stringent in our outliers removal process filtered_data <- data[outliers_info$Outlier < 0.1, ] # We can run the function stratified by groups using `{datawizard}` package: group_iris <- datawizard::data_group(iris, "Species") check_outliers(group_iris) ## Not run: # You can also run all the methods check_outliers(data, method = "all") # For statistical models --------------------------------------------- # select only mpg and disp (continuous) mt1 <- mtcars[, c(1, 3, 4)] # create some fake outliers and attach outliers to main df mt2 <- rbind(mt1, data.frame( mpg = c(37, 40), disp = c(300, 400), hp = c(110, 120) )) # fit model with outliers model <- lm(disp ~ mpg + hp, data = mt2) outliers_list <- check_outliers(model) if (require("see")) { plot(outliers_list) } insight::get_data(model)[outliers_list, ] # Show outliers data ## End(Not run) check_overdispersion Check overdispersion of GL(M)M’s Description check_overdispersion() checks generalized linear (mixed) models for overdispersion. Usage check_overdispersion(x, ...) Arguments x Fitted model of class merMod, glmmTMB, glm, or glm.nb (package MASS). ... Currently not used. Details Overdispersion occurs when the observed variance is higher than the variance of a theoretical model. For Poisson models, variance increases with the mean and, therefore, variance usually (roughly) equals the mean value. If the variance is much higher, the data are "overdispersed". Value A list with results from the overdispersion test, like chi-squared statistics, p-value or dispersion ratio. Interpretation of the Dispersion Ratio If the dispersion ratio is close to one, a Poisson model fits well to the data. Dispersion ratios larger than one indicate overdispersion, thus a negative binomial model or similar might fit better to the data. A p-value < .05 indicates overdispersion. Overdispersion in Poisson Models For Poisson models, the overdispersion test is based on the code from <NAME> Hill (2007), page 115. Overdispersion in Mixed Models For merMod- and glmmTMB-objects, check_overdispersion() is based on the code in the GLMM FAQ, section How can I deal with overdispersion in GLMMs?. Note that this function only returns an approximate estimate of an overdispersion parameter, and is probably inaccurate for zero-inflated mixed models (fitted with glmmTMB). How to fix Overdispersion Overdispersion can be fixed by either modeling the dispersion parameter, or by choosing a different distributional family (like Quasi-Poisson, or negative binomial, see Gel<NAME> (2007), pages 115-116). References • <NAME> et al. (2017): GLMM FAQ. • <NAME>., and <NAME>. (2007). Data analysis using regression and multilevel/hierarchical models. Cambridge; New York: Cambridge University Press. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_convergence(), check_heteroscedasticity(), check_homogeneity(), check_model(), check_outliers(), check_predictions(), check_singularity(), check_zeroinflation() Examples library(glmmTMB) data(Salamanders) m <- glm(count ~ spp + mined, family = poisson, data = Salamanders) check_overdispersion(m) m <- glmmTMB( count ~ mined + spp + (1 | site), family = poisson, data = Salamanders ) check_overdispersion(m) check_predictions Posterior predictive checks Description Posterior predictive checks mean "simulating replicated data under the fitted model and then com- paring these to the observed data" (<NAME>, 2007, p. 158). Posterior predictive checks can be used to "look for systematic discrepancies between real and simulated data" (Gelman et al. 2014, p. 169). performance provides posterior predictive check methods for a variety of frequentist models (e.g., lm, merMod, glmmTMB, ...). For Bayesian models, the model is passed to bayesplot::pp_check(). Usage check_predictions(object, ...) ## Default S3 method: check_predictions( object, iterations = 50, check_range = FALSE, re_formula = NULL, bandwidth = "nrd", type = "density", verbose = TRUE, ... ) posterior_predictive_check(object, ...) check_posterior_predictions(object, ...) Arguments object A statistical model. ... Passed down to simulate(). iterations The number of draws to simulate/bootstrap. check_range Logical, if TRUE, includes a plot with the minimum value of the original response against the minimum values of the replicated responses, and the same for the maximum value. This plot helps judging whether the variation in the original data is captured by the model or not (Gelman et al. 2020, pp.163). The minimum and maximum values of y should be inside the range of the related minimum and maximum values of yrep. re_formula Formula containing group-level effects (random effects) to be considered in the simulated data. If NULL (default), condition on all random effects. If NA or ~0, condition on no random effects. See simulate() in lme4. bandwidth A character string indicating the smoothing bandwidth to be used. Unlike stats::density(), which used "nrd0" as default, the default used here is "nrd" (which seems to give more plausible results for non-Gaussian models). When problems with plotting occur, try to change to a different value. type Plot type for the posterior predictive checks plot. Can be "density", "discrete_dots", "discrete_interval" or "discrete_both" (the discrete_* options are ap- propriate for models with discrete - binary, integer or ordinal etc. - outcomes). verbose Toggle warnings. Details An example how posterior predictive checks can also be used for model comparison is Figure 6 from Gabry et al. 2019, Figure 6. The model shown in the right panel (b) can simulate new data that are more similar to the observed outcome than the model in the left panel (a). Thus, model (b) is likely to be preferred over model (a). Value A data frame of simulated responses and the original response vector. Note Every model object that has a simulate()-method should work with check_predictions(). On R 3.6.0 and higher, if bayesplot (or a package that imports bayesplot such as rstanarm or brms) is loaded, pp_check() is also available as an alias for check_predictions(). References • <NAME>., <NAME>., <NAME>., <NAME>., and <NAME>. (2019). Visualization in Bayesian workflow. Journal of the Royal Statistical Society: Series A (Statistics in Society), 182(2), 389–402. https://doi.org/10.1111/rssa.12378 • <NAME>., and <NAME>. (2007). Data analysis using regression and multilevel/hierarchical models. Cambridge; New York: Cambridge University Press. • <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., and <NAME>. (2014). Bayesian data analysis. (Third edition). CRC Press. • <NAME>., <NAME>., and <NAME>. (2020). Regression and Other Stories. Cambridge Uni- versity Press. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_convergence(), check_heteroscedasticity(), check_homogeneity(), check_model(), check_outliers(), check_overdispersion(), check_singularity(), check_zeroinflation() Examples library(performance) # linear model if (require("see")) { model <- lm(mpg ~ disp, data = mtcars) check_predictions(model) } # discrete/integer outcome if (require("see")) { set.seed(99) d <- iris d$skewed <- rpois(150, 1) model <- glm( skewed ~ Species + Petal.Length + Petal.Width, family = poisson(), data = d ) check_predictions(model, type = "discrete_both") } check_singularity Check mixed models for boundary fits Description Check mixed models for boundary fits. Usage check_singularity(x, tolerance = 1e-05, ...) Arguments x A mixed model. tolerance Indicates up to which value the convergence result is accepted. The larger tolerance is, the stricter the test will be. ... Currently not used. Details If a model is "singular", this means that some dimensions of the variance-covariance matrix have been estimated as exactly zero. This often occurs for mixed models with complex random effects structures. "While singular models are statistically well defined (it is theoretically sensible for the true max- imum likelihood estimate to correspond to a singular fit), there are real concerns that (1) singular fits correspond to overfitted models that may have poor power; (2) chances of numerical problems and mis-convergence are higher for singular models (e.g. it may be computationally difficult to compute profile confidence intervals for such models); (3) standard inferential procedures such as Wald statistics and likelihood ratio tests may be inappropriate." (lme4 Reference Manual) There is no gold-standard about how to deal with singularity and which random-effects specification to choose. Beside using fully Bayesian methods (with informative priors), proposals in a frequentist framework are: • avoid fitting overly complex models, such that the variance-covariance matrices can be esti- mated precisely enough (Matuschek et al. 2017) • use some form of model selection to choose a model that balances predictive accuracy and overfitting/type I error (Bates et al. 2015, Matuschek et al. 2017) • "keep it maximal", i.e. fit the most complex model consistent with the experimental design, removing only terms required to allow a non-singular fit (Barr et al. 2013) Note the different meaning between singularity and convergence: singularity indicates an issue with the "true" best estimate, i.e. whether the maximum likelihood estimation for the variance-covariance matrix of the random effects is positive definite or only semi-definite. Convergence is a question of whether we can assume that the numerical optimization has worked correctly or not. Value TRUE if the model fit is singular. References • <NAME>, <NAME>, <NAME>, <NAME>. Parsimonious Mixed Models. arXiv:1506.04967, June 2015. • <NAME>, <NAME>, <NAME>, <NAME>. Random effects structure for confirmatory hypothesis testing: Keep it maximal. Journal of Memory and Language, 68(3):255-278, April 2013. • <NAME>, <NAME>, <NAME>, <NAME>, <NAME>. Balancing type I error and power in linear mixed models. Journal of Memory and Language, 94:305-315, 2017. • lme4 Reference Manual, https://cran.r-project.org/package=lme4 See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_convergence(), check_heteroscedasticity(), check_homogeneity(), check_model(), check_outliers(), check_overdispersion(), check_predictions(), check_zeroinflation() Examples library(lme4) data(sleepstudy) set.seed(123) sleepstudy$mygrp <- sample(1:5, size = 180, replace = TRUE) sleepstudy$mysubgrp <- NA for (i in 1:5) { filter_group <- sleepstudy$mygrp == i sleepstudy$mysubgrp[filter_group] <- sample(1:30, size = sum(filter_group), replace = TRUE) } model <- lmer( Reaction ~ Days + (1 | mygrp / mysubgrp) + (1 | Subject), data = sleepstudy ) check_singularity(model) check_sphericity Check model for violation of sphericity Description Check model for violation of sphericity. For Bartlett’s Test of Sphericity (used for correlation matrices and factor analyses), see check_sphericity_bartlett. Usage check_sphericity(x, ...) Arguments x A model object. ... Arguments passed to car::Anova. Value Invisibly returns the p-values of the test statistics. A p-value < 0.05 indicates a violation of spheric- ity. Examples if (require("car")) { soils.mod <- lm( cbind(pH, N, Dens, P, Ca, Mg, K, Na, Conduc) ~ Block + Contour * Depth, data = Soils ) check_sphericity(Manova(soils.mod)) } check_symmetry Check distribution symmetry Description Uses Hotelling and Solomons test of symmetry by testing if the standardized nonparametric skew ( (M ean−M SD edian) ) is different than 0. This is an underlying assumption of Wilcoxon signed-rank test. Usage check_symmetry(x, ...) Arguments x Model or numeric vector ... Not used. Examples V <- wilcox.test(mtcars$mpg) check_symmetry(V) check_zeroinflation Check for zero-inflation in count models Description check_zeroinflation() checks whether count models are over- or underfitting zeros in the out- come. Usage check_zeroinflation(x, tolerance = 0.05) Arguments x Fitted model of class merMod, glmmTMB, glm, or glm.nb (package MASS). tolerance The tolerance for the ratio of observed and predicted zeros to considered as over- or underfitting zeros. A ratio between 1 +/- tolerance is considered as OK, while a ratio beyond or below this threshold would indicate over- or underfitting. Details If the amount of observed zeros is larger than the amount of predicted zeros, the model is under- fitting zeros, which indicates a zero-inflation in the data. In such cases, it is recommended to use negative binomial or zero-inflated models. Value A list with information about the amount of predicted and observed zeros in the outcome, as well as the ratio between these two values. See Also Other functions to check model assumptions and and assess model quality: check_autocorrelation(), check_collinearity(), check_convergence(), check_heteroscedasticity(), check_homogeneity(), check_model(), check_outliers(), check_overdispersion(), check_predictions(), check_singularity() Examples if (require("glmmTMB")) { data(Salamanders) m <- glm(count ~ spp + mined, family = poisson, data = Salamanders) check_zeroinflation(m) } classify_distribution Classify the distribution of a model-family using machine learning Description Classify the distribution of a model-family using machine learning Details The trained model to classify distributions, which is used by the check_distribution() function. compare_performance Compare performance of different models Description compare_performance() computes indices of model performance for different models at once and hence allows comparison of indices across models. Usage compare_performance( ..., metrics = "all", rank = FALSE, estimator = "ML", verbose = TRUE ) Arguments ... Multiple model objects (also of different classes). metrics Can be "all", "common" or a character vector of metrics to be computed. See related documentation() of object’s class for details. rank Logical, if TRUE, models are ranked according to ’best’ overall model perfor- mance. See ’Details’. estimator Only for linear models. Corresponds to the different estimators for the standard deviation of the errors. If estimator = "ML" (default), the scaling is done by n (the biased ML estimator), which is then equivalent to using AIC(logLik()). Setting it to "REML" will give the same results as AIC(logLik(..., REML = TRUE)). verbose Toggle warnings. Details Model Weights: When information criteria (IC) are requested in metrics (i.e., any of "all", "common", "AIC", "AICc", "BIC", "WAIC", or "LOOIC"), model weights based on these criteria are also computed. For all IC except LOOIC, weights are computed as w = exp(-0.5 * delta_ic) / sum(exp(-0.5 * delta_ic)), where delta_ic is the difference between the model’s IC value and the smallest IC value in the model set (Burnham and Anderson, 2002). For LOOIC, weights are computed as "stacking weights" using loo::stacking_weights(). Ranking Models: When rank = TRUE, a new column Performance_Score is returned. This score ranges from 0\ performance. Note that all score value do not necessarily sum up to 100\ Rather, calculation is based on normalizing all indices (i.e. rescaling them to a range from 0 to 1), and taking the mean value of all indices for each model. This is a rather quick heuristic, but might be helpful as exploratory index. In particular when models are of different types (e.g. mixed models, classical linear models, logistic regression, ...), not all indices will be computed for each model. In case where an index can’t be calculated for a specific model type, this model gets an NA value. All indices that have any NAs are excluded from calculating the performance score. There is a plot()-method for compare_performance(), which creates a "spiderweb" plot, where the different indices are normalized and larger values indicate better model performance. Hence, points closer to the center indicate worse fit indices (see online-documentation for more details). REML versus ML estimator: By default, estimator = "ML", which means that values from information criteria (AIC, AICc, BIC) for specific model classes (like models from lme4) are based on the ML-estimator, while the default behaviour of AIC() for such classes is setting REML = TRUE. This default is intentional, because comparing information criteria based on REML fits is usually not valid (it might be useful, though, if all models share the same fixed effects - however, this is usually not the case for nested models, which is a prerequisite for the LRT). Set estimator = "REML" explicitly return the same (AIC/...) values as from the defaults in AIC.merMod(). Value A data frame with one row per model and one column per "index" (see metrics). Note There is also a plot()-method implemented in the see-package. References <NAME>., and <NAME>. (2002). Model selection and multimodel inference: A practical information-theoretic approach (2nd ed.). Springer-Verlag. doi:10.1007/b97636 Examples data(iris) lm1 <- lm(Sepal.Length ~ Species, data = iris) lm2 <- lm(Sepal.Length ~ Species + Petal.Length, data = iris) lm3 <- lm(Sepal.Length ~ Species * Petal.Length, data = iris) compare_performance(lm1, lm2, lm3) compare_performance(lm1, lm2, lm3, rank = TRUE) if (require("lme4")) { m1 <- lm(mpg ~ wt + cyl, data = mtcars) m2 <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") m3 <- lmer(Petal.Length ~ Sepal.Length + (1 | Species), data = iris) compare_performance(m1, m2, m3) } cronbachs_alpha Cronbach’s Alpha for Items or Scales Description Compute various measures of internal consistencies for tests or item-scales of questionnaires. Usage cronbachs_alpha(x, ...) Arguments x A matrix or a data frame. ... Currently not used. Details The Cronbach’s Alpha value for x. A value closer to 1 indicates greater internal consistency, where usually following rule of thumb is applied to interpret the results: α < 0.5 is unacceptable, 0.5 < α < 0.6 is poor, 0.6 < α < 0.7 is questionable, 0.7 < α < 0.8 is acceptable, and everything > 0.8 is good or excellent. Value The Cronbach’s Alpha value for x. References <NAME>., and <NAME>. Statistics notes: Cronbach’s alpha. BMJ 1997;314:572. 10.1136/bmj.314.7080.572 Examples data(mtcars) x <- mtcars[, c("cyl", "gear", "carb", "hp")] cronbachs_alpha(x) display.performance_model Print tables in different output formats Description Prints tables (i.e. data frame) in different output formats. print_md() is a alias for display(format = "markdown"). Usage ## S3 method for class 'performance_model' display(object, format = "markdown", digits = 2, caption = NULL, ...) ## S3 method for class 'performance_model' print_md( x, digits = 2, caption = "Indices of model performance", layout = "horizontal", ... ) ## S3 method for class 'compare_performance' print_md( x, digits = 2, caption = "Comparison of Model Performance Indices", layout = "horizontal", ... ) Arguments object, x An object returned by model_performance() or or compare_performance(). or its summary. format String, indicating the output format. Currently, only "markdown" is supported. digits Number of decimal places. caption Table caption as string. If NULL, no table caption is printed. ... Currently not used. layout Table layout (can be either "horizontal" or "vertical"). Details display() is useful when the table-output from functions, which is usually printed as formatted text-table to console, should be formatted for pretty table-rendering in markdown documents, or if knitted from rmarkdown to PDF or Word files. See vignette for examples. Value A character vector. If format = "markdown", the return value will be a character vector in markdown- table format. Examples model <- lm(mpg ~ wt + cyl, data = mtcars) mp <- model_performance(model) display(mp) icc Intraclass Correlation Coefficient (ICC) Description This function calculates the intraclass-correlation coefficient (ICC) - sometimes also called variance partition coefficient (VPC) or repeatability - for mixed effects models. The ICC can be calculated for all models supported by insight::get_variance(). For models fitted with the brms-package, icc() might fail due to the large variety of models and families supported by the brms-package. In such cases, an alternative to the ICC is the variance_decomposition(), which is based on the posterior predictive distribution (see ’Details’). Usage icc( model, by_group = FALSE, tolerance = 1e-05, ci = NULL, iterations = 100, ci_method = NULL, verbose = TRUE, ... ) variance_decomposition(model, re_formula = NULL, robust = TRUE, ci = 0.95, ...) Arguments model A (Bayesian) mixed effects model. by_group Logical, if TRUE, icc() returns the variance components for each random-effects level (if there are multiple levels). See ’Details’. tolerance Tolerance for singularity check of random effects, to decide whether to compute random effect variances or not. Indicates up to which value the convergence result is accepted. The larger tolerance is, the stricter the test will be. See performance::check_singularity(). ci Confidence resp. credible interval level. For icc() and r2(), confidence in- tervals are based on bootstrapped samples from the ICC resp. R2 value. See iterations. iterations Number of bootstrap-replicates when computing confidence intervals for the ICC or R2. ci_method Character string, indicating the bootstrap-method. Should be NULL (default), in which case lme4::bootMer() is used for bootstrapped confidence intervals. However, if bootstrapped intervals cannot be calculated this was, try ci_method = "boot", which falls back to boot::boot(). This may successfully return bootstrapped confidence intervals, but bootstrapped samples may not be ap- propriate for the multilevel structure of the model. There is also an option ci_method = "analytical", which tries to calculate analytical confidence as- suming a chi-squared distribution. However, these intervals are rather inaccurate and often too narrow. It is recommended to calculate bootstrapped confidence intervals for mixed models. verbose Toggle warnings and messages. ... Arguments passed down to brms::posterior_predict(). re_formula Formula containing group-level effects to be considered in the prediction. If NULL (default), include all group-level effects. Else, for instance for nested mod- els, name a specific group-level effect to calculate the variance decomposition for this group-level. See ’Details’ and ?brms::posterior_predict. robust Logical, if TRUE, the median instead of mean is used to calculate the central tendency of the variances. Details Interpretation: The ICC can be interpreted as "the proportion of the variance explained by the grouping structure in the population". The grouping structure entails that measurements are organized into groups (e.g., test scores in a school can be grouped by classroom if there are multiple classrooms and each classroom was administered the same test) and ICC indexes how strongly measurements in the same group resemble each other. This index goes from 0, if the grouping conveys no information, to 1, if all observations in a group are identical (<NAME>, 2007, p. 258). In other word, the ICC - sometimes conceptualized as the measurement repeatability - "can also be interpreted as the expected correlation between two randomly drawn units that are in the same group" (Hox 2010: 15), although this definition might not apply to mixed models with more complex random effects structures. The ICC can help determine whether a mixed model is even necessary: an ICC of zero (or very close to zero) means the observations within clusters are no more similar than observations from different clusters, and setting it as a random factor might not be necessary. Difference with R2: The coefficient of determination R2 (that can be computed with r2()) quantifies the proportion of variance explained by a statistical model, but its definition in mixed model is complex (hence, different methods to compute a proxy exist). ICC is related to R2 because they are both ratios of variance components. More precisely, R2 is the proportion of the explained variance (of the full model), while the ICC is the proportion of explained variance that can be attributed to the random effects. In simple cases, the ICC corresponds to the difference between the conditional R2 and the marginal R2 (see r2_nakagawa()). Calculation: The ICC is calculated by dividing the random effect variance, σi2 , by the total variance, i.e. the sum of the random effect variance and the residual variance, σ2 . Adjusted and unadjusted ICC: icc() calculates an adjusted and an unadjusted ICC, which both take all sources of uncertainty (i.e. of all random effects) into account. While the adjusted ICC only relates to the random effects, the unadjusted ICC also takes the fixed effects variances into account, more precisely, the fixed effects variance is added to the denominator of the formula to calculate the ICC (see Nakagawa et al. 2017). Typically, the adjusted ICC is of interest when the analysis of random effects is of interest. icc() returns a meaningful ICC also for more complex random effects structures, like models with random slopes or nested design (more than two levels) and is applicable for models with other distributions than Gaussian. For more details on the computation of the variances, see ?insight::get_variance. ICC for unconditional and conditional models: Usually, the ICC is calculated for the null model ("unconditional model"). However, according to Raudenbush and Bryk (2002) or Rabe-Hesketh and Skrondal (2012) it is also feasible to compute the ICC for full models with covariates ("conditional models") and compare how much, e.g., a level-2 variable explains the portion of variation in the grouping structure (random intercept). ICC for specific group-levels: The proportion of variance for specific levels related to the overall model can be computed by setting by_group = TRUE. The reported ICC is the variance for each (random effect) group com- pared to the total variance of the model. For mixed models with a simple random intercept, this is identical to the classical (adjusted) ICC. Variance decomposition for brms-models: If model is of class brmsfit, icc() might fail due to the large variety of models and families supported by the brms package. In such cases, variance_decomposition() is an alternative ICC measure. The function calculates a variance decomposition based on the posterior predictive distribution. In this case, first, the draws from the posterior predictive distribution not conditioned on group-level terms (posterior_predict(..., re_formula = NA)) are calculated as well as draws from this distribution conditioned on all random effects (by default, unless specified else in re_formula) are taken. Then, second, the variances for each of these draws are calculated. The "ICC" is then the ratio between these two variances. This is the recommended way to analyse random-effect-variances for non-Gaussian models. It is then possible to compare variances across models, also by specifying different group-level terms via the re_formula-argument. Sometimes, when the variance of the posterior predictive distribution is very large, the variance ratio in the output makes no sense, e.g. because it is negative. In such cases, it might help to use robust = TRUE. Value A list with two values, the adjusted ICC and the unadjusted ICC. For variance_decomposition(), a list with two values, the decomposed ICC as well as the credible intervals for this ICC. References • <NAME>. (2010). Multilevel analysis: techniques and applications (2nd ed). New York: Routledge. • <NAME>., <NAME>., and <NAME>. (2017). The coefficient of determina- tion R2 and intra-class correlation coefficient from generalized linear mixed-effects models revisited and expanded. Journal of The Royal Society Interface, 14(134), 20170213. • <NAME>., and <NAME>. (2012). Multilevel and longitudinal modeling using Stata (3rd ed). College Station, Tex: Stata Press Publication. • <NAME>., and <NAME>. (2002). Hierarchical linear models: applications and data analysis methods (2nd ed). Thousand Oaks: Sage Publications. Examples if (require("lme4")) { model <- lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris) icc(model) } # ICC for specific group-levels if (require("lme4")) { data(sleepstudy) set.seed(12345) sleepstudy$grp <- sample(1:5, size = 180, replace = TRUE) sleepstudy$subgrp <- NA for (i in 1:5) { filter_group <- sleepstudy$grp == i sleepstudy$subgrp[filter_group] <- sample(1:30, size = sum(filter_group), replace = TRUE) } model <- lmer( Reaction ~ Days + (1 | grp / subgrp) + (1 | Subject), data = sleepstudy ) icc(model, by_group = TRUE) } item_difficulty Difficulty of Questionnaire Items Description Compute various measures of internal consistencies for tests or item-scales of questionnaires. Usage item_difficulty(x, maximum_value = NULL) Arguments x Depending on the function, x may be a matrix as returned by the cor()-function, or a data frame with items (e.g. from a test or questionnaire). maximum_value Numeric value, indicating the maximum value of an item. If NULL (default), the maximum is taken from the maximum value of all columns in x (assuming that the maximum value at least appears once in the data). If NA, each item’s maximum value is taken as maximum. If the required maximum value is not present in the data, specify the theoreritcal maximum using maximum_value. Details Item difficutly of an item is defined as the quotient of the sum actually achieved for this item of all and the maximum achievable score. This function calculates the item difficulty, which should range between 0.2 and 0.8. Lower values are a signal for more difficult items, while higher values close to one are a sign for easier items. The ideal value for item difficulty is p + (1 - p) / 2, where p = 1 / max(x). In most cases, the ideal item difficulty lies between 0.5 and 0.8. Value A data frame with three columns: The name(s) of the item(s), the item difficulties for each item, and the ideal item difficulty. References • <NAME>., and <NAME>. (2006). Quantitative Methoden der Datenerhebung. In <NAME> and N. Döring, Forschungsmethoden und Evaluation. Springer: Berlin, Heidelberg: 137–293 • <NAME>, <NAME> (2020). Deskriptivstatistische Itemanalyse und Testwertbestim- mung. In: <NAME>, <NAME>, editors. Testtheorie und Fragebogenkonstruktion. Berlin, Heidelberg: Springer, 143–158 Examples data(mtcars) x <- mtcars[, c("cyl", "gear", "carb", "hp")] item_difficulty(x) item_discrimination Discrimination of Questionnaire Items Description Compute various measures of internal consistencies for tests or item-scales of questionnaires. Usage item_discrimination(x, standardize = FALSE) Arguments x A matrix or a data frame. standardize Logical, if TRUE, the data frame’s vectors will be standardized. Recommended when the variables have different measures / scales. Details This function calculates the item discriminations (corrected item-total correlations for each item of x with the remaining items) for each item of a scale. The absolute value of the item discrimination indices should be above 0.2. An index between 0.2 and 0.4 is considered as "fair", while a satis- factory index ranges from 0.4 to 0.7. Items with low discrimination indices are often ambiguously worded and should be examined. Items with negative indices should be examined to determine why a negative value was obtained (e.g. reversed answer categories regarding positive and negative poles). Value A data frame with the item discrimination (corrected item-total correlations) for each item of the scale. References • <NAME>, <NAME> (2020). Deskriptivstatistische Itemanalyse und Testwertbestim- mung. In: <NAME>, <NAME>, editors. Testtheorie und Fragebogenkonstruktion. Berlin, Heidelberg: Springer, 143–158 Examples data(mtcars) x <- mtcars[, c("cyl", "gear", "carb", "hp")] item_discrimination(x) item_intercor Mean Inter-Item-Correlation Description Compute various measures of internal consistencies for tests or item-scales of questionnaires. Usage item_intercor(x, method = c("pearson", "spearman", "kendall")) Arguments x A matrix as returned by the cor()-function, or a data frame with items (e.g. from a test or questionnaire). method Correlation computation method. May be one of "pearson" (default), "spearman" or "kendall". You may use initial letter only. Details This function calculates a mean inter-item-correlation, i.e. a correlation matrix of x will be com- puted (unless x is already a matrix as returned by the cor() function) and the mean of the sum of all items’ correlation values is returned. Requires either a data frame or a computed cor() object. "Ideally, the average inter-item correlation for a set of items should be between 0.20 and 0.40, suggesting that while the items are reasonably homogeneous, they do contain sufficiently unique variance so as to not be isomorphic with each other. When values are lower than 0.20, then the items may not be representative of the same content domain. If values are higher than 0.40, the items may be only capturing a small bandwidth of the construct." (Piedmont 2014) Value The mean inter-item-correlation value for x. References Piedmont RL. 2014. Inter-item Correlations. In: Michalos AC (eds) Encyclopedia of Quality of Life and Well-Being Research. Dordrecht: Springer, 3303-3304. doi:10.1007/9789400707535_1493 Examples data(mtcars) x <- mtcars[, c("cyl", "gear", "carb", "hp")] item_intercor(x) item_reliability Reliability Test for Items or Scales Description Compute various measures of internal consistencies for tests or item-scales of questionnaires. Usage item_reliability(x, standardize = FALSE, digits = 3) Arguments x A matrix or a data frame. standardize Logical, if TRUE, the data frame’s vectors will be standardized. Recommended when the variables have different measures / scales. digits Amount of digits for returned values. Details This function calculates the item discriminations (corrected item-total correlations for each item of x with the remaining items) and the Cronbach’s alpha for each item, if it was deleted from the scale. The absolute value of the item discrimination indices should be above 0.2. An index between 0.2 and 0.4 is considered as "fair", while an index above 0.4 (or below -0.4) is "good". The range of satisfactory values is from 0.4 to 0.7. Items with low discrimination indices are often ambiguously worded and should be examined. Items with negative indices should be examined to determine why a negative value was obtained (e.g. reversed answer categories regarding positive and negative poles). Value A data frame with the corrected item-total correlations (item discrimination, column item_discrimination) and Cronbach’s Alpha (if item deleted, column alpha_if_deleted) for each item of the scale, or NULL if data frame had too less columns. Examples data(mtcars) x <- mtcars[, c("cyl", "gear", "carb", "hp")] item_reliability(x) item_split_half Split-Half Reliability Description Compute various measures of internal consistencies for tests or item-scales of questionnaires. Usage item_split_half(x, digits = 3) Arguments x A matrix or a data frame. digits Amount of digits for returned values. Details This function calculates the split-half reliability for items in x, including the Spearman-Brown ad- justment. Splitting is done by selecting odd versus even columns in x. A value closer to 1 indicates greater internal consistency. Value A list with two elements: the split-half reliability splithalf and the Spearman-Brown corrected split-half reliability spearmanbrown. References • <NAME>. 1910. Correlation calculated from faulty data. British Journal of Psychology (3): 271-295. doi:10.1111/j.20448295.1910.tb00206.x • <NAME>. 1910. Some experimental results in the correlation of mental abilities. British Journal of Psychology (3): 296-322. doi:10.1111/j.20448295.1910.tb00207.x Examples data(mtcars) x <- mtcars[, c("cyl", "gear", "carb", "hp")] item_split_half(x) looic LOO-related Indices for Bayesian regressions. Description Compute LOOIC (leave-one-out cross-validation (LOO) information criterion) and ELPD (ex- pected log predictive density) for Bayesian regressions. For LOOIC and ELPD, smaller and larger values are respectively indicative of a better fit. Usage looic(model, verbose = TRUE) Arguments model A Bayesian regression model. verbose Toggle off warnings. Value A list with four elements, the ELPD, LOOIC and their standard errors. Examples if (require("rstanarm")) { model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0) looic(model) } model_performance Model Performance Description See the documentation for your object’s class: • Frequentist Regressions • Instrumental Variables Regressions • Mixed models • Bayesian models • CFA / SEM lavaan models • Meta-analysis models Usage model_performance(model, ...) performance(model, ...) Arguments model Statistical model. ... Arguments passed to or from other methods, resp. for compare_performance(), one or multiple model objects (also of different classes). Details model_performance() correctly detects transformed response and returns the "corrected" AIC and BIC value on the original scale. To get back to the original scale, the likelihood of the model is multiplied by the Jacobian/derivative of the transformation. Value A data frame (with one row) and one column per "index" (see metrics). See Also compare_performance() to compare performance of many different models. Examples model <- lm(mpg ~ wt + cyl, data = mtcars) model_performance(model) model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") model_performance(model) model_performance.ivreg Performance of instrumental variable regression models Description Performance of instrumental variable regression models Usage ## S3 method for class 'ivreg' model_performance(model, metrics = "all", verbose = TRUE, ...) Arguments model A model. metrics Can be "all", "common" or a character vector of metrics to be computed (some of c("AIC", "AICc", "BIC", "R2", "RMSE", "SIGMA", "Sargan", "Wu_Hausman", "weak_instruments")). "common" will compute AIC, BIC, R2 and RMSE. verbose Toggle off warnings. ... Arguments passed to or from other methods. Details model_performance() correctly detects transformed response and returns the "corrected" AIC and BIC value on the original scale. To get back to the original scale, the likelihood of the model is multiplied by the Jacobian/derivative of the transformation. model_performance.kmeans Model summary for k-means clustering Description Model summary for k-means clustering Usage ## S3 method for class 'kmeans' model_performance(model, verbose = TRUE, ...) Arguments model Object of type kmeans. verbose Toggle off warnings. ... Arguments passed to or from other methods. Examples # a 2-dimensional example x <- rbind( matrix(rnorm(100, sd = 0.3), ncol = 2), matrix(rnorm(100, mean = 1, sd = 0.3), ncol = 2) ) colnames(x) <- c("x", "y") model <- kmeans(x, 2) model_performance(model) model_performance.lavaan Performance of lavaan SEM / CFA Models Description Compute indices of model performance for SEM or CFA models from the lavaan package. Usage ## S3 method for class 'lavaan' model_performance(model, metrics = "all", verbose = TRUE, ...) Arguments model A lavaan model. metrics Can be "all" or a character vector of metrics to be computed (some of c("Chi2", "Chi2_df", "p_Chi2", "Baseline", "Baseline_df", "p_Baseline", "GFI", "AGFI", "NFI", "NNFI", "CFI", "RMSEA", "RMSEA_CI_low", "RMSEA_CI_high", "p_RMSEA", "RMR", "SRMR", "RFI", "PNFI", "IFI", "RNI", "Loglikelihood", "AIC", "BIC", "BIC_adjusted")). verbose Toggle off warnings. ... Arguments passed to or from other methods. Details Indices of fit: • Chisq: The model Chi-squared assesses overall fit and the discrepancy between the sample and fitted covariance matrices. Its p-value should be > .05 (i.e., the hypothesis of a perfect fit cannot be rejected). However, it is quite sensitive to sample size. • GFI/AGFI: The (Adjusted) Goodness of Fit is the proportion of variance accounted for by the estimated population covariance. Analogous to R2. The GFI and the AGFI should be > .95 and > .90, respectively. • NFI/NNFI/TLI: The (Non) Normed Fit Index. An NFI of 0.95, indicates the model of inter- est improves the fit by 95\ null model. The NNFI (also called the Tucker Lewis index; TLI) is preferable for smaller samples. They should be > .90 (Byrne, 1994) or > .95 (Schumacker and Lomax, 2004). • CFI: The Comparative Fit Index is a revised form of NFI. Not very sensitive to sample size (Fan, Thompson, and Wang, 1999). Compares the fit of a target model to the fit of an independent, or null, model. It should be > .90. • RMSEA: The Root Mean Square Error of Approximation is a parsimony-adjusted index. Values closer to 0 represent a good fit. It should be < .08 or < .05. The p-value printed with it tests the hypothesis that RMSEA is less than or equal to .05 (a cutoff sometimes used for good fit), and thus should be not significant. • RMR/SRMR: the (Standardized) Root Mean Square Residual represents the square-root of the difference between the residuals of the sample covariance matrix and the hypothesized model. As the RMR can be sometimes hard to interpret, better to use SRMR. Should be < .08. • RFI: the Relative Fit Index, also known as RHO1, is not guaranteed to vary from 0 to 1. However, RFI close to 1 indicates a good fit. • IFI: the Incremental Fit Index (IFI) adjusts the Normed Fit Index (NFI) for sample size and degrees of freedom (Bollen’s, 1989). Over 0.90 is a good fit, but the index can exceed 1. • PNFI: the Parsimony-Adjusted Measures Index. There is no commonly agreed-upon cutoff value for an acceptable model for this index. Should be > 0.50. See the documentation for ?lavaan::fitmeasures. What to report: Kline (2015) suggests that at a minimum the following indices should be reported: The model chi-square, the RMSEA, the CFI and the SRMR. Value A data frame (with one row) and one column per "index" (see metrics). References • <NAME>. (1994). Structural equation modeling with EQS and EQS/Windows. Thousand Oaks, CA: Sage Publications. • <NAME>., and <NAME>. (1973). The reliability coefficient for maximum likelihood factor analysis. Psychometrika, 38, 1-10. • <NAME>., and <NAME>. (2004). A beginner’s guide to structural equation mod- eling, Second edition. Mahwah, NJ: Lawrence Erlbaum Associates. • <NAME>., <NAME>, and <NAME> (1999). Effects of sample size, estimation method, and model specification on structural equation modeling fit indexes. Structural Equation Model- ing, 6, 56-83. • <NAME>. (2015). Principles and practice of structural equation modeling. Guilford publi- cations. Examples # Confirmatory Factor Analysis (CFA) --------- if (require("lavaan")) { structure <- " visual =~ x1 + x2 + x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9 " model <- lavaan::cfa(structure, data = HolzingerSwineford1939) model_performance(model) } model_performance.lm Performance of Regression Models Description Compute indices of model performance for regression models. Usage ## S3 method for class 'lm' model_performance(model, metrics = "all", verbose = TRUE, ...) Arguments model A model. metrics Can be "all", "common" or a character vector of metrics to be computed (one or more of "AIC", "AICc", "BIC", "R2", "R2_adj", "RMSE", "SIGMA", "LOGLOSS", "PCP", "SCORE"). "common" will compute AIC, BIC, R2 and RMSE. verbose Toggle off warnings. ... Arguments passed to or from other methods. Details Depending on model, following indices are computed: • AIC: Akaike’s Information Criterion, see ?stats::AIC • AICc: Second-order (or small sample) AIC with a correction for small sample sizes • BIC: Bayesian Information Criterion, see ?stats::BIC • R2: r-squared value, see r2() • R2_adj: adjusted r-squared, see r2() • RMSE: root mean squared error, see performance_rmse() • SIGMA: residual standard deviation, see insight::get_sigma() • LOGLOSS: Log-loss, see performance_logloss() • SCORE_LOG: score of logarithmic proper scoring rule, see performance_score() • SCORE_SPHERICAL: score of spherical proper scoring rule, see performance_score() • PCP: percentage of correct predictions, see performance_pcp() model_performance() correctly detects transformed response and returns the "corrected" AIC and BIC value on the original scale. To get back to the original scale, the likelihood of the model is multiplied by the Jacobian/derivative of the transformation. Value A data frame (with one row) and one column per "index" (see metrics). Examples model <- lm(mpg ~ wt + cyl, data = mtcars) model_performance(model) model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") model_performance(model) model_performance.merMod Performance of Mixed Models Description Compute indices of model performance for mixed models. Usage ## S3 method for class 'merMod' model_performance( model, metrics = "all", estimator = "REML", verbose = TRUE, ... ) Arguments model A mixed effects model. metrics Can be "all", "common" or a character vector of metrics to be computed (some of c("AIC", "AICc", "BIC", "R2", "ICC", "RMSE", "SIGMA", "LOGLOSS", "SCORE")). "common" will compute AIC, BIC, R2, ICC and RMSE. estimator Only for linear models. Corresponds to the different estimators for the standard deviation of the errors. If estimator = "ML" (default), the scaling is done by n (the biased ML estimator), which is then equivalent to using AIC(logLik()). Setting it to "REML" will give the same results as AIC(logLik(..., REML = TRUE)). verbose Toggle warnings and messages. ... Arguments passed to or from other methods. Details Intraclass Correlation Coefficient (ICC): This method returns the adjusted ICC only, as this is typically of interest when judging the variance attributed to the random effects part of the model (see also icc()). REML versus ML estimator: The default behaviour of model_performance() when com- puting AIC or BIC of linear mixed model from package lme4 is the same as for AIC() or BIC() (i.e. estimator = "REML"). However, for model comparison using compare_performance() sets estimator = "ML" by default, because comparing information criteria based on REML fits is usu- ally not valid (unless all models have the same fixed effects). Thus, make sure to set the correct estimator-value when looking at fit-indices or comparing model fits. Other performance indices: Furthermore, see ’Details’ in model_performance.lm() for more details on returned indices. Value A data frame (with one row) and one column per "index" (see metrics). Examples if (require("lme4")) { model <- lmer(Petal.Length ~ Sepal.Length + (1 | Species), data = iris) model_performance(model) } model_performance.rma Performance of Meta-Analysis Models Description Compute indices of model performance for meta-analysis model from the metafor package. Usage ## S3 method for class 'rma' model_performance( model, metrics = "all", estimator = "ML", verbose = TRUE, ... ) Arguments model A rma object as returned by metafor::rma(). metrics Can be "all" or a character vector of metrics to be computed (some of c("AIC", "BIC", "I2", "H2", "TAU2", "R2", "CochransQ", "QE", "Omnibus", "QM")). estimator Only for linear models. Corresponds to the different estimators for the standard deviation of the errors. If estimator = "ML" (default), the scaling is done by n (the biased ML estimator), which is then equivalent to using AIC(logLik()). Setting it to "REML" will give the same results as AIC(logLik(..., REML = TRUE)). verbose Toggle off warnings. ... Arguments passed to or from other methods. Details Indices of fit: • AIC Akaike’s Information Criterion, see ?stats::AIC • BIC Bayesian Information Criterion, see ?stats::BIC • I2: For a random effects model, I2 estimates (in percent) how much of the total variability in the effect size estimates can be attributed to heterogeneity among the true effects. For a mixed-effects model, I2 estimates how much of the unaccounted variability can be attributed to residual heterogeneity. • H2: For a random-effects model, H2 estimates the ratio of the total amount of variability in the effect size estimates to the amount of sampling variability. For a mixed-effects model, H2 estimates the ratio of the unaccounted variability in the effect size estimates to the amount of sampling variability. • TAU2: The amount of (residual) heterogeneity in the random or mixed effects model. • CochransQ (QE): Test for (residual) Heterogeneity. Without moderators in the model, this is simply Cochran’s Q-test. • Omnibus (QM): Omnibus test of parameters. • R2: Pseudo-R2-statistic, which indicates the amount of heterogeneity accounted for by the moderators included in a fixed-effects model. See the documentation for ?metafor::fitstats. Value A data frame (with one row) and one column per "index" (see metrics). Examples if (require("metafor")) { data(dat.bcg) dat <- escalc(measure = "RR", ai = tpos, bi = tneg, ci = cpos, di = cneg, data = dat.bcg) model <- rma(yi, vi, data = dat, method = "REML") model_performance(model) } model_performance.stanreg Performance of Bayesian Models Description Compute indices of model performance for (general) linear models. Usage ## S3 method for class 'stanreg' model_performance(model, metrics = "all", verbose = TRUE, ...) ## S3 method for class 'BFBayesFactor' model_performance( model, metrics = "all", verbose = TRUE, average = FALSE, prior_odds = NULL, ... ) Arguments model Object of class stanreg or brmsfit. metrics Can be "all", "common" or a character vector of metrics to be computed (some of c("LOOIC", "WAIC", "R2", "R2_adj", "RMSE", "SIGMA", "LOGLOSS", "SCORE")). "common" will compute LOOIC, WAIC, R2 and RMSE. verbose Toggle off warnings. ... Arguments passed to or from other methods. average Compute model-averaged index? See bayestestR::weighted_posteriors(). prior_odds Optional vector of prior odds for the models compared to the first model (or the denominator, for BFBayesFactor objects). For data.frames, this will be used as the basis of weighting. Details Depending on model, the following indices are computed: • ELPD: expected log predictive density. Larger ELPD values mean better fit. See looic(). • LOOIC: leave-one-out cross-validation (LOO) information criterion. Lower LOOIC values mean better fit. See looic(). • WAIC: widely applicable information criterion. Lower WAIC values mean better fit. See ?loo::waic. • R2: r-squared value, see r2_bayes(). • R2_adjusted: LOO-adjusted r-squared, see r2_loo(). • RMSE: root mean squared error, see performance_rmse(). • SIGMA: residual standard deviation, see insight::get_sigma(). • LOGLOSS: Log-loss, see performance_logloss(). • SCORE_LOG: score of logarithmic proper scoring rule, see performance_score(). • SCORE_SPHERICAL: score of spherical proper scoring rule, see performance_score(). • PCP: percentage of correct predictions, see performance_pcp(). Value A data frame (with one row) and one column per "index" (see metrics). References <NAME>., <NAME>., <NAME>., and <NAME>. (2018). R-squared for Bayesian regression models. The American Statistician, The American Statistician, 1-6. See Also r2_bayes Examples ## Not run: if (require("rstanarm") && require("rstantools")) { model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0) model_performance(model) model <- stan_glmer( mpg ~ wt + cyl + (1 | gear), data = mtcars, chains = 1, iter = 500, refresh = 0 ) model_performance(model) } if (require("BayesFactor") && require("rstantools")) { model <- generalTestBF(carb ~ am + mpg, mtcars) model_performance(model) model_performance(model[3]) model_performance(model, average = TRUE) } ## End(Not run) performance_accuracy Accuracy of predictions from model fit Description This function calculates the predictive accuracy of linear or logistic regression models. Usage performance_accuracy( model, method = c("cv", "boot"), k = 5, n = 1000, ci = 0.95, verbose = TRUE ) Arguments model A linear or logistic regression model. A mixed-effects model is also accepted. method Character string, indicating whether cross-validation (method = "cv") or boot- strapping (method = "boot") is used to compute the accuracy values. k The number of folds for the k-fold cross-validation. n Number of bootstrap-samples. ci The level of the confidence interval. verbose Toggle warnings. Details For linear models, the accuracy is the correlation coefficient between the actual and the predicted value of the outcome. For logistic regression models, the accuracy corresponds to the AUC-value, calculated with the bayestestR::auc()-function. The accuracy is the mean value of multiple correlation resp. AUC-values, which are either com- puted with cross-validation or non-parametric bootstrapping (see argument method). The standard error is the standard deviation of the computed correlation resp. AUC-values. Value A list with three values: The Accuracy of the model predictions, i.e. the proportion of accurately predicted values from the model, its standard error, SE, and the Method used to compute the accu- racy. Examples model <- lm(mpg ~ wt + cyl, data = mtcars) performance_accuracy(model) model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") performance_accuracy(model) performance_aicc Compute the AIC or second-order AIC Description Compute the AIC or the second-order Akaike’s information criterion (AICc). performance_aic() is a small wrapper that returns the AIC, however, for models with a transformed response variable, performance_aic() returns the corrected AIC value (see ’Examples’). It is a generic function that also works for some models that don’t have a AIC method (like Tweedie models). performance_aicc() returns the second-order (or "small sample") AIC that incorporates a correction for small sample sizes. Usage performance_aicc(x, ...) performance_aic(x, ...) ## Default S3 method: performance_aic(x, estimator = "ML", verbose = TRUE, ...) Arguments x A model object. ... Currently not used. estimator Only for linear models. Corresponds to the different estimators for the standard deviation of the errors. If estimator = "ML" (default), the scaling is done by n (the biased ML estimator), which is then equivalent to using AIC(logLik()). Setting it to "REML" will give the same results as AIC(logLik(..., REML = TRUE)). verbose Toggle warnings. Details performance_aic() correctly detects transformed response and, unlike stats::AIC(), returns the "corrected" AIC value on the original scale. To get back to the original scale, the likelihood of the model is multiplied by the Jacobian/derivative of the transformation. Value Numeric, the AIC or AICc value. References • <NAME>. (1973) Information theory as an extension of the maximum likelihood principle. In: Second International Symposium on Information Theory, pp. 267-281. <NAME>., <NAME>., <NAME>. • <NAME>., <NAME>. (1991) Bias of the corrected AIC criterion for underfitted regres- sion and time series models. Biometrika 78, 499–509. Examples m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) AIC(m) performance_aicc(m) # correct AIC for models with transformed response variable data("mtcars") mtcars$mpg <- floor(mtcars$mpg) model <- lm(log(mpg) ~ factor(cyl), mtcars) # wrong AIC, not corrected for log-transformation AIC(model) # performance_aic() correctly detects transformed response and # returns corrected AIC performance_aic(model) performance_cv Cross-validated model performance Description This function cross-validates regression models in a user-supplied new sample or by using holdout (train-test), k-fold, or leave-one-out cross-validation. Usage performance_cv( model, data = NULL, method = c("holdout", "k_fold", "loo"), metrics = "all", prop = 0.3, k = 5, stack = TRUE, verbose = TRUE, ... ) Arguments model A regression model. data Optional. A data frame containing the same variables as model that will be used as the cross-validation sample. method Character string, indicating the cross-validation method to use: whether holdout ("holdout", aka train-test), k-fold ("k_fold"), or leave-one-out ("loo"). If data is supplied, this argument is ignored. metrics Can be "all", "common" or a character vector of metrics to be computed (some of c("ELPD", "Deviance", "MSE", "RMSE", "R2")). "common" will compute R2 and RMSE. prop If method = "holdout", what proportion of the sample to hold out as the test sample? k If method = "k_fold", the number of folds to use. stack Logical. If method = "k_fold", should performance be computed by stacking residuals from each holdout fold and calculating each metric on the stacked data (TRUE, default) or should performance be computed by calculating metrics within each holdout fold and averaging performance across each fold (FALSE)? verbose Toggle warnings. ... Not used. Value A data frame with columns for each metric requested, as well as k if method = "holdout" and the Method used for cross-validation. If method = "holdout" and stack = TRUE, the standard error (standard deviation across holdout folds) for each metric is also included. Examples model <- lm(mpg ~ wt + cyl, data = mtcars) performance_cv(model) performance_hosmer Hosmer-Lemeshow goodness-of-fit test Description Check model quality of logistic regression models. Usage performance_hosmer(model, n_bins = 10) Arguments model A glm-object with binomial-family. n_bins Numeric, the number of bins to divide the data. Details A well-fitting model shows no significant difference between the model and the observed data, i.e. the reported p-value should be greater than 0.05. Value An object of class hoslem_test with following values: chisq, the Hosmer-Lemeshow chi-squared statistic; df, degrees of freedom and p.value the p-value for the goodness-of-fit test. References <NAME>., and <NAME>. (2000). Applied Logistic Regression. Hoboken, NJ, USA: John Wiley and Sons, Inc. doi:10.1002/0471722146 Examples model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") performance_hosmer(model) performance_logloss Log Loss Description Compute the log loss for models with binary outcome. Usage performance_logloss(model, verbose = TRUE, ...) Arguments model Model with binary outcome. verbose Toggle off warnings. ... Currently not used. Details Logistic regression models predict the probability of an outcome of being a "success" or "failure" (or 1 and 0 etc.). performance_logloss() evaluates how good or bad the predicted probabilities are. High values indicate bad predictions, while low values indicate good predictions. The lower the log-loss, the better the model predicts the outcome. Value Numeric, the log loss of model. See Also performance_score() Examples data(mtcars) m <- glm(formula = vs ~ hp + wt, family = binomial, data = mtcars) performance_logloss(m) performance_mae Mean Absolute Error of Models Description Compute mean absolute error of models. Usage performance_mae(model, ...) mae(model, ...) Arguments model A model. ... Arguments passed to or from other methods. Value Numeric, the mean absolute error of model. Examples data(mtcars) m <- lm(mpg ~ hp + gear, data = mtcars) performance_mae(m) performance_mse Mean Square Error of Linear Models Description Compute mean square error of linear models. Usage performance_mse(model, ...) mse(model, ...) Arguments model A model. ... Arguments passed to or from other methods. Details The mean square error is the mean of the sum of squared residuals, i.e. it measures the average of the squares of the errors. Less technically speaking, the mean square error can be considered as the variance of the residuals, i.e. the variation in the outcome the model doesn’t explain. Lower values (closer to zero) indicate better fit. Value Numeric, the mean square error of model. Examples data(mtcars) m <- lm(mpg ~ hp + gear, data = mtcars) performance_mse(m) performance_pcp Percentage of Correct Predictions Description Percentage of correct predictions (PCP) for models with binary outcome. Usage performance_pcp(model, ci = 0.95, method = "Herron", verbose = TRUE) Arguments model Model with binary outcome. ci The level of the confidence interval. method Name of the method to calculate the PCP (see ’Details’). Default is "Herron". May be abbreviated. verbose Toggle off warnings. Details method = "Gelman-Hill" (or "gelman_hill") computes the PCP based on the proposal from Gel- man and Hill 2017, 99, which is defined as the proportion of cases for which the deterministic prediction is wrong, i.e. the proportion where the predicted probability is above 0.5, although y=0 (and vice versa) (see also Herron 1999, 90). method = "Herron" (or "herron") computes a modified version of the PCP (Herron 1999, 90-92), which is the sum of predicted probabilities, where y=1, plus the sum of 1 - predicted probabilities, where y=0, divided by the number of observations. This approach is said to be more accurate. The PCP ranges from 0 to 1, where values closer to 1 mean that the model predicts the outcome better than models with an PCP closer to 0. In general, the PCP should be above 0.5 (i.e. 50\ Furthermore, the PCP of the full model should be considerably above the null model’s PCP. The likelihood-ratio test indicates whether the model has a significantly better fit than the null-model (in such cases, p < 0.05). Value A list with several elements: the percentage of correct predictions of the full and the null model, their confidence intervals, as well as the chi-squared and p-value from the Likelihood-Ratio-Test between the full and null model. References • <NAME>. (1999). Postestimation Uncertainty in Limited Dependent Variable Models. Polit- ical Analysis, 8, 83–98. • <NAME>., and <NAME>. (2007). Data analysis using regression and multilevel/hierarchical models. Cambridge; New York: Cambridge University Press, 99. Examples data(mtcars) m <- glm(formula = vs ~ hp + wt, family = binomial, data = mtcars) performance_pcp(m) performance_pcp(m, method = "Gelman-Hill") performance_rmse Root Mean Squared Error Description Compute root mean squared error for (mixed effects) models, including Bayesian regression mod- els. Usage performance_rmse(model, normalized = FALSE, verbose = TRUE) rmse(model, normalized = FALSE, verbose = TRUE) Arguments model A model. normalized Logical, use TRUE if normalized rmse should be returned. verbose Toggle off warnings. Details The RMSE is the square root of the variance of the residuals and indicates the absolute fit of the model to the data (difference between observed data to model’s predicted values). It can be inter- preted as the standard deviation of the unexplained variance, and is in the same units as the response variable. Lower values indicate better model fit. The normalized RMSE is the proportion of the RMSE related to the range of the response variable. Hence, lower values indicate less residual variance. Value Numeric, the root mean squared error. Examples if (require("nlme")) { m <- lme(distance ~ age, data = Orthodont) # RMSE performance_rmse(m, normalized = FALSE) # normalized RMSE performance_rmse(m, normalized = TRUE) } performance_roc Simple ROC curve Description This function calculates a simple ROC curves of x/y coordinates based on response and predictions of a binomial model. Usage performance_roc(x, ..., predictions, new_data) Arguments x A numeric vector, representing the outcome (0/1), or a model with binomial outcome. ... One or more models with binomial outcome. In this case, new_data is ignored. predictions If x is numeric, a numeric vector of same length as x, representing the actual predicted values. new_data If x is a model, a data frame that is passed to predict() as newdata-argument. If NULL, the ROC for the full model is calculated. Value A data frame with three columns, the x/y-coordinate pairs for the ROC curve (Sensitivity and Specificity), and a column with the model name. Note There is also a plot()-method implemented in the see-package. Examples library(bayestestR) data(iris) set.seed(123) iris$y <- rbinom(nrow(iris), size = 1, .3) folds <- sample(nrow(iris), size = nrow(iris) / 8, replace = FALSE) test_data <- iris[folds, ] train_data <- iris[-folds, ] model <- glm(y ~ Sepal.Length + Sepal.Width, data = train_data, family = "binomial") as.data.frame(performance_roc(model, new_data = test_data)) roc <- performance_roc(model, new_data = test_data) area_under_curve(roc$Specificity, roc$Sensitivity) if (interactive()) { m1 <- glm(y ~ Sepal.Length + Sepal.Width, data = iris, family = "binomial") m2 <- glm(y ~ Sepal.Length + Petal.Width, data = iris, family = "binomial") m3 <- glm(y ~ Sepal.Length + Species, data = iris, family = "binomial") performance_roc(m1, m2, m3) # if you have `see` package installed, you can also plot comparison of # ROC curves for different models if (require("see")) plot(performance_roc(m1, m2, m3)) } performance_rse Residual Standard Error for Linear Models Description Compute residual standard error of linear models. Usage performance_rse(model) Arguments model A model. Details The residual standard error is the square root of the residual sum of squares divided by the residual degrees of freedom. Value Numeric, the residual standard error of model. Examples data(mtcars) m <- lm(mpg ~ hp + gear, data = mtcars) performance_rse(m) performance_score Proper Scoring Rules Description Calculates the logarithmic, quadratic/Brier and spherical score from a model with binary or count outcome. Usage performance_score(model, verbose = TRUE, ...) Arguments model Model with binary or count outcome. verbose Toggle off warnings. ... Arguments from other functions, usually only used internally. Details Proper scoring rules can be used to evaluate the quality of model predictions and model fit. performance_score() calculates the logarithmic, quadratic/Brier and spherical scoring rules. The spherical rule takes val- ues in the interval [0, 1], with values closer to 1 indicating a more accurate model, and the loga- rithmic rule in the interval [-Inf, 0], with values closer to 0 indicating a more accurate model. For stan_lmer() and stan_glmer() models, the predicted values are based on posterior_predict(), instead of predict(). Thus, results may differ more than expected from their non-Bayesian coun- terparts in lme4. Value A list with three elements, the logarithmic, quadratic/Brier and spherical score. Note Code is partially based on GLMMadaptive::scoring_rules(). References <NAME>. (2016). An overview of applications of proper scoring rules. Decision Analysis 13, 223–242. doi:10.1287/deca.2016.0337 See Also performance_logloss() Examples ## Dobson (1990) Page 93: Randomized Controlled Trial : counts <- c(18, 17, 15, 20, 10, 20, 25, 13, 12) outcome <- gl(3, 1, 9) treatment <- gl(3, 3) model <- glm(counts ~ outcome + treatment, family = poisson()) performance_score(model) ## Not run: if (require("glmmTMB")) { data(Salamanders) model <- glmmTMB( count ~ spp + mined + (1 | site), zi = ~ spp + mined, family = nbinom2(), data = Salamanders ) performance_score(model) } ## End(Not run) r2 Compute the model’s R2 Description Calculate the R2, also known as the coefficient of determination, value for different model objects. Depending on the model, R2, pseudo-R2, or marginal / adjusted R2 values are returned. Usage r2(model, ...) ## Default S3 method: r2(model, ci = NULL, verbose = TRUE, ...) ## S3 method for class 'merMod' r2(model, ci = NULL, tolerance = 1e-05, ...) Arguments model A statistical model. ... Arguments passed down to the related r2-methods. ci Confidence interval level, as scalar. If NULL (default), no confidence intervals for R2 are calculated. verbose Logical. Should details about R2 and CI methods be given (TRUE) or not (FALSE)? tolerance Tolerance for singularity check of random effects, to decide whether to com- pute random effect variances for the conditional r-squared or not. Indicates up to which value the convergence result is accepted. When r2_nakagawa() re- turns a warning, stating that random effect variances can’t be computed (and thus, the conditional r-squared is NA), decrease the tolerance-level. See also check_singularity(). Value Returns a list containing values related to the most appropriate R2 for the given model (or NULL if no R2 could be extracted). See the list below: • Logistic models: Tjur’s R2 • General linear models: Nagelkerke’s R2 • Multinomial Logit: McFadden’s R2 • Models with zero-inflation: R2 for zero-inflated models • Mixed models: Nakagawa’s R2 • Bayesian models: R2 bayes Note If there is no r2()-method defined for the given model class, r2() tries to return a "generic" r- quared value, calculated as following: 1-sum((y-y_hat)^2)/sum((y-y_bar)^2)) See Also r2_bayes(), r2_coxsnell(), r2_kullback(), r2_loo(), r2_mcfadden(), r2_nagelkerke(), r2_nakagawa(), r2_tjur(), r2_xu() and r2_zeroinflated(). Examples # Pseudo r-quared for GLM model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") r2(model) # r-squared including confidence intervals model <- lm(mpg ~ wt + hp, data = mtcars) r2(model, ci = 0.95) if (require("lme4")) { model <- lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris) r2(model) } r2_bayes Bayesian R2 Description Compute R2 for Bayesian models. For mixed models (including a random part), it additionally computes the R2 related to the fixed effects only (marginal R2). While r2_bayes() returns a single R2 value, r2_posterior() returns a posterior sample of Bayesian R2 values. Usage r2_bayes(model, robust = TRUE, ci = 0.95, verbose = TRUE, ...) r2_posterior(model, ...) ## S3 method for class 'brmsfit' r2_posterior(model, verbose = TRUE, ...) ## S3 method for class 'stanreg' r2_posterior(model, verbose = TRUE, ...) ## S3 method for class 'BFBayesFactor' r2_posterior(model, average = FALSE, prior_odds = NULL, verbose = TRUE, ...) Arguments model A Bayesian regression model (from brms, rstanarm, BayesFactor, etc). robust Logical, if TRUE, the median instead of mean is used to calculate the central tendency of the variances. ci Value or vector of probability of the CI (between 0 and 1) to be estimated. verbose Toggle off warnings. ... Arguments passed to r2_posterior(). average Compute model-averaged index? See bayestestR::weighted_posteriors(). prior_odds Optional vector of prior odds for the models compared to the first model (or the denominator, for BFBayesFactor objects). For data.frames, this will be used as the basis of weighting. Details r2_bayes() returns an "unadjusted" R2 value. See r2_loo() to calculate a LOO-adjusted R2, which comes conceptually closer to an adjusted R2 measure. For mixed models, the conditional and marginal R2 are returned. The marginal R2 considers only the variance of the fixed effects, while the conditional R2 takes both the fixed and random effects into account. r2_posterior() is the actual workhorse for r2_bayes() and returns a posterior sample of Bayesian R2 values. Value A list with the Bayesian R2 value. For mixed models, a list with the Bayesian R2 value and the marginal Bayesian R2 value. The standard errors and credible intervals for the R2 values are saved as attributes. References <NAME>., <NAME>., <NAME>., and <NAME>. (2018). R-squared for Bayesian regression models. The American Statistician, 1–6. doi:10.1080/00031305.2018.1549100 Examples library(performance) if (require("rstanarm") && require("rstantools")) { model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0) r2_bayes(model) model <- stan_lmer( Petal.Length ~ Petal.Width + (1 | Species), data = iris, chains = 1, iter = 500, refresh = 0 ) r2_bayes(model) } if (require("BayesFactor")) { BFM <- generalTestBF(mpg ~ qsec + gear, data = mtcars, progress = FALSE) FM <- lmBF(mpg ~ qsec + gear, data = mtcars) r2_bayes(FM) r2_bayes(BFM[3]) r2_bayes(BFM, average = TRUE) # across all models # with random effects: mtcars$gear <- factor(mtcars$gear) model <- lmBF( mpg ~ hp + cyl + gear + gear:wt, mtcars, progress = FALSE, whichRandom = c("gear", "gear:wt") ) r2_bayes(model) } ## Not run: if (require("brms")) { model <- brms::brm(mpg ~ wt + cyl, data = mtcars) r2_bayes(model) model <- brms::brm(Petal.Length ~ Petal.Width + (1 | Species), data = iris) r2_bayes(model) } ## End(Not run) r2_coxsnell Cox & Snell’s R2 Description Calculates the pseudo-R2 value based on the proposal from Cox & Snell (1989). Usage r2_coxsnell(model, ...) Arguments model Model with binary outcome. ... Currently not used. Details This index was proposed by Cox and Snell (1989, pp. 208-9) and, apparently independently, by Magee (1990); but had been suggested earlier for binary response models by Maddala (1983). However, this index achieves a maximum of less than 1 for discrete models (i.e. models whose likelihood is a product of probabilities) which have a maximum of 1, instead of densities, which can become infinite (Nagelkerke, 1991). Value A named vector with the R2 value. References • <NAME>., <NAME>. (1989). Analysis of binary data (Vol. 32). Monographs on Statistics and Applied Probability. • <NAME>. (1990). R 2 measures based on Wald and likelihood ratio joint significance tests. The American Statistician, 44(3), 250-253. • <NAME>. (1986). Limited-dependent and qualitative variables in econometrics (No. 3). Cambridge university press. • <NAME>. (1991). A note on a general definition of the coefficient of determination. Biometrika, 78(3), 691-692. Examples model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") r2_coxsnell(model) r2_efron Efron’s R2 Description Calculates Efron’s pseudo R2. Usage r2_efron(model) Arguments model Generalized linear model. Details Efron’s R2 is calculated by taking the sum of the squared model residuals, divided by the total variability in the dependent variable. This R2 equals the squared correlation between the predicted values and actual values, however, note that model residuals from generalized linear models are not generally comparable to those of OLS. Value The R2 value. References Efron, B. (1978). Regression and ANOVA with zero-one data: Measures of residual variation. Journal of the American Statistical Association, 73, 113-121. Examples ## Dobson (1990) Page 93: Randomized Controlled Trial: counts <- c(18, 17, 15, 20, 10, 20, 25, 13, 12) # outcome <- gl(3, 1, 9) treatment <- gl(3, 3) model <- glm(counts ~ outcome + treatment, family = poisson()) r2_efron(model) r2_kullback Kullback-Leibler R2 Description Calculates the Kullback-Leibler-divergence-based R2 for generalized linear models. Usage r2_kullback(model, adjust = TRUE) Arguments model A generalized linear model. adjust Logical, if TRUE (the default), the adjusted R2 value is returned. Value A named vector with the R2 value. References <NAME>. and <NAME>. (1997) An R-squared measure of goodness of fit for some common nonlinear regression models. Journal of Econometrics, 77: 329-342. Examples model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") r2_kullback(model) r2_loo LOO-adjusted R2 Description Compute LOO-adjusted R2. Usage r2_loo(model, robust = TRUE, ci = 0.95, verbose = TRUE, ...) r2_loo_posterior(model, ...) ## S3 method for class 'brmsfit' r2_loo_posterior(model, verbose = TRUE, ...) ## S3 method for class 'stanreg' r2_loo_posterior(model, verbose = TRUE, ...) Arguments model A Bayesian regression model (from brms, rstanarm, BayesFactor, etc). robust Logical, if TRUE, the median instead of mean is used to calculate the central tendency of the variances. ci Value or vector of probability of the CI (between 0 and 1) to be estimated. verbose Toggle off warnings. ... Arguments passed to r2_posterior(). Details r2_loo() returns an "adjusted" R2 value computed using a leave-one-out-adjusted posterior dis- tribution. This is conceptually similar to an adjusted/unbiased R2 estimate in classical regression modeling. See r2_bayes() for an "unadjusted" R2. Mixed models are not currently fully supported. r2_loo_posterior() is the actual workhorse for r2_loo() and returns a posterior sample of LOO- adjusted Bayesian R2 values. Value A list with the Bayesian R2 value. For mixed models, a list with the Bayesian R2 value and the marginal Bayesian R2 value. The standard errors and credible intervals for the R2 values are saved as attributes. A list with the LOO-adjusted R2 value. The standard errors and credible intervals for the R2 values are saved as attributes. Examples if (require("rstanarm")) { model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0) r2_loo(model) } r2_mcfadden McFadden’s R2 Description Calculates McFadden’s pseudo R2. Usage r2_mcfadden(model, ...) Arguments model Generalized linear or multinomial logit (mlogit) model. ... Currently not used. Value For most models, a list with McFadden’s R2 and adjusted McFadden’s R2 value. For some models, only McFadden’s R2 is available. References • <NAME>. (1987). Regression-based specification tests for the multinomial logit model. Journal of econometrics, 34(1-2), 63-82. • <NAME>. (1973). Conditional logit analysis of qualitative choice behavior. Examples if (require("mlogit")) { data("Fishing", package = "mlogit") Fish <- mlogit.data(Fishing, varying = c(2:9), shape = "wide", choice = "mode") model <- mlogit(mode ~ price + catch, data = Fish) r2_mcfadden(model) } r2_mckelvey McKelvey & Zavoinas R2 Description Calculates McKelvey and Zavoinas pseudo R2. Usage r2_mckelvey(model) Arguments model Generalized linear model. Details McKelvey and Zavoinas R2 is based on the explained variance, where the variance of the predicted response is divided by the sum of the variance of the predicted response and residual variance. For binomial models, the residual variance is either pi^2/3 for logit-link and 1 for probit-link. For poisson-models, the residual variance is based on log-normal approximation, similar to the distribution-specific variance as described in ?insight::get_variance. Value The R2 value. References <NAME>., <NAME>. (1975), "A Statistical Model for the Analysis of Ordinal Level Depen- dent Variables", Journal of Mathematical Sociology 4, S. 103–120. Examples ## Dobson (1990) Page 93: Randomized Controlled Trial: counts <- c(18, 17, 15, 20, 10, 20, 25, 13, 12) # outcome <- gl(3, 1, 9) treatment <- gl(3, 3) model <- glm(counts ~ outcome + treatment, family = poisson()) r2_mckelvey(model) r2_nagelkerke Nagelkerke’s R2 Description Calculate Nagelkerke’s pseudo-R2. Usage r2_nagelkerke(model, ...) Arguments model A generalized linear model, including cumulative links resp. multinomial mod- els. ... Currently not used. Value A named vector with the R2 value. References Nagelkerke, <NAME>. (1991). A note on a general definition of the coefficient of determination. Biometrika, 78(3), 691-692. Examples model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") r2_nagelkerke(model) r2_nakagawa Nakagawa’s R2 for mixed models Description Compute the marginal and conditional r-squared value for mixed effects models with complex random effects structures. Usage r2_nakagawa( model, by_group = FALSE, tolerance = 1e-05, ci = NULL, iterations = 100, ci_method = NULL, verbose = TRUE, ... ) Arguments model A mixed effects model. by_group Logical, if TRUE, returns the explained variance at different levels (if there are multiple levels). This is essentially similar to the variance reduction approach by Hox (2010), pp. 69-78. tolerance Tolerance for singularity check of random effects, to decide whether to com- pute random effect variances for the conditional r-squared or not. Indicates up to which value the convergence result is accepted. When r2_nakagawa() re- turns a warning, stating that random effect variances can’t be computed (and thus, the conditional r-squared is NA), decrease the tolerance-level. See also check_singularity(). ci Confidence resp. credible interval level. For icc() and r2(), confidence in- tervals are based on bootstrapped samples from the ICC resp. R2 value. See iterations. iterations Number of bootstrap-replicates when computing confidence intervals for the ICC or R2. ci_method Character string, indicating the bootstrap-method. Should be NULL (default), in which case lme4::bootMer() is used for bootstrapped confidence intervals. However, if bootstrapped intervals cannot be calculated this was, try ci_method = "boot", which falls back to boot::boot(). This may successfully return bootstrapped confidence intervals, but bootstrapped samples may not be ap- propriate for the multilevel structure of the model. There is also an option ci_method = "analytical", which tries to calculate analytical confidence as- suming a chi-squared distribution. However, these intervals are rather inaccurate and often too narrow. It is recommended to calculate bootstrapped confidence intervals for mixed models. verbose Toggle warnings and messages. ... Arguments passed down to brms::posterior_predict(). Details Marginal and conditional r-squared values for mixed models are calculated based on Nakagawa et al. (2017). For more details on the computation of the variances, see ?insight::get_variance. The random effect variances are actually the mean random effect variances, thus the r-squared value is also appropriate for mixed models with random slopes or nested random effects (see Johnson, 2014). • Conditional R2: takes both the fixed and random effects into account. • Marginal R2: considers only the variance of the fixed effects. The contribution of random effects can be deduced by subtracting the marginal R2 from the condi- tional R2 or by computing the icc(). Value A list with the conditional and marginal R2 values. References • <NAME>. (2010). Multilevel analysis: techniques and applications (2nd ed). New York: Routledge. • <NAME>. (2014). Extension of Nakagawa and Schielzeth’s R2 GLMM to random slopes models. Methods in Ecology and Evolution, 5(9), 944–946. doi:10.1111/2041210X.12225 • <NAME>., and <NAME>. (2013). A general and simple method for obtaining R2 from generalized linear mixed-effects models. Methods in Ecology and Evolution, 4(2), 133–142. doi:10.1111/j.2041210x.2012.00261.x • <NAME>., <NAME>., and <NAME>. (2017). The coefficient of determina- tion R2 and intra-class correlation coefficient from generalized linear mixed-effects models revisited and expanded. Journal of The Royal Society Interface, 14(134), 20170213. Examples if (require("lme4")) { model <- lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris) r2_nakagawa(model) r2_nakagawa(model, by_group = TRUE) } r2_somers Somers’ Dxy rank correlation for binary outcomes Description Calculates the Somers’ Dxy rank correlation for logistic regression models. Usage r2_somers(model) Arguments model A logistic regression model. Value A named vector with the R2 value. References <NAME>. (1962). A new asymmetric measure of association for ordinal variables. American Sociological Review. 27 (6). Examples ## Not run: if (require("correlation") && require("Hmisc")) { model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") r2_somers(model) } ## End(Not run) r2_tjur Tjur’s R2 - coefficient of determination (D) Description This method calculates the Coefficient of Discrimination D (also known as Tjur’s R2; Tjur, 2009 ) for generalized linear (mixed) models for binary outcomes. It is an alternative to other pseudo-R2 values like Nagelkerke’s R2 or Cox-Snell R2. The Coefficient of Discrimination D can be read like any other (pseudo-)R2 value. Usage r2_tjur(model, ...) Arguments model Binomial Model. ... Arguments from other functions, usually only used internally. Value A named vector with the R2 value. References <NAME>. (2009). Coefficients of determination in logistic regression models - A new proposal: The coefficient of discrimination. The American Statistician, 63(4), 366-372. Examples model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") r2_tjur(model) r2_xu Xu’ R2 (Omega-squared) Description Calculates Xu’ Omega-squared value, a simple R2 equivalent for linear mixed models. Usage r2_xu(model) Arguments model A linear (mixed) model. Details r2_xu() is a crude measure for the explained variance from linear (mixed) effects models, which is originally denoted as Ω2 . Value The R2 value. References <NAME>. (2003). Measuring explained variation in linear mixed effects models. Statistics in Medicine, 22(22), 3527–3541. doi:10.1002/sim.1572 Examples model <- lm(Sepal.Length ~ Petal.Length + Species, data = iris) r2_xu(model) r2_zeroinflated R2 for models with zero-inflation Description Calculates R2 for models with zero-inflation component, including mixed effects models. Usage r2_zeroinflated(model, method = c("default", "correlation")) Arguments model A model. method Indicates the method to calculate R2. See ’Details’. May be abbreviated. Details The default-method calculates an R2 value based on the residual variance divided by the total vari- ance. For method = "correlation", R2 is a correlation-based measure, which is rather crude. It simply computes the squared correlation between the model’s actual and predicted response. Value For the default-method, a list with the R2 and adjusted R2 values. For method = "correlation", a named numeric vector with the correlation-based R2 value. Examples if (require("pscl")) { data(bioChemists) model <- zeroinfl( art ~ fem + mar + kid5 + ment | kid5 + phd, data = bioChemists ) r2_zeroinflated(model) } test_bf Test if models are different Description Testing whether models are "different" in terms of accuracy or explanatory power is a delicate and often complex procedure, with many limitations and prerequisites. Moreover, many tests exist, each coming with its own interpretation, and set of strengths and weaknesses. The test_performance() function runs the most relevant and appropriate tests based on the type of input (for instance, whether the models are nested or not). However, it still requires the user to understand what the tests are and what they do in order to prevent their misinterpretation. See the Details section for more information regarding the different tests and their interpretation. Usage test_bf(...) ## Default S3 method: test_bf(..., reference = 1, text_length = NULL) test_likelihoodratio(..., estimator = "ML", verbose = TRUE) test_lrt(..., estimator = "ML", verbose = TRUE) test_performance(..., reference = 1, verbose = TRUE) test_vuong(..., verbose = TRUE) test_wald(..., verbose = TRUE) Arguments ... Multiple model objects. reference This only applies when models are non-nested, and determines which model should be taken as a reference, against which all the other models are tested. text_length Numeric, length (number of chars) of output lines. test_bf() describes models by their formulas, which can lead to overly long lines in the output. text_length fixes the length of lines to a specified limit. estimator Applied when comparing regression models using test_likelihoodratio(). Corresponds to the different estimators for the standard deviation of the errors. Defaults to "OLS" for linear models, "ML" for all other models (including mixed models), or "REML" for linear mixed models when these have the same fixed effects. See ’Details’. verbose Toggle warning and messages. Details Nested vs. Non-nested Models: Model’s "nesting" is an important concept of models comparison. Indeed, many tests only make sense when the models are "nested", i.e., when their predictors are nested. This means that all the fixed effects predictors of a model are contained within the fixed effects predictors of a larger model (sometimes referred to as the encompassing model). For instance, model1 (y ~ x1 + x2) is "nested" within model2 (y ~ x1 + x2 + x3). Usually, people have a list of nested models, for instance m1 (y ~ 1), m2 (y ~ x1), m3 (y ~ x1 + x2), m4 (y ~ x1 + x2 + x3), and it is conventional that they are "ordered" from the smallest to largest, but it is up to the user to reverse the order from largest to smallest. The test then shows whether a more parsimonious model, or whether adding a predictor, results in a significant difference in the model’s performance. In this case, models are usually compared sequentially: m2 is tested against m1, m3 against m2, m4 against m3, etc. Two models are considered as "non-nested" if their predictors are different. For instance, model1 (y ~ x1 + x2) and model2 (y ~ x3 + x4). In the case of non-nested models, all models are usually compared against the same reference model (by default, the first of the list). Nesting is detected via the insight::is_nested_models() function. Note that, apart from the nesting, in order for the tests to be valid, other requirements have often to be the fulfilled. For in- stance, outcome variables (the response) must be the same. You cannot meaningfully test whether apples are significantly different from oranges! Estimator of the standard deviation: The estimator is relevant when comparing regression models using test_likelihoodratio(). If estimator = "OLS", then it uses the same method as anova(..., test = "LRT") implemented in base R, i.e., scaling by n-k (the unbiased OLS estimator) and using this estimator under the alternative hypothesis. If estimator = "ML", which is for instance used by lrtest(...) in pack- age lmtest, the scaling is done by n (the biased ML estimator) and the estimator under the null hypothesis. In moderately large samples, the differences should be negligible, but it is possible that OLS would perform slightly better in small samples with Gaussian errors. For estimator = "REML", the LRT is based on the REML-fit log-likelihoods of the models. Note that not all types of estimators are available for all model classes. REML versus ML estimator: When estimator = "ML", which is the default for linear mixed models (unless they share the same fixed effects), values from information criteria (AIC, AICc) are based on the ML-estimator, while the default behaviour of AIC() may be different (in particular for linear mixed models from lme4, which sets REML = TRUE). This default in test_likelihoodratio() intentional, because comparing information criteria based on REML fits requires the same fixed effects for all models, which is often not the case. Thus, while anova.merMod() automatically refits all models to REML when performing a LRT, test_likelihoodratio() checks if a comparison based on REML fits is indeed valid, and if so, uses REML as default (else, ML is the default). Set the estimator argument explicitely to override the default behaviour. Tests Description: • Bayes factor for Model Comparison - test_bf(): If all models were fit from the same data, the returned BF shows the Bayes Factor (see bayestestR::bayesfactor_models()) for each model against the reference model (which depends on whether the models are nested or not). Check out this vignette for more details. • Wald’s F-Test - test_wald(): The Wald test is a rough approximation of the Likelihood Ratio Test. However, it is more applicable than the LRT: you can often run a Wald test in situations where no other test can be run. Importantly, this test only makes statistical sense if the models are nested. Note: this test is also available in base R through the anova() function. It returns an F-value column as a statistic and its associated p-value. • Likelihood Ratio Test (LRT) - test_likelihoodratio(): The LRT tests which model is a better (more likely) explanation of the data. Likelihood-Ratio-Test (LRT) gives usually somewhat close results (if not equivalent) to the Wald test and, similarly, only makes sense for nested models. However, maximum likelihood tests make stronger assumptions than method of moments tests like the F-test, and in turn are more efficient. Agresti (1990) suggests that you should use the LRT instead of the Wald test for small sample sizes (under or about 30) or if the parameters are large. Note: for regression models, this is similar to anova(..., test="LRT") (on models) or lmtest::lrtest(...), depending on the estimator argument. For lavaan models (SEM, CFA), the function calls lavaan::lavTestLRT(). For models with transformed response variables (like log(x) or sqrt(x)), logLik() returns a wrong log-likelihood. However, test_likelihoodratio() calls insight::get_loglikelihood() with check_response=TRUE, which returns a corrected log-likelihood value for models with transformed response variables. Furthermore, since the LRT only accepts nested models (i.e. models that differ in their fixed effects), the computed log-likelihood is always based on the ML estimator, not on the REML fits. • Vuong’s Test - test_vuong(): Vuong’s (1989) test can be used both for nested and non- nested models, and actually consists of two tests. – The Test of Distinguishability (the Omega2 column and its associated p-value) indicates whether or not the models can possibly be distinguished on the basis of the observed data. If its p-value is significant, it means the models are distinguishable. – The Robust Likelihood Test (the LR column and its associated p-value) indicates whether each model fits better than the reference model. If the models are nested, then the test works as a robust LRT. The code for this function is adapted from the nonnest2 package, and all credit go to their authors. Value A data frame containing the relevant indices. References • <NAME>. (1989). Likelihood ratio tests for model selection and non-nested hypotheses. Econometrica, 57, 307-333. • <NAME>., <NAME>., & <NAME>. (2016). Testing non-nested structural equation models. Psychological Methods, 21, 151-163. See Also compare_performance() to compare the performance indices of many different models. Examples # Nested Models # ------------- m1 <- lm(Sepal.Length ~ Petal.Width, data = iris) m2 <- lm(Sepal.Length ~ Petal.Width + Species, data = iris) m3 <- lm(Sepal.Length ~ Petal.Width * Species, data = iris) test_performance(m1, m2, m3) test_bf(m1, m2, m3) test_wald(m1, m2, m3) # Equivalent to anova(m1, m2, m3) # Equivalent to lmtest::lrtest(m1, m2, m3) test_likelihoodratio(m1, m2, m3, estimator = "ML") # Equivalent to anova(m1, m2, m3, test='LRT') test_likelihoodratio(m1, m2, m3, estimator = "OLS") if (require("CompQuadForm")) { test_vuong(m1, m2, m3) # nonnest2::vuongtest(m1, m2, nested=TRUE) # Non-nested Models # ----------------- m1 <- lm(Sepal.Length ~ Petal.Width, data = iris) m2 <- lm(Sepal.Length ~ Petal.Length, data = iris) m3 <- lm(Sepal.Length ~ Species, data = iris) test_performance(m1, m2, m3) test_bf(m1, m2, m3) test_vuong(m1, m2, m3) # nonnest2::vuongtest(m1, m2) } # Tweak the output # ---------------- test_performance(m1, m2, m3, include_formula = TRUE) # SEM / CFA (lavaan objects) # -------------------------- # Lavaan Models if (require("lavaan")) { structure <- " visual =~ x1 + x2 + x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9 visual ~~ textual + speed " m1 <- lavaan::cfa(structure, data = HolzingerSwineford1939) structure <- " visual =~ x1 + x2 + x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9 visual ~~ 0 * textual + speed " m2 <- lavaan::cfa(structure, data = HolzingerSwineford1939) structure <- " visual =~ x1 + x2 + x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9 visual ~~ 0 * textual + 0 * speed " m3 <- lavaan::cfa(structure, data = HolzingerSwineford1939) test_likelihoodratio(m1, m2, m3) # Different Model Types # --------------------- if (require("lme4") && require("mgcv")) { m1 <- lm(Sepal.Length ~ Petal.Length + Species, data = iris) m2 <- lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris) m3 <- gam(Sepal.Length ~ s(Petal.Length, by = Species) + Species, data = iris) test_performance(m1, m2, m3) } }
sharded-slab
rust
Rust
Crate sharded_slab === A lock-free concurrent slab. Slabs provide pre-allocated storage for many instances of a single data type. When a large number of values of a single type are required, this can be more efficient than allocating each item individually. Since the allocated items are the same size, memory fragmentation is reduced, and creating and removing new items can be very cheap. This crate implements a lock-free concurrent slab, indexed by `usize`s. ### Usage First, add this to your `Cargo.toml`: ``` sharded-slab = "0.1.1" ``` This crate provides two types, `Slab` and `Pool`, which provide slightly different APIs for using a sharded slab. `Slab` implements a slab for *storing* small types, sharing them between threads, and accessing them by index. New entries are allocated by inserting data, moving it in by value. Similarly, entries may be deallocated by taking from the slab, moving the value out. This API is similar to a `Vec<Option<T>>`, but allowing lock-free concurrent insertion and removal. In contrast, the `Pool` type provides an object pool style API for *reusing storage*. Rather than constructing values and moving them into the pool, as with `Slab`, allocating an entry from the pool takes a closure that’s provided with a mutable reference to initialize the entry in place. When entries are deallocated, they are cleared in place. Types which own a heap allocation can be cleared by dropping any *data* they store, but retaining any previously-allocated capacity. This means that a `Pool` may be used to reuse a set of existing heap allocations, reducing allocator load. Examples --- Inserting an item into the slab, returning an index: ``` let slab = Slab::new(); let key = slab.insert("hello world").unwrap(); assert_eq!(slab.get(key).unwrap(), "hello world"); ``` To share a slab across threads, it may be wrapped in an `Arc`: ``` use std::sync::Arc; let slab = Arc::new(Slab::new()); let slab2 = slab.clone(); let thread2 = std::thread::spawn(move || { let key = slab2.insert("hello from thread two").unwrap(); assert_eq!(slab2.get(key).unwrap(), "hello from thread two"); key }); let key1 = slab.insert("hello from thread one").unwrap(); assert_eq!(slab.get(key1).unwrap(), "hello from thread one"); // Wait for thread 2 to complete. let key2 = thread2.join().unwrap(); // The item inserted by thread 2 remains in the slab. assert_eq!(slab.get(key2).unwrap(), "hello from thread two"); ``` If items in the slab must be mutated, a `Mutex` or `RwLock` may be used for each item, providing granular locking of items rather than of the slab: ``` use std::sync::{Arc, Mutex}; let slab = Arc::new(Slab::new()); let key = slab.insert(Mutex::new(String::from("hello world"))).unwrap(); let slab2 = slab.clone(); let thread2 = std::thread::spawn(move || { let hello = slab2.get(key).expect("item missing"); let mut hello = hello.lock().expect("mutex poisoned"); *hello = String::from("hello everyone!"); }); thread2.join().unwrap(); let hello = slab.get(key).expect("item missing"); let mut hello = hello.lock().expect("mutex poisoned"); assert_eq!(hello.as_str(), "hello everyone!"); ``` Configuration --- For performance reasons, several values used by the slab are calculated as constants. In order to allow users to tune the slab’s parameters, we provide a `Config` trait which defines these parameters as associated `consts`. The `Slab` type is generic over a `C: Config` parameter. Comparison with Similar Crates --- * `slab`: <NAME>’s `slab` crate provides a slab implementation with a similar API, implemented by storing all data in a single vector. Unlike `sharded_slab`, inserting and removing elements from the slab requires mutable access. This means that if the slab is accessed concurrently by multiple threads, it is necessary for it to be protected by a `Mutex` or `RwLock`. Items may not be inserted or removed (or accessed, if a `Mutex` is used) concurrently, even when they are unrelated. In many cases, the lock can become a significant bottleneck. On the other hand, this crate allows separate indices in the slab to be accessed, inserted, and removed concurrently without requiring a global lock. Therefore, when the slab is shared across multiple threads, this crate offers significantly better performance than `slab`. However, the lock free slab introduces some additional constant-factor overhead. This means that in use-cases where a slab is *not* shared by multiple threads and locking is not required, this crate will likely offer slightly worse performance. In summary: `sharded-slab` offers significantly improved performance in concurrent use-cases, while `slab` should be preferred in single-threaded use-cases. Safety and Correctness --- Most implementations of lock-free data structures in Rust require some amount of unsafe code, and this crate is not an exception. In order to catch potential bugs in this unsafe code, we make use of `loom`, a permutation-testing tool for concurrent Rust programs. All `unsafe` blocks this crate occur in accesses to `loom` `UnsafeCell`s. This means that when those accesses occur in this crate’s tests, `loom` will assert that they are valid under the C11 memory model across multiple permutations of concurrent executions of those tests. In order to guard against the ABA problem, this crate makes use of *generational indices*. Each slot in the slab tracks a generation counter which is incremented every time a value is inserted into that slot, and the indices returned by `Slab::insert` include the generation of the slot when the value was inserted, packed into the high-order bits of the index. This ensures that if a value is inserted, removed, and a new value is inserted into the same slot in the slab, the key returned by the first call to `insert` will not map to the new value. Since a fixed number of bits are set aside to use for storing the generation counter, the counter will wrap around after being incremented a number of times. To avoid situations where a returned index lives long enough to see the generation counter wrap around to the same value, it is good to be fairly generous when configuring the allocation of index bits. Performance --- These graphs were produced by benchmarks of the sharded slab implementation, using the `criterion` crate. The first shows the results of a benchmark where an increasing number of items are inserted and then removed into a slab concurrently by five threads. It compares the performance of the sharded slab implementation with a `RwLock<slab::Slab>`: ![Screen Shot 2019-10-01 at 5 09 49 PM](https://user-images.githubusercontent.com/2796466/66078398-cd6c9f80-e516-11e9-9923-0ed6292e8498.png) The second graph shows the results of a benchmark where an increasing number of items are inserted and then removed by a *single* thread. It compares the performance of the sharded slab implementation with an `RwLock<slab::Slab>` and a `mut slab::Slab`. ![Screen Shot 2019-10-01 at 5 13 45 PM](https://user-images.githubusercontent.com/2796466/66078469-f0974f00-e516-11e9-95b5-f65f0aa7e494.png) These benchmarks demonstrate that, while the sharded approach introduces a small constant-factor overhead, it offers significantly better performance across concurrent accesses. Implementation Notes --- See this page for details on this crate’s design and implementation. Modules --- * implementationNotes on `sharded-slab`’s implementation and design. * poolA lock-free concurrent object pool. Structs --- * DefaultConfigDefault slab configuration values. * EntryA handle that allows access to an occupied entry in a `Slab`. * OwnedEntryAn owned reference to an occupied entry in a `Slab`. * PoolA lock-free concurrent object pool. * SlabA sharded slab. * UniqueIterAn exclusive fused iterator over the items in a `Slab`. * VacantEntryA handle to a vacant entry in a `Slab`. Traits --- * ClearTrait implemented by types which can be cleared in place, retaining any allocated memory. * ConfigConfiguration parameters which can be overridden to tune the behavior of a slab. Crate sharded_slab === A lock-free concurrent slab. Slabs provide pre-allocated storage for many instances of a single data type. When a large number of values of a single type are required, this can be more efficient than allocating each item individually. Since the allocated items are the same size, memory fragmentation is reduced, and creating and removing new items can be very cheap. This crate implements a lock-free concurrent slab, indexed by `usize`s. ### Usage First, add this to your `Cargo.toml`: ``` sharded-slab = "0.1.1" ``` This crate provides two types, `Slab` and `Pool`, which provide slightly different APIs for using a sharded slab. `Slab` implements a slab for *storing* small types, sharing them between threads, and accessing them by index. New entries are allocated by inserting data, moving it in by value. Similarly, entries may be deallocated by taking from the slab, moving the value out. This API is similar to a `Vec<Option<T>>`, but allowing lock-free concurrent insertion and removal. In contrast, the `Pool` type provides an object pool style API for *reusing storage*. Rather than constructing values and moving them into the pool, as with `Slab`, allocating an entry from the pool takes a closure that’s provided with a mutable reference to initialize the entry in place. When entries are deallocated, they are cleared in place. Types which own a heap allocation can be cleared by dropping any *data* they store, but retaining any previously-allocated capacity. This means that a `Pool` may be used to reuse a set of existing heap allocations, reducing allocator load. Examples --- Inserting an item into the slab, returning an index: ``` let slab = Slab::new(); let key = slab.insert("hello world").unwrap(); assert_eq!(slab.get(key).unwrap(), "hello world"); ``` To share a slab across threads, it may be wrapped in an `Arc`: ``` use std::sync::Arc; let slab = Arc::new(Slab::new()); let slab2 = slab.clone(); let thread2 = std::thread::spawn(move || { let key = slab2.insert("hello from thread two").unwrap(); assert_eq!(slab2.get(key).unwrap(), "hello from thread two"); key }); let key1 = slab.insert("hello from thread one").unwrap(); assert_eq!(slab.get(key1).unwrap(), "hello from thread one"); // Wait for thread 2 to complete. let key2 = thread2.join().unwrap(); // The item inserted by thread 2 remains in the slab. assert_eq!(slab.get(key2).unwrap(), "hello from thread two"); ``` If items in the slab must be mutated, a `Mutex` or `RwLock` may be used for each item, providing granular locking of items rather than of the slab: ``` use std::sync::{Arc, Mutex}; let slab = Arc::new(Slab::new()); let key = slab.insert(Mutex::new(String::from("hello world"))).unwrap(); let slab2 = slab.clone(); let thread2 = std::thread::spawn(move || { let hello = slab2.get(key).expect("item missing"); let mut hello = hello.lock().expect("mutex poisoned"); *hello = String::from("hello everyone!"); }); thread2.join().unwrap(); let hello = slab.get(key).expect("item missing"); let mut hello = hello.lock().expect("mutex poisoned"); assert_eq!(hello.as_str(), "hello everyone!"); ``` Configuration --- For performance reasons, several values used by the slab are calculated as constants. In order to allow users to tune the slab’s parameters, we provide a `Config` trait which defines these parameters as associated `consts`. The `Slab` type is generic over a `C: Config` parameter. Comparison with Similar Crates --- * `slab`: <NAME>’s `slab` crate provides a slab implementation with a similar API, implemented by storing all data in a single vector. Unlike `sharded_slab`, inserting and removing elements from the slab requires mutable access. This means that if the slab is accessed concurrently by multiple threads, it is necessary for it to be protected by a `Mutex` or `RwLock`. Items may not be inserted or removed (or accessed, if a `Mutex` is used) concurrently, even when they are unrelated. In many cases, the lock can become a significant bottleneck. On the other hand, this crate allows separate indices in the slab to be accessed, inserted, and removed concurrently without requiring a global lock. Therefore, when the slab is shared across multiple threads, this crate offers significantly better performance than `slab`. However, the lock free slab introduces some additional constant-factor overhead. This means that in use-cases where a slab is *not* shared by multiple threads and locking is not required, this crate will likely offer slightly worse performance. In summary: `sharded-slab` offers significantly improved performance in concurrent use-cases, while `slab` should be preferred in single-threaded use-cases. Safety and Correctness --- Most implementations of lock-free data structures in Rust require some amount of unsafe code, and this crate is not an exception. In order to catch potential bugs in this unsafe code, we make use of `loom`, a permutation-testing tool for concurrent Rust programs. All `unsafe` blocks this crate occur in accesses to `loom` `UnsafeCell`s. This means that when those accesses occur in this crate’s tests, `loom` will assert that they are valid under the C11 memory model across multiple permutations of concurrent executions of those tests. In order to guard against the ABA problem, this crate makes use of *generational indices*. Each slot in the slab tracks a generation counter which is incremented every time a value is inserted into that slot, and the indices returned by `Slab::insert` include the generation of the slot when the value was inserted, packed into the high-order bits of the index. This ensures that if a value is inserted, removed, and a new value is inserted into the same slot in the slab, the key returned by the first call to `insert` will not map to the new value. Since a fixed number of bits are set aside to use for storing the generation counter, the counter will wrap around after being incremented a number of times. To avoid situations where a returned index lives long enough to see the generation counter wrap around to the same value, it is good to be fairly generous when configuring the allocation of index bits. Performance --- These graphs were produced by benchmarks of the sharded slab implementation, using the `criterion` crate. The first shows the results of a benchmark where an increasing number of items are inserted and then removed into a slab concurrently by five threads. It compares the performance of the sharded slab implementation with a `RwLock<slab::Slab>`: ![Screen Shot 2019-10-01 at 5 09 49 PM](https://user-images.githubusercontent.com/2796466/66078398-cd6c9f80-e516-11e9-9923-0ed6292e8498.png) The second graph shows the results of a benchmark where an increasing number of items are inserted and then removed by a *single* thread. It compares the performance of the sharded slab implementation with an `RwLock<slab::Slab>` and a `mut slab::Slab`. ![Screen Shot 2019-10-01 at 5 13 45 PM](https://user-images.githubusercontent.com/2796466/66078469-f0974f00-e516-11e9-95b5-f65f0aa7e494.png) These benchmarks demonstrate that, while the sharded approach introduces a small constant-factor overhead, it offers significantly better performance across concurrent accesses. Implementation Notes --- See this page for details on this crate’s design and implementation. Modules --- * implementationNotes on `sharded-slab`’s implementation and design. * poolA lock-free concurrent object pool. Structs --- * DefaultConfigDefault slab configuration values. * EntryA handle that allows access to an occupied entry in a `Slab`. * OwnedEntryAn owned reference to an occupied entry in a `Slab`. * PoolA lock-free concurrent object pool. * SlabA sharded slab. * UniqueIterAn exclusive fused iterator over the items in a `Slab`. * VacantEntryA handle to a vacant entry in a `Slab`. Traits --- * ClearTrait implemented by types which can be cleared in place, retaining any allocated memory. * ConfigConfiguration parameters which can be overridden to tune the behavior of a slab. Struct sharded_slab::Pool === ``` pub struct Pool<T, C = DefaultConfig>where T: Clear + Default, C: Config,{ /* private fields */ } ``` A lock-free concurrent object pool. Slabs provide pre-allocated storage for many instances of a single type. But, when working with heap allocated objects, the advantages of a slab are lost, as the memory allocated for the object is freed when the object is removed from the slab. With a pool, we can instead reuse this memory for objects being added to the pool in the future, therefore reducing memory fragmentation and avoiding additional allocations. This type implements a lock-free concurrent pool, indexed by `usize`s. The items stored in this type need to implement `Clear` and `Default`. The `Pool` type shares similar semantics to `Slab` when it comes to sharing across threads and storing mutable shared data. The biggest difference is there are no `Slab::insert` and `Slab::take` analouges for the `Pool` type. Instead new items are added to the pool by using the `Pool::create` method, and marked for clearing by the `Pool::clear` method. Examples --- Add an entry to the pool, returning an index: ``` let pool: Pool<String> = Pool::new(); let key = pool.create_with(|item| item.push_str("hello world")).unwrap(); assert_eq!(pool.get(key).unwrap(), String::from("hello world")); ``` Create a new pooled item, returning a guard that allows mutable access: ``` let pool: Pool<String> = Pool::new(); let mut guard = pool.create().unwrap(); let key = guard.key(); guard.push_str("hello world"); drop(guard); // release the guard, allowing immutable access. assert_eq!(pool.get(key).unwrap(), String::from("hello world")); ``` Pool entries can be cleared by calling `Pool::clear`. This marks the entry to be cleared when the guards referencing to it are dropped. ``` let pool: Pool<String> = Pool::new(); let key = pool.create_with(|item| item.push_str("hello world")).unwrap(); // Mark this entry to be cleared. pool.clear(key); // The cleared entry is no longer available in the pool assert!(pool.get(key).is_none()); ``` Configuration --- Both `Pool` and `Slab` share the same configuration mechanism. See crate level documentation for more details. Implementations --- ### impl<T> Pool<T>where T: Clear + Default, #### pub fn new() -> Self Returns a new `Pool` with the default configuration parameters. #### pub fn new_with_config<C: Config>() -> Pool<T, CReturns a new `Pool` with the provided configuration parameters. ### impl<T, C> Pool<T, C>where T: Clear + Default, C: Config, #### pub const USED_BITS: usize = C::USED_BITS The number of bits in each index which are used by the pool. If other data is packed into the `usize` indices returned by `Pool::create`, user code is free to use any bits higher than the `USED_BITS`-th bit freely. This is determined by the `Config` type that configures the pool’s parameters. By default, all bits are used; this can be changed by overriding the `Config::RESERVED_BITS` constant. #### pub fn create(&self) -> Option<RefMut<'_, T, C>Creates a new object in the pool, returning an `RefMut` guard that may be used to mutate the new object. If this function returns `None`, then the shard for the current thread is full and no items can be added until some are removed, or the maximum number of shards has been reached. ##### Examples ``` let pool: Pool<String> = Pool::new(); // Create a new pooled item, returning a guard that allows mutable // access to the new item. let mut item = pool.create().unwrap(); // Return a key that allows indexing the created item once the guard // has been dropped. let key = item.key(); // Mutate the item. item.push_str("Hello"); // Drop the guard, releasing mutable access to the new item. drop(item); /// Other threads may now (immutably) access the item using the returned key. thread::spawn(move || { assert_eq!(pool.get(key).unwrap(), String::from("Hello")); }).join().unwrap(); ``` #### pub fn create_owned(self: Arc<Self>) -> Option<OwnedRefMut<T, C>Creates a new object in the pool, returning an `OwnedRefMut` guard that may be used to mutate the new object. If this function returns `None`, then the shard for the current thread is full and no items can be added until some are removed, or the maximum number of shards has been reached. Unlike `create`, which borrows the pool, this method *clones* the `Arc` around the pool if a value exists for the given key. This means that the returned `OwnedRefMut` can be held for an arbitrary lifetime. However, this method requires that the pool itself be wrapped in an `Arc`. An `OwnedRefMut<T>` functions more or less identically to an owned `Box<T>`: it can be passed to functions, stored in structure fields, and borrowed mutably or immutably, and can be owned for arbitrary lifetimes. The difference is that, unlike a `Box<T>`, the memory allocation for the `T` lives in the `Pool`; when an `OwnedRefMut` is created, it may reuse memory that was allocated for a previous pooled object that has been cleared. Additionally, the `OwnedRefMut` may be downgraded to an `OwnedRef` which may be shared freely, essentially turning the `Box` into an `Arc`. ##### Examples ``` use std::sync::Arc; let pool: Arc<Pool<String>> = Arc::new(Pool::new()); // Create a new pooled item, returning an owned guard that allows mutable // access to the new item. let mut item = pool.clone().create_owned().unwrap(); // Return a key that allows indexing the created item once the guard // has been dropped. let key = item.key(); // Mutate the item. item.push_str("Hello"); // Drop the guard, releasing mutable access to the new item. drop(item); /// Other threads may now (immutably) access the item using the returned key. thread::spawn(move || { assert_eq!(pool.get(key).unwrap(), String::from("Hello")); }).join().unwrap(); ``` ``` use std::sync::Arc; let pool: Arc<Pool<String>> = Arc::new(Pool::new()); // Create a new item, returning an owned, mutable guard. let mut value = pool.clone().create_owned().unwrap(); // Now, the original `Arc` clone of the pool may be dropped, but the // returned `OwnedRefMut` can still access the value. drop(pool); value.push_str("hello world"); assert_eq!(value, String::from("hello world")); ``` Unlike `RefMut`, an `OwnedRefMut` may be stored in a struct which must live for the `'static` lifetime: ``` use sharded_slab::pool::OwnedRefMut; use std::sync::Arc; pub struct MyStruct { pool_ref: OwnedRefMut<String>, // ... other fields ... } // Suppose this is some arbitrary function which requires a value that // lives for the 'static lifetime... fn function_requiring_static<T: 'static>(t: &T) { // ... do something extremely important and interesting ... } let pool: Arc<Pool<String>> = Arc::new(Pool::new()); // Create a new item, returning a mutable owned reference. let pool_ref = pool.clone().create_owned().unwrap(); let my_struct = MyStruct { pool_ref, // ... }; // We can use `my_struct` anywhere where it is required to have the // `'static` lifetime: function_requiring_static(&my_struct); ``` `OwnedRefMut`s may be sent between threads: ``` use std::{thread, sync::Arc}; let pool: Arc<Pool<String>> = Arc::new(Pool::new()); let mut value = pool.clone().create_owned().unwrap(); let key = value.key(); thread::spawn(move || { value.push_str("hello world"); // ... }).join().unwrap(); // Once the `OwnedRefMut` has been dropped by the other thread, we may // now access the value immutably on this thread. assert_eq!(pool.get(key).unwrap(), String::from("hello world")); ``` Downgrading from a mutable to an immutable reference: ``` use std::{thread, sync::Arc}; let pool: Arc<Pool<String>> = Arc::new(Pool::new()); let mut value = pool.clone().create_owned().unwrap(); let key = value.key(); value.push_str("hello world"); // Downgrade the mutable owned ref to an immutable owned ref. let value = value.downgrade(); // Once the `OwnedRefMut` has been downgraded, other threads may // immutably access the pooled value: thread::spawn(move || { assert_eq!(pool.get(key).unwrap(), String::from("hello world")); }).join().unwrap(); // This thread can still access the pooled value through the // immutable owned ref: assert_eq!(value, String::from("hello world")); ``` #### pub fn create_with(&self, init: impl FnOnce(&mut T)) -> Option<usizeCreates a new object in the pool with the provided initializer, returning a key that may be used to access the new object. If this function returns `None`, then the shard for the current thread is full and no items can be added until some are removed, or the maximum number of shards has been reached. ##### Examples ``` let pool: Pool<String> = Pool::new(); // Create a new pooled item, returning its integer key. let key = pool.create_with(|s| s.push_str("Hello")).unwrap(); /// Other threads may now (immutably) access the item using the key. thread::spawn(move || { assert_eq!(pool.get(key).unwrap(), String::from("Hello")); }).join().unwrap(); ``` #### pub fn get(&self, key: usize) -> Option<Ref<'_, T, C>Return a borrowed reference to the value associated with the given key. If the pool does not contain a value for the given key, `None` is returned instead. ##### Examples ``` let pool: Pool<String> = Pool::new(); let key = pool.create_with(|item| item.push_str("hello world")).unwrap(); assert_eq!(pool.get(key).unwrap(), String::from("hello world")); assert!(pool.get(12345).is_none()); ``` #### pub fn get_owned(self: Arc<Self>, key: usize) -> Option<OwnedRef<T, C>Return an owned reference to the value associated with the given key. If the pool does not contain a value for the given key, `None` is returned instead. Unlike `get`, which borrows the pool, this method *clones* the `Arc` around the pool if a value exists for the given key. This means that the returned `OwnedRef` can be held for an arbitrary lifetime. However, this method requires that the pool itself be wrapped in an `Arc`. ##### Examples ``` use std::sync::Arc; let pool: Arc<Pool<String>> = Arc::new(Pool::new()); let key = pool.create_with(|item| item.push_str("hello world")).unwrap(); // Look up the created `Key`, returning an `OwnedRef`. let value = pool.clone().get_owned(key).unwrap(); // Now, the original `Arc` clone of the pool may be dropped, but the // returned `OwnedRef` can still access the value. assert_eq!(value, String::from("hello world")); ``` Unlike `Ref`, an `OwnedRef` may be stored in a struct which must live for the `'static` lifetime: ``` use sharded_slab::pool::OwnedRef; use std::sync::Arc; pub struct MyStruct { pool_ref: OwnedRef<String>, // ... other fields ... } // Suppose this is some arbitrary function which requires a value that // lives for the 'static lifetime... fn function_requiring_static<T: 'static>(t: &T) { // ... do something extremely important and interesting ... } let pool: Arc<Pool<String>> = Arc::new(Pool::new()); let key = pool.create_with(|item| item.push_str("hello world")).unwrap(); // Look up the created `Key`, returning an `OwnedRef`. let pool_ref = pool.clone().get_owned(key).unwrap(); let my_struct = MyStruct { pool_ref, // ... }; // We can use `my_struct` anywhere where it is required to have the // `'static` lifetime: function_requiring_static(&my_struct); ``` `OwnedRef`s may be sent between threads: ``` use std::{thread, sync::Arc}; let pool: Arc<Pool<String>> = Arc::new(Pool::new()); let key = pool.create_with(|item| item.push_str("hello world")).unwrap(); // Look up the created `Key`, returning an `OwnedRef`. let value = pool.clone().get_owned(key).unwrap(); thread::spawn(move || { assert_eq!(value, String::from("hello world")); // ... }).join().unwrap(); ``` #### pub fn clear(&self, key: usize) -> bool Remove the value using the storage associated with the given key from the pool, returning `true` if the value was removed. This method does *not* block the current thread until the value can be cleared. Instead, if another thread is currently accessing that value, this marks it to be cleared by that thread when it is done accessing that value. ##### Examples ``` let pool: Pool<String> = Pool::new(); // Check out an item from the pool. let mut item = pool.create().unwrap(); let key = item.key(); item.push_str("hello world"); drop(item); assert_eq!(pool.get(key).unwrap(), String::from("hello world")); pool.clear(key); assert!(pool.get(key).is_none()); ``` ``` let pool: Pool<String> = Pool::new(); let key = pool.create_with(|item| item.push_str("Hello world!")).unwrap(); // Clearing a key that doesn't exist in the `Pool` will return `false` assert_eq!(pool.clear(key + 69420), false); // Clearing a key that does exist returns `true` assert!(pool.clear(key)); // Clearing a key that has previously been cleared will return `false` assert_eq!(pool.clear(key), false); ``` Trait Implementations --- ### impl<T, C> Debug for Pool<T, C>where T: Debug + Clear + Default, C: Config, #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. T: Clear + Default, #### fn default() -> Self Returns the “default value” for a type. T: Send + Clear + Default, C: Config, ### impl<T, C> Sync for Pool<T, C>where T: Sync + Clear + Default, C: Config, Auto Trait Implementations --- ### impl<T, C> RefUnwindSafe for Pool<T, C>where C: RefUnwindSafe, ### impl<T, C> Unpin for Pool<T, C>where C: Unpin, ### impl<T, C = DefaultConfig> !UnwindSafe for Pool<T, CBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct sharded_slab::Slab === ``` pub struct Slab<T, C: Config = DefaultConfig> { /* private fields */ } ``` A sharded slab. See the crate-level documentation for details on using this type. Implementations --- ### impl<T> Slab<T#### pub fn new() -> Self Returns a new slab with the default configuration parameters. #### pub fn new_with_config<C: Config>() -> Slab<T, CReturns a new slab with the provided configuration parameters. ### impl<T, C: Config> Slab<T, C#### pub const USED_BITS: usize = C::USED_BITS The number of bits in each index which are used by the slab. If other data is packed into the `usize` indices returned by `Slab::insert`, user code is free to use any bits higher than the `USED_BITS`-th bit freely. This is determined by the `Config` type that configures the slab’s parameters. By default, all bits are used; this can be changed by overriding the `Config::RESERVED_BITS` constant. #### pub fn insert(&self, value: T) -> Option<usizeInserts a value into the slab, returning the integer index at which that value was inserted. This index can then be used to access the entry. If this function returns `None`, then the shard for the current thread is full and no items can be added until some are removed, or the maximum number of shards has been reached. ##### Examples ``` let slab = Slab::new(); let key = slab.insert("hello world").unwrap(); assert_eq!(slab.get(key).unwrap(), "hello world"); ``` #### pub fn vacant_entry(&self) -> Option<VacantEntry<'_, T, C>Return a handle to a vacant entry allowing for further manipulation. This function is useful when creating values that must contain their slab index. The returned `VacantEntry` reserves a slot in the slab and is able to return the index of the entry. ##### Examples ``` let mut slab = Slab::new(); let hello = { let entry = slab.vacant_entry().unwrap(); let key = entry.key(); entry.insert((key, "hello")); key }; assert_eq!(hello, slab.get(hello).unwrap().0); assert_eq!("hello", slab.get(hello).unwrap().1); ``` #### pub fn remove(&self, idx: usize) -> bool Remove the value at the given index in the slab, returning `true` if a value was removed. Unlike `take`, this method does *not* block the current thread until the value can be removed. Instead, if another thread is currently accessing that value, this marks it to be removed by that thread when it finishes accessing the value. ##### Examples ``` let slab = sharded_slab::Slab::new(); let key = slab.insert("hello world").unwrap(); // Remove the item from the slab. assert!(slab.remove(key)); // Now, the slot is empty. assert!(!slab.contains(key)); ``` ``` use std::sync::Arc; let slab = Arc::new(sharded_slab::Slab::new()); let key = slab.insert("hello world").unwrap(); let slab2 = slab.clone(); let thread2 = std::thread::spawn(move || { // Depending on when this thread begins executing, the item may // or may not have already been removed... if let Some(item) = slab2.get(key) { assert_eq!(item, "hello world"); } }); // The item will be removed by thread2 when it finishes accessing it. assert!(slab.remove(key)); thread2.join().unwrap(); assert!(!slab.contains(key)); ``` #### pub fn take(&self, idx: usize) -> Option<TRemoves the value associated with the given key from the slab, returning it. If the slab does not contain a value for that key, `None` is returned instead. If the value associated with the given key is currently being accessed by another thread, this method will block the current thread until the item is no longer accessed. If this is not desired, use `remove` instead. **Note**: This method blocks the calling thread by spinning until the currently outstanding references are released. Spinning for long periods of time can result in high CPU time and power consumption. Therefore, `take` should only be called when other references to the slot are expected to be dropped soon (e.g., when all accesses are relatively short). ##### Examples ``` let slab = sharded_slab::Slab::new(); let key = slab.insert("hello world").unwrap(); // Remove the item from the slab, returning it. assert_eq!(slab.take(key), Some("hello world")); // Now, the slot is empty. assert!(!slab.contains(key)); ``` ``` use std::sync::Arc; let slab = Arc::new(sharded_slab::Slab::new()); let key = slab.insert("hello world").unwrap(); let slab2 = slab.clone(); let thread2 = std::thread::spawn(move || { // Depending on when this thread begins executing, the item may // or may not have already been removed... if let Some(item) = slab2.get(key) { assert_eq!(item, "hello world"); } }); // The item will only be removed when the other thread finishes // accessing it. assert_eq!(slab.take(key), Some("hello world")); thread2.join().unwrap(); assert!(!slab.contains(key)); ``` #### pub fn get(&self, key: usize) -> Option<Entry<'_, T, C>Return a reference to the value associated with the given key. If the slab does not contain a value for the given key, or if the maximum number of concurrent references to the slot has been reached, `None` is returned instead. ##### Examples ``` let slab = sharded_slab::Slab::new(); let key = slab.insert("hello world").unwrap(); assert_eq!(slab.get(key).unwrap(), "hello world"); assert!(slab.get(12345).is_none()); ``` #### pub fn get_owned(self: Arc<Self>, key: usize) -> Option<OwnedEntry<T, C>Return an owned reference to the value at the given index. If the slab does not contain a value for the given key, `None` is returned instead. Unlike `get`, which borrows the slab, this method *clones* the `Arc` around the slab. This means that the returned `OwnedEntry` can be held for an arbitrary lifetime. However, this method requires that the slab itself be wrapped in an `Arc`. ##### Examples ``` use std::sync::Arc; let slab: Arc<Slab<&'static str>> = Arc::new(Slab::new()); let key = slab.insert("hello world").unwrap(); // Look up the created key, returning an `OwnedEntry`. let value = slab.clone().get_owned(key).unwrap(); // Now, the original `Arc` clone of the slab may be dropped, but the // returned `OwnedEntry` can still access the value. assert_eq!(value, "hello world"); ``` Unlike `Entry`, an `OwnedEntry` may be stored in a struct which must live for the `'static` lifetime: ``` use sharded_slab::OwnedEntry; use std::sync::Arc; pub struct MyStruct { entry: OwnedEntry<&'static str>, // ... other fields ... } // Suppose this is some arbitrary function which requires a value that // lives for the 'static lifetime... fn function_requiring_static<T: 'static>(t: &T) { // ... do something extremely important and interesting ... } let slab: Arc<Slab<&'static str>> = Arc::new(Slab::new()); let key = slab.insert("hello world").unwrap(); // Look up the created key, returning an `OwnedEntry`. let entry = slab.clone().get_owned(key).unwrap(); let my_struct = MyStruct { entry, // ... }; // We can use `my_struct` anywhere where it is required to have the // `'static` lifetime: function_requiring_static(&my_struct); ``` `OwnedEntry`s may be sent between threads: ``` use std::{thread, sync::Arc}; let slab: Arc<Slab<&'static str>> = Arc::new(Slab::new()); let key = slab.insert("hello world").unwrap(); // Look up the created key, returning an `OwnedEntry`. let value = slab.clone().get_owned(key).unwrap(); thread::spawn(move || { assert_eq!(value, "hello world"); // ... }).join().unwrap(); ``` #### pub fn contains(&self, key: usize) -> bool Returns `true` if the slab contains a value for the given key. ##### Examples ``` let slab = sharded_slab::Slab::new(); let key = slab.insert("hello world").unwrap(); assert!(slab.contains(key)); slab.take(key).unwrap(); assert!(!slab.contains(key)); ``` #### pub fn unique_iter(&mut self) -> UniqueIter<'_, T, CReturns an iterator over all the items in the slab. Because this iterator exclusively borrows the slab (i.e. it holds an `&mut Slab<T>`), elements will not be added or removed while the iteration is in progress. Trait Implementations --- ### impl<T: Debug, C: Config> Debug for Slab<T, C#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Returns the “default value” for a type. --- ### impl<T, C> RefUnwindSafe for Slab<T, C>where C: RefUnwindSafe, ### impl<T, C> Unpin for Slab<T, C>where C: Unpin, ### impl<T, C = DefaultConfig> !UnwindSafe for Slab<T, CBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.{"UniqueIter<'_, T, C>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.UniqueIter.html\" title=\"struct sharded_slab::UniqueIter\">UniqueIter</a>&lt;'a, T, C&gt;</code></h3><pre><code><span class=\"where fmt-newline\">impl&lt;'a, T, C: <a class=\"trait\" href=\"trait.Config.html\" title=\"trait sharded_slab::Config\">Config</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"struct.UniqueIter.html\" title=\"struct sharded_slab::UniqueIter\">UniqueIter</a>&lt;'a, T, C&gt;</span><span class=\"where fmt-newline\"> type <a href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.reference.html\">&amp;'a T</a>;</span>"} Trait sharded_slab::Clear === ``` pub trait Clear { // Required method fn clear(&mut self); } ``` Trait implemented by types which can be cleared in place, retaining any allocated memory. This is essentially a generalization of methods on standard library collection types, including as `Vec::clear`, `String::clear`, and `HashMap::clear`. These methods drop all data stored in the collection, but retain the collection’s heap allocation for future use. Types such as `BTreeMap`, whose `clear` methods drops allocations, should not implement this trait. When implemented for types which do not own a heap allocation, `Clear` should reset the type in place if possible. If the type has an empty state or stores `Option`s, those values should be reset to the empty state. For “plain old data” types, which hold no pointers to other data and do not have an empty or initial state, it’s okay for a `Clear` implementation to be a no-op. In that case, it essentially serves as a marker indicating that the type may be reused to store new data. Required Methods --- #### fn clear(&mut self) Clear all data in `self`, retaining the allocated capacithy. Implementations on Foreign Types --- ### impl<T: Clear> Clear for Mutex<T#### fn clear(&mut self) ### impl<T> Clear for Vec<T#### fn clear(&mut self) ### impl<K, V, S> Clear for HashMap<K, V, S>where K: Hash + Eq, S: BuildHasher, #### fn clear(&mut self) ### impl<T> Clear for Option<T#### fn clear(&mut self) ### impl<T> Clear for Box<T>where T: Clear, #### fn clear(&mut self) ### impl Clear for String #### fn clear(&mut self) ### impl<T, S> Clear for HashSet<T, S>where T: Hash + Eq, S: BuildHasher, #### fn clear(&mut self) ### impl<T: Clear> Clear for RwLock<T#### fn clear(&mut self) Implementors --- Trait sharded_slab::Config === ``` pub trait Config: Sized { const MAX_THREADS: usize = 4_096usize; const MAX_PAGES: usize = 32usize; const INITIAL_PAGE_SIZE: usize = 32usize; const RESERVED_BITS: usize = 0usize; } ``` Configuration parameters which can be overridden to tune the behavior of a slab. Provided Associated Constants --- #### const MAX_THREADS: usize = 4_096usize The maximum number of threads which can access the slab. This value (rounded to a power of two) determines the number of shards in the slab. If a thread is created, accesses the slab, and then terminates, its shard may be reused and thus does not count against the maximum number of threads once the thread has terminated. #### const MAX_PAGES: usize = 32usize The maximum number of pages in each shard in the slab. This value, in combination with `INITIAL_PAGE_SIZE`, determines how many bits of each index are used to represent page addresses. #### const INITIAL_PAGE_SIZE: usize = 32usize The size of the first page in each shard. When a page in a shard has been filled with values, a new page will be allocated that is twice as large as the previous page. Thus, the second page will be twice this size, and the third will be four times this size, and so on. Note that page sizes must be powers of two. If this value is not a power of two, it will be rounded to the next power of two. #### const RESERVED_BITS: usize = 0usize Sets a number of high-order bits in each index which are reserved from user code. Note that these bits are taken from the generation counter; if the page address and thread IDs are configured to use a large number of bits, reserving additional bits will decrease the period of the generation counter. These should thus be used relatively sparingly, to ensure that generation counters are able to effectively prevent the ABA problem. Implementors --- ### impl Config for DefaultConfig #### const INITIAL_PAGE_SIZE: usize = 32usize #### const MAX_THREADS: usize = 4_096usize #### const MAX_PAGES: usize = 32usize Module sharded_slab::implementation === Notes on `sharded-slab`’s implementation and design. Design --- The sharded slab’s design is strongly inspired by the ideas presented by Leijen, Zorn, and <NAME> in Mimalloc: Free List Sharding in Action. In this report, the authors present a novel design for a memory allocator based on a concept of *free list sharding*. Memory allocators must keep track of what memory regions are not currently allocated (“free”) in order to provide them to future allocation requests. The term *free list* refers to a technique for performing this bookkeeping, where each free block stores a pointer to the next free block, forming a linked list. The memory allocator keeps a pointer to the most recently freed block, the *head* of the free list. To allocate more memory, the allocator pops from the free list by setting the head pointer to the next free block of the current head block, and returning the previous head. To deallocate a block, the block is pushed to the free list by setting its first word to the current head pointer, and the head pointer is set to point to the deallocated block. Most implementations of slab allocators backed by arrays or vectors use a similar technique, where pointers are replaced by indices into the backing array. When allocations and deallocations can occur concurrently across threads, they must synchronize accesses to the free list; either by putting the entire allocator state inside of a lock, or by using atomic operations to treat the free list as a lock-free structure (such as a Treiber stack). In both cases, there is a significant performance cost — even when the free list is lock-free, it is likely that a noticeable amount of time will be spent in compare-and-swap loops. Ideally, the global synchronzation point created by the single global free list could be avoided as much as possible. The approach presented by Leijen, Zorn, and <NAME> is to introduce sharding and thus increase the granularity of synchronization significantly. In mimalloc, the heap is *sharded* so that each thread has its own thread-local heap. Objects are always allocated from the local heap of the thread where the allocation is performed. Because allocations are always done from a thread’s local heap, they need not be synchronized. However, since objects can move between threads before being deallocated, *deallocations* may still occur concurrently. Therefore, Leijen et al. introduce a concept of *local* and *global* free lists. When an object is deallocated on the same thread it was originally allocated on, it is placed on the local free list; if it is deallocated on another thread, it goes on the global free list for the heap of the thread from which it originated. To allocate, the local free list is used first; if it is empty, the entire global free list is popped onto the local free list. Since the local free list is only ever accessed by the thread it belongs to, it does not require synchronization at all, and because the global free list is popped from infrequently, the cost of synchronization has a reduced impact. A majority of allocations can occur without any synchronization at all; and deallocations only require synchronization when an object has left its parent thread (a relatively uncommon case). Implementation --- A slab is represented as an array of `MAX_THREADS` *shards*. A shard consists of a vector of one or more *pages* plus associated metadata. Finally, a page consists of an array of *slots*, head indices for the local and remote free lists. ``` ┌─────────────┐ │ shard 1 │ │ │ ┌─────────────┐ ┌────────┐ │ pages───────┼───▶│ page 1 │ │ │ ├─────────────┤ ├─────────────┤ ┌────▶│ next──┼─┐ │ shard 2 │ │ page 2 │ │ ├────────┤ │ ├─────────────┤ │ │ │ │XXXXXXXX│ │ │ shard 3 │ │ local_head──┼──┘ ├────────┤ │ └─────────────┘ │ remote_head─┼──┐ │ │◀┘ ... ├─────────────┤ │ │ next──┼─┐ ┌─────────────┐ │ page 3 │ │ ├────────┤ │ │ shard n │ └─────────────┘ │ │XXXXXXXX│ │ └─────────────┘ ... │ ├────────┤ │ ┌─────────────┐ │ │XXXXXXXX│ │ │ page n │ │ ├────────┤ │ └─────────────┘ │ │ │◀┘ └────▶│ next──┼───▶ ... ├────────┤ │XXXXXXXX│ └────────┘ ``` The size of the first page in a shard is always a power of two, and every subsequent page added after the first is twice as large as the page that preceeds it. ``` pg. ┌───┐ ┌─┬─┐ │ 0 │───▶ │ │ ├───┤ ├─┼─┼─┬─┐ │ 1 │───▶ │ │ │ │ ├───┤ ├─┼─┼─┼─┼─┬─┬─┬─┐ │ 2 │───▶ │ │ │ │ │ │ │ │ ├───┤ ├─┼─┼─┼─┼─┼─┼─┼─┼─┬─┬─┬─┬─┬─┬─┬─┐ │ 3 │───▶ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └───┘ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ``` When searching for a free slot, the smallest page is searched first, and if it is full, the search proceeds to the next page until either a free slot is found or all available pages have been searched. If all available pages have been searched and the maximum number of pages has not yet been reached, a new page is then allocated. Since every page is twice as large as the previous page, and all page sizes are powers of two, we can determine the page index that contains a given address by shifting the address down by the smallest page size and looking at how many twos places necessary to represent that number, telling us what power of two page size it fits inside of. We can determine the number of twos places by counting the number of leading zeros (unused twos places) in the number’s binary representation, and subtracting that count from the total number of bits in a word. The formula for determining the page number that contains an offset is thus: ``` WIDTH - ((offset + INITIAL_PAGE_SIZE) >> INDEX_SHIFT).leading_zeros() ``` where `WIDTH` is the number of bits in a `usize`, and `INDEX_SHIFT` is ``` INITIAL_PAGE_SIZE.trailing_zeros() + 1; ``` Module sharded_slab::pool === A lock-free concurrent object pool. See the `Pool` type’s documentation for details on the object pool API and how it differs from the `Slab` API. Structs --- * OwnedRefAn owned guard that allows shared immutable access to an object in a pool. * OwnedRefMutAn owned guard that allows exclusive, mutable access to an object in a pool. * PoolA lock-free concurrent object pool. * RefA guard that allows access to an object in a pool. * RefMutA guard that allows exclusive mutable access to an object in a pool. Struct sharded_slab::DefaultConfig === ``` pub struct DefaultConfig { /* private fields */ } ``` Default slab configuration values. Trait Implementations --- ### impl Clone for DefaultConfig #### fn clone(&self) -> DefaultConfig Returns a copy of the value. Read more1.0.0 · source#### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. #### const INITIAL_PAGE_SIZE: usize = 32usize The size of the first page in each shard. The maximum number of threads which can access the slab. The maximum number of pages in each shard in the slab. Sets a number of high-order bits in each index which are reserved from user code. #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Auto Trait Implementations --- ### impl RefUnwindSafe for DefaultConfig ### impl Send for DefaultConfig ### impl Sync for DefaultConfig ### impl Unpin for DefaultConfig ### impl UnwindSafe for DefaultConfig Blanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T> ToOwned for Twhere T: Clone, #### type Owned = T The resulting type after obtaining ownership.#### fn to_owned(&self) -> T Creates owned data from borrowed data, usually by cloning. Uses borrowed data to replace owned data, usually by cloning. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct sharded_slab::Entry === ``` pub struct Entry<'a, T, C: Config = DefaultConfig> { /* private fields */ } ``` A handle that allows access to an occupied entry in a `Slab`. While the guard exists, it indicates to the slab that the item the guard references is currently being accessed. If the item is removed from the slab while a guard exists, the removal will be deferred until all guards are dropped. Implementations --- ### impl<'a, T, C: Config> Entry<'a, T, C#### pub fn key(&self) -> usize Returns the key used to access the guard. Trait Implementations --- ### impl<'a, T, C> Debug for Entry<'a, T, C>where T: Debug, C: Config, #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. The resulting type after dereferencing.#### fn deref(&self) -> &Self::Target Dereferences the value.### impl<'a, T, C: Config> Drop for Entry<'a, T, C#### fn drop(&mut self) Executes the destructor for this type. T: PartialEq<T>, C: Config, #### fn eq(&self, other: &T) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.Auto Trait Implementations --- ### impl<'a, T, C = DefaultConfig> !RefUnwindSafe for Entry<'a, T, C### impl<'a, T, C = DefaultConfig> !Send for Entry<'a, T, C### impl<'a, T, C = DefaultConfig> !Sync for Entry<'a, T, C### impl<'a, T, C> Unpin for Entry<'a, T, C### impl<'a, T, C = DefaultConfig> !UnwindSafe for Entry<'a, T, CBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct sharded_slab::OwnedEntry === ``` pub struct OwnedEntry<T, C = DefaultConfig>where C: Config,{ /* private fields */ } ``` An owned reference to an occupied entry in a `Slab`. While the guard exists, it indicates to the slab that the item the guard references is currently being accessed. If the item is removed from the slab while the guard exists, the removal will be deferred until all guards are dropped. Unlike `Entry`, which borrows the slab, an `OwnedEntry` clones the `Arc` around the slab. Therefore, it keeps the slab from being dropped until all such guards have been dropped. This means that an `OwnedEntry` may be held for an arbitrary lifetime. Examples --- ``` use std::sync::Arc; let slab: Arc<Slab<&'static str>> = Arc::new(Slab::new()); let key = slab.insert("hello world").unwrap(); // Look up the created key, returning an `OwnedEntry`. let value = slab.clone().get_owned(key).unwrap(); // Now, the original `Arc` clone of the slab may be dropped, but the // returned `OwnedEntry` can still access the value. assert_eq!(value, "hello world"); ``` Unlike `Entry`, an `OwnedEntry` may be stored in a struct which must live for the `'static` lifetime: ``` use sharded_slab::OwnedEntry; use std::sync::Arc; pub struct MyStruct { entry: OwnedEntry<&'static str>, // ... other fields ... } // Suppose this is some arbitrary function which requires a value that // lives for the 'static lifetime... fn function_requiring_static<T: 'static>(t: &T) { // ... do something extremely important and interesting ... } let slab: Arc<Slab<&'static str>> = Arc::new(Slab::new()); let key = slab.insert("hello world").unwrap(); // Look up the created key, returning an `OwnedEntry`. let entry = slab.clone().get_owned(key).unwrap(); let my_struct = MyStruct { entry, // ... }; // We can use `my_struct` anywhere where it is required to have the // `'static` lifetime: function_requiring_static(&my_struct); ``` `OwnedEntry`s may be sent between threads: ``` use std::{thread, sync::Arc}; let slab: Arc<Slab<&'static str>> = Arc::new(Slab::new()); let key = slab.insert("hello world").unwrap(); // Look up the created key, returning an `OwnedEntry`. let value = slab.clone().get_owned(key).unwrap(); thread::spawn(move || { assert_eq!(value, "hello world"); // ... }).join().unwrap(); ``` Implementations --- ### impl<T, C> OwnedEntry<T, C>where C: Config, #### pub fn key(&self) -> usize Returns the key used to access this guard Trait Implementations --- ### impl<T, C> Debug for OwnedEntry<T, C>where T: Debug, C: Config, #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. C: Config, #### type Target = T The resulting type after dereferencing.#### fn deref(&self) -> &Self::Target Dereferences the value.### impl<T, C> Drop for OwnedEntry<T, C>where C: Config, #### fn drop(&mut self) Executes the destructor for this type. T: PartialEq<T>, C: Config, #### fn eq(&self, other: &T) -> bool This method tests for `self` and `other` values to be equal, and is used by `==`.1.0.0 · source#### fn ne(&self, other: &Rhs) -> bool This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.### impl<T, C> Send for OwnedEntry<T, C>where T: Sync, C: Config, ### impl<T, C> Sync for OwnedEntry<T, C>where T: Sync, C: Config, Auto Trait Implementations --- ### impl<T, C = DefaultConfig> !RefUnwindSafe for OwnedEntry<T, C### impl<T, C> Unpin for OwnedEntry<T, C### impl<T, C = DefaultConfig> !UnwindSafe for OwnedEntry<T, CBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct sharded_slab::UniqueIter === ``` pub struct UniqueIter<'a, T, C: Config> { /* private fields */ } ``` An exclusive fused iterator over the items in a `Slab`. Trait Implementations --- ### impl<'a, T: Debug, C: Debug + Config> Debug for UniqueIter<'a, T, C#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. The type of the elements being iterated over.#### fn next(&mut self) -> Option<Self::ItemAdvances the iterator and returns the next value. &mut self ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where Self: Sized, 🔬This is a nightly-only experimental API. (`iter_next_chunk`)Advances the iterator and returns an array containing the next `N` values. Read more1.0.0 · source#### fn size_hint(&self) -> (usize, Option<usize>) Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source#### fn count(self) -> usizewhere Self: Sized, Consumes the iterator, counting the number of iterations and returning it. Read more1.0.0 · source#### fn last(self) -> Option<Self::Item>where Self: Sized, Consumes the iterator, returning the last element. Self: Sized, Creates an iterator starting at the same point, but stepping by the given amount at each iteration. Read more1.0.0 · source#### fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>where Self: Sized, U: IntoIterator<Item = Self::Item>, Takes two iterators and creates a new iterator over both in sequence. Read more1.0.0 · source#### fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>where Self: Sized, U: IntoIterator, ‘Zips up’ two iterators into a single iterator of pairs. Self: Sized, G: FnMut() -> Self::Item, 🔬This is a nightly-only experimental API. (`iter_intersperse`)Creates a new iterator which places an item generated by `separator` between adjacent items of the original iterator. Read more1.0.0 · source#### fn map<B, F>(self, f: F) -> Map<Self, F>where Self: Sized, F: FnMut(Self::Item) -> B, Takes a closure and creates an iterator which calls that closure on each element. Read more1.21.0 · source#### fn for_each<F>(self, f: F)where Self: Sized, F: FnMut(Self::Item), Calls a closure on each element of an iterator. Read more1.0.0 · source#### fn filter<P>(self, predicate: P) -> Filter<Self, P>where Self: Sized, P: FnMut(&Self::Item) -> bool, Creates an iterator which uses a closure to determine if an element should be yielded. Read more1.0.0 · source#### fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>where Self: Sized, F: FnMut(Self::Item) -> Option<B>, Creates an iterator that both filters and maps. Read more1.0.0 · source#### fn enumerate(self) -> Enumerate<Self>where Self: Sized, Creates an iterator which gives the current iteration count as well as the next value. Read more1.0.0 · source#### fn peekable(self) -> Peekable<Self>where Self: Sized, Creates an iterator which can use the `peek` and `peek_mut` methods to look at the next element of the iterator without consuming it. See their documentation for more information. Read more1.0.0 · source#### fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>where Self: Sized, P: FnMut(&Self::Item) -> bool, Creates an iterator that `skip`s elements based on a predicate. Read more1.0.0 · source#### fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>where Self: Sized, P: FnMut(&Self::Item) -> bool, Creates an iterator that yields elements based on a predicate. Read more1.57.0 · source#### fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>where Self: Sized, P: FnMut(Self::Item) -> Option<B>, Creates an iterator that both yields elements based on a predicate and maps. Read more1.0.0 · source#### fn skip(self, n: usize) -> Skip<Self>where Self: Sized, Creates an iterator that skips the first `n` elements. Read more1.0.0 · source#### fn take(self, n: usize) -> Take<Self>where Self: Sized, Creates an iterator that yields the first `n` elements, or fewer if the underlying iterator ends sooner. Read more1.0.0 · source#### fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>where Self: Sized, F: FnMut(&mut St, Self::Item) -> Option<B>, An iterator adapter which, like `fold`, holds internal state, but unlike `fold`, produces a new iterator. Read more1.0.0 · source#### fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>where Self: Sized, U: IntoIterator, F: FnMut(Self::Item) -> U, Creates an iterator that works like map, but flattens nested structure. Self: Sized, F: FnMut(&[Self::Item; N]) -> R, 🔬This is a nightly-only experimental API. (`iter_map_windows`)Calls the given function `f` for each contiguous window of size `N` over `self` and returns an iterator over the outputs of `f`. Like `slice::windows()`, the windows during mapping overlap as well. Read more1.0.0 · source#### fn fuse(self) -> Fuse<Self>where Self: Sized, Creates an iterator which ends after the first `None`. Read more1.0.0 · source#### fn inspect<F>(self, f: F) -> Inspect<Self, F>where Self: Sized, F: FnMut(&Self::Item), Does something with each element of an iterator, passing the value on. Read more1.0.0 · source#### fn by_ref(&mut self) -> &mut Selfwhere Self: Sized, Borrows an iterator, rather than consuming it. Read more1.0.0 · source#### fn collect<B>(self) -> Bwhere B: FromIterator<Self::Item>, Self: Sized, Transforms an iterator into a collection. E: Extend<Self::Item>, Self: Sized, 🔬This is a nightly-only experimental API. (`iter_collect_into`)Collects all the items from an iterator into a collection. Read more1.0.0 · source#### fn partition<B, F>(self, f: F) -> (B, B)where Self: Sized, B: Default + Extend<Self::Item>, F: FnMut(&Self::Item) -> bool, Consumes an iterator, creating two collections from it. Self: Sized, P: FnMut(Self::Item) -> bool, 🔬This is a nightly-only experimental API. (`iter_is_partitioned`)Checks if the elements of this iterator are partitioned according to the given predicate, such that all those that return `true` precede all those that return `false`. Read more1.27.0 · source#### fn try_fold<B, F, R>(&mut self, init: B, f: F) -> Rwhere Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Output = B>, An iterator method that applies a function as long as it returns successfully, producing a single, final value. Read more1.27.0 · source#### fn try_for_each<F, R>(&mut self, f: F) -> Rwhere Self: Sized, F: FnMut(Self::Item) -> R, R: Try<Output = ()>, An iterator method that applies a fallible function to each item in the iterator, stopping at the first error and returning that error. Read more1.0.0 · source#### fn fold<B, F>(self, init: B, f: F) -> Bwhere Self: Sized, F: FnMut(B, Self::Item) -> B, Folds every element into an accumulator by applying an operation, returning the final result. Read more1.51.0 · source#### fn reduce<F>(self, f: F) -> Option<Self::Item>where Self: Sized, F: FnMut(Self::Item, Self::Item) -> Self::Item, Reduces the elements to a single one, by repeatedly applying a reducing operation. &mut self, f: F ) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryTypewhere Self: Sized, F: FnMut(Self::Item, Self::Item) -> R, R: Try<Output = Self::Item>, <R as Try>::Residual: Residual<Option<Self::Item>>, 🔬This is a nightly-only experimental API. (`iterator_try_reduce`)Reduces the elements to a single one by repeatedly applying a reducing operation. If the closure returns a failure, the failure is propagated back to the caller immediately. Read more1.0.0 · source#### fn all<F>(&mut self, f: F) -> boolwhere Self: Sized, F: FnMut(Self::Item) -> bool, Tests if every element of the iterator matches a predicate. Read more1.0.0 · source#### fn any<F>(&mut self, f: F) -> boolwhere Self: Sized, F: FnMut(Self::Item) -> bool, Tests if any element of the iterator matches a predicate. Read more1.0.0 · source#### fn find<P>(&mut self, predicate: P) -> Option<Self::Item>where Self: Sized, P: FnMut(&Self::Item) -> bool, Searches for an element of an iterator that satisfies a predicate. Read more1.30.0 · source#### fn find_map<B, F>(&mut self, f: F) -> Option<B>where Self: Sized, F: FnMut(Self::Item) -> Option<B>, Applies function to the elements of iterator and returns the first non-none result. &mut self, f: F ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryTypewhere Self: Sized, F: FnMut(&Self::Item) -> R, R: Try<Output = bool>, <R as Try>::Residual: Residual<Option<Self::Item>>, 🔬This is a nightly-only experimental API. (`try_find`)Applies function to the elements of iterator and returns the first true result or the first error. Read more1.0.0 · source#### fn position<P>(&mut self, predicate: P) -> Option<usize>where Self: Sized, P: FnMut(Self::Item) -> bool, Searches for an element in an iterator, returning its index. Read more1.6.0 · source#### fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>where B: Ord, Self: Sized, F: FnMut(&Self::Item) -> B, Returns the element that gives the maximum value from the specified function. Read more1.15.0 · source#### fn max_by<F>(self, compare: F) -> Option<Self::Item>where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering, Returns the element that gives the maximum value with respect to the specified comparison function. Read more1.6.0 · source#### fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>where B: Ord, Self: Sized, F: FnMut(&Self::Item) -> B, Returns the element that gives the minimum value from the specified function. Read more1.15.0 · source#### fn min_by<F>(self, compare: F) -> Option<Self::Item>where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering, Returns the element that gives the minimum value with respect to the specified comparison function. Read more1.0.0 · source#### fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)where FromA: Default + Extend<A>, FromB: Default + Extend<B>, Self: Sized + Iterator<Item = (A, B)>, Converts an iterator of pairs into a pair of containers. Read more1.36.0 · source#### fn copied<'a, T>(self) -> Copied<Self>where T: 'a + Copy, Self: Sized + Iterator<Item = &'a T>, Creates an iterator which copies all of its elements. Read more1.0.0 · source#### fn cloned<'a, T>(self) -> Cloned<Self>where T: 'a + Clone, Self: Sized + Iterator<Item = &'a T>, Creates an iterator which `clone`s all of its elements. Self: Sized, 🔬This is a nightly-only experimental API. (`iter_array_chunks`)Returns an iterator over `N` elements of the iterator at a time. Read more1.11.0 · source#### fn sum<S>(self) -> Swhere Self: Sized, S: Sum<Self::Item>, Sums the elements of an iterator. Read more1.11.0 · source#### fn product<P>(self) -> Pwhere Self: Sized, P: Product<Self::Item>, Iterates over the entire iterator, multiplying all the elements Self: Sized, I: IntoIterator, F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering, 🔬This is a nightly-only experimental API. (`iter_order_by`)Lexicographically compares the elements of this `Iterator` with those of another with respect to the specified comparison function. Read more1.5.0 · source#### fn partial_cmp<I>(self, other: I) -> Option<Ordering>where I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>, Self: Sized, Lexicographically compares the `PartialOrd` elements of this `Iterator` with those of another. The comparison works like short-circuit evaluation, returning a result without comparing the remaining elements. As soon as an order can be determined, the evaluation stops and a result is returned. Self: Sized, I: IntoIterator, F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>, 🔬This is a nightly-only experimental API. (`iter_order_by`)Lexicographically compares the elements of this `Iterator` with those of another with respect to the specified comparison function. Read more1.5.0 · source#### fn eq<I>(self, other: I) -> boolwhere I: IntoIterator, Self::Item: PartialEq<<I as IntoIterator>::Item>, Self: Sized, Determines if the elements of this `Iterator` are equal to those of another. Self: Sized, I: IntoIterator, F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool, 🔬This is a nightly-only experimental API. (`iter_order_by`)Determines if the elements of this `Iterator` are equal to those of another with respect to the specified equality function. Read more1.5.0 · source#### fn ne<I>(self, other: I) -> boolwhere I: IntoIterator, Self::Item: PartialEq<<I as IntoIterator>::Item>, Self: Sized, Determines if the elements of this `Iterator` are not equal to those of another. Read more1.5.0 · source#### fn lt<I>(self, other: I) -> boolwhere I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>, Self: Sized, Determines if the elements of this `Iterator` are lexicographically less than those of another. Read more1.5.0 · source#### fn le<I>(self, other: I) -> boolwhere I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>, Self: Sized, Determines if the elements of this `Iterator` are lexicographically less or equal to those of another. Read more1.5.0 · source#### fn gt<I>(self, other: I) -> boolwhere I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>, Self: Sized, Determines if the elements of this `Iterator` are lexicographically greater than those of another. Read more1.5.0 · source#### fn ge<I>(self, other: I) -> boolwhere I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>, Self: Sized, Determines if the elements of this `Iterator` are lexicographically greater than or equal to those of another. Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Option<Ordering>, 🔬This is a nightly-only experimental API. (`is_sorted`)Checks if the elements of this iterator are sorted using the given comparator function. Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd<K>, 🔬This is a nightly-only experimental API. (`is_sorted`)Checks if the elements of this iterator are sorted using the given key extraction function. --- ### impl<'a, T, C> !RefUnwindSafe for UniqueIter<'a, T, C### impl<'a, T, C> !Send for UniqueIter<'a, T, C### impl<'a, T, C> !Sync for UniqueIter<'a, T, C### impl<'a, T, C> Unpin for UniqueIter<'a, T, C### impl<'a, T, C> !UnwindSafe for UniqueIter<'a, T, CBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<I> IntoIterator for Iwhere I: Iterator, #### type Item = <I as Iterator>::Item The type of the elements being iterated over.#### type IntoIter = I Which kind of iterator are we turning this into?const: unstable · source#### fn into_iter(self) -> I Creates an iterator from a value. U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion. Struct sharded_slab::VacantEntry === ``` pub struct VacantEntry<'a, T, C: Config = DefaultConfig> { /* private fields */ } ``` A handle to a vacant entry in a `Slab`. `VacantEntry` allows constructing values with the key that they will be assigned to. Examples --- ``` let mut slab = Slab::new(); let hello = { let entry = slab.vacant_entry().unwrap(); let key = entry.key(); entry.insert((key, "hello")); key }; assert_eq!(hello, slab.get(hello).unwrap().0); assert_eq!("hello", slab.get(hello).unwrap().1); ``` Implementations --- ### impl<'a, T, C: Config> VacantEntry<'a, T, C#### pub fn insert(self, val: T) Insert a value in the entry. To get the integer index at which this value will be inserted, use `key` prior to calling `insert`. ##### Examples ``` let mut slab = Slab::new(); let hello = { let entry = slab.vacant_entry().unwrap(); let key = entry.key(); entry.insert((key, "hello")); key }; assert_eq!(hello, slab.get(hello).unwrap().0); assert_eq!("hello", slab.get(hello).unwrap().1); ``` #### pub fn key(&self) -> usize Return the integer index at which this entry will be inserted. A value stored in this entry will be associated with this key. ##### Examples ``` let mut slab = Slab::new(); let hello = { let entry = slab.vacant_entry().unwrap(); let key = entry.key(); entry.insert((key, "hello")); key }; assert_eq!(hello, slab.get(hello).unwrap().0); assert_eq!("hello", slab.get(hello).unwrap().1); ``` Trait Implementations --- ### impl<'a, T: Debug, C: Debug + Config> Debug for VacantEntry<'a, T, C#### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. Read moreAuto Trait Implementations --- ### impl<'a, T, C = DefaultConfig> !RefUnwindSafe for VacantEntry<'a, T, C### impl<'a, T, C = DefaultConfig> !Send for VacantEntry<'a, T, C### impl<'a, T, C = DefaultConfig> !Sync for VacantEntry<'a, T, C### impl<'a, T, C> Unpin for VacantEntry<'a, T, C### impl<'a, T, C = DefaultConfig> !UnwindSafe for VacantEntry<'a, T, CBlanket Implementations --- ### impl<T> Any for Twhere T: 'static + ?Sized, #### fn type_id(&self) -> TypeId Gets the `TypeId` of `self`. T: ?Sized, #### fn borrow(&self) -> &T Immutably borrows from an owned value. T: ?Sized, #### fn borrow_mut(&mut self) -> &mut T Mutably borrows from an owned value. #### fn from(t: T) -> T Returns the argument unchanged. ### impl<T, U> Into<U> for Twhere U: From<T>, #### fn into(self) -> U Calls `U::from(self)`. That is, this conversion is whatever the implementation of `From<T> for U` chooses to do. ### impl<T, U> TryFrom<U> for Twhere U: Into<T>, #### type Error = Infallible The type returned in the event of a conversion error.#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::ErrorPerforms the conversion.### impl<T, U> TryInto<U> for Twhere U: TryFrom<T>, #### type Error = <U as TryFrom<T>>::Error The type returned in the event of a conversion error.#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::ErrorPerforms the conversion.
pyramid-auth
readthedoc
Python
pyramid_auth 0.4 documentation ### Navigation * [pyramid_auth 0.4 documentation](index.html#document-index) » pyramid_auth’s documentation![¶](#pyramid-auth-s-documentation) === Introduction[¶](#introduction) --- This is a plugin for pyramid which provides a simple authentication system. The idea was to use exising authentication’s policies to provide multiple support. Currently this plugin support cookie, remote_user and ldap policies. By default the cookie and ldap policies generate the form and the urls automatically: * /login: display the login form * /logout: logout the user * /forbidden: the user is redirected to this page when he is logged but doesn’t have the right permission to see a page. If you want to generate your own urls you can set the following parameter pyramid_auth.no_routes > If set in your config, no routes will be added automatically. It’s usefull > when you use an API for authentication. Note If you want to change the rendering of the template to include your design you can: * Create a template in the folder templates/auth of your project named base.mak. Each templates (login, forbidden) inherit from it. * Create the login.mak and/or forbidden.mak templates in the folder templates/auth to overwrite the default ones. Cookie policy[¶](#cookie-policy) --- This policy uses pyramid.authentication.AuthTktAuthenticationPolicy. When a user wants to login, it displays a login/password form to process to the authentication. ### Installation[¶](#installation) In your .ini file add pyramid_auth to pyramid.includes like this: ``` pyramid.includes = pyramid_auth ... ``` Also you need to add pyramid_auth in setup.py in install_requires: ``` install_requires=[ ... 'pyramid_auth' ] ``` ### Configuration[¶](#configuration) You need to set some options in your .ini file. See this example for the required ones: ``` pyramid_auth.policy = cookie pyramid_auth.cookie.secret = mysecret pyramid_auth.cookie.validate_function = validate_function ``` #### Options[¶](#options) pyramid_auth.cookie.validate_function > Function to validate the credential. It can make some call in your DB or make some static verification. Here is a small example: > ``` > def validate(request, login, password): > if login == 'Bob' and password == 'bobpwd': > return True > return False > ``` > Required. pyramid_auth.cookie.secret > The secret (a string) used for auth_tkt cookie signing. > Required. pyramid_auth.cookie.callback > Default: None. A callback passed the userid and the > request, expected to return None if the userid doesn’t > exist or a sequence of principal identifiers (possibly empty) if > the user does exist. If callback is None, the userid > will be assumed to exist with no principals. Optional. pyramid_auth.cookie.cookie_name > Default: auth_tkt. The cookie name used > (string). Optional. pyramid_auth.cookie.secure > Default: False. Only send the cookie back over a secure > conn. Optional. pyramid_auth.cookie.include_ip > Default: False. Make the requesting IP address part of > the authentication data in the cookie. Optional. > For IPv6 this option is not recommended. The mod_auth_tkt > specification does not specify how to handle IPv6 addresses, so using > this option in combination with IPv6 addresses may cause an > incompatible cookie. It ties the authentication ticket to that > individual’s IPv6 address. pyramid_auth.cookie.timeout > Default: None. Maximum number of seconds which a newly > issued ticket will be considered valid. After this amount of > time, the ticket will expire (effectively logging the user > out). If this value is None, the ticket never expires. > Optional. pyramid_auth.cookie.reissue_time > Default: None. If this parameter is set, it represents the number > of seconds that must pass before an authentication token cookie is > automatically reissued as the result of a request which requires > pyramid_auth. The duration is measured as the number of seconds > since the last auth_tkt cookie was issued and ‘now’. If this value is > 0, a new ticket cookie will be reissued on every request which > requires authentication. > A good rule of thumb: if you want auto-expired cookies based on > inactivity: set the timeout value to 1200 (20 mins) and set the > reissue_time value to perhaps a tenth of the timeout value > (120 or 2 mins). It’s nonsensical to set the timeout value lower > than the reissue_time value, as the ticket will never be reissued > if so. However, such a configuration is not explicitly prevented. > Optional. pyramid_auth.cookie.max_age > Default: None. The max age of the auth_tkt cookie, in > seconds. This differs from timeout inasmuch as timeout > represents the lifetime of the ticket contained in the cookie, > while this value represents the lifetime of the cookie itself. > When this value is set, the cookie’s Max-Age and > Expires settings will be set, allowing the auth_tkt cookie > to last between browser sessions. It is typically nonsensical > to set this to a value that is lower than timeout or > reissue_time, although it is not explicitly prevented. > Optional. pyramid_auth.cookie.path > Default: /. The path for which the auth_tkt cookie is valid. > May be desirable if the application only serves part of a domain. > Optional. pyramid_auth.cookie.http_only > Default: False. Hide cookie from JavaScript by setting the > HttpOnly flag. Not honored by all browsers. > Optional. pyramid_auth.cookie.wild_domain > Default: True. An auth_tkt cookie will be generated for the > wildcard domain. If your site is hosted as example.com this > will make the cookie available for sites underneath example.com > such as www.example.com. > Optional. pyramid_auth.cookie.parent_domain > Default: False. An auth_tkt cookie will be generated for the > parent domain of the current site. For example if your site is > hosted under www.example.com a cookie will be generated for > .example.com. This can be useful if you have multiple sites > sharing the same domain. This option supercedes the wild_domain > option. > Optional. pyramid_auth.cookie.domain > Default: None. If provided the auth_tkt cookie will only be > set for this domain. This option is not compatible with wild_domain > and parent_domain. > Optional. pyramid_auth.cookie.hashalg > Default: sha512 (the literal string). > Any hash algorithm supported by Python’s hashlib.new() function > can be used as the hashalg. > Cookies generated by different instances of AuthTktAuthenticationPolicy > using different hashalg options are not compatible. Switching the > hashalg will imply that all existing users with a valid cookie will > be required to re-login. > Optional. pyramid_auth.cookie.debug > Default: False. If debug is True, log messages to the > Pyramid debug logger about the results of various authentication > steps. > Optional. Remote_user policy[¶](#remote-user-policy) --- This policy uses pyramid.authentication.RemoteUserAuthenticationPolicy. The user is authenticated by the http server which provides in the environ a key with the login. ### Installation[¶](#id1) In your .ini file add pyramid_auth to pyramid.includes like this: ``` pyramid.includes = pyramid_auth ... ``` Also you need to add pyramid_auth in setup.py in install_requires: ``` install_requires=[ ... 'pyramid_auth' ] ``` ### Configuration[¶](#id2) You need to set some options in your .ini file. See this example for the required ones: ``` pyramid_auth.policy = remote_user ``` #### Options[¶](#id3) environ_key Default: REMOTE_USER. The key in the WSGI environ which provides the userid. Optional. callback Default: None. A callback passed the userid and the request, expected to return None if the userid doesn’t exist or a sequence of principal identifiers (possibly empty) representing groups if the user does exist. If callback is None, the userid will be assumed to exist with no group principals. Optional. debug Default: False. If debug is True, log messages to the Pyramid debug logger about the results of various authentication steps. Optional. ldap policy[¶](#ldap-policy) --- This policy uses pyramid_ldap. Basically the same logic than the cookie policy but we just validate the login/password with the ldap. As you will see in the configuration, it’s possible to get the ldap user’s groups. In this way, you will be able to set some permissions in your pyramid project according to the ldap configuration. ### Installation[¶](#id4) You need to have openldap header installed. For example on centos/fedora: ``` yum install openldap-devel ``` In your .ini file add pyramid_ldap and pyramid_auth to pyramid.includes like this: ``` pyramid.includes = pyramid_ldap pyramid_auth ... ``` Warning the order is important, you need to include pyramid_ldap before pyramid_auth Also you need to add pyramid_ldap and pyramid_auth in setup.py in install_requires: ``` install_requires=[ ... 'pyramid_ldap' 'pyramid_auth' ] ``` Note pyramid_ldap is not installed in pyramid_auth since we don’t want to force the installation of ldap if we don’t want to use it! ### Configuration[¶](#id5) You need to set some options in your .ini file. See this example for the required ones: ``` pyramid_auth.policy = ldap pyramid_auth.ldap.cookie.secret = mysecret pyramid_auth.ldap.setup.uri = http://ldap.lereskp.fr pyramid_auth.ldap.setup.passwd = myldappasswd pyramid_auth.ldap.login.base_dn = CN=Users,DC=lereskp,DC=fr pyramid_auth.ldap.login.filter_tmpl = (sAMAccountName=$login) ``` If you want to put some permissions according to the ldap groups, you have to give the parameters to be able to query the ldap: ``` pyramid_auth.policy = ldap pyramid_auth.ldap.cookie.secret = mysecret pyramid_auth.ldap.setup.uri = http://ldap.lereskp.fr pyramid_auth.ldap.setup.passwd = myldappasswd pyramid_auth.ldap.login.base_dn = CN=Users,DC=lereskp,DC=fr pyramid_auth.ldap.login.filter_tmpl = (sAMAccountName=$login) pyramid_auth.ldap.groups.base_dn = CN=Users,DC=lereskp,DC=fr pyramid_auth.ldap.groups.filter_tmpl = (&(objectCategory=group)(member=$userdn)) ``` #### Options[¶](#id6) ##### Cookie[¶](#cookie) pyramid_auth.ldap.cookie.secret > The secret (a string) used for auth_tkt cookie signing. > Required. pyramid_auth.ldap.cookie.callback > Default: None. A callback passed the userid and the > request, expected to return None if the userid doesn’t > exist or a sequence of principal identifiers (possibly empty) if > the user does exist. If callback is None, the userid > will be assumed to exist with no principals. Optional. pyramid_auth.ldap.cookie.cookie_name > Default: auth_tkt. The cookie name used > (string). Optional. pyramid_auth.ldap.cookie.secure > Default: False. Only send the cookie back over a secure > conn. Optional. pyramid_auth.ldap.cookie.include_ip > Default: False. Make the requesting IP address part of > the authentication data in the cookie. Optional. > For IPv6 this option is not recommended. The mod_auth_tkt > specification does not specify how to handle IPv6 addresses, so using > this option in combination with IPv6 addresses may cause an > incompatible cookie. It ties the authentication ticket to that > individual’s IPv6 address. pyramid_auth.ldap.cookie.timeout > Default: None. Maximum number of seconds which a newly > issued ticket will be considered valid. After this amount of > time, the ticket will expire (effectively logging the user > out). If this value is None, the ticket never expires. > Optional. pyramid_auth.ldap.cookie.reissue_time > Default: None. If this parameter is set, it represents the number > of seconds that must pass before an authentication token cookie is > automatically reissued as the result of a request which requires > authentication. The duration is measured as the number of seconds > since the last auth_tkt cookie was issued and ‘now’. If this value is > 0, a new ticket cookie will be reissued on every request which > requires authentication. > A good rule of thumb: if you want auto-expired cookies based on > inactivity: set the timeout value to 1200 (20 mins) and set the > reissue_time value to perhaps a tenth of the timeout value > (120 or 2 mins). It’s nonsensical to set the timeout value lower > than the reissue_time value, as the ticket will never be reissued > if so. However, such a configuration is not explicitly prevented. > Optional. pyramid_auth.ldap.cookie.max_age > Default: None. The max age of the auth_tkt cookie, in > seconds. This differs from timeout inasmuch as timeout > represents the lifetime of the ticket contained in the cookie, > while this value represents the lifetime of the cookie itself. > When this value is set, the cookie’s Max-Age and > Expires settings will be set, allowing the auth_tkt cookie > to last between browser sessions. It is typically nonsensical > to set this to a value that is lower than timeout or > reissue_time, although it is not explicitly prevented. > Optional. pyramid_auth.ldap.cookie.path > Default: /. The path for which the auth_tkt cookie is valid. > May be desirable if the application only serves part of a domain. > Optional. pyramid_auth.ldap.cookie.http_only > Default: False. Hide cookie from JavaScript by setting the > HttpOnly flag. Not honored by all browsers. > Optional. pyramid_auth.ldap.cookie.wild_domain > Default: True. An auth_tkt cookie will be generated for the > wildcard domain. If your site is hosted as example.com this > will make the cookie available for sites underneath example.com > such as www.example.com. > Optional. pyramid_auth.ldap.cookie.parent_domain > Default: False. An auth_tkt cookie will be generated for the > parent domain of the current site. For example if your site is > hosted under www.example.com a cookie will be generated for > .example.com. This can be useful if you have multiple sites > sharing the same domain. This option supercedes the wild_domain > option. > Optional. pyramid_auth.ldap.cookie.domain > Default: None. If provided the auth_tkt cookie will only be > set for this domain. This option is not compatible with wild_domain > and parent_domain. > Optional. pyramid_auth.ldap.cookie.hashalg > Default: sha512 (the literal string). > Any hash algorithm supported by Python’s hashlib.new() function > can be used as the hashalg. > Cookies generated by different instances of AuthTktAuthenticationPolicy > using different hashalg options are not compatible. Switching the > hashalg will imply that all existing users with a valid cookie will > be required to re-login. > Optional. pyramid_auth.ldap.cookie.debug > Default: False. If debug is True, log messages to the > Pyramid debug logger about the results of various authentication > steps. > Optional. ##### Setup[¶](#setup) pyramid_auth.ldap.setup.uri > ldap server uri. Required. pyramid_auth.ldap.setup.bind > Default None. Bind that will be used to bind a connector. Optional. pyramid_auth.ldap.setup.passwd > Default None. Password that will be used to bind a connector. Optional. pyramid_auth.ldap.setup.size > Default 10. pool size. Optional. pyramid_auth.ldap.setup.retry_max > Default 3. Number of attempts when a server is down. Optional. pyramid_auth.ldap.setup.retry_delay > Default: .1. Delay in seconds before a retry. Optional. pyramid_auth.ldap.setup.use_tls > Default False. Activate TLS when connecting. Optional. pyramid_auth.ldap.setup.timeout > Default -1. Connector timeout. Optional. pyramid_auth.ldap.setup.use_pool > Default True. Activates the pool. If False, will recreate a connector each time. Optional. ##### Login[¶](#login) pyramid_auth.ldap.login.base_dn > is the DN at which to begin the search. pyramid_auth.ldap.login.filter_tmpl > is a string which can be used as an LDAP filter: it should contain the replacement value %(login)s. pyramid_auth.ldap.login.scope > is any valid LDAP scope value (e.g. ldap.SCOPE_ONELEVEL). pyramid_auth.ldap.login.cache_period > is the number of seconds to cache login search results; if it is 0, login search results will not be cached. ##### Groups[¶](#groups) pyramid_auth.ldap.groups.base_dn > is the DN at which to begin the search. pyramid_auth.ldap.groups.filter_tmpl > is a string which can be used as an LDAP filter: it should contain the replacement value %(userdn)s. Important In pyramid_ldap userdn represent the user distinguished name. In pyramid_auth it represents the user uid. So you should make your filter_tmpl according to the user uid. pyramid_auth.ldap.groups.scope > is any valid LDAP scope value (e.g. ldap.SCOPE_SUBTREE). cache_period is the number of seconds to cache groups search results; if it is 0, groups search results will not be cached. ##### Extra[¶](#extra) pyramid_auth.ldap.validate_function > Default: None. You can set a function to validate the ldap login/password it you want to be more specific. Optional. pyramid_auth.ldap.callback > Default: None. A callback passed the userid and the > request to extend the groups found by the ldap groups query. > Optional. ### Quick search Enter search terms or a module, class or function name. ### Navigation * [pyramid_auth 0.4 documentation](index.html#document-index) »
MAd
cran
R
Package ‘MAd’ October 12, 2022 Type Package Title Meta-Analysis with Mean Differences Version 0.8-3 Date 2022-08-07 Maintainer <NAME> <<EMAIL>> Description A collection of functions for conducting a meta- analysis with mean differences data. It uses recommended procedures as described in The Handbook of Research Synthesis and Meta-Analysis (Cooper, Hedges, & Valentine, 2009). Depends R (>= 2.10.1) Suggests metafor, ggplot2 License GPL (>= 2) Encoding UTF-8 URL https://www.acdelre.com NeedsCompilation no Author <NAME> [aut, cre] (<https://orcid.org/0000-0002-9571-7623>), <NAME> [aut] (<https://orcid.org/0000-0003-4324-5676>) Repository CRAN Date/Publication 2022-08-06 22:40:02 UTC R topics documented: MAd-packag... 2 ag... 7 ancova_to_d... 10 ancova_to_d... 11 atte... 12 compute_dg... 13 compute_d... 14 compute_g... 16 dat.cooper15.... 17 dat.cooperA... 17 dat.hoy... 18 dat.sim.e... 18 dat.sim.fina... 18 dat.sim.ra... 19 dat.sim... 19 dat.sim... 19 d_to_... 20 f.ancova_to_... 21 fail_to_... 22 f_to_... 23 ic... 24 Kapp... 26 lor_to_... 27 maca... 28 macat... 30 mare... 32 mean_to_... 34 mean_to_d... 35 or_to_... 36 p.ancova_to_d... 37 p.ancova_to_d... 38 plotca... 39 plotco... 40 PubBia... 41 p_to_d... 42 p_to_d... 43 robustS... 44 r_from_ch... 45 r_from_... 46 r_from_d... 47 r_from_... 48 r_to_... 49 tt.ancova_to_... 50 t_to_... 51 wgt... 52 MAd-package Meta-Analysis with Mean Differences Description The Mad package contains a variety of functions for conducting a mean differences meta-analysis using recommended procedures as described in The Handbook of Research Synthesis and Meta- Analysis (<NAME>, and Valentine, 2009). The goal in creating this package was to provide user-friendly functions to assist researchers in the process of conducting a meta-analysis, from the initial to final stages of their analytic endeavor. The meta-analyst can begin their project by using MAd functions to derive d (standardized mean differences) and g (unbiased d) from a variety of statistics/values reported in the primary studies (e.g., raw means and sd, t-test). Then, the analyst can aggregate all within-study effect sizes (while accounting for within-study correlations among outcome measures and eliminating any dependencies in the dataset), calculate omnibus effect sizes under a fixed and random effects model, and assess for significant moderators (categorical and continuous, single and multi-predictor models) in the dataset. Finally, the meta-analyst can use one of several user-friendly graphics functions to visually represent their data. Details Package: MAd Type: Package Version: 0.8-2 Date: 2014-12-23 License: GPL-2 LazyLoad: yes The MAd package has integrated functions to facilitate the meta-analytic process at nearly every analytical stage. There are five broad areas of analysis that the MAd package targets: 1. Computations to Calculate Mean Differences: There are a variety of functions to compute d (standardized mean difference) and g (unbiased d) from various designs reported in the primary studies. Most functions were derived from Boren- stein’s chapter in The Handbook of Research Synthesis and Meta-Analysis (Cooper, Hedges, & Valentine, 2009; pp. 228-234). For additional conversion formulas see the compute.es package: https://CRAN.R-project.org/package=compute.es 2. Within-Study Aggregation of Effect Sizes: This fuction will simultaneously aggregate all within-study effect sizes while taking into account the correlations among the within-study outcome measures (Gleser & Olkin 2009; Gleser & Olkin 2009; Hedges & Olkin, 1985; Rosenthal et al., 2006). The default imputed correlation between within-study effect sizes is set at .50 (Wampold et al., 1997) and will compute an aggregated effect size for each study. This default of .50 is adjustable and can vary between outcome types. This MAd aggregation function implements Gleser & Olkin (1994; 2009) and Borenstein et al. (2009) procedures for aggregating dependent effect sizes. To our knowledge, this is the first statistical package/program to explicitly utilize and automate this type of aggregation procedure, which has a dual effect of saving the researcher substantial time while improving the accuracy of their analyses. 3. Fixed and Random Effects Omnibus Analysis: This package contains all the relevant functions to calculate fixed and random effects omnibus effect sizes, outputting the omnibus (i.e., overall) effect size, variance, standard error, upper and lower confidence intervals, and the Q-statistic (heterogeneity test). 4. Moderator Analyses: There are user-friendly functions to compute fixed and random effects moderator analyses. These include single and multiple predictor models for both categorical and continuous moderator data. 5. Graphics: This package has a variety of functions visually representing data. This includes boxplots and meta-regression scatterplots. 6. Sample of Additional Functions: Export MA output to nicely formatted Word tables. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. <NAME>., <NAME>., & <NAME>. (2009). The handbook of research synthesis and meta- analysis (2nd edition). New York: Russell Sage Foundation. Gleser & Olkin (1994). Stochastically dependent effect sizes. In <NAME>, & <NAME>, & J. C.(Eds.), The handbook of research synthesis (pp. 339-356). New York: Russell Sage Foundation. Gleser & Olkin (2009). Stochastically dependent effect sizes. In <NAME>, <NAME>, & <NAME>. Valentine (Eds.), The handbook of research synthesis and meta analysis (pp. 357-376). New York: Russell Sage Foundation. Viechtbauer, W (2010). metafor: Meta-Analysis Package for R. R package version 1.1-0. https://CRAN.R- project.org/package=metafor <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (1997). A meta- analysis of outcome studies comparing bona fide psychotherapies: Empiricially, ’all must have prizes.’ Psychological Bulletin, 122(3), 203-215. See Also compute.es package: https://CRAN.R-project.org/package=compute.es; metafor package: https://CRAN.R-project.org/package=metafor Examples ## EXAMPLES FOR EACH BROAD AREA # SAMPLE DATA: MA <- data.frame(id=factor(rep(1:5, 3)), measure=c(rep("dep",5), rep("anx",5), rep("shy",5)), es=c(rnorm(5, 0.8, .2), rnorm(5, 0.5, .1), rnorm(5, 0.4, .1)), var.es=abs(rnorm(5*3,0.05, .03)), nT=round(rnorm(5*3, 30, 5),0), nC=round(rnorm(5*3, 30, 5),0), mod1=factor(rep(c("a","b","c","d","e"),3)), mod2=rep(seq(20, 60, 10), 3)) # 1. COMPUTE MEAN DIFFERENCE STATISTIC FROM # REPORTED STATS (GENERALLY FROM A PRIMARY STUDY): # suppose the primary study reported an log odds ratio for different # proportions between 2 groups. Then, running: lor_to_d(.9070,.0676) # reported log odds ratio (lor = .9070) and variance (.0676) will output the # standardized mean difference (d) and its variance (var.d) that can be used in # a meta-analysis. ## 2. ACCOUNT FOR DEPENDENCIES: WITHIN-STUDY EFFECT SIZES (ES): ## 2 EXAMPLES: # EXAMPLE 1: AGGREGATING EFFECT SIZES FOR A DATA FRAME # (MULTIPLE STUDIES AT LEAST SOME OF WHICH HAVE MULTIPLE DEPENDENT EFFECT SIZES) # EXAMPLE 2: AGGREGATING EFFECT SIZES FOR SINGLE STUDY WITH THREE OR MORE # EFFECT SIZES WHEN PAIRS OF DVS HAVE DIFFERENT CORRELATIONS ## EXAMPLE 1: MA IS A DATA FRAME CONTAINING MULTIPLE STUDIES (id), ## EACH WITH MULTIPLE EFFECT SIZES (CORRELATIONS BETWEEN ALL PAIRS OF DVS ARE r=.5.) # AGGREGATION PROCEDURE: # method="GO1"; GLESER AND OLKIN (1994) PROCEDURE WHEN d IS COMPUTED # USING POOLED SD IN THE DENOMINATOR MA1 <- agg(id=id, es=es, var=var.es, n.1=nT, n.2=nC, cor = .5, method="GO1", data=MA) MA1 ## EXAMPLE 2: STUDY 1 COMPARES A TREATMENT AND CONTROL GROUP ON ## THREE OUTCOME MEASURES (DEPRESSION, ANXIETY, and SHYNESS). # THE CORRELATION AMONG THE THREE PAIRS OF DVS ARE r12=.5, r13=.2, and r23=.3. study1 <- data.frame( id=factor(rep(1, 3)), measure=c("dep", "anx", "shy"), es=c(0.8, 0.5, 0.4), var.es=c(0.01, 0.02, 0.1), nT=rep(30, 3), nC=rep(30, 3)) # ONE WOULD CONSTRUCT THE CORRELATION MATRIX AS FOLLOWS: cors <- matrix(c(1,.5,.2, .5,1,.3, .2,.3,1), nrow=3) # AGGREGATION PROCEDURE: # method="GO1"; GLESER AND OLKIN (1994) PROCEDURE WHEN d # IS COMPUTED USING POOLED SD IN THE DENOMINATOR agg(id=id, es=es, var=var.es, n.1=nT, n.2=nC, cor=cors, method="GO1", mod = NULL, data=study1) # where MA = data.frame with columns for id, es (standardized # mean difference), var.es (variance of es), n.1 (sample size of group # one), and n.2 (sample size of comparison group) with multiple rows per # study. Outputs an aggregated data.frame with 1 effect size per study. ## 3.OMNIBUS ANALYSIS # FIRST ADD MODERATORS TO THE AGGREGATED DATASET: MODS <- data.frame(id=1:5, mod1=factor(c("a","b","a","b","b")), mod2=as.numeric(c(20, 30, 25, 35, 40))) MA2 <- merge(MA1, MODS, by='id') # Random Effects m0 <- mareg(es1~ 1, var = var1, method = "REML", data = MA2) # where MA = data.frame with columns for id, es (standardized # mean difference), var.es (variance of es), n.1 (sample size of group # one), and n.2 (sample size of comparison group). # view output: summary(m0) # 4. MODERATOR ANALYSIS: # Random Effects m1 <- mareg(es1~ mod1 + mod2 , var = var1, method = "REML", data = MA2) # view output: summary(m1) # 5. Graphics: ## Not run: plotcon(g = es1, var = var1, mod = mod1, data = MA2, method= "random", modname= "Moderator") ## End(Not run) # Additional Functions # Export MA output to nicely formatted Word tables. # install R2wd # install.packages('R2wd', dependencies = TRUE) # Export data to Word in formatted table # wd(m1, get = TRUE, new = TRUE) agg Aggregate Dependent Effect Sizes Description This function will simultaneously aggregate all within-study effect sizes while taking into account the correlations among the within-study outcomes. The default correlation between outcome mea- sures is set at .50 (Wampold et al., 1997), and can be adjusted as needed. An aggregate effect size and its variance is computed for each study. This MAd aggregation function implements Gleser & Olkin (1994) and Borenstein et al. (2009) procedures for aggregating dependent effect sizes.. Usage agg(id, es, var, n.1=NULL, n.2=NULL, method = "BHHR", cor = .50, mod=NULL, data) Arguments id Study id with multiple rows of same id. es Effect size. Use Cohen’s d for GO1 and GO2 method and use Hedges g for BHHR method. var Variance of g. n.1 Sample size of group one. Only required if using method=’GO1’ or ’GO2’. n.2 Sample size of group two. Only required if using method=’GO1’ or ’GO2’. method ’BHHR’= Borenstein, et al. (2009) procedure.’GO1’= Gleser and Olkin (1994) procedure using pooled standard deviation (SD). ’GO2’= Gleser and Olkin (1994) procedure using group 2 SD (typically control group SD). Default is ’BHHR’. cor Estimated correlation among within-study outcome variables. Input should ei- ther be a fixed correlation (default is r=.5) or a correlation matrix to allow dif- ferent correlations between outcome types (in which case aggregation should typically be on one study at a time rather than the entire dataset–see examples below). mod To aggregate by id and one moderator. If there are multiple levels of a categorical moderator within study and one can in derive seperate effect size estimates for each level within and between studies. Default is NULL. data data.frame with above values. Value Outputs a data.frame with aggregated effect sizes and variances of effect sizes where each study is reduced to one row per study (unless aggregated by a moderator) by a weighted average formula. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. <NAME>., <NAME>., & <NAME>. (2009). The handbook of research synthesis and meta- analysis (2nd edition). New York: Russell Sage Foundation. Gleser & Olkin (1994). Stochastically dependent effect sizes. In <NAME>, & <NAME>, & J. C.(Eds.), The handbook of research synthesis(pp. 339-356). New York: Russell Sage Foundation. Gleser & Olkin (2009). Stochastically dependent effect sizes. In <NAME>, <NAME>, & <NAME>. Valentine (Eds.), The handbook of research synthesis and meta analysis (pp. 357-377). New York: Russell Sage Foundation. Shadish & Haddock (2009). Analyzing effect sizes: Fixed-effects models. In <NAME>, <NAME>. Hedges, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 257- 278). New York: Russell Sage Foundation. Examples ## 2 EXAMPLES: # EXAMPLE 1: Aggregating effect sizes for a data frame # (multiple studies at least some of which have multiple # effect sizes), assuming equal correlations (r=.5) between # pairs of DVs. # EXAMPLE 2: Aggregating effect sizes for a single study # with 3 or more effect sizes when pairs of DVs have # different correlations. # LOAD DATA (EXAMPLE DATA FROM HOYT & DEL RE, 2015 SIMULATION): data(dat.hoyt) ## EXAMPLE 1: dat.hoyt is a data frame with multiple studies identified ## by variable 'id'. Each study has multiple effect sizes based on ## multiple DVs. Correlations between all pairs of DVs are r=.5. # NOTE: Based on a simulation study by Hoyt & <NAME> (2015), it is # recommended that methods "G01" and "G02" (Gleser and Olkin) # should aggregate Cohen's d, without using Hedges & Olkin's # recommended bias correction. (Studies providing only a single # effect size should still be corrected for bias, after aggregation.) # Method "BHHR" should aggregate Hedges' g, after bias correction. # Option 1: method="BHHR"; Borenstein et al. (2009) procedure. # Use with Hedges' g; can also be used with any other effect # size (e.g., z', LOR). agg(id=id, es=g, var=vg, cor=.5, method="BHHR", mod=NULL, data=dat.hoyt) # Option 2: method="GO1"; Gleser & Olkin (1994) procedure when # d is computed using pooled sd in denominator. agg(id=id, es=d, var=vd, n.1=n.T, n.2=n.C, cor = .5, method="GO1", mod = NULL, data=dat.hoyt) # Option 3: method="GO2"; Gleser & Olkin (1994) procedure when # d is computed using sd.2 (typically control group sd) # in denominator agg(id=id, es=d, var=vd, n.1=n.T, n.2=n.C, cor = .5, method="GO2", mod = NULL, data=dat.hoyt) ## EXAMPLE 2: Single study comparing T and C group ## on three DVs: depression, anxiety, and shyness ## r12=.5; r13=.2; r23=.3 data <- dat.hoyt[20:22,] # Step 1: Create the correlation matrix, based on r12, r13, and r23: cors <- matrix(c(1,.5,.2, .5,1,.3, .2,.3,1), nrow=3) # Step 2: Aggregate using agg() function. # Option 1: method="BHHR"; Borenstein et al. (2009) procedure. # Use with Hedges' g; can also be used with any other effect # size (e.g., z', LOR). agg(id=id, es=g, var=vg, cor=cors, method="BHHR", mod=NULL, data=data) # Option 2: method="GO1"; Gleser & Olkin (1994) procedure when # d is computed using pooled sd in denominator. agg(id=id, es=d, var=vd, n.1=n.T, n.2=n.C, cor = cors, method="GO1", mod = NULL, data=data) # Option 3: method="GO2"; Gleser & Olkin (1994) procedure when # d is computed using sd.2 (typically control group sd) # in denominator agg(id=id, es=d, var=vd, n.1=n.T, n.2=n.C, cor = cors, method="GO2", mod = NULL, data=data) ## Citation ## # <NAME>., & <NAME>, <NAME>. (2013). Comparison of methods for # aggregating dependent effect sizes in meta-analysis. # Manuscript submitted for publication. ancova_to_d1 ANCOVA F-statistic to d Description Converts an ANCOVA F-statistic to d (standardized mean difference) Usage ancova_to_d1(m.1.adj, m.2.adj, sd.adj, n.1, n.2, R, q) Arguments m.1.adj Adjusted mean of treatment group from ANCOVA. m.2.adj Adjusted mean of comparison group from ANCOVA. sd.adj Adjusted standard deviation. n.1 Treatment group sample size. n.2 Comparison group sample size. R Covariate outcome correlation or multiple correlation. q Number of covariates. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t ancova_to_d2 ANCOVA F-statistic to d II Description Converts an ANCOVA F-statistic with pooled standard deviation to d (standardized mean differ- ence) Usage ancova_to_d2(m.1.adj, m.2.adj, s.pooled, n.1, n.2, R, q) Arguments m.1.adj Adjusted mean of treatment group from ANCOVA. m.2.adj Adjusted mean of comparison group from ANCOVA. s.pooled Pooled standard deviation. n.1 Treatment group sample size. n.2 Comparison group sample size. R Covariate outcome correlation or multiple correlation. q number of covariates. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t atten Correction for Attenuation Description Used to correct for attenuated effect sizes due to measurement unreliability. Usage atten(g, xx, yy, data) Arguments g Hedges g (unbiased estimate of d) effect size. xx Column for reliability of predictor variable ("independent variable"). yy Column for reliability of outcome variable ("dependent variable"). data data.frame with the above values. Value A new column for g corrected for attenuation (g.corrected) will be added to the data, for those xx & yy columns with complete data. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References <NAME>., <NAME>. (2004). Methods of meta-analysis (2nd edition). Thousand Oaks, CA: Sage. Examples # Sample data: id<-c(1, 1:19) n<-c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) g<-c(.68,.56,.23,.64,.49,-.04,.49,.33,.58,.18,-.11,.27,.26,.40,.49, .51,.40,.34,.42,.16) var.g <- c(.08,.06,.03,.04,.09,.04,.009,.033,.0058,.018,.011,.027,.026,.0040, .049,.0051,.040,.034,.0042,.016) xx<-c(.88,.86,.83,.64,.89,.84,.89,.83,.99,.88,.81,.77,.86,.70,.79, .71,.80,.74,.82,.86) # Reliability of "independent variable" yy<-c(.99,.86,.83,.94,.89,.94,.89,.93,.99,.88,.81,.77,.86,.70,.79, .71,.80,.94,.92,.96) # Reliability of "dependent variable" df<-data.frame(id,n,g, var.g, xx,yy) # Example atten(g= g, xx = xx, yy = yy, data= df) compute_dgs Computes Vector of Standardized Mean Differences Description Adds d & g (standardized mean difference) to a data.frame. Required inputs are: n.1 (sample size of group one), m.1 (raw post-mean value of group one), sd.1 (standard deviation of group one), n.2 (sample size of group two), m.2 (raw post-mean value of group two), sd.2 (standard deviation of group two). Usage compute_dgs(n.1, m.1, sd.1 , n.2, m.2, sd.2, data, denom = "pooled.sd") Arguments n.1 sample size of group one. m.1 raw post-mean value of group one. sd.1 standard deviation of group one. n.2 sample size of group two. m.2 raw post-mean value of group two. sd.2 standard deviation of group two. data data.frame with above values denom Value in the denominator to standardize the means by. pooled.sd will pool together both groups in deriving d. control.sd uses the standard deviation of group two (typically the control condition) to calculate d. Value d Standardized mean difference. var.d Variance of d. se.d Standard error of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also compute_ds, compute_gs Examples id <- c(1:20) n.1 <- c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) n.2 <- c(11,22,10,20,25,12,12,36,19,11,34,75,33,120,37,14,40,16,10,21) m.1 <- c(.68,.56,.23,.64,.49,.4,1.49,.53,.58,1.18,.11,1.27,.26,.40,.49, .51,.40,.34,.42,.66) m.2 <- c(.38,.36,.23,.34,.29,.4,1.9,.33,.28,1.1,.111,.27,.21,.140,.149, .51,.140,.134,.42,.16) sd.1 <- c(.28,.26,.23,.44,.49,.34,.39,.33,.58,.38,.31,.27,.26,.40, .49,.51,.140,.134,.42,.46) sd.2 <- c(.28,.26,.23,.44,.49,.44,.39,.33,.58,.38,.51,.27,.26,.40, .49,.51,.140,.134,.142,.36) mod1 <- c(1,2,3,4,1,2,8,7,5,3,9,7,5,4,3,2,3,5,7,1) mod2 <- factor(c(rep(c(1,2,3,4),5))) dfs <- data.frame(id, n.1,m.1, sd.1, n.2, m.2, sd.2, mod1, mod2) # Example compute_dgs(n.1, m.1, sd.1, n.2, m.2, sd.2, data = dfs) compute_ds Computes Vector of Standardized Mean Differences Description Adds d (standardized mean difference) to a data.frame. Required inputs are: n.1 (sample size of group one), m.1 (raw post-mean value of group one), sd.1 (standard deviation of group one), n.2 (sample size of group two), m.2 (raw post-mean value of group two), sd.2 (standard deviation of group two). Usage compute_ds(n.1, m.1, sd.1 , n.2, m.2, sd.2 , data, denom = "pooled.sd") Arguments n.1 sample size of group one. m.1 raw post-mean value of group one. sd.1 standard deviation of group one. n.2 sample size of group two. m.2 raw post-mean value of group two. sd.2 standard deviation of group two. data data.frame with values above. denom Value in the denominator to standardize the means by. pooled.sd will pool together both groups in deriving d. control.sd uses the standard deviation of group two (typically the control condition) to calculate d. Value d Standardized mean difference. var.d Variance of d. se.d Standard error of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also compute_ds, compute_dgs Examples id <- c(1:20) n.1 <- c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) n.2 <- c(11,22,10,20,25,12,12,36,19,11,34,75,33,120,37,14,40,16,10,21) m.1 <- c(.68,.56,.23,.64,.49,.4,1.49,.53,.58,1.18,.11,1.27,.26,.40,.49, .51,.40,.34,.42,.66) m.2 <- c(.38,.36,.23,.34,.29,.4,1.9,.33,.28,1.1,.111,.27,.21,.140,.149, .51,.140,.134,.42,.16) sd.1 <- c(.28,.26,.23,.44,.49,.34,.39,.33,.58,.38,.31,.27,.26,.40, .49,.51,.140,.134,.42,.46) sd.2 <- c(.28,.26,.23,.44,.49,.44,.39,.33,.58,.38,.51,.27,.26,.40, .49,.51,.140,.134,.142,.36) mod1 <- c(1,2,3,4,1,2,8,7,5,3,9,7,5,4,3,2,3,5,7,1) mod2 <- factor(c(rep(c(1,2,3,4),5))) dfs <- data.frame(id, n.1,m.1, sd.1, n.2, m.2, sd.2, mod1, mod2) # Example compute_ds(n.1, m.1, sd.1, n.2, m.2, sd.2, data = dfs) compute_gs Converts Vector of Standardized Mean Differences Description Adds g (unbiassed standardized mean difference) to a data.frame. Required inputs are: n.1 (sam- ple size of group one), sd.1 (standard deviation of group one), n.2 (sample size of group two). Usage compute_gs(d , var.d , n.1, n.2, data) Arguments d Standardized mean difference (biased). var.d Variance of d. n.1 sample size of group one. n.2 sample size of group two. data data.frame with standardized mean difference, variance of d, sample size of group one, sample size of group two. Value g Unbiased standardized mean difference. var.g Variance of g. se.g Standard error of g. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also compute_ds, compute_dgs Examples id <- c(1:20) n.1 <- c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) n.2 <- c(11,22,10,20,25,12,12,36,19,11,34,75,33,120,37,14,40,16,10,21) m.1 <- c(.68,.56,.23,.64,.49,.4,1.49,.53,.58,1.18,.11,1.27,.26,.40,.49, .51,.40,.34,.42,.66) m.2 <- c(.38,.36,.23,.34,.29,.4,1.9,.33,.28,1.1,.111,.27,.21,.140,.149, .51,.140,.134,.42,.16) sd.1 <- c(.28,.26,.23,.44,.49,.34,.39,.33,.58,.38,.31,.27,.26,.40, .49,.51,.140,.134,.42,.46) sd.2 <- c(.28,.26,.23,.44,.49,.44,.39,.33,.58,.38,.51,.27,.26,.40, .49,.51,.140,.134,.142,.36) mod1 <- c(1,2,3,4,1,2,8,7,5,3,9,7,5,4,3,2,3,5,7,1) mod2 <- factor(c(rep(c(1,2,3,4),5))) dfs <- data.frame(id, n.1,m.1, sd.1, n.2, m.2, sd.2, mod1, mod2) # Example # first compute d dfs2 <- compute_ds(n.1, m.1, sd.1, n.2, m.2, sd.2, data = dfs) # now, compute g compute_gs(d, var.d, n.1, n.2, dfs2) dat.cooper15.3 Data from Table 15.3 in The Handbook for Research Synthesis and Meta-Analysis (Cooper et al., 2009) Description Data from Table 15.3 in The Handbook for Research Synthesis and Meta-Analysis (Cooper et al., 2009) dat.cooperA2 Data from Table A2 in The Handbook for Research Synthesis and Meta-Analysis (Cooper et al., 2009) Description Data from Table A2 in The Handbook for Research Synthesis and Meta-Analysis (Cooper et al., 2009) dat.hoyt Subset of simulated data to demonstrate aggregation for dependent effect sizes Description Subset of simulated data to demonstrate aggregation for dependent effect sizes. This data comes from: <NAME>., & <NAME>. (2013). Comparison of methods for aggregating dependent effect sizes in meta-analysis. Manuscript submitted for publication. dat.sim.es Subset of simulated psychotherapy treatment studies (k=8) with de- pendent effect sizes Description This data set includes effect sizes for treatment vs control groups for a random subset of 8 simulated psychotherapy treatment studies (total population k = 1000). The known population standardized mean difference for outcome one is g = 0.50 and for outcome two g = 0.80. The data set also in- cludes two correlated study-level variables (i.e., moderators): treatment duration (dose) and average participant distress (stress). This data accompanies a tutorial for meta-analysis: <NAME>. (2015). A Practical Tutorial on Conducting Meta-Analysis in R. The Quantitative Methods for Psychology. dat.sim.final Final aggregated dataset of simulated psychotherapy treatment studies (k=8) Description This data set includes aggregated effect sizes for treatment vs control groups for a random subset of 8 simulated psychotherapy treatment studies (total population k = 1000). The known population standardized mean difference for outcome one is g = 0.50 and for outcome two g = 0.80. The data set also includes two correlated study-level variables (i.e., moderators): treatment duration (dose) and average participant distress (stress). This data accompanies a tutorial for meta-analysis: <NAME>. (2015). A Practical Tutorial on Conducting Meta-Analysis in R. The Quantitative Methods for Psychology. dat.sim.raw Subset of simulated psychotherapy treatment studies (k=8) with means and SD Description This data set includes means and standard deviations for treatment and control groups for a subset of k = 8 simulated psychotherapy treatment studies from a population of k = 1000 (see dat.sim1 and dat.sim2 for the k = 1000 studies for outcome 1 and 2, respectfully). Although effect sizes are not calculated in this dataset, the known population standardized mean difference for outcome one is d=0.50 and for outcome two g=0.80. The data set also includes two correlated study-level variables (i.e., moderators): treatment duration (dose) and average participant distress (stress). This data accompanies a tutorial for meta-analysis: <NAME>. (2015). A Practical Tutorial on Conducting Meta-Analysis in R. The Quantitative Methods for Psychology. dat.sim1 Simulated psychotherapy treatment studies for ’outcome one’ Description This data set includes 1000 simulated psychotherapy treatment studies. The population standardized mean difference for outcome one is d=0.50. The data set also includes two correlated study-level variables (i.e., moderators): treatment duration (dose) and average participant distress (stress). This data accompanies a tutorial for meta-analysis: <NAME>. (2015). A Practical Tutorial on Conducting Meta-Analysis in R. The Quantitative Methods for Psychology. dat.sim2 Simulated psychotherapy treatment studies for ’outcome two’ Description This data set includes 1000 simulated psychotherapy treatment studies. The population standardized mean difference for outcome two is d=0.80. The data set also includes two correlated study-level variables (i.e., moderators): treatment duration (dose) and average participant distress (stress). This data accompanies a tutorial for meta-analysis: <NAME>. (2015). A Practical Tutorial on Conducting Meta-Analysis in R. The Quantitative Methods for Psychology. d_to_g Standardized Mean Difference (d) Statistic to Unbiased Standardized Mean Difference (g) Description Eliminates the small upward bias of d to provide an unbiased estimate of the population effect size parameter (g). This procedure will compute g for a single value of d. Usage d_to_g(d, var.d, n.1, n.2) Arguments d Standardized mean difference statistic (d has a slight bias). var.d Variance of d. n.1 Sample size of treatment group. n.2 Sample size of comparison group. Value g Unbiased Standardized mean difference statistic. var.g Variance of g. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. f.ancova_to_d ANCOVA F-statistic to Standardized Mean Difference (d) Description Converts an ANCOVA F-statistic to d (standardized mean difference). Usage f.ancova_to_d(f, n.1, n.2, R, q) Arguments f F-test value from ANCOVA. n.1 Treatment group sample size. n.2 Comparison group sample size. R Covariate outcome correlation or multiple correlation. q number of covariates. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t fail_to_d Failure groups to Standardized Mean Difference (d) Description Converts number of ’failure’ groups reported in the primary study to standardized mean difference (d). Usage fail_to_d(B, D, n.1, n.0) Arguments B Treatment failure. D Non-treatment failure. n.1 Treatment sample size. n.0 Control/comparison sample size. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, r_from_chi, r_from_d, r_from_d1, r_from_t f_to_d F-test to Standardized Mean Difference (d) Description Converts F-test value to standardized mean difference (d). Usage f_to_d(f, n.1, n.2) Arguments f F-value reported in primary study. n.1 Sample size of treatment group. n.2 Sample size of comparison group. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References <NAME>. (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME>. Valentine (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t icc Intraclass correlation coefficient (ICC) for oneway and twoway mod- els Description Computes single score or average score ICCs as an index of interrater reliability of quantitative data. Additionally, F-test and confidence interval are computed. Usage icc(ratings, model = c("oneway", "twoway"), type = c("consistency", "agreement"), unit = c("single", "average"), r0 = 0, conf.level = 0.95) Arguments ratings n*m matrix or dataframe, n subjects m raters. model a character string specifying if a oneway model (default) with row effects ran- dom, or a twoway model with column and row effects random should be applied. You can specify just the initial letter. type a character string specifying if ’"consistency"’ (default) or ’"agreement"’ be- tween raters should be estimated. If a ’"oneway"’ model is used, only ’"consis- tency"’ could be computed. You can specify just the initial letter. unit a character string specifying the unit of analysis: Must be one of single (de- fault) or average. You can specify just the initial letter. r0 specification of the null hypothesis r = r0. Note that a one sided test (H1: r > r0) is performed. conf.level confidence level of the interval. Details This function was created by <NAME> for the irr package. For more details, see: http://rss.acs.unt.edu/Rdoc/library/irr/html/icc.html Details for the function: Missing data are omitted in a listwise way. When considering which form of ICC is appropriate for an actual set of data, one has take several decisions (Shrout & Fleiss, 1979): 1. Should only the subjects be considered as random effects (oneway model) or are subjects and raters randomly chosen from a bigger pool of persons (twoway model). 2. If differences in judges’ mean ratings are of interest, interrater agreement instead of consistency should be computed. 3. If the unit of analysis is a mean of several ratings, unit should be changed to average. In most cases, however, single values (unit = single) are regarded. Value A list with class icclist containing the following components: subjects the number of subjects examined. raters the number of raters. model a character string describing the selected model for the analysis. type a character string describing the selected type of interrater reliability. unit a character string describing the unit of analysis. icc.name a character string specifying the name of ICC according to McGraw & Wong (1996). value the intraclass correlation coefficient. r0 the specified null hypothesis. Fvalue the value of the F-statistic. df1 the numerator degrees of freedom. df2 the denominator degrees of freedom. p.value the p-value for a two-sided test. conf.level the confidence level for the interval. lbound the lower bound of the confidence interval. ubound the upper bound of the confidence interval. Author(s) <NAME> References <NAME>. (1966). The intraclass correlation coefficient as a measure of reliability. Psychological Reports, 19, 3-11. <NAME>., & <NAME>. (1996), Forming inferences about some intraclass correlation coeffi- cients. Psychological Methods, 1, 30-46. <NAME>., & <NAME>. (1979), Intraclass correlation: uses in assessing rater reliability. Psycho- logical Bulletin, 86, 420-428. Examples # sample data study <- c(1,1,2,2,3,3) rater <- c(rep(1:2,3)) mod1 <- round(rnorm(6, 10, 1)) mod2 <- c(5,5, 9, 9, 8, 8) mod3 <- c(10,10, 9, 9, 8, 8) w <-data.frame(study, rater, mod1, mod2, mod3) w # if data is in this format: # study rater mod1 mod2 mod3 # 1 1 9 9 10 # 1 2 11 8 10 # 2 1 9 10 11 # 2 2 9 10 11 # 3 1 9 9 8 # 3 2 12 9 8 # # the data will need to be reshaped to be processed by the # icc function: long <- reshape(w, varying=colnames(w)[3:5], v.names="Code", idvar=c('study', 'rater'), timevar="mods", direction='long') wide <- reshape(long, idvar=c('mods', 'study'), timevar='rater') # icc function (created by <NAME> for the 'irr' package) icc(cbind(wide$Code.1, wide$Code.2), type= "consistency") Kappa Inter-Rater Agreement Description Kappa coefficients for assessing inter-rater agreement between two coders (for categorical variables/moderators). Usage Kappa(rater1, rater2) Arguments rater1 First rater of categorical variable to be analyzed. This vector needs to be in a separate column if in a data.frame. rater2 Second rater on same categorical variable to be analyzed. This vector needs to be in a separate column if in a data.frame. Value Kappa coefficients for inter-rater reliability (categorical variables). Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> Examples # sample data study <- c(1,1,2,2,3,3) # study coded rater <- rep(1:2, 3) # 2 raters mod1 <- as.factor(round(rnorm(6, 10, 1))) # values coded for mod 1 mod2 <- as.factor(round(rnorm(6, 10, 1))) mod3 <- as.factor(round(rnorm(6, 10, 1))) mod4 <- as.factor(round(rnorm(6, 10, 1))) mod5 <- as.factor(round(rnorm(6, 10, 1))) mod6 <- as.factor(round(rnorm(6, 10, 1))) w <-data.frame(study, rater,mod1, mod2, mod3, mod4, mod5, mod6) w # if data is in this format: # study rater mod1 mod2 mod3 mod4 mod5 mod6 # 1 1 8 10 9 9 10 10 # 1 2 10 11 10 10 13 12 # 2 1 11 10 11 11 10 12 # 2 2 13 10 10 11 12 9 # 3 1 11 10 11 10 10 9 # 3 2 10 10 11 9 10 11 # # the data will need to be reshaped to be processed by the # Kappa function: long <- reshape(w, varying=colnames(w)[3:8], v.names="code", idvar=c('study', 'rater'), timevar= 'mods', direction='long') wide <- reshape(long, idvar=c('mods', 'study'), timevar='rater') wide # running the function: Kappa(wide$code.1, wide$code.2) lor_to_d Log Odds Ratio to Standardized Mean Difference (d) Description Converts a log odds ratio reported in the primary study to a standardized mean difference (d). Usage lor_to_d(lor, var.lor) Arguments lor Log odds ratio reported in the primary study. var.lor Variance of the log odds ratio. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t macat Categorical Moderator Analysis Description Computes single predictor categorical moderator analysis under a fixed or random effects model. Usage macat(g, var, mod, data, method= "random") Arguments g Hedges g (unbiased estimate of d) effect size. var Vaiance of g. mod Categorical moderator variable used for moderator analysis. method Default is random. For fixed effects, use fixed. data data.frame with values above. Details See Konstantopoulos & Hedges (2009; pp. 280-288) for the computations used in this function. Value mod Level of the categorical moderator. k Number of studies for each level of the moderator. estimate Mean effect size of each level of the moderator. ci.l Lower 95% confidence interval. ci.u Upper 95% confidence interval. z z-score (standardized value). p Significance level. var Variance of effect size. se Square root of variance. Q Q-statistic (measure of homogeneity). df Degrees of freedom for Q-statistic. p.h p-value for homogeneity within that level of the moderator. I2 Proportion of total variation in effect size that is due to heterogeneity rather than chance (see Shadish & Haddock, 2009; pp. 263). Q Q-statistic overall. Note: Whether fixed or random effects analyses are con- ducted, the Q statistic reported is for the fixed effect model. Therefore, Qb + Qw != Q in the random effects output. Qw Q-within (or error). Measure of within-group heterogeneity. Qw.df Degrees of freedom for Q-within. Qw.p Q-within p-value (for homogeneity). Qb Q-between (or model). Measure of model fit. Qb.df Degrees of freedom for Q-between. Qb.p Q-between p-value (for homogeneity). Qb and Qb.p provide the test of whether the moderator variable(s) account for significant variance among effect sizes. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Konstantopoulos & Hedges (2009). Analyzing effect sizes: Fixed-effects models. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. Shadish & Haddock (2009). Analyzing effect sizes: Fixed-effects models. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 257- 278). New York: Russell Sage Foundation. See Also plotcat Examples id<-c(1:20) n.1<-c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) n.2 <- c(11,22,10,20,25,12,12,36,19,11,34,75,33,120,37,14,40,16,10,21) g <- c(.68,.56,.23,.64,.49,-.04,1.49,1.33,.58,1.18,-.11,1.27,.26,.40,.49, .51,.40,.34,.42,1.16) var.g <- c(.08,.06,.03,.04,.09,.04,.009,.033,.0058,.018,.011,.027,.026,.0040, .049,.0051,.040,.034,.0042,.016) mod<-factor(c(rep(c(1,1,2,3),5))) df<-data.frame(id, n.1,n.2, g, var.g,mod) # Example # Random effects macat(g = g, var= var.g, mod = mod, data = df, method= "random") macatC Direct Categorical Moderator Comparison Description Function for a planned comparison between two levels of a moderator under a fixed or random effects model. Usage macatC(x1, x2, g, var, mod, data, method= "random", type= "post.hoc") Arguments x1 One level of categorical moderator. x2 Comparison level of same categorical moderator. g Hedges g (unbiased estimate of d) effect size. var Vaiance of g. mod Categorical moderator variable used for moderator analysis. method Default is random. For fixed effects, use fixed. type post.hoc assumes the comparison was not planned prior to conducting the meta analysis. The a priori option, planned, assumes the researcher planned to con- duct the analysis a priori. Default is post.hoc using the Scheffe post hoc statis- tical method. data data.frame with values above. Details See Konstantopoulos & Hedges (2009; pp. 280-288) for the computations used in this function. Value diff Mean difference between the two levels. var.diff Variance of diff. p Significance level. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Konstantopoulos & Hedges (2009). Analyzing effect sizes: Fixed-effects models. In H. Cooper, L. V. Hedges, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. Shadish & Haddock (2009). Analyzing effect sizes: Fixed-effects models. In <NAME>, <NAME>. Hedges, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 257- 278). New York: Russell Sage Foundation. See Also macat, Examples id<-c(1:20) n.1<-c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) n.2 <- c(11,22,10,20,25,12,12,36,19,11,34,75,33,120,37,14,40,16,10,21) g <- c(.68,.56,.23,.64,.49,-.04,1.49,1.33,.58,1.18,-.11,1.27,.26,.40,.49, .51,.40,.34,.42,1.16) var.g <- c(.08,.06,.03,.04,.09,.04,.009,.033,.0058,.018,.011,.027,.026,.0040, .049,.0051,.040,.034,.0042,.016) mod<-factor(c(rep(c(1,1,2,3),5))) df<-data.frame(id, n.1,n.2, g, var.g,mod) # Example macatC(1, 2, g=g, var=var.g, mod=mod, data=df, method= "random", type= "post.hoc") mareg Meta-Regression Description Meta-regression function for a single or multiple predictor model. This function is a wrapper for the rma() function in the metafor package (Viechtbauer, W, 2010). Please see http://CRAN.R- project.org/package=metafor for details or for more advanced functionality with the rma() function. Usage mareg(formula, var, data, method = "REML", subset, digits = 3, ...) Arguments formula This is a formula based function, similar to other functions in R (e.g., lm), where the criterion variable (e.g., Hedges g in this case) is dependent on (’~’) the pre- dictor variables (e.g., moderators). The formula for two moderators would take this form: mareg(g ~ mod1 + mod2, var.g, data), where g is the criterion variable predicted by mod1 and mod2. The variance (var) of each g is var.g in this case. var Variance of g. data Aggregated data.frame (see agg function for setting up the dataset for these analyses) with id, g (unbiased standardized mean difference), var.g (variance of g) for each study. method Default is REML (Restricted-Maximal Likelihood), which is the standard random effects method. For fixed effects, use FE. Other options are specified in the metafor package manual (’rma’ function). subset an optional vector specifying a subset of observations to be used in the fitting process. digits Number of digits to output. Default is 3. ... Additional arguments to be passed to rma(). Details See <NAME> (2010). metafor: Meta-Analysis Package for R. R package version 1.1-0. for the details of the rma() function. http://CRAN.R-project.org/package=metafor Value estimate Meta-regression coefficient estimate. se Standard error of the estimate coefficient. z z-value. ci.l Lower 95% confidence interval. ci.u Upper 95% confidence interval. p p-value (significance level). QE Q-error. Measure of error in the model. QE.df Degrees of freedom for Q-error. QEp Q-error p-value (for homogeneity). QM Q-model. Measure of model fit. QM.df Degrees of freedom for Q-model. QMp Q-between p-value (for homogeneity). QM and QMp provide the test of whether the moderator variable(s) account for significant variance among effect sizes. References <NAME> (2010). metafor: Meta-Analysis Package for R. R package version 1.1-0. http://CRAN.R-project.org/package=metafor See Also plotcon Examples # install metafor # install.packages('metafor', dependencies = TRUE) # Sample data data(dat.sim.final) # Examples # OMNIBUS m0 <- mareg(es~1, var=var, data=dat.sim.final) summary(m0) # META-REGRESSION m1 <- mareg(es~dose, var=var, data=dat.sim.final) summary(m1) # SINGLE MODERATOR m2 <- mareg(es~stress, var=var, data=dat.sim.final) summary(m2) # SINGLE MODERATOR m3 <- mareg(es~dose + stress, var=var, data=dat.sim.final) summary(m3) # MULTIPLE MODERATOR mean_to_d Means to Standardized Mean Difference Description Converts raw mean scores reported in the primary study to a standardized mean difference (d). Usage mean_to_d(m.1, m.2, sd.1, sd.2, n.1, n.2) Arguments m.1 Mean of group one. m.2 Mean of group two. sd.1 Standard deviation of group one. sd.2 Standard deviation of group two. n.1 Sample size of group one. n.2 Sample size of group two. Value d Standardized mean difference (d). var.d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t mean_to_d2 Means with Pooled SD to Standardized Mean Difference Description Converts raw mean scores with pooled standard deviation from the primary study to a standardized mean difference (d). Usage mean_to_d2(m.1, m.2, s.pooled, n.1, n.2) Arguments m.1 Mean of group one. m.2 Mean of group two. s.pooled Pooled standard deviation. n.1 Sample size of group one. n.2 Sample size of group two. Value d Standardized mean difference (d). var.d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t or_to_d Odds Ratio to Standardized Mean Difference (d) Description Converts odds ratio reported in the primary study to standardized mean difference (d). Usage or_to_d(or) Arguments or Odds ratio. Value d Standardized mean difference (d). Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, r_from_chi, r_from_d, r_from_d1, r_from_t p.ancova_to_d1 One-tailed p-value from ANCOVA to Standardized Mean Difference (d) Description Converts a one-tailed p-value from ANCOVA reported in the primary study to a standardized mean difference (d) Usage p.ancova_to_d1(p, n.1, n.2, R, q) Arguments p One-tailed p-value reported in primary study. n.1 Treatment group sample size. n.2 Comparison group sample size. R Covariate outcome correlation or multiple correlation. q number of covariates. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t p.ancova_to_d2 Two-tailed p-value from ANCOVA to Standardized Mean Difference (d) Description Converts a two-tailed p-value from ANCOVA reported in the primary study to a standardized mean difference (d) Usage p.ancova_to_d2(p, n.1, n.2, R, q) Arguments p Two-tailed p-value reported in primary study. n.1 Treatment group sample size. n.2 Comparison group sample size. R Covariate outcome correlation or multiple correlation. q number of covariates. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t plotcat Categorical Moderator Graph Description Outputs boxplot graphic for each level of the specified moderator. Usage plotcat(g, var, mod, data, modname=NULL, title=NULL, ...) Arguments g Hedges g (unbiased estimate of d) effect size. var Vaiance of g. mod Categorical moderator variable used for moderator analysis. data data.frame with values above. modname Name of moderator to appear on x axis of plot. Default is NULL. title Plot title. Default is NULL. ... Additional arguments to be passed to ggplot. Value Boxplot graph with median, max, min, and outliers from a fixed or random effects categorical moderator analysis. Places jitter points (for each study) on the boxplots. The size of each point (representing a study in the analysis) are based on study weights where more precise studies have larger points. The ggplot2 package outputs the graphics. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References <NAME>., <NAME>., & <NAME>. (2009). The handbook of research synthesis and meta- analysis (2nd edition). New York: Russell Sage Foundation. See Also macat, plotcon Examples id<-c(1, 1:19) n.1<-c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) n.2 <- c(11,22,10,20,25,12,12,36,19,11,34,75,33,120,37,14,40,16,10,21) g <- c(.68,.56,.23,.64,.49,-.04,1.49,1.33,.58,1.18,-.11,1.27,.26,.40,.49, .51,.40,.34,.42,1.16) var.g <- c(.08,.06,.03,.04,.09,.04,.009,.033,.0058,.018,.011,.027,.026,.0040, .049,.0051,.040,.034,.0042,.016) mod<-factor(c(rep(c(1,1,2,3),5))) df<-data.frame(id, n.1,n.2, g, var.g,mod) # Example ## Not run: plotcat(g = g, var = var.g, mod = mod, data = df, method= "random", modname= "Moderator") ## End(Not run) plotcon Meta Regression Scatterplot Description Outputs a scatterplot from a fixed or random effects meta regression (continuous and/or categorical). Usage plotcon(g, var, mod, data, method= "random", modname=NULL, title=NULL, ...) Arguments g Hedges g (unbiased estimate of d) effect size. var Vaiance of g. mod Categorical moderator variable used for moderator analysis. method Default is random (Restricted-Maximal Likelihood), which is the standard ran- dom effects method. For fixed effects, use fixed. data data.frame with values above. modname Name of moderator to appear on x axis of plot. Default is NULL. title Plot title. Default is NULL. ... Additional arguments to be passed to ggplot. Value Scatterplot with fixed or random effects regression line with size of visual points based on study weights, where the more precise studies have larger points. The ggplot2 package outputs the rich graphics. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References <NAME>., <NAME>., & <NAME>. (2009). The handbook of research synthesis and meta analysis (2nd edition). New York: Russell Sage Foundation. See Also mareg, plotcat Examples # SAMPLE DATA MA2 <-read.table(textConnection(" id es1 var1 n.1 n.2 mod1 mod2 1 1 0.5695938 0.04906967 26 30 a 20 2 2 0.4123667 0.04362541 28 34 b 30 3 3 0.4084333 0.04458363 34 28 a 25 4 4 0.5014756 0.04186354 37 29 b 35 5 5 0.5540745 0.04339382 31 32 b 40 6 1 0.5695938 0.04906967 26 30 a 20 7 2 0.4123667 0.04362541 28 34 b 30 8 3 0.4084333 0.04458363 34 28 a 25 9 4 0.5014756 0.04186354 37 29 b 35 10 5 0.5540745 0.04339382 31 32 b 40")) # EXAMPLE plotcon(es1, var1, mod2, data=MA2, method= "fixed", modname="NULL",title="NULL") PubBias Assess for Publication Bias Description Assess for publication bias in the meta-analytic data Usage PubBias(data) Arguments data data.frame having been analyzed by the weights function with id and z.score (standardized z-value). Value k Number of studies. Z Overall z-value for data set. k0 Number of studies needed to include with effect size = 0 (null) in order for the p > .05 (null hypothesis retained). k.per Number of missing studies for every observed study for the overall effect to be nullified. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Sutton, A. J. (2009). Publication bias. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 435-452). New York: Russell Sage Foundation. See Also weights p_to_d1 One-tailed p-value to Standardized Mean Difference (d) Description One-tailed p-value reported in the primary study to Standardized Mean Difference (d) Usage p_to_d1(p, n.1, n.2) Arguments p One-tailed p-value reported in primary study. n.1 Sample size of treatment group. n.2 Sample size of comparison group. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t p_to_d2 Two-tailed p-value to Standardized Mean Difference (d) Description One-tailed p-value reported in primary study to Standardized Mean Difference (d) Usage p_to_d2(p, n.1, n.2) Arguments p Two-tailed p-value reported in primary study. n.1 Sample size of treatment group. n.2 Sample size of comparison group. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t robustSE Robust standard error Description When the correlation between dependent effect sizes are unknown, one approach is to conduct the meta-analysis by assuming that the effect sizes are independent. Then, Hedges et al. (2010) robust standard error procedure can be calculated to adjust for dependence. Usage robustSE(model, cluster=NULL, CI=.95, digits=3) Arguments model omnibus or moderator model object fitted from mareg() function. cluster Name of variable where the dependencies are present. This will typically be the variable for study id where length(unique(study_id))>1. CI Confidence interval. Defaults to .95. digits Number of digits to output. Defaults to 3. Value estimate Meta-regression coefficient estimate. se Adjusted Standard error of the estimate coefficient. t t-value. ci.l Adjusted Lower 95% confidence interval. ci.u Adjusted Upper 95% confidence interval. p p-value. Author(s) <NAME> with modifications by AC Del Re References <NAME>., <NAME>., & <NAME>. (2010). Robust variance estimation in meta-regression with dependent effect size estimates. Research Synthesis Methods, 1(1), 39-65. doi:10.1002/jrsm.5 <NAME>. (2012). metaSEM: An R package for meta-analysis using structural equation modeling. Manuscript submitted for publication. See Also mareg, Examples # install metafor # install.packages('metafor', dependencies = TRUE) # Sample data id<-c(1:20) n.1<-c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) n.2 <- c(11,22,10,20,25,12,12,36,19,11,34,75,33,120,37,14,40,16,10,21) g <- c(.68,.56,.23,.64,.49,-.04,1.49,1.33,.58,1.18,-.11,1.27,.26,.40,.49, .51,.40,.34,.42,1.16) var.g <- c(.08,.06,.03,.04,.09,.04,.009,.033,.0058,.018,.011,.027,.026,.0040, .049,.0051,.040,.034,.0042,.016) mod<-factor(c(rep(c(1,1,2,3),5))) mods2<-c(rep(1:5,4)) df<-data.frame(id, n.1,n.2, g, var.g,mod, mods2) # Examples # Adjusted SE robustSE(mareg(g~ mod + mods2, var = var.g, method = "REML", data = df)) r_from_chi Chi-Squared to Correlation Description Converting Chi-squared statistic (with 1 degree of freedom) reported in primary study to r Usage r_from_chi(chi.sq, n) Arguments chi.sq Chi squared statistic from primary study. n Sample size in primary study. Value Computes correlation coefficient (r). Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_d, r_from_d1, r_from_t r_from_d Correlation from Mean Difference Description Converts d (mean difference) to r where n.tmt = n.comparison (see section 12.5.4, Borenstein, 2009; pp. 234). Usage r_from_d(d, var.d, a = 4) Arguments d Mean difference statistic (d) reported in primary study. var.d Variance of d reported in primary study. a Used to compute correlation. Default is 4. Value Outputs a correlation coefficient (r). Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In H. Cooper, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d1, r_from_t r_from_d1 Correlation from Mean Difference II Description Converts d (mean difference) reported in primary study to r (correlation coefficient) where sample size of the treatment group is not equal to the sample size of the comparison group (see section 12.5.4, Borenstein, 2009; pp. 234). Usage r_from_d1(d, n.1, n.2, var.d) Arguments d Mean difference statistic (d) reported in primary study. n.1 sample size of group one reported in primary study. n.2 sample size of group two reported in primary study. var.d variance of d reported in primary study. Value Computes a correlation coefficient (r). Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_t r_from_t Correlation from t-test Description Compute correlation from t-value reported in the primary study (see section 12.5.4, Borenstein, 2009; pp. 234). Usage r_from_t(t, n) Arguments t t-statistic value reported in primary study. n Sample size reported in primary study. Value Outputs the correlation coefficient (r). Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_to_d Correlation (r) to Standardized Mean Difference (d) Description Converts a correlation (r) to standardized mean difference (d). Usage r_to_d(r, N) Arguments r Correlation coefficient. N Total sample size. Value d Standardized mean difference (d). Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t tt.ancova_to_d t-test Value from ANCOVA to Standardized Mean Difference (d) Description Converts a t-test value from ANCOVA to a standardized mean difference (d) Usage tt.ancova_to_d(t, n.1, n.2, R, q) Arguments t t-test value reported in primary study. n.1 Treatment group sample size. n.2 Comparison group sample size. R Covariate outcome correlation or multiple correlation. q number of covariates. Value d Standardized mean difference (d) var_d Variance of d Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, t_to_d, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t t_to_d t-test Value to Standardized Mean Difference (d) Description Converts a t-test value reported in the primary study to a standardized mean difference (d). Usage t_to_d(t, n.1, n.2) Arguments t t-test value reported in primary study. n.1 Sample size of treatment group. n.2 Sample size of comparison group. Value d Standardized mean difference (d). var_d Variance of d. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>> References Borenstein (2009). Effect sizes for continuous data. In <NAME>, <NAME>, & <NAME> (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation. See Also d_to_g, mean_to_d, mean_to_d2, f_to_d, p_to_d1, p_to_d2, ancova_to_d1, ancova_to_d2, tt.ancova_to_d, f.ancova_to_d, r_to_d, p.ancova_to_d1, p.ancova_to_d2, lor_to_d, prop_to_or, prop_to_d, r_from_chi, r_from_d, r_from_d1, r_from_t wgts Weights added to Meta Data Description Adds weights to the meta-analysis data set. Usage wgts(g, var.g, data) Arguments g Hedges g (unbiased standardized mean difference estimate). var.g Variance of g. data data.frame with values above. Value Adds fixed and random-effects weights and confidence intervals to meta data set. Author(s) <NAME> & <NAME> Maintainer: <NAME> <<EMAIL>>
@clack/prompts
npm
JavaScript
`@clack/prompts` === Effortlessly build beautiful command-line apps 🪄 [Try the demo](https://stackblitz.com/edit/clack-prompts?file=index.js) --- `@clack/prompts` is an opinionated, pre-styled wrapper around [`@clack/core`](https://www.npmjs.com/package/@clack/core). * 🤏 80% smaller than other options * 💎 Beautiful, minimal UI * ✅ Simple API * 🧱 Comes with `text`, `confirm`, `select`, `multiselect`, and `spinner` components Basics --- ### Setup The `intro` and `outro` functions will print a message to begin or end a prompt session, respectively. ``` import { intro, outro } from '@clack/prompts'; intro(`create-my-app`); // Do stuff outro(`You're all set!`); ``` ### Cancellation The `isCancel` function is a guard that detects when a user cancels a question with `CTRL + C`. You should handle this situation for each prompt, optionally providing a nice cancellation message with the `cancel` utility. ``` import { isCancel, cancel, text } from '@clack/prompts'; const value = await text(/* TODO */); if (isCancel(value)) { cancel('Operation cancelled.'); process.exit(0); } ``` Components --- ### Text The text component accepts a single line of text. ``` import { text } from '@clack/prompts'; const meaning = await text({ message: 'What is the meaning of life?', placeholder: 'Not sure', initialValue: '42', validate(value) { if (value.length === 0) return `Value is required!`; }, }); ``` ### Confirm The confirm component accepts a yes or no answer. The result is a boolean value of `true` or `false`. ``` import { confirm } from '@clack/prompts'; const shouldContinue = await confirm({ message: 'Do you want to continue?', }); ``` ### Select The select component allows a user to choose one value from a list of options. The result is the `value` prop of a given option. ``` import { select } from '@clack/prompts'; const projectType = await select({ message: 'Pick a project type.', options: [ { value: 'ts', label: 'TypeScript' }, { value: 'js', label: 'JavaScript' }, { value: 'coffee', label: 'CoffeeScript', hint: 'oh no' }, ], }); ``` ### Multi-Select The `multiselect` component allows a user to choose many values from a list of options. The result is an array with all selected `value` props. ``` import { multiselect } from '@clack/prompts'; const additionalTools = await multiselect({ message: 'Select additional tools.', options: [ { value: 'eslint', label: 'ESLint', hint: 'recommended' }, { value: 'prettier', label: 'Prettier' }, { value: 'gh-action', label: 'GitHub Action' }, ], required: false, }); ``` ### Spinner The spinner component surfaces a pending action, such as a long-running download or dependency installation. ``` import { spinner } from '@clack/prompts'; const s = spinner(); s.start('Installing via npm'); // Do installation s.stop('Installed via npm'); ``` Utilities --- ### Grouping Grouping prompts together is a great way to keep your code organized. This accepts a JSON object with a name that can be used to reference the group later. The second argument is an optional but has a `onCancel` callback that will be called if the user cancels one of the prompts in the group. ``` import * as p from '@clack/prompts'; const group = await p.group( { name: () => p.text({ message: 'What is your name?' }), age: () => p.text({ message: 'What is your age?' }), color: ({ results }) => p.multiselect({ message: `What is your favorite color ${results.name}?`, options: [ { value: 'red', label: 'Red' }, { value: 'green', label: 'Green' }, { value: 'blue', label: 'Blue' }, ], }), }, { // On Cancel callback that wraps the group // So if the user cancels one of the prompts in the group this function will be called onCancel: ({ results }) => { p.cancel('Operation cancelled.'); process.exit(0); }, } ); console.log(group.name, group.age, group.color); ``` Readme --- ### Keywords * ask * clack * cli * command-line * command * input * interact * interface * menu * prompt * prompts * stdin * ui
doRedis
cran
R
Package ‘doRedis’ May 2, 2023 Type Package Title 'Foreach' Parallel Adapter Using the 'Redis' Database Version 3.0.2 Date 2023-5-1 Author <NAME> <<EMAIL>> Maintainer <NAME> <<EMAIL>> Description Create and manage fault- tolerant task queues for the 'foreach' package using the 'Redis' key/value database. BugReports https://github.com/bwlewis/doRedis/issues Depends R (>= 3.0), foreach(>= 1.3.0), iterators(>= 1.0.0), utils Imports redux, stats License GPL-2 LazyLoad yes RoxygenNote 7.1.1 NeedsCompilation yes Repository CRAN Date/Publication 2023-05-02 11:30:03 UTC R topics documented: doRedis-packag... 2 .doRedi... 2 job... 3 logge... 3 redisConnec... 4 redisDelet... 4 redisGe... 5 redisSe... 5 redisWorke... 6 registerDoRedi... 7 removeJo... 9 removeQueu... 9 setChunkSiz... 10 setExpor... 11 setFtinterva... 12 setPackage... 12 setProgres... 13 startLocalWorker... 13 task... 15 doRedis-package A Redis parallel back end for foreach. Description The doRedis package imlpements an elastic parallel back end for foreach using the Redis key/value database. See Also registerDoRedis, startLocalWorkers .doRedis internal function called by foreach Description internal function called by foreach Usage .doRedis(obj, expr, envir, data) Arguments obj a foreach object expr the expression to evaluate envir the expression environment data a list of parameters from registerDoRedis Value the foreach result jobs List doRedis jobs Description List doRedis jobs Usage jobs(queue = "*") Arguments queue List jobs for the specified queue, or set to "*" to list jobs for all queues Value a data frame listing jobs by row with variables queue, id, user, host and time (submitted). logger Print a timestamped message to the standard error stream. Description Use to help debug remote doRedis workers. Usage logger(msg) Arguments msg a character message to print to the standard error stream Value The character message that was printed, decorated with time and system info. redisConnect Explicitly connect to a Redis server. Description This function is normally not needed, use the redux package functions instead, or simply register- DoRedis. Usage redisConnect(host = "localhost", port = 6379L, password, ...) Arguments host character Redis host name port integer Redis port number password optional character Redis password ... optional additional arguments for compatability with old rredis, ignored See Also registerDoRedis, redisWorker, startLocalWorkers redisDelete A convenience function to delete a Redis key Description A convenience function to delete a Redis key Usage redisDelete(key) Arguments key (character or raw) Redis key name to delete Value Redis status message See Also hiredis redisGet A convenience function to return an R value from a Redis key. Description This function assumes the value associated with the Redis key is a serialized (binary) R value and unserializes it on return. Usage redisGet(key) Arguments key (character or raw) Redis key name Value Unserialized R value. See Also hiredis redisSet A convenience function to set an R value in a Redis key Description This function serializes the val argument. Usage redisSet(key, val) Arguments key (character or raw) Redis key name val R value to set Value Redis status message See Also hiredis redisWorker Initialize a doRedis worker process. Description The redisWorker function enrolls the current R session in one or more doRedis worker pools speci- fied by the work queue names. The worker loop takes over the R session until the work queue(s) are deleted, after which the worker loop exits after the linger period, or until the worker has processed iter tasks. Running workers also terminate after network activity with Redis remains inactive for longer than the timeout period set in the redisConnect function. That value defaults internally to 30 seconds in redisWorker. You can increase it by including a timeout=n argument value. Usage redisWorker( queue, host = "localhost", port = 6379, iter = Inf, linger = 30, log = stderr(), connected = FALSE, password = NULL, loglevel = 0, timelimit = 0, ... ) Arguments queue work queue name or a vector of queue names host Redis database host name or IP address port Redis database port number iter maximum number of tasks to process before exiting the worker loop linger timeout in seconds after which the work queue is deleted that the worker termi- nates log print messages to the specified file connection connected set to TRUE to reuse an existing open connection to Redis, otherwise establish a new one password optional Redis database password loglevel set to > 0 to increase verbosity in the log timelimit set to > 0 to specify a task time limit in seconds, after which worker processes are killed; beware that setting this value > 0 will terminate any R worker process if their task takes too long. ... Optional additional parameters passed to redisConnect Value NULL is invisibly returned. Note The worker connection to Redis uses a TCP timeout value of 30 seconds by default. That means that the worker will exit after about 30 seconds of inactivity. If you want the worker to remain active for longer periods, set the timeout option to a larger value. Use the linger option to instruct the worker to linger for up to the indicated number of seconds after the listening work queue has been removed. After at most that interval, the worker will exit after removing the queue. See Also registerDoRedis, startLocalWorkers registerDoRedis Register the Redis back end for foreach. Description The doRedis package imlpements a simple but flexible parallel back end for foreach that uses Redis for inter-process communication. The work queue name specifies the base name of a small set of Redis keys that the coordinator and worker processes use to exchange data. Usage registerDoRedis( queue, host = "localhost", port = 6379, password, ftinterval = 30, chunkSize = 1, progress = FALSE, ... ) Arguments queue A work queue name host The Redis server host name or IP address port The Redis server port number password An optional Redis database password ftinterval Default fault tolerance interval in seconds chunkSize Default iteration granularity, see setChunkSize progress (logical) Show progress bar for computations? ... Optional arguments passed to redisConnect Details Back-end worker R processes advertise their availablility for work with the redisWorker function. The doRedis parallel back end tolerates faults among the worker processes and automatically re- submits failed tasks. It is also portable and supports heterogeneous sets of workers, even across operative systems. The back end supports dynamic pools of worker processes. New workers may be added to work queues at any time and can be used by running foreach computations. Value NULL is invisibly returned; this function is called for side effect of registering a foreach backend. Note All doRedis functions require access to a Redis database server (not included with this package). Worker processes default to same random number generator as the coordinator process by default with seeds set per iteration rather than per worker to yield reproducible output independent of the number of worker processes. The L’Ecuyer-CMRG RNG available from the parallel package is recommended when high-quality distributed pseudorandom numbers are needed. See package vignette for more details and additional options. Avoid using fork-based parallel functions within doRedis expressions. Use of mclapply and similar functions in the body of a doRedis foreach loop can result in worker faults. See Also foreach, doRedis-package, setChunkSize, removeQueue Examples # Only run if a Redis server is running if (redux::redis_available()) { ## The example assumes that a Redis server is running on the local host ## and standard port. # 1. Start a single local R worker process startLocalWorkers(n=1, queue="jobs", linger=1) # 2. Run a simple sampling approximation of pi: registerDoRedis("jobs") pie = foreach(j=1:10, .combine=sum, .multicombine=TRUE) %dopar% 4 * sum((runif(1000000) ^ 2 + runif(1000000) ^ 2) < 1) / 10000000 removeQueue("jobs") print(pie) # Note that removing the work queue automatically terminates worker processes. } removeJob Remove Redis keys associated with one or more doRedis jobs Description Remove Redis keys associated with one or more doRedis jobs Usage removeJob(job) Arguments job Either a named character vector with "queue" and "id" entries corresponding to a doRedis job queue and job id, or a list with equal-length "queue" and "id" entries, or a data frame with "queue" and "id" entries, for example as returned by jobs. Value NULL is invisibly returned; this function is used for its side effect–in particular, removing all Redis keys associated with the specified job. removeQueue Remove a doRedis queue and delete all associated keys from Redis. Description Removing a doRedis queue cleans up associated keys in the Redis database and signals to workers listening on the queue to terminate. Workers terminate after their timeout period after their work queue is deleted. Usage removeQueue(queue) Arguments queue the doRedis queue name Value NULL is invisibly returned; this function is called for the side effect of removing Redis keys associ- ated with the specified queue. Note Workers listening for work on more than one queue will only terminate after all their queues have been deleted. See registerDoRedis for an example. setChunkSize Set the default granularity of distributed tasks. Description A job is the collection of all tasks in a foreach loop. A task is a collection of loop iterations of at most size chunkSize. R workers are assigned work by task in blocks of at most chunkSize loop iterations per task. The default value is one iteration per task. Setting the default chunk size larger for shorter-running jobs can substantially improve performance. Setting this value too high can negatively impact load-balancing across workers, however. Usage setChunkSize(value = 1) Arguments value positive integer chunk size setting Value value is invisibly returned; this value is called for its side effect. Examples # Only run if a Redis server is running if (redux::redis_available()) { # Start a single local R worker process startLocalWorkers(n=1, queue="jobs", linger=1) # Register the work queue with the coordinator R process registerDoRedis("jobs") # Compare verbose task submission output from... setChunkSize(1) foreach(j=1:4, .combine=c, .verbose=TRUE) %dopar% j # with the verbose task submission output from: setChunkSize(2) foreach(j=1:4, .combine=c, .verbose=TRUE) %dopar% j # Clean up removeQueue("jobs") } setExport Manually add symbol names to the worker environment export list. Description The setExport function lets users manually declare symbol names of corresponding objects that should be exported to workers. Usage setExport(names = c()) Arguments names A character vector of symbol names to export. Details The foreach function includes a similar .export parameter. We provide this supplemental export option for users without direct access to the foreach function, for example, when foreach is used inside another package. Value The value of names is invisibly returned (this function is used ofr its side effect). Examples ## Not run: registerDoRedis("work queue") startLocalWorkers(n=1, queue="work queue", linger=1) f <- function() pi (foreach(1) %dopar% tryCatch(eval(call("f")), error = as.character)) # Returns the error converted to a message: # Error in eval(call("f")) : task 1 failed - could not find function "f" # Manually export the symbol f: setExport("f") (foreach(1) %dopar% eval(call("f"))) # Now f is found. removeQueue("work queue") ## End(Not run) setFtinterval Set the fault tolerance check interval in seconds. Description Failed tasks are automatically re-submitted to the work queue. The setFtinterval sets an upper bound on how frequently the system checks for failure. See the package vignette for discussion and examples. Usage setFtinterval(value = 30) Arguments value positive integer number of seconds Value value is invisibly returned (this function is used for its side effect). setPackages Manually set package names in the worker environment package list. Description The setPackages function lets users manually declare packages that R worker processes need to load before running their tasks. Usage setPackages(packages = c()) Arguments packages A character vector of package names. Details The foreach function includes a similar .packages parameter. Defines a way to set the foreach .packages option for users without direct access to the foreach function, for example, when foreach is used inside another package. Value The value of packages is invisibly returned (this function is used for its side effect). setProgress Progress bar Description Progress bar Usage setProgress(value = FALSE) Arguments value if TRUE, display a text progress bar indicating status of the computation Value value is invisibly returned (this function is used for its side effect). startLocalWorkers Start one or more background R worker processes on the local system. Description Use startLocalWorkers to start one or more doRedis R worker processes in the background. The worker processes are started on the local system using the redisWorker function. Usage startLocalWorkers( n, queue, host = "localhost", port = 6379, iter = Inf, linger = 30, log = stdout(), Rbin = paste(R.home(component = "bin"), "R", sep = "/"), password, ... ) Arguments n number of workers to start queue work queue name host Redis database host name or IP address port Redis database port number iter maximum number of tasks to process before exiting the worker loop linger timeout in seconds after which the work queue is deleted that the worker termi- nates log print messages to the specified file connection Rbin full path to the command-line R program password optional Redis database password ... optional additional parameters passed to the redisWorker function Details Running workers self-terminate after a linger period if their work queues are deleted with the removeQueue function, or when network activity with Redis remains inactive for longer than the timeout period set in the redisConnect function. That value defaults internally to 3600 (one hour) in startLocalWorkers. You can increase it by including a timeout=n argument value. Value NULL is invisibly returned. See Also registerDoRedis, redisWorker Examples # Only run if a Redis server is running if (redux::redis_available()) { ## The example assumes that a Redis server is running on the local host ## and standard port. # Start a single local R worker process startLocalWorkers(n=1, queue="R jobs", linger=1) # Run a simple sampling approximation of pi: registerDoRedis("R jobs") print(foreach(j=1:10, .combine=sum, .multicombine=TRUE) %dopar% 4 * sum((runif(1000000) ^ 2 + runif(1000000) ^ 2) < 1) / 10000000) # Clean up removeQueue("R jobs") } tasks List running doRedis tasks Description List running doRedis tasks Usage tasks(queue = "*", id = "*") Arguments queue List jobs for the specified queue, or set to "*" to list jobs for all queues id List tasks for the specified job id, or set to "*" to list tasks for all job ids Value a data frame listing jobs by row with variables queue, id, user, coordinator, time, iter, host, pid (see Note) Note The returned values indicate 1. queue the doRedis queue name 2. id the doRedis job id 3. user the user running the job 4. coordinator the host name or I.P. address where the job was submitted (and the coordinator R process runs) 5. time system time on the worker node when the task was started 6. iter the loop iterations being run by the task 7. host the host name or I.P. address where the task is running 8. pid the process ID of the R worker running the task on host Tasks are listed until a key associated with them expires in Redis. Thus running tasks are not explicitly removed from the task list immediately when they terminate, but may linger on the list for a short while after (a few seconds).
carla
readthedoc
Markdown
Welcome to the CARLA documentation. This home page contains an index with a brief description of the different sections in the documentation. Feel free to read in whatever order preferred. In any case, here are a few suggestions for newcomers. * Install CARLA. Either follow the Quick start installation to get a CARLA release or make the build for a desired platform. * Start using CARLA. The section titled Foundations is an introduction to the most important concepts and the first steps tutorial shows you how to get started. * Check the API. there is a handy Python API reference to look up the classes and methods available. The CARLA forum is available to post any doubts or suggestions that may arise during the reading. Warning Change the docs version to fit the CARLA version you are using. Use the panel in the bottom-right side of this window to change to previous versions. The Latest version points to documentation in the `dev` branch which may refer to features currently in development and not available in any packaged version of CARLA, as well general documentation improvements. ## Getting started Introduction — What to expect from CARLA.Quick start package installation — Get the CARLA releases. First steps — Taking the first steps in CARLA. Building CARLA — How to build CARLA from source. ## CARLA components Foundations — Overview of the fundamental building blocks of CARLA.Actors — Learn about actors and how to handle them. Maps — Discover the different maps and how do vehicles move around. Sensors and data — Retrieve simulation data using sensors. Traffic — An overview of the different options available to populate your scenes with traffic. 3rd party integrations — Integrations with 3rd party applications and libraries. Development — Information on how to develop custom features for CARLA. Custom assets — Information on how to develop custom assets ## Resources Blueprint library — Blueprints provided to spawn actors.Python API — Classes and methods in the Python API. C++ reference — Classes and methods in CARLA C++. ## CARLA ecosystem ROS bridge documentation — Brief overview of the ROS bridge and a link to the full documentationMathWorks — Overview of creating a map in RoadRunner. SUMO — Details of the co-simulation feature with SUMO. Scenic — How to use Scenic with CARLA to generate scenarios. Chrono — Details of the Chrono physics simulation integration with CARLA. OpenDrive — Details of the OpenDrive support in CARLA. PTV-Vissim — Details of the co-simulation feature with PTV-Vissim. RSS — Details of the Responsibility Sensitive Safety library integration with CARLA. AWS — Details of using RLlib to run CARLA as a distributed application on Amazon Web Services. ANSYS — Brief overview of how the Ansys Real Time Radar Model was integrated into CARLA. carlaviz — web visualizer — Plugin that listens the simulation and shows the scene and some simulation data in a web browser. ## Contributing to CARLA Guidelines — Guidelines on contributing to the development of the CARLA simulator and its ecosystem.Coding standards — Details on the best coding practices when contributing to CARLA development. Documentation standard — Details on the documentation standards for CARLA docs. ## Tutorials There are numerous tutorials covering CARLA features with code and guidelines for varied use cases. Please check the tutorials page for help with your work. ## Extended documentation The pages above cover most of the core concepts and features of CARLA. There is additional documentation in the extended documentation section covering advanced features in more depth. This document refers to the latest version of CARLA. For documentation of previous versions, select the required version in the bottom right hand corner where you see this button: CARLA is an open-source autonomous driving simulator. It was built from scratch to serve as a modular and flexible API to address a range of tasks involved in the problem of autonomous driving. One of the main goals of CARLA is to help democratize autonomous driving R&D, serving as a tool that can be easily accessed and customized by users. To do so, the simulator has to meet the requirements of different use cases within the general problem of driving (e.g. learning driving policies, training perception algorithms, etc.). CARLA is grounded on Unreal Engine to run the simulation and uses the OpenDRIVE standard (1.4 as today) to define roads and urban settings. Control over the simulation is granted through an API handled in Python and C++ that is constantly growing as the project does. In order to smooth the process of developing, training and validating driving systems, CARLA evolved to become an ecosystem of projects, built around the main platform by the community. In this context, it is important to understand some things about how does CARLA work, so as to fully comprehend its capabilities. ## The simulator The CARLA simulator consists of a scalable client-server architecture.The server is responsible for everything related with the simulation itself: sensor rendering, computation of physics, updates on the world-state and its actors and much more. As it aims for realistic results, the best fit would be running the server with a dedicated GPU, especially when dealing with machine learning. The client side consists of a sum of client modules controlling the logic of actors on scene and setting world conditions. This is achieved by leveraging the CARLA API (in Python or C++), a layer that mediates between server and client that is constantly evolving to provide new functionalities. That summarizes the basic structure of the simulator. Understanding CARLA though is much more than that, as many different features and elements coexist within it. Some of these are listed hereunder, as to gain perspective on the capabilities of what CARLA can achieve. * Traffic manager. A built-in system that takes control of the vehicles besides the one used for learning. It acts as a conductor provided by CARLA to recreate urban-like environments with realistic behaviours. * Sensors. Vehicles rely on them to dispense information of their surroundings. In CARLA they are a specific kind of actor attached the vehicle and the data they receive can be retrieved and stored to ease the process. Currently the project supports different types of these, from cameras to radars, lidar and many more. * Recorder. This feature is used to reenact a simulation step by step for every actor in the world. It grants access to any moment in the timeline anywhere in the world, making for a great tracing tool. * ROS bridge and Autoware implementation. As a matter of universalization, the CARLA project ties knots and works for the integration of the simulator within other learning environments. * Open assets. CARLA facilitates different maps for urban settings with control over weather conditions and a blueprint library with a wide set of actors to be used. However, these elements can be customized and new can be generated following simple guidelines. * Scenario runner. In order to ease the learning process for vehicles, CARLA provides a series of routes describing different situations to iterate on. These also set the basis for the CARLA challenge, open for everybody to test their solutions and make it to the leaderboard. ## The project CARLA grows fast and steady, widening the range of solutions provided and opening the way for the different approaches to autonomous driving. It does so while never forgetting its open-source nature. The project is transparent, acting as a white box where anybody is granted access to the tools and the development community. In that democratization is where CARLA finds its value.Talking about how CARLA grows means talking about a community of developers who dive together into the thorough question of autonomous driving. Everybody is free to explore with CARLA, find their own solutions and then share their achievements with the rest of the community. This documentation will be a companion along the way. The next page contains Quick start instructions for those eager to install a CARLA release. There is also a build guide for Linux and Windows. This will make CARLA from repository and allow to dive full-length into its features. Welcome to CARLA. This guide shows how to download and install the packaged version of CARLA. The package includes the CARLA server and two options for the client library. There are additional assets that can be downloaded and imported into the package. Advanced customization and development options that require use of the Unreal Engine editor are not available but these can be accessed by using the build version of CARLA for either Windows or Linux. * Before you begin * CARLA installation * Import additional assets * Install client library * Running CARLA * Updating CARLA * Follow-up The following requirements should be fulfilled before installing CARLA: * System requirements. CARLA is built for Windows and Linux systems. * An adequate GPU. CARLA aims for realistic simulations, so the server needs at least a 6 GB GPU although we would recommend 8 GB. A dedicated GPU is highly recommended for machine learning. * Disk space. CARLA will use about 20 GB of space. * Python. Python is the main scripting language in CARLA. CARLA supports Python 2.7 and Python 3 on Linux, and Python 3 on Windows. * Pip. Some installation methods of the CARLA client library require pip or pip3 (depending on your Python version) version 20.3 or higher. To check your pip version: ``` # For Python 3 pip3 -V # For Python 2 pip -V ``` If you need to upgrade: ``` # For Python 3 pip3 install --upgrade pip # For Python 2 pip install --upgrade pip ``` * Two TCP ports and good internet connection. 2000 and 2001 by default. Make sure that these ports are not blocked by firewalls or any other applications. * Other requirements. CARLA requires some Python dependencies. Install the dependencies according to your operating system: ### Windows ``` pip3 install --user pygame numpy ``` ### Linux ``` pip install --user pygame numpy && pip3 install --user pygame numpy ``` ## CARLA installation There are two methods to download and install CARLA as a package: A) Download the Debian package. B) Download the package from GitHub. ### A. Debian CARLA installation The Debain package is available for both Ubuntu 18.04 and Ubuntu 20.04, however the officially supported platform is Ubuntu 18.04. 1. Set up the Debian repository in the system: ``` sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY> sudo add-apt-repository "deb [arch=amd64] http://dist.carla.org/carla $(lsb_release -sc) main" ``` 2. Install CARLA and check for the installation in the `/opt/` folder: ``` sudo apt-get update # Update the Debian package index sudo apt-get install carla-simulator # Install the latest CARLA version, or update the current installation cd /opt/carla-simulator # Open the folder where CARLA is installed ``` This repository contains CARLA 0.9.10 and later versions. To install a specific version add the version tag to the installation command: ``` apt-cache madison carla-simulator # List the available versions of Carla sudo apt-get install carla-simulator=0.9.10-1 # In this case, "0.9.10" refers to a CARLA version, and "1" to the Debian revision ``` To install CARLA versions prior to 0.9.10, change to a previous version of the documentation using the panel in the bottom right corner of the window, and follow the old instructions. ### B. Package installation This repository contains different versions of CARLA. You will find options to download the current release with all the most recent fixes and features, previous releases and a nightly build with all the developmental fixes and features (the nightly build is the most unstable version of CARLA). The package is a compressed file named CARLA_version.number. Download and extract the release file. It contains a precompiled version of the simulator, the Python API module and some scripts to be used as examples. ## Import additional assets Each release has it's own additional package of extra assets and maps. This additional package includes the maps Town06, Town07, and Town10. These are stored separately to reduce the size of the build, so they can only be imported after the main package has been installed. 1. Download the appropriate package for your desired version of CARLA. 2. Extract the package: On Linux: * move the package to the Import folder and run the following script to extract the contents: ./ImportAssets.sh ``` On Windows: * Extract the contents directly in the root folder. ## Install client library ### CARLA versions prior to 0.9.12 Previous versions of CARLA did not require the Python library to be installed, they came with an `.egg` file that was ready to use out of the box. CARLA versions 0.9.12+ change this behavior significantly; there are several options available to install the client library. If you are using a version of CARLA prior to 0.9.12, please select that version in the bottom right corner of the screen to see the relevant documentation. Otherwise, read on below about the available options in CARLA 0.9.12+. ### CARLA 0.9.12+ There are several options available to install and use the CARLA client library: * .egg file * .whl file * Downloadable Python package Read more below about the requirements and limitations of each method before deciding which one to use. Please note that mixing the different methods can lead to incompatibilities, so use virtual environments when possible or uninstall a previously installed library before using a new one. A. .egg files CARLA provides `.egg` files in for different Python versions that are ready to use out of the box. Each of the example scripts in `PythonAPI/examples` includes a code snippet that looks for this file automatically. In Linux, you may need to add this file to your `PYTHONPATH` . Read more about `.egg` files in CARLA here. If you have previously installed the client library with `pip` , this will take precedence over the `.egg` file. You will need to uninstall the previous library first. B. .whl files CARLA provides `.whl` files for different Python versions. You will need to install the `.whl` file. The `.whl` file is found in . There is one file per supported Python version, indicated by the file name (e.g., carla-0.9.12-cp36-cp36m-manylinux_2_27_x86_64.whl indicates Python 3.6). It is recommended to install the CARLA client library in a virtual environment to avoid conflicts when working with multiple versions. To install the CARLA client library, run the following command, choosing the file appropriate to your desired Python version. You will need pip/pip3 version 20.3 or above. See the Before you begin section for how to check the version and upgrade pip/pip3: If you previously installed the client library, you should uninstall the old one before installing the new one. C. Downloadable Python package The CARLA client library can be downloaded from PyPi. This library is compatible with Python versions 2.7, 3.6, 3.7, and 3.8. To install it you will need pip/pip3 version 20.3 or above. See the Before you begin section for how to check the version and upgrade pip/pip3. It is recommended to install the CARLA client library in a virtual environment to avoid conflicts when working with multiple versions. To install the client library from PyPi, run the following command: The PyPi download is suitable for use with CARLA packages only (i.e., not with a version built from source). Since the PyPi download only contains the client library, it is most useful in situations where you will be communicating with a remote CARLA server where you do not require downloading a full CARLA package. ## Running CARLA The method to start a CARLA server depends on the installation method you used and your operating system: * Debian installation: ``` cd /opt/carla-simulator/bin/ * Linux package installation: * Windows package installation: CarlaUE4.exe ``` A window containing a view over the city will pop up. This is the spectator view. To fly around the city use the mouse and `WASD` keys, holding down the right mouse button to control the direction. This is the server simulator which is now running and waiting for a client to connect and interact with the world. You can try some of the example scripts to spawn life into the city and drive a car: ``` # Terminal A cd PythonAPI\examples python3 -m pip install -r requirements.txt # Support for Python2 is provided in the CARLA release packages python3 generate_traffic.py # Terminal B cd PythonAPI\examples python3 manual_control.py ``` # Command-line options There are some configuration options available when launching CARLA and they can be used as follows: ``` ./CarlaUE4.sh -carla-rpc-port=3000 ``` * `-carla-rpc-port=N` Listen for client connections at port `N` . Streaming port is set to `N+1` by default. * ``` -carla-streaming-port=N ``` Specify the port for sensor data streaming. Use 0 to get a random unused port. The second port will be automatically set to `N+1` . * ``` -quality-level={Low,Epic} ``` Change graphics quality level. Find out more in rendering options. * List of Unreal Engine 4 command-line arguments. There are a lot of options provided by Unreal Engine however not all of these are available in CARLA. The script provides more configuration options and should be run when the server has been started: ``` ./config.py --no-rendering # Disable rendering ./config.py --map Town05 # Change map ./config.py --weather ClearNoon # Change weather ./config.py --help # Check all the available configuration options ``` ## Updating CARLA There is no way to update the packaged version of CARLA. When a new version is released, the repository is updated and you will need to delete the previous version and install the new version. If you installed the client library using pip/pip3, you should uninstall it by running: ``` # Python 3 pip3 uninstall carla # Python 2 pip uninstall carla ``` ## Follow-up By now you should have a packaged version of CARLA up and running. If you came across any difficulties during the installation process, feel free to post in the CARLA forum or in the Discord channel. The next step is to learn more about the core concepts in CARLA. Read the First steps section to start learning. You can also find all the information about the Python API classes and methods in the Python API reference. The CARLA simulator is a comprehensive solution for producing synthetic training data for applications in autonomous driving (AD) and also other robotics applications. CARLA simulates a highly realistic environment emulating real world towns, cities and highways and the vehicles and other objects that occupy these driving spaces. The CARLA simulator is further useful as an evaluation and testing environment. You can deploy the AD agents you have trained within the simulation to test and evaluate their performance and safety, all within the security of a simulated environment, with no risk to hardware or other road users. In this tutorial, we will cover a standard workflow in CARLA, from launching the server and connecting the client, through to adding vehicles, sensors and generating training data to use for machine learning. This tutorial is meant to be light on details and go as efficiently as possible through the key steps in using CARLA to produce machine learning training data. For further details on each part of the workflow, such as the multitude of vehicles available in the blueprint library or the alternative types of sensors available, please consult the links in the text or browse the left menu. * Launching CARLA * Loading a map * Spectator navigation * Adding NPCs * Add sensors * Animate vehicles * Assign a vehicle as the Ego Vehicle * Choose your map * Choose your vehicles ## Launching CARLA and connecting the client CARLA can be launched using the command line using the executable in Windows or the shell script in Linux. Follow the installation instructions for Linux and Windows then launch CARLA from the command line: ``` cd /carla/root ./CarlaUE4.sh ``` To manipulate CARLA through the Python API, we need to connect the Python client to the server through an open port. The client controls the simulator through the client and world objects Open a Python notebook or create a new script, then add the following code to the start of the script or the main function: ``` import carla import random # Connect to the client and retrieve the world object client = carla.Client('localhost', 2000) world = client.get_world() ``` The client object serves to maintain the client's connection to the server and has a number of functions for applying commands and loading or exporting data. We can load an alternative map or reload the current one (resetting to initial state) using the client object. The port can be chosen as any available port and is set to 2000 by default, you can also choose a host different from localhost by using a computer's IP address. This way, the CARLA server can be run on a networked machine, while the python client can be run from a personal computer. This is particularly useful for differentiating the GPU used for running the CARLA simulator and that used for neural network training, both of which can be highly demanding on graphics hardware. The following presumes that CARLA is running in the default asynchronous mode. If you have engaged synchronous mode, some of the code in the following sections might not work as expected. ## Loading a map In the CARLA API, the world object provides access to all elements of the simulation, including the map, objects within the map, such as buildings, traffic lights, vehicles and pedestrians. The CARLA server normally loads a default map (normally Town10). If you want to launch CARLA with an alternate map, use the `config.py` script: ``` ./config.py --map Town05 ``` We can also use the world object to load a map from the client: ``` client.load_world('Town05') ``` Please find more information about CARLA maps here. ## Spectator navigation The spectator is a view into the simulation. By default, the spectator opens in a new window when you run the CARLA server on a computer with a screen attached, unless you specify the `-RenderOffScreen` command line option. The spectator is helpful to visualize your simulation. Using the spectator, you can familiarize yourself with the map you've loaded, and see the result of any changes you are making, such as adding vehicles, changing the weather, turning on/off various layers of the map and for debugging purposes. You can fly the spectator around the world using the mouse to control the pitch and yaw of the spectator view and the QWE-ASD keys to move the spectator: * Q - move upwards (towards the top edge of the window) * E - move downwards (towards the lower edge of the window) * W - move forwards * S - move backwards * A - move left * D - move right Left click and drag the mouse in the spectator window up and down to control pitch and left and right to control yaw. The spectator and its properties can be accessed and manipulated through the Python API: ``` # Retrieve the spectator object spectator = world.get_spectator() # Get the location and rotation of the spectator through its transform transform = spectator.get_transform() location = transform.location rotation = transform.rotation # Set the spectator with an empty transform spectator.set_transform(carla.Transform()) # This will set the spectator at the origin of the map, with 0 degrees # pitch, yaw and roll - a good way to orient yourself in the map ``` ## Adding NPCs Now we've loaded the map and the server is up and running we now need to populate our simulation with some vehicles to simulate a real environment with traffic and other road users or non-player characters (NPCs). To spawn vehicles, first, we need to select the vehicles we want from the blueprint library. ``` # Get the blueprint library and filter for the vehicle blueprints vehicle_blueprints = world.get_blueprint_library().filter('*vehicle*') ``` Now we have the blueprints, we need to find some appropriate spots in the map to spawn our vehicles. Each CARLA map provides pre-defined spawn points spread evenly throughout the map on the roads for this purpose. ``` # Get the map's spawn points spawn_points = world.get_map().get_spawn_points() # Spawn 50 vehicles randomly distributed throughout the map # for each spawn point, we choose a random vehicle from the blueprint library for i in range(0,50): world.try_spawn_actor(random.choice(vehicle_blueprints), random.choice(spawn_points)) ``` Now we should also add a vehicle that will be the centerpoint of our simulation. To train an autonomous agent we need to simulate a the vehicle that it the autonomous agent will control. In CARLA parlance, we often refer to this vehicle as the "Ego vehicle". ``` ego_vehicle = world.spawn_actor(random.choice(vehicle_blueprints), random.choice(spawn_points)) ``` In addition to vehicles, CARLA also provides pedestrians to add to simulations to simulate realistic driving scenarios. Vehicles and pedestrians are referred to as actors in the CARLA parlance, learn more about them here. ## Add sensors Modern autonomous vehicles understand and interpret their environment through an array of attached sensors. These sensors include things such as optical video cameras, optical flow cameras, LIDARs, RADARs and accelerometers. CARLA has models of numerous types of sensors built in to create training data for machine learning. The sensors can be attached to a vehicle, or they can be attached to a fixed point to model for example a CCTV camera. Here we will attach a standard camera sensor to the ego vehicle to record some video data: ``` # Create a transform to place the camera on top of the vehicle camera_init_trans = carla.Transform(carla.Location(z=1.5)) # We create the camera through a blueprint that defines its properties camera_bp = world.get_blueprint_library().find('sensor.camera.rgb') # We spawn the camera and attach it to our ego vehicle camera = world.spawn_actor(camera_bp, camera_init_trans, attach_to=ego_vehicle) ``` Once we have spawned the camera, we need to set it recording through the `listen()` method. The listen method takes as argument a callback that defines what to do with the data. You can either stream it to another program or save it to disk. We will use a lambda function as a callback to save the data to disk: ``` # Start camera with PyGame callback camera.listen(lambda image: image.save_to_disk('out/%06d.png' % image.frame)) ``` This will save the data to the `out/` folder as a series of PNG image files named according to the simulation frame number. There are a multitude of different types of sensors to choose from. Here you can delve deeper into the array of sensors available and how to use them. ## Animate vehicles with traffic manager Now we've added our traffic and ego vehicle to the simulation and started recording camera data, we now need to set the vehicles in motion using the Traffic manager. The Traffic manager is a component of CARLA that controls vehicles to autonomously move around the roads of the map within the simulation, following the road conventions and behaving like real road users. We can find all the vehicles in the simulation using the `world.get_actors()` method, filtering for all the vehicles. We can then use the `set_autopilot()` method to hand over control of the vehicle to the Traffic Manager. ``` for vehicle in world.get_actors().filter('*vehicle*'): vehicle.set_autopilot(True) ``` Now your simulation is running, with numerous vehicles driving around the map and a camera recording data from one of those vehicles. This data can then be used to feed a machine learning algorithm for training an autonomous driving agent. The Traffic manager has many functions for customising traffic behaviour, learn more here. This is the most basic possible set up for a simulation, now you can go into further details deeper into documentation about the many extra sensors you can use to generate data, and the many other features of CARLA that can make your simulations more detailed and more realistic. ## Assign a vehicle as the Ego Vehicle The Ego Vehicle is an important concept to bear in mind when using CARLA. The Ego Vehicle refers to the vehicle that will be the focus of the simulation. In most CARLA use cases it's likely to be the vehicle to which you will attach your sensors and/or the vehicle that your autonomous driving machine learning stack will control. It is important because it serves as the basis for some simulation operations that help improve the efficiency of the simulation, like for example: Loading map tiles for Large Maps: Large Maps (like Town 12) are made up of tiles to that are only loaded when needed to improve CARLA performance. The position of the Ego Vehicle dictates which tiles are used. Only the tiles nearest the Ego Vehicle will be loaded. * Hybrid Physics Mode: if your simulation contains a lot of vehicles controlled by the Traffic Manager, calculating physics for all of these vehicles is very computationally expensive. The Hybrid Physics Mode enables physics calculation to be limited to the vehicles in the vicinity of the Ego Vehicle, hence saving computing resources. To define the Ego Vehicle, you should set the `role_name` attribute of the vehicle carla.Actor object's blueprint when you are spawning your Ego Vehicle: ``` ego_bp = world.get_blueprint_library().find('vehicle.lincoln.mkz_2020') ego_bp.set_attribute('role_name', 'hero') ego_vehicle = world.spawn_actor(ego_bp, random.choice(spawn_points)) ``` ## Choose your map CARLA comes loaded with several pre-made maps focused on providing a diversity of features. The maps present a range of environments such as urban, rural and residential. There are also differing architectural styles and also a multitude of different road layouts from unmarked rural roads to multi-lane highways. Browse the map guides in the catalogue or in the table below. You can browse the available maps in your CARLA installation: ``` client.get_available_maps() ``` This will include maps that you have built yourself or imported. When you choose a map, load it like so: ``` client.load_world('Town03_Opt') ``` ## Choose your vehicles CARLA provides a library of vehicles to fill your simulation with traffic. Browse the vehicle models in the CARLA vehicle catalogue. You can see all available vehicle blueprints by filtering the blueprint library. ``` for bp in world.get_blueprint_library().filter('vehicle'): print(bp.id) ``` Users can build CARLA from the source code for development purposes. This is recommended if you want to add extra features or capabilities to CARLA or if you want to use the Unreal Editor to create assets or manipulate maps. Build instructions are available for Linux and Windows. You can also build CARLA in a Docker container for deployment in AWS, Azure or Google cloud services. Visit the CARLA GitHub and clone the repository. # Content authoring - maps # Content authoring - Maps CARLA comes with a generous compliment of assets for creating driving simulations out of the box. However, the real power of CARLA comes in its comprehensive extensibility, allowing users to create entirely custom environments populated with bespoke assets like buildings, benches, trash cans, statues, street lights and bus stops. In this tutorial we will cover the process of creating a simple map for use with CARLA. We will use two software packages to create parts of the map. We will create the road network using RoadRunner and then add assets to the map through the Unreal Editor. * Prerequisites * Large maps * RoadRunner * Importing into CARLA * Importing assets * Traffic lights * Traffic signs * Materials * Road painter * Trees and vegetation ## Prerequisites To follow this guide, you will need to build CARLA from source, so that you may use the Unreal Editor. Follow the build instructions for your relevant operating system. You will also need a licensed copy of RoadRunner. You may also need a 3D modelling application such as Maya, 3DS Max or Blender to create 3D assets for your custom maps. You should ensure you have completed all the steps to build CARLA and ensure that the Unreal Editor is working, this could take some time to build the application. If you want to create 3D assets for your map, you should use an appropriate 3D design application such as Blender, Maya, 3DsMax or Modo. The following text details the procedures for creating and decorating a standard map. From version 0.9.12, CARLA has the Large Maps functionality. Large maps are bigger in scale than standard maps, and can be up to 100 km2 in size. Large maps work in a slightly different way to standard maps, because of hardware limitations, even in high end graphics cards. Large maps are split up into tiles, and only the tiles needed immediately (i.e. those closest to the Ego vehicle) are loaded during the simulation. Other tiles sit dormant until the data is needed. This facilitates the highest performance for CARLA simulations. Most of the details that follow are similar when building a Large Map, but there are some additional steps. Please follow this guide to build a Large Map for CARLA. ## Create a road network using RoadRunner Open RoadRunner and create a new scene. Choose the Road Plan Tool and right click in the workspace to drop the first control point for the road. Click and drag elsewhere in the workspace to extend the road. For the purpose of this tutorial we use a simple oval road with a junction in the middle. For building more advanced networks please refer to the roadrunner documentation. . Once you have created your desired road network, in the RoadRunner menu bar choose ``` File > Export > Carla (.fbx, .xodr, .rrdata, .xml) ``` and export to an appropriate location. RoadRunner is the best application for creating custom maps. There are alternatives such as OpenStreetMap that focus on generating maps from real road maps. ## TrueVision designer RoadRunner is a proprietary software that requires MATLAB. Some institutions like universities may have deals with MathWorks such that some users may be able to acquire a RoadRunner license. If you don't have budget for a license, a convenient open source alternative to RoadRunner is the TrueVision Designer. This app has many of the same features as RoadRunner and is useful if you cannot acquire a license for RoadRunner. ## Importing your road network into CARLA The important export files needed for CARLA are the `.xodr` file and the `.fbx` file. Copy or move these files into the `Import` folder inside the root directory of the CARLA repository where you have built from source. Now open a terminal at the root of the CARLA source directory and run `make import` . This will import the road network into CARLA. You can now see your new map inside the Unreal Editor. Run `make launch` at the root of the CARLA source directory to launch the Unreal Editor. You will now see a new directory in the content browser named `map_package` . Within this directory in the location ``` Content > map_package > Maps > tutorial ``` you will now find your new map. You have now created the road network, the basis of your map. ## Importing assets and adding them to the map Now we have the road network as the basis for our map, we now want to create some content for the map, such as buildings. These assets can be created using a 3D modelling application such as Autodesk Maya, 3DS Max, Blender or any other 3D application with the appropriate export options. It is important that, at a minimum, the application is capable of `.fbx` export. There are several elements needed to create an asset in CARLA: * Mesh - a set of 3D coordinate vertices and the associated joining edges * UV map - a mapping of 3D vertices and edges to a 2D texture space to match textures with 3D locations * Texture - a 2D image defining the colors and patterns to appear on the surface of the 3D object * Normal map - a 2D image defining the directions of the normals on the surface of the object, to add 3D variations to the object's surface * ORM map - a map defining the regions of metallicity, roughness and ambient occlusion The ORM map utilizes the channels of a standard RGBA encoded image to encode the map of metallic regions, roughness and ambient occlusion. As we define the map here, the red channel defines the metallic map, the green channel the roughness and the blue channel is the ambient occlusion. These maps (as well as the diffuse and normal maps) can be created using an application such as Adobe Substance 3D painter. Create a new folder in some appropriate location using the Unreal content browser. Within this folder you can either right click and select ``` Import to PATH/TO/FOLDER ``` near the top of the context menu, or drag and drop files directly into the content browser. We will import an FBX file containing the base mesh and the UV map, that we have exported from Blender. In the context menu, ensure that in the Mesh section `Import Normals` is selected for `Normal Import Method` and that in the Material section that ``` Do Not Create Material ``` is selected. Deselect `Import Textures` in the Materials section since we will import them manually. These choices would differ if you wanted to use some textures already embedded in your FBX file. Select `Import All` . Once the import has completed, double click on the imported asset that appears in the content browser to edit it. We should now import the textures, the diffuse texture for the diffuse colors, the normal map and the ORM map. Open the ORM map by double clicking and deselect the `sRGB` option, to ensure the texture is correctly applied. Right click in the content browser and select `Material` from the menu. A new material will be created in the content browser. Double click to edit it. Shift select the textures you imported and drag them into the material edit window, you will now get 3 new nodes in the material node editor. Now connect the nodes according to the following rules: * Diffuse RGB --> Base Color * Normal RGB --> Normal * ORM R --> Ambient occlusion * ORM G --> Roughness * ORM B --> Metallic Your material node graph should now look similar to this: Save the material, then open the asset again and drag the material into the material slot. Your asset should now be fully textured. Now save the asset and it is ready for use in your map. You can now drag the asset from the content browser and place it into your map: Now you can save the map, using the "Save Current" option in the top left of the workspace and it is ready to use. Play the simulation. This concludes the Map authorship guide. Now you know how to create a road network and import 3D assets for use in CARLA. You may now read how to package a map for use in CARLA standalone version ## Traffic lights To add traffic lights to your new map: 1. From the Content Browser, navigate to . You will find several different traffic light blueprints to choose from. 2. Drag the traffic lights into the scene and position them in the desired location. Press the space bar on your keyboard to toggle between positioning, rotation, and scaling tools. 3. Adjust the `trigger volume` for each traffic light by selecting the BoxTrigger component in the Details panel and adjusting the values in the Transform section. This will determine the traffic light's area of influence. 4. For junctions, drag the `BP_TrafficLightGroup` actor into the level. Assign all the traffic lights in the junction to the traffic light group by adding them to the Traffic Lights array in the Details panel. 5. Traffic light timing is only configurable through the Python API. See the documentation here for more information. Example: Traffic Signs, Traffic lights and Turn based stop. ## Traffic signs To add traffic signs to your new map: 1. From the Content Browser, navigate to ``` Content > Carla > Static > TrafficSign ``` . You will find several different traffic light blueprints to choose from. 2. Drag the traffic lights into the scene and position them in the desired location. Press the space bar on your keyboard to toggle between positioning, rotation, and scaling tools. 3. Adjust the `trigger volume` for each traffic sign by selecting the BoxTrigger component in the Details panel and adjusting the values in the Transform section. This will determine the traffic light's area of influence. Not all traffic signs have a trigger volume. Those that do, include the yield, stop and speed limit signs. The CARLA content library has a multitude of useful materials ready to use to change the look of your maps. In your content browser, navigate to ``` Carla > Static > GenericMaterials ``` . In here you will find numerous materials you can use to alter the appearance of your map. You can test the materials rapidly by drag and drop onto map elements: # Road Painter The road painter is a tool that can be used to customize the appearance of the road, adding extra realism with additional textures, decals and meshes. ## What is the road painter? The Road Painter tool is a blueprint that uses OpenDRIVE information to paint roads quickly. It takes a master material and applies it to a render target of the road to use as a canvas. The master material is made up of a collection of materials that can be blended using brushes and applied as masks. There is no need to apply photometry techniques nor consider the UVs of the geometry. The road painter uses the OpenDRIVE information to paint the roads. Make sure that your `.xodr` file has the same name as your map for this to work correctly. ## Establish the road painter, master material and render target 1. Create the `RoadPainter` actor. ``` Content > Carla > Blueprints > LevelDesign ``` . * Drag the `RoadPainter` into the scene. 2. Create the Render Target. ``` Content > Carla > Blueprints > LevelDesign > RoadPainterAssets ``` . * Right-click on the `RenderTarget` file and select `Duplicate` . * Rename to . 3. Create the master material instance. . * Right-click on `M_RoadMaster` and select Create Material Instance. * Rename to `Tutorial_RoadMaster` . 4. Re-calibrate the Map Size (Cm) so that it is equal to the actual size of the map. * Select the `RoadPainter` actor in the scene. * Go to the Details panel and press the Z-Size button. You will see the value in Map Size (Cm) change. 5. Synchronize the map size between the `RoadPainter` and `Tutorial_RoadMaster` . * In the Content Browser, open `Tutorial_RoadMaster` . * Copy the value Map Size (Cm) from the previous step and paste it to Global Scalar Parameter Values -> Map units (CM) in the `Tutorial_RoadMaster` window. * Press save. 6. Create the communication link between the road painter and the master material. The will be the communication link between the road painter and `Tutorial_RoadMaster` . * In the `Tutorial_RoadMaster` window, apply the to Global Texture Parameter Values -> Texture Mask. * Save and close. * In the main editor window, select the road painter actor, go to the Details panel and apply the to Paint -> Render Target. ## Prepare the master material The `Tutorial_RoadMaster` material you created holds the base material, extra material information, and parameters that will be applied via your . You can configure one base material and up to three additional materials. To configure the materials, double-click the `Tutorial_RoadMaster` file. In the window that appears, you can select and adjust the following values for each material according to your needs: * Brightness * Hue * Saturation * AO Intensity * NormalMap Intensity * Roughness Contrast * Roughness Intensity You can change the textures for each material by selecting the following values and searching for a texture in the search box: * Diffuse * Normal * ORMH Explore some of the CARLA textures available in ``` Game > Carla > Static > GenericMaterials > Asphalt > Textures ``` ### Paint the road 1. Create the link between the road painter and the roads. * In the main editor window, search for `Road_Road` in the World Outliner search box. * Press `Ctrl + A` to select all the roads. * In the Details panel, go to the Materials section and apply `Tutorial_RoadMaster` to Element 0, Element 1, Element 2, and Element 3. 2. Choose the material to customize. Each of the materials we added to `Tutorial_RoadMaster` are applied to the roads separately and application is configured with the Brush tool. To apply and customize a material: * Select the road painter actor * In the Details panel, select the material to work with in the Mask Color dropdown menu. 3. Set the brush and stencil parameters. There are a variety of stencils to choose from in ``` GenericMaterials/RoadStencil/Alphas ``` . The stencil is used to paint the road according to your needs and can be adjusted using the following values: * Stencil size — Size of the brush. * Brush strength — Roughness of the outline. * Spacebeween Brushes — Distance between strokes. * Max Jitter — Size variation of the brush between strokes. * Stencil — The brush to use. * Rotation — Rotation applied to the stroke. 4. Apply each material to the desired portions of the road. Choose where to apply the selected material via the buttons in the Default section of the Details panel: * Paint all roads — Paint all the roads. * Paint by actor — Paint a specific, selected actor. * Paint over circle — Paint using a circular pattern, useful to provide variation. * Paint over square — Paint using a square pattern, useful to provide variation. This section also contains options to erase the applied changes. * Clear all — Erase all the painted material. * Clear materials — Remove the currently active materials. * Clear material by actor — Remove the material closest to the selected actor. 5. Add decals and meshes. You can explore the available decals and meshes in . Add them to road painter by extending and adding to the Decals Spawn and Meshes Spawn arrays. For each one you can configure the following parameters: * Number of Decals/Meshes - The amount of each decal or mesh to paint. * Decal/Mesh Scale — Scale of the decal/mesh per axis. * Fixed Decal/Mesh Offset — Deviation from the center of the lane per axis. * Random Offset — Max deviation from the center of the lane per axis. * Decal/Mesh Random Yaw — Max random yaw rotation. * Decal/Mesh Min Scale — Minimum random scale applied to the decal/mesh. * Decal/Mesh Max Scale — Max random scale applied to the decal/mesh. Once you have configured your meshes and decals, spawn them by pressing `Spawn decals` and `Spawn meshes` . Note Make sure that meshes and decals do not have collisions enabled that can interfere with cars on the road and lower any bounding boxes to the level of the road. 7. Experiment to get your desired appearance. Experiment with different materials, textures, settings, decals, and meshes to get your desired look. Below are some example images of how the appearance of the road changes during the process of painting each material. ## Update the appearance of lane markings After you have painted the roads, you can update the appearance of the road markings by following these steps: 1. Make a copy of the master material. . * Right-click on `Tutorial_RoadMaster` and select Create Material Instance. * Rename to . 2. Configure the lane marking material. * In the Content Browser, double-click on . * In the Details panel, go to the Global Static Switch Parameter Values section and check the boxes on the left and right of LaneMark. * Go to the Texture section and check the boxes for LaneColor and Uv Size. * Choose your preferred color for the lane markings in LaneColor. * Save and close. 3. Select the road marking meshes. Drag the material onto the lane markings you wish to color. Repeat the whole process for different colors of lane markings if required. ## Trees and Vegetation The CARLA content library has a comprehensive set of vegetation blueprints for you to add further realism to the off-road areas of your maps like sidewalks, parks, hillsides, fields and forrest. Navigate to the vegetation folder in the CARLA content library: ``` Carla > Static > Visitation ``` . You will find blueprints for multiple types of trees, bushes, shrubs. You can drag these elements into your map from the content browser. ### Foliage tool A useful tool for trees and vegetation is the Unreal Engine foliage tool. Activate the tool by selecting the `mode` from the mode dropdown in the toolbar. Drag your desired foliage item into the box labeled `+ Drop Foliage Here` . Set an appropriate density in the density field, then paint into the map with your foliage item. Continue customizing your map using the tools and guides below: * Implement sub-levels in your map. * Add buildings with the procedural building tool. * Customize the weather * Customize the landscape with serial meshes. Once you have finished with the customization, you can generate the pedestrian navigation information. CARLA provides a comprehensive set of vehicles out of the box in the blueprint library. CARLA allows the user to expand upon this with custom vehicles for maximum extensibility. 3D modelling of detailed vehicles is highly complex and requires a significant degree of skill. We therefore refer the reader to alternative sources of documentation on 3D modelling, since this is beyond the scope of this guide. There are, however, numerous sources of vehicle models in both free and proprietary online repositories. Hence the user has many options to turn to for creating custom vehicles for use in CARLA. The key factors in preparing a custom vehicle for CARLA lie in rigging the vehicle armature and then importing into the Unreal Engine. After rigging and importing, blueprints need to be set for the car and the wheels. Then apply materials and add the glass parts of the vehicle. We will cover these steps in the following guide. * Modeling * Rigging * Import into Unreal Engine * Materials * Glass * Wheels * Lights ## Modeling Vehicles should have between 50,000 and 100,000 faces. We recommend triangulating the model prior to export as best practice. CARLA vehicles are modeled using the size and scale of actual cars as reference. Please ensure you pay careful attention to the units of your 3D application. Some work in centimeters while others work in meters. ### Naming conventions For ease and consistency we recommend that you divide the vehicle into the following parts and name them accordingly. Details specific to glass and lights will be covered in later sections: * Bodywork: The metallic part of the vehicle. This material is changed to Unreal Engine material. Logos and details can be added but, to be visible, they must be painted in a different color by using the alpha channels in the Unreal Engine editor. * Glass_Ext: A layer of glass that allows visibility from the outside to the inside of the vehicle. * Glass_Int: A layer of glass that allows visibility from the inside to the outside of the vehicle. * Lights: Headlights, indicator lights, etc. * LightGlass_Ext: A layer of glass that allows visibility from the outside to the inside of the light. * LightGlass_Int: A layer of glass that allows visibility from the inside to the outside of the light. * LicensePlate: A rectangular plane of 29x12 cm. You can use the CARLA provided `.fbx` for best results, download it here. The texture will be assigned automatically in Unreal Engine. * Interior: Any other details that don't fit in the above sections can go into Interior. Materials should be named using the format `M_CarPart_CarName` , e.g, `M_Bodywork_Mustang` . Textures should be named using the format `T_CarPart_CarName` , e.g, `T_Bodywork_Mustang` . Textures should be sized as 2048x2048. ## Rigging the vehicle using an armature To look realistic within the simulation, the car needs to have rotating and wheels, the front pair of which can turn with steering inputs. Therefore to prepare a vehicle for CARLA, an armature needs to be rigged to the car to identify the wheels and allow their movement. ### Import Import or model the vehicle model mesh in your 3D modelling application. In this guide we will use Blender 3D. Ensure that the wheels are separable from the main body. Each wheel must be accessible as a distinct object. It is important to ensure that the vehicle faces in the positive X direction, so the hood and windshield should be facing towards positive X. The car should also be oriented such that the floor to roof direction is in the positive Z direction. The wheels should be just grazing the X-Y plane and the origin should be situated where you would expect the vehicle's center of mass to be in the X-Y plane (not in the Z plane though). ### Add an armature Now add an armature to the center of the vehicle, ensure the object is properly centered, the root of the armature bone should be set at the origin. Switch to edit mode and rotate the armature 90 around the x axis. Now select the armature and add 4 more bones. Each of these bones needs to be located such that the root of the bone coincides with the centre of the each wheel. This can be achieved by locating the 3D cursor at the center of each wheel in edit mode. Select one of the wheels in object mode, select a vertex, press A to select all vertices then `Shift+S` and select `Cursor to selected` . This will locate the cursor in the center of the wheel. Then, in object mode, select the armature, switch to edit mode, select a bone and choose `Selection to cursor` . Your bone will now coincide with the wheel. Rotate each bone such that it lines up with the base of the armature. For each wheel, it is recommended to name the bone according to the wheel it needs to be coupled to, this will help in identification later when you need to assign vertex groups to each bone. ### Parenting Now select all the parts of the body and all 4 wheels using shift or control in the project outliner, then control select the armature you have created (this order is important, it won't work if you select these in reverse order). Press `Ctrl+p` and select `With empty groups` to bind the mesh to the armature. Now you have parented the mesh to the armature, you now need to assign each wheel to its respective bone. Select a wheel either in the outliner or the editor. Switch to edit mode, and select all the vertices of the wheel (shortcut - `a` ). ### Assigning car parts to bones Select the mesh tab of the properties (the green triangle). Inside the vertex groups tab of the mesh properties panel, you should now see the bones of your armature. Select the bone corresponding to the wheel you are editing and select `Assign` . Once you have rigged the wheels, rig all other parts of the vehicle to the base bone. Once you have assigned all of the mesh parts to the armature you can test if it works by selecting the armature and moving to pose mode and moving the relevant bones. The vehicle base bone should move the whole vehicle, while the wheel bones should each move and rotate their respective wheels. Ensure to undo any posing you might do with `Ctrl+Z` . ### Blender UE4 vehicle rigging add-on There is a very useful add on for blender for rigging a vehicle for import into CARLA that helps streamline the above steps. Please see the add-on webpage for instructions. ### Export Now we will export our rigged model into FBX format for import into Unreal Engine. Select `Export > FBX (.fbx)` from the File menu. In the `Object Types` section of the `Include` panel, shift select the `Armature` and `Mesh` options. In the `Transform` panel. Change `Forward` to `X Forward` and change `Up` to `Z Up` . This is important to ensure the vehicle is oriented correctly in the Unreal Engine. In the `Armature` section uncheck `Add Leaf Bones` and uncheck `Bake Animation` . ## Importing into unreal engine Launch the Unreal Editor with the `make launch` command from the CARLA root directory (the one where you have built CARLA from source). Open a content browser, set up an appropriate directory and right click and select `Import to ....` . Choose the FBX file that you previously exported from Blender (or another 3D modelling application). Import with default settings. ### Setting the physics asset You will now have 3 things in your content browser directory, the mesh, the skeleton and the physics asset. Double click on the physics asset to adjust it. First, select the main body, in the `Details` menu on the right, change the `Linear Damping` to 0.0 in the `Physics` section, check ``` Simulation Generates Hit Events ``` in the `Collision` section and change the `Primitive Type` from `Capsule` to `Box` in the `Body Creation` section. Then press `Regenerate bodies` . The capsule will now change to a rectangular box. Then select the wheels. Now select all the wheels (in the `Skeleton Tree` section on the left). Change `Linear Damping` to 0.0, set `Physics Type` to `Kinematic` , set `Collision Response` to `Disabled` and select the `Primitive Type` as `Sphere` . Press `Re-generate Bodies` once more. ### Creating the animation In the content browser directory where you have your new vehicle asset, right click and choose ``` Animation > Animation Blueprint ``` . In the popup that opens, search for `VehicleAnimInstance` in the `Parent Class` section and for the `Target Skeleton` search for the skeleton corresponding to your new vehicle, you should be able to see the name in your content browser. After selecting these two things press OK. This will create a new animation blueprint for your vehicle. To simplify things, we can copy the animation from another vehicle. In a second content browser, open and choose any vehicle. Open the animation blueprint of your chosen vehicle and then copy all nodes that are not the `Output pose` node from this into your new animation blueprint. Connect the nodes by dragging a new connection between the final node to the output node. Press compile and the animation blueprint is now set. ### Creating the blueprint Navigate with your content browser into or a similar vehicle. In here you will find a set of blueprints set up for the 4 wheels. Copy these into the directory containing your own vehicle and rename them to ensure you can distinguish them later. You can set up your own custom wheels if you prefer, please refer to the later wheels section Right click in the content browser directory where your new vehicle assets are and chose `Blueprint Class` . Search in the `All Classes` menu for `BaseVehiclePawn` and choose this class. Name the blueprint and open it. Select `Mesh` in the `Components` tab on the left and then drag the vehicle mesh into the Mesh section on the right hand side. In `Anim Class` search for the animation corresponding to your new vehicle that you set up in the previous step. Next, select `Vehicle Movement` in the `Components` menu of the blueprint class and in the right `Details` menu navigate to the `Vehicle Setup` section. Now for each wheel, find the relevant wheel blueprint that you previously copied and renamed for the `Wheel Class` attribute. Do the same for each wheel. Compile and save. Now navigate to and double click this to open the Vehicle Factory. Select the `Vehicles` node and expand the `Vehicles` item in the `Default value` section on the right hand side. Press the plus icon to add your new vehicle. Scroll down to the last entry and expand it, it should be empty. Name the make and model of your vehicle and under the class section find your blueprint class that you created in the previous section. Leave the number of wheels as 4 and put the generation as 2. Compile and save. Do a global save for safety and you are now..ready to run your vehicle in a simulation. Press play in the unreal toolbar to run the simulation. Once it is running, open a terminal and run the `manual_control.py` script with the filter option to specify your new vehicle model: ``` python manual_control.py --filter my_vehicle_make ``` As it is, the vehicle currently has no textures or colors applied. The next step is to apply materials to give your vehicle a finish like a real road vehicle. Once you have your vehicle imported as a basic asset with the mesh and blueprints laid out, you now want to add materials to your vehicle to facilitate photorealistic rendering in the Unreal Engine, for maximum fidelity in your machine learning training data. The Unreal Editor boasts a comprehensive materials workflow that facilitates the creation of highly realistic materials. This does, however, add a significant degree of complexity to the process. For this reason, CARLA is provided with a large library of material prototypes for you to use without having to start from scratch. ### Applying a material to your vehicle CARLA provides a prototype material for replicating the glossy finish of vehicles that can mimic numerous different types of vehicle paint jobs and features. Open Unreal editor and in the content browser, locate the material in ``` Content > Carla > Static > GenericMaterials > 00_MastersOpt ``` . The basic material is called `M_CarPaint_Master` . Right click on this material and choose ``` Create Material Instance ``` from the context material. Name it and move it into the folder where your new vehicle content is stored. In the Unreal Editor, move the spectator to a point near the floor and drag the skeletal mesh of the vehicle from the content browser into the scene, the body of your vehicle will now appear there. Now, in the details panel on the right hand side, drag your new material instance into the `Element 0` position of the `Materials` section. You will see the bodywork take on a new grey, glossy material property. Double click on the material in the content browser and we can start editing the parameters. There are a numerous parameters here that alter various properties that are important to mimic real world car paint jobs. The most important parameters are the following: # Color The color settings govern the overall color of the car. The base color is simply the primary color of the car this will govern the overall color: # Clear coat The clear coat settings govern the appearance of the finish and how it reacts to light. The roughness uses a texture to apply imperfections to the vehicle surface, scattering light more with higher values to create a matte look. Subtle adjustments and low values are recommended for a realistic look. Generally, car paint jobs are smooth and reflective, however, this effect might be used more generously to model specialist matte finishes of custom paint jobs. An important parameter to govern the "shininess" or "glossiness" of your car is the `Clear Coat Intensity` . High values close to 1 will make the coat shiny and glossy. # Orange peel Finishes on real cars (particularly on mass produced cars for the general market) tend to have imperfections that appear as slight ripples in the paint. The orange peel effect mimics this and makes cars look more realistic. # Flakes Some cars have paint jobs that include flakes of other material, such as metals or ceramics, to give the car a `metallic` or `pearlescant` appearance, adding extra glints and reflections that react in an attractive way to light. The flakes parameters allows CARLA to mimic this. To mimic metallic finishes, it would be # Dust Cars often accumulate grease and dust on the body that adds additional texture to the paint, affecting the way it reflects the light. The dust parameters allow you to add patches of disruption to the coat to mimic foreign materials sticking to the paint. ## Glass Creating realistic glass in CARLA requires some tricks to capture the real refractive and reflective behavior of glass used in motor vehicles. The CARLA garage vehicles have 4 layers of meshes for the glass, with 2 different materials. The layers are separated by a few millimeters and there are separate materials for the interior and exterior facing glass layers to ensure that the glass looks realistic from both inside and outside the vehicle. There are 2 layers of glass for the appearance of the vehicle from outside and 2 layers for the appearance of glass from the interior of the vehicle. What makes glass look like glass is the reflections coming from both surfaces of the glass that makes a very subtle doubling of the reflection. ### Glass meshes Here we see the glass parts attached to the main bodywork (not the doors or other moving parts) of the Lincoln. If we separate the constituent mesh parts, we can see that the glass profile is separated into 4 different layers. The 4 layers are separated into 2 groups, the exterior layers, with normals facing out of the vehicle and the interior layers, with mesh normals facing into the vehicle interior. The following diagram demonstrates Once you have created your mesh layers, import them in the content browser into the Unreal Editor in the folder where you have stored your vehicle. Shift select the 4 glass layers and drag them into the map so you can see them. ### Glass material Double click the external layer of the glass, then navigate in a second content browser window to and find the `Glass` material. Drag the glass material to the material slot of the mesh item. Repeat this process for each layer of the glass. The glass will now be transparent, but with reflectivity that reflects nearby objects and light sources. You should also check the interior glass, ensure there is a proper glass effect there. ### Single layer glass For a quicker way to produce the glass parts of vehicles, the only critical part is the outermost glass layer. You can apply the glass material to this in Unreal Editor and get a result that might be suitable to your needs, however, views from inside the vehicle (i.e. if you instantiate a camera on the dashboard or behind the steering wheel) will seem to have no glass (no refraction or reflection). We recommend the above process to produce maximally realistic glass. Now you have created the blueprint, added meshes, completed rigging, created materials for the paint finish and the glass, you should have a very realistic looking vehicle. ## Wheels If you copied the wheels when you were creating the blueprint, this might suit your purposes if your vehicle is very similar to vehicles that are already in the CARLA library. However, if your vehicle has non-standard wheel dimensions or grip characteristics, you should follow this section to set up your wheel blueprints to best match the physical characteristics of your vehicle's wheels. For the wheels of CARLA vehicles, we need to set up a blueprint class for each wheel to deal with the mechanics and collision properties. You will set up 4 blueprint classes, we recommend the following prefixes or suffixes to identify the wheels: * RRW - Rear Right Wheel * RLW - Rear Left Wheel * FRW - Front Right Wheel * FLW - Front Left Wheel ### Wheel blueprint Inside the folder where you have your new vehicle, right click and choose to create a new blueprint class. Search for Double click on the blueprint to adjust it: ### Collision mesh Firstly, the default cylinder used for the collision mesh has a high polygon count, so we should replace this with a low polygon version. In the content browser locate the `CollisionWheel` mesh inside . Drag it onto the `Collision Mesh` slot in the details panel of the blueprint. This will improve performance without any noticeable deficit to physics simulation. ### Tire configuration Next, we set the tire configuration. Inside locate the `CommonTireConfig` configuration and drag it onto the `Tire Config` section of the blueprint. If you double click on the Tire Config in the blueprint, you can adjust the Friction Scale, you can modify the behavior of the vehicle's road handling. By default it is set at 3.5, a value suitable for most vehicle use cases. However, if you wish to model for example a racing vehicle with slick tires, this would be the appropriate parameter to adjust. ### Wheel dimensions Next, in your 3D application, measure the diameter of your wheel. In Blender, the dimensions can be viewed in the properties panel opened by pressing `n` in object mode. Now plug these numbers into the `Wheel` section of the blueprint.Take care to remember to half the diameter for the radius and also that Unreal Editor works in units of centimeters. For the wheel mass, we recommend looking for specifications on the internet, find the right tire model or a similar one to estimate the correct mass (in kilograms). ``` Affected by handbrake ``` should be checked for both rear wheels. `Steer angle` should be set to the maximum intended steer angle for both front wheels and set to zero for both rear wheels. ### Suspension characteristics The default values here provide a reasonable starting point. View this guide to set suspension characteristics appropriate to your vehicle type. ## Lights The last element to complete a realistic vehicle for CARLA is the lights, headlights, brake lights, blinkers etc. In your 3D modelling application, you should model some shapes that resemble the lights of the vehicle you are replicating. This would be flat discs or flat cuboid structures for most headlights. Some vehicles may also have strips of LEDs. ### UV map The different types of lights (headlights, blinkers, brake lights, etc.) are distinguished using a texture. You need to create a UV map in your 3D modelling application and position the lights to match up with the relevant region of the texture. ### Importing Import the light mesh into the Unreal Editor- After importing the light mesh: * Drag the mesh item(s) into the Mesh (VehicleMesh) (Inherited) hierarchy in the Components panel. * Select the extra meshes in the hierarchy and search for `Collision` in the Details panel. * Set Collision Presets to `NoCollision` . * Select any lights meshes in the hierarchy. Search for `Tag` in the Details panel and add the tag `emissive` . This page introduces the fundamental concepts required to understand how the CARLA server and client operate and communicate through the API. CARLA operates using a server-client architecture, whereby the CARLA server runs the simulation and instructions are sent to it by the client(s). The client code communicates with the server using the API. To use the Python API you must install the module through PIP: ``` pip install carla-simulator # Python 2 pip3 install carla-simulator # Python 3 ``` Also make sure to import the CARLA package in your python scripts: `import carla` * World and client * Syncrhonous and asyncrhonous mode * Recorder ## World and client ### Client The client is the module the user runs to ask for information or changes in the simulation. A client runs with an IP and a specific port. It communicates with the server via terminal. There can be many clients running at the same time. Advanced multiclient managing requires thorough understanding of CARLA and synchrony. Set up the client using the CARLA client object: ``` client = carla.Client('localhost', 2000) ``` This sets up the client to communicate with a CARLA server running on `localhost` , the local machine. Alternatively, the IP address of a network machine can be used if running the client on a separate machine. The second argument is the port number. By default, the CARLA server will run on port 2000, you can alter this in the settings when you launch CARLA if necessary. The client object can be used for a number of functions including loading new maps, recording the simulation and initialising the traffic manager: ``` client.load_world('Town07') client.start_recorder('recording.log') ``` ### World The world is an object representing the simulation. It acts as an abstract layer containing the main methods to spawn actors, change the weather, get the current state of the world, etc. There is only one world per simulation. It will be destroyed and substituted for a new one when the map is changed. The world object is retrieved using the client object: ``` world = client.get_world() ``` The world object can be used to access objects within the simulation, such as weather, vehicles, traffic lights, buildings and the map using its many methods: ``` level = world.get_map() weather = world.get_weather() ## Synchronous and asynchronous mode CARLA has a client-server architecture. The server runs the simulation. The client retrieves information and requests changes in the simulation. This section deals with communication between client and server. By default, CARLA runs in asynchronous mode. Essentially, in asynchronous mode the CARLA server runs as fast as it can. Client requests are handled on the fly. In synchronous mode the client, running your Python code, takes the reigns and tells the server when to update. Asynchronous mode is an appropriate mode to run CARLA if you are experimenting or setting up a simulation, so you can fly around the map with the spectator as you place your actors. When you want to start producing training data or deploying an agent within the simulation, it is advised that you use the synchronous mode since this will give you more control and predictability. Read more about synchronous and asynchronous modes. In a multiclient architecture, only one client should tick. The server reacts to every tick received as if it came from the same client. Many client ticks will make the create inconsistencies between server and clients. ### Setting synchronous mode Changing between synchronous and asynchronous mode is just a matter of a boolean state. ``` settings = world.get_settings() settings.synchronous_mode = True # Enables synchronous mode settings.fixed_delta_seconds = 0.05 world.apply_settings(settings) ``` If synchronous mode is enabled, and there is a Traffic Manager running, this must be set to sync mode too. Read this to learn how to do it. To disable synchronous mode just set the variable to `False` or use the script ``` cd PythonAPI/util && python3 config.py --no-sync # Disables synchronous mode ``` Synchronous mode cannot be enabled using the script, only disabled. Enabling the synchronous mode makes the server wait for a client tick. Using this script, the user cannot send ticks when desired. ### Using synchronous mode The synchronous mode becomes specially relevant with slow client applications, and when synchrony between different elements, such as sensors, is needed. If the client is too slow and the server does not wait, there will be an overflow of information. The client will not be able to manage everything, and it will be lost or mixed. On a similar tune, with many sensors and asynchrony, it would be impossible to know if all the sensors are using data from the same moment in the simulation. The following fragment of code extends the previous one. The client creates a camera sensor, stores the image data of the current step in a queue, and ticks the server after retrieving it from the queue. A more complex example regarding several sensors can be found here. ``` settings = world.get_settings() settings.synchronous_mode = True world.apply_settings(settings) camera = world.spawn_actor(blueprint, transform) image_queue = queue.Queue() camera.listen(image_queue.put) while True: world.tick() image = image_queue.get() ``` Data coming from GPU-based sensors, mostly cameras, is usually generated with a delay of a couple of frames. Synchrony is essential here. The world has asynchrony methods to make the client wait for a server tick, or do something when it is received. ``` # Wait for the next tick and retrieve the snapshot of the tick. world_snapshot = world.wait_for_tick() # Register a callback to get called every time we receive a new snapshot. world.on_tick(lambda world_snapshot: do_something(world_snapshot)) ``` ## Recorder The recorder enables all data required to reproduce a previous simulation to be saved into a file. The data includes details like the position and speed of vehicles, the state of traffic lights, the position and speed of pedestrians and the position of the sun and weather conditions. The data gets recorded into a binary file that can be loaded at a later time by the carla server to exactly reproduce the simulation. Actors are updated on every frame according to the data contained in the recorded file. Actors in the current simulation that appear in the recording will be either moved or re-spawned to emulate it. Those that do not appear in the recording will continue their way as if nothing happened. By the end of the playback, vehicles will be set to autopilot, but pedestrians will stop. The recorder file includes information regarding many different elements. * Actors — creation and destruction, bounding and trigger boxes. * Traffic lights — state changes and time settings. * Vehicles — position and orientation, linear and angular velocity, light state, and physics control. * Pedestrians — position and orientation, and linear and angular velocity. * Lights — Light states from buildings, streets, and vehicles. ### Recording To start recording there is only need for a file name. Using `\` , `/` or `:` characters in the file name will define it as an absolute path. If no path is detailed, the file will be saved in `CarlaUE4/Saved` . ``` client.start_recorder("/home/carla/recording01.log") ``` By default, the recorder is set to store only the necessary information to play the simulation back. In order to save all the information previously mentioned, the argument `additional_data` has to be configured when starting the recording. ``` client.start_recorder("/home/carla/recording01.log", True) ``` Additional data includes: linear and angular velocity of vehicles and pedestrians, traffic light time settings, execution time, actors' trigger and bounding boxes, and physics controls for vehicles. To stop the recording, the call is also straightforward. ``` client.stop_recorder() ``` As an estimate, 1h recording with 50 traffic lights and 100 vehicles takes around 200MB in size. ### Simulation playback A playback can be started at any point during a simulation. Besides the path to the log file, this method needs some parameters. ``` client.replay_file("recording01.log", start, duration, camera) ``` Parameter | Description | Notes | | --- | --- | --- | | Recording time in seconds to start the simulation at. | If positive, time will be considered from the beginning of the recording. | | Seconds to playback. 0 is all the recording. | By the end of the playback, vehicles will be set to autopilot and pedestrians will stop. | | ID of the actor that the camera will focus on. | Set it to | ### Recorder file format The recorder saves all of the data in a custom binary file format specified in [this document] ## Rendering CARLA offers a number of options regarding rendering quality and efficiency. At the most basic level, CARLA offers two quality options to enable operation on both high and low spec hardware with the best results: ### Epic mode ``` ./CarlaUE4.sh -quality-level=Epic ``` Epic mode screenshot ### Low mode ``` ./CarlaUE4.sh -quality-level=Low ``` Low mode screenshot CARLA also offers options to suspend rendering or render offscreen, to enable simulations to be recorded or run more efficiently. More details on rendering options can be found here. Actors in CARLA are the elements that perform actions within the simulation, and they can affect other actors. Actors in CARLA includes vehicles and walkers and also sensors, traffic signs, traffic lights and the spectator. It is crucial to have full understanding on how to operate on them. This section will cover spawning, destruction, types, and how to manage them. However, the possibilities are almost endless. Experiment, take a look at the tutorials in this documentation and share doubts and ideas in the CARLA forum. * Blueprints * Actor life cycle * Types of actors ## Blueprints These layouts allow the user to smoothly incorporate new actors into the simulation. They are already-made models with animations and a series of attributes. Some of these are modifiable and others are not. These attributes include, among others, vehicle color, amount of channels in a lidar sensor, a walker's speed, and much more. Available blueprints are listed in the blueprint library, along with their attributes. Vehicle and walker blueprints have a generation attribute that indicates if they are a new (gen 2) or old (gen 1) asset. ### Managing the blueprint library The carla.BlueprintLibrary class contains a list of carla.ActorBlueprint elements. It is the world object who can provide access to it. Blueprints have an ID to identify them and the actors spawned with it. The library can be read to find a certain ID, choose a blueprint at random, or filter results using a wildcard pattern. ``` # Find a specific blueprint. collision_sensor_bp = blueprint_library.find('sensor.other.collision') # Choose a vehicle blueprint at random. vehicle_bp = random.choice(blueprint_library.filter('vehicle.*.*')) ``` Besides that, each carla.ActorBlueprint has a series of carla.ActorAttribute that can be get and set. ``` is_bike = [vehicle.get_attribute('number_of_wheels') == 2] if(is_bike) vehicle.set_attribute('color', '255,0,0') ``` Some of the attributes cannot be modified. Check it out in the blueprint library. Attributes have an carla.ActorAttributeType variable. It states its type from a list of enums. Also, modifiable attributes come with a list of recommended values. ``` for attr in blueprint: if attr.is_modifiable: blueprint.set_attribute(attr.id, random.choice(attr.recommended_values)) ``` Users can create their own vehicles. Check the Tutorials (assets) to learn on that. Contributors can add their new content to CARLA. ## Actor life cycle This section mentions different methods regarding actors. The Python API provides for commands to apply batches of the most common ones, in just one frame. The world object is responsible of spawning actors and keeping track of these. Spawning only requires a blueprint, and a carla.Transform stating a location and rotation for the actor. The world has two different methods to spawn actors. * `spawn_actor()` raises an exception if the spawning fails. * `try_spawn_actor()` returns `None` if the spawning fails. ``` transform = Transform(Location(x=230, y=195, z=40), Rotation(yaw=180)) actor = world.spawn_actor(blueprint, transform) ``` Important CARLA uses the Unreal Engine coordinates system. Remember that `carla.Rotation` constructor is defined as `(pitch, yaw, roll)` , that differs from Unreal Engine Editor `(roll, pitch, yaw)` . The actor will not be spawned in case of collision at the specified location. No matter if this happens with a static object or another actor. It is possible to try avoiding these undesired spawning collisions. ``` map.get_spawn_points() ``` for vehicles. Returns a list of recommended spawning points. ``` world.get_random_location() ``` for walkers. Returns a random point on a sidewalk. This same method is used to set a goal location for walkers. ``` spawn_point = carla.Transform() spawn_point.location = world.get_random_location_from_navigation() ``` An actor can be attached to another one when spawned. Actors follow the parent they are attached to. This is specially useful for sensors. The attachment can be rigid (proper to retrieve precise data) or with an eased movement according to its parent. It is defined by the helper class carla.AttachmentType. The next example attaches a camera rigidly to a vehicle, so their relative position remains fixed. ``` camera = world.spawn_actor(camera_bp, relative_transform, attach_to=my_vehicle, carla.AttachmentType.Rigid) ``` When spawning attached actors, the transform provided must be relative to the parent actor. Once spawned, the world object adds the actors to a list. This can be easily searched or iterated on. ``` actor_list = world.get_actors() # Find an actor by id. actor = actor_list.find(id) # Print the location of all the speed limit signs in the world. for speed_sign in actor_list.filter('traffic.speed_limit.*'): print(speed_sign.get_location()) ``` ### Handling carla.Actor mostly consists of get() and set() methods to manage the actors around the map. ``` print(actor.get_acceleration()) print(actor.get_velocity()) location = actor.get_location() location.z += 10.0 actor.set_location(location) ``` The actor's physics can be disabled to freeze it in place. ``` actor.set_simulate_physics(False) ``` Besides that, actors also have tags provided by their blueprints. These are mostly useful for semantic segmentation sensors. Most of the methods send requests to the simulator asynchronously. The simulator has a limited amount of time each update to parse them. Flooding the simulator with set() methods will accumulate a significant lag. ### Destruction Actors are not destroyed when a Python script finishes. They have to explicitly destroy themselves. ``` destroyed_sucessfully = actor.destroy() # Returns True if successful ``` Destroying an actor blocks the simulator until the process finishes. ## Types of actors ### Sensors Sensors are actors that produce a stream of data. They have their own section, 4th. Sensors and data. For now, let's just take a look at a common sensor spawning cycle. This example spawns a camera sensor, attaches it to a vehicle, and tells the camera to save the images generated to disk. ``` camera_bp = blueprint_library.find('sensor.camera.rgb') camera = world.spawn_actor(camera_bp, relative_transform, attach_to=my_vehicle) camera.listen(lambda image: image.save_to_disk('output/%06d.png' % image.frame)) ``` * Sensors have blueprints too. Setting attributes is crucial. * Most of the sensors will be attached to a vehicle to gather information on its surroundings. * Sensors listen to data. When data is received, they call a function described with a Lambda expression (6.14 in the link provided). ### Spectator Placed by Unreal Engine to provide an in-game point of view. It can be used to move the view of the simulator window. The following example would move the spectator actor, to point the view towards a desired vehicle. ``` spectator = world.get_spectator() transform = vehicle.get_transform() spectator.set_transform(carla.Transform(transform.location + carla.Location(z=50), carla.Rotation(pitch=-90))) ``` ### Traffic signs and traffic lights Only stops, yields and traffic lights are considered actors in CARLA so far. The rest of the OpenDRIVE signs are accessible from the API as carla.Landmark. Their information is accessible using these instances, but they do no exist in the simulation as actors. Landmarks are explained more in detail in the following step, 3rd. Maps and navigation. When the simulation starts, stop, yields and traffic light are automatically generated using the information in the OpenDRIVE file. None of these can be found in the blueprint library and thus, cannot be spawned. CARLA maps do not have traffic signs nor lights in the OpenDRIVE file. These are manually placed by developers. Traffic signs are not defined in the road map itself, as explained in the following page. Instead, they have a carla.BoundingBox to affect vehicles inside of it. ``` #Get the traffic light affecting a vehicle if vehicle_actor.is_at_traffic_light(): traffic_light = vehicle_actor.get_traffic_light() ``` Traffic lights are found in junctions. They have their unique ID, as any actor, but also a `group` ID for the junction. To identify the traffic lights in the same group, a `pole` ID is used. The traffic lights in the same group follow a cycle. The first one is set to green while the rest remain frozen in red. The active one spends a few seconds in green, yellow and red, so there is a period of time where all the lights are red. Then, the next traffic light starts its cycle, and the previous one is frozen with the rest. The state of a traffic light can be set using the API. So does the seconds spent on each state. Possible states are described with carla.TrafficLightState as a series of enum values. ``` #Change a red traffic light to green if traffic_light.get_state() == carla.TrafficLightState.Red: traffic_light.set_state(carla.TrafficLightState.Green) traffic_light.set_set_green_time(4.0) ``` Vehicles will only be aware of a traffic light if the light is red. ### Vehicles carla.Vehicle is a special type of actor. It incorporates special internal components that simulate the physics of wheeled vehicles. This is achieved by applying four types of different controls: * carla.VehicleControl provides input for driving commands such as throttle, steering, brake, etc. ``` vehicle.apply_control(carla.VehicleControl(throttle=1.0, steer=-1.0)) ``` carla.VehiclePhysicsControl defines physical attributes of the vehicle and contains two more controllers: * carla.GearPhysicsControl which controls the gears. * carla.WheelPhysicsControl which provides specific control over each wheel. ``` vehicle.apply_physics_control(carla.VehiclePhysicsControl(max_rpm = 5000.0, center_of_mass = carla.Vector3D(0.0, 0.0, 0.0), torque_curve=[[0,400],[5000,400]])) ``` Vehicles have a carla.BoundingBox encapsulating them. This bounding box allows physics to be applied to the vehicle and enables collisions to be detected. ``` box = vehicle.bounding_box print(box.location) # Location relative to the vehicle. print(box.extent) # XYZ half-box extents in meters. ``` The physics of vehicle wheels can be improved by enabling the sweep wheel collision parameter. The default wheel physics uses single ray casting from the axis to the floor for each wheel but when sweep wheel collision is enabled, the full volume of the wheel is checked against collisions. It can be enabled as such: ``` physics_control = vehicle.get_physics_control() physics_control.use_sweep_wheel_collision = True vehicle.apply_physics_control(physics_control) ``` Vehicles include other functionalities unique to them: * Autopilot mode will subscribe a vehicle to the Traffic Manager to simulate real urban conditions. This module is hard-coded, not based on machine learning. ``` vehicle.set_autopilot(True) ``` * Vehicle lights have to be turned on and off by the user. Each vehicle has a set of lights listed in carla.VehicleLightState. Not all vehicles have lights integrated. At the time of writing, vehicles with integrated lights are as follows: * Bikes: All bikes have a front and back position light. * Motorcycles: Yamaha and Harley Davidson models. * Cars: Audi TT, Chevrolet Impala, both Dodge police cars, Dodge Charger, Audi e-tron, Lincoln 2017 and 2020, Mustang, Tesla Model 3, Tesla Cybertruck, Volkswagen T2 and the Mercedes C-Class. The lights of a vehicle can be retrieved and updated anytime using the methods carla.Vehicle.get_light_state and carla.Vehicle.set_light_state. These use binary operations to customize the light setting. ``` # Turn on position lights current_lights = carla.VehicleLightState.NONE current_lights |= carla.VehicleLightState.Position vehicle.set_light_state(current_lights) ``` ### Walkers carla.Walker work in a similar way as vehicles do. Control over them is provided by controllers. * carla.WalkerControl moves the pedestrian around with a certain direction and speed. It also allows them to jump. * carla.WalkerBoneControl provides control over the 3D skeleton. This tutorial explains how to control it. Walkers can be AI controlled. They do not have an autopilot mode. The carla.WalkerAIController actor moves around the actor it is attached to. ``` walker_controller_bp = world.get_blueprint_library().find('controller.ai.walker') world.SpawnActor(walker_controller_bp, carla.Transform(), parent_walker) ``` Note The AI controller is bodiless and has no physics. It will not appear on scene. Also, location `(0,0,0)` relative to its parent will not cause a collision. Each AI controller needs initialization, a goal and, optionally, a speed. Stopping the controller works in the same manner. ``` ai_controller.start() ai_controller.go_to_location(world.get_random_location_from_navigation()) ai_controller.set_max_speed(1 + random.random()) # Between 1 and 2 m/s (default is 1.4 m/s). ... ai_controller.stop() ``` When a walker reaches the target location, they will automatically walk to another random point. If the target point is not reachable, walkers will go to the closest point from their current location. A snipet in carla.Client uses batches to spawn a lot of walkers and make them wander around. To destroy AI pedestrians, stop the AI controller and destroy both, the actor, and the controller. That is a wrap as regarding actors in CARLA. The next step takes a closer look into the map, roads and traffic in CARLA. Keep reading to learn more or visit the forum to post any doubts or suggestions that have come to mind during this reading. After discussing about the world and its actors, it is time to put everything into place and understand the map and how do the actors navigate it. * The map * Navigation in CARLA * CARLA maps * Custom maps ## The map A map includes both the 3D model of a town and its road definition. A map's road definition is based on an OpenDRIVE file, a standarized, annotated road definition format. The way the OpenDRIVE standard 1.4 defines roads, lanes, junctions, etc. determines the functionality of the Python API and the reasoning behind decisions made. The Python API acts as a high level querying system to navigate these roads. It is constantly evolving to provide a wider set of tools. ### Changing the map To change the map, the world has to change too. The simulation will be recreated from scratch. You can either restart with the same map in a new world or you can change both the map and the world: * `reload_world()` creates a new instance of the world with the same map. * `load_world()` changes the current map and creates a new world. ``` world = client.load_world('Town01') ``` Each map has a `name` attribute that matches the name of the currently loaded city, e.g. Town01. To get a list of the available maps: ``` print(client.get_available_maps()) ``` ### Landmarks Traffic signs defined in the OpenDRIVE file are translated to CARLA as landmark objects that can be queried from the API. The following methods and classes can be used to manipulate and work with landmark objects: * `carla.Landmark` objects represent OpenDRIVE signals. The attributes and methods of this class describe the landmark and its area of influence. ``` carla.LandmarkOrientation ``` states the orientation of the landmark with regard to the road's geometry definition. * `carla.LandmarkType` contains common landmark types to facilitate translation to OpenDRIVE types. * `carla.Waypoint` can get landmarks located a certain distance ahead of it. The landmark type to get can be specified. * `carla.Map` retrieves sets of landmarks. It can return all landmarks in the map, or those which have a common ID, type or group. * `carla.World` acts as intermediary between landmarks and the `carla.TrafficSign` and `carla.TrafficLight` that represent them in the simulation. ``` my_waypoint.get_landmarks(200.0,True) ``` ### Waypoints A `carla.Waypoint` is a 3D-directed point in the CARLA world corresponding to an OpenDRIVE lane. Everything related to waypoints happens on the client-side; communication with the server is only needed once to get the map object containing the waypoint information. Each waypoint contains a `carla.Transform` which states its location on the map and the orientation of the lane containing it. The variables `road_id` , `section_id` , `lane_id` and `s` correspond to the OpenDRIVE road. The `id` of the waypoint is constructed from a hash combination of these four values. Note Waypoints closer than 2cm within the same road share the same `id` . A waypoint holds information about the lane containing it. This information includes the lane's left and right lane markings, a boolean to determine if it's inside a junction, the lane type, width, and lane changing permissions. ``` # Access lane information from a waypoint inside_junction = waypoint.is_junction() width = waypoint.lane_width right_lm_color = waypoint.right_lane_marking.color ``` ### Lanes The lane types defined by OpenDRIVE standard 1.4 are translated to the API in `carla.LaneType` as a series of enum values. The lane markings surrounding a lane are accessed through `carla.LaneMarking` . Lane markings are defined by a series of variables: * color: ``` carla.LaneMarkingColor ``` are enum values that define the marking's color. * lane_change: `carla.LaneChange` states if the lane permits turning left, right, both or none. * type: ``` carla.LaneMarkingType ``` are enum values that define the type of marking according to the OpenDRIVE standard. * width: defines the marking's thickness. The below example shows to get information about the lane type, lane markings, and lane change permissions at a specific waypoint: ``` # Get the lane type of the waypoint lane_type = waypoint.lane_type # Get the type of lane marking on the left. left_lanemarking_type = waypoint.left_lane_marking.type() # Get available lane changes for this waypoint. lane_change = waypoint.lane_change ``` ### Junctions A `carla.Junction` represents an OpenDRIVE junction. This class encompasses a junction with a bounding box to identify lanes or vehicles within it. The `carla.Junction` class contains the `get_waypoints` method which returns a pair of waypoints for every lane within the junction. Each pair is located at the start and end points of the junction boundaries. ``` waypoints_junc = my_junction.get_waypoints() ``` ### Environment Objects Every object on a CARLA map has a set of associated variables which can be found here. Included in these variables is a unique ID that can be used to toggle that object's visibility on the map. You can use the Python API to fetch the IDs of each environment object based on their semantic tag: ``` # Get the buildings in the world world = client.get_world() env_objs = world.get_environment_objects(carla.CityObjectLabel.Buildings) # Access individual building IDs and save in a set building_01 = env_objs[0] building_02 = env_objs[1] objects_to_toggle = {building_01.id, building_02.id} # Toggle buildings off world.enable_environment_objects(objects_to_toggle, False) # Toggle buildings on world.enable_environment_objects(objects_to_toggle, True) ``` See an example of distinct objects being toggled: ## Navigation in CARLA Navigation in CARLA is managed via the Waypoint API, a combination of methods from `carla.Waypoint` and `carla.Map` . The client must initially communicate with the server to retrieve the map object containing the waypoint information. This is only required once, all subsequent queries are performed on the client side. ### Navigating through waypoints The Waypoint API exposes methods that allow waypoints to connect to each other and construct a path along a road for vehicles to navigate: * `next(d)` creates a list of waypoints within an approximate distance, `d` , in the direction of the lane. The list contains one waypoint for each possible deviation. * `previous(d)` creates a list of waypoints waypoint within an approximate distance, `d` , in the opposite direction of the lane. The list contains one waypoint for each possible deviation. * ``` next_until_lane_end(d) ``` ``` previous_until_lane_start(d) ``` return a list of waypoints a distance `d` apart. The lists go from the current waypoint to the end and beginning of its lane, respectively. * `get_right_lane()` and `get_left_lane()` return the equivalent waypoint in an adjacent lane, if one exists. A lane change maneuver can be made by finding the next waypoint to the one on its right/left lane, and moving to it. ``` # Find next waypoint 2 meters ahead. waypoint = waypoint.next(2.0) ``` ### Generating map navigation The client needs to make a request to the server to get the `.xodr` map file and parse it to a `carla.Map` object. This only needs to be done once. To get the map object: ``` map = world.get_map() ``` The map object contains recommended spawn points for the creation of vehicles. You can get a list of these spawn points, each one containing a `carla.Transform` , using the method below. Bear in mind that the spawn points may be occupied already, resulting in failed creation of vehicles due to collisions. You can get started with waypoints by getting the closest waypoint to a specific location or to a particular `road_id` , `lane_id` and `s` value in the map's OpenDRIVE definition: ``` # Nearest waypoint in the center of a Driving or Sidewalk lane. waypoint01 = map.get_waypoint(vehicle.get_location(),project_to_road=True, lane_type=(carla.LaneType.Driving | carla.LaneType.Sidewalk)) #Nearest waypoint but specifying OpenDRIVE parameters. waypoint02 = map.get_waypoint_xodr(road_id,lane_id,s) ``` The below example shows how to generate a collection of waypoints to visualize the city lanes. This will create waypoints all over the map, for every road and lane. All of them will approximately 2 meters apart: ``` waypoint_list = map.generate_waypoints(2.0) ``` To generate a minimal graph of road topology, use the example below. This will return a list of pairs (tuples) of waypoints. The first element in each pair connects with the second element and both define the start and end points of each lane in the map. More information on this method is found in the PythonAPI. ``` waypoint_tuple_list = map.get_topology() ``` The example below converts a `carla.Transform` to geographical latitude and longitude coordinates, in the form of a `carla.GeoLocation` : ``` my_geolocation = map.transform_to_geolocation(vehicle.transform) ``` Use the following example to save road information in OpenDRIVE format to disk: ``` info_map = map.to_opendrive() ``` ## CARLA maps There are eight towns in the CARLA ecosystem and each of those towns have two kinds of map, non-layered and layered. Layers refer to the grouped objects within a map and consist of the following: * NONE * Buildings * Decals * Foliage * Ground * ParkedVehicles * Particles * Props * StreetLights * Walls * All ### Non-layered maps Non-layered maps are shown in the table below (click the town name to see an overhead image of the layout). All of the layers are present at all times and cannot be toggled on or off in these maps. Up until CARLA 0.9.11, these were the only kinds of map available. Users can customize a map or even create a new map to be used in CARLA. ### Layered maps The layout of layered maps is the same as non-layered maps but it is possible to toggle off and on the layers of the map. There is a minimum layout that cannot be toggled off and consists of roads, sidewalks, traffic lights and traffic signs. Layered maps can be identified by the suffix `_Opt` , for example, `Town01_Opt` . With these maps it is possible to load and unload layers via the Python API: ``` # Load layered map for Town 01 with minimum layout plus buildings and parked vehicles world = client.load_world('Town01_Opt', carla.MapLayer.Buildings | carla.MapLayer.ParkedVehicles) # Toggle all buildings off world.unload_map_layer(carla.MapLayer.Buildings) # Toggle all buildings on world.load_map_layer(carla.MapLayer.Buildings) ``` See an example of all layers being loaded and unloaded in sequence: ## Custom maps CARLA is designed to be extensible and highly customisable for specialist applications. Therefore, in addition to the many maps and assets already avaiable in CARLA out of the box, it is possible to create and import new maps, road networks and assets to populate bespoke environments in a CARLA simulation. The following documents detail the steps needed to build and integrate custom maps: Sensors are actors that retrieve data from their surroundings. They are crucial to create learning environment for driving agents. This page summarizes everything necessary to start handling sensors. It introduces the types available and a step-by-step guide of their life cycle. The specifics for every sensor can be found in the sensors reference. * Sensors step-by-step * Types of sensors * Sensors reference ## Sensors step-by-step The class carla.Sensor defines a special type of actor able to measure and stream data. * What is this data? It varies a lot depending on the type of sensor. All the types of data are inherited from the general carla.SensorData. * When do they retrieve the data? Either on every simulation step or when a certain event is registered. Depends on the type of sensor. * How do they retrieve the data? Every sensor has a `listen()` method to receive and manage the data. Despite their differences, all the sensors are used in a similar way. ### Setting As with every other actor, find the blueprint and set specific attributes. This is essential when handling sensors. Their attributes will determine the results obtained. These are detailed in the sensors reference. The following example sets a dashboard HD camera. ``` # Find the blueprint of the sensor. blueprint = world.get_blueprint_library().find('sensor.camera.rgb') # Modify the attributes of the blueprint to set image resolution and field of view. blueprint.set_attribute('image_size_x', '1920') blueprint.set_attribute('image_size_y', '1080') blueprint.set_attribute('fov', '110') # Set the time in seconds between sensor captures blueprint.set_attribute('sensor_tick', '1.0') ``` `attachment_to` and `attachment_type` , are crucial. Sensors should be attached to a parent actor, usually a vehicle, to follow it around and gather the information. The attachment type will determine how its position is updated regarding said vehicle. * Rigid attachment. Movement is strict regarding its parent location. This is the proper attachment to retrieve data from the simulation. * SpringArm attachment. Movement is eased with little accelerations and decelerations. This attachment is only recommended to record videos from the simulation. The movement is smooth and "hops" are avoided when updating the cameras' positions. * SpringArmGhost attachment. Like the previous one but without doing the collision test, so the camera or sensor could cross walls or other geometries. ``` transform = carla.Transform(carla.Location(x=0.8, z=1.7)) sensor = world.spawn_actor(blueprint, transform, attach_to=my_vehicle) ``` When spawning with attachment, location must be relative to the parent actor. ### Listening Every sensor has a `listen()` method. This is called every time the sensor retrieves data. The argument `callback` is a lambda function. It describes what should the sensor do when data is retrieved. This must have the data retrieved as an argument. ``` # do_something() will be called each time a new image is generated by the camera. sensor.listen(lambda data: do_something(data)) ... # This collision sensor would print everytime a collision is detected. def callback(event): for actor_id in event: vehicle = world_ref().get_actor(actor_id) print('Vehicle too close: %s' % vehicle.type_id) sensor02.listen(callback) ``` ### Data Most sensor data objects have a function to save the information to disk. This will allow it to be used in other environments. Sensor data differs a lot between sensor types. Take a look at the sensors reference to get a detailed explanation. However, all of them are always tagged with some basic information. Sensor data attribute | Type | Description | | --- | --- | --- | | int | Frame number when the measurement took place. | | double | Timestamp of the measurement in simulation seconds since the beginning of the episode. | | carla.Transform | World reference of the sensor at the time of the measurement. | Important `is_listening` is a sensor attribute that enables/disables data listening at will. `sensor_tick` is a blueprint attribute that sets the simulation time between data received. ## Types of sensors ### Cameras Take a shot of the world from their point of view. For cameras that return carla.Image, you can use the helper class carla.ColorConverter to modify the image to represent different information. Sensor | Output | Overview | | --- | --- | --- | Depth | carla.Image | Renders the depth of the elements in the field of view in a gray-scale map. | RGB | carla.Image | Provides clear vision of the surroundings. Looks like a normal photo of the scene. | Optical Flow | carla.Image | Renders the motion of every pixel from the camera. | Semantic segmentation | carla.Image | Renders elements in the field of view with a specific color according to their tags. | Instance segmentation | carla.Image | Renders elements in the field of view with a specific color according to their tags and a unique object ID. | DVS | carla.DVSEventArray | Measures changes of brightness intensity asynchronously as an event stream. | ### Detectors Retrieve data when the object they are attached to registers a specific event. * Retrieve data when triggered. Sensor | Output | Overview | | --- | --- | --- | Collision | carla.CollisionEvent | Retrieves collisions between its parent and other actors. | Lane invasion | carla.LaneInvasionEvent | Registers when its parent crosses a lane marking. | Obstacle | carla.ObstacleDetectionEvent | Detects possible obstacles ahead of its parent. | ### Other Different functionalities such as navigation, measurement of physical properties and 2D/3D point maps of the scene. Sensor | Output | Overview | | --- | --- | --- | GNSS | carla.GNSSMeasurement | Retrieves the geolocation of the sensor. | IMU | carla.IMUMeasurement | Comprises an accelerometer, a gyroscope, and a compass. | LIDAR | carla.LidarMeasurement | A rotating LIDAR. Generates a 4D point cloud with coordinates and intensity per point to model the surroundings. | Radar | carla.RadarMeasurement | 2D point map modelling elements in sight and their movement regarding the sensor. | RSS | carla.RssResponse | Modifies the controller applied to a vehicle according to safety checks. This sensor works in a different manner than the rest, and there is specific RSS documentation for it. | Semantic LIDAR | carla.SemanticLidarMeasurement | A rotating LIDAR. Generates a 3D point cloud with extra information regarding instance and semantic segmentation. | That is a wrap on sensors and how do these retrieve simulation data. Thus concludes the introduction to CARLA. However there is yet a lot to learn. * Continue learning. There are some advanced features in CARLA: rendering options, traffic manager, the recorder, and some more. This is a great moment to learn more about them. * Experiment freely. Take a look at the References section of this documentation. It contains detailed information on the classes in the Python API, sensors, code snippets and much more. * Give your two cents. Any doubts, suggestions and ideas are welcome in the forum. Traffic simulation is integral to the accurate and efficient training and testing of autonomous driving stacks. CARLA provides a number of different options to simulate traffic and specific traffic scenarios. This section is an overview of the options available to help decide which is the best fit for your use case. ## Traffic Manager Traffic Manager is a module within CARLA that controls certain vehicles in a simulation from the client side. Vehicles are registered to Traffic Manager via the ``` carla.Vehicle.set_autopilot ``` method or `command.SetAutopilot` class. Control of each vehicle is managed through a cycle of distinct stages which each run on a different thread. Useful for: * Populating a simulation with realistic urban traffic conditions. * Customizing traffic behaviours to set specific learning circumstances. * Developing phase-related functionalities and data structures while improving computational efficiency. ## Scenario Runner and OpenScenario Scenario Runner provides predefined traffic scenarios out of the box and also allows users to define their own scenarios using either Python or the OpenSCENARIO 1.0 standard. The primary use of OpenSCENARIO is the description of complex maneuvers that involve multiple vehicles. Users can see which features of OpenSCENARIO are supported by Scenario Runner here. These features include Maneuvers, Actions, Conditions, Stories and the Storyboard. Scenario Runner has to be installed separately from the main CARLA package. * Creating complex traffic scenarios and routes to prepare AD agents for evaluation in the CARLA leaderboard. * Defining bespoke metrics that can be run against recordings of the scenario simulation, foregoing the need to run simulations repeatedly. ## Scenic Scenic is a domain-specific probabilistic programming language for modeling the environments of cyber-physical systems like robots and autonomous cars. Scenic provides an specialized domain to facilitate execution of Scenic scripts on the CARLA simulator. Scenic scenario definitions are easy to read and construct. A tutorial to create a simple scenario is provided here. * Generating multiple, diverse scenarios with a single scenario definition. * Defining probabilistic policies for dynamic agents to take actions over time in response to the state of the world. ## SUMO SUMO is an open source, microscopic, multi-modal traffic simulation. In SUMO, each vehicle is modelled explicitly, has its own route, and moves individually through the network. Simulations are deterministic by default but there are various options for introducing randomness. CARLA provides a co-simulation feature with SUMO that allows distribution of tasks between the two simulators. Vehicles can be spawned in CARLA through SUMO, and managed by SUMO much as the Traffic Manager would do. * Exploitation of the capabilities of both CARLA and SUMO in one package. If you have any doubts about the different options available to simulate traffic in CARLA, feel free to post in the forum or in Discord. CARLA is open source and designed to be highly extensible. This allows users to create custom functionality or content to suit specialized applications or specific needs. The following tutorials detail how to achieve specific development aims with the CARLA codebase: * Make release * Upgrading content * Create semantic tags * Create new sensor * Preformance benchmarking * Recorder file format * Collision boundaries ## Make a release If you want to develop your own fork of CARLA and publish releases of your code, follow this guide. ## Upgrading content Our content resides on a separate Git LFS repository. As part of our build system, we generate and upload a package containing the latest version of this content tagged with the current date and commit. Regularly, we upgrade the CARLA repository with a link to the latest version of the content package. Please follow these instructions to upgrade content. ## Create semantic tags CARLA has a set of semantic tags already defined suitable for most use cases. However, if you need additional classes you can add them as detailed in this guide ## Creating a new sensor You can modify CARLA's C++ code to create new sensors for your custom use cases. Please find the details here ## Benchmarking performance CARLA has a benchmarking script to help with benchmarking performance on your system. Find the full details here ## Recorder binary file format Details on the binary file format for the recorder can be found here ## Generating collision boundaries Details on generating more accurate collision boundaries for vehicles can be found in this guide CARLA has a wealth of assets available out of the box including full towns and cities with road networks, buildings and infrastructure, vehicles and pedestrians to populate your simulations. However, for many applications, you may want to add your own assets and CARLA is fully capable of loading new assets created entirely by the user for maximum extensability. The following documentation details numerous techniques for creating your own assets and adding them to CARLA. ## Adding props Props are the assets populating the scene, other than the roads and vehicles. That includes streetlights, buildings, trees, and much more. The simulator can ingest new props anytime in a simple process. This is really useful to create customized environments in a map. This document demonstrates how to create and include custom props. ## Adding vehicles Vehicles are the bread and butter of CARLA. They serve to simulate other road users and act as a virtual emulation of the vehicle that an autonomous agent is built to control. CARLA has a large, growing library of vehicles out of the box, but for specialised applications, CARLA is capable of loading custom designed vehicles. This document details how to create and import custom vehicles. ## Packaging assets It is a common practice in CARLA to manage assets with standalone packages. Keeping them aside allows to reduce the size of the build. These asset packages can be easily imported into a CARLA package anytime. They also become really useful to easily distribute assets in an organized way. This document demonstrates how to package assets for use in CARLA. ## Custom materials The CARLA team prepares every asset to run under certain default settings. However, users that work in a build from source can modify these to best suit their needs. This document demonstrates how to achieve this. This reference contains all the details the Python API. To consult a previous reference for a specific CARLA release, change the documentation version using the panel in the bottom right corner.This will change the whole documentation to a previous state. Remember that the latest version is the `dev` branch and may show features not available in any packaged versions of CARLA. ## carla.AckermannControllerSettings Manages the settings of the Ackermann PID controller. * speed_kp (float) Proportional term of the speed PID controller. * speed_ki (float) Integral term of the speed PID controller. * speed_kd (float) Derivative term of the speed PID controller. * accel_kp (float) Proportional term of the acceleration PID controller. * accel_ki (float) Integral term of the acceleration PID controller. * accel_kd (float) Derivative term of the acceleration PID controller. * __init__(self, speed_kp=0.15, speed_ki=0.0, speed_kd=0.25, accel_kp=0.01, accel_ki=0.0, accel_kd=0.01) * `speed_kp` (float) * `speed_ki` (float) * `speed_kd` (float) * `accel_kp` (float) * `accel_ki` (float) * `accel_kd` (float) * Parameters: * __eq__(self, other=carla.AckermannControllerSettings) * __ne__(self, other=carla.AckermannControllerSettings) * __str__(self) ## carla.Actor CARLA defines actors as anything that plays a role in the simulation or can be moved around. That includes: pedestrians, vehicles, sensors and traffic signs (considering traffic lights as part of these). Actors are spawned in the simulation by carla.World and they need for a carla.ActorBlueprint to be created. These blueprints belong into a library provided by CARLA, find more about them here. * attributes (dict) A dictionary containing the attributes of the blueprint this actor was based on. * id (int) Identifier for this actor. Unique during a given episode. * type_id (str) The identifier of the blueprint this actor was based on, e.g. `vehicle.ford.mustang` . * is_alive (bool) Returns whether this object was destroyed using this actor handle. * is_active (bool) Returns whether this actor is active (True) or not (False). * is_dormant (bool) Returns whether this actor is dormant (True) or not (False) - the opposite of is_active. * parent (carla.Actor) Actors may be attached to a parent actor that they will follow around. This is said actor. * semantic_tags (list(int)) A list of semantic tags provided by the blueprint listing components for this actor. E.g. a traffic light could be tagged with `Pole` and `TrafficLight` . These tags are used by the semantic segmentation sensor. Find more about this and other sensors here. * actor_state (carla.ActorState) Returns the carla.ActorState, which can identify if the actor is Active, Dormant or Invalid. * bounding_box (carla.BoundingBox) Bounding box containing the geometry of the actor. Its location and rotation are relative to the actor it is attached to. * add_angular_impulse(self, angular_impulse) Applies an angular impulse at the center of mass of the actor. This method should be used for instantaneous torques, usually applied once. Use add_torque() to apply rotation forces over a period of time. * `impulse` (carla.Vector3D - N*s) - Impulse vector in global coordinates. * Parameters: * add_torque(self, torque) Applies a torque at the center of mass of the actor. This method should be used for torques that are applied over a certain period of time. Use add_angular_impulse() to apply a torque that only lasts an instant. * `torque` (carla.Vector3D - degrees) - Torque vector in global coordinates. * Parameters: * destroy(self) Tells the simulator to destroy this actor and returns True if it was successful. It has no effect if it was already destroyed. * Return: bool * Warning: This method blocks the script until the destruction is completed by the simulator. * disable_constant_velocity(self) Disables any constant velocity previously set for a carla.Vehicle actor. * enable_constant_velocity(self, velocity) Sets a vehicle's velocity vector to a constant value over time. The resulting velocity will be approximately the `velocity` being set, as with set_target_velocity(). * `velocity` (carla.Vector3D - m/s) - Velocity vector in local space. * Note: Only carla.Vehicle actors can use this method. * Warning: Enabling a constant velocity for a vehicle managed by the Traffic Manager may cause conflicts. This method overrides any changes in velocity by the TM. * Parameters: * get_acceleration(self) Returns the actor's 3D acceleration vector the client recieved during last tick. The method does not call the simulator. * Return: carla.Vector3D - m/s2 * get_angular_velocity(self) Returns the actor's angular velocity vector the client recieved during last tick. The method does not call the simulator. * Return: carla.Vector3D - deg/s * get_location(self) Returns the actor's location the client recieved during last tick. The method does not call the simulator. * Return: carla.Location - meters * Setter: carla.Actor.set_location * get_transform(self) Returns the actor's transform (location and rotation) the client recieved during last tick. The method does not call the simulator. * Return: carla.Transform * Setter: carla.Actor.set_transform * get_velocity(self) Returns the actor's velocity vector the client recieved during last tick. The method does not call the simulator. * Return: carla.Vector3D - m/s * get_world(self) Returns the world this actor belongs to. * set_enable_gravity(self, enabled) Enables or disables gravity for the actor. Default is True. * `enabled` (bool) * Parameters: * set_location(self, location) Teleports the actor to a given location. * `location` (carla.Location - meters) * Getter: carla.Actor.get_location * Parameters: * set_simulate_physics(self, enabled=True) Enables or disables the simulation of physics on this actor. * `enabled` (bool) * Parameters: * set_target_angular_velocity(self, angular_velocity) Sets the actor's angular velocity vector. This is applied before the physics step so the resulting angular velocity will be affected by external forces such as friction. * `angular_velocity` (carla.Vector3D - deg/s) * Parameters: * set_target_velocity(self, velocity) Sets the actor's velocity vector. This is applied before the physics step so the resulting angular velocity will be affected by external forces such as friction. * `velocity` (carla.Vector3D) * Parameters: * set_transform(self, transform) Teleports the actor to a given transform (location and rotation). * `transform` (carla.Transform) * Getter: carla.Actor.get_transform * Parameters: ## carla.ActorAttribute CARLA provides a library of blueprints for actors that can be accessed as carla.BlueprintLibrary. Each of these blueprints has a series of attributes defined internally. Some of these are modifiable, others are not. A list of recommended values is provided for those that can be set. * id (str) The attribute's name and identifier in the library. * is_modifiable (bool) It is True if the attribute's value can be modified. * recommended_values (list(str)) A list of values suggested by those who designed the blueprint. * type (carla.ActorAttributeType) The attribute's parameter type. * as_bool(self) Reads the attribute as boolean value. * as_color(self) Reads the attribute as carla.Color. * as_float(self) Reads the attribute as float. * as_int(self) Reads the attribute as int. * as_str(self) Reads the attribute as string. * __bool__(self) * __eq__(self, other=bool / int / float / str / carla.Color / carla.ActorAttribute) Returns true if this actor's attribute and `other` are the same. * Return: bool * __float__(self) * __int__(self) * __ne__(self, other=bool / int / float / str / carla.Color / carla.ActorAttribute) Returns true if this actor's attribute and `other` are different. * Return: bool * __nonzero__(self) Returns true if this actor's attribute is not zero or null. * Return: bool * __str__(self) ## carla.ActorAttributeType CARLA provides a library of blueprints for actors in carla.BlueprintLibrary with different attributes each. This class defines the types those at carla.ActorAttribute can be as a series of enum. All this information is managed internally and listed here for a better comprehension of how CARLA works. ## carla.ActorBlueprint CARLA provides a blueprint library for actors that can be consulted through carla.BlueprintLibrary. Each of these consists of an identifier for the blueprint and a series of attributes that may be modifiable or not. This class is the intermediate step between the library and the actor creation. Actors need an actor blueprint to be spawned. These store the information for said blueprint in an object with its attributes and some tags to categorize them. The user can then customize some attributes and eventually spawn the actors through carla.World. * id (str) The identifier of said blueprint inside the library. E.g. ``` walker.pedestrian.0001 ``` . * tags (list(str)) A list of tags each blueprint has that helps describing them. E.g. ``` ['0001', 'pedestrian', 'walker'] ``` * has_attribute(self, id) Returns True if the blueprint contains the attribute `id` . * `id` (str) - e.g. `gender` would return True for pedestrians' blueprints. * Return: bool * Parameters: * has_tag(self, tag) Returns True if the blueprint has the specified `tag` listed. * `tag` (str) - e.g. 'walker'. * Return: bool * Parameters: * match_tags(self, wildcard_pattern) Returns True if any of the tags listed for this blueprint matches `wildcard_pattern` . Matching follows fnmatch standard. * `wildcard_pattern` (str) * Return: bool * Parameters: * get_attribute(self, id) Returns the actor's attribute with `id` as identifier if existing. * `id` (str) * Return: carla.ActorAttribute * Setter: carla.ActorBlueprint.set_attribute * Parameters: * set_attribute(self, id, value) If the `id` attribute is modifiable, changes its value to `value` . * `id` (str) - The identifier for the attribute that is intended to be changed. * `value` (str) - The new value for said attribute. * Getter: carla.ActorBlueprint.get_attribute * Parameters: * __iter__(self) Iterate over the carla.ActorAttribute that this blueprint has. * __len__(self) Returns the amount of attributes for this blueprint. * __str__(self) ## carla.ActorList A class that contains every actor present on the scene and provides access to them. The list is automatically created and updated by the server and it can be returned using carla.World. * filter(self, wildcard_pattern) Filters a list of Actors matching `wildcard_pattern` against their variable type_id (which identifies the blueprint used to spawn them). Matching follows fnmatch standard. * `wildcard_pattern` (str) * Return: list * Parameters: * find(self, actor_id) Finds an actor using its identifier and returns it or None if it is not present. * `actor_id` (int) * Return: carla.Actor * Parameters: * __getitem__(self, pos=int) Returns the actor corresponding to `pos` position in the list. * Return: carla.Actor * __iter__(self) Iterate over the carla.Actor contained in the list. * __len__(self) Returns the amount of actors listed. * Return: int * __str__(self) Parses to the ID for every actor listed. ## carla.ActorSnapshot A class that comprises all the information for an actor at a certain moment in time. These objects are contained in a carla.WorldSnapshot and sent to the client once every tick. * get_acceleration(self) Returns the acceleration vector registered for an actor in that tick. * Return: carla.Vector3D - rad/s * get_transform(self) Returns the actor's transform (location and rotation) for an actor in that tick. * Return: carla.Vector3D - m/s ## carla.ActorState Class that defines the state of an actor. * Invalid An actor is Invalid if a problem has occurred. * Active An actor is Active when it visualized and can affect other actors. * Dormant An actor is Dormant when it is not visualized and will not affect other actors through physics. For example, actors are dormant if they are on an unloaded tile in a large map. ## carla.AttachmentType Class that defines attachment options between an actor and its parent. When spawning actors, these can be attached to another actor so their position changes accordingly. This is specially useful for sensors. The snipet in carla.World.spawn_actor shows some sensors being attached to a car when spawned. Note that the attachment type is declared as an enum within the class. * Rigid With this fixed attachment the object follow its parent position strictly. This is the recommended attachment to retrieve precise data from the simulation. * SpringArm An attachment that expands or retracts the position of the actor, depending on its parent. This attachment is only recommended to record videos from the simulation where a smooth movement is needed. SpringArms are an Unreal Engine component so check the UE docs to learn more about them. Warning: The SpringArm attachment presents weird behaviors when an actor is spawned with a relative translation in the Z-axis (e.g. ). * SpringArmGhost An attachment like the previous one but that does not make the collision test, and that means that it does not expands or retracts the position of the actor. The term ghost is because then the camera can cross walls and other geometries. This attachment is only recommended to record videos from the simulation where a smooth movement is needed. SpringArms are an Unreal Engine component so check the UE docs to learn more about them. Warning: The SpringArm attachment presents weird behaviors when an actor is spawned with a relative translation in the Z-axis (e.g. ). ## carla.BlueprintLibrary A class that contains the blueprints provided for actor spawning. Its main application is to return carla.ActorBlueprint objects needed to spawn actors. Each blueprint has an identifier and attributes that may or may not be modifiable. The library is automatically created by the server and can be accessed through carla.World. Here is a reference containing every available blueprint and its specifics. * filter(self, wildcard_pattern) Filters a list of blueprints matching the `wildcard_pattern` against the id and tags of every blueprint contained in this library and returns the result as a new one. Matching follows fnmatch standard. * `wildcard_pattern` (str) * Return: carla.BlueprintLibrary * Parameters: * filter_by_attribute(self, name, value) Filters a list of blueprints with a given attribute matching the `value` against every blueprint contained in this library and returns the result as a new one. Matching follows fnmatch standard. * `name` (str) * `value` (str) * Return: carla.BlueprintLibrary * Parameters: * find(self, id) Returns the blueprint corresponding to that identifier. * `id` (str) * Return: carla.ActorBlueprint * Parameters: * __getitem__(self, pos=int) Returns the blueprint stored in `pos` position inside the data structure containing them. * Return: carla.ActorBlueprint * __iter__(self) Iterate over the carla.ActorBlueprint stored in the library. * __len__(self) Returns the amount of blueprints comprising the library. * Return: int * __str__(self) Parses the identifiers for every blueprint to string. * Return: string ## carla.BoundingBox Bounding boxes contain the geometry of an actor or an element in the scene. They can be used by carla.DebugHelper or a carla.Client to draw their shapes for debugging. Check out the snipet in carla.DebugHelper.draw_box where a snapshot of the world is used to draw bounding boxes for traffic lights. * extent (carla.Vector3D - meters) Vector from the center of the box to one vertex. The value in each axis equals half the size of the box for that axis. `extent.x * 2` would return the size of the box in the X-axis. * location (carla.Location - meters) The center of the bounding box. * rotation (carla.Rotation) The orientation of the bounding box. * __init__(self, location, extent) * `location` (carla.Location) - Center of the box, relative to its parent. * `extent` (carla.Vector3D - meters) - Vector containing half the size of the box for every axis. * Parameters: * contains(self, world_point, transform) Returns True if a point passed in world space is inside this bounding box. * `world_point` (carla.Location - meters) - The point in world space to be checked. * `transform` (carla.Transform) - Contains location and rotation needed to convert this object's local space to world space. * Return: bool * Parameters: * get_local_vertices(self) Returns a list containing the locations of this object's vertices in local space. * Return: list(carla.Location) * get_world_vertices(self, transform) Returns a list containing the locations of this object's vertices in world space. * `transform` (carla.Transform) - Contains location and rotation needed to convert this object's local space to world space. * Return: list(carla.Location) * Parameters: * __eq__(self, other=carla.BoundingBox) Returns true if both location and extent are equal for this and `other` . * Return: bool * __ne__(self, other=carla.BoundingBox) Returns true if either location or extent are different for this and `other` . * Return: bool * __str__(self) Parses the location and extent of the bounding box to string. ## carla.CityObjectLabel Enum declaration that contains the different tags available to filter the bounding boxes returned by carla.World.get_level_bbs(). These values correspond to the semantic tag that the elements in the scene have. * None * Buildings * Fences * Other * Pedestrians * Poles * RoadLines * Roads * Sidewalks * TrafficSigns * Vegetation * Vehicles * Walls * Sky * Ground * Bridge * RailTrack * GuardRail * TrafficLight * Static * Dynamic * Water * Terrain * Any ## carla.Client The Client connects CARLA to the server which runs the simulation. Both server and client contain a CARLA library (libcarla) with some differences that allow communication between them. Many clients can be created and each of these will connect to the RPC server inside the simulation to send commands. The simulation runs server-side. Once the connection is established, the client will only receive data retrieved from the simulation. Walkers are the exception. The client is in charge of managing pedestrians so, if you are running a simulation with multiple clients, some issues may arise. For example, if you spawn walkers through different clients, collisions may happen, as each client is only aware of the ones it is in charge of. The client also has a recording feature that saves all the information of a simulation while running it. This allows the server to replay it at will to obtain information and experiment with it. Here is some information about how to use this recorder. * __init__(self, host=127.0.0.1, port=2000, worker_threads=0) Client constructor. * `host` (str) - IP address where a CARLA Simulator instance is running. Default is localhost (127.0.0.1). * `port` (int) - TCP port where the CARLA Simulator instance is running. Default are 2000 and the subsequent 2001. * `worker_threads` (int) - Number of working threads used for background updates. If 0, use all available concurrency. * Parameters: * apply_batch(self, commands) Executes a list of commands on a single simulation step and retrieves no information. If you need information about the response of each command, use the apply_batch_sync() method. Here is an example on how to delete the actors that appear in carla.ActorList all at once. * `commands` (list) - A list of commands to execute in batch. Each command is different and has its own parameters. They appear listed at the bottom of this page. * Parameters: * apply_batch_sync(self, commands, due_tick_cue=False) Executes a list of commands on a single simulation step, blocks until the commands are linked, and returns a list of command.Response that can be used to determine whether a single command succeeded or not. Here is an example of it being used to spawn actors. * `commands` (list) - A list of commands to execute in batch. The commands available are listed right above, in the method apply_batch(). * `due_tick_cue` (bool) - A boolean parameter to specify whether or not to perform a carla.World.tick after applying the batch in synchronous mode. It is False by default. * Return: list(command.Response) * Parameters: * generate_opendrive_world(self, opendrive, parameters=(2.0, 50.0, 1.0, 0.6, true, true), reset_settings=True) Loads a new world with a basic 3D topology generated from the content of an OpenDRIVE file. This content is passed as a `string` parameter. It is similar to ``` client.load_world(map_name) ``` but allows for custom OpenDRIVE maps in server side. Cars can drive around the map, but there are no graphics besides the road and sidewalks. * `opendrive` (str) - Content of an OpenDRIVE file as `string` , not the path to the `.xodr` . * `parameters` (carla.OpendriveGenerationParameters) - Additional settings for the mesh generation. If none are provided, default values will be used. * `reset_settings` (bool) - Option to reset the episode setting to default values, set to false to keep the current settings. This is useful to keep sync mode when changing map and to keep deterministic scenarios. * Parameters: * load_world(self, map_name, reset_settings=True, map_layers=carla.MapLayer.All) Creates a new world with default settings using `map_name` map. All actors in the current world will be destroyed. * `map_name` (str) - Name of the map to be used in this world. Accepts both full paths and map names, e.g. '/Game/Carla/Maps/Town01' or 'Town01'. Remember that these paths are dynamic. * `reset_settings` (bool) - Option to reset the episode setting to default values, set to false to keep the current settings. This is useful to keep sync mode when changing map and to keep deterministic scenarios. * `map_layers` (carla.MapLayer) - Layers of the map that will be loaded. By default all layers are loaded. This parameter works like a flag mask. * Warning: `map_layers` are only available for "Opt" maps * Parameters: * reload_world(self, reset_settings=True) Reload the current world, note that a new world is created with default settings using the same map. All actors present in the world will be destroyed, but traffic manager instances will stay alive. * `reset_settings` (bool) - Option to reset the episode setting to default values, set to false to keep the current settings. This is useful to keep sync mode when changing map and to keep deterministic scenarios. * Raises: RuntimeError when corresponding. * Parameters: * replay_file(self, name, start, duration, follow_id, replay_sensors) Load a new world with default settings using `map_name` map. All actors present in the current world will be destroyed, but traffic manager instances will stay alive. * `name` (str) - Name of the file containing the information of the simulation. * `start` (float - seconds) - Time where to start playing the simulation. Negative is read as beginning from the end, being -10 just 10 seconds before the recording finished. * `duration` (float - seconds) - Time that will be reenacted using the information `name` file. If the end is reached, the simulation will continue. * `follow_id` (int) - ID of the actor to follow. If this is 0 then camera is disabled. * `replay_sensors` (bool) - Flag to enable or disable the spawn of sensors during playback. * Parameters: * request_file(self, name) Requests one of the required files returned by carla.Client.get_required_files. * `name` (str) - Name of the file you are requesting. * Parameters: * show_recorder_actors_blocked(self, filename, min_time, min_distance) The terminal will show the information registered for actors considered blocked. An actor is considered blocked when it does not move a minimum distance in a period of time, being these `min_distance` and `min_time` . * `filename` (str) - Name of the recorded file to load. * `min_time` (float - seconds) - Minimum time the actor has to move a minimum distance before being considered blocked. Default is 60 seconds. * `min_distance` (float - centimeters) - Minimum distance the actor has to move to not be considered blocked. Default is 100 centimeters. * Return: string * Parameters: * show_recorder_collisions(self, filename, category1, category2) The terminal will show the collisions registered by the recorder. These can be filtered by specifying the type of actor involved. The categories will be specified in `category1` and `category2` as follows: 'h' = Hero, the one vehicle that can be controlled manually or managed by the user. 'v' = Vehicle 'w' = Walker 't' = Traffic light 'o' = Other 'a' = Any If you want to see only collisions between a vehicles and a walkers, use for `category1` as 'v' and `category2` as 'w' or vice versa. If you want to see all the collisions (filter off) you can use 'a' for both parameters. * `filename` (str) - Name or absolute path of the file recorded, depending on your previous choice. * `category1` (single char) - Character variable specifying a first type of actor involved in the collision. * `category2` (single char) - Character variable specifying the second type of actor involved in the collision. * Return: string * Parameters: * show_recorder_file_info(self, filename, show_all) The information saved by the recorder will be parsed and shown in your terminal as text (frames, times, events, state, positions...). The information shown can be specified by using the `show_all` parameter. Here is some more information about how to read the recorder file. * `filename` (str) - Name or absolute path of the file recorded, depending on your previous choice. * `show_all` (bool) - If True, returns all the information stored for every frame (traffic light states, positions of all actors, orientation and animation data...). If False, returns a summary of key events and frames. * Return: string * Parameters: * start_recorder(self, filename, additional_data=False) Enables the recording feature, which will start saving every information possible needed by the server to replay the simulation. * `filename` (str) - Name of the file to write the recorded data. A simple name will save the recording in 'CarlaUE4/Saved/recording.log'. Otherwise, if some folder appears in the name, it will be considered an absolute path. * `additional_data` (bool) - Enables or disable recording non-essential data for reproducing the simulation (bounding box location, physics control parameters, etc). * Parameters: * stop_recorder(self) Stops the recording in progress. If you specified a path in `filename` , the recording will be there. If not, look inside `CarlaUE4/Saved/` . * stop_replayer(self, keep_actors) Stop current replayer. * `keep_actors` (bool) - True if you want autoremove all actors from the replayer, or False to keep them. * Parameters: * get_available_maps(self) Returns a list of strings containing the paths of the maps available on server. These paths are dynamic, they will be created during the simulation and so you will not find them when looking up in your files. One of the possible returns for this method would be: ['/Game/Carla/Maps/Town01', '/Game/Carla/Maps/Town02', '/Game/Carla/Maps/Town03', '/Game/Carla/Maps/Town04', '/Game/Carla/Maps/Town05', '/Game/Carla/Maps/Town06', '/Game/Carla/Maps/Town07']. * Return: list(str) * get_client_version(self) Returns the client libcarla version by consulting it in the "Version.h" file. Both client and server can use different libcarla versions but some issues may arise regarding unexpected incompatibilities. * Return: str * get_required_files(self, folder, download=True) Asks the server which files are required by the client to use the current map. Option to download files automatically if they are not already in the cache. * `folder` (str) - Folder where files required by the client will be downloaded to. * `download` (bool) - If True, downloads files that are not already in cache. * Parameters: * get_server_version(self) Returns the server libcarla version by consulting it in the "Version.h" file. Both client and server should use the same libcarla version. * Return: str * get_trafficmanager(self, client_connection=8000) Returns an instance of the traffic manager related to the specified port. If it does not exist, this will be created. * `client_connection` (int) - Port that will be used by the traffic manager. Default is `8000` . * Return: carla.TrafficManager * Parameters: * get_world(self) Returns the world object currently active in the simulation. This world will be later used for example to load maps. * set_files_base_folder(self, path) * `path` (str) - Specifies the base folder where the local cache for required files will be placed. * Parameters: * set_replayer_ignore_hero(self, ignore_hero) * `ignore_hero` (bool) - Enables or disables playback of the hero vehicle during a playback of a recorded simulation. * Parameters: * set_replayer_ignore_spectator(self, ignore_spectator) * `ignore_spectator` (bool) - Determines whether the recorded spectator movements will be replicated by the replayer. * Parameters: * set_replayer_time_factor(self, time_factor=1.0) When used, the time speed of the reenacted simulation is modified at will. It can be used several times while a playback is in curse. * `time_factor` (float) - 1.0 means normal time speed. Greater than 1.0 means fast motion (2.0 would be double speed) and lesser means slow motion (0.5 would be half speed). * Parameters: * set_timeout(self, seconds) Sets the maximum time a network call is allowed before blocking it and raising a timeout exceeded error. * `seconds` (float - seconds) - New timeout value. Default is 5 seconds. * Parameters: ## carla.CollisionEvent Inherited from carla.SensorData The CARLA simulator provides a vast library of 3D assets to populate your autonomous agent's virtual environment. The 3D asset library provides numerous pre-built maps to choose from, a diverse array of vehicle models for traffic simulation along with models of pedestrians and other structures or obstacles that can be dynamically added to your simulation during runtime. This catalogue documents all of the 3D assets available to use in your simulations. The CARLA simulator provides 10 pre-built maps to choose from, providing a diverse array of environments for training and testing your autonomous agents. ## Vehicles CARLA provides a diverse array of vehicles, with high fidelity models of real world cars, trucks and bikes, for replicating traffic in your simulations. Browse and choose the vehicles you like in the vehicle catalogue. ## Pedestrians CARLA's asset library includes a variety of pedestrians to simulate foot traffic in the 3D environments surrounding your agent. Browse and choose the pedestrians you want in the pedestrian catalogue. ## Props CARLA's props model the various structures and items you might find on or near roads, such as kiosks, statues, benches, boxes, bins, debris or trash. The props can be placed anywhere in your simulation dynamically during runtime. Browse and choose your props in the props catalogue. We use Doxygen to generate the documentation of our C++ code: Libcarla/SourceUnreal/CarlaUE4/Source Unreal/CarlaUE4/Carla/Plugins The generated documentation is available at this link http://carla.org/Doxygen/html/index.html Document updates are done automatically by GitHub. ### Create doxygen documentation Doxygen is required to generate the documentation and Graphviz for the graph drawing toolkit. 1- Install doxygen and graphviz with the following command: ``` # linux > sudo apt-get install doxygen graphviz ``` 2- Once installed, go to the project root folder where the Doxyfile file is situated and run the following command: `> doxygen` It will start to build the documentation webpage.The resulting webpage can be found at Doxygen/html/ 3- Open index.html in a browser. Now you have your local cpp documentation! The Blueprint Library ( ``` carla.BlueprintLibrary ``` ) is a summary of all `carla.ActorBlueprint` and its attributes ( `carla.ActorAttribute` ) available to the user in CARLA. Here is an example code for printing all actor blueprints and their attributes: ``` blueprints = [bp for bp in world.get_blueprint_library().filter('*')] for blueprint in blueprints: print(blueprint.id) for attr in blueprint: print(' - {}'.format(attr)) ``` Check out the introduction to blueprints. ### controller * controller.ai.walker ### sensor * sensor.camera.depth (Float) - Modifiable * `lens_k` (Float) - Modifiable * `lens_kcube` (Float) - Modifiable * `lens_x_size` (Float) - Modifiable * `lens_y_size` (Float) - Modifiable * `role_name` (String) - Modifiable * `sensor_tick` (Float) - Modifiable * Attributes: * sensor.camera.dvs (Float) - Modifiable * `negative_threshold` (Float) - Modifiable * `positive_threshold` (Float) - Modifiable * `refractory_period_ns` (Int) - Modifiable * `role_name` (String) - Modifiable * `sensor_tick` (Float) - Modifiable * `shoulder` (Float) - Modifiable * `shutter_speed` (Float) - Modifiable * ``` sigma_negative_threshold ``` ``` sigma_positive_threshold ``` (Float) - Modifiable * `slope` (Float) - Modifiable * `temp` (Float) - Modifiable * `tint` (Float) - Modifiable * `toe` (Float) - Modifiable * `use_log` (Bool) - Modifiable * `white_clip` (Float) - Modifiable * Attributes: * sensor.camera.instance_segmentation (Float) - Modifiable * `role_name` (String) - Modifiable * `sensor_tick` (Float) - Modifiable * `shoulder` (Float) - Modifiable * `shutter_speed` (Float) - Modifiable * `slope` (Float) - Modifiable * `temp` (Float) - Modifiable * `tint` (Float) - Modifiable * `toe` (Float) - Modifiable * `white_clip` (Float) - Modifiable * Attributes: * sensor.camera.semantic_segmentation ``` atmosphere_attenuation_rate ``` (Float) - Modifiable * `channels` (Int) - Modifiable * `dropoff_general_rate` (Float) - Modifiable * ``` dropoff_intensity_limit ``` ``` dropoff_zero_intensity ``` * `role_name` (String) - Modifiable * Attributes: * sensor.other.gnss * `noise_alt_bias` (Float) - Modifiable * `noise_alt_stddev` (Float) - Modifiable * `noise_lat_bias` (Float) - Modifiable * `noise_lat_stddev` (Float) - Modifiable * `noise_lon_bias` (Float) - Modifiable * `noise_lon_stddev` (Float) - Modifiable * `noise_seed` (Int) - Modifiable * `role_name` (String) - Modifiable * `sensor_tick` (Float) - Modifiable * Attributes: * sensor.other.imu * `noise_accel_stddev_x` (Float) - Modifiable * `noise_accel_stddev_y` (Float) - Modifiable * `noise_accel_stddev_z` (Float) - Modifiable * `noise_gyro_bias_x` (Float) - Modifiable * `noise_gyro_bias_y` (Float) - Modifiable * `noise_gyro_bias_z` (Float) - Modifiable * `noise_gyro_stddev_x` (Float) - Modifiable * `noise_gyro_stddev_y` (Float) - Modifiable * `noise_gyro_stddev_z` (Float) - Modifiable * `noise_seed` (Int) - Modifiable * `role_name` (String) - Modifiable * `sensor_tick` (Float) - Modifiable * Attributes: * sensor.other.lane_invasion * `role_name` (String) - Modifiable * Attributes: * sensor.other.obstacle * `debug_linetrace` (Bool) - Modifiable * `distance` (Float) - Modifiable * `hit_radius` (Float) - Modifiable * `only_dynamics` (Bool) - Modifiable * `role_name` (String) - Modifiable * `sensor_tick` (Float) - Modifiable * Attributes: * sensor.other.radar * `horizontal_fov` (Float) - Modifiable * `noise_seed` (Int) - Modifiable * `points_per_second` (Int) - Modifiable * `range` (Float) - Modifiable * `role_name` (String) - Modifiable * `sensor_tick` (Float) - Modifiable * `vertical_fov` (Float) - Modifiable * Attributes: * sensor.other.rss ### static * static.prop.advertisement * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.barrel * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.box02 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.brokentile04 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.calibrator * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.chainbarrier * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.constructioncone * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.creasedbox01 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.dirtdebris01 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.dirtdebris02 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.doghouse * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.garbage04 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.gnome * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.haybale * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.maptable * `mass` (Float) - Modifiable * `mesh_path` (String) - Modifiable * `role_name` (String) - Modifiable * `scale` (Float) - Modifiable * Attributes: * static.prop.mobile * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.pergola * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.plantpot01 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.plasticchair * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.platformgarbage01 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.shoppingbag * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.shoppingcart * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.streetfountain * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.streetsign * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.trafficcone01 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.trashcan02 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.trashcan04 * `role_name` (String) - Modifiable * `size` (String) * Attributes: * static.prop.wateringcan * `extent_x` (Float) - Modifiable * `extent_y` (Float) - Modifiable * `extent_z` (Float) - Modifiable * `friction` (Float) - Modifiable * `role_name` (String) - Modifiable * Attributes: ### vehicle * vehicle.audi.a2 * `base_type` (String) * `generation` (Int) * `has_dynamic_doors` (Bool) * `has_lights` (Bool) * `number_of_wheels` (Int) * `object_type` (String) * `role_name` (String) - Modifiable * `special_type` (String) * `sticky_control` (Bool) - Modifiable * `terramechanics` (Bool) - Modifiable * Attributes: * vehicle.tesla.model3 ### walker * walker.pedestrian.0001 Here you will find the multitude of tutorials available to help you understand how to use CARLA's many features. ### CARLA features Retrieve simulation data — A step by step guide to properly gather data using the recorder.Traffic manager — How to use traffic manager to guide traffic around your town. Texture streaming — Modify textures of map objects in real time to add variation. Instance segmentation camera — Use an instance segmentation camera to distinguish objects of the same class. Bounding boxes — Project bounding boxes from CARLA objects into the camera. Pedestrian bones — Project pedestrian skeleton into camera plane. Control walker skeletons — Animate walkers using skeletons. ### Building and integration Build Unreal Engine and CARLA in Docker — Build Unreal Engine and CARLA in Docker.CarSim Integration — Tutorial on how to run a simulation using the CarSim vehicle dynamics engine. RLlib Integration — Find out how to run your own experiment using the RLlib library. Chrono Integration — Use the Chrono integration to simulation physics. PyGame control — Use PyGame to display the output of camera sensors. ## Assets and maps Generate maps with OpenStreetMap — Use OpenStreetMap to generate maps for use in simulations.Add a new vehicle — Prepare a vehicle to be used in CARLA. Add new props — Import additional props into CARLA. Create standalone packages — Generate and handle standalone packages for assets. Material customization — Edit vehicle and building materials. ## Developers How to upgrade content — Add new content to CARLA.Create a sensor — Develop a new sensor to be used in CARLA. Create semantic tags — Define customized tags for semantic segmentation. Customize vehicle suspension — Modify the suspension system of a vehicle. Generate detailed colliders — Create detailed colliders for vehicles. Make a release — How to make a release of CARLA ## Video tutorials Fundamentals — Learn the fundamental concepts of CARLA and start your first script. CODEAn in depth look at CARLA's sensors — An in depth look at CARLA's sensors and how to use them. CODE Below, you will find in depth documentation on the many extensive features of CARLA. ## Advanced concepts Recorder — Register the events in a simulation and play it again.Rendering options — From quality settings to no-render or off-screen modes. Synchrony and time-step — Client-server communication and simulation time. Benchmarking Performance — Perform benchmarking using our prepared script. CARLA Agents — Agents scripts allow single vehicles to roam the map or drive to a set destination. Multi GPU — Set up the CARLA simulator to use multiple GPUs for processing. ## Traffic Simulation __ Traffic Simulation Overview__ — An overview of the different options available to populate your scenes with traffic.Traffic Manager — Simulate urban traffic by setting vehicles to autopilot mode. ## References Recorder binary file format — Detailed explanation of the recorder file format.Sensors reference — Everything about sensors and the data they retrieve. Overview of custom maps in CARLA — An overview of the process and options involved in adding a custom, standard sized map.Create a map in RoadRunner — How to generate a customs, standard sized map in RoadRunner. __ Import map in CARLA package__ How to import a map in a CARLA package. Import map in CARLA source build — How to import a map in CARLA built from source. Alternative ways to import maps — Alternative methods to import maps. __ Manually prepare map package__ — How to prepare a map for manual import. Customizing maps: Layered maps — How to create sub-layers in your custom map. __ Customizing maps: Traffic lights and signs__ — How to add traffic lights and signs to your custom map. __ Customizing maps: Road painter__ — How to use the road painter tool to change the appearance of the road. Customizing Maps: Procedural Buildings — Populate your custom map with buildings. __ Customizing maps: Weather and landscape__ — Create the weather profile for your custom map and populate the landscape. Generate pedestrian navigation — Obtain the information needed for walkers to move around. Large maps overview — An explanation of how large maps work in CARLA.Create a Large Map in RoadRunner — How to create a large map in RoadRunner. Import/Package a Large Map — How to import a large map. Date: 2021-01-01 Categories: Tags: In a webinair series in April 2021, Ansys presented the details of their integration of the Ansys Real Time Radar (RTR) with the CARLA simulator. Here you can download and view the presentation slides and videos that accompanied the webinair. The presentation details how the RTR was integrated with CARLA to train a vehicle longitudinal controller using reinforcement learning and includes the model, action space and reward policy used. The videos show the results of the training in the CARLA simulator. The RLlib integration brings support between the Ray/RLlib library and CARLA, allowing the easy use of the CARLA environment for training and inference purposes. Ray is an open source framework that provides a simple, universal API for building distributed applications. Ray is packaged with RLlib, a scalable reinforcement learning library, and Tune, a scalable hyperparameter tuning library. The RLlib integration allows users to create and use CARLA as an environment of Ray and use that environment for training and inference purposes. The integration is ready to use both locally and in the cloud using AWS. In this guide we will outline the requirements needed for running the RLlib integration both locally and on AWS, the structure of the integration repository, an overview of how to use the library and then an example of how to set up a Ray experiment using CARLA as an environment. * Before you begin * RLlib repository structure * Creating your own experiment * DQN example * Running on AWS * Download the RLlib integration from GitHub or clone the repository directly: ``` git clone https://github.com/carla-simulator/rllib-integration.git ``` * Requirements vary depending on if you are running locally or on AWS: # Requirements for running locally * Install a package version of CARLA and import the additional assets. The recommended version is CARLA 0.9.11 as the integration was designed and tested with this version. Other versions may be compatible but have not been fully tested, so use these at your own discretion. * Navigate into the root folder of the RLlib integration repository and install the Python requirements: ``` pip3 install -r requirements.txt ``` * Set an environment variable to locate the CARLA package by running the command below or add ``` CARLA_ROOT=path/to/carla ``` to your `.bashrc` file: ``` export CARLA_ROOT=path/to/carla ``` # Requirements for running on AWS Cloud * The requirements for running on AWS are taken care of automatically in an install script found in the RLlib integration repository. Find more details in the section "Running on AWS". ## RLlib repository structure The repository is divided into three directories: * `rllib_integration` contains all the infrastructure related to CARLA and how to set up the CARLA server, clients and actors. This provides the basic structure that all training and testing experiments must follow. * `aws` has the files needed to run in an AWS instance. `aws_helper.py` provides several functionalities that ease the management of EC2 instances, including instance creation and sending and receiving data. * `dqn_example` and the `dqn_*` files in the root directory provide an easy-to-understand example on how to set up a Ray experiment using CARLA as its environment. ## Creating your own experiment This section provides a general overview on how to create your own experiment. For a more specific example, see the next section "DQN example". You will need to create at least four files: * The experiment class * The environment configuration * The training and inference scripts # 1. The experiment class To use the CARLA environment you need to define a training experiment. Ray requires environments to return a series of specific information. You can see details on the CARLA environment in ``` rllib-integration/rllib_integration/carla_env.py ``` . The information required by Ray is dependent on your specific experiment so all experiments should inherit from `BaseExperiment` . This class contains all the functions that need to be overwritten for your own experiment. These are all functions related to the actions, observations and rewards of the training. # 2. The environment configuration The experiment should be configured through a `.yaml` file. Any settings passed through the configuration file will override the default settings. The locations of the different default settings are explained below. The configuration file has three main uses: * Sets up most of the CARLA server and client settings, such as timeout or map quality. See the default values here. * Sets up variables specific to your experiment as well as specifying town conditions and the spawning of the ego vehicle and its sensors. The default settings are found here and provide an example of how to set up sensors. * Configures settings specific to Ray's training. These settings are related to the specific trainer used. If you are using a built-in model, you can apply settings for it here. # 3. The training and inference scripts The last step is to create your own training and inference scripts. This part is completely up to you and is dependent on the Ray API. If you want to create your own specific model, check out Ray's custom model documentation. ## DQN example This section builds upon the previous section to show a specific example on how to work with the RLlib integration using the BirdView pseudosensor and Ray's DQNTrainer. The structure of the DQN example is as follows: * The experiment class: `DQNExperiment` , which overwrites the methods of the `BaseExperiment` class. * The configuration file: ``` dqn_example/dqn_config.yaml ``` * The training file: `dqn_train.py` * The inference file: * With Ray: `dqn_inference_ray.py` * Without Ray: `dqn_inference.py` * With Ray: To run the example locally: Install pytorch: ``` pip3 install -r dqn_example/dqn_requirements.txt ``` Run the training file: ``` python3 dqn_train.py dqn_example/dqn_config.yaml --name dqn ``` The default configuration uses 1 GPU and 12 CPUs, so if your local machine doesn't have that capacity, lower the numbers in the configuration file. If you experience out of memory problems, consider reducing the `buffer_size` parameter. ## Running on AWS This section explains how to use the RLlib integration to automatically run training and inference on AWS EC2 instances. To handle the scaling of instances we use the Ray autoscaler API. # Configure AWS You will need to configure your boto3 environment correctly. Check here for more information. # Create the training AMI Use the provided `aws_helper.py` script to automatically create the image needed for training by running the command below, passing in the name of the base image and the installation script `install.sh` found in ``` rllib-integration/aws/install ``` : ``` python3 aws_helper.py create-image --name <AMI-name> --installation-scripts <installation-scripts> --instance-type <instance-type> --volume-size <volume-size> ``` # Configure the cluster Once the image is created, there will be an output with image information. To use the Ray autoscaler, update the `<ImageId>` and `<SecurityGroupIds>` settings in your autoscaler configuration file with the information from the output. # Run the training With the image created, you can use Ray's API to run the training on the cluster: ``` ray up <autoscaler_configuration_file> ``` (Optional) If the local code has been modified after the cluster initialization, run this command to update it: ``` ray rsync-up <autoscaler_configuration_file> <path_to_local_folder> <path_to_remote_folder> ``` ``` ray submit <autoscaler_configuration_file> <training_file> ``` ``` ray down <autoscaler_configuration_file> ``` # Running the DQN example on AWS To run the DQN example on AWS: Create the image by passing the ``` dqn_example/dqn_autoscaler.yaml ``` configuration to the following command: ``` python3 aws_helper.py create-image --name <AMI-name> --installation-scripts install/install.sh --instance-type <instance-type> --volume-size <volume-size> ``` Update the `<ImageId>` and `<SecurityGroupIds>` settings in `dqn_autoscaler.yaml` with the information provided by the previous command. * ``` ray up dqn_example/dqn_autoscaler.yaml ``` (Optional) Update remote files with local changes: ``` ray rsync-up dqn_example/dqn_autoscaler.yaml dqn_example . ray rsync-up dqn_example/dqn_autoscaler.yaml rllib_integration . ``` ``` ray submit dqn_example/dqn_autoscaler.yaml dqn_train.py -- dqn_example/dqn_config.yaml --auto ``` ``` ray down dqn_example/dqn_autoscaler.yaml ``` This guide has outlined how to install and run the RLlib integration on AWS and on a local machine. If you have any questions or ran into any issues working through the guide, feel free to post in the forum or raise an issue on GitHub. CARLA's integration with CarSim allows vehicle controls in CARLA to be forwarded to CarSim. CarSim will do all required physics calculations of the vehicle and return the new state to CARLA. This page shows you how to generate a `.sim` file, explains how vehicle dimensions relate between CARLA and CarSim and how to run a simulation on CARLA using the CarSim integration. * Before you begin * Set up CarSim * Run the simulation * You will need a license for CarSim and to have the software up and running. If you don't currently have a license for CarSim, you can contact the team here for information. * To allow communication with Unreal Engine you will need to install the VehicleSim Dynamics plugin (version 2020.0) for Unreal Engine 4.24. For information on finding specific versions of the plugin, check this link. Installation of the plugin will depend on your operating system: For Windows: Get the plugin here. For Ubuntu: * This step can be skipped if you are using the packaged version of CARLA. The packaged version has already been compiled using this flag but if you are building CARLA from source then you will need to compile the server with the `--carsim` flag. If you are building CARLA from source, run the following command in the root folder to compile the server with the `--carsim` flag: ``` make launch ARGS="--carsim" ``` ## Set up CarSim The following section details how to generate the `.sim` file which is required to run the simulation. There is also important information detailed regarding the relationship of vehicle sizes between CARLA and CarSim. # Generate the .sim file The `.sim` file describes the simulation to be run in both CARLA and CarSim. This file is required by the plugin to run the simulation. There is currently no way to generate this file on Ubuntu, however we will describe below how to use a previously generated file to run the simulation on Ubuntu. # On Windows After you have configured all the parameters on CarSim, use the GUI to generate the `.sim` file as highlighted below: The resulting `.sim` file should look something like this: SET_MACRO $(ROOT_FILE_NAME)$ Run_dd7a828d-4b14-4c77-9d09-1974401d6b25 SET_MACRO $(OUTPUT_PATH)$ D:\carsim\Data\Results SET_MACRO $(WORK_DIR)$ D:\carsim\Data\ SET_MACRO $(OUTPUT_FILE_PREFIX)$ $(WORK_DIR)$Results\Run_dd7a828d-4b14-4c77-9d09-1974401d6b25\LastRun FILEBASE $(OUTPUT_FILE_PREFIX)$ INPUT $(WORK_DIR)$Results\$(ROOT_FILE_NAME)$\Run_all.par INPUTARCHIVE $(OUTPUT_FILE_PREFIX)$_all.par ECHO $(OUTPUT_FILE_PREFIX)$_echo.par FINAL $(OUTPUT_FILE_PREFIX)$_end.par LOGFILE $(OUTPUT_FILE_PREFIX)$_log.txt ERDFILE $(OUTPUT_FILE_PREFIX)$.vs PROGDIR D:\carsim\ DATADIR D:\carsim\Data\ GUI_REFRESH_V CarSim_RefreshEvent_7760 RESOURCEDIR D:\carsim\\Resources\ PRODUCT_ID CarSim PRODUCT_VER 2020.0 ANIFILE D:\carsim\Data\runs\animator.par VEHICLE_CODE i_i EXT_MODEL_STEP 0.00050000 PORTS_IMP 0 PORTS_EXP 0 DLLFILE D:\carsim\Programs\solvers\carsim_64.dll END ``` # On Ubuntu There is no way to create the `.sim` file via GUI on Ubuntu. In order to proceed you will need to follow these steps: * Generate the `.sim` file in Windows or use the file template below. * Modify the `.sim` file so the variables `INPUT` , `INPUTARCHIVE` , `LOGFILE` and so on point towards the corresponding files in your Ubuntu system. * Replace the `DLLFILE` line to point towards the CarSim solver which, in the default installation, will be ``` SOFILE /opt/carsim_2020.0/lib64/libcarsim.so.2020.0 ``` . The resulting file should be similar to this: FILEBASE /path/to/LastRun INPUT /path/to/Run_all.par INPUTARCHIVE /path/to/LastRun_all.par ECHO /path/to/LastRun_echo.par FINAL /path/to/LastRun_end.par LOGFILE /path/to/LastRun_log.txt ERDFILE /path/to/LastRun.vs PROGDIR /opt/carsim_2020.0/lib64/ DATADIR . PRODUCT_ID CarSim PRODUCT_VER 2020.0 VEHICLE_CODE i_i SOFILE /opt/carsim_2020.0/lib64/libcarsim.so.2020.0 END ``` # Vehicle sizes Although CarSim lets you specify the dimensions of the vehicle to use in the simulation, there is currently no correlation between a CarSim vehicle and a CARLA vehicle. This means that the vehicles in both programmes will have different dimensions. The role of the CARLA vehicle is only to act as a placeholder during the simulation. There is no correlation between vehicle size in CARLA and CarSim. The CARLA vehicle is only a simulation placeholder. ## Run the simulation All that is needed when running the simulation is to enable CarSim when you spawn a vehicle. This can be done by passing the path to the `.sim` file to the following method of the Python API: ``` vehicle.enable_carsim(<path_to_ue4simfile.sim>) ``` All input controls sent to the vehicle will be forwarded to CarSim. CarSim will update the physics and send back the status of the vehicle (the transform) to the CARLA vehicle. Once the simulation has finished you can analyze all the data in CarSim as usual. This guide outlines what Chrono is, how to use it in CARLA, and the limitations involved in the integration. ## Project Chrono Project Chrono is an open-source, multi-physics simulation engine that provides highly realistic vehicle dynamics using a template-based approach. The integration in CARLA allows users to utilize Chrono templates to simulate vehicle dynamics while navigating a map. ## Using Chrono on CARLA To use the Chrono integration, you must first configure the server with a tag on startup and then use the PythonAPI to enable it on a spawned vehicle. Read on for more details. ### Configuring the server Chrono will only work if the CARLA server is compiled with the Chrono tag. In the build from source version of CARLA, run the following command to start the server: ``` make launch ARGS="--chrono" ``` ### Enabling Chrono physics Chrono physics is enabled using the ``` enable_chrono_physics ``` method available through the Actor class. As well as values for substeps and substep delta time, it requires three template files and a base path to locate those files: * `base_path` : Path of the directory which contains the template files. This is necessary to ensure that auxiliary files referenced from the template files have a common base path from which to search. * `vehicle_json` : Path of the vehicle template file relative to the `base_path` . * `tire_json` : Path of the tire template file relative to the `base_path` . * `powertrain_json` : Path of the powertrain template file relative to the `base_path` . Important Double-check your paths. Incorrect or missing paths can cause Unreal Engine to crash. There are a variety of example template files for different vehicles available in ``` Build/chrono-install/share/chrono/data/vehicle ``` . Read the Project Chrono documentation to find out more about their vehicle examples and how to create templates. See below for an example of how to enable Chrono physics: ``` # Spawn your vehicle vehicle = world.spawn_actor(bp, spawn_point) # Set the base path base_path = "/path/to/carla/Build/chrono-install/share/chrono/data/vehicle/" # Set the template files vehicle_json = "sedan/vehicle/Sedan_Vehicle.json" powertrain_json = "sedan/powertrain/Sedan_SimpleMapPowertrain.json" tire_json = "sedan/tire/Sedan_TMeasyTire.json" # Enable Chrono physics vehicle.enable_chrono_physics(5000, 0.002, vehicle_json, powertrain_json, tire_json, base_path) ``` You can try the Chrono physics integration using the example script ``` manual_control_chrono.py ``` found in `PythonAPI/examples` . After running the script, press `Ctrl + o` to enable Chrono. ### Limitations This integration does not support collisions. When a collision occurs, the vehicle will revert to CARLA default physics. RoadRunner is the recommended software to create large maps to be imported into CARLA. This guide outlines what RoadRunner is, things to consider when building the large map and how to export custom large maps ready for importing into CARLA. * Introduction to RoadRunner * Before you start * Build a large map in RoadRunner * Export a large map in RoadRunner * Next steps ## Introduction to RoadRunner RoadRunner is an interactive editor that lets you design 3D scenes for simulating and testing automated driving systems. It can be used to create road layouts and accompanying OpenDRIVE and geometry information. Find out more about RoadRunner here. RoadRunner is part of the MATLAB Campus-Wide Licenses, so many universities can provide unlimited academic access. Check if your university has access. Reach out to <EMAIL> for any questions or troubles regarding accessibility. There is also a trial version available. A license for RoadRunner is also available to everyone participating in the CARLA Leaderboard. Click here for more information. ## Before you start You will need to install RoadRunner. You can follow the installation guide at the Mathworks website. ## Build a large map in RoadRunner The specifics of how to build a large map in RoadRunner go beyond the scope of this guide, however, there are video tutorials available in the RoadRunner documentation. If you are building a large map with elevation, the recommended largest size of the map is 20km by 20km. Maps larger than this may cause RoadRunner to crash on export. ## Export a large map in RoadRunner Below is a basic guideline to export your custom large map from RoadRunner. . Make sure the full map is selected for export by clicking on the World settings tool and dragging the edges of the blue boundary box to encompass the full area you would like to export. when it's ready, click on Apply World Changes. When you are ready to export: 1. Export the `.fbx` : * In the main toolbar, select `File` -> `Export` -> `Firebox (.fbx)` 2. In the window that pops up: * Check the following options: * Split by Segmentation: Divides the mesh by semantic segmentation and imroves pedestrian navigation. * Power of Two Texture Dimensions: Improves performance. * Embed Textures: Ensures textures are embedded in the mesh. * Export to Tiles: Choose the size of the tiles. The maximum size that can be used by CARLA is 2000 x 2000. * Export Individual Tiles: Generates the individual tiles needed for streaming large maps in CARLA. 3. Export the `.xodr` : * In the main toolbar, select `File` -> `Export` -> `OpendDRIVE (.xodr)` Warning Make sure that the `.xodr` and the `.fbx` files have the same name. You are now ready to import your map into CARLA. See the Import a Large Map guide for more details. This feature allows users to ingest any OpenDRIVE file as a CARLA map out-of-the-box. In order to do so, the simulator will automatically generate a road mesh for actors to navigate through. This mode runs a full simulation using only an OpenDRIVE file, without the need of any additional geometries or assets. To this end, the simulator takes an OpenDRIVE file and procedurally creates a temporal 3D mesh to run the simulation with. The resulting mesh describes the road definition in a minimalistic manner. All the elements will correspond with the OpenDRIVE file, but besides that, there will be only void. In order to prevent vehicles from falling off the road, two measures have been taken. * Lanes are a bit wider at junctions, where the flow of vehicles is most complex. * Visible walls are created at the boundaries of the road, to act as a last safety measure. Traffic lights, stops and yields will be generated on the fly. Pedestrians will navigate over the sidewalks and crosswalks that appear in the map. All of these elements, and every detail on the road, are based on the OpenDRIVE file. As the standalone mode uses the `.xodr` directly, any issues in it will propagate to the simulation. This could be an issue especially at junctions, where many lanes are mixed. Important It is especially important to double check the OpenDRIVE file. Any issues in it will propagate when running the simulation. ## Run a standalone map Open an OpenDRIVE file is just a matter of calling ``` client.generate_opendrive_world() ``` through the API. This will generate the new map, and block the simulation until it is ready. The method needs for two parameters. * `opendrive` is the content of the OpenDRIVE file parsed as a string. * `parameters` is a carla.OpendriveGenerationParameters containing settings for the generation of the mesh. This argument is optional. * `vertex_distance` (default 2.0 meters) — Distance between the vertices of the mesh. The bigger, the distance, the more inaccurate the mesh will be. However, if the distance is too small, the resulting mesh will be too heavy to work with. * `max_road_length` (default 50.0 meters) — Maximum length of a portion of the mesh. The mesh is divide in portions to reduce rendering overhead. If a portion is not visible, UE will not render it. The smaller the portions, the more probably they are discarded. However, if the portions are too small, UE will have too many objects to manage, and performance will be affected too. * `wall_height` (default 1.0 meters) — Height of the additional walls created on the boundaries of the road. These prevent vehicles from falling to the void. * `additional_width` (default 0.6 meters, 0.3 on each side) — Small width increment applied to the junction lanes. This is a safety measure to prevent vehicles from falling. * `smooth_junctions` (default True) — If True, some information of the OpenDRIVE will be reinterpreted to smooth the final mesh at junctions. This is done to prevent some inaccuracies that may occur when various lanes meet. If set to False, the mesh will be generated exactly as described in the OpenDRIVE. * ``` enable_mesh_visibility ``` (default True) — If False, the mesh will not be rendered, which could save a lot of rendering work to the simulator. In order to easily test this feature, the `config.py` script in `PythonAPI/util/` has a new argument, `-x` or `--xodr-path` . This argument expects a string with the path to the `.xodr` file, such as `path/example.xodr` . If the mesh is generated with this script, the parameters used will always be the default ones. This feature can be tested with the new TownBig provided by CARLA. ``` python3 config.py -x opendrive/TownBig.xodr ``` Important client.generate_opendrive_world() uses content of the OpenDRIVE file parsed as string. On the contrary, `config.py` script needs the path to the `.xodr` file. Note If you experience the error ``` opendrive could not be correctly parsed ``` , ensure that there are write permissions on the ``` CarlaUE4/Content/Carla/Maps/OpenDrive/ ``` directory. This is required by the server to parse the `xodr` file correctly. ## Mesh generation The generation of the mesh is the key element of this mode. The feature can only be successful if the resulting mesh is smooth and fits its definition perfectly. For that reason, this step is constantly being improved. In the last iterations, junctions have been polished to avoid inaccuracies that occur, especially where uneven lanes joined. The parameter `smooth_junctions` prevents this kind of issue. Besides that, instead of creating the whole map as a unique mesh, different portions are created. By dividing the mesh, the simulator can avoid rendering portions that are not visible, and save up costs. Working smaller also allows to generate huge maps and contain issues that may occur on a small portion of the mesh. Regarding the current state of the mesh generation, some considerations should be taken into account. * Junction smoothing. The default smoothing prevents the issues at tilted junctions described above. However, it will modify the original mesh in the process. Set `smooth_junctions` to False to disable the smoothing if preferred. * Lateral slope. This feature is currently not integrated in CARLA. * Sidewalk height. This is currently hard-coded for all the sidewalks the same. Sidewalks must be higher than the road level for collisions to be detected, but RoadRunner does not export this value to the OpenDRIVE file. The height is hard-coded to guarantee collisions. That covers all there is to know so far, regarding the OpenDRIVE standalone mode. Take the chance and use any OpenDRIVE map to test it in CARLA. Doubts and suggestions in the forum. In order to run the co-simulation, two things are necessary. * Buy a license for PTV-Vissim simulator. It is necessary to acquire the Driving Simulator Interface add-on. * In the PTV-Vissim installation folder, look for a ``` DrivingSimulatorProxy.dll ``` . Move it to `C:\Windows\System32` . Everything related with this feature can be found in ``` Co-Simulation/PTV-Vissim ``` . CARLA provides some examples that contain networks for Town01, and Town03. To run a co-simulation, use the script ``` PTV-Vissim/run_synchronization.py ``` . This has one mandatory argument containing the PTV-Vissim network, and some other optional arguments. * `vissim_network` — The vissim network file. This can be an example or a self-created PTV-Vissim network. * `--carla-host` (default: 127.0.0.1) — IP of the carla host server. * `--carla-port` (default: 2000) TCP port to listen to. * `--vissim-version` (default: 2020) — PTV-Vissim version. * `--step-length` (default: 0.05s) — set fixed delta seconds for the simulation time-step. * `--simulator-vehicles` (default: 1) — number of vehicles that will be spawned in CARLA and passed to PTV-Vissim. ``` python3 run_synchronization.py examples/Town03/Town03.inpx ``` Warning To stop the co-simulation, press `Ctrl+C` in the terminal that run the script. Both simulations will run in synchrony. The actions or events happening in one simulator will propagate to the other. So far, the feature only includes vehicle movement, and spawning. The spawning is limited due to PTV-Vissim types.If a vehicle is spawned in CARLA, and the Vehicle Type in PTV-Vissim is set to `car` , it will spawn a car. No matter if it as a motorbike in CARLA. In the examples provided, the vehicle type is set to `car` . If a vehicle is spawned in PTV-Vissim, CARLA will use a vehicle of the same type. The dimensions and characteristics will be similar, but not exactly the same. ### Create a new network In order for a new PTV-Vissim network to run with CARLA, there are a few settings to be done. * Activate the driving simulator. Go to ``` Base Data/Network settings/Driving simulator ``` and enable the option. * Specify the vehicle and pedestrian types. These are the types that will be used in PTV-Vissim to sync with the spawnings done in CARLA. By default are empty. * Export the network as `.inpx` . Create the network, export it, and run the co-simulation with . Warning PTV-Vissim will crash if the pedestrian and vehicle types are left empty. That is all there is so far, regarding for the PTV-Vissim co-simulation with CARLA. CARLA integrates the C++ Library for Responsibility Sensitive Safety in the client library. This feature allows users to investigate behaviours of RSS without having to implement anything. CARLA will take care of providing the input, and applying the output to the AD systems on the fly. This feature is a work in progress. Right now, it is only available for the Linux build. The RSS library implements a mathematical model for safety assurance. It receives sensor information, and provides restrictions to the controllers of a vehicle. To sum up, the RSS module uses the sensor data to define situations. A situation describes the state of the ego vehicle with an element of the environment. For each situation, safety checks are made, and a proper response is calculated. The overall response is the result of all of the combined. For specific information on the library, read the documentation, especially the Background section. This is implemented in CARLA using two elements. * RssSensor is in charge of the situation analysis, and response generation using the ad-rss-lib. * RssRestrictor applies the response by restricting the commands of the vehicle. The following image sketches the integration of RSS into the CARLA architecture. 1. The server. * Sends a camera image to the client. (Only if the client needs visualization). * Provides the RssSensor with world data. * Sends a physics model of the vehicle to the RssRestrictor. (Only if the default values are overwritten). 2. The client. * Provides the RssSensor with some parameters to be considered. -Sends to the RssResrictor an initial carla.VehicleControl. 3. The RssSensor. * Uses the ad-rss-lib to extract situations, do safety checks, and generate a response. * Sends the RssRestrictor a response containing the proper response and aceleration restrictions to be applied. 4. The RssRestrictor * If the client asks for it, applies the response to the carla.VehicleControl, and returns the resulting one. ## Compilation The RSS integration has to be built aside from the rest of CARLA. The ad-rss-lib comes with an LGPL-2.1 open-source license that creates conflict. It has to be linked statically into libCarla. As a reminder, the feature is only available for the Linux build so far. ### Dependencies There are additional prerequisites required for building RSS and its dependencies. Take a look at the official documentation) to know more about this. Dependencies provided by Ubunutu (>= 16.04). ``` sudo apt-get install libgtest-dev libpython-dev libpugixml-dev libtbb-dev ``` The dependencies are built using colcon, so it has to be installed. ``` pip3 install --user -U colcon-common-extensions ``` There are some additional dependencies for the Python bindings. ``` sudo apt-get install castxml pip3 install --user pygccxml pyplusplus ``` ### Build Once this is done, the full set of dependencies and RSS components can be built. * Compile LibCarla to work with RSS. ``` make LibCarla.client.rss ``` * Compile the PythonAPI to include the RSS feature. `make PythonAPI.rss` * As an alternative, a package can be built directly. `make package.rss` ## Current state ### RssSensor carla.RssSensor supports ad-rss-lib v4.2.0 feature set completely, including intersections, stay on road support and unstructured constellations (e.g. with pedestrians). So far, the server provides the sensor with ground truth data of the surroundings that includes the state of other traffic participants and traffic lights. ### RssRestrictor When the client calls for it, the carla.RssRestrictor will modify the vehicle controller to best reach the desired accelerations or decelerations by a given response. Due to the stucture of carla.VehicleControl objects, the restrictions applied have certain limitations. These controllers include `throttle` , `brake` and `streering` values. However, due to car physics and the simple control options these might not be met. The restriction intervenes in lateral direction simply by counter steering towards the parallel lane direction. The brake will be activated if deceleration requested by RSS. This depends on vehicle mass and brake torques provided by the carla.Vehicle. Note In an automated vehicle controller it might be possible to adapt the planned trajectory to the restrictions. A fast control loop (>1KHz) can be used to ensure these are followed. That sets the basics regarding the RSS sensor in CARLA. Find out more about the specific attributes and parameters in the sensor reference. This is the documentation for the ROS bridge which enables two-way communication between ROS and CARLA. The information from the CARLA server is translated to ROS topics. In the same way, the messages sent between nodes in ROS get translated to commands to be applied in CARLA. The ROS bridge is compatible with both ROS 1 and ROS 2. The ROS bridge boasts the following features: * Provides sensor data for LIDAR, Semantic LIDAR, Cameras (depth, segmentation, rgb, dvs), GNSS, Radar and IMU. * Provides object data such as transforms, traffic light status, visualisation markers, collision and lane invasion. * Control of AD agents through steering, throttle and brake. * Control of aspects of the CARLA simulation like synchronous mode, playing and pausing the simulation and setting simulation parameters. ## Get started ## Learn about the main ROS bridge package * CARLA ROS bridge - The main package required to run the ROS bridge * ROS Compatiblity Node - The interface that allows the same API to call either ROS 1 or ROS 2 functions ## Learn about the additional ROS bridge packages * CARLA Spawn Objects - Provides a generic way to spawn actors * CARLA Manual Control- A ROS-based visualization and control tool for an ego vehicle (similar to ``` carla_manual_control.py ``` provided by CARLA) * CARLA Ackerman Control - A controller to convert ackermann commands to steer/throttle/brake * CARLA Waypoint Publisher - Publish and query CARLA waypoints * CARLA AD Agent - An example agent that follows a route, avoids collisions and respects traffic lights * CARLA AD Demo - An example package that provides everything needed to launch a CARLA ROS environment with an AD vehicle * CARLA ROS Scenario Runner - A wrapper to execute OpenScenarios with the CARLA Scenario Runner via ROS * CARLA Twist to Control - Convert twist controls to CARLA vehicle controls * RVIZ plugin - An RVIZ plugin to visualize/control CARLA * RQT Plugin - A RQT plugin to control CARLA * PCL Recorder - Create point cloud maps from data captured from simulations ## Explore the reference material * ROS Sensors - Reference topics available in the different sensors * ROS messages - Reference parameters available in CARLA ROS messages This guide provides an overview of how to use Scenic with CARLA to generate multiple, diverse scenarios with a single scenario definition. It assumes that users have prior knowledge of the Scenic syntax. If you need to learn more about Scenic, then read their "Getting Started with Scenic" guide and have a look at their tutorials for creating static and dynamic scenarios. By the end of the guide you will know: * The minimum requirements needed to run a Scenic script on CARLA. * How to write a simple scenario definition to generate a multitude of scenario simulations. * How to run a Scenic script on CARLA. * Parameters used to configure Scenic simulations on CARLA. * Before you begin * Scenic domains * Creating a Scenic scenario to use with CARLA * Run the scenario * Additional parameters Before using Scenic with CARLA, you will need to fulfill the following requirements: * Install Python 3.8 or higher. * Install Scenic. ## Scenic Domains Scenic has a general driving domain which allows users to define scenarios that can be run on any driving simulator. In addition, it has other domains that are specific to each simulator. Check here for more information on Scenic domains. Of particular importance within each domain are the behaviour and actions definitions. Check the links below for reference material to behaviours and actions from the Scenic driving domain and the CARLA domain: * Behaviours in the Scenic driving domain * Behaviours in the CARLA domain * Actions in the Scenic driving domain * Actions in the CARLA domain ## Creating a Scenic scenario to use with CARLA This section walks through how to write a basic Scenic script in which a leading vehicle decelerates suddenly due to an obstacle in the road. An ego vehicle then needs to brake suddenly to avoid a collison with the leading vehicle. The full script is found in the Scenic repository along with other examples involving more complex road networks. 1. Set the map parameters and declare the model to be used in the scenario: * An `.xodr` file should be set as the value for the `map` parameter, this will be used later to generate road network information. * The parameter `carla_map` refers to the name of the CARLA map you would like to use in the simulation. If this is defined then Scenic will load all the assets of the map (buildings, trees, etc.), and if not, then the OpenDRIVE standalone mode will be used. * The model includes all the utilities specific to running scenarios on CARLA. This should be defined in all the scripts you want to run on CARLA. ``` ## SET MAP AND MODEL param map = localPath('../../../tests/formats/opendrive/maps/CARLA/Town01.xodr') param carla_map = 'Town01' model scenic.simulators.carla.model ``` 2. Define the constants to be used in the scenario: The scenario involves two vehicles, the leading vehicle and the ego vehicle. We will define the ego vehicle model, the speeds of both cars, the distance threshold for braking and the amount of brake to apply. ``` ## CONSTANTS EGO_MODEL = "vehicle.lincoln.mkz_2017" EGO_SPEED = 10 EGO_BRAKING_THRESHOLD = 12 LEAD_CAR_SPEED = 10 LEADCAR_BRAKING_THRESHOLD = 10 BRAKE_ACTION = 1.0 ``` 3. Define the scenario behaviours: In this scenario we will use the Scenic behaviour library to instruct the ego vehicle to follow the lane at the predefined speed and then brake hard when it gets within a certain distance of another vehicle. The leading vehicle will also follow the lane at the predefined speed and brake hard within a certain distance of any objects: ``` ## DEFINING BEHAVIORS # EGO BEHAVIOR: Follow lane, and brake after passing a threshold distance to the leading car behavior EgoBehavior(speed=10): try: do FollowLaneBehavior(speed) interrupt when withinDistanceToAnyCars(self, EGO_BRAKING_THRESHOLD): take SetBrakeAction(BRAKE_ACTION) # LEAD CAR BEHAVIOR: Follow lane, and brake after passing a threshold distance to obstacle behavior LeadingCarBehavior(speed=10): try: do FollowLaneBehavior(speed) interrupt when withinDistanceToAnyObjs(self, LEADCAR_BRAKING_THRESHOLD): take SetBrakeAction(BRAKE_ACTION) ``` 4. Generate the road network: The Scenic roads library is used to generate the road network geometry and traffic information. The road network is represented by an instance of the `Network` class and is generated from the `.xodr` file defined at the beginning of the script. ``` ## DEFINING SPATIAL RELATIONS # make sure to put '*' to uniformly randomly select from all elements of the list, 'lanes' lane = Uniform(*network.lanes) ``` 5. Set the scene: We will now define the starting positions for the vehicles and placement of objects. * Place a trash can in the middle of the lane: ``` obstacle = Trash on lane.centerline ``` * Place the leading car driving at the predefined speed along the road at a distance of between 50 and 30 meters behind the obstacle: ``` leadCar = Car following roadDirection from obstacle for Range(-50, -30), with behavior LeadingCarBehavior(LEAD_CAR_SPEED) ``` * Place the ego vehicle driving at the predefined speed along the road at a distance of between 15 to 10 meters behind the leading vehicle: ``` ego = Car following roadDirection from leadCar for Range(-15, -10), with blueprint EGO_MODEL, with behavior EgoBehavior(EGO_SPEED) ``` * Make it a requirement that the scene takes place more than 80 meters from an intersection: ``` require (distance to intersection) > 80 ``` 6. Set an end point so the script knows when the scene is finished: The scenario will end when the speed of the ego vehicle goes below 0.1 meters per second and is situated less than 30 meters from the obstacle. ``` terminate when ego.speed < 0.1 and (distance to obstacle) < 30 ``` ### Run the scenario To run the Scenic scenario: 1. Start the CARLA server. 2. Run the following command: ``` scenic path/to/scenic/script.scenic --simulate ``` A pygame window will appear and the scenario will play out repeatedly, each time generating a unique scenario within the bounds of the restrictions set in the script. To stop the scenario generation, press `ctrl + C` in the terminal. ### Additional parameters The CARLA model provides several global parameters than can be overridden in scenarios using the `param` statement or via the command line using the `--param` option. Below is a table of configurable parameters in the CARLA model: Name | Value | Description | | --- | --- | --- | | | Name of the CARLA map to use (e.g. 'Town01'). If set to | | | Timestep to use for simulations (how frequently Scenic interrupts CARLA to run behaviors, check requirements, etc.) in seconds. Default is 0.1 seconds. | b"Name\n Value\n Description\n \n \n \n carla_map\n \n \n str\n \n Name of the CARLA map to use (e.g. 'Town01'). If set to None, CARLA will attempt to create a world in the OpenDRIVE standalone mode using the .xodr file defined in the map parameter.\n \n \n \n timestep\n \n \n float\n \n Timestep to use for simulations (how frequently Scenic interrupts CARLA to run behaviors, check requirements, etc.) in seconds. Default is 0.1 seconds.\n \n \n \n weather\n \n str or dict\n Weather to use for the simulation. Can be either a string identifying one of the CARLA weather presets (e.g. 'ClearSunset') or a dictionary specifying all the weather parameters). Default is a uniform distribution over all the weather presets.\n \n \n \n address\n \n \n str\n \n IP address to connect to CARLA. Default is localhost (127.0.0.1).\n \n \n \n port\n \n \n int\n \n Port to connect to CARLA. Default is 2000.\n \n \n \n timeout\n \n \n float\n \n Maximum time in seconds to wait when attempting to connect to CARLA. Default is 10.\n \n \n \n render\n \n \n int\n \n Whether or not to have CARLA create a window showing the simulations from the point of view of the ego object: 1 for yes, 0 for no. Default 1.\n \n \n \n record\n \n \n str\n \n If nonempty, folder in which to save CARLA record files for replaying simulations." * Requisites * Run a custom co-simulation * Spawn NPCs controlled by SUMO First and foremost, it is necessary to install SUMO to run the co-simulation. Building from source is recommended over a simple installation, as there are new features and fixes that will improve the co-simulation. Once that is done, set the SUMO environment variable. ``` echo "export SUMO_HOME=/usr/share/sumo" >> ~/.bashrc && source ~/.bashrc ``` SUMO is ready to run the co-simulations. There are some examples in for Town01, Town04, and Town05. These `.sumocfg` files describe the configuration of the simulation (e.g., net, routes, vehicle types...). Use one of these to test the co-simulation. The script has different options that are detailed below. For the time being, let's run a simple example for Town04. Run a CARLA simulation with Town04. ``` cd ~/carla ./CarlaUE4.sh cd PythonAPI/util python3 config.py --map Town04 ``` Then, run the SUMO co-simulation example. ``` cd ~/carla/Co-Simulation/Sumo python3 run_synchronization.py examples/Town04.sumocfg --sumo-gui ``` ### Create carla vtypes With the script ``` Co-Simulation/Sumo/util/create_sumo_vtypes.py ``` the user can create sumo vtypes, the equivalent to CARLA blueprints, based on the CARLA blueprint library. * `--carla-host` (default: 127.0.0.1) — IP of the carla host server. * `--carla-port` (default: 2000) — TCP port to listen to. * `--output-file` (default: carlavtypes.rou.xml) — The generated file containing the vtypes. This script uses the information stored in `data/vtypes.json` to create the SUMO vtypes. These can be modified by editing said file. Warning A CARLA simulation must be running to execute the script. ### Create the SUMO net The recommended way to create a SUMO net that synchronizes with CARLA is using the script ``` Co-Simulation/Sumo/util/netconvert_carla.py ``` . This will draw on the netconvert tool provided by SUMO. In order to run the script, some arguments are needed. * `xodr_file` — OpenDRIVE file `.xodr` . * `--output'` (default: `net.net.xml` ) — output file `.net.xml` . * `--guess-tls` (default:false) — SUMO can set traffic lights only for specific lanes in a road, but CARLA can't. If set to True, SUMO will not differenciate traffic lights for specific lanes, and these will be in sync with CARLA. The output of the script will be a `.net.xml` that can be edited using NETEDIT. Use it to edit the routes, add demand, and eventually, prepare a simulation that can be saved as `.sumocfg` . The examples provided may be helpful during this process. Take a look at . For every `example.sumocfg` there are several related files under the same name. All of them comprise a co-simulation example. ### Run the synchronization Once a simulation is ready and saved as a `.sumocfg` , it is ready to run. There are some optional parameters to change the settings of the co-simulation. * `sumo_cfg_file` — The SUMO configuration file. * `--carla-host` (default: 127.0.0.1) — IP of the carla host server * `--carla-port` (default: 2000) — TCP port to listen to * `--sumo-host` (default: 127.0.0.1) — IP of the SUMO host server. * `--sumo-port` (default: 8813) — TCP port to listen to. * `--sumo-gui` — Open a window to visualize the gui version of SUMO. * `--step-length` (default: 0.05s) — Set fixed delta seconds for the simulation time-step. * (default: False) — Synchronize vehicle lights. * `--sync-vehicle-color` (default: False) — Synchronize vehicle color. * `--sync-vehicle-all` (default: False) — Synchronize all vehicle properties. * `--tls-manager` (default: none) — Choose which simulator should manage the traffic lights. The other will update those accordingly. The options are `carla` , `sumo` , and `none` . If `none` is chosen, traffic lights will not be synchronized. Each vehicle would only obey the traffic lights in the simulator that spawn it. ``` python3 run_synchronization.py <SUMOCFG FILE> --tls-manager carla --sumo-gui ``` Warning To stop the co-simulation, press `Ctrl+C` in the terminal that run the script. ## Spawn NPCs controlled by SUMO The co-simulation with SUMO makes for an additional feature. Vehicles can be spawned in CARLA through SUMO, and managed by the later as the Traffi Manager would do. The script `spawn_npc_sumo.py` is almost equivalent to the already-known `generate_traffic.py` . This script automatically generates a SUMO network in a temporal folder, based on the active town in CARLA. The script will create random routes and let the vehicles roam around. As the script runs a synchronous simulation, and spawns vehicles in it, the arguments are the same that appear in and `generate_traffic.py` . * `--host` (default: 127.0.0.1) — IP of the host server. * `--port` (default: 2000) — TCP port to listen to. * ``` -n,--number-of-vehicles ``` (default: 10) — Number of vehicles spawned. * `--safe` — Avoid spawning vehicles prone to accidents. * `--filterv` (default: "vehicle.")* — Filter the blueprint of the vehicles spawned. * `--sumo-gui` — Open a window to visualize SUMO. * `--step-length` (default: 0.05s) — Set fixed delta seconds for the simulation time-step. * (default: False) — Synchronize vehicle lights state. * `--sync-vehicle-color` (default: False) — Synchronize vehicle color. * `--sync-vehicle-all` (default: False) — Synchronize all vehicle properties. * `--tls-manager` (default: none) — Choose which simulator will change the traffic lights' state. The other will update them accordingly. If `none` , traffic lights will not be synchronized. ``` # Spawn 10 vehicles, that will be managed by SUMO instead of Traffic Manager. # CARLA in charge of traffic lights. # Open a window for SUMO visualization. python3 spawn_sumo_npc.py -n 10 --tls-manager carla --sumo-gui ``` That is all there is so far, regarding for the SUMO co-simulation with CARLA. The CARLA team is glad to accept contributions from anybody willing to collaborate. There are different ways to contribute to the project, depending on the capabilities of the contributor. The team will work as much as possible so that contributions are successfully integrated in CARLA. Take a look and don't hesitate! * Report bugs * Request features * Code contributions * Art contributions * Docs contributions ## Report bugs Issues can be reported in the issue section on GitHub. Before reporting a new bug, make sure to do some checkups. 1. Check if the bug has been reported. Look it up in that same issue section on GitHub. 2. Read the docs. Make sure that the issue is a bug, not a misunderstanding on how is CARLA supposed to work. Read the pages related to the issue in the Documentation and take a look at the FAQ page. ## Request features Ideas for new features are also a great way to contribute. Any suggestion that could improve the users' experience can be submitted in the corresponding GitHub section here. ## Code contributions Before starting hands-on on coding, please check out the issue board to check what is the team already working on, to avoid overlapping. In case of doubt or to discuss how to proceed, please contact one of us (or send an email to <EMAIL>). In order to start working, fork the CARLA repository, and clone said fork in your computer. Remember to keep your fork in sync with the original repository. ### Learn about Unreal Engine A basic introduction to C++ programming with UE4 can be found at Unreal's C++ Programming Tutorials. There are other options online, some of them not free of charge. The Unreal C++ Course at Udemy it's pretty complete and there are usually offers that make it very affordable. ### Before getting started Check out the CARLA Design document to get an idea on the different modules that compose CARLA. Choose the most appropriate one to hold the new feature. Feel free to contact the team in the Discord server in case any doubt arises during the process. ### Coding standard Follow the current coding standard when submitting new code. ### Submission Contributions and new features are not merged directly to the `master` branch, but to an intermediate branch named `dev` . This Gitflow branching model makes it easier to maintain a stable master branch. This model requires a specific workflow for contributions. * Always keep your `dev` branch updated with the lastest changes. * Develop the contribution in child branch from `dev` named as ``` username/name_of_the_contribution ``` . * Once the contribution is ready, submit a pull-request from your branch to `dev` . Try to be as descriptive as possible when filling the description. Note that there are some checks that the new code is required to pass before merging. The checks are automatically run by the continuous integration system. A green tick mark will appear if the checks are successful. If a red mark, please correct the code accordingly. Once the contribution is merged in `dev` , it can be tested with the rest of new features. By the time of the next release, the `dev` branch will be merged to `master` , and the contribution will be available and announced. ### Checklist * [ ] Your branch is up-to-date with the `dev` branch and tested with latest changes. * [ ] Extended the README/documentation, if necessary. * [ ] Code compiles correctly. * [ ] All tests passing with `make check` . ## Art contributions Art contributions include vehicles, walkers, maps or any other type of assets to be used in CARLA. These are stored in a BitBucket repository, which has some account space limitations. For said reason, the contributor will have to get in touch with the CARLA team, and ask them to create a branch on the content repository for the contributions. 1. Create a BitBucket account. Visit the Bitbucket page. 2. Contact the art team to get access to the content repository. Join the Discord server. Go to the Contributors channel and request for access to the content repostory. 3. A branch will be created for each contributor. The branch will be named as ``` contributors/contributor_name ``` . All the contributions made by said user should be made in that corresponding branch. 4. Build CARLA. In order to contribute, a CARLA build is necessary. Follow the instructions to build either in Linux or Windows. 5. Download the content repository. Follow the instructions to update the content in here. 6. Update the branch to be in sync with master. The branch should always be updated with the latest changes in master. 7. Upload the contribution. Do the corresponding changes and push the branch to origin. 8. Wait for the art team to check it up. Once the contribution is uploaded, the team will check that everything is prepared to be merged with master. ## Docs contributions If some documentation is missing, vague or imprecise, it can be reported as with any other bug (read the previous section on how to report bugs). However, users can contribute by writing documentation. The documentation is written with a mix of Markdown and HTML tags, with a some extra CSS code for features such as tables or the town slider. Follow the steps below to start writing documentation. Important To submit docs contributions, follow the same workflow explained right above in code contributions. To sum up, contributions are made in a child branch from `dev` and merged to said branch. 1. Build CARLA from source. Follow the steps in the docs to build on Linux or Windows. 2. Install MkDocs. MkDocs is a static site generator used to build documentation. ``` sudo pip install mkdocs ``` 3. Visualize the docs. In the main CARLA folder, run the following command and click the link that appears in the terminal (http://127.0.0.1:8000) to open a local visualization of the documentation. `mkdocs serve` 4. Create a git branch. Make sure to be in the `dev` branch (updated to latest changes) when creating a new one. ``` git checkout -b <contributor_name>/<branch_name> ``` 5. Write the docs. Edit the files following the guidelines in the documentation standard page. 6. Submit the changes. Create a pull request in the GitHub repository, and add one of the suggested reviewers. Try to be as descriptive as possible when filling the pull-request description. 7. Wait for review. The team will check if everything is ready to be merged or any changes are needed. Warning The local repository must be updated with the latest updates in the `dev` branch. b"Coding standard\n General\n \n Use spaces, not tabs.\n Avoid adding trailing whitespace as it creates noise in the diffs.\n \n Python\n \n Comments should not exceed 80 columns, code should not exceed 120 columns.\n All code must be compatible with Python 2.7 and 3.7.\n Pylint should not give any error or warning (few exceptions apply with external classes like numpy and pygame, see our .pylintrc).\n Python code follows PEP8 style guide (use autopep8 whenever\n possible).\n \n C++\n \n Comments should not exceed 80 columns, code may exceed this limit a bit in rare occasions if it results in clearer code.\n Compilation should not give any error or warning (clang++-8 -Wall -Wextra -std=C++14 -Wno-missing-braces).\n The use of throw is forbidden, use carla::throw_exception instead.\n Unreal C++ code (CarlaUE4 and Carla plugin) follow the Unreal Engine's Coding Standard with the exception of using spaces instead of tabs.\n LibCarla uses a variation of Google's style guide.\n Uses of try-catch blocks should be surrounded by\n #ifndef LIBCARLA_NO_EXCEPTIONS if the code is used in the server-side." b"Coding standard\n General\n \n Use spaces, not tabs.\n Avoid adding trailing whitespace as it creates noise in the diffs.\n \n Python\n \n Comments should not exceed 80 columns, code should not exceed 120 columns.\n All code must be compatible with Python 2.7 and 3.7.\n Pylint should not give any error or warning (few exceptions apply with external classes like numpy and pygame, see our .pylintrc).\n Python code follows PEP8 style guide (use autopep8 whenever\n possible).\n \n C++\n \n Comments should not exceed 80 columns, code may exceed this limit a bit in rare occasions if it results in clearer code.\n Compilation should not give any error or warning (clang++-8 -Wall -Wextra -std=C++14 -Wno-missing-braces).\n The use of throw is forbidden, use carla::throw_exception instead.\n Unreal C++ code (CarlaUE4 and Carla plugin) follow the Unreal Engine's Coding Standard with the exception of using spaces instead of tabs.\n LibCarla uses a variation of Google's style guide.\n Uses of try-catch blocks should be surrounded by\n #ifndef LIBCARLA_NO_EXCEPTIONS if the code is used in the server-side." b"Coding standard\n General\n \n Use spaces, not tabs.\n Avoid adding trailing whitespace as it creates noise in the diffs.\n \n Python\n \n Comments should not exceed 80 columns, code should not exceed 120 columns.\n All code must be compatible with Python 2.7 and 3.7.\n Pylint should not give any error or warning (few exceptions apply with external classes like numpy and pygame, see our .pylintrc).\n Python code follows PEP8 style guide (use autopep8 whenever\n possible).\n \n C++\n \n Comments should not exceed 80 columns, code may exceed this limit a bit in rare occasions if it results in clearer code.\n Compilation should not give any error or warning (clang++-8 -Wall -Wextra -std=C++14 -Wno-missing-braces).\n The use of throw is forbidden, use carla::throw_exception instead.\n Unreal C++ code (CarlaUE4 and Carla plugin) follow the Unreal Engine's Coding Standard with the exception of using spaces instead of tabs.\n LibCarla uses a variation of Google's style guide.\n Uses of try-catch blocks should be surrounded by\n #ifndef LIBCARLA_NO_EXCEPTIONS if the code is used in the server-side." b"Coding standard\n General\n \n Use spaces, not tabs.\n Avoid adding trailing whitespace as it creates noise in the diffs.\n \n Python\n \n Comments should not exceed 80 columns, code should not exceed 120 columns.\n All code must be compatible with Python 2.7 and 3.7.\n Pylint should not give any error or warning (few exceptions apply with external classes like numpy and pygame, see our .pylintrc).\n Python code follows PEP8 style guide (use autopep8 whenever\n possible).\n \n C++\n \n Comments should not exceed 80 columns, code may exceed this limit a bit in rare occasions if it results in clearer code.\n Compilation should not give any error or warning (clang++-8 -Wall -Wextra -std=C++14 -Wno-missing-braces).\n The use of throw is forbidden, use carla::throw_exception instead.\n Unreal C++ code (CarlaUE4 and Carla plugin) follow the Unreal Engine's Coding Standard with the exception of using spaces instead of tabs.\n LibCarla uses a variation of Google's style guide.\n Uses of try-catch blocks should be surrounded by\n #ifndef LIBCARLA_NO_EXCEPTIONS if the code is used in the server-side." * Use spaces, not tabs. * Avoid adding trailing whitespace as it creates noise in the diffs. ## Python * Comments should not exceed 80 columns, code should not exceed 120 columns. * All code must be compatible with Python 2.7 and 3.7. * Pylint should not give any error or warning (few exceptions apply with external classes like `numpy` and `pygame` , see our `.pylintrc` ). * Python code follows PEP8 style guide (use `autopep8` whenever possible). ## C++ * Comments should not exceed 80 columns, code may exceed this limit a bit in rare occasions if it results in clearer code. * Compilation should not give any error or warning ( ``` clang++-8 -Wall -Wextra -std=C++14 -Wno-missing-braces ``` ). * The use of `throw` is forbidden, use ``` carla::throw_exception ``` instead. * Unreal C++ code (CarlaUE4 and Carla plugin) follow the Unreal Engine's Coding Standard with the exception of using spaces instead of tabs. * LibCarla uses a variation of Google's style guide. * Uses of `try-catch` blocks should be surrounded by ``` #ifndef LIBCARLA_NO_EXCEPTIONS ``` if the code is used in the server-side. This document will serve as a guide and example of some rules that need to be followed in order to contribute to the documentation. ## Docs structure We use a mix of markdown and HTML tags to customize the documentation along with an `extra.css` file. To update Python API docs, instead of directly modifying the Markdown you need to edit the corresponding YAML files inside ``` carla/PythonAPI/docs/ ``` and run `doc_gen.py` or `make PythonAPI.docs` . This will re-generate the respective Markdown files inside `carla/Docs/` , which can then be fed into `mkdocs` . ## Rules * Leave always an empty line between sections and at the end of the document. * Writting should not exceed `100` columns, except for HTML related content, markdown tables, code snipets and referenced links. * If an inline link exceeds the limit, use referenced ``` [name][reference_link] ``` markdown notation ``` [reference_link]: https:// ``` rather than `[name](https://)` . * Use `<br>` to make inline jumps rather than leaving two spaces at the end of a line. * Use `<h1>Title</h1>` at the beggining of a new page in order to make a Title or `<hx>Heading<hx>` to make a heading that won't show on the navigation bar. * Use `------` underlining a Heading or `#` hierarchy to make headings and show them in the navigation bar. ## Exceptions * Documentation generated via Python scripts like PythonAPI reference Handy markdown cheatsheet.
classmap
cran
R
Package ‘classmap’ April 23, 2023 Type Package Title Visualizing Classification Results Date 2023-04-23 Version 1.2.3 Author <NAME> [aut, cre], <NAME> [aut] Depends R (>= 4.1.0) Suggests knitr, reshape2, svd, rpart.plot, nnet, robCompositions Imports stats, graphics, ggplot2, robustbase, e1071, cellWise, cluster, kernlab, gridExtra, rpart, randomForest Maintainer <NAME> <<EMAIL>> Description Tools to visualize the results of a classification of cases. The graphical displays include stacked plots, silhouette plots, quasi residual plots, and class maps. Implements the techniques described and illustrated in Raymaekers, Rousseeuw and Hu- bert (2021), Class maps for visualizing classification results, Technometrics, appeared online. <doi:10.1080/00401706.2021.1927849> (open access) and Raymaekers and Rousseeuw (2021), Silhouettes and quasi residual plots for neural nets and tree-based classifiers, <arXiv:2106.08814>. Examples can be found in the vignettes: ``Discriminant_analysis_examples'',``K_nearest_neighbors_examples'', ``Support_vector_machine_examples'', ``Rpart_examples'', ``Random_forest_examples'', and ``Neural_net_examples''. URL https://doi.org/10.1080/00401706.2021.1927849, https://arxiv.org/abs/2106.08814 License GPL (>= 2) Encoding UTF-8 LazyData true VignetteBuilder knitr RoxygenNote 7.1.2 NeedsCompilation no Repository CRAN Date/Publication 2023-04-23 15:30:02 UTC R topics documented: classma... 2 confmat.vc... 4 data_bookReview... 6 data_floralbud... 7 data_instagra... 8 data_titani... 9 makeF... 10 makeKerne... 12 qresplo... 13 silplo... 15 stackedplo... 17 vcr.da.newdat... 18 vcr.da.trai... 20 vcr.forest.newdat... 22 vcr.forest.trai... 24 vcr.knn.newdat... 26 vcr.knn.trai... 28 vcr.neural.newdat... 30 vcr.neural.trai... 31 vcr.rpart.newdat... 33 vcr.rpart.trai... 34 vcr.svm.newdat... 37 vcr.svm.trai... 38 classmap Draw the class map to visualize classification results. Description Draw the class map to visualize classification results, based on the output of one of the vcr.*.* functions in this package. The vertical axis of the class map shows each case’s PAC, the condi- tional probability that it belongs to an alternative class. The farness on the horizontal axis is the probability of a member of the given class being at most as far from the class as the case itself. Usage classmap(vcrout, whichclass, classLabels = NULL, classCols = NULL, main = NULL, cutoff = 0.99, plotcutoff = TRUE, identify = FALSE, cex = 1, cex.main = 1.2, cex.lab = NULL, cex.axis = NULL, opacity = 1, squareplot = TRUE, maxprob = NULL, maxfactor = NULL) Arguments vcrout output of vcr.*.train or vcr.*.newdata. Required. whichclass the number or level of the class to be displayed. Required. classLabels the labels (levels) of the classes. If NULL, they are taken from vcrout. classCols a list of colors for the class labels. There should be at least as many as there are levels. If NULL the classCols are taken as 2, 3, 4, ... main title for the plot. cutoff cases with overall farness vcrout$ofarness > cutoff are flagged as outliers. plotcutoff If true, plots the cutoff on the farness values as a vertical line. identify if TRUE, left-click on a point to get its number, then ESC to exit. cex passed on to graphics::plot. cex.main same, for title. cex.lab same, for labels on horizontal and vertical axes. cex.axis same, for axes. opacity determines opacity of plotted dots. Value between 0 and 1, where 0 is transpar- ent and 1 is opaque. squareplot If TRUE, makes the axes of the plot equally long. maxprob draws the farness axis at least upto probability maxprob. If NULL, the limits are obtained automatically. maxfactor if not NULL, a number slightly higher than 1 to increase the space at the right hand side of the plot, to make room for marking points. Value Executing the function plots the class map and returns coordinates a matrix with 2 columns containing the coordinates of the plotted points. The first coordinate is the quantile of the farness probability. This makes it eas- ier to add text next to interesting points. If identify = T, the attribute ids of coordinates contains the row numbers of the identified points in the matrix coordinates. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) See Also vcr.da.train, vcr.da.newdata, vcr.knn.train, vcr.knn.newdata, vcr.svm.train, vcr.svm.newdata, vcr.rpart.train, vcr.rpart.newdata, vcr.forest.train, vcr.forest.newdata, vcr.neural.train, vcr.neural.newdata Examples vcrout <- vcr.da.train(iris[, 1:4], iris[, 5]) classmap(vcrout, "setosa", classCols = 2:4) # tight class classmap(vcrout, "versicolor", classCols = 2:4) # less tight # The cases misclassified as virginica are shown in blue. classmap(vcrout, "virginica", classCols = 2:4) # The case misclassified as versicolor is shown in green. # For more examples, we refer to the vignettes: ## Not run: vignette("Discriminant_analysis_examples") vignette("K_nearest_neighbors_examples") vignette("Support_vector_machine_examples") vignette("Rpart_examples") vignette("Random_forest_examples") vignette("Neural_net_examples") ## End(Not run) confmat.vcr Build a confusion matrix from the output of a function vcr.*.*. Description Build a confusion matrix from the output of a function vcr.*.*. Optionally, a separate column for outliers can be added to the confusion matrix. Usage confmat.vcr(vcrout, cutoff = 0.99, showClassNumbers = FALSE, showOutliers = TRUE, silent = FALSE) Arguments vcrout output of vcr.*.train or vcr.*.newdata. cutoff cases with overall farness vcrout$ofarness > cutoff are flagged as outliers. showClassNumbers if TRUE, the row and column names are the number of each level instead of the level itself. Useful for long level names. showOutliers if TRUE and some points were flagged as outliers, it adds an extra column on the right of the confusion matrix for these outliers, with label "outl". silent if FALSE, the confusion matrix and accuracy are shown on the screen. Value A confusion matrix Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also vcr.da.train, vcr.da.newdata, vcr.knn.train, vcr.knn.newdata, vcr.svm.train, vcr.svm.newdata, vcr.rpart.train, vcr.rpart.newdata, vcr.forest.train, vcr.forest.newdata, vcr.neural.train, vcr.neural.newdata Examples vcrout <- vcr.knn.train(scale(iris[, 1:4]), iris[, 5], k = 5) # The usual confusion matrix: confmat.vcr(vcrout, showOutliers = FALSE) # Cases with ofarness > cutoff are flagged as outliers: confmat.vcr(vcrout, cutoff = 0.98) # With the default cutoff = 0.99 only one case is flagged here: confmat.vcr(vcrout) # Note that the accuracy is computed before any cases # are flagged, so it does not depend on the cutoff. confmat.vcr(vcrout, showClassNumbers = TRUE) # Shows class numbers instead of labels. This option can # be useful for long level names. # For more examples, we refer to the vignettes: ## Not run: vignette("Discriminant_analysis_examples") vignette("K_nearest_neighbors_examples") vignette("Support_vector_machine_examples") vignette("Rpart_examples") vignette("Random_forest_examples") vignette("Neural_net_examples") ## End(Not run) data_bookReviews Amazon book reviews data Description This is a subset of the data used in the paper, which was assembled by Prettenhofer and Stein (2010). It contains 1000 reviews of books on Amazon, of which 500 were selected from the original training data and 500 from the test data. The full dataset has been used for a variety of things, including classification using svm. The subset was chosen small enough to keep the computation time low, while still containing the examples in the paper. Usage data("data_bookReviews") Format A data frame with 1000 observations on the following 2 variables. review the review in text format (character) sentiment factor indicating the sentiment of the review: negative (1) or positive (2) Source <NAME>., <NAME>. (2010). Cross-language text classification using structural correspondence learning. Proceedings of the 48th annual meeting of the association for computational linguistics, 1118-1127. Examples data(data_bookReviews) # Example review: data_bookReviews[5, 1] # The data are used in: ## Not run: vignette("Support_vector_machine_examples") ## End(Not run) data_floralbuds Floral buds data Description This data on floral pear bud detection was first described by Wouters et al. The goal is to classify the instances into buds, branches, scales and support. The numeric vectors resulted from a multispectral vision sensor and describe the scanned images. Usage data("data_floralbuds") Format A data frame with 550 observations on the following 7 variables. X1 numeric vector X2 numeric vector X3 numeric vector X4 numeric vector X5 numeric vector X6 numeric vector y a factor with levels branch bud scales support Source <NAME>., <NAME>., <NAME>. <NAME>., <NAME>. (2015). Multispectral detection of floral buds for automated thinning of pear. Comput. Electron. Agric. 113, C, 93–103. <doi:10.1016/j.compag.2015.01.015> Examples data("data_floralbuds") str(data_floralbuds) summary(data_floralbuds) # The data are used in: ## Not run: vignette("Discriminant_analysis_examples") vignette("Neural_net_examples") ## End(Not run) data_instagram Instagram data Description This dataset contains information on fake (spam) accounts on Instagram. The original source is https://www.kaggle.com/free4ever1/instagram-fake-spammer-genuine-accounts by <NAME>- deh. The data contains information on 696 Instagram accounts. For each account, 11 variables were recorded describing its characteristics. The goal is to detect fake instagram accounts, which are used for spamming. Usage data("data_instagram") Format A data frame with 696 observations on the following variables. profile.pic binary, indicates whether profile has picture. nums.length.username ratio of number of numerical chars in username to its length. fullname.words number of words in full name. nums.length.fullname ratio of number of numerical characters in full name to its length. name..username binary, indicates whether the name and username of the profile are the same. description.length length of the description/biography of the profile (in number of characters). external.URL binary, indicates whether profile has external url. private binary, indicates whether profile is private or not. X.posts number of posts made by profile. X.followers number of followers. X.follows numbers of follows. y whether profile is fake or not. dataType vector taking the values “train” or “test” indicating whether the observation belongs to the training or the test data. Source https://www.kaggle.com/free4ever1/instagram-fake-spammer-genuine-accounts Examples data(data_instagram) str(data_instagram) # The data are used in: ## Not run: vignette("Random_forest_examples") ## End(Not run) data_titanic Titanic data Description This dataset contains information on 1309 passengers of the RMS Titanic. The goal is to predict survival based on 11 characteristics such as the travel class, age and sex of the passengers. The original data source is https://www.kaggle.com/c/titanic/data The data is split up in a training data consisting of 891 observations and a test data of 418 observa- tions. The response in the test set was obtained by combining information from other data files, and has been verified by submitting it as a ‘prediction’ to kaggle and getting perfect marks. Usage data("data_titanic") Format A data frame with 1309 observations on the following variables. PassengerId a unique identified for each passenger. Pclass travel class of the passenger. Name name of the passenger. Sex sex of the passenger. Age age of the passenger. SibSp number of siblings and spouses traveling with the passenger. Parch number of parents and children traveling with the passenger. Ticket Ticket number of the passenger. Fare fare paid for the ticket. Cabin cabin number of the passenger. Embarked Port of embarkation. Takes the values C (Cherbourg), Q (Queenstown) and S (Southamp- ton). y factor indicating casualty or survivor. dataType vector taking the values “train” or “test” indicating whether the observation belongs to the training or the test data. Source https://www.kaggle.com/c/titanic/data Examples data("data_titanic") traindata <- data_titanic[which(data_titanic$dataType == "train"), -13] testdata <- data_titanic[which(data_titanic$dataType == "test"), -13] str(traindata) table(traindata$y) # The data are used in: ## Not run: vignette("Rpart_examples") ## End(Not run) makeFV Constructs feature vectors from a kernel matrix. Description Constructs feature vectors from a kernel matrix. Usage makeFV(kmat, transfmat = NULL, precS = 1e-12) Arguments kmat a kernel matrix. If transfmat is NULL, we are dealing with training data and then kmat must be a square kernel matrix (of size n by n when there are n cases). Such a PSD matrix kmat can e.g. be produced by makeKernel or by kernlab::kernelMatrix. If on the other hand transfmat is not NULL, we are dealing with a test set. See details for the precise working. transfmat transformation matrix. If not NULL, it is the value transfmat of makeFV on training data. It has to be a square matrix, with as many rows as there were training data. precS if not NULL, eigenvalues of kmat below precS will be set equal to precS. Details If transfmat is non-NULL, we are dealing with a test set. Denote the number of cases in the test set by m ≥ 1. Each row of kmat of the test set then must contain the kernel values of a new case with all cases in the training set. Therefore the kernel matrix kmat must have dimensions m by n. The matrix kmat can e.g. be produced by makeKernel. It can also be obtained by running kernlab::kernelMatrix on the union of the training set and the test set, yielding an (n + m) by (n + m) matrix, from which one then takes the [(n + 1) : m, 1 : n] submatrix. Value A list with components: Xf When makeKV is applied to the training set, Xf has coordinates of n points (vec- tors), the plain inner products of which equal the kernel matrix of the training set. That is, kmat = Xf Xf’. The Xf are expressed in an orthogonal basis in which the variance of the coordinates is decreasing, which is useful when plotting the first few coordinates. When makeFV is applied to a test set, Xf are coordinates of the feature vectors of the test set in the same space as those of the training set, and then kmat = Xf %*% Xf of training data. transfmat square matrix for transforming kmat to Xf. Author(s) <NAME>., <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also makeKernel Examples library(e1071) set.seed(1); X <- matrix(rnorm(200 * 2), ncol = 2) X[1:100, ] <- X[1:100, ] + 2 X[101:150, ] <- X[101:150, ] - 2 y <- as.factor(c(rep("blue", 150), rep("red", 50))) cols <- c("deepskyblue3", "red") plot(X, col = cols[as.numeric(y)], pch = 19) # We now fit an SVM with radial basis kernel to the data: svmfit <- svm(y~., data = data.frame(X = X, y = y), scale = FALSE, kernel = "radial", cost = 10, gamma = 1, probability = TRUE) Kxx <- makeKernel(X, svfit = svmfit) outFV <- makeFV(Kxx) Xf <- outFV$Xf # The data matrix in this feature space. dim(Xf) # The feature vectors are high dimensional. # The inner products of Xf match the kernel matrix: max(abs(as.vector(Kxx - crossprod(t(Xf), t(Xf))))) # 3.005374e-13 # tiny, OK range(rowSums(Xf^2)) # all points in Xf lie on the unit sphere. pairs(Xf[, 1:5], col = cols[as.numeric(y)]) # In some of these we see spherical effects, e.g. plot(Xf[, 1], Xf[, 5], col = cols[as.numeric(y)], pch = 19) # The data look more separable here than in the original # two-dimensional space. # For more examples, we refer to the vignette: ## Not run: vignette("Support_vector_machine_examples") ## End(Not run) makeKernel Compute kernel matrix Description Computes kernel value or kernel matrix, where the kernel type is extracted from an svm trained by e1071::svm. Usage makeKernel(X1, X2 = NULL, svfit) Arguments X1 first matrix (or vector) of coordinates. X2 if not NULL, second data matrix or vector. If NULL, X2 is assumed equal to X1. svfit output from e1071::svm. Value the kernel matrix, of dimensions nrow(X1) by nrow(X2). When both X1 and X2 are vectors, the result is a single number. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also makeFV Examples library(e1071) set.seed(1); X <- matrix(rnorm(200 * 2), ncol = 2) X[1:100, ] <- X[1:100, ] + 2 X[101:150, ] <- X[101:150, ] - 2 y <- as.factor(c(rep("blue", 150), rep("red", 50))) # two classes # We now fit an SVM with radial basis kernel to the data: set.seed(1) # to make the result of svm() reproducible. svmfit <- svm(y~., data = data.frame(X = X, y = y), scale = FALSE, kernel = "radial", cost = 10, gamma = 1, probability = TRUE) Kxx <- makeKernel(X, svfit = svmfit) # The result is a square kernel matrix: dim(Kxx) # 200 200 Kxx[1:5, 1:5] # For more examples, we refer to the vignette: ## Not run: vignette("Support_vector_machine_examples") ## End(Not run) qresplot Draw a quasi residual plot of PAC versus a data feature Description Draw a quasi residual plot to visualize classification results. The vertical axis of the quasi residual plot shows each case’s probability of alternative class (PAC). The horizontal axis shows the feature given as the second argument in the function call. Usage qresplot(PAC, feat, xlab = NULL, xlim = NULL, main = NULL, identify = FALSE, gray = TRUE, opacity = 1, squareplot = FALSE, plotLoess = FALSE, plotErrorBars = FALSE, plotQuantiles = FALSE, grid = NULL, probs = c(0.5, 0.75), cols = NULL, fac = 1, cex = 1, cex.main = 1.2, cex.lab = 1, cex.axis = 1, pch = 19) Arguments PAC vector with the PAC values of a classification, typically the $PAC in the return of a call to a function vcr.*.* feat the PAC will be plotted versus this data feature. Note that feat does not have to be one of the explanatory variables of the model. It can be another variable, a combination of variables (like a sum or a principal component score), the row number of the cases if they were recorded succesively, etc. xlab label for the horizontal axis, i.e. the name of variable feat. xlim limits for the horizontal axis. If NULL, the range of feat is used. main title for the plot. identify if TRUE, left-click on a point to get its number, then ESC to exit. gray logical, if TRUE (the default) the plot region where P AC < 0.5 gets a light gray background. Points in this region were classified into their given class, and the points above this region were misclassified. opacity determines opacity of plotted dots. Value between 0 and 1, where 0 is transpar- ent and 1 is opaque. squareplot if TRUE, the horizontal and vertical axis will get the same length. plotLoess if TRUE, a standard loess curve is fitted and superimposed on the plot. May not work well if feat is discrete with few values. At most one of the options plotLoess, plotErrorbars, or plotQuantiles can be selected. plotErrorBars if TRUE, the average PAC and its standard error are computed on the intervals of a grid (see option grid). Then a red curve connecting the averages is plot- ted, as well as two blue curves corresponding to the average plus or minus one standard error. At most one of the options plotLoess, plotErrorbars, or plotQuantiles can be selected. plotQuantiles if TRUE, one or more quantiles of the PAC are computed on the intervals of a grid (see option grid). The quantiles correspond the probabilities in option probs. Then the curves connecting the quantiles are plotted. At most one of the options plotLoess, plotErrorbars, or plotQuantiles can be selected. grid only used when plotErrorBars or plotQuantiles are selected. This is a vec- tor with increasing feat values, forming the grid. If NULL, the grid consists of the minimum and the maximum of feat, with 9 equispaced points between them. probs only used when plotQuantiles is selected. This is a vector with probabilities determining the quantiles. If NULL, defaults to c(0.5, 0.75). cols only used when plotquantiles is selected. A vector with the colors of the quantile curves. If NULL the cols are taken as 2, 3, ... fac only used when plotLoess, plotErrorBars or plotQuantiles are selected. A real number to multiply the resulting curves. A value fac > 1 can be useful to better visualize the curves when they would be too close to zero. By default (fac = 1) this is not done. cex passed on to plot. cex.main same, for title. cex.lab same, for labels on horizontal and vertical axes. cex.axis same, for axes. pch plot character for the points, defaults to 19. Value coordinates a matrix with 2 columns containing the coordinates of the plotted points. This makes it easier to add text next to interesting points. If identify = TRUE, the attribute ids of coordinates contains the row numbers of the identified points in the matrix coordinates. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) Examples library(rpart) data("data_titanic") traindata <- data_titanic[which(data_titanic$dataType == "train"), -13] set.seed(123) # rpart is not deterministic rpart.out <- rpart(y ~ Pclass + Sex + SibSp + Parch + Fare + Embarked, data = traindata, method = 'class', model = TRUE) mytype <- list(nominal = c("Name", "Sex", "Ticket", "Cabin", "Embarked"), ordratio = c("Pclass")) x_train <- traindata[, -12] y_train <- traindata[, 12] vcrtrain <- vcr.rpart.train(x_train, y_train, rpart.out, mytype) # Quasi residual plot versus age, for males only: PAC <- vcrtrain$PAC[which(x_train$Sex == "male")] feat <- x_train$Age[which(x_train$Sex == "male")] qresplot(PAC, feat, xlab = "Age (years)", opacity = 0.5, main = "quasi residual plot for male passengers", plotLoess = TRUE) text(x = 14, y = 0.60, "loess curve", col = "red", cex = 1) silplot Draw the silhouette plot of a classification Description Draw the silhouette plot to visualize classification results, based on the output of one of the vcr.*.* functions in this package. The horizontal axis of the silhouette plot shows each case’s s(i). Usage silplot(vcrout, classLabels = NULL, classCols = NULL, showLegend = TRUE, showClassNumbers = FALSE, showCases = FALSE, drawLineAtAverage = FALSE, topdown = TRUE, main = NULL, summary = TRUE) Arguments vcrout output of vcr.*.train or vcr.*.newdata. Required. classLabels the labels (levels) of the classes. If NULL, they are taken from vcrout. classCols a list of colors for the classes. There should be at least as many as there are levels. If NULL a default palette is used. showLegend if TRUE, a legend is shown to the right of the plot. showClassNumbers if TRUE, the legend will show the class numbers instead of the class labels. showCases if TRUE, the plot shows the numbers of the cases. They are only readable when the number of cases is relatively small. topdown if TRUE (the default), the silhouettes are plotted from top to bottom. Otherwise they are plotted from left to right. drawLineAtAverage if TRUE, drwas a line at the average value of the s(i). main title for the plot. If NULL, a default title is used. summary if TRUE, puts a summary table on the screen with for each class its number, label, number of class members, and the average of its s(i). Value A ggplot object containing the silhouette plot. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) See Also vcr.da.train, vcr.da.newdata, vcr.knn.train, vcr.knn.newdata, vcr.svm.train, vcr.svm.newdata, vcr.rpart.train, vcr.rpart.newdata, vcr.forest.train, vcr.forest.newdata, vcr.neural.train, vcr.neural.newdata Examples vcrout <- vcr.da.train(iris[, 1:4], iris[, 5]) silplot(vcrout) # For more examples, we refer to the vignettes: ## Not run: vignette("Discriminant_analysis_examples") vignette("K_nearest_neighbors_examples") vignette("Support_vector_machine_examples") vignette("Rpart_examples") vignette("Forest_examples") vignette("Neural_net_examples") ## End(Not run) stackedplot Make a vertically stacked mosaic plot of class predictions. Description Make a vertically stacked mosaic plot of class predictions from the output of vcr.*.train or vcr.*.newdata. Optionally, the outliers for each class can be shown as a gray rectangle at the top. Usage stackedplot(vcrout, cutoff = 0.99, classCols = NULL, classLabels = NULL, separSize=1, minSize=1.5, showOutliers = TRUE, showLegend = FALSE, main = NULL, htitle = NULL, vtitle = NULL) Arguments vcrout output of vcr.*.train or vcr.*.newdata. cutoff cases with overall farness vcrout$ofarness > cutoff are flagged as outliers. classCols user-specified colors for the classes. If NULL a default palette is used. classLabels names of given labels. If NULL they are taken from vcrout. separSize how much white between rectangles. minSize rectangles describing less than minSize percent of the data, are shown as minSize percent. showOutliers if TRUE, shows a separate class in gray with the outliers, always at the top. showLegend if TRUE, a legend is shown to the right of the plot. Default FALSE, since the legend is not necessary as the colors are already visible in the bottom part of each stack. main title for the plot. htitle title for horizontal axis (given labels). If NULL, a default title is shown. vtitle title for vertical axis (predicted labels). If NULL, a default title is shown. Value A ggplot object. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also vcr.da.train, vcr.da.newdata, vcr.knn.train, vcr.knn.newdata, vcr.svm.train, vcr.svm.newdata, vcr.rpart.train, vcr.rpart.newdata, vcr.forest.train, vcr.forest.newdata, vcr.neural.train, vcr.neural.newdata Examples data("data_floralbuds") X <- data_floralbuds[, 1:6]; y <- data_floralbuds[, 7] vcrout <- vcr.da.train(X, y) cols <- c("saddlebrown", "orange", "olivedrab4", "royalblue3") stackedplot(vcrout, classCols = cols, showLegend = TRUE) # The legend is not really needed, since we can read the # color of a class from the bottom of its vertical bar: stackedplot(vcrout, classCols = cols, main = "Stacked plot of QDA on foral buds data") # If we do not wish to show outliers: stackedplot(vcrout, classCols = cols, showOutliers = FALSE) # For more examples, we refer to the vignettes: ## Not run: vignette("Discriminant_analysis_examples") vignette("K_nearest_neighbors_examples") vignette("Support_vector_machine_examples") vignette("Rpart_examples") vignette("Random_forest_examples") vignette("Neural_net_examples") ## End(Not run) vcr.da.newdata Carry out discriminant analysis on new data, and prepare to visualize its results. Description Predicts class labels for new data by discriminant analysis, using the output of vcr.da.train on the training data. For new data cases whose label in yintnew is non-missing, additional output is produced for constructing graphical displays such as the classmap. Usage vcr.da.newdata(Xnew, ynew=NULL, vcr.da.train.out) Arguments Xnew data matrix of the new data, with the same number of columns as in the training data. Missing values are not allowed. ynew factor with class membership of each new case. Can be NA for some or all cases. If NULL, is assumed to be NA everywhere. vcr.da.train.out output of vcr.da.train on the training data. Value A list with components: yintnew number of the given class of each case. Can contain NA’s. ynew given class label of each case. Can contain NA’s. levels levels of the response, from vcr.da.train.out. predint predicted class number of each case. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose ynew is missing. altlab label of the alternative class. Is NA for cases whose ynew is missing. PAC probability of the alternative class. Is NA for cases whose ynew is missing. fig distance of each case i to each class g. Always exists. farness farness of each case i from its given class. Is NA for cases whose ynew is missing. ofarness For each case i, its lowest fig[i,g] to any class g. Always exists. classMS list with center and covariance matrix of each class, from vcr.da.train.out. lCurrent log of mixture density of each case in its given class. Is NA for cases with missing ynew. lPred log of mixture density of each case in its predicted class. Always exists. lAlt log of mixture density of each case in its alternative class. Is NA for cases with missing ynew. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also vcr.da.train, classmap, silplot, stackedplot Examples vcr.train <- vcr.da.train(iris[, 1:4], iris[, 5]) inds <- c(51:150) # a subset, containing only 2 classes iris2 <- iris[inds, ] # fake "new" data iris2[c(1:10, 51:60), 5] <- NA vcr.test <- vcr.da.newdata(iris2[, 1:4], iris2[, 5], vcr.train) vcr.test$PAC[1:25] # between 0 and 1. Is NA where the response is. plot(vcr.test$PAC, vcr.train$PAC[inds]); abline(0, 1) # match plot(vcr.test$farness, vcr.train$farness[inds]); abline(0, 1) # match confmat.vcr(vcr.train) # for comparison confmat.vcr(vcr.test) stackedplot(vcr.train) # for comparison stackedplot(vcr.test) classmap(vcr.train, "versicolor", classCols = 2:4) # for comparison classmap(vcr.test, "versicolor", classCols = 2:4) # has fewer points # For more examples, we refer to the vignette: ## Not run: vignette("Discriminant_analysis_examples") ## End(Not run) vcr.da.train Carry out discriminant analysis on training data, and prepare to visu- alize its results. Description Custom DA function which prepares for graphical displays such as the classmap. The disciminant analysis itself is carried out by the maximum a posteriori rule, which maximizes the density of the mixture. Usage vcr.da.train(X, y, rule = "QDA", estmethod = "meancov") Arguments X a numerical matrix containing the predictors in its columns. Missing values are not allowed. y a factor with the given class labels. rule either "QDA" for quadratic discriminant analysis or "LDA" for linear discriminant analysis. estmethod function for location and covariance estimation. Should return a list with the center $m and the covariance matrix $S. The default is "meancov" (classical mean and covariance matrix), and the option "DetMCD" (based on robustbase::covMcd) is also provided. Value A list with components: yint number of the given class of each case. Can contain NA’s. y given class label of each case. Can contain NA’s. levels levels of y predint predicted class number of each case. For each case this is the class with the highest posterior probability. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose y is missing. altlab label of the alternative class. Is NA for cases whose y is missing. PAC probability of the alternative class. Is NA for cases whose y is missing. figparams parameters for computing fig, can be used for new data. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose y is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. classMS list with center and covariance matrix of each class lCurrent log of mixture density of each case in its given class. Is NA for cases with missing y. lPred log of mixture density of each case in its predicted class. Always exists. lAlt log of mixture density of each case in its alternative class. Is NA for cases with missing y. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also vcr.da.newdata, classmap, silplot, stackedplot Examples data("data_floralbuds") X <- data_floralbuds[, 1:6]; y <- data_floralbuds[, 7] vcrout <- vcr.da.train(X, y, rule = "QDA") # For linear discriminant analysis, put rule = "LDA". confmat.vcr(vcrout) # There are a few outliers cols <- c("saddlebrown", "orange", "olivedrab4", "royalblue3") stackedplot(vcrout, classCols = cols) classmap(vcrout, "bud", classCols = cols) # For more examples, we refer to the vignette: ## Not run: vignette("Discriminant_analysis_examples") ## End(Not run) vcr.forest.newdata Prepare for visualization of a random forest classification on new data. Description Produces output for the purpose of constructing graphical displays such as the classmap on new data. Requires the output of vcr.forest.train as an argument. Usage vcr.forest.newdata(Xnew, ynew = NULL, vcr.forest.train.out, LOO = FALSE) Arguments Xnew data matrix of the new data, with the same number of columns d as in the training data. Missing values are not allowed. ynew factor with class membership of each new case. Can be NA for some or all cases. If NULL, is assumed to be NA everywhere. vcr.forest.train.out output of vcr.forest.train on the training data. LOO leave one out. Only used when testing this function on a subset of the training data. Default is LOO=FALSE. Value A list with components: yintnew number of the given class of each case. Can contain NA’s. ynew given class label of each case. Can contain NA’s. levels levels of the response, from vcr.forest.train.out. predint predicted class number of each case. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose ynew is missing. altlab alternative label if yintnew was given, else NA. PAC probability of the alternative class. Is NA for cases whose ynew is missing. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose ynew is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) See Also vcr.forest.train, classmap, silplot, stackedplot Examples library(randomForest) data("data_instagram") traindata <- data_instagram[which(data_instagram$dataType == "train"), -13] set.seed(71) # randomForest is not deterministic rfout <- randomForest(y ~ ., data = traindata, keep.forest = TRUE) mytype <- list(symm = c(1, 5, 7, 8)) # These 4 columns are # (symmetric) binary variables. The variables that are not # listed are interval-scaled by default. x_train <- traindata[, -12] y_train <- traindata[, 12] vcrtrain <- vcr.forest.train(X = x_train, y = y_train, trainfit = rfout, type = mytype) testdata <- data_instagram[which(data_instagram$dataType == "test"), -13] Xnew <- testdata[, -12] ynew <- testdata[, 12] vcrtest <- vcr.forest.newdata(Xnew, ynew, vcrtrain) confmat.vcr(vcrtest) stackedplot(vcrtest, classCol = c(4, 2)) silplot(vcrtest, classCols = c(4, 2)) classmap(vcrtest, "genuine", classCols = c(4, 2)) classmap(vcrtest, "fake", classCols = c(4, 2)) # For more examples, we refer to the vignette: ## Not run: vignette("Random_forest_examples") ## End(Not run) vcr.forest.train Prepare for visualization of a random forest classification on training data Description Produces output for the purpose of constructing graphical displays such as the classmap and silplot. The user first needs to train a random forest on the data by randomForest::randomForest. This then serves as an argument to vcr.forest.train. Usage vcr.forest.train(X, y, trainfit, type = list(), k = 5, stand = TRUE) Arguments X A rectangular matrix or data frame, where the columns (variables) may be of mixed type. y factor with the given class labels. It is crucial that X and y are exactly the same as in the call to randomForest::randomForest. y is allowed to contain NA’s. trainfit the output of a randomForest::randomForest training run. k the number of nearest neighbors used in the farness computation. type list for specifying some (or all) of the types of the variables (columns) in X, used for computing the dissimilarity matrix, as in cluster::daisy. The list may contain the following components: "ordratio" (ratio scaled variables to be treated as ordinal variables), "logratio" (ratio scaled variables that must be logarithmically transformed), "asymm" (asymmetric binary) and "symm" (sym- metric binary variables). Each component’s value is a vector, containing the names or the numbers of the corresponding columns of X. Variables not men- tioned in the type list are interpreted as usual (see argument X). stand whether or not to standardize numerical (interval scaled) variables by their range as in the original cluster::daisy code for the farness computation. Defaults to TRUE. Value A list with components: X The data used to train the forest. yint number of the given class of each case. Can contain NA’s. y given class label of each case. Can contain NA’s. levels levels of y predint predicted class number of each case. For each case this is the class with the highest posterior probability. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose y is missing. altlab label of the alternative class. Is NA for cases whose y is missing. PAC probability of the alternative class. Is NA for cases whose y is missing. figparams parameters for computing fig, can be used for new data. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose y is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. trainfit The trained random forest which was given as an input to this function. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) See Also vcr.forest.newdata, classmap, silplot, stackedplot Examples library(randomForest) data("data_instagram") traindata <- data_instagram[which(data_instagram$dataType == "train"), -13] set.seed(71) # randomForest is not deterministic rfout <- randomForest(y~., data = traindata, keep.forest = TRUE) mytype <- list(symm = c(1, 5, 7, 8)) # These 4 columns are # (symmetric) binary variables. The variables that are not # listed are interval-scaled by default. x_train <- traindata[, -12] y_train <- traindata[, 12] # Prepare for visualization: vcrtrain <- vcr.forest.train(X = x_train, y = y_train, trainfit = rfout, type = mytype) confmat.vcr(vcrtrain) stackedplot(vcrtrain, classCols = c(4, 2)) silplot(vcrtrain, classCols = c(4, 2)) classmap(vcrtrain, "genuine", classCols = c(4, 2)) classmap(vcrtrain, "fake", classCols = c(4, 2)) # For more examples, we refer to the vignette: ## Not run: vignette("Random_forest_examples") ## End(Not run) vcr.knn.newdata Carry out a k-nearest neighbor classification on new data, and prepare to visualize its results. Description Predicts class labels for new data by k nearest neighbors, using the output of vcr.knn.train on the training data. For cases in the new data whose given label ynew is not NA, additional output is produced for constructing graphical displays such as the classmap. Usage vcr.knn.newdata(Xnew, ynew = NULL, vcr.knn.train.out, LOO = FALSE) Arguments Xnew If the training data was a matrix of coordinates, Xnew must be such a matrix with the same number of columns. If the training data was a set of dissimilarities, Xnew must be a rectangular matrix of dissimilarities, with each row containing the dissmilarities of a new case to all training cases. Missing values are not allowed. ynew factor with class membership of each new case. Can be NA for some or all cases. If NULL, is assumed to be NA everywhere. vcr.knn.train.out output of vcr.knn.train on the training data. LOO leave one out. Only used when testing this function on a subset of the training data. Default is LOO=FALSE. Value A list with components: yintnew number of the given class of each case. Can contain NA’s. ynew given class label of each case. Can contain NA’s. levels levels of the response, from vcr.knn.train.out. predint predicted class number of each case. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose ynew is missing. altlab label of the alternative class. Is NA for cases whose ynew is missing. PAC probability of the alternative class. Is NA for cases whose ynew is missing. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose ynew is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. k the requested number of nearest neighbors, from vcr.knn.train.out. ktrues for each case this contains the actual number of elements in its neighborhood. This can be higher than k due to ties. counts a matrix with 3 columns, each row representing a case. For the neighborhood of each case it says how many members it has from the given class, the predicted class, and the alternative class. The first and third entry is NA for cases whose ynew is missing. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also vcr.knn.train, classmap, silplot, stackedplot Examples data("data_floralbuds") X <- data_floralbuds[, 1:6]; y <- data_floralbuds[, 7] set.seed(12345); trainset <- sample(1:550, 275) vcr.train <- vcr.knn.train(X[trainset, ], y[trainset], k = 5) vcr.test <- vcr.knn.newdata(X[-trainset, ], y[-trainset], vcr.train) confmat.vcr(vcr.train) # for comparison confmat.vcr(vcr.test) cols <- c("saddlebrown", "orange", "olivedrab4", "royalblue3") stackedplot(vcr.train, classCols = cols) # for comparison stackedplot(vcr.test, classCols = cols) classmap(vcr.train, "bud", classCols = cols) # for comparison classmap(vcr.test, "bud", classCols = cols) # For more examples, we refer to the vignette: ## Not run: vignette("K_nearest_neighbors_examples") ## End(Not run) vcr.knn.train Carry out a k-nearest neighbor classification on training data, and prepare to visualize its results. Description Carries out a k-nearest neighbor classification on the training data. Various additional output is produced for the purpose of constructing graphical displays such as the classmap. Usage vcr.knn.train(X, y, k) Arguments X This can be a rectangular matrix or data frame of (already standardized) mea- surements, or a dist object obtained from stats::dist or cluster::daisy. Missing values are not allowed. y factor with the given (observed) class labels. There need to be non-missing y in order to be able to train the classifier. k the number of nearest neighbors used. It can be selected by running cross- validation using a different package. Value A list with components: yint number of the given class of each case. Can contain NA’s. y given class label of each case. Can contain NA’s. levels levels of y predint predicted class number of each case. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose y is missing. altlab label of the alternative class. Is NA for cases whose y is missing. PAC probability of the alternative class. Is NA for cases whose y is missing. figparams parameters used to compute fig. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose y is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. k the requested number of nearest neighbors, from the arguments. Will also be used for classifying new data. ktrues for each case this contains the actual number of elements in its neighborhood. This can be higher than k due to ties. counts a matrix with 3 columns, each row representing a case. For the neighborhood of each case it says how many members it has from the given class, the predicted class, and the alternative class. The first and third entry is NA for cases whose y is missing. X If the argument X was a data frame or matrix of coordinates, as.matrix(X) is returned here. This is useful for classifying new data. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also vcr.knn.newdata, classmap, silplot, stackedplot Examples vcrout <- vcr.knn.train(iris[, 1:4], iris[, 5], k = 5) confmat.vcr(vcrout) stackedplot(vcrout) classmap(vcrout, "versicolor", classCols = 2:4) # The cases misclassified as virginica are shown in blue. # For more examples, we refer to the vignette: ## Not run: vignette("K_nearest_neighbors_examples") ## End(Not run) vcr.neural.newdata Prepare for visualization of a neural network classification on new data. Description Prepares graphical display of new data fitted by a neural net that was modeled on the training data, using the output of vcr.neural.train on the training data. Usage vcr.neural.newdata(Xnew, ynew = NULL, probs, vcr.neural.train.out) Arguments Xnew data matrix of the new data, with the same number of columns as in the training data. Missing values in Xnew are not allowed. ynew factor with class membership of each new case. Can be NA for some or all cases. If NULL, is assumed to be NA everywhere. probs posterior probabilities obtained by running the neural net on the new data. vcr.neural.train.out output of vcr.neural.train on the training data. Value A list with components: yintnew number of the given class of each case. Can contain NA’s. ynew given class label of each case. Can contain NA’s. levels levels of the response, from vcr.svm.train.out. predint predicted class number of each case. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose ynew is missing. altlab alternative label if yintnew was given, else NA. PAC probability of the alternative class. Is NA for cases whose ynew is missing. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose ynew is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) See Also vcr.neural.train, classmap, silplot, stackedplot Examples # For examples, we refer to the vignette: ## Not run: vignette("Neural_net_examples") ## End(Not run) vcr.neural.train Prepare for visualization of a neural network classification on training data. Description Produces output for the purpose of constructing graphical displays such as the classmap. The user first needs train a neural network. The representation of the data in a given layer (e.g. the final layer before applying the softmax function) then serves as the argument X to vcr.neural.train. Usage vcr.neural.train(X, y, probs, estmethod = meancov) Arguments X the coordinates of the n objects of the training data, in the layer chosen by the user. Missing values are not allowed. y factor with the given class labels of the objects. Make sure that the levels are in the same order as used in the neural net, i.e. the columns of its binary "once- hot-encoded" response vectors. probs posterior probabilities obtained by the neural net, e.g. in keras. For each case (row of X), the classes have probabilities that add up to 1. Each row of the matrix probs contains these probabilities. The columns of probs must be in the same order as the levels of y. estmethod function for location and covariance estimation. Should return a list with $m and $S. Can be meancov (classical mean and covariance matrix) or DetMCD. If one or more classes have a singular covariance matrix, the function automatically switches to the PCA-based farness used in vcr.svm.train. Value A list with components: X the coordinates of the n objects of the training data, in the layer chosen by the user. yint number of the given class of each case. Can contain NA’s. y given class label of each case. Can contain NA’s. levels levels of y predint predicted class number of each case. For each case this is the class with the highest posterior probability. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose y is missing. altlab label of the alternative class. Is NA for cases whose y is missing. ncolX number of columns in X. Keep?? PAC probability of the alternative class. Is NA for cases whose y is missing. computeMD Whether or not the farness is computed using the Mahalanobis distance. classMS list with center and covariance matrix of each class PCAfits if not NULL, PCA fits to each class, estimated from the training data but also useful for new data. figparams parameters for computing fig, can be used for new data. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose y is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) See Also vcr.neural.newdata, classmap, silplot, stackedplot Examples # For examples, we refer to the vignette: ## Not run: vignette("Neural_net_examples") ## End(Not run) vcr.rpart.newdata Prepare for visualization of an rpart classification on new data. Description Produces output for the purpose of constructing graphical displays such as the classmap on new data. Requires the output of vcr.rpart.train as an argument. Usage vcr.rpart.newdata(Xnew, ynew = NULL, vcr.rpart.train.out, LOO = FALSE) Arguments Xnew data matrix of the new data, with the same number of columns d as in the training data. Missing values are not allowed. ynew factor with class membership of each new case. Can be NA for some or all cases. If NULL, is assumed to be NA everywhere. vcr.rpart.train.out output of vcr.rpart.train on the training data. LOO leave one out. Only used when testing this function on a subset of the training data. Default is LOO=FALSE. Value A list with components: yintnew number of the given class of each case. Can contain NA’s. ynew given class label of each case. Can contain NA’s. levels levels of the response, from vcr.rpart.train.out. predint predicted class number of each case. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose ynew is missing. altlab alternative label if yintnew was given, else NA. PAC probability of the alternative class. Is NA for cases whose ynew is missing. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose ynew is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) See Also vcr.rpart.train, classmap, silplot, stackedplot Examples library(rpart) data("data_titanic") traindata <- data_titanic[which(data_titanic$dataType == "train"), -13] str(traindata); table(traindata$y) set.seed(123) # rpart is not deterministic rpart.out <- rpart(y ~ Pclass + Sex + SibSp + Parch + Fare + Embarked, data = traindata, method = 'class', model = TRUE) y_train <- traindata[, 12] x_train <- traindata[, -12] mytype <- list(nominal = c("Name", "Sex", "Ticket", "Cabin", "Embarked"), ordratio = c("Pclass")) # These are 5 nominal columns, and one ordinal. # The variables not listed are by default interval-scaled. vcrtrain <- vcr.rpart.train(x_train, y_train, rpart.out, mytype) testdata <- data_titanic[which(data_titanic$dataType == "test"), -13] dim(testdata) x_test <- testdata[, -12] y_test <- testdata[, 12] vcrtest <- vcr.rpart.newdata(x_test, y_test, vcrtrain) confmat.vcr(vcrtest) silplot(vcrtest, classCols = c(2, 4)) classmap(vcrtest, "casualty", classCols = c(2, 4)) classmap(vcrtest, "survived", classCols = c(2, 4)) # For more examples, we refer to the vignette: ## Not run: vignette("Rpart_examples") ## End(Not run) vcr.rpart.train Prepare for visualization of an rpart classification on training data. Description Produces output for the purpose of constructing graphical displays such as the classmap. The user first needs to train a classification tree on the data by rpart::rpart. This then serves as an argument to vcr.rpart.train. Usage vcr.rpart.train(X, y, trainfit, type = list(), k = 5, stand = TRUE) Arguments X A rectangular matrix or data frame, where the columns (variables) may be of mixed type and may contain NA’s. y factor with the given class labels. It is crucial that X and y are exactly the same as in the call to rpart::rpart. y is allowed to contain NA’s. k the number of nearest neighbors used in the farness computation. trainfit the output of an rpart::rpart training cycle. type list for specifying some (or all) of the types of the variables (columns) in X, used for computing the dissimilarity matrix, as in cluster::daisy. The list may contain the following components: "ordratio" (ratio scaled variables to be treated as ordinal variables), "logratio" (ratio scaled variables that must be logarithmically transformed), "asymm" (asymmetric binary) and "symm" (sym- metric binary variables). Each component’s value is a vector, containing the names or the numbers of the corresponding columns of X. Variables not men- tioned in the type list are interpreted as usual (see argument X). stand whether or not to standardize numerical (interval scaled) variables by their range as in the original cluster::daisy code for the farness computation. Defaults to TRUE. Value A list with components: X The input data X. Keep?? yint number of the given class of each case. Can contain NA’s. y given class label of each case. Can contain NA’s. levels levels of y predint predicted class number of each case. For each case this is the class with the highest posterior probability. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose y is missing. altlab label of the alternative class. Is NA for cases whose y is missing. PAC probability of the alternative class. Is NA for cases whose y is missing. figparams parameters for computing fig, can be used for new data. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose y is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. trainfit the trainfit used to build the VCR object. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>.(2021). Silhouettes and quasi residual plots for neural nets and tree- based classifiers. (link to open access pdf) See Also vcr.rpart.newdata, classmap, silplot, stackedplot Examples library(rpart) data("data_titanic") traindata <- data_titanic[which(data_titanic$dataType == "train"), -13] str(traindata); table(traindata$y) set.seed(123) # rpart is not deterministic rpart.out <- rpart(y ~ Pclass + Sex + SibSp + Parch + Fare + Embarked, data = traindata, method = 'class', model = TRUE) y_train <- traindata[, 12] x_train <- traindata[, -12] mytype <- list(nominal = c("Name", "Sex", "Ticket", "Cabin", "Embarked"), ordratio = c("Pclass")) # These are 5 nominal columns, and one ordinal. # The variables not listed are by default interval-scaled. vcrtrain <- vcr.rpart.train(x_train, y_train, rpart.out, mytype) confmat.vcr(vcrtrain) silplot(vcrtrain, classCols = c(2, 4)) classmap(vcrtrain, "casualty", classCols = c(2, 4)) classmap(vcrtrain, "survived", classCols = c(2, 4)) # For more examples, we refer to the vignette: ## Not run: vignette("Rpart_examples") ## End(Not run) vcr.svm.newdata Prepare for visualization of a support vector machine classification on new data. Description Carries out a support vector machine classification of new data using the output of vcr.svm.train on the training data, and computes the quantities needed for its visualization. Usage vcr.svm.newdata(Xnew, ynew = NULL, vcr.svm.train.out) Arguments Xnew data matrix of the new data, with the same number of columns as in the training data. Missing values in Xnew are not allowed. ynew factor with class membership of each new case. Can be NA for some or all cases. If NULL, is assumed to be NA everywhere. vcr.svm.train.out output of vcr.svm.train on the training data. Value A list with components: yintnew number of the given class of each case. Can contain NA’s. ynew given class label of each case. Can contain NA’s. levels levels of the response, from vcr.svm.train.out. predint predicted class number of each case. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose ynew is missing. altlab alternative label if yintnew was given, else NA. PAC probability of the alternative class. Is NA for cases whose ynew is missing. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose ynew is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also vcr.svm.train, classmap, silplot, stackedplot, e1071::svm Examples library(e1071) set.seed(1); X <- matrix(rnorm(200 * 2), ncol = 2) X[1:100, ] <- X[1:100, ] + 2 X[101:150, ] <- X[101:150, ] - 2 y <- as.factor(c(rep("blue", 150), rep("red", 50))) # We now fit an SVM with radial basis kernel to the data: set.seed(1) # to make the result of svm() reproducible. svmfit <- svm(y~., data = data.frame(X = X, y = y), scale = FALSE, kernel = "radial", cost = 10, gamma = 1, probability = TRUE) vcr.train <- vcr.svm.train(X, y, svfit = svmfit) # As "new" data we take a subset of the training data: inds <- c(1:25, 101:125, 151:175) vcr.test <- vcr.svm.newdata(X[inds, ], y[inds], vcr.train) plot(vcr.test$PAC, vcr.train$PAC[inds]); abline(0, 1) # match plot(vcr.test$farness, vcr.train$farness[inds]); abline(0, 1) confmat.vcr(vcr.test) cols <- c("deepskyblue3", "red") stackedplot(vcr.test, classCols = cols) classmap(vcr.train, "blue", classCols = cols) # for comparison classmap(vcr.test, "blue", classCols = cols) classmap(vcr.train, "red", classCols = cols) # for comparison classmap(vcr.test, "red", classCols = cols) # For more examples, we refer to the vignette: ## Not run: vignette("Support_vector_machine_examples") ## End(Not run) vcr.svm.train Prepare for visualization of a support vector machine classification on training data. Description Produces output for the purpose of constructing graphical displays such as the classmap. The user first needs to run a support vector machine classification on the data by e1071::svm, with the option probability = TRUE. This classification can be with two or more classes. The output of e1071::svm is then an argument to vcr.svm.train. As e1071::svm does not output the data itself, it needs to be given as well, in the arguments X and y. Usage vcr.svm.train(X, y, svfit, ortho = FALSE) Arguments X matrix of data coordinates, as used in e1071::svm. Missing values are not al- lowed. y factor with the given (observed) class labels. It is crucial that X and y are exactly the same as in the call to e1071::svm. svfit an object returned by e1071::svm, called with exactly the same X and y as above. ortho If TRUE, will compute farness in the orthogonal complement of the vector beta given by e1071::svm. Is only possible for 2 classes, else there would be several beta vectors. Value A list with components: yint number of the given class of each case. Can contain NA’s. y given class label of each case. Can contain NA’s. levels levels of the response y. predint predicted class number of each case. Always exists. pred predicted label of each case. altint number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is NA for cases whose y is missing. altlab label of the alternative class. Is NA for cases whose y is missing. PAC probability of the alternative class. Is NA for cases whose y is missing. figparams parameters used in fig, can be used for new data. fig distance of each case i from each class g. Always exists. farness farness of each case from its given class. Is NA for cases whose y is missing. ofarness for each case i, its lowest fig[i,g] to any class g. Always exists. svfit as it was input, will be useful for new data. X the matrix of data coordinates from the arguments. This is useful for classifying new data. Author(s) <NAME>., <NAME>. References <NAME>., <NAME>., <NAME>. (2021). Class maps for visualizing classification results. Technometrics, appeared online. doi: 10.1080/00401706.2021.1927849(link to open access pdf) See Also vcr.knn.newdata, classmap, silplot, stackedplot, e1071::svm Examples library(e1071) set.seed(1); X <- matrix(rnorm(200 * 2), ncol = 2) X[1:100, ] <- X[1:100, ] + 2 X[101:150, ] <- X[101:150, ] - 2 y <- as.factor(c(rep("blue", 150), rep("red", 50))) cols <- c("deepskyblue3", "red") plot(X, col = cols[as.numeric(y)], pch = 19) # We now fit an SVM with radial basis kernel to the data: set.seed(1) # to make the result of svm() reproducible. svmfit <- svm(y~., data = data.frame(X = X, y = y), scale = FALSE, kernel = "radial", cost = 10, gamma = 1, probability = TRUE) plot(svmfit$decision.values, col = cols[as.numeric(y)]); abline(h = 0) # so the decision values separate the classes reasonably well. plot(svmfit, data = data.frame(X = X, y = y), X.2~X.1, col = cols) # The boundary is far from linear (but in feature space it is). vcr.train <- vcr.svm.train(X, y, svfit = svmfit) confmat.vcr(vcr.train) stackedplot(vcr.train, classCols = cols) classmap(vcr.train, "blue", classCols = cols) classmap(vcr.train, "red", classCols = cols) # For more examples, we refer to the vignette: ## Not run: vignette("Support_vector_machine_examples") ## End(Not run)
timely
hex
Erlang
API Reference === Modules --- [Timely](Timely.html) Provides functions for converting, comparing and shifting Elixir date & times. [Timely.TimeZone](Timely.TimeZone.html) Provides time zone convenience functions. [Timely.Year](Timely.Year.html) Provides functions for manipulating year numbers. Timely === Provides functions for converting, comparing and shifting Elixir date & times. Summary === [Types](#types) --- [date_or_time_like()](#t:date_or_time_like/0) [date_tuple()](#t:date_tuple/0) [datetime_tuple()](#t:datetime_tuple/0) [microseconds()](#t:microseconds/0) [spec_or_format()](#t:spec_or_format/0) A known spec or a format string. [time_zone()](#t:time_zone/0) A valid time zone. [Functions](#functions) --- [after?(dt1, dt2)](#after?/2) [ago(dt \\ utc(), units, scale)](#ago/3) [as(error, format_or_spec)](#as/2) Converts common date time like date structures to other common date time like data structures. [before?(dt1, dt2)](#before?/2) [before_or_on?(dt1, dt2)](#before_or_on?/2) [equal?(dt1, dt2)](#equal?/2) [from_now(dt \\ utc(), units, scale)](#from_now/3) [in_timezone(datetime, timezone)](#in_timezone/2) [new_datetime(arg, microseconds \\ {0, 6}, time_zone \\ "Etc/UTC")](#new_datetime/3) Initializes a DateTime. [now_in_timezone()](#now_in_timezone/0) [now_in_timezone(timezone)](#now_in_timezone/1) [on_or_after?(dt1, dt2)](#on_or_after?/2) [utc()](#utc/0) [utc_today()](#utc_today/0) [Link to this section](#types) Types === ``` date_or_time_like() :: [Date.t](https://hexdocs.pm/elixir/Date.html#t:t/0)() | [DateTime.t](https://hexdocs.pm/elixir/DateTime.html#t:t/0)() | [NaiveDateTime.t](https://hexdocs.pm/elixir/NaiveDateTime.html#t:t/0)() | [String.t](https://hexdocs.pm/elixir/String.html#t:t/0)() ``` ``` date_tuple() :: {[integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)()} ``` ``` datetime_tuple() :: {{[integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)()}, {[integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)()}} ``` ``` microseconds() :: {[integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)()} ``` ``` spec_or_format() :: [Atom.t](https://hexdocs.pm/elixir/Atom.html#t:t/0)() | [String.t](https://hexdocs.pm/elixir/String.html#t:t/0)() ``` A known spec or a format string. ``` time_zone() :: [binary](https://hexdocs.pm/elixir/typespecs.html#built-in-types)() ``` A valid time zone. [Link to this section](#functions) Functions === ``` as([date_or_time_like](#t:date_or_time_like/0)() | nil, [spec_or_format](#t:spec_or_format/0)()) :: [date_or_time_like](#t:date_or_time_like/0)() | nil ``` Converts common date time like date structures to other common date time like data structures. ``` new_datetime([datetime_tuple](#t:datetime_tuple/0)(), [microseconds](#t:microseconds/0)(), [time_zone](#t:time_zone/0)()) :: [DateTime.t](https://hexdocs.pm/elixir/DateTime.html#t:t/0)() ``` Initializes a DateTime. Timely.TimeZone === Provides time zone convenience functions. Summary === [Functions](#functions) --- [cst()](#cst/0) [est()](#est/0) [gmt()](#gmt/0) [list()](#list/0) [list(atom, opts \\ [])](#list/2) [mst()](#mst/0) [pst()](#pst/0) [utc()](#utc/0) [Link to this section](#functions) Functions === Timely.Year === Provides functions for manipulating year numbers. Summary === [Functions](#functions) --- [century(year)](#century/1) Computes the century of the specified `year`. [guess(number, list)](#guess/2) Interprets the specified `number` as a year. If necessary, it guesses the century nearest the specified `:near` option. [Link to this section](#functions) Functions === ``` century([integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)()) :: [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)() ``` Computes the century of the specified `year`. Examples --- ``` iex> Timely.Year.century 1900 19 iex> Timely.Year.century 34 0 ``` ``` guess([integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)(), [{:near, [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)()}]) :: {:ok, [integer](https://hexdocs.pm/elixir/typespecs.html#basic-types)()} | {:error, [binary](https://hexdocs.pm/elixir/typespecs.html#built-in-types)()} ``` Interprets the specified `number` as a year. If necessary, it guesses the century nearest the specified `:near` option. Examples --- ``` iex> Timely.Year.guess 17, near: 2017 {:ok, 2017} iex> Timely.Year.guess 67, near: 2017 {:ok, 1967} iex> Timely.Year.guess 66, near: 2017 {:ok, 2066} iex> Timely.Year.guess 2017, near: 2017 {:ok, 2017} iex> Timely.Year.guess 2017, near: 17 {:error, ":near value 17 has no century"} ```
flow
hex
Erlang
Flow === Computational flows with stages. [`Flow`](Flow.html#content) allows developers to express computations on collections, similar to the [`Enum`](https://hexdocs.pm/elixir/Enum.html) and [`Stream`](https://hexdocs.pm/elixir/Stream.html) modules, although computations will be executed in parallel using multiple [`GenStage`](https://hexdocs.pm/gen_stage/1.2.1/GenStage.html)s. Flow is designed to work with both bounded (finite) and unbounded (infinite) data. By default, Flow will work with batches of 500 items. This means Flow will only show improvements when working with larger collections. However, for certain cases, such as IO-bound flows, a smaller batch size can be configured through the `:min_demand` and `:max_demand` options supported by [`from_enumerable/2`](#from_enumerable/2), [`from_stages/2`](#from_stages/2), [`from_specs/2`](#from_specs/2), [`partition/2`](#partition/2), [`departition/5`](#departition/5), etc. Flow also provides the concepts of "windows" and "triggers", which allow developers to split the data into arbitrary windows according to event time. Triggers allow computations to be materialized at different intervals, allowing developers to peek at results as they are computed. This module doc will cover the main constructs and concepts behind Flow, with examples. There is also a presentation about GenStage and Flow from <NAME> at ElixirConf 2016, which covers data processing concepts for those unfamiliar with the domain: <https://youtu.be/srtMWzyqdp8?t=244[example](#module-example) Example --- As an example, let's implement the classic word counting algorithm using Flow. The word counting program will receive one file and count how many times each word appears in the document. Using the [`Enum`](https://hexdocs.pm/elixir/Enum.html) module it could be implemented as follows: ``` File.stream!("path/to/some/file") |> Enum.flat_map(&String.split(&1, " ")) |> Enum.reduce(%{}, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end) |> Enum.to_list() ``` Unfortunately, the implementation above is not very efficient, as [`Enum.flat_map/2`](https://hexdocs.pm/elixir/Enum.html#flat_map/2) will build a list with all the words in the document before reducing it. If the document is, for example, 2GB, we will load 2GB of data into memory. We can improve the solution above by using the [`Stream`](https://hexdocs.pm/elixir/Stream.html) module: ``` File.stream!("path/to/some/file") |> Stream.flat_map(&String.split(&1, " ")) |> Enum.reduce(%{}, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end) |> Enum.to_list() ``` Now instead of loading the whole set into memory, we will only keep the current line in memory while we process it. While this allows us to process the whole data set efficiently, it does not leverage concurrency. Flow solves that: ``` File.stream!("path/to/some/file") |> Flow.from_enumerable() |> Flow.flat_map(&String.split(&1, " ")) |> Flow.partition() |> Flow.reduce(fn -> %{} end, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end) |> Enum.to_list() ``` To convert from Stream to Flow, we have made two changes: 1. We have replaced the calls to [`Stream`](https://hexdocs.pm/elixir/Stream.html) with [`Flow`](Flow.html#content) 2. We call [`partition/2`](#partition/2) so words are properly partitioned between stages The example above will use all available cores and will keep an ongoing flow of data instead of traversing them line by line. Once all data is computed, it is sent to the process which invoked [`Enum.to_list/1`](https://hexdocs.pm/elixir/Enum.html#to_list/1). While we gain concurrency by using Flow, many of the benefits of Flow are in partitioning the data. We will discuss the need for data partitioning next. [partitioning](#module-partitioning) Partitioning --- To understand the need to partition the data, let's change the example above and remove the partition call: ``` File.stream!("path/to/some/file") |> Flow.from_enumerable() |> Flow.flat_map(&String.split(&1, " ")) |> Flow.reduce(fn -> %{} end, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end) |> Enum.to_list() ``` This will execute the `flat_map` and `reduce` operations in parallel inside multiple stages. When running on a machine with two cores: ``` [file stream] # Flow.from_enumerable/1 (producer) | | [M1] [M2] # Flow.flat_map/2 + Flow.reduce/3 (consumer) ``` Now imagine that the `M1` and `M2` stages above receive the following lines: ``` M1 - "roses are red" M2 - "violets are blue" ``` [`flat_map/2`](#flat_map/2) will break them into: ``` M1 - ["roses", "are", "red"] M2 - ["violets", "are", "blue"] ``` Then [`reduce/3`](#reduce/3) will result in each stage having the following state: ``` M1 - %{"roses" => 1, "are" => 1, "red" => 1} M2 - %{"violets" => 1, "are" => 1, "blue" => 1} ``` Which is converted to the list (in no particular order): ``` [{"roses", 1}, {"are", 1}, {"red", 1}, {"violets", 1}, {"are", 1}, {"blue", 1}] ``` Although both stages have performed word counting, we have words like "are" that appear on both stages. This means we would need to perform yet another pass on the data merging the duplicated words across stages. This step would have to run on a single process, which would limit our ability to run concurrently. Remember that events are batched, so for small files, there is a chance all lines will be set to the same stage (M1 or M2) and you won't be able to replicate the issue. If you want to emulate this, either to follow along or in your test suites, you may set `:max_demand` to 1 when reading from the stream, so that the code looks like this: ``` File.stream!("path/to/some/file") |> Flow.from_enumerable(max_demand: 1) |> Flow.flat_map(&String.split(&1, " ")) |> Flow.reduce(fn -> %{} end, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end) |> Enum.to_list() ``` Partitioning solves this by introducing a new set of stages and making sure the same word is always mapped to the same stage with the help of a hash function. Let's introduce the call to [`partition/2`](#partition/2) back: ``` File.stream!("path/to/some/file") |> Flow.from_enumerable() |> Flow.flat_map(&String.split(&1, " ")) |> Flow.partition() |> Flow.reduce(fn -> %{} end, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end) |> Enum.to_list() ``` Now we will have the following topology: ``` [file stream] # Flow.from_enumerable/1 (producer) | | [M1] [M2] # Flow.flat_map/2 (producer-consumer) |\ /| | \/ | |/ \ | [R1] [R2] # Flow.reduce/3 (consumer) ``` If the `M1` and `M2` stages receive the same lines and break them into words as before: ``` M1 - ["roses", "are", "red"] M2 - ["violets", "are", "blue"] ``` Now, any given word will be consistently routed to `R1` or `R2` regardless of its origin. The default hashing function will route them like this: ``` R1 - ["roses", "are", "red", "are"] R2 - ["violets", "blue"] ``` Resulting in the reduced state of: ``` R1 - %{"roses" => 1, "are" => 2, "red" => 1} R2 - %{"violets" => 1, "blue" => 1} ``` Which is converted to the list (in no particular order): ``` [{"roses", 1}, {"are", 2}, {"red", 1}, {"violets", 1}, {"blue", 1}] ``` Each stage has a distinct subset of the data so we know that we don't need to merge the data later on, because a given word is guaranteed to have only been routed to one stage. Partitioning the data is a very useful technique. For example, if we wanted to count the number of unique elements in a dataset, we could perform such a count in each partition and then sum their results, as the partitioning guarantees the data in each partition won't overlap. A unique element would never be counted twice. The topology above alongside partitioning is very common in the MapReduce programming model which we will briefly discuss next. ### [mapreduce](#module-mapreduce) MapReduce The MapReduce programming model forces us to break our computations in two stages: map and reduce. The map stage is often quite easy to parallelize because events are processed individually and in isolation. The reduce stages need to group the data either partially or completely. In the example above, the stages executing [`flat_map/2`](#flat_map/2) are the mapper stages. Because the [`flat_map/2`](#flat_map/2) function works line by line, we can have two, four, eight or more mapper processes that will break line by line into words without any need for coordination. However, the reducing stage is a bit more complicated. Reducer stages typically aggregate some result based on their inputs, such as how many times a word has appeared. This implies reducer computations need to traverse the whole data set and, in order to do so in parallel, we partition the data into distinct datasets. The goal of the [`reduce/3`](#reduce/3) operation is to accumulate a value which then becomes the partition state. Any operation that happens after [`reduce/3`](#reduce/3) works on the whole state and is only executed after all the data for a partition is collected. While this approach works well for bounded (finite) data, it is quite limited for unbounded (infinite) data. After all, if the reduce operation needs to traverse the whole partition to complete, how can we do so if the data never finishes? The answer here lies in triggers. Every partition may have a [`on_trigger/2`](#on_trigger/2) callback which receives the partition accumulator and returns the events to be emitted and the accumulator to be used after the trigger. All flows have at least one trigger: the `:done` trigger which is executed when all the data has been processed. In this case, the accumulator returned by [`on_trigger/2`](#on_trigger/2) won't be used, only the events it emits. However, Flow provides many conveniences for working with unbound data, allowing us to set windows, time-based triggers, element counters and more. [data-completion-windows-and-triggers](#module-data-completion-windows-and-triggers) Data completion, windows and triggers --- By default, Flow shuts down its processes when all data has been processed. However, when working with an unbounded stream of data, there is no such thing as data completion. So when can we consider a reduce function to be "completed"? To handle such cases, Flow provides windows and triggers. Windows allow us to split the data based on the event time while triggers tells us when to write the results we have computed so far. By introducing windows, we no longer think about events being partitioned across stages. Instead each event belongs to a window and the window is partitioned across the stages. By default, all events belong to the same window (called the global window), which is partitioned across stages. However, different windowing strategies can be used by building a [`Flow.Window`](Flow.Window.html) and passing it to the [`Flow.partition/2`](#partition/2) function. Once a window is specified, we can create triggers that tell us when to checkpoint the data, allowing us to report our progress while the data streams through the system, regardless of whether the data is bounded or unbounded. Every time a trigger is invoked, the [`on_trigger/2`](#on_trigger/2) callback of that partition is invoked, allowing us to control which events to emit and what accumulator to use for the next time the partition starts reducing data. Windows and triggers effectively control how the [`reduce/3`](#reduce/3) function works. While windows and triggers allow us to control when data is emitted, note that data can be emitted at any time during the reducing step by using [`emit_and_reduce/3`](#emit_and_reduce/3). In truth, all window and trigger functionality provided by Flow can also be built by hand using the [`emit_and_reduce/3`](#emit_and_reduce/3) and [`on_trigger/2`](#on_trigger/2) functions. In a nutshell, each stage in Flow goes through those steps: * mapping and filtering ([`map/2`](#map/2), [`filter/2`](#filter/2), [`flat_map/2`](#flat_map/2)) * reducing ([`reduce/3`](#reduce/3), [`group_by/3`](#group_by/3), [`emit_and_reduce/3`](#emit_and_reduce/3)) * emitting events ([`emit_and_reduce/3`](#emit_and_reduce/3), [`emit/2`](#emit/2), [`on_trigger/2`](#on_trigger/2)) The accumulator from reducing operations is shared with the one from emitting events. [`emit_and_reduce/3`](#emit_and_reduce/3) is special operation that allows both emitting and reducing events in one step. See [`Flow.Window`](Flow.Window.html) for a complete introduction to windows and triggers. [supervisable-flows](#module-supervisable-flows) Supervisable flows --- In the examples so far we have started a flow dynamically and consumed it using [`Enum.to_list/1`](https://hexdocs.pm/elixir/Enum.html#to_list/1). Unfortunately calling a function from [`Enum`](https://hexdocs.pm/elixir/Enum.html) will cause the whole computed dataset to be sent to a single process. In many situations, this is either too expensive or completely undesirable. For example, in data-processing pipelines, it is common to receive data continuously from external sources. At the end, this data is written to disk or another storage mechanism after being processed, rather than being sent to a single process. Flow allows computations to be started as a group of processes which may run indefinitely. This can be done by starting the flow as part of a supervision tree using `{Flow, your_flow}` as your child specification: ``` children = [ {Flow, Flow.from_stages(...) |> Flow.flat_map(&String.split(&1, " ")) |> Flow.reduce(fn -> %{} end, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end)} ] ``` It is also possible to move a Flow to its own module. This is done by calling `use Flow` and then defining a [`start_link/1`](#start_link/1) function that calls [`Flow.start_link/1`](#start_link/1) at the end: ``` defmodule MyFlow do use Flow def start_link(_) do Flow.from_stages(...) |> Flow.flat_map(&String.split(&1, " ")) |> Flow.reduce(fn -> %{} end, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end) |> Flow.start_link() end end ``` By the default the [`Flow`](Flow.html#content) is permanent, which means it is always restarted. The `:shutdown` and `:restart` child spec configurations can be given to `use Flow`. Flow also provides integration with [`GenStage`](https://hexdocs.pm/gen_stage/1.2.1/GenStage.html), allowing you to specify child specifications of producers, producer consumers, and consumers that are started alongside the flow and under the same supervision tree. This is achieved with the [`from_specs/2`](#from_specs/2) (producers), [`through_specs/2`](#through_specs/2) (producer consumers) and [`into_specs/2`](#into_specs/2) (consumers) functions. It is also possible to connect a flow to already running stages, via the [`from_stages/2`](#from_stages/2) (producers), [`through_stages/2`](#through_stages/2) (producer consumers) and [`into_stages/2`](#into_stages/2) (consumers) functions. [`into_stages/3`](#into_stages/3) and [`into_specs/3`](#into_specs/3) are alternatives to [`start_link/1`](#start_link/1) that start the flow with the given consumers stages or the given consumers child specification. Similar to [`start_link/1`](#start_link/1), they return either `{:ok, pid}` or `{:error, reason}`. [performance-discussions](#module-performance-discussions) Performance discussions --- In this section we will discuss points related to performance with flows. ### [know-your-code](#module-know-your-code) Know your code There are many optimizations we could perform in the flow above that are not necessarily related to flows themselves. Let's rewrite the flow using some of them: ``` # The parent process which will own the table parent = self() # Let's compile common patterns for performance empty_space = :binary.compile_pattern(" ") # BINARY File.stream!("path/to/some/file", read_ahead: 100_000) # READ_AHEAD |> Flow.from_enumerable() |> Flow.flat_map(&String.split(&1, empty_space)) # BINARY |> Flow.partition() |> Flow.reduce(fn -> :ets.new(:words, []) end, fn word, ets -> # ETS :ets.update_counter(ets, word, {2, 1}, {word, 0}) ets end) |> Flow.on_trigger(fn ets -> :ets.give_away(ets, parent, []) {[ets], :new_reduce_state_which_wont_be_used} # Emit the ETS end) |> Enum.to_list() ``` We have performed three optimizations: * BINARY - the first optimization is to compile the pattern we use to split the string on * READ_AHEAD - the second optimization is to use the `:read_ahead` option for file streams allowing us to do fewer IO operations by reading large chunks of data at once * ETS - the third stores the data in a ETS table and uses its counter operations. For counters and a large dataset this provides a great performance benefit as it generates less garbage. At the end, we call [`on_trigger/2`](#on_trigger/2) to transfer the ETS table to the parent process and wrap the table in a list so we can access it on [`Enum.to_list/1`](https://hexdocs.pm/elixir/Enum.html#to_list/1). This step is not strictly required. For example, one could write the table to disk with [`:ets.tab2file/2`](https://www.erlang.org/doc/man/ets.html#tab2file-2) at the end of the computation ### [configuration-demand-and-the-number-of-stages](#module-configuration-demand-and-the-number-of-stages) Configuration (demand and the number of stages) [`from_enumerable/2`](#from_enumerable/2), [`from_stages/2`](#from_stages/2) and `partition/3` allow a set of options to configure how flows work. In particular, we recommend that developers play with the `:min_demand` and `:max_demand` options, which control the amount of data sent between stages. The difference between `max_demand` and `min_demand` works as the batch size when the producer is full. If the producer has fewer events than requested by consumers, it usually sends the remaining events available. If stages perform IO, it may also be worth increasing the number of stages. The default value is [`System.schedulers_online/0`](https://hexdocs.pm/elixir/System.html#schedulers_online/0), which is a good default if the stages are CPU bound, but if stages are waiting on external resources or other processes, increasing the number of stages may be helpful. ### [avoid-single-sources](#module-avoid-single-sources) Avoid single sources In the examples so far we have used a single file as our data source. In practice such single sources should be avoided as they could end up being the bottleneck of our whole computation. In the file stream case above, instead of having one single large file, it is preferable to break the file into smaller ones: ``` streams = for file <- File.ls!("dir/with/files") do File.stream!("dir/with/files/#{file}", read_ahead: 100_000) end streams |> Flow.from_enumerables() |> Flow.flat_map(&String.split(&1, " ")) |> Flow.partition() |> Flow.reduce(fn -> %{} end, fn word, acc -> Map.update(acc, word, 1, & &1 + 1) end) |> Enum.to_list() ``` Instead of calling [`from_enumerable/1`](#from_enumerable/1), we now called [`from_enumerables/1`](#from_enumerables/1) which expects a list of enumerables to be used as source. Notice every stream also uses the `:read_ahead` option which tells Elixir to buffer file data in memory to avoid multiple IO lookups. If the number of enumerables is equal to or greater than the number of cores, Flow will automatically fuse the enumerables with the mapper logic. For example, if three file streams are given as enumerables to a machine with two cores, we will have the following topology: ``` [F1][F2][F3] # file stream [M1][M2][M3] # Flow.flat_map/2 (producer) |\ /\ /| | /\/\ | |// \\| [R1][R2] # Flow.reduce/3 (consumer) ``` [Link to this section](#summary) Summary === [Types](#types) --- [join()](#t:join/0) [t()](#t:t/0) [Functions](#functions) --- [bounded_join(mode, left, right, left_key, right_key, join, options \\ [])](#bounded_join/7) Joins two bounded (finite) flows. [departition(flow, acc_fun, merge_fun, done_fun, options \\ [])](#departition/5) Reduces windows over multiple partitions into a single stage. [each(flow, each)](#each/2) deprecated [emit(flow, type)](#emit/2) Controls which values should be emitted. [emit_and_reduce(flow, acc_fun, reducer_fun)](#emit_and_reduce/3) Reduces values with the given accumulator and controls which values should be emitted. [filter(flow, filter)](#filter/2) Applies the given function filtering each input in parallel. [flat_map(flow, flat_mapper)](#flat_map/2) Applies the given function mapping each input in parallel and flattening the result, but only one level deep. [from_enumerable(enumerable, options \\ [])](#from_enumerable/2) Creates a flow with the given enumerable as the producer. [from_enumerables(enumerables, options \\ [])](#from_enumerables/2) Creates a flow with the given enumerable as producer. [from_specs(producers, options \\ [])](#from_specs/2) Creates a flow with a list of `producers` child specifications. [from_stages(producers, options \\ [])](#from_stages/2) Creates a flow with a list of already running stages as `producers`. [group_by(flow, key_fun, value_fun \\ fn x -> x end)](#group_by/3) Groups events with the given `key_fun`. [group_by_key(flow)](#group_by_key/1) Groups a series of `{key, value}` tuples by keys. [into_specs(flow, consumers, options \\ [])](#into_specs/3) Starts a flow and the `consumers` child specifications. [into_stages(flow, consumers, options \\ [])](#into_stages/3) Starts a flow with a list of already running stages as `consumers`. [map(flow, mapper)](#map/2) Applies the given function mapping each input in parallel. [map_batch(flow, function)](#map_batch/2) Applies the given function to each "batch" of GenStage events. [map_values(flow, value_fun)](#map_values/2) Maps over the given values in the stage state. [merge(flow_or_flows, dispatcher, options \\ [])](#merge/3) Merges the given flow or flows into a series of new stages with the given dispatcher and options. [on_trigger(flow, on_trigger)](#on_trigger/2) Applies the given function over the window state. [partition(flow_or_flows, options \\ [])](#partition/2) Creates a new partition for the given flow (or flows) with the given options. [reduce(flow, acc_fun, reducer_fun)](#reduce/3) Reduces the given values with the given accumulator. [reject(flow, filter)](#reject/2) Applies the given function rejecting each input in parallel. [run(flow, opts \\ [])](#run/2) Runs a given flow. [shuffle(flow_or_flows, options \\ [])](#shuffle/2) Shuffles the given flow (or flows) into a new series of stages. [start_link(flow, options \\ [])](#start_link/2) Starts and runs the flow as a separate process. [stream(flow, opts \\ [])](#stream/2) Explicitly converts the Flow into a Stream. [take_sort(flow, n, sort_fun \\ &<=/2, options \\ [])](#take_sort/4) Takes `n` events according to the sort function. [through_specs(flow, producer_consumers, options \\ [])](#through_specs/3) Passes a `flow` through a list of `producer_consumers` child specifications and subscriptions that will be started alongside the flow. [through_stages(flow, producer_consumers, options \\ [])](#through_stages/3) Passes a `flow` through a list of already running stages as `producer_consumers`. [uniq(flow)](#uniq/1) Only emit unique events. [uniq_by(flow, by)](#uniq_by/2) Only emit events that are unique according to the `by` function. [window_join(mode, left, right, window, left_key, right_key, join, options \\ [])](#window_join/8) Joins two flows with the given window. [Link to this section](#types) Types === [Link to this section](#functions) Functions === Flow.Window === Splits a flow into windows that are materialized at certain triggers. Windows allow developers to split data so we can understand incoming data as time progresses. Once a window is created, we can specify triggers that allow us to customize when the data accumulated on every window is materialized. Windows must be created by calling one of the window type functions. The supported window types are as follows: * Global windows - that's the default window which means all data belongs to one single window. In other words, the data is not split in any way. The window finishes when all producers notify there is no more data * Fixed windows - splits incoming events into periodic, non- overlapping windows based on event times. In other words, a given event belongs to a single window. If data arrives late, a configured lateness can be specified. * Periodic windows - splits incoming events into periodic, non- overlapping windows based on processing times. Similar to fixed windows, a given event belongs to a single window. * Count windows - splits incoming events based on a count. Similar to fixed windows, a given event belongs to a single window. Other common window types can be expressed with Flow functions: * Session windows - splits incoming events into unique windows which is grouped until there is a configured gap between event times. Sessions are useful for data that is irregularly distributed with respect to time. We discuss all types and include examples below. In the first section, "Global windows", we build the basic intuition about windows and triggers as well as discuss the distinction between "Event time and processing time". Then we explore "Fixed windows" and the concept of lateness before moving on to other window types. [global-windows](#module-global-windows) Global windows --- By default, all events belong to the global window. The global window is automatically attached to a partition if no window is specified. The flow below: ``` Flow.from_stages([some_producer]) |> Flow.partition() |> Flow.reduce(fn -> 0 end, & &1 + 2) ``` is equivalent to: ``` Flow.from_stages([some_producer]) |> Flow.partition(window: Flow.Window.global()) |> Flow.reduce(fn -> 0 end, & &1 + 2) ``` Even though the global window does not split the data in any way, it already provides conveniences for working with both bounded (finite) and unbounded (infinite) via triggers. For example, the flow below uses a global window with a count-based trigger to emit the values being summed as we sum them: ``` iex> window = Flow.Window.global() |> Flow.Window.trigger_every(10) iex> flow = Flow.from_enumerable(1..100) |> Flow.partition(window: window, stages: 1) iex> flow |> Flow.reduce(fn -> 0 end, &(&1 + &2)) |> Flow.emit(:state) |> Enum.to_list() [55, 210, 465, 820, 1275, 1830, 2485, 3240, 4095, 5050, 5050] ``` Let's explore the types of triggers available next. ### [triggers](#module-triggers) Triggers Triggers allow us to check point the data processed so far. There are different triggers we can use: * Event count triggers - compute state operations every X events * Processing time triggers - compute state operations every X time units for every stage * Punctuation - hand-written triggers based on the data Flow supports the triggers above via the [`trigger_every/2`](#trigger_every/2), [`trigger_periodically/3`](#trigger_periodically/3) and [`trigger/3`](#trigger/3) respectively. Once a trigger is emitted, the [`Flow.reduce/3`](Flow.html#reduce/3) step halts and invokes the [`Flow.on_trigger/2`](Flow.html#on_trigger/2) callback, allowing you to emit events and change the reducer accumulator. ### [event-time-and-processing-time](#module-event-time-and-processing-time) Event time and processing time Before we move to other window types, it is important to discuss the distinction between event time and processing time. In particular, triggers created with the [`trigger_periodically/3`](#trigger_periodically/3) function are intrinsically inaccurate and therefore should not be used to split the data. For example, if you are measuring the frequency that events arrive, using the event time will always yield the same result, while processing time will be vulnerable to fluctuations if, for instance, an external factor causes events to processed slower or faster than usual. Furthermore, periodic triggers are established per partition and are message-based, which means partitions will emit the triggers at different times and possibly with delays based on the partition message queue size. However, it is exactly this lack of precision which makes them efficient for checkpointing data. Flow provides other window types, such as fixed windows, exactly to address the issues with processing time. Such windows use the event time which is based on the data itself. When working with event time, we can assign the data into proper windows even when late or out of order. Such windows can be used to gather time-based insight from the data (for example, the most popular hashtags in the last 10 minutes) as well as for checkpointing data. [fixed-windows-event-time](#module-fixed-windows-event-time) Fixed windows (event time) --- Fixed windows group the data based on the event times. Regardless if the data is bounded or not, fixed windows give us time-based insight about the data. Fixed windows are created via the [`fixed/3`](#fixed/3) function which specified the duration of the window and a function that retrieves the event time from each event: ``` Flow.Window.fixed(1, :hour, fn {word, timestamp} -> timestamp end) ``` Let's see an example that will use the window above to count the frequency of words based on windows that are 1 hour long. The timestamps used by Flow are integers in milliseconds. For now, we will also set the concurrency down 1 and max demand down to 5 as it is simpler to reason about the results: ``` iex> data = [{"elixir", 0}, {"elixir", 1_000}, {"erlang", 60_000}, ...> {"concurrency", 3_200_000}, {"elixir", 4_000_000}, ...> {"erlang", 5_000_000}, {"erlang", 6_000_000}] iex> window = Flow.Window.fixed(1, :hour, fn {_word, timestamp} -> timestamp end) iex> flow = Flow.from_enumerable(data, max_demand: 5, stages: 1) iex> flow = Flow.partition(flow, window: window, stages: 1) iex> flow = Flow.reduce(flow, fn -> %{} end, fn {word, _}, acc -> ...> Map.update(acc, word, 1, & &1 + 1) ...> end) iex> flow |> Flow.emit(:state) |> Enum.to_list [%{"elixir" => 2, "erlang" => 1, "concurrency" => 1}, %{"elixir" => 1, "erlang" => 2}] ``` Since the data has been broken in two windows, the first four events belong to the same window while the last 3 belongs to the second one. Notice that [`Flow.reduce/3`](Flow.html#reduce/3) is executed per window and that each event belongs to a single window exclusively. Similar to global windows, fixed windows can also have triggers, allowing us to checkpoint the data as the computation happens. ### [data-ordering-watermarks-and-lateness](#module-data-ordering-watermarks-and-lateness) Data ordering, watermarks and lateness When working with event time, Flow assumes by default that events are time ordered. This means that, when we move from one window to another, like when we received the entry `{"elixir", 4_000_000}` in the example above, we assume the previous window has been completed. Let's change the events above to be out of order and move the first event to the end of the dataset and see what happens: ``` iex> data = [{"elixir", 1_000}, {"erlang", 60_000}, ...> {"concurrency", 3_200_000}, {"elixir", 4_000_000}, ...> {"erlang", 5_000_000}, {"erlang", 6_000_000}, {"elixir", 0}] iex> window = Flow.Window.fixed(1, :hour, fn {_word, timestamp} -> timestamp end) iex> flow = Flow.from_enumerable(data) |> Flow.partition(window: window, stages: 1, max_demand: 5) iex> flow = Flow.reduce(flow, fn -> %{} end, fn {word, _}, acc -> ...> Map.update(acc, word, 1, & &1 + 1) ...> end) iex> flow |> Flow.emit(:state) |> Enum.to_list [%{"elixir" => 1, "erlang" => 1, "concurrency" => 1}, %{"elixir" => 1, "erlang" => 2}] ``` Notice that now the first map did not count the "elixir" word twice. Since the event arrived late, it was marked as lost. However, in many flows we actually expect data to arrive late or out of order, especially when talking about concurrent data processing. Luckily, event time windows include the concept of lateness, which is a processing time base period we would wait to receive late events. Let's change the example above once more but now change the window to also call [`allowed_lateness/3`](#allowed_lateness/3): ``` iex> data = [{"elixir", 1_000}, {"erlang", 60_000}, ...> {"concurrency", 3_200_000}, {"elixir", 4_000_000}, ...> {"erlang", 5_000_000}, {"erlang", 6_000_000}, {"elixir", 0}] iex> window = Flow.Window.fixed(1, :hour, fn {_word, timestamp} -> timestamp end) iex> window = Flow.Window.allowed_lateness(window, 5, :minute) iex> flow = Flow.from_enumerable(data) |> Flow.partition(window: window, stages: 1, max_demand: 5) iex> flow = Flow.reduce(flow, fn -> %{} end, fn {word, _}, acc -> ...> Map.update(acc, word, 1, & &1 + 1) ...> end) iex> flow |> Flow.emit(:state) |> Enum.to_list [%{"concurrency" => 1, "elixir" => 1, "erlang" => 1}, %{"concurrency" => 1, "elixir" => 2, "erlang" => 1}, %{"elixir" => 1, "erlang" => 2}] ``` Now that we allow late events, we can see the first window emitted twice. Instead of the window being marked as done when 1 hour passes, we say it emits a **watermark trigger**. The window will be effectively done only after the allowed lateness period. If desired, we can use [`Flow.on_trigger/2`](Flow.html#on_trigger/2) to get more information about each particular window and its trigger. Replace the last line above by the following: ``` flow |> Flow.on_trigger(fn state, _index, trigger -> {[{state, trigger}], state} end) |> Enum.to_list() ``` The trigger parameter will include the type of window, the current window and what caused the window to be emitted (`:watermark` or `:done`). Note that all stages must receive an event that is outside of a specific window before that window is considered complete. In other words if there are multiple stages in the partition preceding a reduce operation that has a window, the reduce step won't release a window until it has seen an event that is outside of that window from all processes that it receives data from. This could have an effect on how long events are delayed in the reduce step. [periodic-windows-processing-time](#module-periodic-windows-processing-time) Periodic windows (processing time) --- Periodic windows are similar to fixed windows except triggers are emitted based on processing time instead of event time. Remember that relying on periodic windows or triggers is intrinsically inaccurate and should not be used to split the data, only as a checkpointing device. Periodic windows are also similar to global windows that use `trigger_periodically/2` to emit events periodically. The difference is that periodic windows emit a window in a given interval while a trigger emits a trigger. This behaviour may affect functions such as [`Flow.departition/4`](Flow.html#departition/4), which calls the `merge` callback per trigger but the `done` callback per window. Unless you are relying on functions such as [`Flow.departition/4`](Flow.html#departition/4), there is no distinction between periodic windows and global windows with periodic triggers. [count-windows-event-count](#module-count-windows-event-count) Count windows (event count) --- Count windows are simpler versions of fixed windows where windows are split apart by event count. Since it is not timed-based, it does not provide the concept of lateness. ``` iex> window = Flow.Window.count(10) iex> flow = Flow.from_enumerable(1..100) |> Flow.partition(window: window, stages: 1) iex> flow |> Flow.reduce(fn -> 0 end, &(&1 + &2)) |> Flow.emit(:state) |> Enum.to_list() [55, 155, 255, 355, 455, 555, 655, 755, 855, 955, 0] ``` Count windows are also similar to global windows that use [`trigger_every/2`](#trigger_every/2) to emit events per count. The difference is that count windows emit a window per event count while a trigger belongs to a window. This behaviour may affect functions such as [`Flow.departition/4`](Flow.html#departition/4), which calls the `merge` callback per trigger but the `done` callback per window. Unless you are relying on functions such as [`Flow.departition/4`](Flow.html#departition/4), there is no distinction between count windows and global windows with count triggers. [session-windows-gap-between-events](#module-session-windows-gap-between-events) Session windows (gap between events) --- Session windows allow events to accumulate until a configured time gap between events occurs. This allows for grouping events that occurred close to each other, while allowing the length of the window to vary. Flow does not provide a dedicated Session window type, but it can be constructed using `emit_and_reduce/3` and `on_trigger/2`. ``` iex> data = [ ...> {"elixir", 2_000_000}, ...> {"erlang", 3_100_000}, ...> {"elixir", 3_200_000}, ...> {"erlang", 4_000_000}, ...> {"elixir", 4_100_000}, ...> {"erlang", 4_150_000} ...> ] iex> max_gap_between_events = 1_000_000 iex> flow = Flow.from_enumerable(data) |> Flow.partition(key: fn {k, _} -> k end, stages: 1) iex> flow = ...> Flow.emit_and_reduce(flow, fn -> %{} end, fn {word, time}, acc -> ...> {count, previous_time} = Map.get(acc, word, {1, time}) ...> ...> if time - previous_time > max_gap_between_events do ...> {[{word, {count, previous_time}}], Map.put(acc, word, {1, time})} ...> else ...> {[], Map.update(acc, word, {1, time}, fn {count, _} -> {count + 1, time} end)} ...> end ...> end) iex> flow = Flow.on_trigger(flow, fn acc -> {Enum.to_list(acc), :unused} end) iex> Enum.to_list(flow) [{"elixir", {1, 2000000}}, {"elixir", {2, 4100000}}, {"erlang", {3, 4150000}}] ``` [Link to this section](#summary) Summary === [Types](#types) --- [by()](#t:by/0) A function that returns the event time to window by. [id()](#t:id/0) The window identifier. [t()](#t:t/0) [time_unit()](#t:time_unit/0) The supported time units for fixed and periodic windows. [trigger()](#t:trigger/0) The name of the trigger. [type()](#t:type/0) The supported window types. [Functions](#functions) --- [allowed_lateness(window, count, unit)](#allowed_lateness/3) Sets a duration, in processing time, of how long we will wait for late events for a given window. [count(count)](#count/1) Returns a count-based window of every `count` elements. [fixed(count, unit, by)](#fixed/3) Returns a fixed window of duration `count` `unit` where the event time is calculated by the given function `by`. [global()](#global/0) Returns a global window. [periodic(count, unit)](#periodic/2) Returns a period-based window of every `count` `unit`. [trigger(window, acc_fun, trigger_fun)](#trigger/3) Calculates when to emit a trigger. [trigger_every(window, count)](#trigger_every/2) A trigger emitted every `count` elements in a window. [trigger_periodically(window, count, unit)](#trigger_periodically/3) Emits a trigger periodically every `count` `unit`. [Link to this section](#types) Types === [Link to this section](#functions) Functions ===
sarsop
cran
R
Package ‘sarsop’ January 10, 2023 Type Package Title Approximate POMDP Planning Software Version 0.6.14 Description A toolkit for Partially Observed Markov Decision Processes (POMDP). Provides bindings to C++ libraries implementing the algorithm SARSOP (Successive Approximations of the Reachable Space under Optimal Policies) and described in Kurniawati et al (2008), <doi:10.15607/RSS.2008.IV.009>. This package also provides a high-level interface for generating, solving and simulating POMDP problems and their solutions. License GPL-2 URL https://github.com/boettiger-lab/sarsop BugReports https://github.com/boettiger-lab/sarsop/issues RoxygenNote 7.1.1 Imports xml2, parallel, processx, digest, Matrix Suggests testthat, roxygen2, knitr, covr, spelling LinkingTo BH Encoding UTF-8 Language en-US SystemRequirements mallinfo, hence Linux, MacOS or Windows NeedsCompilation yes Author <NAME> [cre, aut, cph] (<https://orcid.org/0000-0002-1642-628X>), <NAME> [aut], <NAME> [aut], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb], <NAME> [ctb], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb], Free Software Foundation [cph], <NAME> [ctb, cph], <NAME> [ctb, cph], <NAME> [ctb], RSA Data Security, Inc. [cph] Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2023-01-10 09:10:06 UTC R topics documented: alphas_from_lo... 2 assert_has_app... 3 compute_polic... 4 fisheries_matrice... 5 f_from_lo... 6 hindcast_pomd... 6 meta_from_lo... 8 models_from_lo... 8 pomdpso... 9 read_policy... 11 sarso... 12 sim_pomd... 13 write_pomdp... 15 alphas_from_log alphas_from_log Description Read alpha vectors from a log file. Usage alphas_from_log(meta, log_dir = ".") Arguments meta a data frame containing the log metadata for each set of alpha vectors desired, see meta_from_log log_dir path to log directory Value a list with a matrix of alpha vectors for each entry in the provided metadata (as returned by sarsop). Examples # takes > 5s source(system.file("examples/fisheries-ex.R", package = "sarsop")) log = tempfile() alpha <- sarsop(transition, observation, reward, discount, precision = 10, log_dir = log) assert_has_appl test the APPL binaries Description Asserts that the C++ binaries for appl have been compiled successfully Usage assert_has_appl() Value Will return TRUE if binaries are installed and can be located and executed, and FALSE otherwise. Examples assert_has_appl() compute_policy compute_policy Description Derive the corresponding policy function from the alpha vectors Usage compute_policy( alpha, transition, observation, reward, state_prior = rep(1, dim(observation)[[1]])/dim(observation)[[1]], a_0 = 1 ) Arguments alpha the matrix of alpha vectors returned by sarsop transition Transition matrix, dimension n_s x n_s x n_a observation Observation matrix, dimension n_s x n_z x n_a reward reward matrix, dimension n_s x n_a state_prior initial belief state, optional, defaults to uniform over states a_0 previous action. Belief in state depends not only on observation, but on prior belief of the state and subsequent action that had been taken. Value a data frame providing the optimal policy (choice of action) and corresponding value of the action for each possible belief state Examples m <- fisheries_matrices() ## Takes > 5s if(assert_has_appl()){ alpha <- sarsop(m$transition, m$observation, m$reward, 0.95, precision = 10) compute_policy(alpha, m$transition, m$observation, m$reward) } fisheries_matrices fisheries_matrices Description Initialize the transition, observation, and reward matrices given a transition function, reward func- tion, and state space Usage fisheries_matrices( states = 0:20, actions = states, observed_states = states, reward_fn = function(x, a) pmin(x, a), f = ricker(1, 15), sigma_g = 0.1, sigma_m = 0.1, noise = c("rescaled-lognormal", "lognormal", "uniform", "normal") ) Arguments states sequence of possible states actions sequence of possible actions observed_states sequence of possible observations reward_fn function of x and a that gives reward for tacking action a when state is x f transition function of state x and action a. sigma_g half-width of uniform shock or equivalent variance for log-normal sigma_m half-width of uniform shock or equivalent variance for log-normal noise distribution for noise, "lognormal" or "uniform" Details assumes log-normally distributed observation errors and process errors Value list of transition matrix, observation matrix, and reward matrix Examples m <- fisheries_matrices() f_from_log f from log Description Read transition function from log Usage f_from_log(meta) Arguments meta a data frame containing the log metadata for each set of alpha vectors desired, see meta_from_log Details note this function is unique to the fisheries example problem and assumes that sarsop call is run with logging specifying a column "model" that contains either the string "ricker" (corresponding to a Ricker-type growth function) or "allen" (corresponding to an Allen-type.) Value the growth function associated with the model indicated. Examples # takes > 5s source(system.file("examples/fisheries-ex.R", package = "sarsop")) log = tempfile() alpha <- sarsop(transition, observation, reward, discount, precision = 10, log_dir = log) hindcast_pomdp hindcast_pomdp Description Compare historical actions to what pomdp recommendation would have been. Usage hindcast_pomdp( transition, observation, reward, discount, obs, action, state_prior = rep(1, dim(observation)[[1]])/dim(observation)[[1]], alpha = NULL, ... ) Arguments transition Transition matrix, dimension n_s x n_s x n_a observation Observation matrix, dimension n_s x n_z x n_a reward reward matrix, dimension n_s x n_a discount the discount factor obs a given sequence of observations action the corresponding sequence of actions state_prior initial belief state, optional, defaults to uniform over states alpha the matrix of alpha vectors returned by sarsop ... additional arguments to appl. Value a list, containing: a data frame with columns for time, obs, action, and optimal action, and an array containing the posterior belief distribution at each time t Examples m <- fisheries_matrices() ## Takes > 5s if(assert_has_appl()){ alpha <- sarsop(m$transition, m$observation, m$reward, 0.95, precision = 10) sim <- hindcast_pomdp(m$transition, m$observation, m$reward, 0.95, obs = rnorm(21, 15, .1), action = rep(1, 21), alpha = alpha) } meta_from_log meta from log Description load metadata from a log file Usage meta_from_log( parameters, log_dir = ".", metafile = paste0(log_dir, "/meta.csv") ) Arguments parameters a data.frame with the desired parameter values as given in metafile log_dir path to log directory metafile path to metafile index, assumed to be meta.csv in log_dir Value a data.frame with the rows of the matching metadata. Examples # takes > 5s source(system.file("examples/fisheries-ex.R", package = "sarsop")) log = tempfile() alpha <- sarsop(transition, observation, reward, discount, precision = 10, log_dir = log) models_from_log model from log Description Read model details from log file Usage models_from_log(meta, reward_fn = function(x, h) pmin(x, h)) Arguments meta a data frame containing the log metadata for each set of alpha vectors desired, see meta_from_log reward_fn a function f(x,a) giving the reward for taking action a given a system in state x. Details assumes transition can be determined by the f_from_log function, which is specific to the fisheries example Value a list with an element for each row in the requested meta data frame, which itself is a list of the three matrices: transition, observation, and reward, defining the pomdp problem. Examples # takes > 5s source(system.file("examples/fisheries-ex.R", package = "sarsop")) log = tempfile() alpha <- sarsop(transition, observation, reward, discount, precision = 10, log_dir = log) pomdpsol APPL wrappers Description Wrappers for the APPL executables. The pomdpsol function solves a model file and returns the path to the output policy file. Usage pomdpsol( model, output = tempfile(), precision = 0.001, timeout = NULL, fast = FALSE, randomization = FALSE, memory = NULL, improvementConstant = NULL, timeInterval = NULL, stdout = tempfile(), stderr = tempfile(), spinner = TRUE ) polgraph( model, policy, output = tempfile(), max_depth = 3, max_branches = 10, min_prob = 0.001, stdout = "", spinner = TRUE ) pomdpsim( model, policy, output = tempfile(), steps = 100, simulations = 3, stdout = "", spinner = TRUE ) pomdpeval( model, policy, output = tempfile(), steps = 100, simulations = 3, stdout = "", spinner = TRUE ) pomdpconvert(model, stdout = "", spinner = TRUE) Arguments model file/path to the pomdp model file output file/path of the output policy file. This is also returned by the function. precision targetPrecision. Set targetPrecision as the target precision in solution quality; run ends when target precision is reached. The target precision is 1e-3 by default. timeout Use timeLimit as the timeout in seconds. If running time exceeds the specified value, pomdpsol writes out a policy and terminates. There is no time limit by default. fast logical, default FALSE. use fast (but very picky) alternate parser for .pomdp files. randomization logical, default FALSE. Turn on randomization for the sampling algorithm. memory Use memoryLimit as the memory limit in MB. No memory limit by default. If memory usage exceeds the specified value, pomdpsol writes out a policy and terminates. Set the value to be less than physical memory to avoid swapping. improvementConstant Use improvementConstant as the trial improvement factor in the sampling algo- rithm. At the default of 0.5, a trial terminates at a belief when the gap between its upper and lower bound is 0.5 of the current precision at the initial belief. timeInterval Use timeInterval as the time interval between two consecutive write-out of pol- icy files. If this is not specified, pomdpsol only writes out a policy file upon termination. stdout a filename where pomdp run statistics will be stored stderr currently ignored. spinner should we show a spinner while sarsop is running? policy file/path to the policy file max_depth the maximum horizon of the generated policy graph max_branches maximum number of branches to show in the policy graph min_prob the minimum probability threshold for a branch to be shown in the policy graph steps number of steps for each simulation run simulations as the number of simulation runs Examples if(assert_has_appl()){ model <- system.file("models", "example.pomdp", package = "sarsop") policy <- tempfile(fileext = ".policyx") pomdpsol(model, output = policy, timeout = 1) # Other tools evaluation <- pomdpeval(model, policy, stdout = FALSE) graph <- polgraph(model, policy, stdout = FALSE) simulations <- pomdpsim(model, policy, stdout = FALSE) } read_policyx read_policyx Description read a .policyx file created by SARSOP and return alpha vectors and associated actions. Usage read_policyx(file = "output.policyx") Arguments file name of the policyx file to be read. Value a list, first element "vectors" is an n_states x n_vectors array of alpha vectors, second element is a numeric vector "action" of length n_vectors whose i’th element indicates the action corresponding to the i’th alpha vector (column) in the vectors array. Examples f <- system.file("extdata", "out.policy", package="sarsop", mustWork = TRUE) policy <- read_policyx(f) sarsop sarsop Description sarsop wraps the tasks of writing the pomdpx file defining the problem, running the pomdsol (SAR- SOP) algorithm in C++, and then reading the resulting policy file back into R. The returned alpha vectors and alpha_action information is then transformed into a more generic, user-friendly repre- sentation as a matrix whose columns correspond to actions and rows to states. This function can thus be used at the heart of most pomdp applications. Usage sarsop( transition, observation, reward, discount, state_prior = rep(1, dim(observation)[[1]])/dim(observation)[[1]], verbose = TRUE, log_dir = tempdir(), log_data = NULL, cache = TRUE, ... ) Arguments transition Transition matrix, dimension n_s x n_s x n_a observation Observation matrix, dimension n_s x n_z x n_a reward reward matrix, dimension n_s x n_a discount the discount factor state_prior initial belief state, optional, defaults to uniform over states verbose logical, should the function include a message with pomdp diagnostics (timings, final precision, end condition) log_dir pomdpx and policyx files will be saved here, along with a metadata file log_data a data.frame of additional columns to include in the log, such as model param- eters. A unique id value for each run can be provided as one of the columns, otherwise, a globally unique id will be generated. cache should results from the log directory be cached? Default TRUE. Identical func- tional calls will quickly return previously cached alpha vectors from file rather than re-running. ... additional arguments to appl. Value a matrix of alpha vectors. Column index indicates action associated with the alpha vector, (1:n_actions), rows indicate system state, x. Actions for which no alpha vector was found are included as all -Inf, since such actions are not optimal regardless of belief, and thus have no corresponding alpha vectors in alpha_action list. Examples ## Takes > 5s ## Use example code to generate matrices for pomdp problem: source(system.file("examples/fisheries-ex.R", package = "sarsop")) alpha <- sarsop(transition, observation, reward, discount, precision = 10) compute_policy(alpha, transition, observation, reward) sim_pomdp simulate a POMDP Description Simulate a POMDP given the appropriate matrices. Usage sim_pomdp( transition, observation, reward, discount, state_prior = rep(1, dim(observation)[[1]])/dim(observation)[[1]], x0, a0 = 1, Tmax = 20, policy = NULL, alpha = NULL, reps = 1, ... ) Arguments transition Transition matrix, dimension n_s x n_s x n_a observation Observation matrix, dimension n_s x n_z x n_a reward reward matrix, dimension n_s x n_a discount the discount factor state_prior initial belief state, optional, defaults to uniform over states x0 initial state a0 initial action (default is action 1, e.g. can be arbitrary if the observation process is independent of the action taken) Tmax duration of simulation policy Simulate using a pre-computed policy (e.g. MDP policy) instead of POMDP alpha the matrix of alpha vectors returned by sarsop reps number of replicate simulations to compute ... additional arguments to mclapply Details simulation assumes the following order of updating: For system in state[t] at time t, an observation of the system obs[t] is made, and then action[t] is based on that observation and the given policy, returning (discounted) reward[t]. Value a data frame with columns for time, state, obs, action, and (discounted) value. Examples m <- fisheries_matrices() discount <- 0.95 ## Takes > 5s if(assert_has_appl()){ alpha <- sarsop(m$transition, m$observation, m$reward, discount, precision = 10) sim <- sim_pomdp(m$transition, m$observation, m$reward, discount, x0 = 5, Tmax = 20, alpha = alpha) } write_pomdpx write pomdpx files Description A POMDPX file specifies a POMDP problem in terms of the transition, observation, and reward matrices, the discount factor, and the initial belief. Usage write_pomdpx( P, O, R, gamma, b = rep(1/dim(O)[1], dim(O)[1]), file = "input.pomdpx", digits = 12, digits2 = 12, format = "f" ) Arguments P transition matrix O observation matrix R reward gamma discount factor b initial belief file pomdpx file to create digits precision to round to before normalizing. Leave at 4 since sarsop seems unable to do more? digits2 precision to write solution to. Leave at 10, since normalizing requires additional precision format floating point format, because sarsop parser doesn’t seem to know scientific notation Examples m <- fisheries_matrices() f <- tempfile() write_pomdpx(m$transition, m$observation, m$reward, 0.95, file = f)
www_nic_funet_fi_c++opas
free_programming_book
Unknown
# :n hämmästyttävä maailma ## :n hämmästyttävä maailma ### - hassun hauska C++-opas - copyright (c) 1997-2002 <NAME> Tervetuloa vaatimattoman C++-oppaani pariin. Ihan näin aluksi varottaisin, että tämä sepustus ei ole eikä haluakaan olla perinteinen ohjelmointiopas. Siis jos etsit kompaktia ja koherenttia opasta C++-ohjelmoinnin oleellisten pääkohtien opiskeluun, niin en lupaa paljoa. Hieman kärjistäen voisi sanoa, että minä en yritäkään kertoa mikä C++-kieli on - vaan kuinka sinä voit sitä oppia. C++-kieli on niin mammuttimainen kokonaisuus, että harva sitä ihan kokonaan hallitsee. Mutta vaikka tyylini onkin melko vapaamuotoinen, niin silti olen pyrkinyt kertoman vain totuuden ja koko totuuden. Erityinen tavoite oppaassani on ollut se, että en pelkästään kerro miten joku toimii, vaan mihin ja miten sitä kannattaa käyttää - esimerkkien ja käytännön kokemusten terästämänä. Tieteellinen kieli tarjoaa valtavan sanaston asioiden ylimalkaiseen käsittelyyn, joten arkikielen ei tarvitse olla ainakaan este ytimekkäälle jutustelulle. Sisällysluettelossa tähdellä merkityt kappaleet ovat hieman haastavampia. Aluksi suosittelen lukemaan Yleistä-osion. HUOM! Lue ainakin Yleistä-osion ensimmäinen kappale, se sisältää tärkeää "päivitystietoa"! * Yleistä * Perusteet * Asiaan * Syöttö ja tulostus * Muuttujat * Liukuluvut ja lukujen merkitseminen * Tyyppimuunnos * Taulukot * Kuinka mokata taulukoiden kanssa * sizeof ja muuttujat * Kommentoiminen * Matemaattiset operaattorit * Laskutoimitukset * Etuliiteoperaattorit * Aivojumppaa: uhmaako a = a + 1; todellisuuden luonnetta? * Rakenteet * Ehtolauseet * Jos ei niin sitten.. * Toistorakenteet: while ja for * Rakenteiden yhdistely ja do..while * break ja continue * switch..case -rakenne * Nimiavaruudet * * Funktiot * Funktiot * Funktion oletusparametrit * Funktioiden uudelleenmäärittely * main()-funktio * Lohkot, lauseet ja lausekkeet * Muuttujien näkyvyys * Esikääntäjä * Esikääntäjän perustemput * Vakiot oikeaoppisesti * typedef * Lueteltu tyyppi: enum * Esikääntäjä tappaa talossa ja puutarhassa * Makrot * Elegantti vaihtoehto makroille * Ei vara venettä kaada - eikä assert() toimivaa ohjelmaa * Osoittimet * Viittaukset * Osoittimet * Salattu totuus taulukoista ja moninkertaisista osoittimista * Kun viittaillaan, osoitellaan ja tökitään miten sattuu * Osoittimet funktioihin * Funktio-osoitintaulukot ja funktio-osoittimet parametreina * Oliot ja luokat * Oliot ja luokat * Olio on tiedot ja toiminnallisuus * Tiedon kapselointi * Muodostin- ja tuhoajafunktiot * Operaattoreiden ylikuormittaminen * coutin todellinen luonne * Osoitin jäsenfunktioon * Muistinhallinta * Muistin varaaminen ja vapauttaminen * Taulukot ja oliot muistia varaamalla * Varo vaanivaa vaaraa * Periytyminen * Luokkahierarkiat * Muodostinfunktiot * Moniperintä * Virtuaaliset funktiot * Polymorfismi isolla P:llä * Perinteinen standardikirjasto * Merkkijonot * atoi ja itoa * Sattumia soppaan * qsort * Trigonometria * Mallit ja geneerinen ohjelmointi * Tee-se-itse: linkitetty lista * Mitä mallit oikeasti ovat? * Mallien spesialisointi * Mallit käytäntöjen parametrisoijana * Mallien monimutkainen käyttö * Mitä mallit abstraktisti ovat? * * Geneerinen ohjelmointi * * STL: Lyhyenläntä oppimäärä * Standard Template Libraryn idea * Tietorakenteet ja lähes tietorakenteet * Iteraattorit * Algoritmit * Virrat * Numerot ja matematiikka * Oliosuunnittelu * Luokan kaksi liittymää * Ohjelmoinnin ihmissuhdeteoria * Oliosuunnittelun pyhä kolminaisuus * Oliomallinnuksen heikkoudet * Numeerinen matematiikka * Sattuu ja tapahtuu - satunnaislukugeneraattorit * Sekalaista * Hyvän koodin kirjoitus * Muistialueet * C++:n varatut sanat * volatile ja register * Komentoriviparametrit * Sanasto * Kysymykset ja vastaukset * Mistä löydän lisätietoa? Kaikki tämä materiaali löytyy myös paketista cppopas.zip (lähes vastaava kuin online-versio). Oppaan tekijää voi lähestyä sähköpostittamalla osoitteeseen aleksi.kallio (at) iki.fi. Viimeisin päivitys tehty 23.11.2004. Koko sisältöä ei ole käyty läpi huolella pitkiin aikoihin... # Tärkeä huomautus Aika kuluu ja kellot paukkaa. Opas on kirjoitettu omana aikanaan ja C++ on elänyt omaa elämäänsä. Perusasiat ovat pysyneet melkolailla ennallaan, mutta oppaassa esitetään asioita, jotka eivät ole väärin, mutta eivät enää se oikea ja hyvä tapa kirjoittaa C++-ohjelmia. Nämä asiat ovat nimiavaruudet ja main-funktion paluuarvo. Molemmista kyllä kerrotaan vallitseva totuus, mutta sitä ei noudateta kaikissa esimerkkiohjelmissa. Esimerkkien päivittäminen on niin iso urakka, että minulla ei siihen ole aikaa - mutta vapaaehtoisia otetaan vastaan. Nykymaailmassa oikea tapa tehdä Hello World -ohjelma on: > #include <iostream> int main() { std::cout << "Hello world!" << std::endl; return EXIT_SUCCESS; // tämä rivi ei ole välttämätön } Lisäksi tässä oppaassa oleva sisältö keskittyy enemmän C++:n C-henkiseen osuuteen. Nykyaikainen C++-ohjelmointi painottuu enemmän olioihin ja luokkiin, joita ei tässä oppaassa käsitellä riittävän kattavasti. # Mitä tarvitaan, että voi aloittaa C++-ohjelmoinnin? Lyhyt vastaus Tee kuten täällä sanotaan:http://csjava.occ.cccd.edu/~gilberts/devcpp5/ Pidempi vastaus: Näiden esimerkkien ajamiseen tarvitaan asennettu ja toimiva C++- kääntäjä. Mutta näiden esimerkkien ja oppien pitäisi toimia kaikilla ANSI-standardin mukaisilla C++- kääntäjillä (huomaa kuitenkin edellisen kappaleen lisäys). Lista ilmaisista kääntäjistä löytyy osoitteesta http://www.thefreecountry.com/compilers/cpp.shtml. Windows-maailmaan voisi suositella helppokäyttöiseksi vaihtoehdoksi Dev-C++-kääntäjää. Linuxissa luonnollinen valinta on GCC, joka tulee myös käyttöjärjestelmän mukana. Windowsissa GCC:ta voi ajaa myös Cygwin UNIX-emulaattorin avulla. Ohjeet asennukseen löytyvät osoitteesta http://www.cygwin.com/cygwin-ug-net/setup-net.html. # Mikäs juttu tämä on? Tämän tuhkimotarinan juuria kaivellessa pitää porautua hyvin syvälle historian pölyyn ja nöyhtään. Joskus aikojen alussa, kun miehet vielä olivat rautaa ja laivoilla ei saanut verovapaata viinaa, pyysi <NAME> minua kirjoittamaan ohjelmointisivuillensa oppaan C++-ohjelmoinnin alkeisiin. No, minä tein työtä käskettyä. Opas oli melko vajaavainen, mutta jaksamista ei riittänyt sen täydentämiseen. En myöskään osannut kunnolla C++-kieltä, mikä vaikuttaa toisena hyvin raskaana seikkana laiskuuden lisäksi. Myöhemmin, kun jopa kaksi ihmistä olivat ottaneet minuun yhteyttä oppaan puitteissa, jatkui oppaan kirjoittaminen valtavan menestyksen hurmioittamana. Nykyään pidän opasta näillä www-sivuilla, joten se voi nuorekkaan dynaamisesti kehittyä päivittäin, tai kerran kahdessa vuodessa - riippuen joutoaikani määrästä. Lukijoitakin nykyään on kertynyt jopa niin monta, että niitä ei yhden käden sormilla lasketakaan. Palautettakin on tullut ja mikäs siinä, kun tiimi toimii ja palautetta tulee. Oma aikani on vaan sen verran rajallinen, että yritän aina poimia vain pahimmat virheet ja puutteet ja korjata ne. Mutta silti palautetta otetaan kyllä mielellään vastaan. # Voinko minä nyt lukea tätä? No mikä ettei. Opastus on suunnattu pääasiassa nuorille aloittelijoille, mutta todistettavasti myös eräät jo kunnioitettavan iän saavuttaneet ovat tykänneet lähestymistyylistäni. Siitä olenkin hyvin ylpeä - onhan se sukupolvi jo useaan otteeseen tuomittu täysin kyvyttömäksi oppimaan mitään tekstinkäsittelyn alkeita vaativampaa tietokoneenkäyttöä. Asiat ovat likipitäen etenemisjärjestyksessä, aloittelijan kannattaa lukea kappaleita järjestyksessä. Tähdellä merkityt kappaleet ovat hieman haastavampia, joten jos siltä tuntuu voi niiden yli hypätä ja palata tutkiskelemaan niitä sitten myöhemmin. Tarpeen mukaan tekstiin on ripoteltu kehotuksia lukea pätkiä muista aihealueista, lähinnä Sekalaiset-kohdasta. Loppupuolella ei enää johdattalua ole niin paljon - kai jo kaiken kokenut C++-ohjelmoija osaa itsekin ajatella. Harva asia on yhtä huvittavaa kuin "Opi C++-ohjelmointi 21 päivässä" -tyylinen pelleily. Mikäli ostaa sellaisen kirjan ja lukee yhden kappaleen päivässä, niin 21 päivän päästä ei kyllä voi sanoa osaavansa C++-kieltä. Käytäntö on hyvä opettaja, varsinkin kun pitää oppia jotain teoreettista, kuten C++. Tämän oppaan nimi voisikin olla "Opi C++-ohjelmointi hyvin pitkän ajanjakson kuluessa" tai paremminkin "Opiskele C++:aa, vaikka et sitä ikinä täysin opikaan". Välillä kannattaa jättää koko opas ja tehdä jotain oikeasti. Sitten voi taas palata katsomaan, mitä kaikkea virheitä tulikaan tehdyksi. C++ on todennäköisesti maailman mammuttimaisin ohjelmointikieli, joten sen opiskelu kattavasti ottaa aikansa. # Lainopillinen osio Kuten normaaliin käytäntöön kuuluu, en ota sivuista rahaa sen enemmän kuin vastuutakaan. Kaikki sivuilla oleva materiaali on ilmaiseksi käytössäsi. Tekstiin minulla on tietenkin normaalit tekijänoikeudet, joten sitä lainattaessa pitää minut aina mainita tekstin kirjoittajaksi. Täältä löytyvien ohjelmien ja ohjelmanosasten suhteen luovun täysin tekijänoikeuksistani, joten niitä saa venyttää ja paukuttaa ihan miten haluaa. En ota mitään vastuuta tekstistä tai ohjelmista koituvasta harmista. Vaikea kyllä on kuvitella mitä harmia niistä voisi koitua - seonnutta vuorokausirytmiä lukuunottamatta. # Ohjelmoinnista Ohjelmointi on kehittävä harrastus ja ihan hauskaa myös yleensä. Mutta aika vaikeaa se on, joten ei kannata odottaa oppivansa guruksi parissa viikossa - tai edes vuodessa. Mutta kun sitä tarpeeksi osaa, alkaa näpyttely tuntua aina vaan mukavammalta, joten pitää jaksaa yrittää. Ennen pitkää huomaa, että vain mielikuvitus on rajana - ja sen takia ohjelmoijat yleensä hommasta pitävätkin, omien mielikuvitusmaailmojen suunnittelu ja toteuttaminen käytönnössä on mukavaa puuhaa. Ja sen myös sanon, että nykyään ohjelmointibisnes on melko hurja ala - oli lama tai ei. Töitä saa helposti vaikka asuu kaukana korvessa ja on alan koulutusta vailla oleva pojankloppi tai tytönhuitake. # Kääntäminen C++ on hieman ihmiskieltä muistuttava kieli, joka tahtoo sanoa sitä, että tietokone ei sitä semmoisenaan ymmärrä. Joten silloin tarvitaan kääntäjää. Se tulkitsee C++-lähdekoodin ja muuntaa sen konekieleksi (.exe tms..), jotta konekin sen ymmärtää. Idea siis on: meillä on tekstimuotoinen C++-koodi, kääntäjä lukee sen ja korvaa kaikki ilmaukset kirjastoistaan löytyvillä binäärikoodeilla, joita sitten prosessori osaa suorittaa. Binäärikoodit tietenkin riippuvat ihan siitä, missä ympäristössä ja prosessorissa ohjelma toimii. C++-ohjelma on kuitenkin aina sama. Tässä oppaassa opetetaan käyttämään C++:n standardiominaisuuksia. On kuitenkin olemassa ympäristöjä, joissa niiden käyttäminen ei ole samalla tavalla mahdollista - siis vaikka oppaassa esitetään vain standardin mukaista C++-koodia, niin aivan jokaisesta C++-kääntäjästä se ei mene läpi. Esimerkkinä mainittakoon Windows-ohjelmointi - ikkunapohjaisessa maailmassa ei ole vastineita kaikille C++:n konsolipohjaisille ominaisuuksille. Vaadittavat muutokset ovat kuitenkin pieniä ja kielihän on aivan sama - ainoastaan esitettävä asia hieman erilainen. Windows-kääntäjästäkin saa oppaan esimerkkiohjelmat menemään sellaisenaan läpi, kun asettaa sen kääntämään konsolitilaan (console mode application). # C++:n historia Aivan ensimmäisiä tietokoneita ohjattiin kääntelemällä vipuja, joista bitit ovat tavallaan periytyneet. Sitten tulivat transistorit ja mikropiirit, jotka mahdollistivat nykyisen kokoiset tietokoneet. Ennen ne olivat olleet huoneen kokoisia. Aluksi koneita ohjattiin niiden omalla konekielellä, kirjoittamalla suoraan niiden ymmärtämää kieltä. Se oli kuitenkin vaikeaa ja virheiden etsiminen oli todella työlästä. Niinpä keksittiin Assembly-kieli (Kyllä, se on Assembly. Assembler tarkoittaa Assembly-kääntäjää.). Assemblyssa, tutuille Assyssa, käytettiin yhä konekieltä, mutta muistipaikoille voitiin antaa nimiä eli käyttää muuttujia ja myös käskyt olivat inhimillisempiä. Silloin tarvittiin kuitenkin kääntäjä, joka kääntää Assembly-koodin puhtaaksi konekieleksi. Sitten tuli korkeamman tason kieliä, kuten legendaarinen Basic, Pascal, C, Cobol, Fortran - ja vihdoin C++. Kielet erkanevat koko ajan koneesta ja konekielestä, mikä teki niistä helpommin käytettäviä (ja hitaampia). # C++-kieli C++-kieli on uudistettu versio C-kielestä (nii-in, C+ kieltä ei ole olemassa!). Perusasiat on hoidettu samalla mallilla kuin C-kielessä, mutta voisi sanoa että C++ menee "pidemmälle". C++ kieli nimittäin tarjoaa paljon uutta mitä C-kielessä ei ole. C kieltä voi sotkea C++-ohjelmien sekaan, ne toimivat kyllä yhteen, mutta erityisen suositeltavaa se ei ole. Eikä sille kyllä ole tarvettakaan. C++ on yleiskäyttöinen ohjelmointikieli, joka sopii melkein kaikkeen mitä tietokone voidaan ohjelmoida tekemään. C++ on korkean tason kieli, tarkoittaen että sillä ei ole hirveästi yhteistä itse tietokoneen konekielen kanssa. Se tekee siitä melko mukavan käyttää, mutta toisaalta tietenkin hitaamman kuin puhdas konekieli. Nykyajan hyvin optimoivilla kääntäjillä ei ero kuitenkaan ole kovin dramaattinen. Uudempiin kieliin, kuten Java ja C#, verrattuna C++ on laiteläheinen ja nopea. Nopeutta vaativissa C++-ohjelmissa voidaan kriittiset kohdat, siis ne kohdat joita rullataan suurimman osan ajasta, kirjoittaa puhtaalla konekielellä, mutta yleensä ottaen konekielen käyttö C++:n seassa lähinnä sotkee muuten niin siistiä ohjelmaa. C++ on oliopohjainen kieli. Ennen muinoin kielet olivat proseduraalisia, siis pääosaa esittivät toiminnot. Ohjelma rakennettiin funktioista, toiminnoista. Yksi toiminto luki näppäimen painalluksen, toinen siirsi tietoa paikasta toiseen. Sitten huomattiin, että isoissa ohjelmissa homma ei enää pelaa. Niinpä keksittiin oliopohjaisuus. Oliopohjaiset ohjelmat koostuvat olioista, kuinkas ollakaan. Olio esittää jotain ohjelmaan liittyvää kokonaisuutta; räiskintäpelissä vaikka yksi hirviö voisi olla olio. Oikeaoppiset C++-ohjelmat perustuvat olioiden vuorovaikutukseen. Toiminnot ja tieto on yhdistetty niihin olioihin joihin se liittyy. Tietotyypeillä on myös tärkeä rooli C++-kielessä. C++ on hyvin tarkka tietotyyppien suhteen. Aluksi se tuntuu vähän hankalalta, mutta suuremmissa ohjelmissa hyöty on melkoinen. Kun C++-kääntäjä valvoo tietotyyppien oikeaa käyttöä, on se melkoinen työmäärä pois ohjelmoijalta. Ohjelmointikielien kehitys ja laitteistosta erkaneminen on jatkunut C++:n jälkeen. Merkittävin askel on ollut virtuaalikoneen päällä toimivat kielet, ensin Java ja sitten Microsoftin .Net-alusta ja C#-kieli. Virtuaalikoneeseen perustuvat kielet eivät toimi suoraan tietokoneen prosessorissa, vaan virtuaalikoneessa, joka toimii natiivina eli on suoraan yhteydessä prosessoriin. Koska laitteen ja ohjelman välissä on virtuaalikone, voidaan ohjelmaa hallita paljon paremmin. Ja koska virtuaalikoneen voi toteuttaa lukemattomille eri tietokoneympäristöille, toimivat myös ohjelmat suoraan eri ympäristöissä. Javan ja C#:n opiskelu C++:aa osaaville on melko vaivatonta, koska näiden kielten kieliopit ovat hyvin samankaltaisia. # Merkinnöistä Olen kirjoittanut tämän oppaan tietokonefriikkinä, en kielifriikkinä (joka tietyssä määrin olen myös). Joten esimerkiksi olioiden ja funktioiden nimet on kirjoitettu pienellä, myös lauseen alussa. Asia on katsos niin, että esimerkiksi syötettä lukeva olio cin kirjoitetaan aina ohjelmoidessa pienellä. Cin:n voi tietenkin kirjoittaa lauseen alussa isolla, mutta isolla kirjoitettu Cin ei toimi ohjelmissa, koska C++ erottelee isot ja pienet kirjaimet; MeidanTalo, Meidantalo ja meidantalo ovat C++-kääntäjän silmissä eri asioita. Koska englanti on ohjelmoinnin kieli ja koska C++ on suunniteltu englannin pohjalta ja koska lähes kaikki oheiskirjastot mitä maailmasta löytyy ovat englanniksi, ovat myös tämän oppaan laajemmat esimerkkiohjelmat englanniksi. Aluksi ajattelin laittaa kaiken C++-kielisen osuuden englanniksi, mutta lopulta päätinkin jättää lyhyemmät esimerkit suomeksi. Isommat esimerkkiohjelmat ja yleensäkin loppupuolella olevat kehittyneemmät ohjelmaesimerkit voivat olla englanniksi. Olen myös lisännyt uusien termien perään mitä ne ovat englanniksi (in english), jotta opit tärkeimmät termit sillä tärkeimmällä kielellä heti aluksi. Sanastosta löytyvät myös englanninkieliset termit. Jos aikoo oppia ohjelmoimaan ilman säädyllistä englanninkielen taitoa, on tilanne sama kun opettelisi uimaan ilman käsiä. Varatut sanat, siis C++:n "käskyt", olen kirjoittanut paksunnettuna. Paitsi silloin jos niitä toistetaan niin usein, että niiden paksuntaminen aiheuttaisi jo boldofobiaa. # Mainosmaakarin toivomus Kun yön yksinäisinä tunteinä näpyttelen opasta, juolahtaa joskus, tosin melko harvoin, mieleeni se seikka, että lukeekohan kukaan tätä tekstiä ikinä. No, sen varjolla voin sitten keksiä mitä tahansa mauttomia vitsejä, kun kukaan ei niitä kuitenkaan lue. Kuitenniin, kun olen nähnyt ainakin jonkun verran vaivaa tämän oppaan eteen, niin olisi kiva että joku sitä lukisikin. Tai ainakin kokeilisi, kun eihän tämä lysti teille maksa yhtään mitään. Siksi siis nyt tämä mainoshumpuuki. [makea ääni päälle] Oletko ohjelmointihenkinen nuori? Tai ehkä jo varttuneempi teknonörtti? Mikä olisikaan siistimpää kun julistaa C++-vakaumuksestasi omilla kotisivuillasi? Nyt nimittäen me tarjoamme kahta supermageeta C++-banneria aivan vapaasti käyttöösi. Näin voit tukea monia uljaita aatteita, kuten ilmaisuuden vakaa periaate, ohjelmoinnin komea doktriini ja C++:n jalo aate. Erotu massasta - ja pian massat seuraavat sinua. Vaikka tämmöisellä HTML-koodin jämällä saat bannerin kivasti paikalleen: > <p align="center"><a href="http://www.funet.fi/c++opas"> <img src="http://www.funet.fi/c++opas/banneri.gif" border="0" width="400" height="40" alt="C++-oppaan banneri"></a></pKun haluat alemman bannerin, laita "banneri.gif" tilalle "banneri2.gif". Kuva ladataan oppaan www-levytilasta, siis sinun ei tarvitse sitä imuroida. Kuvat eivät ole mitään isoja, molemmat alle 10 kt. Osoite on siis http://www.funet.fi/c++opas. Osoitteen pitäisi pysyä muuttumattomana. Tietenkin on täysin sallittua imuroida banneri ja sijoittaa se oman palvelimen levytilaan. # Kiitokset Minä olen niitä MBnet-sukupolven ihmisiä, jotka ovat kasvaneet MBnetin viestialueiden parissa. Tosin en MBnetiä ole käyttänyt enää moneen vuoteen. Kuitenkin, paljon kiitoksia tulisi kai lähettää MBnetin ylläpidolle ja eritoten alueen 8 - PC-Ohjelmointi kaikille guruille ja muille avustajille. Tärkeä tekijä on ollut myös Jesse Libertyn kohtalaisen kattava (tosin tylsä) Opeta Itsellesi C++-ohjelmointi -kirja, joka toimi aloittelevan matkamiehen oppaana samotessani C++-kielen autiomaita. Nykyään en kyllä edes muista missä tuo kirja on, ei ainakaan kirjahyllyssäni. <NAME>in järkelemäinen The C++ Programming Language on nykyään tärkein tietolähteeni, parin WWW-sivun lisäksi. # Palautetta Asiaa oppaassa on jo ihan kohtalaisesti, vaikka paljon vielä puuttuukin. Kokonaisuus on ehkä vieläkin vähän epätasainen ja joitakin oleellisia asioita on "unohtunut" välistä pois. Niinpä toivoisinkin jonkun aloittelijan antavan palautetta siitä, mitä pitäisi selittää paremmin ja mikä asia on unohtunut melkein kokonaan. Mukana tulee jonkun verran ohjelmakoodia, joka on testattu joko Watcom C++- tai GCC-kääntäjällä. Ei ole kuitenkaan mikään ihme, vaikka mukana tulevien ohjelmien seassa olisikin virheitä. Jos siis et saa niitä toimimaan, älä syytä itseäsi, vaan lähetä minulle sähköpostia (jos lähetät lähdekoodia, niin pistä se viestin rungossa eikä liitteenä, koska niin se on helpompi lukea). Yleensäkin kaikki asiavirheet, puutteet, epäselvyydet ja muut kammottavuudet kannattaa ilmoittaa minulle, niin ne tulevat sitten "pian" (pian on tässä tapauksessa hyvin liukuva käsite) korjatuksi. Onhan se jo ihan tarpeeksi, että jaksan kirjoittaa tätä tekstiä, en kai minä sitä sentään enää jaksa uudestaan läpi lukea! Otan myös mielellään vastaan asiavirheitä koskevaa palautetta kokeneemmilta ohjelmoijilta. Opas on ollut melko ankarassa syynissä Usenetin sfnet.atk.ohjelmointi uutisryhmässä, joten mitään oikeita asiavirheitä ei pitäisi olla. Mutta eihän mikään ole mahdotonta. Myös mielipideasioista saa ruveta väittelemään, jos siltä tuntuu. On tosin hyvin epätodennäköistä että muuttaisin sen seurauksena opasta, mutta maininnan tästä toisesta ajattelutavasta kyllä voin lisätä aloittelijoiden iloksi. Joten: kyselyjä, kehuja, haukkuja, ehdotuksia, kommentteja ja ylistysvirsiä - siis ihan mitä vaan - otetaan vastaan sähköpostitse : (katso alkusivua, en laita sähköpostiosoitetta tähän kun se kuitenkin muuttuu ja jää päivittämättä) # Asiaan Sitten suoraan asiaan ja ensimmäiseen C++-ohjelman esimerkkiin: > #include <iostream.h> void main() { cout << "Hello world!"; } Kyseessä on äärettömän klassinen ohjelma. Se tulostaa ruudulle "Hello world!" Ruvetaanpa tutkimaan ohjelmaa hieman syvällisemmin. Ensimmäisella rivillä käytetään esikääntäjän (preprocessor) käskyä. Sen erottaa #-merkistä alussa. Esikääntäjä on ohjelma, joka käsittelee lähdekoodin #-alkuiset kohdat ennen kuin oikea kääntäjä pääsee siihen käsiksi. Kääntäjistä ja kääntämisestä kerroin Yleistä-osiossa. Include on englantia ja tarkoittaa sisällytä. Ja nerokkaasti C++:ssa sillä on sama tarkoitus. #include <iostream.h> nimittäin sisällyttää iostream.h nimisen tiedoston tuolla kohdalle. Eli aito kääntäjä (compiler) saa tiedoston sellaisena, että #include <iostream.h> tilalla on tiedoston iostream.h sisältö. iostream.h sisältää tulostukseen ja syöttöön liittyviä toimintoja, kuten cout. C++:ssä on vain parikymmentä käskyä, koska lähes kaikki tapahtuu näiden otsikkotiedostojen (.h) sisältämien toimintojen avulla. Sisällyttämällä poimitaan ne toiminnot, mitä kussakin ohjelmassa tarvitaan. Sitten seuraavalle riville. Siellä lukee: > void main() Tässä määritellään pääfunktio. Jokaisessa C++-ohjelmassa pitää olla main()-osio. void tarkoittaa että main() osa ei palauta arvoa, mistä meidän ei vielä tarvitse välittää sen enemmän kuin suluistakaan. (Olen saanut melko paljon kritiikkiä tässä esitellystä tavasta määritellä main(). Tässä esitetty tapa on kuitenkin aivan oikea, tosin "oikeissa" ohjelmissa olisi kiltti tapa palauttaa paluuarvo. Tätä kysymystä käsittelenkin myöhemmin Funktio-osiossa.) Sitten eteenpäin. {-merkki aloittaa main()-osion, josta löytyykin vanha tuttu, cout. cout on olio (object), josta sinun ei tarvitse myöskään välittää vähään aikaan. Sinun tarvitsee tietää vain, että coutia käytetään tekstin tulostamiseen. coutin jälkeen tulevat <<- ohjausmerkit ja haluttu teksti lainausmerkeissä. Jokaisen ohjelmarivin C++:ssa päättää ;-merkki, jonka unohtaminen voi aiheuttaa todella kummallisia virheitä. Kannattaa siis olla tarkkana: jos kääntäjä valittaa jostain rivistä, josta et löydä mitään virhettä, kannattaa tarkistaa onko edellisiltä riveiltä jäänyt uupumaan ;-merkki. Lopuksi vielä päätetään main()-osio toisin päin olevalla aaltosululla, eli }-merkillä. Sitäkään ei tule unohtaa. Siinäpä se. # Syöttö ja tulostus Ohjelma, joka pelkästään tulostaa kaikenlaisia rivouksia ruutuun käy pitemmän päälle hieman köyhäksi, joten otetaanpa sitten jotain muuta mukavaa mukaan. Eli esimerkin voimin taas: > #include <iostream.h> void main() { int luku; cout << "Anna luku" << endl; cin >> luku; cout << "Pöh, ei " << luku << " nyt mitenkään kummoinen ole."; } int luku; asti kaiken pitäisi olla pässinlihaa. Mutta sitten alkaa tapahtua, pidä laidoista kiinni! Ensin luodaan int-tyyppinen muuttuja (variable). Tyypeistä sitten myöhemmin. (äsh, tälle pitää kehittä joku lyhenne. Vaikka TSM, Tästä Sitten Myöhemmin. OK?) int-tyyppinen muuttuja pystyy tallentamaan yhden kokonaisluvun. Muuttujia käytetään jonkin tiedon säilömiseen. Käytännössä ne ovat vain kohtia muistista, joille on annettu inhimillisempi nimi. Seuraavana tuleva cout on olio - hetkonen, mikä himputti on olio? No, se selviää kun on sen aika. cout on siis.. härveli, jolla tulostetaan tavaraa ruudulle. Sitten mukaan tulee coutin kaveri, cin. Se toimii coutin vastaparina: kun cout tulostaa, cin lukee. Tässä tapauksessa luetaan luku-muuttujaan. Sitten vielä sen arvo tulostetaan. Muuttujat pitää erottaa tekstistä <<-merkein ja teksti pitää ympäröidä lainausmerkein. Lopussa on endl, joka tarkoittaa end line. Eli siinä tulee rivinvaihto. Tekstit, muuttujat ja endl:n tyyliset ohjauskäskyt pitää erottaa toisistaan <<-merkein. Jos olet ollut tarkkana, olet ehkä huomannut että cinin nuolet osoittavatkin toiseen suuntaan. Nuolien suunta on helppo muistaa siitä, että ne osoittavat aina siihen suuntaan mihin tieto kulkee. Eli coutissa tieto kulkee näyttöön, jota tässä edustaa cout, ja tällöin nuolet ovat coutin suuntaan. cinissa taas tieto kulkee muuttujaan, jolloin nuolet osoittavat muuttujaan päin. # Muuttujat Nyt sitten niistä kauan kaivatuista muuttujista ja tyypeistä. Jotta muuttujaa voidaan käyttää, pitää se määritellä. Jotain alkeellista Basicin versiota aiemmin käyttäneestä se voi tuntua vähän hankalalta, mutta on itseasiassa todella hyvä asia, koska näin ei pääse vahingossa käyttämään olematonta muuttujaa. Muuttuja määritellään näin: tyyppi nimi; Eli tyyppi kertoo minkä tyyppistä tietoa muuttuja sisältää (TSM, Tästä Sitten Myöhemmin) ja nimi minkä niminen muuttuja on. Yleensä muuttuja kannattaa alustaa (initialise) jollakin arvolla luonnin yhteydessä. Niinpä luomme tässä ika-nimisen kokonaisluvun sisältävän muuttujan ja laitamme siihen arvon 0. > int ika = 0; Alustaminen on todella tärkeää: jos muuttujaa ei alusteta, siinä voi olla mitä tahansa roskaa. Nimeksi kelpaa mikä tahansa yhteen kirjoitettu tekstipötkö, kunhan se ei sisällä ääkkösiä, ei ala numerolla ja ei ole varattu sana. Varattu sana tarkoittaa C++-kielessä sanaa, jolla on jo jokin erityinen merkitys ohjelmointikielessä. Eli varattu sana on "komento". Lista varatuista sanoista löytyy Sekalaista-kohdasta. Nimi saa sisältää numeroita, mutta ei saa alkaa numerolla. Myös alaviivaa (_) saa käyttää vaikka nimen alussa. Tosin ihan nimen alkuun en laittaisi alaviivaa, koska muuttuja helposti sekottuisi joihinkin kääntäjän muuttujiin, jotka alkavat myös alaviivalla. Ja vielä yritän syövyttää tätä aivokudoksiisi: pieni ja iso kirjain ovat eri asia - muuttujat painekattila, paineKattila, PaineKattila ja PAINEKATTILA ovat kaikki eri muuttujia. Sitten ne tyypit: > int kokonaisluku char merkki(kirjain) float desimaaliluku double pidempi desimaaliluku Sitten osaa näistä tyypeistä voi vielä ryydittää etuliitteillä: > long suurempi luku short pienempi luku unsigned etumerkitön(voi siis olla vain positiivinen) ..ja vielä pari muuta joista sinun ei tarvitse välittää. Eli lopulta saamme tämmöisen listan: Tyyppi | Koko(tavuina) | Arvoalue | | --- | --- | --- | int | 2 | -32768..32767 | unsigned int | 2 | 0..65535 | short int | 2 | -32768..32767 | unsigned short int | 2 | 0..65535 | long int | 4 | -2147483648..2147483647 | unsigned long int | 4 | 0..4294967295 | char | 1 | -128..128 (ASCII-merkit) | unsigned char | 1 | 0..255 (ASCII-merkit) | float | 4 | 1.2e-38..3.4e38 | double | 8 | 2.2e-308..1.8e308 | bool | tosi tai epätosi | Muuttujien arvoalueet vaihtelevat kääntäjittäin. Tai oikeastaan lähinnä int-tyypin arvot vaihtelevat. Vanhemmissa PC:n real mode -kääntäjissä int on 2 tavua, mutta uudemmissa protected mode -kääntäjissä 4 tavua. Tällöin long int ja int ovat saman kokoisia. short int on kuitenkin kaksi tavua. Ainakin DJGPP:ssä on myös erikoisempi tyyppi long long int, joka on 128-bittiä eli 16 tavua. Kun ajatellaan näitä tietotekniikan peruskäsitteitä, eli bittejä (bit), tavuja (byte) ja sanoja (word) (jälkimmäinen ei kyllä ole ihan peruskäsite, mutta olet ehkä kuullut sen), niin unsigned char vastaisi tavua, joka koostuu 8 bitistä. 2-tavuinen int olisi sana ja long int kaksoissana (double word). Yksittäistä bittiä lähimpänä on bool-tyyppi (Boolen totuusarvo). Sitä ei alunperin C++-kielessä ollut ja niinpä kaikki kääntäjät eivät sitä välttämättä tue. bool-muuttujan arvo voi olla tosi tai epätosi, siis sillä voi esimerkiksi kertoa onko hiiren nappi pohjassa. bool-tyypin esittämiseen käytetään yleensä enemmän kuin yksi bitti tilaa, koska kokonaisten tavujen käsittely on nopeampaa - tämä on kääntäjäkohtaista. Tietokoneen bitteihin pääsee konkreettisestikin käsiksi käyttämällä binäärioperaattoreita, jotka esitellään myöhemmin. Otetaanpa nämä muuttujat nyt käyttöön: > #include <iostream.h> void main() { int luku1, luku2, tulos; luku1 = luku2 = tulos = 0; cout << endl << "Anna ensimmäinen luku:"; cin >> luku1; cout << endl << "Anna toinen luku:"; cin >> luku2; tulos = luku1 + luku2; cout << "Tulos on " << tulos; } Noin. Kuten huomaat, voidaan saman tyyppiset muuttujat määritellä pötkössä pilkulla erottaen. Seuraavalla rivillä on kätevä tapa alustaa monta muuttujaa yhdellä kertaa. Sitten kysytään kaksi lukua, jotka tallennetaan luku1- ja luku2-muuttujiin, lasketaan ne yhteen (TSM) ja sijoitetaan tulos tulos-muuttujaan. Lopuksi vielä tulos-muuttujan arvo tulostetaan. # Liukuluvut ja lukujen merkitseminen Lukuja merkitessä voi käyttää tällaisia kirjainlyhenteitä (ekassa sarakkeessa olevat symbolit ovat vaihtoehtoisia, siis vain yhtä niistä käytetään): l L | loppuliite | Kokonaisluku (long) | | --- | --- | --- | u U | loppuliite | Etumerkitön kokonaisluku (unsigned) | f F | loppuliite | Reaaliluku (float) | l L | loppuliite | Reaaliluku (long double) | O | etuliite | Oktaaliluku | 0x 0X | etuliite | Heksaluku | e E | välissä | Reaaliluvun kymmenpotenssimuoto | Kaikkea tuosta ei tarvitse ymmärtää. Selittelen kuitenkin jotakin. Ensinnäkin liukuluvut (floating point number). Mitä ne ovat? Hirveän syvällisesti emme voi ruotia liukulukuja, siis muuttujatyyppejä float, double ja long double, tässä yhteydessä. Mikäli olet opiskellut jonkin verran fysiikkaa tai vastaavaa luonnontiedettä, niin varmaan tämän tyylinen merkintä on tullut sinulle tutuksi: 1.245 * 10³, siis 1.245 kertaa kymmenen potenssiin kolme. Idea on, että alkuosa ilmoittaa itse arvon ja loppuosa suuruusluokan. Esimerkkinä kilometri: kilo tarkoittaa tuhatta, siis tuhat metriä. Kolme kilometriä olisi: 3 * 10³ m=3 * 1000 m=3000m. Kymmenen potenssi voi olla myös negatiivinen; milli on tuhannesosa ja kolme millimetriä on 3 * 10^-3. Merkintä "^-3" tarkoittaa potenssiin miinus kolme, tuota potenssia kun ei ole valmiina symbolina. Liukuluvuissa on ihan sama idea, mutta nyt kun kyseessä ovat bitit, niin pelaamme kahden potensseilla. Eli liukuluvut voivat esittää hyvinkin suuria summia, mutta tarkkuus kärsii. Jos haluat ohjelmoidessa käyttää kymmenpotensseihin perustuvaa merkintätapaa, niin se käy näin: 1e1, siis kymmenen potenssi tulee e:n (eksponentti) perään. Esimerkiksi luku miljardi on järkevämpi kirjoittaa 1e9 kuin 1000000000. Elektronin paino levossa on noin 9.11e-31 kg, siis 0.000000000000000000000000000000911 kg. Kumpi tapa on kätevämpi? Monesti rautatasolla kikkailtaessa (eli ohjelmoidessa koodia, joka käsittelee tietokoneen laitteistoa) heksalukujen käyttäminen on paljon kätevämpää. Jos et tiedä mitä heksaluvut ovat, niin hyppää tämä yli (idea heksaluvuissa on kuusitoistakantaisuus; kun normaalit luvut perustuvat kymmenen potensseihin, ovat siis muotoa a * 10^0 + b * 10^1 + c * 10^2 jne.. niin heksaluvuilla kymmenen paikalla on kuusitoista) Nolla-äks alussa merkitsee heksaluku, siis vaikka 0x22 tulkitaan 2*16 + 2=34. Oktaaliluvut ovat samaa sarjaa, kantaluku on vaan kahdeksan. Yllä olevan taulukon muut lukuliitteet (neljä ensimmäistä) kertovat kääntäjälle, minkä tyyppinen joku kirjoitettu luku on. Harvoin niitä kyllä oikeasti tarvitsee. Kääntäjä olettaa kaikki luvut int-tyyppisiksi tai jos niissä on desimaalipiste (tai ovat eksponenttimuotoisia, esim 1e1) niin tyypiksi räimäistään double. Ja sillä pärjää jo hyvin pitkälle. Vielä käännä silmiäsi vähän takapakkia edelliseen kappaleeseen. Mitäs siellä roilotellaan: desimaalipiste? Siis mikä piste, pilkullahan desimaalit erotellaan... Mutta niin ei ole Ameriikoissa ja muissa hienoissa paikoissa, joissa C-kielen syntysanat on loitsittu. Niinpä erotin on yhä piste ja sillä selvä. Vastaan ei auta vängätä. Piste. # Tyyppimuunnos Joskus sitä tulee tarvetta muuntaa muuttujaa tai tietoa tyypistä toiseen. No, sehän sopii. Tyyppimuunnosta (typecasting) käytetään laittamalla haluttu tyyppi sulkuihin. Jos siis haluat vaikka sijoittaa double-arvon int-muuttujaan, käy se näin: int i=(int)doubleMuuttuja; Kun desimaaliosan sisältävä muuttuja muutetaan kokonaislukumuuttujaksi, tehdään se katkaisemalla (truncate). Siis desimaalipilkun jälkeiset numerot heitetään mäkeen. Jos arvo halutaan kuitenkin oikeaoppisesti, pitää se pyöristää. Kätevästi se onnistuu lisäämällä muuttujaan 0.5 ennen muunnosta. Jos muuttuja on negatiivinen, pitää silloin vähentää. Esim. 3.2 + 0.5=3.7 -> 3 tai 3.6 + 0.5=4.1 -> 4 tai -2.6 - 0.5=-3.1 -> -3. Jos muuttuja on liian suuri haluttuun arvoon, se pyörähtää ympäri. Esimerkiksi unsigned char muuttujan arvoalue on 0..255. Jos siihen sijoitetaan luku 260, pyörähtää muuttuja ympäri ja saa arvon 260 - 256 = 4. > double d = 3.487: int i; if (d > 0) i = (int)(d + 0.5); // "pyöristys" else i = (int)(d - 0.5); Asetuksista ja kääntäjästä riippuen onnistuvat jotkut tyyppimuunnokset myös ilman suluilla ilmoitettua muunnosoperaatiota. Hyvään ohjelmointitapaan kuuluu kuitenkin aina erikseen kertoa että nyt muunnetaan tietoa tyypistä toiseen. Näin ohjelmista tulee helppolukuisempia ja virheiden tekeminen ei ole ihan niin helppoa. Tuon esimerkin ymmärtäminen voi aiheuttaa vähän ongelmia, mutta ei hätää. Lue lisää niin opit. En vaan osaa keksiä mihin minä tämän tyyppimuunnosjutun muuallekaan lykkäisin, joten laitoin sen tähän. Pari kappaletta vielä ja kaikki selkenee. # Taulukot Sitten siirrymmekin vähän järeämpiin muuttujiin eli taulukoihin (array). Kuvitellaan että haluat luoda muuttujan, joka kuvaa jätkänshakin pelialuetta. Tietenkin voisi luoda 9 erillistä muuttujaan, mutta on kätevämpää käyttää taulukoita. Taulukko luodaan näin: > alkioiden_tyyppi taulukonNimi[eka_ulottovuus][toka ulottuvuus jne..]; Eli jotta saisimme jätkänshakkialuetta (3x3) vastaavan int taulukon, teemme näin: > int peliAlue[3][3]; Taulukko koostuu alkioista (3x3 taulukossa niitä on 9) ja taulukon nimen edessä oleva tyyppi määrää minkä tyyppisiä alkiot ovat. Taulukko voidaan alustaa luonnin yhteydessä - siis siihen voidaan tunkea matskua kun se määritellään. Se tehdään yhtäsuuruusoperaattorilla, kirjoittamalla arvot kaarisulkeiden sisään: int taulukko[5]={0, 1, 2, 3, 4}; Jos taulukko alustetaan näin, sen kokoa ei tarvitse antaa - osaahan kääntäjäkin laskea. Myös moniulotteinen taulukko voidaan alustaa tähän tyyliin, tosin silloin koko tulee antaa, koska kääntäjä ei voi päätellä sitä itse. Arvot pitää luetella niin, että ensin käydään viimeisen (oikeanpuoleisen) ulottuvuuden arvot läpi. Siis jos ajatellaan, että ensimmäinen ulottuvuus on rivit ja toinen sarakkeet, niin ensin laitetaan ensimmäisen rivin kaikki arvot, sitten toisen jne.. Jospa alla oleva esimerkki olisi havainnollisempi. Arvoja voidaan ryhmitellä hakasulkein esityksen selventämiseksi. > #include <iostream.h> void main() { //int taulukko[2][3] = {1, 2, 3, 4, 5, 6}; int taulukko[2][3] = { {1, 2, 3}, {4, 5, 6} }; cout << taulukko[0][0] << " " << taulukko[0][1] << " " << taulukko[0][2] << endl; cout << taulukko[1][0] << " " << taulukko[1][1] << " " << taulukko[1][2] << endl; } Ohjelmaa tulostaa: > 1 2 3 4 5 6 Alustuksesta on esitetty kaksi täysin saman asian tekevää versiota. Toinen on tietenkin kommentoitu pois, ettei kääntäjä murahtelisi. Kuten siis huomaat, ensin tulevat ensimmäisen rivin arvot [0][0], [0][1] ja [0][2], sitten toisen rivin arvot. Oletkin jo ehkä odottanut ohjelmaa, joka kysyy nimen ja sanoo "Terve, <nimi>". Nyt sellainen tulee, ja koska C++:ssä ei ole omaa tyyppiään merkkijonoille, käytämme merkkitaulukkoa. > #include <iostream.h> void main() { cout << "Mikä on nimesi? "; char nimi[20]; cin >> nimi; cout << endl <<"Jaa, että " << nimi << ". Vihje vanhemmilta, vai?"; } Nimi-merkkitaulukko määritellään ja sille annetaan kokoa 20-alkiota, eli siihen mahtuu enintään 20-merkkiä (joten <NAME> <NAME> ei mahdu). Kun on painettu enteriä, cin lopettaa lukemisen ja laittaa annetun nimen taulukkoon. Myös merkkijonotaulukko voidaan alustaa suoraan. Silloin käytetään lainausmerkkejä. Kokoa ei tarvitse antaa, kääntäjä määrittää sen ja lisää myös nollatavun (nollatavun? lue eteenpäin...), sekä ottaa sen huomioon kokoa laskiessa. On se luksusta... > #include <iostream.h> void main() { char* nimi = "Oiva Apu"; cout << nimi << endl; if (nimi[8] == '\0') cout << "Nollatavu se on, peeveli vieköön!"; } Merkkitaulukot eli merkkijonot (string) ovat jäänne C:stä, C++:ssa yleensä käytetäänkin merkkijonoluokkia. Mutta se ei toki ole mikään tekosyy sille, etteikö merkkijonoja pitäisi osata. Merkkitaulukko toimii itseasiassa näin: kun määrittelemme taulukko[20], kääntäjä varaa 20 merkin verran muistia (muistin varaaminen tarkoittaa sitä, että alue merkitään käytetyksi eikä mikään muu muuttuja voi käyttää sitä) ja laittaa taulukon osoittaamaan jonon ekaan alkioon. Osoittaminen ja osoitinmuuttujat kuuluvat taas kategoriaan TSM. Kun haluamme merkin taulukko[5], ohjelman menee taulukon osoittamaan kohtaan muistia ja siirtyy siitä viiden merkin viemän tilan verran eteenpäin, ja sitten lukee merkin siltä kohden. Kun käsittelemme koko jonoa, meidän pitää tietenkin tietää missä se päättyy. Niinpä merkkijonot ovat nollatavuun päättyviä (NULL terminated), eli niiden viimeisenä merkkinä on '\n' eli '\0' eli NULL (nolla). Koska nollatavu vie yhden merkin verran tilaa, pitää merkkitaulukko aina tehdä yhtä isommaksi kuin todellista tarvetta on. Alla olevassa kuvassa on esitetty, mitä muistissa tapahtuu kun taulukkoon char merkkijono[5] sijoitetaan sanat LEGO ja PALIKKA. PALIKKA\n on kolme merkkiä liian pitkä varattuun tilaan, joten se sotkee kolme tavua muistia. Seuraus voi olla melkein mitä vaan, mutta ei kuitenkaan mitään kovin positiivista. # Kuinka mokata taulukoiden kanssa Lyön munuaiseni vetoa, että teet ainakin kerran elämässäsi tämän virheen: viittaat taulukko[1] luullen, että tuo osoittaa taulukon ekaan alkioon. Mutta niinpäs ei olekaan. Nimittäin C++ aloittaa taulukon alkiot jo nollasta. Eli taulukossa jono[3] on alkiot 0, 1 ja 2. Se tuntuu aluksi pöljältä, mutta kyllä siihen tottuu. Tilanne on sama kuin englantilaisten kerrostalojen kanssa: siellä saarivaltiossahan ja monissa muissa Euroopan maissa kerros yksi ei suinkaan ole maanpinnalla, vaan se kerros minkä me miellämme toiseksi kerrokseksi. Ohjelmoinnin harrastajalle tuo tuntuu kyllä hyvin fiksulta ratkaisulta. Myöhemmin tälle ratkaisulle esitetään myös hieman teknisempi selitys. # sizeof ja muuttujat Muuttujien arvoalueet vaihtelevat, koska niiden koko muistissa on erilainen. Muuttujien todellinen muistinkulutus vaihtelee hieman ympäristöstä toiseen, joten ei kannata olettaa mitään muuttujien kokoon liittyvää. Esimerkiksi jos käytät nopeaa memcpy(..) -funktiota (TSM) muistialueiden kopiointiin, tulee muuttujien viemän tilan laskeminen eteen. memcpy(..) ottaa parametreikseen kohteen, lähteen ja kopioitavien tavujen määrän. Jos haluat kopioida 200 int-lukua taulukosta 1 taulukkoon 2, tapahtuu se näin: > memcpy( taulukko2, taulukko1, 200 * sizeof(int) ); Ensin on kohde (!), sitten lähde. Sitten tulee kopioitava määrä tavuina. Mikäli olisimme katsoneet tässä kappaleesta olevasta taulukosta, että: "Jaahas. int näyttäis olevan 2 tavua, joten lykätään siihen sitten 200*2.." niin ohjelma olisi toiminut noin 20%:ssa ympäristöistä. int voi olla, ja yleensä onkin, 4 tavua, jolloin 2 tavuisen intin olettaminen veisi ojasta allikkoon tai johonkin vielä kauheampaan paikkaan. Tämä sääntö syövytä neitseellisiin aivokudoksiisi, joita eivät vielä maallisen huolimattoman ohjelmoinnin siveettömyydet ole tahranneet: oleta niin vähän kuin mahdollista. C++:ssa on operaattori, jolla saadaan selville jonkun tietotyypin koko: sizeof. sizeof(int) tai sizeof int kertoo muuttujan koon. Alla olevassa ohjelmassa selvitellään eri muuttajatyyppien kokoja. long double -tyyppi ei ole aivan standardi ja monissa ympäristöissä se onkin samankokoinen kuin pelkkä double. Jotkin kääntäjät voivat yskiä bool-tyypistä, joten sen rivin voi joutua ottamaan pois. > #include <iostream.h> void main() { cout << "sizeof(short int) " << sizeof(short int) << endl; cout << "sizeof(int) " << sizeof(int) << endl; cout << "sizeof(long int) " << sizeof(long int) << endl; cout << endl; cout << "sizeof(char) " << sizeof(char) << endl; cout << endl; cout << "sizeof(float) " << sizeof(float) << endl; cout << "sizeof(double) " << sizeof(double) << endl; cout << "sizeof(long double) " << sizeof(long double) << endl; cout << "sizeof(bool)" << sizeof(bool) << endl; } # Kommentoiminen C++:aa on haukuttu maailman ainoaksi write-only (vain kirjoitettava) kieleksi. Sitä se helposti onkin ellei pidä mielessä muutamia juttuja. Kerron nyt aluksi kommentoinnista ja muita kikkoja sitten vähän myöhemmin. Vaikka C++ onkin ohjelmointikieli, se on silti aika kaukana ihmiskielestä. Monesti onkin hyvä sotkea mukaan suomeksi tai savoksi kirjoitettuja kommentteja koodin toiminnasta kyseisessä kohdassa. C++:ssa on siihen kaksi tapaa: > // Kätevä yhden rivin kommentti. (C++-tyyliä) > /* tällainen C-tyylinen kommentti voi olla monta riviä pitkä */ Eli // aloittaa kommenttirivin ja /*..*/ merkein voi rajata kommenttialueen (voi käyttää myös koodin kommentoimiseen väliaikaisesti pois - tosin ei hirveän hyvin sovi siihen, koska koodin seassa olevat muut kommentoinnit ja merkit voivat sotkea). Kommentointi on hyvä tapa, mutta rajansa kaikella. Einstein on sanonut, että hyvä teoria on vain niin monimutkainen kuin on välttämätöntä. Sama pätee kommentointiin: hyvä ohjelmoija kommentoi vain juuri sen verran kuin on välttämätöntä. Kommentointi on tärkeää, mutta löysäleukainen lavertelu ja itsestäänselvyyksien raapustelu vain hankaloittaa ohjelman lukemista ja syö arvoa seassa olevilta hyödyllisiltä kommenteilta. Huono ohjelma ei muutu hyväksi kommentoimalla. Mikäli haluat viestiä jotakin ohjelman toiminnasta, pyri tekemään se ohjelman rakenteella ja muuttujien järkevällä nimeämisellä. Vain sellainen jota ei voi sanoa C++:n avulla kannattaa kirjoittaa kommenteiksi. # Laskutoimitukset Laskutoimitusten suorittaminen C++:lla on helppoa kuin heinänteko. Pyydän anteeksi teiltä kaikilta maa- ja metsätalousihmisiltä, jotka ihan oikeasti olette joskus tehneet heinätöitä ja tiedätte, ettei se heinänteko oikeasti mitenkään hirveän helppoa ole. Me massat asumme kaupungissa. Kun halutaan laskea jotakin yhteen, kirjoitetaan yksinkertaisesti muuttuja1 + muuttuja2. Voidaan sanoa, että tämä laskutoimitus palauttaa arvon. Arvo on muuttujien summa. Meidän tulee enää lopuksi sijoittaa tuo arvo jonnekin, eli saamme hahmoteltua tällaisen ohjelmanpätkän: > tulos = muuttuja1 + muuttuja2; Väliin voi sujauttaa plussan tilalle minkä tahansa muunkin matemaattisen operaattorin. Operaattorien suoritusjärjestys on sama kuin matematiikassakin, ensin kerto- ja jakolaskut sekä jakojäännökset järjestyksessä vasemmalta oikealle, sitten plus- ja miinuslaskut vasemmalta oikealle. Sulkeilla voidaan järjestystä muuttaa - sulkeet käsitellään ennen muita laskuoperaatioita. Operaattori | Merkitys | | --- | --- | + | yhteenlasku | - | vähennyslasku | * | kertolasku | / | jakolasku | % | jakojäännös | Joitakin esimerkkejä vielä selventämään muutenkin niin selvää asiaa. > keskiNopeus = matka / aika; keskiArvo = (arvo1 + arvo2) / 2; koulunKoko = luokkienLkm * oppilaidenLkm + luokkienLkm * opettajiaPerLuokka + muuHenkilokunta; koulunKoko = luokkienLkm * (oppilaidenLkm + opettajiaPerLuokka) + muuHenkilokunta; // sama kuin edellinen, kätevämmin esitettynä # Etuliiteoperaattorit > muuttuja = muuttuja + 1; Kasvatamme taas luonnettasi perinteisin armeijan keinoin. Kirjoitapa tuo sata kertaa. Hyvä, nyt kerron kuinka olisit voinut tehdä sen paljon helpommin. <virnistys> > muuttuja++; Muuttujan perään kirjoitettu ++ -operaattori kasvattaa muuttujan arvoa yhdellä. Vastaavasti löytyy myös -- -operaattori, joka pienentää muuttujaa yhdellä. Kätevyyden lisäksi nämä operaattorit voivat olla myös nopeampia, kääntäjästä ja ympäristöstä riippuen. Voidaan kirjoittaa myös --a tai ++a. Näillä on kuitenkin yksi tärkeä ero: ++a käsitellään niin, että ensin a-muuttujaan lisätään yksi ja sitten sitä käytetään muussa lauseessa. a++ taas käsitellään toisin päin: ensin käytetään a:ta ja sitten kasvatetaan sitä. Jos halutaan vain muuttaa muuttujan arvoa, ei merkintätavoilla ole eroa, mutta jos käytetään muuttujaa samassa yhteydessä muuhunkin, kuten vaikka taulukon indeksinä, ero tulee näkyviin. b=taulukko[++a] kasvattaa a:ta yhdellä ja sitten ottaa arvon taulukosta a:n kasvatetulla arvolla ja sijoittaa sen b:hen. b=taulukko[a++] taas ottaa taulukon alkion a:n alkuperäisen arvon kohdalta, sijoittaa sen b:hen ja lopuksi vasta kasvattaa a:ta. Jos haluammekin kasvattaa muuttujaa kahdella, mutta emme jaksa kirjoittaa a=a+2, niin voimme käyttää kätevää +=operaattoria. a +=2. Ei liene enää yllätys, että -=vastaavasti vähentää. Näistä operaattoreista löytyy myös kerto- ja jakolaskut sekä jakojäännös. Operaattori | Merkitys | | --- | --- | += | lisää muuttujan arvoa | -= | vähentää muuttujan arvoa | *= | kertoo muuttujan luvulla | /= | jakaa muuttujan luvulla | %= | sijoittaa muuttujaan jakojäännöksen | Esimerkiksi: > muuttuja += 2; // kasvattaa muuttujaa kahdella muuttuja *= 2; // muuttuja kaksinkertaistetaan muuttuja %= 3; // sijoittaa jakolaskun (muuttuja / 3) jakojäännöksen muuttujaan muuttuja %= 2; // muuttuja on 0 jos parillinen, 1 jos pariton # Aivojumppaa: uhmaako a=a + 1; todellisuuden luonnetta? Muuttujan a kasvattaminen lauseella a = a + 1; voi vaikuttaa järjettömältä. Kuinka a voi olla yhtäsuuri kuin a plus yksi? Ja kuinka a:han voidaan sijoittaa sitä yhtä suurempi arvo? Eikö siitä synny ikuinen silmukka, kun a:n pitää olla itseään suurempi? Täyttä typerehtimistä tuollaiset pohdinnot eivät todellakaan ole. Pulma ratkeaa, kun muistaa, että a:n ei todeta olevan itseään suurempi, vaan esitetään toivomus että a olisi yhtä suurempi. Vertailuoperaattori == on erikseen: lauseke a == a + 1 on myös mahdollinen ja se palauttaa aina epätoden arvon - koska muuttujan a:n arvo ei tietenkään voi olla yhtä suurempi itseään. Tämä juttu siis vaikuttaa aika selvältä. Mutta kuinka a:n arvo voi olla itseään suurempi, siinäpä sitä onkin metafyysistä mussutettavaa kokonaiselle filosofien yhdyskunnalle. a:n ongelmaa pitää lähestyä tietokoneiden ja C++-kielen sarjamuotoisen toiminnan kautta. Mitkään asiat eivät tapahdu yhtä aikaa. Kääntäjä käsittelee lauseen näin; ensin luetaan muuttujan a arvo muistista, lisätään siihen yksi ja sitten sijoitetaan se muistiin muuttujan a kohdalle. Ensin haetaan ja sijoitetaan, siis oikea puoli suoritetaan ensin. Käytännössä kääntäjä tekee näin: > int b = a + 1; a = b; Kääntäjä sijoittaa ensin oikean puolen arvon väliaikaiseen muuttujaan (jonka C++-kääntäjä sijoittaa prosessorin nopeisiin rekistereihin) ja vasta sen jälkeen sijoittaa sen muuttujaan a. C++-kielisesti siis a = a + 1 ei ole yksi lauseke, vaan kaksi lauseketta: (a = (a + 1)), joista sisimmäinen suoritetaan ensin. Tästä seuraa myös, että kun käsketään näin: > a = 5; b = a + 1; a = 6; ..niin lopuksi muuttujan b arvo ei ole seitsemän, vaan kuusi. Ilmaus b = a + 1 ei ole mikään sääntö, joka sen esittämisen jälkeen pätee aina. Se on vain sijoitus käskyjen perättäisessä virrassa, eikä sijoituksen pohjalta voida b:n arvosta olla varmoja kuin seuraavassa lauseessa. C++-kielinen ohjelma siis toimii askel kerrallaan, se ratkaisee tämän pulman. Käytännössä nykyaikaisilla prosessoreilla voidaan suorittaa useita käskyjä kerrallaan, mutta siinäkin tapauksessa kaikki on koodattu perättäiseksi, mutta suoritetaan enemmän tai vähemmän onnistuneesti yhtäaikaisesti. C++-ohjelma voidaan yhä ajatella sarjamuotoisena, prosessori vaan ripsauttelee rinnakkain useita käskyjä kun se ei sotke ohjelman toimintaa. Tätä teknistä hankaluttaa ei C++-ohjelmoijan tarvitse ajatella, ellei rupea kirjoittamaan konekieltä C++-ohjelmiensa sekaan. Toki C++:lla voidaan tehdä ohjelmia joita ihan oikeasti ja aidosti suoritetaan useasta kohdasta yhtä aikaa. Siihen tarvitaan ympäristö, joka tukee säikeitä (thread of execution) ja se on oikein tehtynä hyvin hankalaa. Moni ammattiohjelmoijakaan ei tarvitse säikeitä ja moniprosessointia, joten sinäkin voit sellaiset hankaluudet vielä unohtaa. # Rakenteet # Ehtolauseet Taas lisää kaikkea hämmentävää, nimittäin ehtolauseita. Yksi ohjelmien tärkeä ominaisuus on reagoida eri tilanteisiin eri tavoin ja tämä hoituu ehtolauseilla. Ehtolause rakentuu näin: > if (ehto) tee_jotain; Esimerkiksi näin: > if (ika == 5) cout << "Voi pikkuista.."; Ehdossa voidaan käyttää näitä vertailuoperaattoreita: == | yhtäsuuri kuin | | --- | --- | != | erisuuri kuin | > | suurempi kuin | < | pienempi kuin | >= | suurempi tai yhtäsuuri kuin | <= | pienempi tai yhtäsuuri kuin | Nyt viritä päänsisäiset vastaanottimesi oikealle kanavalle (onhan tv-lupa maksettu?), tulee hyvin tärkeä asia. Yhtäsuuruusoperaattorissa on kaksi yhtäsuuruusmerkkiä. Siis kaksi, yhtä monta kuin polkupyörässä on renkaita. Yksipyöräisellä kikkailevat sirkuspellet koodaakin sitten Pascalilla. C++-kääntäjä natisee melkein aina kun vastuuttomuuttasi töpelehdit ohjelmoidessa, mutta tässä tapauksessa kääntäjä on hiljaa. Yhtäsuuruuden korvaaminen sijoituksella, siis toisen = merkin unohtaminen, on C++-kieliopin mukainen temppu. Sijoituksen arvo on itse sijoitettu arvo, joten ehto on tosi aina kun sijoitetaan joku muu arvo kuin nolla, kuten tulet kohta huomaamaan. Tämä on erittäin vaikea virhe aloittelijan huomata. Opi se nyt, tai kantapään kautta - kuten Akilles teki. Muutamia esimerkkejä vertailemisesta: > if (aika < 10) cout << "Aikaa ei ole paljon."; if (ika >= 18) cout << "Olet kahdeksantoista tai yli."; if (ika > 17) cout << "Olet siis täysi-ikäinen."; // sama kuin edellinen (kokonaisluvuilla) if (robottiID != 2373) cout << "Et ole se betazoidi jota etsin."; Entä jos halutaan etsiä semmoista parikymppistä, mutta ei kuitenkaan yli kolmekymppistä neitoa? (etsinnän tarkoituksen jätän jokaisen oman mielikuvituksen varaan) Tietenkin, onhan toki mahdollista tehdä näin: > if (ika >= 18) if (ika < 30) cout <<"Käytkö täällä usein?"; Mutta mutta... Voihan sitä ajaa pyörälläkin ilman satulaa, mutta kovin mukavaa se ei ole. Niinpä C++ tarjoaakin meille mahdollisuuden yhdistellä vertailuja näpsäkillä loogisilla operaattoreilla, jotka ovat: && | JA | | --- | --- | || | TAI | ! | EI | Nyt voimme kirjoittaa edellisen lauseen muotoon: > if (ika >= 18 && ika < 30) cout << "Pidän silmiesi väristä."; Lisää valaisevia esimerkkitapauksia: > if (a == 5 || b < 3) cout << "Olette syyllinen, koska a on viisi tai b on pienempi kuin kolme."; if (x == 3 || x == 2) cout << "Nyt selvisi. x on kolme tai kaksi, tai molemmat.(teoriassa..)"; if (tupakointiStatus == 1 && ika > 50) cout << "Aijai. Kuulutte keuhkosyövän riskiryhmään."; Vielä vähän tuosta viimeisestä Sosiaali- ja terveysministeriön suosittelemasta esimerkistä. tupakointiStatus kuvaa henkilön tupakoimista. Se on nolla, jos henkilö ei polta ja 1 jos hän polttaa. Miksi näin? Siksi näin, että tämä on standardi C++-kielessä. Kun lause on tosi, sen arvo on nollasta poikkeva. Kun taas epätosi, se on nolla. Lauseen 5==5 arvo on aina tosi, eli nollasta poikkeava. Tätä voi kokeilla näin: > cout << (5 == 5); // tulos pitäisi olla 1 cout << (4 == 5); // tulos pitäisi olla 0 Mitäs sitten? Sitäs sitten, että ehdossa ei aina tarvitse olla operaattoreita, vaan pelkkä arvo riittää. Voidaan esim. tehdä näin: > int arvo = 1; if (arvo) cout << "Arvo on nollasta poikkeava."; Tällä tavalla voimme edistää kansaterveyttä hieman yksinkertaisemmin, eli lause muuntuu muotoon: > if (tupakointiStatus && ika > 50) cout << "Aijai. Kuulutte keuhkosyövän riskiryhmään."; Täysin vastaavia lauseet eivät ole: jälkimmäisessa tupakointiStatus saa olla mikä tahansa ei-nolla, mutta edellisessä se sai olla vain yksi. Nyt voimmekin käyttää tupakointiStatusta ilmoittamaan, montako sikaaria henkilö tupruttaa päivässä. Jo yksi tupakka päivässä kuitenkin riittää viemään hänet riskiryhmään. Vielä pikkuisen tuosta !-merkistä, nimittäin EI-operaattorista. Se kääntää jonkun lausekeen arvon toisin päin, tällä tavalla: > if (!onMuusikko) cout << "Et ole muusikko."; if (!(ika < 50)) cout << "Ikäsi ei ole pienempi kuin 50."; if (ika > 50) cout << "Ikäsi on suurempi kuin 50."; // sama kuin edellinen, paitsi // että 50 ei lasketa mukaan if (ika >= 50) cout << "Ikäsi on suurempi tai yhtäsuuri kuin 50."; // täysin sama // kuin ensimmäinen # Jos ei niin sitten.. Monesti, jos if lause ei ole tosi, on tarve reagoida jollain muulla tavalla. Niinpä if-käskyyn voidaankin lisätä osa else, eli jos ei niin sitten.. > if (numero == 123) cout << "Aha, olet siis osa numero 123"; else cout << "Olet joku muu osa"; iffin ja elsen jälkeen suoritettavaksi voidaan myös laittaa lohko eli { ja } -merkkien rajaama alue tähän tyyliin: > if (ika < 18) { cout << "Ei taida ikä riittää..."; PotkaiseUlos(); // Funktiokutsu, TSM } else { cout << "Tervetuloa!"; PotkaiseSisaan(); } Näitä pikku pirulaisia voi sitten yhdistellä aivan mielin määrin, kuten esimerkissä: > if (ika > 65) { if (onSotaveteraani) cout << "Olet sotaveteraani."; else cout << "Olet muu eläkeläinen."; } else { if (ika < 35) { if (osaaCpp) cout << "Lupaava alku.."; else cout << "Et ole ajatellut tutustua C++-oppaaseen?"; } else cout << "Sitä suurta ikäluokkaa, vai?"; } # Toistorakenteet: while ja for > int taulukko[2][3] = {1, 2, 3, 4, 5, 6}; cout << taulukko[0][0] << " " << taulukko[0][1] << " " << taulukko[0][2] << endl; cout << taulukko[1][0] << " " << taulukko[1][1] << " " << taulukko[1][2] << endl; Aloitamme esimerkillä, jota vilkuilimme taulukkoja käsittelevässä kappaleessa. Taulukkojen käsittely käsipelillä voi olla melko raskasta. Jo kyseisen 2x3-taulukon tulostamiseen saa kirjoittaa merkin jos toisenkin. Ja entä kun kyseessä on 640x480x3-taulukko, joka voisi olla vaikka modernin grafiikkajärjestelmän näyttömuisti? Eihän siitä mitään tule, kun käsin pitää kaikki tehdä, vaikka automaattista tietokonetta rämpätään. Tuupataan toistorakentein tietokone töihin: > #include <iostream.h> void main() { int taulukko[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; int a = 0; while (a < 10) { cout << taulukko[a] << " "; a = a + 1; } } while-suorittaa alla olevassa lohkossa olevaa koodia, kunnes suluissa oleva lauseke on epätosi. Eli tällainen lause: > while(1) { cout << "Juuhuu"; } ...tulostaa "Juuhuu"-tekstin MONTA kertaa.(niin kauan kuin sähköä riittää). Toinen vaihtoehto toistoon on for: > int a; for (a = 0; a < 10; a = a + 1) { .. } Ensimmäisessä forin osassa on muuttujan alustus, toisessa ehto ja kolmannessa muuttujan päivittäminen. Muuttujan luonnin voi yhdistää foriin näin kätevästi: > for (int a = 0; a < 10; a++) // a++ on sama kuin a = a + 1 # Rakenteiden yhdistely ja do..while Joskus silmukan ehto ei ole pelkkä yksinkertainen lauseke, jonka voisi mahduttaa whilen ja forin ehdoksi. Silloin yksi vaihtoehto on laittaa se whilen rungon sisälle ja käyttää jotain muuttujaa ehdossa, kuten ehtoTosi, jolla seurataan milloin silmukan voi lopettaa. ehtoTosin arvo saadaan jollain monimutkaisellakin tavalla silmukan sisällä. Ongelma on kuitenkin, että ehtoTosilla ei ole mitään järkevää arvoa kun silmukkaa ei vielä ole suoritettu - ja toisaalta ehtoTosin arvo pitäisi tietää, että ohjelma voi päättää alkaako suorittamaan silmukkaa ollenkaan. Tämän taas voi ratkaista kopioimalla ehdon silmukan sisältä myös silmukan edelle, jotta ehtoTosi saa järkevän arvon jo ennen silmukkaa. Kopiointi on kuitenkin hirveän vaarallista. Se kasvattaa ohjelmaa ihan turhaan ja tekee siitä mahdottoman kehitettävän. Kyseessähän on automaattinen tietokone, joten parempiakin vaihtoehtoja on. Jos haluamme luoda silmukan, joka suoritetaan ainakin kerran, oli sitten tilanne mikä tahansa, niin avainsana on do..while. Kielioppi on: > do { // silmukan sisältö } while (ehto); // huomaa puolipiste lopussa Siis itse silmukka tulee don ja whilen väliin. Normaalin whilen perään ei saa laittaa puolipistettä, ellei nyt välttämättä halua tehdä tyhjää silmukkaa, mutta nyt whilen loppuun tulee puolipiste. Sisältö suoritetaan aina vähintään kerran. Silmukoita ja ehtoja voi yhdistellä mielin määrin. Jos haluaisimme pyytää käyttäjältä 20 int-lukua, jotka ovat kaikki erilaisia, voisi sen tehdä esimerkiksi niin kuin olen alas koodaillut. Idea siis on, että aina kun käyttäjä antaa uuden luvun, niin tarkistamme ettei jo annetuissa luvuissa vielä esiintynyt kyseistä lukua: > int luvut[20]; int lukuja = 0; while (lukuja < 20) { int uusiLuku; int onVanha; do // pitää kysyä ainakin kerran { cout << endl << "Anna " << lukuja << ". luku "; cin >> uusiLuku; onVanha = 0; for (int a = 0; a < lukuja; a++) if (luvut[a] == uusiLuku) onVanha = 1; // löytyi edellisistä } while (onVanha); // tivataan kunnes saadaan ihan uusi luku luvut[lukuja] = uusiLuku; // lisätään täysin uusi luku lukuja++; } # break ja continue for ja while-silmukoista pääsee pois myös break-käskyllä. Itse tapasin ajatella, että break on merkki huonosti suunnitellusta silmukasta. Ja sitten kehittelin kaikenlaisia purkkaviritelmiä millä pääsin eroon sen käytöstä. Mutta loppujen lopuksi, mitä sitä väistää väistämätöntä, break on joskus ihan helv... erinomaisen kätevä. Eli kaikessa rumuudessaan ja kätevyydessään estradille astuu: break, ja kitaralla säestää continue. Pähkinänkuoreen puristettuna: break lopettaa silmukan suorituksen siihen paikkaan. Eli jos esimerkiksi jonkin erityisen tapauksen (muisti loppuu tms..) vuoksi joudutaan lopettamaan silmukka kesken tai jos silmukan toistoehto on osa itse silmukan sisältöä, kannattaa breakia käyttää. continue, kuten nimestä voi päätellä, jatkaa silmukkaa. Se siis hyppää silmukaan alkuun, jättäen silmukan lopun ohjelmakoodin suorittamatta, mutta jatkaen kuitenkin silmukan suoritusta. > #include<iostream.h> void main() { int luku; while (1) // päättymätön silmukka { cout << endl << "Arvaa luku: "; cin >> luku; if (luku == 5) { cout << endl<< "OIKEIN!"; break; } if (luku == 0) { cout << endl << "Ei nolla ole mikään kunnon luku, uudelleen.."; continue; } cout << endl<< "Väärin, arvaa uudelleen.."; } } Tämäkö muka teennäinen esimerkki... # switch..case -rakenne On muuttuja, jolla voi olla kymmenen eri arvoa. Se voisi olla vaikka muuttuja, joka kertoo mitä käyttäjä on valinnut jostain valikosta. Kun meidän pitää valinnan mukaan päättää mitä teemme, tulee jo opittuja konsteja käyttäen ongelmia. Jos käytämme normaalia if-rakennetta, saamme aikaan melkoisen if-hässäkän, josta ei sitten enää ota pirukaan selvää. Mutta hädän hetkellä apuun ryntää tiukan punaisissa trikoissaan switch..case-rakenne! > switch (muuttuja) { case 0: cout << "Arvo on nolla"; break; case 1: cout << "Arvo on yksi"; break; case 2: cout << "Arvo on kaksi"; break; default: cout << "Arvo on joku muu"; } Ideana on tämä: muuttuja otetaan tässä vivuksi (switch englanniksi). switchia seuraavassa lohkossa hypätään siihen kohtaan, joka vastaa muuttujan arvoa. Jos vastaava arvoa ei löydy, mutta default -kohta löytyy, hypätään siihen. Paino sanalla hypätään. Suoritus jatkuu nimittäin siitä kohdasta aivan loppuun asti. Niinpä pitääkin jokaisen vaihtoehdon käsittelyn jälkeen laittaa break-käskyt, jos halutaan käsitellä vain ja ainoastaan siihen vaihtoehtoon liittyvä ohjelmakoodi. Aina ei kuitenkaan näin ole. Otetaan esimerkki käytännön maailmasta. Teollisuusvartiointipalvelu Pamppu ja sateenvarjo oy laajenee lamakauden jälkeen ja palkkaa 150 uutta ja verestä vartijaa. Palkat on ennen laskettu paristokäyttöisellä parin kympin taskulaskimella. Nyt tarvitaan kuitenkin jotain vähän järeämpää. Sinut on palkattu suunnittelemaan ohjelma, joka laskee jokaisen vartijan palkan. Peruspalkka on 7000 mk/kk, vaarallisen työn lisä on 500 mk/kk ja yötyölisä 1000 mk/kk. Koska alue on hyvin levotonta ja kaikenlaiset perverssit kukkuvat siellä yöaikaan, tulee yötyön tekijälle myös vaarallisen työn lisä automaattisesti. Vaarallisen työn tekijälle ei kuitenkaan aina tule yötyölisää; paikallisen ammustehtaan vartiointi on melko vaarallista hommaa päiväsaikaankin. Kaikille tulee tietenkin peruspalkka. Olet saanut ohjelman jo muuten kasaan, mutta juuri se kohta, joka lisää palkan, sinulta vielä puuttuu. Otat yhteyttä paikalliseen C++-guruun ja kun pari kokispulloa ja jokunen puoliksi syöty kylmä pitsa vaihtaa omistajaansa, hän antaa sinulle vinkin: > // tyonTyyppi: 0 = normaali, 1 = vaarallinen, 2 = yötyö switch(tyonTyyppi) { case 2: palkka += 1000; case 1: palkka += 500; case 0: // default: kävisi myös palkka += 7000; } Noin. Yötyön tekijä saa 1000+500+7000=8500 mk/kk, kun taas päivisin karkkikauppaa vahtiva vain 7000 mk/kk. Esimerkki on kieltämättä aika teennäinen ja oikeasti toteutus olisi melko erilainen: palkkamäärät olisivat vähintään vakiomuuttujia, ei suoraan koodin kirjoitettuja. # Nimiavaruudet * Kerronpa tarinan. Kaikki tapahtui kun olin vielä nuori ja kokematon (siis ohjelmoijana). Kehitin iltojeni iloksi ja vapaapäiviäni ratoksi järjestelmää graafisten esitysten rakentamiseen. Järjestelmä toimi niin, että siihen kytkettiin komponenttejä (kolmiulotteisia efektejä, videoita, kuvia jne...) ja järjestelmä hoiti efektien ajastuksen ja lopputuloksen piirtämisen ruudulle. Järjestelmä oli yhteydessä efektikomponenttehin Interface-nimisen oman tietotyypin avulla. Aluksi kehitin järjestelmää käyttäen omaa grafiikkakoodia, siis toteutin itse grafiikan piirron ruudulle. Koska oma grafiikkakoodini oli hyvin yksinkertainen, se ei riittänyt pitkälle. Minulla ei ollut aikaa eikä mahdollisuutta kehittää sitä eteenpäin, olisinhan kaikenlisäksi tarvinnut kymmeniä erilaisia näytönohjaimia jolla testata grafiikanpiirtoa. Joten päätin käyttää hyvää ja valmista grafiikkakirjastoa. Silloin törmäsin ongelmaan: kirjasto käytti myös Interface-tietotyyppiä. Kun lisäsin kirjaston mukaan ohjelmaani, ei sitä voinut kääntää koska kääntäjä havaitsi saman nimen määrittelyn kahteen kertaan eikä siten pystynyt päättämään että kumpaa aina kulloinkin käytettiin. Lopputulos oli, että projektini kuivui kasaan ja minun oli keksittävä jotain muuta tekemistä iltojeni ratoksi. Kun yhdistetään kahta eri ohjelmaa, on hyvin yleistä että törmätään nimiristiriitoihin (name clash) - kuten äskeisessä tarinassa kävi. Kyseessä ei tarvitse olla edes kahden eri henkilön tekemät ohjelmat, vaan riittää että yrittää käyttää valmista ohjelmanpätkää jonka on viikko sitten ohjelmoinut - silloinkin saattaa jo törmätä tilanteeseen, jossa harmittelee että miksi sitä piti mennä antamaan noille kahdelle muuttujalle samat nimet, nyt kääntäjä on sekaisin niiden kanssa... Yksi vaihtoehto on muuttaa nimiä, mutta usean kymmenen tuhannen rivin pituisessa ohjelmassa se ei kuulostaa enää kovin herkulliselta vaihtoehdolta, ja mikä vielä epäherkullisempaa, jos unohtaa muuttaa yhdenkin nimen, niin kääntäjä luulee sitä toiseksi ja ohjelma toimii täysin järjettömästi. Silloin viimeistään menee hermot ja päätyy vaihtamaan alaa. Nimiristiriitojen rauhanomaiseen ratkaisuun C++-kielessä on ominaisuus nimeltään nimiavaruudet. Niiden avulla voidaan suuremmat kokonaisuudet (ohjelmat tai ohjelman osat) sijoittaa omiin avaruuksiinsa, niin että ne voivat sisältää päällekkäisiä nimiä. Totuushan nimittäin on, että hyviä nimiä on maailmassa aika vähän. Tässäpä lyhyt ja teennäinen esimerkki (minulla oli mielessä myös paljon vähemmän teennäinen esimerkki, mutta koska ohjelmointimaailmassa suurin osa esimerkeistä on hyvin teennäisiä, niin näen velvollisuudekseni totuttaa sinut jo tässä vaiheessa): > namespace Piirto_ohjelma { int pallo; int nelio; int kuutio; } > namespace Jalkapallopeli { int pallo; int palloilija; int huligaani; } > Piirto_ohjelma::pallo = Jalkapallopeli::pallo; Nimiavaruus määritellään namespace-käskyllä ja sen perässä olevassa lohkossa määritellyt nimet tulevat nimiavaruuden sisälle. Viimeisellä rivillä pistetään leikisti piirto-ohjelma piirtämään jalkapallopelin pelitilanne, jota voidaan sitten käyttää futispelin markkinointimateriaalissa. Nimiavaruuden sisällä olevaa muuttujaa käytetään niin, että kirjoitetaan nimiavaruuden nimi ja kaksi kaksoispistettä ja muuttujan nimi. Yleisesti ottaen sekä jalkapallopelit että piirto-ohjelmat ovat hieman monimutkaisempia kuin kolme kokonaislukumuuttujaa... Koska nimiavaruuden jatkuva toistaminen on työlästä, voidaan todeta että nyt pallo tarkoittaa jalkapallopelin nahkakuulaa ellei toisin sanota. Eli tehdä näin: > using Jalkapallopeli::pallo; > // using Jalkapallopeli; > pallo = Piirto_ohjelma::pallo; Nyt pelkkä pallo viittaa pallopeliin, koska kerroimme että käytämme jalkapallopelin palloja. Piirto-ohjelman palleroiden pyörittely vaatii tarkkaa viittausta, siis ``` Piirto_ohjelma::pallo ``` . Emme tietenkään voi tuoda molempia palloja yhtä aikaa käyttöön, koska kääntäjä ei tietäisi enää kumpi on kumpi. Mikäli using-käskylle antaa syötteeksi namespace ja nimiavaruuden (eli using namespace Piirto_ohjelma;), ottaa se kaikki nimiavaruuden nimet käyttöön. Se ei välttämättä ole hyvä idea, koska oikeiden ohjelmien nimiavaruuksissa on paljon nimiä ja Murphyn lakia noudatellen kuitenkin jotkut sitten menevät päällekkäin ohjelman nimien kanssa. Myös C++:n mukana tulevat tietotyypit on sijoitettu omaan nimiavaruuteensa, nimeltään std (niinkuin standard). Tästä johtuen oikeaoppinen "Hello World" -ohjelma tulisikin olla tämmöinen: > #include <iostream> void main() { std:: cout << "Hello world!"; } Siis cout tulee kaivella sieltä std-nimiavaruuden kätköistä. Tarkkasilmäisimmät saattavat havaita, että iostreamin lopusta puuttuu se piste ja hoo. Nimiavaruudet ovat uudehko ominaisuus ja olisi ollut kovin kurjaa, jos niiden käyttöönoton jälkeen olisivat vanhat C++-ohjelmat lopettaneet toimintansa. Niinpä perinteiset .h-päätteiset otsikkotiedostot määrittelevät kaiken nimettömään nimiavaruuteen, siis oletusarvoiseen nimiavaruuteen. Esimerkiksi pelkkä `cout` siis viittaa nimettömään avaruuteen. Kun taas käytetään otsikkotiedostojen hoottomia versioita, on kaikki siirretty std-avaruuteen ja ylläoleva esimerkki ei siis toimisi jos `std::` otettaisiin coutin alusta pois. Nimettömän avaruuden käyttöä tulisi välttää, joten myös .h-otsikkotiedostot eivät ole suositeltavia (tätä opasta ei ole näiltä osin ole vielä päivitetty joka paikasta, .h-tiedostojen käyttöön saattaa törmätä). Toki toimiva vaihtoehto on myös: > #include <iostream> using std::cout; void main() { cout << "Hello world!"; } Kuten huomaat, nimiavaruuksien käyttäminen tuo hieman lisää vaivaa. Siksi en turhaan monimutkaista lyhyitä esimerkkejä nimiavaruuksilla. Kokonaisissa esimerkkiohjelmissa pyrin noudattamaan oikeaoppista nimiavaruuksien käyttöä, mutta kuten totesin, päivityksen ovat vielä kesken. Esimerkit siis kyllä toimivat uusillakin kääntäjillä, mutta .h-otsikkotiedostojen käyttö ei ole kaikkien ohjelmointitaiteen sääntöjen mukaista. Oletetaan että on asia, joka pitää tehdä ohjelmassa monta kertaa. Voi taas tietenkin tehdä sen joka paikassa - kasvattaa koodin kokoa turhaan. Mutta fiksumpi valjastaa funktiot käyttöönsä. Jos jatkamme filosofointia, voimme kuvitella tilanteen jossa tätä toimintoa pitäisi muuttaa. Tyhmempi joutuu muuttamaan sen joka kohdasta missä sitä käytetään, mutta fiksu muuttaa vain tekemäänsä funktiota. Kuinka näitä funktioita sitten tehdään, se selviää aivan heti: > funktion_paluuarvon_tyyppi funktion_nimi(parametri_yksi, parametri_kaksi); Okei, se homma on käsitelty. Sitten polymorfismiin... :) Kuulenko jotain vikinää? Okei, selitetään sitten vähän perusteellisemmin. Funktio (function) on kansantajuisesti toiminto. Se tekee jonkin tietyn toiminnon. Funktion toimintaa voidaan ohjata sille annettavilla parametreilla, ja se palauttaa tuloksena arvon. Näin teoriassa. Todellisuudessa funktiolle ei tarvitse antaa mitään parametrejä. Se voi vaikka tyhjentää ruudun, jolloin tarkempaa ohjausta ei tarvita. Funktion ei myöskään ole pakko palauttaa arvoa. Kun funktio määritellään, pitää sen paluuarvon tyyppi määritellä. Jos ei haluta palauttaa yhtikäs mitään, annetaan paluuarvon tyypiksi void ("tyhjyys"). Sitten määrittelyssä annetaan funktion nimi. Minulla on tapana aloittaa funktion nimi isolla ja kirjoittaa jokainen nimen osa isolla. Muista! C++ tekee eron isojen ja pienten kirjainten välillä! Funktiolle annettavat käynnistysarvot, parametrit, kirjoitetaan sulkeisiin. Niitä voi olla ihan miten paljon tahansa, tietenkin noin kymmenen on käytännön maksimi. Oliopohjaisissa ohjelmissa niitä tarvitaan vain muutama, melko usein ei yhtään. Älä kuitenkaan vaivaa päätäsi tällä vielä, kyllä ne oliot jo nurkan takana odottavat. Kuvitellaan, että teemme jonkun tilastotieteellisen ohjelman, jossa pitää laskea kahden luvun keskiarvo. Niinpä teemme KeskiArvo()-funktion. > double KeskiArvo(double luku1, double luku2); Määritellään funktio ensin. Sille voitaisiin kirjoittaa sisältö nyt heti, mutta minä ainakin pidän enemmän tavasta, jossa funktiot määritellään ohjelman alussa, sitten tulee main()-funktio ja lopussa annetaan funktioille lihaa luiden väliin. Funktion määrittely on nimeltään prototyyppi (sitä ei vielä yksinään voi käyttää mihinkään) ja itse sisällön määrittely on funktion runko. Joten ohjelman loppuun tulisi: > double KeskiArvo(double luku1, double luku2) // Huomaa, ei ;-merkkiä! { double tulos = 0; tulos = (luku1 + luku2) / 2; return tulos; } Funktiota käytettäisiin näin, jos haluttaisiin laskea kolmen ja viiden keskiarvo: > #include<iostream.h> double KeskiArvo(double luku1, double luku2); void main() { cout << KeskiArvo(3, 5); } double KeskiArvo(double luku1, double luku2) // Huomaa, ei ;-merkkiä! { double tulos = 0; tulos = (luku1 + luku2) / 2; return tulos; } Tarkastellaan vielä kohtaa: > double KeskiArvo(double luku1, double luku2); double on funktion paluuarvon tyyppi. Eli kun funktio ajetaan, se palauttaa jonkun arvon, jonka pitää olla double-tyyppiä. Suluissa olevat ovat parametreja. double on parametrin tyyppi, ja luku1 on muuttuja johon se tallennetaan. luku2 on toinen double-tyyppinen parametri. Funktiossa keskiarvolaskun tulos palautetaan return-käskyllä ja se annetaan vastaus-muuttujalle aivan kuten funktiokutsun tilalla olisi muuttuja. Jos haluamme funktion, jolle ei anneta parametrejä ja joka ei palauta arvoa - tällainen funktio voisi esimerkiksi soittaa äänimerkin tietokoneen kaiuttimesta - määrittelemme sen näin: > void Funktio(); tai: > void Funktio(void); Kummin vaan - ylempi tulkitaan automaattisesti alemmaksi. Huomaa myös se tärkeä asia, että funktiota kutsuttaessa käytetään aina sulkumerkkejä. Hyvin ilkeää on, että mikäli unohdat sulkumerkit kutsusta, ei kalikka kalahda, nalli napsahda tai kääntäjä älähdä. Funktion nimi yksinään on funktion osoite muistissa ja sen käyttö on myös sallittua. Mikäli rivillä on vain pelkkä muistiosoite, eikä mitään käskyä, niin ohjelma ei sitten tee yhtään mitään. Eli kun tosissaan haluat sitä Funktiota kutsua, niin ohjeista ohjelmaa: Funktio();. # Funktion oletusparametrit Funktiolle voidaan määritellä myös oletusparametrejä. Ne määritellään prototyypissä, tai jos funktiolla ei ole prototyyppiä, niin sitten rungossa. Kuitenkin vain kerran. Määrittely tehdään näin: > #include <iostream.h> void Funktio(int a = 5, int b = 8); void main() { Funktio(); Funktio(5); Funktio(5, 8); } void Funktio(int a, int b) { cout << "a " << a << " b " << b << endl; } Ohjelma tulostaa ajettaessa: > a 5 b 8 a 5 b 8 a 5 b 8 Siis jos parametrille ei anneta mitään arvoa, käytetään oletusarvoa. # Funktioiden uudelleenmäärittely C++:ssa funktiota ei valita pelkän nimen, vaan myös parametrien mukaan. Siis esimerkiksi int KeskiArvo(int eka, int toka) ja float KeskiArvo(float eka, float toka) ovat eri funktioita. Kun funktiokutsu suoritetaan, etsii kääntäjä parametrien perusteella oikean funktion ja kutsuu sitä. Tätä ihmeellisyyttä kutsutaan funktioiden uudelleenmäärittelyksi, monimuotoisuudeksi, siis ulkomaankielellä polymorfismiksi. Polymorfiset funktiot ovat siitä kivoja, että niitä voi käyttää muistamatta muuttujien tyyppejä; kunhan oikea funktio on vaan tehty, hoitaa kääntäjä homman kotiin. Hmm. Tulipas lyhyt selostus. Mitenkä minä vielä tätä lisäisin, eihän asia nyt niin yksinkertainen ole. No voihan vimputti, siinä se kyllä on. Ehkä minä vielä yhden esimerkin tähän kyhään, niin saatte vähän kosketusta käytännön toteutukseen. Huomaathan esimerkkiä tavatessasi, että int-lukuina annetut keskiarvot eivät tietenkään ole tarkkoja. > #include<iostream.h> int KeskiArvo(int luku1, int luku2) { double summa = (double)luku1 + (double)luku2; return (int)(summa / 2 + 0.5); // + 0.5 on köyhän miehen pyöristys, joka ei toimi kuin positiivisilla luvuilla } int KeskiArvo(int luku1, int luku2, int luku3) { double summa = (double)luku1 + (double)luku2 + (double)luku3; return (int)(summa / 3 + 0.5); } double KeskiArvo(double luku1, double luku2) { double summa = luku1 + luku2; return summa / 2; } void main() { int i1, i2, i3; i1 = 2; i2 = 4; i3 = 5; double d1, d2; d1 = 2.5; d2 = 6.66; cout << "Lukujen " << i1 << " ja " << i2 << " keskiarvo on " << KeskiArvo(i1, i2) << endl; cout << "Lukujen " << i1 << ", " << i2 << " ja " << i3 << " keskiarvo on " << KeskiArvo(i1, i2, i3) << endl; cout << "Lukujen " << d1 << " ja " << d2 << " keskiarvo on " << KeskiArvo(d1, d2) << endl; } Tämä oli vain kevyt raapaisu polymorfismiin; kuin avaisi jugurttipurkin ja nuolisi kannen, mutta jättäisi itse sisällön syömättä. Funktioiden uudelleenmäärittely on polymorfismia funktiotasolla - toisin sanoen melko vaisua polymorfismia. Yleensä olio-ohjelmoinnissa polymorfismilla tarkoitetaan periyttämisen avulla toteutettua olioiden polymorfismia, joka onkin kulmakivi monissa olio-pohjaisissa järjestelmissä. # main()-funktio main() on funktio, josta ohjelman suoritus alkaa - tässä ei liene mitään uutta. Tähän mennessä main() on määritelty: > void main() { // ohjelma } Tämä on kuitenkin hieman puutteellinen tapa, kuten kohta tulet huomaamaan. Määrittelyä on oppaan aluksi käytetty selkeyden vuoksi. Toinen yleinen, mutta hieman monimutkaisempi tapa on määritellä: > int main(void) { // ohjelma return 0; } Kuten huomaat, tavoissa on kaksi eroa. Parametrit ovat erilaisia, mutta käytännössä määrittelyt ovat identtisiä - määrittely main() tulkitaan C++-kielessä main(void). Tämä koskee kaikkia funktioita, ei pelkästään main():ia. Molemmat tavat toimivat, kuten alla olevasta esimerkistä huomaat: > #include <iostream.h> int Funktio(void); // käytetään voidia void main() { cout << Funktio(); } int Funktio() // ei käytetä voidia, mutta sama on Funktio silti.. { return 5; } Kysymys on siis pelkästään makuasiasta - joten tappelu alkakoon! Miksi sitten ei kirjoittaa tyhjää (void), kun parametrien lista kerta on tyhjä? No, onhan tyhjä määrittely melko kuvaava määrittely tyhjälle. Tarkkaavainen saattaisi todeta, että kun siihen jotain kirjoittaa, niin eihän se enää ole tyhjä. Minusta siis voidin poisjättäminen on havainnollisempaa. Toinen syy on siinä, että voidin voi sotkea void* -osoittimeen, kuten alla olevassa esimerkissä demonstroidaan: > #include <iostream.h> int Funktio(void*); void main() { int luku = 5; cout << Funktio((void*)&luku); } int Funktio(void* param) { int* p = (int*)param; return (*p) + 1; } Jos olet aito aloittelija, niin saat olla melkoinen maaginen ihmemies mikäli täysin ymmärrät yllä olevan esimerkin - kun osoitinmuuttujia ei ole vielä edes vielä selitetty. Ja hyvä on jos et ymmärrä, nimittäin tuo ohjelma on hyvien sääntöjen, puhtaan järjen ja itsesuojeluvaiston vastainen. Mutta toimii silti. Ohjelmassa on kuitenkin oikeastaan vain yksi tärkeä rivi, jonka varmaan ymmärrät: Funktio():n prototyyppi. > int Funktio(void*); Se on yhtä tähteä vaille samanlainen kuin edellisessä esimerkissä. Funktion toiminta on kuitenkin aivan erilainen. Tyhjän parametrilistan määrittely on helpommin erotettavissa void* -osoittimesta. Valitettavasti tämä perustelu ei ole mitenkään väkevä, koska void*-osoittimien käyttö C++-ohjelmissa on merkki huonosti suunnitellusta ohjelmasta. Ainoa syy niiden käyttöön on maksimaalisen nopeuden saavuttaminen, mutta vastapainona on melkoinen riski yhdellä ohjelmointivirheellä saada aikaan kokonainen virheiden kyinen pelto kynnettäväksi. Toinen ero äsken esitellyissä main()-funktioissa on paluuarvo - ja tämä onkin tärkeämpi tapaus. Mihin main():n paluuarvo palautuu? Kuka main():ia edes kutsuu? Vastaus on, että kääntäjä kutsuu. Kun käynnistät ohjelman, käyttöjärjestelmä lataa sen ja rupeaa suorittamaan sitä. Se, että miten käyttöjärjestelmä käynnistää ohjelman riippuu ihan käyttöjärjestelmästä. Yksinkertaisessa tapauksessa se vain rupeaa syöttämään prosessorille ohjelmakoodia tiedoston alusta, yleensä kuitenkin ohjelmatiedostoissa (kuten .exe-tiedostoissa) on alussa jonkinlainen tunnisteosa, jonka käyttöjärjestelmä lukee ja siirtyy sen jälkeen ennalta määrättyyn kohtaan ohjelmakooditiedostoa ja rupeaa suorittamaan ohjelmaa siitä eteenpäin. Niinpä meidän kääntäjämme ovelasti järjestää asiat niin, että juuri siinä kohden mistä ohjelman suoritus alkaa on kutsu main()-funktioon. Eli käyttöjärjestelmä antaa alkusysäyksen ohjelmalle ja käyttöjärjestelmä myöskin saa main()-funktion paluuarvon. Paluuarvo on siis on arvo, jonka ajettu ohjelma palauttaa käyttöjärjestelmään. Paluuarvo on peräisin Unixeista, joissa sitä hyödynnetäänkin melko ahkerasti. On hyvän ohjelmointitavan mukaista, että ohjelmat palauttavat arvon, jolla viestivät siitä kuinka ohjelman suoritus onnistui. Standardi on, että onnistunut ohjelma palauttaa arvon EXIT_SUCCESS (EXIT_SUCCESS on siis vakio, muuttuja joka on kääntäjän määrittelemä). Jos jokin menee pieleen, palautetaan EXIT_FAILURE. EXIT_SUCCESS on lähes poikkeuksetta 0, kun taas EXIT_FAILURE riippuu järjestelmästä riippuen - yleensä se on 1 tai 255. Yleinen tapa palauttaa nolla main():n onnistuneen suorituksen päätteeksi ei siis ole ihan kaikkien taiteen sääntöjen mukainen, vaikka käytännössä aina toimiikin. Paluuarvo on hyvin kätevä, kun rakennetaan komentojonoja, jotka kutsuvat C++-ohjelmaa ja jatkavat toimintaansa suorituksen onnistumisen, siis paluuarvon, perusteella. Esimerkiksi kun kopiointiohjelma palauttaa EXIT_FAILURE-arvon mikäli levytila loppuu kopioidessa kesken, voi varmuuskopioita tekevä komentojono lukea paluuarvon ja sen perusteella käynnistää sähköpostiohjelman, joka lähettää ylläpitäjälle "Vaihda nauhavarmistimeen uusi nauha"-viestin. Unixissa lapsiprosessien suorituksen onnistumista voi myös tutkia paluuarvon perusteella. Useissa Unix-shelleissä paluuarvo löytyy $?-ympäristömuuttujasta, kun taas DOSissa (ja NT4 DOS-shellissä) paluuarvo löytyy muuttujasta ERRORLEVEL. Sen voit todeta vaikka tekemällä ohjelman, jonka main() palauttaa tietyn arvon, ajamalla sen ja komentamalla komentorivillä: > echo %ERRORLEVEL% Ja vaikka et itse käyttäisi ohjelmaa tällaiseen tarkoitukseen, saat hyvin pienellä vaivalla aikaan hyvää mieltä muille, kun teet ohjelmasi niin että se viestii toiminnastaan paluuarvolla (esimerkiksi: EXIT_SUCCESS (tai 0) = virheetön toiminta, 1 = ajonaikainen virhe, 2 = virhe tiedoston avauksessa jne.. tai yksinkertaisesti ja standardisti: EXIT_SUCCESS = virheetön suoritus, EXIT_FAILURE = virheellinen suoritus). Tästä eteenpäin käytämme oppaassa oikeaoppista main()-määrittelyä. Kaikkien taiteen sääntöjen ja pölyisten oppikirjojen mukainen main()-funktio on siis tällainen: > int main() { // ohjelma return EXIT_SUCCESS; } # Lohkot, lauseet ja lausekkeet Kolme L:ää, lohkot, lauseet ja lausekkeet. Mitä ne ovat? Aloitamme lauseesta, se on nimittäin helppo nakki. Lause on pätkä ohjelmaa, joka tekee jonkun tietyn asian. Lause päättyy puolipisteeseen ( ; ). > a = 10 * b; // lause Lause voi myös olla tyhjä, silloin se siis on pelkkä puolipiste. Normaalin lauseen voi korvata monella lauseella, siis lohkolla. Lohko on {}-merkkien väliin kerätty kasa lauseita. if-käskyn jälkeen tulee lause, jonka voi tietenkin korvata lohkolla. Eli: > if (a == 10) doSomething(); // lause if (a == 10) // lohko { a += 150; b--; } Lohkoa ei siis päätetä puolipistein, mutta lohkon sisällä olevat lauseet kylläkin. Lohkoilla on myös tärkeä merkitys muuttujien näkyvyyden kannalta. Tästä sitten seuraavassa kappaleessa. Sitten viimeinen villahousu, lauseke. Lauseke on pätkä, jolla on joku arvo. Vanha kansa sanoo, että lauseke palauttaa arvon. Lauseke 10 + 15 palauttaa arvon 25. Tämä arvo voidaan sitten hyödyntää lauseessa, sijoittamalla se vaikka johonkin. > c = 10 + 15; Mutta myös lause on lauseke. Lauseke c=10 + 15 palauttaa c:hen sijoitetun arvon, eli voidaan kirjoittaa: > a = c = 10 + 15; Nyt kannattaisi Sekalaiset-kohdasta lukea hyvän koodin kirjoitusta käsittelevä kohta ja sitten palata Muuttujien näkyvyyteen. # Muuttujien näkyvyys Muuttujilla on näkyvyysalueita. Tällä tavalla ei muistia hukata, kun turhat muuttujat poistuvat käytöstä. Muuttujat voidaan jakaa raa'asti kahteen osaan, globaaleihin (global) ja paikallisiin (local). Globaaleja muuttujia käytetään hyvin harvoin, hyvin suunnitelluissa ohjelmissa ehkä ei koskaan. Itseasiassa en muista milloin viimeksi olisin globaalin muuttujan määritellyt, siitä on jo aikaa. Globaalit muuttujat näkyvät koko ohjelmassa. Ne ovat siis kaikkien käytettävissä. Paikalliset muuttujat näkyvät vain siinä lohkossa, missä ne ovat määritelty. Kun lohko loppuu, muuttujat hävitetään. Funktion parametrit ovat funktion paikallisia muuttujia. Globaali muuttuja määritellään ohjelman alussa ennen main() -lohkoa. Paikallinen muuttuja määritellään lohkon sisällä ja se häviää lohkon lopussa. Muuttujia ei C++:ssa tarvitse määritellä lohkon alussa, kuten C:ssa, vaan ne voi määritellä missä haluaa. Eroa siis ei ole itse muuttujan määrittelyssä, vaan missä kohti muuttuja sijaitsee. Esimerkki: (kääntäjä ei suostu tätä kääntämään!) > void Funktio(); int olenGlobaaliMuuttuja; int main() { int olenPaikallinenMuuttuja; Funktio(); olenGlobaaliMuuttuja = 1; // onnistuu olenPaikallinenMuuttuja = 1; // onnistuu olenMyosPaikallinenMuuttuja = 1; // ei onnistu return EXIT_SUCCESS; } void Funktio() { int olenMyosPaikallinenMuuttuja; olenGlobaaliMuuttuja = 1; // onnistuu olenMyosPaikallinenMuuttuja = 1; // onnistuu olenPaikallinenMuuttuja = 1; // ei onnistu } Globaali muuttuja määritellään ohjelman alussa. Sitä voidaan käyttää mistä vain. Ohjelmassa määritellään myös kaksi paikallista muuttuja ja niitä voidaan käyttää vain niistä lohkoista missä ne on määritelty. Hyvään ohjelmointitapaan kuuluu globaalien muuttujien välttäminen. Miksi? Koska niille voidaan antaa arvo mistä vaan, niin niille voidaan antaa väärä arvo mistä vaan. Väljästi totuuspohjainen esimerkki: on kaksi funktiota. Toinen on tehty valmiiksi ja lopussa on virheentarkistukseen liittyvä rivi: > if (globaaliTila = 1) return 0; Tämän tarkoitus olisi siis tarkistaa, että globaaliTila on 1 eli kaikki on kunnossa. Vertailuoperaattori ==:n sijaan onkin tullut vain yksi =, mikä meinaa sijoitusta. Sijoitus on aina tosi, siis funktio palauttaa arvon 0 aina. Ja sen lisäksi globaaliTila:n sijoitetaan arvo 1, joten jos vaikka todellisuudessa globaaliTila olisi 1000 (maailmanloppu kolkuttaa ovella ja Belsebuubi puhaltaa vaskiseen torveensa), kaikki nollautuisi tämän rivin jälkeen. Se on riittävän inhottavaa jo yksinään, mutta kun virhettä ei heti huomata - kaikkihan näyttää toimivan, vaikka todellisuudessa ei toimisikaan - ja rupeamme kirjoittamaan toista funktiota, huomaamme että kaikki ei ole kunnossa vaikka globaaliTila niin väittääkin. Tässä vaiheessa ohjelmoija seisoo polvia myöten juoksuhiekassa ja punapyllyiset paviaanit kutittelevat häntä nenästä strutsinsulilla - tai ainakin yhtä hermostuttava tilanne on. Vaatii paljon epätoivoa, että meidän tuskastunut ohjelmoijamme vielä kerran katsoo jo valmiiksi luultuun funktioon ja löytää virheen sieltä. Nyrkkisääntö on: mahdollisuus muuttaa muuttujan arvoa tulee olla vain niillä ohjelman kohdilla, jossa sitä oikeasti tarvitaan. Globaaleja muuttujia on mahdollista muuttaa joka ikisessä ohjelman kohdassa, mikä on noin 99% liikaa. Muuttujan näkyvyysalue ei ole aivan sama asia kuin viittausalue, siis se alue jossa muuttujan nimeä voidaan käyttää siihen viittaamiseen. Ero tulee esille silloin, kuin paikallisesti määritellään muuttuja, joka on samanniminen kuin joku globaali muuttuja. Silloin muuttujan nimi viittaa paikalliseen muuttujaan - niin kauan kuin se on olemassa. Siis vähempiarvoinen, paikallisempi muuttuja on jonossa ekana jos samannimisiä muuttujia on paljon. Jos haluamme tehdä selväksi, että tarkoitamme globaalia muuttujaa, käytämme :: (kaksi kaksoispistettä) -operaattoria. Tällä ei vielä tässä vaiheessa ole juurikaan merkitystä, mutta alla on kuitenkin demonstraatioesitys aiheesta. > #include <iostream.h> int muuttuja = 1; int main() { int muuttuja = 2; cout << "Paikallinen muuttuja " << muuttuja << endl; cout << "Globaali muuttuja " << ::muuttuja << endl; return EXIT_SUCCESS; } # Esikääntäjän perustemput Esikääntäjä on kuin esipesu pyykkikoneissa; se tapahtuu ennen varsinaista huljuuttelua. Haa, puhun vertauksilla ihan kuin Jeesus konsanaan. Esikääntäjä on siis ohjelma, joka käsittelee lähdekoodia ennen kuin oikea kääntäjä saa sen hyppysiinsä. Esikääntäjää ohjataan #-alkuisilla käskyillä ja niiden loppuun ei kirjoiteta puolipistettä. Hyvin yleinen esikääntäjälle annettu käsky on: > #include <iostream.hAlussa on #, kuten pitääkin. Sitten include, siis sisällytä. Niinpä tuohon kohtaan esikääntäjä asettelee tiedoston iostream.h ja kun tiedosto syötetään oikealle kääntäjälle, niin iostream.h:n sisältö on rivin kohdalla. #-alkuiset käskyt eivät ole enää mukana kääntäjälle menevässä versiossa. Sisällytettävän tiedoston nimi kirjoitetaan <>-merkkien väliin. Tämä tarkoittaa, että se löytyy siitä hakemistosta missä kääntäjän mukana tulevat otsikkotiedostot (.h) ovat, yleensä hakemisto on kääntäjän hakemiston alihakemisto INCLUDE tai H. Tiedoston nimi voidaan kirjoittaa myös lainausmerkkeihin, mikä tarkoittaa, että tiedosto löytyy samasta hakemistosta lähdekoodin kanssa. Tätä siis yleensä käytetään omien otsikkotiedostojen sisällyttämiseen, kun taas <>-merkkejä kääntäjän otsikkotiedostoihin. Toinen usein käytetty esikääntäjän kikka on vakioiden määritteleminen. Jos ohjelma piirtää 320x200 tarkkuudella olevaa grafiikkaa, pitää resoluutiot 320 ja 200 kirjoittaa usein koodin sekaan. Kun tulee aika päivittää ohjelmaa ja laittaa se toimimaan tilassa 640x480, tulee pirunmoinen urakka vaihtaa jok'ikinen luku. Hyvin todennäköisesti joku arvo jää vaihtamatta, jolloin homma ei toimi tai pahemmassa tapauksessa ohjelma toimii mystisellä tavalla väärin ja se ei valmistu ikinä ja ohjelmistofirma menee nurin jne.. Kaiken tämän kurjuuden voi välttää määrittelemällä vakion X_RES, siis horisontaaliresoluutio, joka on 320. Se tehdään esikääntäjän avulla näin näppärästi: > #define X_RES 320 #define Y_RES 200 Sitten voimme käyttää sanoja X_RES ja Y_RES aivan kuin ne olisivat lukuja. Kun muutamme tarkkuutta, pitää se muuttaa vain #define-lauseista. Kätevää, eikö olekin? Kun esikääntäjä saa define-käskyn, se plaraa lähdekoodin läpi ja korvaa kaikki X_RES-sanan ilmentymät arvolla 320. Tämä koskee tietenkin vain kokonaisia sanoja, X_RESOLUTION_DETECT ei muutu 320OLUTION_DETECT:ksi. Esikääntäjä ei myöskään käsittele kommentteja tai lainausmerkkien sisällä olevia pätkiä, kuten coutin tulostuksia. # Vakiot oikeaoppisesti Olen varmaan jo maininnut muutaman kerran, että esikääntäjä on kääntäjä, joka käsittelee lähdekoodin ennen kääntäjää. Eli esikääntäjä käsittelee vakiot ja hävittää niiden jäljet, jolloin oikealla kääntäjällä ei ole mitään tietoa mitä tyyppiä eri vakioarvot ovat. Kääntäjä ei siis voi tarkistaa arvojen tyyppiä. Sehän ei käy päinsä C++-kielessä, jossa muuttujien tyyppitarkastus on viety hyvin pitkälle. Pieni esimerkki: > #define ARVO 1280 unsigned char tavu = ARVO; Mikäkö tässä mättää? unsigned charin arvoalue on 0..255, joten 1280:n sijoittaminen siihen ei onnistu. Tarkoitus oli laittaa ARVOksi 128, joka olisi ollut oikein, mutta huolimaton ohjelmoija painoi vahingossa yhden nollan liikaa (kertomus perustuu täysin tositapahtumiin). Kääntäjä ei tiedä mitä tyyppiä ARVOn pitäisi olla, eikä se osaa varoittaa siitä, että sille annetaan väärän tyyppinen arvo. Niinpä onkin järkevämpää käyttää vakioiden määrittelemiseen esikääntäjän sijasta oikeaa kääntäjää, jolloin se voi valvoa myös vakioiden oikeaoppista käyttöä. Niin saamme taas yhden vastuun siirrettyä kääntäjälle, joka tekee sen meitä nopeammin, huolellisemmin eikä kyllästy hommaansa saati sitten vaadi palkkaa. Kääntäjän vakiot määritellään const-määreen avulla. Sen jälkeen tulee ihan tavallinen muuttujan määrittely. Ero on kuitenkin se, ettei const-muuttujan arvoa luonnin jälkeen voi muuttaa. > const unsigned char ARVO = 1280; unsigned char tavu = ARVO; Nyt kääntäjä osaa heti huomauttaa siitä, että unsigned char-tyyppiseen muuttujaan ei voi sijoittaa arvoa 1280 ja selviämme paljon vähemmällä virheen jahtaamisella ja itkuvirsien luikuttelulla. # typedef Hyvin yleinen villitys on tämänlainen tapa määritellä tietotyypeille käteviä lyhenteitä: > #define byte unsigned char // määritellään byte vastaamaan unsigned charia Tässä on vaan taas se kommervenkki, että esikääntäjä on vain typerä merkkijonojen korvaaja - eikä siis pysty millään lailla valvomaan määrittelyjen käyttöä. Parempi on taas antaa kääntäjän hoitaa tämä tyypin määrittely, siis type definition eli lyhyemmin typedef: > typedef unsigned char byte; Huomaa, että järjestys määrittelyssä on nyt toisinpäin ja lopussa on puolipiste, koska koodi menee kääntäjälle. Nyt voimme käyttää unsigned char -tyypin tilalla peitenimeä byte. Se nopeuttaa ohjelman kirjoittamista ja tekee siitä helpommin luettavan. Koska tietotyypit ovat ohjelmointiympäristökohtaisia, voimme myös peitenimien avulla peitellä tätä ongelmaa - käytämme vain peitetyyppiä, ja eri ympäristöissä määrittelemme sen vastaamaan eri tietotyyppejä. # Lueteltu tyyppi: enum enum on semmoinen kätevä (?) juttu, jota voi käyttää numeroin koodatun tiedon säilyttämiseen. "Kätevä"-sanan perään lykkäsin kysymysmerkin, koska en itse ole enumia juuri koskaan käyttänyt mihinkään. Mutta kun nyt tarkemmin ajattelen, niin ehkä vika sittenkin on minussa. Jospa pyrin muuttamaan tapojani, niin suhde minun ja enumin välillä voi vielä kehittyä antavaksi ja hedelmälliseksi. Mikäs paholaisen keksintö se enum sitten on? No, sehän lueteltu tyyppi, siis enumerated type, mistä nimikin on varmaan keksitty. Sillä voi kätevästi esittää jotain tietoa, joka on koodattu numeroarvoin: siis esimerkiksi viikonpäiviä esittävässä muuttujassa on maanantai koodattu viikon ensimmäiseksi päiväksi, siis C++:ssa luvuksi nolla (indeksointi alkaa nollasta C++:ssa, kuten varmasti muistatkin). Eli käytännössä: > enum PAIVA {MA, TI, KE, TO, PE, LA, SU }; Noin se toimii. Luodaan uusi tietotyyppi PAIVA, jolla on seitsemän sallittua arvoa MA, TI, KE, TO, PE, LA ja SU. Muuttuja on itseasiassa int-luku, jolla on arvot 0 - 6. Siis vertailu TI < TO tarkoittaa samaa kuin 1 < 3, siis tosi. Tiistai on ennen torstaita. Jotkut kääntäjät antavat sijoittaa lueteltuun tyyppiin myös numeroarvon, siis viikonpaiva=2 ja viikonpaiva=KE ovat sama sijoitus. Yleensä kuitenkin kääntäjät murahtavat tällaisesta sijoituksesta - ja aiheesta. enumin idea on juuri päästä eroon paljaiden lukujen käytöstä. Huomaa myös sellainen seikka, että vakionimet (siis MA, TI... edellisessä esimerkissä) ovat vain kääntäjän ymmärtämiä peitteitä lukuarvoille - ja kun kääntäjä sylkäisee valmiin ohjelman sisuksistaan, ei merkkijonoja enää ole. Sijoitus PAIVA="MA" ei onnistu, koska "MA" on merkkijono eikä luvun 0 peitenimi. Vakionimille voi antaa myös itse numeroarvot tyypin luonnin yhteydessä. > enum TURVALLISUUSLUOKITUS { VIERAS = 0, PERUSKAYTTAJA = 2, TEHOKAYTTAJA = 4, YLLAPITAJA = 10 }; int main() { TURVALLISUUSLUOKITUS jaska; jaska = PERUSKAYTTAJA; cout << "Jaskan luokitus on " << jaska << endl; if (jaska > VIERAS) cout << "Jaskalle voi paljastaa vähän salaisempiakin tietoja.." << endl; return EXIT_SUCCESS; } # Esikääntäjä tappaa talossa ja puutarhassa Kukaan ei tee virheetöntä koodia, en edes minä (itseasiassa teen paljon virheita, koska virheistä oppii parhaiten ja olen innokas uuden oppija...). Kiireessä kirjoitettu lähdekoodi on bugien luonnollisinta esiintymisaluetta. Bugihan on siis virhe ohjelmassa, joka joko laittaa ohjelman toimimaan väärin tai kaatumaan kokonaan, yleensä molempia ja hieman satunnaisesti. Bugin tappaminen voi olla joskus vaikeaa; metsästyslupia niille on hyvin helppo saada, mutta hyvän suojavärin omaavan bugin löytäminen on pirullisen vaikeaa. Joskus virheitä etsittäessä tulee mieleen, että olisipa kiva tietää millaisia arvoja tuo muuttuja saa. Senhän selvittäminen onnistuu yksinkertaisesti coutilla. Kun koodi on ripoteltu täyteen tarkistuksia ja virhe löytyy, pitää ne kaikki napsia käsin pois. Ja sitten huomataankin, että ohjelma ei ihan vielä toimikaan ja tarkistukset pitää laittaa takaisin. On olemassa kuitenkin helpompikin keino. Valitsemme sopivan sanan, esimerkiksi DEBUG, jolla kerromme milloin käännämme ohjelmakoodia tarkistustilassa, jolloin kaikki ylimääräinen tarkistustauhka tulee mukaan. Kun ohjelma on valmis, otamme DEBUGin määrittelyn pois ja esikääntäjä karsii kaiken ylimääräisen pois meidän puolestamme. > #include iostream.h #define DEBUG int main() { int muuttuja = 0; cin >> muuttuja; #ifdef DEBUG cout << "muuttuja " << muuttuja <<endl; #endif return EXIT_SUCCESS; } #ifdef, siis if defined (jos määritelty) ottaa mukaansa jäljessä olevan koodin #endifiin asti, jos pyydetty sana on määritelty. Ja sehän on, ihan alussa. DEBUGille ei anneta mitään arvoa, se on vaan määritelty. Jos heitämme kommenttimerkit ensimmäisen lauseen eteen, ei DEBUGia ole määritelty ja esikääntäjä karsii #ifdefin ja #endifin väliset tarkistukset pois. Muuttujien arvojen seuraaminen onnistuu myös huomattavasti helpommin debuggerilla, joka yleensä tulee kääntäjän mukana. Tosin onnellinen on se, joka ei ikinä joudu ilman debuggeria ohjelmoimaan. Yleensä vähän eksoottisempi ohjelmointivälineiden yhdistely takaa sen, että debuggeri ei ole käytössä tai että se ainakaan ei toimi kunnolla. KUN debuggeri toimii, se suorittaa tekemäämme ohjelmaa askel askeleelta ja antaa seurata muuttujien arvoja. Ongelmia saattaa kuitenkin tulla esimerkiksi käytettäessä erikoisempia grafiikkatiloja, kuten PC:n SVGA-tiloja. Asian voi hoitaa kommentoimalla grafiikan käyttöön liittyvät kohdat pois, mutta toisaalta senkin työn voi antaa esikääntäjän hommaksi. Tähän käytämme käskyä #ifndef, if not defined. Se on kuin #ifdef, mutta toimii toisinpäin, siis ottaa merkityn alueen mukaan jos tiettyä sanaa ei ole määritelty. > // gfxlib.h on mielikuvituksellinen grafiikkajärjestelmä, tätä esimerkkiä // siis ei voi kääntää #define DEBUG #include"gfxlib.h" // grafiikkaan liittyviä juttuja int main() { #ifndef DEBUG AsetaKummallinenNayttotila(); #endif for (int a=0; a < 100; a++) { TeeMuutJutut(); #ifndef DEBUG PiirraKuva(); #endif } #ifndef DEBUG PalaaTekstitilaan(); #endif return EXIT_SUCCESS; } # Makrot Kuvitellaan että ohjelmoit tarpeettoman väkivaltaista toimintapeliä, jonka huippunopeassa grafiikkaa piirtävässä silmukassa pitää laskea jonkun muuttujan toinen potenssi useassa kohdassa. Et viitsisi kirjoittaa sitä jokaiseen kohtaan, varsinkin kun kaava saattaa muuttua. Silloin se pitäisi muuttaa käsin useaan kohtaan ja tietäähän kaikki mitä siitä tulee. Toisaalta funktion kutsuminen aiheuttaisi aivan liikaa tehoa syövää lisätyötä ja tärvelisi huippunopean silmukan. Esikääntäjä se osaa. > #define NELIO(x) (x)*(x) // NELIO-makron määrittely int main() { cout << "5+5 toiseen on " << NELIO(5+5) << endl; return EXIT_SUCCESS; } Otin tässä tapauksessa NELIO-makron parametriksi lausekkeen 5+5, jotta huomaisit kuinka tärkeitä sulut ovat makromäärittelyssä. Kuvitellaan, että emme käyttäisi niitä: > #define NELIO(x) x*x Näin määritellessä kääntäjälle kohta NELIO(5) tarjoillaan muodossa 5+5*5+5, mistä lasketaan ensin tulo 5*5 ja lopulta päädytään vastaukseen 35. Elon laskuopin mukaan (5+5)² eli 10² on kuitenkin 100. Siis laskujärjestys työntää pitkät sormensa tähänkin asiaan. Kun määrittelemme makron sulkujen kera, tulee kääntäjälle menevä lause muotoon (5+5)*(5+5) = 10*10 = 100 eli ihan oikein. Koska esikääntäjä ei tunne puolipistettä rivin päättymisen merkkinä, se tulkitsee yhden tekstirivin yhdeksi ohjelmariviksi. Mikäli makro ei mahdu yhdelle tekstiriville, voidaan se jakaa monelle riville \-merkin (kenoviiva) avulla, tähän tyyliin: > #define KOKONAISENERGIA(m) (m)*\ ((2.998e8)*(2.998e8)) Lopuksi vielä hyvin vakava varoitus. Ole todella, todella varovainen tuon yllämainitun e = mc² -kaavan kanssa. Sen vastuuttomat käyttäjät ovat hävittäneet kokonaisia kaupunkeja. # Elegantti vaihtoehto makroille Makroihin kuitenkin liittyy pari ongelmaa. Debuggeri osaa harvemmin purkaa niitä, joten ohjelmakoodin suoritus askel askeleelta ei niissä kohdin onnistu - keskikokoinen ongelma. Esikääntäjä ei osaa tehdä tyyppitarkastusta - iso ongelma. Toisaalta funktion kutsuminen hidastaa aina ohjelmaa. Mutta ovela ohjelmoija tietää avoimet funktiot. Ne ovat kuin makroja, mutta kääntäjä käsittelee niitä. Siis tyypit tarkastetaan ja debuggaus sujuu sukkelasti. inline määrittelee funktion avoimeksi. > inline double KokonaisEnergia(double m) { (m)* ((2.998e8)*(2.998e8)); } Makroilla on kuitenkin se etu, että niillä voidaan käsitellä tietoa mitä kääntäjällä ei ole - kuten ohjelmatiedoston nimi ja kyseinen rivi, senhetkinen kellonaika jne.. Tätä jujua käytämme seuraavassa kappaleessa. # Ei vara venettä kaada - eikä assert() toimivaa ohjelmaa Ohjelmoija usein olettaa aika paljon. Esimerkiksi tällaisessa silmukassa: > for (int a=0; a != ylaRaja; a++) x += a; ..oletetaan, että ylaRaja tulee joskus vastaan. Jos ylaRaja on int-muuttuja, jolla on arvo -5, niin silmukka ei lopu vasta kun a on pyörähtänyt ympäri. Vähän huonohermoisempi käyttäjä voi jo kyllästyä odottelemaan, eikä se varmaan olekaan ollut tarkoitus. Varsinkin jos ohjelmoijia on monta, niin vain <NAME> uskaltaa olettaa tällaisia asioita - muut ohjelmoijat kun tunnetusti ovat vastuuttomia poropeukaloita. Toisaalta eihän siitä mitään tulisi, jos jokaisiin kohtaan pistettäisiin varmistuksia eri muuttujien arvoista. Ohjelmasta tulisi vain valtava kasa virheentarkistuksia. Ja mitäpä käyttäjä tekee sillä tiedolla, että muuttuja xTerminalVelocity on saanut epäkelvon arvon - avaa ohjelman binäärikoodin heksaeditoriin ja korjaa virheen, vai? Ohjelmoijalle kuitenkin tämmoinen tieto voi olla melko arvokas. Hym, hym, hankala tilanne... Tällaisen ajatuskulun lopputuloksena ovat suuret mielet kehittäneet assert-makron. Se varmistaa, että sille annettu ehto on tosi - siis esimerkiksi että muuttujalla on sallittu arvo. assert tulee mukaan ohjelmaan vain jos sana DEBUG on määritelty. Siis julkaistavaan versioon assertit eivät tule eikä valmiin ohjelman koko kasva. Koska assert on esikääntäjän makro, se voi antaa melko tarkkaa tietoa virheestä, käyttäen hyväksi esikääntäjän määrittämiä vakioita (muotoa __VAKIO__). Kääntäjien mukana yleensä seuraa assert.h -tiedosto, josta makron määrittely löytyy. Jos sellaista ei ole, niin voidaan assert tehdä itse. Tiedosto assert.hpp: > #ifndef _assert_hpp #define _assert_hpp #ifndef DEBUG #define assert(x) // jos DEBUG ei määritelty, assert on tyhjä #else #define assert(x) if (! (x)) { \ cout << "VIRHEELLINEN TILANNE!" << endl; \ cout << "Assert epäonnistui: " << #x << ", tiedostossa " << __FILE__ << " rivillä "\ << __LINE__ << "." << endl; } #endif #endif Näin sitä sitten käytettäisiin: > #define DEBUG #include "assert.hpp" int main() { int ika = -5; assert(ika >= 0); return EXIT_SUCCESS; } Kannattaa muuten varoa, ettei kirjoita assertia näin: > assert(status = OK); Sehän ei vertaile statuksen arvoa, vaan sijoittaa siihen OK:n. Siis mahdollinen virhetilanne häviää, mutta kun kun julkaisuversiossa assertit poistetaan, niin virhe tulee takaisin. O' mama, en haluaisi joutua tuollaista virhettä korjaamaan... Assertia ei pitäisi käyttää kuin ohjelmointivirheiden etsimiseen. Esimerkiksi tiedoston avaamisen onnistumista ei saa varmistaa assertilla, vaan sille pitää rakentaa järjestelmä, joka ilmoittaa käyttäjälle tilanteesta. Tiedoston puuttiminenhan ei ole virhe ohjelmassa, vaan lähinnäkin käyttäjässä. Mutta toisaalta ohjelman kehityksen alkuvaiheessa, kun virheiden käsittelyyn tarvittavia osia ei vielä ole ohjelmoitu - mutta ohjelmoija kuitenkin haluaisi varmistaa esimerkiksi tiedostojen avaamisen ja muistin varaamisen onnistumisen - voi vastaavaa makroa käyttää. Itse määrittelen makron tassert (temporary assert), jolla ohjelman alkuvaiheessa varmistan tällaiset tilanteet. Siinä vaiheessa kun tulee aika rakentaa virheidenkäsittelyn osat, on mahdolliset vaarapaikat helppo etsiä - siis kaikki tassert-makrot pitää korvata. # Viittaukset ja osoittimet # Viittaukset Haluatko tietää, mitä tapahtuu kun funktiota kutsutaan. Ai, et? No, tämä kasvattaakin luonnetta. PC-tietokoneessa on erityinen muistialue, pino (stack). Kun funktiota kutsutaan, kääntäjä heittää funktiolle välitettävät parametrit pinoon. Sitten funktiossa parametrit luetaan sieltä pinosta. Muuttujia ei kuitenkaan siirretä pinoon, vaan kopioidaan. Kun muutamme funktiosta käsin jotain arvoa, ei alkuperäinen parametriksi annettu muuttuja muutu. Kuvittele, että teet funktion joka käsittelee sadan megatavun tietokantaa. Sinulla on kaksi ongelmaa: sadan megatavun kopioiminen syö prosessoriaikaa melko roimasti ja muuttaessasi tietokantaa funktiossa ei itse oikea tietokanta muutukaan. Mutta eikö olisikin kätevää, jos funktiolle kerrottaisiin missä päin muistia tietokanta majailee? Tämän osoitteen avulla se voisi muutta itse tietokantaa. Tällöin tietokantaa ei tarvitsisi siirtääkään minnekään. Mikähän se mahtaisi olla semmoinen vempele joka tämän tempun osaisi.. Löpinät sikseen ja viittaukset esille! Viittaus (reference) on muuttuja, joka kertoo jonkun toisen muuttujan sijainnin muistissa. Viittaus ei siis sisällä sitä arvoa mikä muuttujalla on, vaan muuttujan muistipaikan osoitteen. Viittauksen tyyppi on sen muuttujan tyyppi, mihin viittaus viittaa. &-merkki kuitenkin tarkoittaa, että nyt olemme luomassa viittausta, emme "oikeaa" muuttujaa. > #include<iostream.h> int main() { int muuttuja = 2; // muuttuja int& rViittaus = muuttuja; // viittaus cout << "muuttuja on " << muuttuja << endl; cout << "rViittaus on " << rViittaus << endl; muuttuja = 5; cout << "muuttuja on " << muuttuja << endl; cout << "rViittaus on " << rViittaus << endl; rViittaus = 2; cout << "muuttuja on " << muuttuja << endl; cout << "rViittaus on " << rViittaus << endl; return EXIT_SUCCESS; } Kuten huomaat, viittausta käytetään ihan kuin muuttujaakin. Viittauksen osoitetta ei voi käsitellä sen luonnin jälkeen. Viittaus alustetaan jonkun muuttujan osoitteella ja se säilyttää arvonsa niin kauan kun se on olemassa. Kun haluamme laittaa viittauksen funktion parametriksi, merkkaamme sen viittaukseksi &-operaattorilla ja käytämme sitä muuten kuten normaalia muuttujaakin. Tällä kertaa vaan muutamme alkuperäistä muuttujaa, emme sen kopioita. Näin se käy käytännössä: > #include<iostream.h> void Kasvata(int& luku) { luku++; } int main() { int arvo = 5; cout << "arvo: " << arvo << endl; Kasvata(arvo); cout << "arvo: " << arvo << endl; return EXIT_SUCCESS; } Viittauksilla on kuitenkin yksi huono puoli: ne viittaavat samaan muuttujaan. Monissa asioissa, kuten linkitetyissä listoissa, tarvitaan viittausta, jonka kohdetta voidaan vaihtaa. Sellainen on osoitin. # Osoittimet On oikeastaan väärin sanoa, että osoitin on viittaus, joka on hieman monipuolisempi. Pikemminkin viittaus on osoitin, josta on karsittu epäturvallisia ominaisuuksia. Osoittimien etu on siinä, että niiden oikeaa arvoa, siis itse osoitetta, voi käsitellä. Toisaalta se on niiden haittakin: osoitin joka osoittaa väärään paikkaan muistia on melkoinen aikapommi. Osoittimien käyttäminen on myös paljon hankalampaa, koska niiden kielioppi on monimutkaisempi. Osoitin (pointer), kuten viittauskin, osoittaa johonkin muuttujaan. Sen tyyppi on sama kuin osoitetulla kohteella. Erona kuitenkin osoittimet merkitään *-merkillä. Se on sama kuin kertomerkki, mutta asiayhteydestä voidaan aina päätellä kumpi operaattori on kyseessä. Otetaan ja sorvataan nyt osoitin. > int muuttuja; // muuttuja int* pOsoitin = 0; // osoitin pOsoitin = &muuttuja // muuttujan osoite osoittimeen Aluksi luodaan ihan normaali muuttuja. Sitten luodaan osoitin int-tyyppiseen tietoon, nimeltään pOsoitin ja alustetaan se nollaksi. Osoitin ei siis osoita mihinkään muistissa olevaan nollaan, vaan se osoittaa muistin kohtaan nolla. Silloin se on NULL-osoitin. Jos emme alustaisi osoitinta, se voisi osoittaa ihan mihin tahansa ja käytettäessä sitä kirjoittaisimme ihan minne tahansa ja sillä tavalla sotkisimme kaiken perinpohjaisesti. Kun alustamme osoittimen nollalla, se on vaarattomampi jos erehdymme sitä alustamattomana käyttämään. Sitten marssitamme esiin uuden operaattorin. Se on osoite-operaattori, &. Sillä saadaan muuttujan osoite kaivettua esille. Tämä osoite tallennetaan sitten osoitinmuuttujaan. Osoittimien käyttö on hieman monimutkaisempaa kuin viittauksien. Itse osoitinmuuttujan arvo on muistiosoite. Kun haluamme päästä käsiksi siinä muistiosoitteessa sijaitsevaan tietoon, meidän tulee käyttää osoitus-operaattoria, *. > int eka, toka; // kaksi muuttujaa eka = 10; // alustetaan eka int* pOsoitin = 0; // luodaan osoitin pOsoitin = &eka; // pOsoitin osoittaa ekaan toka = *pOsoitin; // toka sisältää arvon 10 cout << toka; // varmistetaan Kuten arvaat, osoitteiden ja osoitettujen tietojen kanssa menee helposti sekaisin. Niinpä kannattaakin käyttää viittauksia aina kuin mahdollista. Joskus kuitenkin pitää pystyä vaihtamaan osoituksen kohdetta, jolloin viittaukset eivät riitä. > int yy, kaa, koo; yy = 1; kaa = 2; koo = 3; int* pMonesko = 0; pMonesko = &yy; cout << *pMonesko; pMonesko = &kaa; cout << *pMonesko; pMonesko = &koo; cout << *pMonesko; # Salattu totuus taulukoista ja moninkertaisista osoittimista Oppipoikani/tyttöni, olet jo edennyt pitkälle ja Voima on sinussa vahva. Ehkäpä tässä vaiheessa on oikea aika kertoa sinulle totuus - totuus taulukoista. Taulukko ei todellisuudessa ole kuin osoitin. Kyllä, ymmärrän, se voi tuntua vaikealta hyväksyä. Mutta minäpä kerron tarkemmin. Taulukon nimi itseasiassa on vain osoitin taulukon ensimmäiseen alkioon. Taulukko-operaattori [] toimii siis samoin kuin osoite-operaattori *. Merkintä taulukko[5] voidaan tulkita myös *(taulukko+5). Siis otamme taulukon osoitteen ja lisäämme siihen viisi kertaa taulukon yhden alkion koon. Ei siis viisi tavua, vaan viisi kertaa taulukon alkion koon verran - oli koko sitten mikä tahansa. Kääntäjä hoitaa tämän laskutoimituksen. Jos halutaan taulukon kymmenennen (eli indeksiss� yhdeks�n olevan) alkion osoite, voidaan se tehdä perinteisesti &taulukko[9] tai gurummin taulukko+9. Ja hoplaa, nyt ymmärrät myös miksi taulukon ensimmäinen alkio on 0, eikä yksi. Koska taulukon nimi osoittaa jo ensimmäiseen alkioon, ei siihen pidä lisätä mitään - siis pitää lisätä 0 - jotta saadaan eka alkio hyppysiimme. Toki vielä pitemmälle voidaan mennä ja luoda taulukollinen osoittimia. Se tapahtuu tyyliin > int* taulukko[10]; Nyt siis jokainen taulukon alkio osoittaa johonkin int-muuttujaan. Sijoitus taulukko[2]=3; ei ole todellakaan laillinen, koska silloin taulukko[2] osoittaa muistin kohtaan kolme, jossa on mitä sattuu. Kun sitä käytetään, on kaikki totaalisen sekaisin. Nyt seuraakin pähkinä: miten saataisiin kyseisen taulukon ensimmäisen alkion osoittama tieto esille? No, tietenkin näin: *taulukko[0]. Mutta myös tämmöinen on mahdollista: **taulukko. Ja mikä hienointa, tämä esimerkki ei ole teennäinen tai hatusta vedetty. Jos haluamme luoda taulukollisen vanhanaikaisia C-tyylisiä merkkijonoja - esimerkiksi kaikkien veljien nimet - niin tarvitsemme tuota **taulukko (tai *taulukko[]) osoitinta, siis osoitinta osoittimeen (kutsutaan myös kaksoisosoittimeksi tai tuplapointteriksi). Myös kun haluamme tehdä matriisia vastaavan taulukon, tarvitsemme osoitinta osoittimeen. Matriisi on kaksiulotteinen taulukko, siis esimerkiksi kuvapisteet ruudulla muodostavat eräänlaisen matriisin. Se voitaisiin tietenkin tehdä tavallisena kaksiulotteisena taulukkona (matriisi[][]), mutta "kaksoisosoittimen" käytössä on etunsa - ne ovat nopeampia ja joustavampia. Eikä osoitinhommailu rajoitu kaksoisosoittimeen, vaan voidaan tehdä myös osoitin osoittimen osoittimeen jne.. Käytännössä kaksinkertainen osoitin on suurin mitä tarvitaan. Mutta pitäähän sitä elämässä olla leikkiä, kuten alla olevassa esimerkissä: > #include <iostream.h> int main() { int a = 5; int *p = &a; int **pp = &p; int ***ppp = &pp; int ****pppp = &ppp; int *****ppppp = &pppp; cout << "a on " << *****ppppp << endl; return EXIT_SUCCESS; } # Kun viittaillaan, osoitellaan ja tökitään miten sattuu En päästä sinua kuitenkaan ihan näin helpolla, vaan tähän kohti lykätään vielä iso kasa hankalia viittaus- ja osoitustemppuja, jotta varmasti olet hahmottanut tilanteen. > #include <iostream.h> int main() { int luku = 2; int &viittaus = luku; int &toinenViittaus = viittaus; // int &toinenViittaus = luku; int *osoitin = &viittaus; // int *osoitin = &luku; cout << "Arvo osoittimen kautta " << *osoitin << endl; int *(&viittausOsoittimeen) = osoitin; // int *(viittausOsoittimeen) = &luku; cout << "Viittaus osoittimeen " << *viittausOsoittimeen << endl; int taulukko[5] = {1, 2, 3, 4, 5}; int (&viittausTaulukkoon)[] = taulukko; for (int i = 0; i < 5; i++) cout << viittausTaulukkoon[i] << " "; const int &vakioViittaus = 3; return EXIT_SUCCESS; } # Osoittimet funktioihin Joo, myös funktioihin voi osoittimilla sohia. Vaan miksi pitäisi? Eikö sitä voi aina vaikka switch..case -rakenteella päättää mitä funktiota käytetään? Voi, mutta se on epäkätevää - millä sinänsä ei ole väliä - mutta myös koodin kopioimista! Härrendüdel, se on jo jotain. Kuvitellaan vaikka tällainen vanhentunut esimerkki, että joku ohjelma tukee rautatasolla satoja näytönohjaimia. Eihän näin nykyään ole, kun on standardia vaikka millaista. Nykyään voisi vaikka ajatella, että ohjelma tukee kaikkia mahdollisia standardeja: Glide, OpenGl, GDI, DirectX... Pysytään nyt kuitenkin menneisyydessä: ohjelma käyttää näytönohjainkohtaisia funktioita näytön käsittelyyn: pikselin piirtoon jne.. Funktiot on kirjoitettu kymmenien eri ihmisten toimesta - eihän kenelläkään ole kymmeniä näytönohjaimia koneessaan millä testata funktioita. Funktiot ovat kaikki samanlaisia prototyypiltään, ainoastaan sisältö on erilainen. Pikselinpiirton käytetty funktio voisi vaikka olla tällainen: int putPixel(int x, int y, char* buffer); Kutsuessa funktiota pitäisi siis valita kymmenistä erilaisista putPixeleistä. Tulee melkoinen kasa switcheja ja vielä lohduttomampi viidakko caseja, kun näytönkäsittelyyn liittyviä kohtia on kuitenkin useissa kohdissa ohjelmaa. Ei, ei tuohon kelkkaan kannata kivuta. Nuoruus vaan menee pilalle kun näpyttelee kymmeniä kertoja samoja rivejä tietokoneen näyttöpäätteellä. Ja sitten jos rupeaa leikepöydän kauttaa niitä viljelemään, niin mielenterveys tärväytyy virheitä etsiessä. Kyllä se menee ihan selvästi funktiopointteriksi. Sellainen muuten määriteltäisiin edellisessä esimerkissä näin: > int (*pPutPixel)(int, int, char*); Eli ihan kuin tavallinen funktio, * vaan nimen eteen merkkaamaan osoitinta. Eipä liene yllätys kenellekään. Sulkujen kanssa ei kuitenkaan pidä mennä hökeltämään, nimittäin tällaisessa muodossa juttu ei mene läpi: > int *pPutPixel(int, int, char*); Juksasin, kyllä se läpi menee. Ei vaan tosin toimi. Kun sulkeilla ei viestitä, että * liittyy funktion nimeen, se tulkitaan liittyväksi int:iin. Siis yllä oleva on funktio, joka palauttaa osoittimen int-tietoon - ei funktio-osoitin funktioon, joka palauttaa int-muuttujan. Jos palaamme taas esimerkkiin. Meidän tulee vain kerran valita oikea grafiikkafunktio, kas näin: > int (*pPutPixel)(int, int, char*); switch (naytonOhjain) { case STANDARD_SVGA: pPutPixel = SvgaPutPixel; break; case ET4000: pPutPixel = Et4000PutPixel; break; case CIRRUS: pPutPixel = CirrusPutPixel; break; } pPutPixel(100, 100, puskuri); (*pPutPixel)(100, 100, puskuri); Kuten huomaat, sijoitus funktio-osoittimeen tapahtuu käyttämällä funktion nimeä ilman sulkeita. Kaikki PutPixel-funktiot palauttavat int-muuttujan ja ottavat parametreikseen (int, int, char*). Funktio-osoittimen avulla kutsutaan funktiota kuten se olisi tavallinen funktio. Myös osoitinoperaattoria voidaan käyttää, kuten viimeisellä rivillä on tehty. Tavalla ei ole väliä; kaksi viimeistä riviä tekevät saman asian. Funktio-osoittimia voi myös kätevästi kasata taulukoksi. Jos esimerkiksi pitää ohjelmoida joku toimintosarja, jonka ohjelma suorittaa, voi funktio-osoitintaulukko olla näpsäkkä ratkaisu. Varsinkin kun kyse on nopeudesta osoittimet puolustavat kyllä paikkaansa. Monimutkaiset valintarakenteet ovat hitaita, mutta osoittimet vain aavistuksen tai ei yhtään hitaampia kuin suora käyttö. # Funktio-osoitintaulukot ja funktio-osoittimet parametreina Funktio-osoitintaulukon määrittelemisessä ei ole mitään erikoista. Kunhan muistaa, että osoittimen nimi on sen kaiken muun sotkun keskellä: siis taulukoinnin tapauksessa hakasulkeet tulevat nimen perään, ei koko litanian perään. Ja sulkeita ei myöskään kannata unohtaa. > void (*pFunktioTaulukko[5])(int, int); Funktiopointteri kulkee myös mukavasti parametrina. Funktion prototyypissä voidaan laittaa näin: > void Funktio(int (*) (int, int)); ..jos ei haluta antaa parametrille nimeä siinä vaiheessa. Myös nimi voidaan antaa, mikä on pakko tehdä viimeistään funktion runkoa määritellessä: > void Funktio(int (*pFunktio) (int, int)) { pFunktio(1, 2); // kutsutaan osoitettua funktiota } Näissä vähän kehittyneemmissä jutuissa funktio-osoittimeen liittyvän litanian kirjoittaminen meinaa olla harmittavan hankalaa. Niinpä kannattaakin ottaa tyypin määrittely (typedef) käyttöön: > typedef int (*IPF) (int, int); IPF pFunktio; void Funktio(IPF); Määritellään siis IPF (paluuarvo Int, Pointer to Function), jonka avulla tehdään yksi funktio-osoitin ja funktio, joka ottaa parametrikseen sen tyyppisen funktio-osoittimen. Tervetuloa t�m�n oppaan ehdottomasti t�rkeimm�n osion pariin. Kuten ehk� oletkin jo huomannut, rakastan suuresti k�yt�nn�n tilanteiden pohtimista C++:n avulla. Ja niit� on tulossa viel� paljon lis��, joten ei auta kuin tottua. Nyt menn��n taas: Koska vartiointifirma Pamppu ja sateenvarjo oy:lle tekem�si ohjelma toimi loistavasti ja moitteettomasti, p��tt�v�t he tilata sinulta toisenkin ohjelman. Ohjelman pit�isi yll�pit�� heid�n asiakasluetteloaan. Jokaisella asiakkaalla on tietoina nimi, osoite, sovittu kuukausimaksu jne.. Kuinka t�llainen tietom��r� pit�isi j�rjest��? No, hommahan on helppo. Tehd��n taulukko nimi[ASIAKKAIDEN_LKM], maksu[ASIAKKAIDEN_LKM] jne.. N�in se onnistuisi ihan perusominaisuuksien avulla. Mutta mites suu pannaan, kun noin puolet asiakkaista haluaa y�vartioinnin ja toinen puoli ei? Kaiken kukkuraksi y�vartijoiden m��r� vaihtelee. Yksi ratkaisu on tehd� taulukko yovartijat[ASIAKKAIDEN_LKM] ja olla v�litt�m�tt� siit�, ett� osa alkioista on tyhji� ja turhia. Jos ei viel� hymy hyydy, lis��mme soppaan sen, ett� ohjelman pit�isi pysty� lis��m��n ja poistamaan asiakkaita lennossa. Ohjelmaa py�ritt�� vanha 386-kone, jossa on v�h�n muistia ja tehoa. Niinp� muistia tai koneen prosessoriaikaa ei saisi hukata ollenkaan. Kuulen jo kuinka huudatte edellisen esimerkin ikeen alla: "Me haluamme olioita ja luokkia! Tahtoo!" Hyv� on, nyt niit� tulee. Pient� jaarittelua kuitenkin viel�. Lapsikin huomaa, ett� edellisen esimerkkiongelman ratkaisu taulukoilla ontuu. Asiakas olisi parempi pit�� omana kokonaisuutenaan, ei vain yhten� indeksin� moniin taulukoihin. Pelkill� taulukoilla ja isolla kasalla purkkavirititelmi� edellisen tapauksen voi kyll� hoitaa muistia ja tehoa haaskaamatta, mutta tulos on sellainen ohjelmanv�nkyr�, jota kukaan ei vapaaehtoisesti kyll� ala en�� kehitt�m��n. Niinp� k�sittelemmekin nyt luokat (class) ja oliot (object). T�m� on nyt vihdoinkin sit� C++:aa itse��n. C++ on oliopohjainen kieli, joten ilman olioita ei pitk�lle p�tki. Toki C++:lla voi ohjelmoida ilmankin olioita, mutta harvemmin syyt� sellaiseen on.. Ajatellaan nyt n�in p�in, ett� kaikkia asiakkaan tietoja ei laiteta taulukkoon, vaan ne s�il�t��n asiakkaaseen, ja sitten tehd��n asiakkaista taulukko. Me tarvitsemme asiakasolioita. Koska kaikki asiakkaat ovat samanlaisia, sit� y�vahtijuttua lukuunottamatta, ne ovat samoja olioita. Niill� on samat ominaisuudet, mutta eri tiedot. Samanlaiset oliot kuuluvat samaan luokkaan. Nyt otamme ja m��rittelemme luokan Asiakas. > class Asiakas { public: char* nimi; char* osoite; int kuukausiMaksu; }; // huomaa ; -merkki lohkon lopussa!!! Ensin on varattu sanan class. Sitten seuraa luokan nimi. Sitten alkaa lohko, jossa luokka m��ritell��n. public tarkoittaa, ett� alla olevat muuttujat ovat kaikkien k�yt�ss�. TSM. Sen j�lkeen homma on tuttua, m��rittelemme vain Asiakkaaseen liittyv�t muuttujat. Lohko loppuu ja sitten tulee taas penteleen t�rke� kohta, nimitt�in puolipiste lohkon lopussa. Muista se! Lohkojen loppuun ei muuten tule C++:ssa puolipistett�, mutta luokan m��rittely on (mielest�ni typer�) poikkeus. Kun haluamme luoda asiakkaan, k�y se n�in (kunhan luokka on ensin m��ritelty): > Asiakas erkinKumikorjaamo; Luomme olion erkinKumikorjaamo. Asiakas on itseasiassa kuin mik� tahansa muuttujatyyppi. Voi tehd� Asiakas-taulukoita ja muiden luokkien j�senen� voi olla Asiakas-olioita. Palataksemme esimerkkiin, teemme n�in: > Asiakas asiakkaat[ASIAKKAIDEN_LKM]; Luomme siis taulukon asiakkaat, joka sis�lt�� ASIAKKAIDEN_LKM (vakio) kappaletta Asiakas-luokan olioita. Olion sis�lt�mi� muuttujia k�ytet��n piste-operaattorin avulla. Siis olionNimi.muuttuja. > Asiakas kalevinKukkakauppa; kalevinKukkakauppa.kuukausiMaksu = 150; // Kalevi maksaa 150 mk kuukaudessa On t�rke�t� hahmottaa luokan ja olion ero. Luokka on kuin muotti. Se kertoo mit� ominaisuuksia olioilla on. Olio on taas yksi sill� muotilla tehty piparkakku. Sill� on luokan ominaisuudet, siis muuttujat, mutta niiss� omat arvonsa. T�m� ei kuitenkaan ratkaise esimerkkimme kahta ongelmaa, y�vahtiasian eroavaisuutta ja asiakkaiden alati muuttuvaa lukum��r��. N�ihin asioihin tarvitaan kuitenkin osoittimia, dynaamista muistinhallintaa ja perint��. Ennen niit� sinun pit�� kuitenkin oppia luokkien perusteet, joten niit� ensin. Luokka on muutakin kuin pelkk� kasa muuttujia. Luokkaan saa nimitt�in j�senfunktioita eli metodeja. Niiden kautta luokan olioita k�ytet��n. Seuraa lastenmielinen esimerkkiohjelma: > #include<iostream.h> class Veturi { public: int nopeus; void Puhu(); }; void Veturi::Puhu() { cout << "Tuut! Tuut! Hurjastelen " << nopeus << " km/h nopeutta!"; } int main() { Veturi villeVeturi; villeVeturi.nopeus = 50; villeVeturi.Puhu(); return EXIT_SUCCESS; } # Olio on tiedot ja toiminnallisuus Keksitk� mit��n muuta tapaa toteuttaa Veturia matkiva ohjelma? On nimitt�in olemassa toinenkin vaihtoehto... Etk�? Eritt�in hyv�, koska se toinen vaihtoehto on v��r� ja tuo yll� esitetty oikea. Mietip�s mill� tavalla alla oleva muunnelma Veturista on huonompi: > #include<iostream.h> class Veturi { public: int nopeus; }; void Puhu(Veturi veturi) { cout << "Tuut! Tuut! Hurjastelen " << veturi.nopeus << " km/h nopeutta!"; } int main() { Veturi villeVeturi; villeVeturi.nopeus = 50; Puhu(villeVeturi); return EXIT_SUCCESS; } Varmasti mieleesi tulee ainakin, ett� j�lkimm�inen vaihtoehto on ep�looginen. Kun vertaamme puhumista, on villeVeturi.Puhu() eritt�in looginen, sen voisi k��nt�� selkokieliseksi k�skyksi: "Ville Veturi! Puhu!". Puhu(villeVeturi) taas voisi vastata suomen kielen lausetta: "Suorita puheoperaatio Ville Veturilla". Kuulostaa v�h�n KELA:n lomakkeen t�ytt�ohjeilta... Kuten huomaat, kun ohjelman metodit (j�senfunktiot) sijoitetaan samaan luokkaan ohjelman tietojen kanssa, saavutetaan kaksi etua: ohjelma vaikuttaa loogiselta eli on sellainen kuin terveell� maalaisj�rjell� sen kuvittelisi olevan, ja sen lis�ksi ohjelman l�hdekoodi on selke�mp��. Minusta ainakin veturin antaminen Puhu()-funktioille on hankalaa verrattuna luokan sis�ll� toteutettuun puhumiseen, jossa vastaavaa hankaluutta ei tarvitse tehd� - ollaanhan jo valmiiksi oikean olion "sis�ll�" (tuolle "sis�ll� olemiselle" on my�s teknisempi m��ritelm�, mihin palaamme my�hemmin). Ja nytp� olemmekin tunkeutuneet C++-ohjelmoinnin, ja olio-ohjelmoinnin yleens�, kaikkein pyhimp��n. Olio-ohjelmointi on sit�, ett� tiedot (muuttujat) ja toiminnallisuus (metodit) ovat yhdess�. Kaikki mit� t�m�n j�lkeen kerron ei ole l�hellek��n yht� t�rke�� kuin tuo edellinen havainto. OLIO = TIEDOT + TOIMINNALLISUUS Haluaisin viel� lis�t�, ett� tiedon ja toiminnallisuuden yhdist�minen ei ole pelk�st��n loogista, vaan johtaa parempiin ohjelmiin. Kun luokkaan on paketoitu sek� tiedot ett� toiminnot, syntyy "musta laatikko". Luokan k�ytt�j�n ei tarvitse v�litt�� siit� miten luokka itseasiassa toimii, kunhan se toimii oikein. Ohjelmoidessa voi hyvinkin tuntua, ett� p��n sis�ll� on menossa italialaisen talonyhti�n kokous, siis kaaos. Juuri t�t� varten olio-ohjelmoinnissa koitetaan piilottaa kaikki turha, joka muuten kuluttaisi ohjelmoijan kallista mutta v�h�ist� (?) aivokapasiteettia. # Tiedon kapselointi Tiedon kapselointi. Armottomana ihmisen� iskin sinua suoraan p�in kasvoja yhdell� hyvin t�rke�ll� oliopohjaisen ajattelun termill�. Viel� uudestaan: tiedon kapselointi. Idea on, ett� jokaiseen k�sitteeseen liittyv�t tiedot on kapseloitu siihen k�sitteeseen (olioon), eiv�tk� muut p��se niit� sorkkimaan. Tiedon kapselointi! Edellisess� esimerkiss� tietoa ei oltu kapseloitu, vaan se roikkui villin vapaana kuin Kemppaisen kolli kes�housuissaan. Jos mietit edellista esimerkki�, niin huomaat ett� kuka tahansa p��see sorkkimaan luokan muuttujia. Mit� kapselointia ja suojaamista se on muka olevinaan? Nyt konkari vet�� takataskustaan taika-avaimen, nimitt�in varatun sanan private. private on publicin kaveri. Kun public m��rittelee julkisia j�senmuuttujia ja funktioita, niin private m��rittelee yksityisi�. Julkiset muodostavat olion k�ytt�liittym�n, tavan jolla muut ohjelman osat kommunikoivat olion kanssa. Yksityiset osat muodostavat luokan sis�isen toiminnan. Ne ovat muuttujia ja funktioita, joita luokka tarvitsee omaan sis�iseen toimintaansa ja joita ulkopuoliset eiv�t p��se sotkemaan. Yksityiseksi m��ritelty� tietoa voivat k�ytt�� vain luokan omat metodit, j�senmuuttujat. Luokan j�senet ovat oletuksena yksityisi�. Esittelemme nyt lis�� h�yrykoneiden kauhuja. > #include<iostream.h> const int MAX_NOPEUS = 180; class Veturi { public: void AsetaNopeus(int n); void Kiihdyta(); void Jarruta(); int LueMittari(); // nk. saantifunktio private: int nopeus; }; void Veturi::AsetaNopeus(int n) { nopeus = n; } void Veturi::Kiihdyta() { nopeus += 20; if (nopeus > MAX_NOPEUS) nopeus = MAX_NOPEUS; } void Veturi::Jarruta() { nopeus -= 20; if (nopeus < 0) nopeus = 0; } int Veturi::LueMittari() { return nopeus; } int main() { Veturi villeVeturi; villeVeturi.AsetaNopeus(0); villeVeturi.Kiihdyta(); villeVeturi.Kiihdyta(); cout << "Nopeutta " << villeVeturi.LueMittari() << " km/h!" << endl; villeVeturi.Jarruta(); cout << "Nopeutta " << villeVeturi.LueMittari() << " km/h!" << endl; // villeVeturi.nopeus = 50; return EXIT_SUCCESS; } Veturi osaa muuttaa nopeuttaan ja ilmoittaa sen. Nopeus asetetaan nollaksi olion luonnin yhteydess�. Ensin veturi kiihdytet��n 40 km/h nopeuteen ja nopeus tulostetaan. Sitten jarrutetaan ja nopeus ilmoitetaan uudestaan. Huomaa viimeisell� rivill� oleva viittaus yksityiseen muuttujaan. Jos sit� ei olisi kommentoitu, se ei olisi mennyt k��nt�j�st� l�pi. Yksityinen tieto ei ole ulkopuolisten k�ytett�viss�. Nopeus on varma muuttuja. Jarruta() ja Kaasuta() metodit valvovat tehokkaasti nopeuden k�ytt��. Jos pelk��t, ett� muuttujien k�ytt� erillisten funktioiden kautta hidastaa ohjelmaa, niin h�ps�n p�ps�n. Hyv� k��nt�j� optimoi saantifunktiot olemattomiin. Huomaa kohta: k��nt�j� optimoi. Samalla k��nt�j� tarkistaa tietotyypit. Eli k��nt�j� tekee enemm�n ty�t�, mutta lopputulos (konekielinen ohjelma) on sama. Metodin AsetaNopeus(int) avulla nopeuden voi kuitenkin sotkea pahanp�iv�isesti. Ihannetilanne olisi semmoinen, jossa luokan k�ytt�j� ei pystyisi sotkemaan ollenkaan luokan j�senmuuttujien arvoja. Kun kirjoittaa v�h�n pitempi� ja monimutkaisempia ohjelmia, jaksaa t�llaist� ominaisuutta kyll� arvostaa... Niinp� pit�isi olla joku kikka, jolla nopeus voitaisiin alustaa olion luonnin yhteydess� ja AsetaNopeus(int) metodi tulisi tarpeettomaksi... n�en horisontissa h��m�tt�v�n aasinsillan... # Muodostin- ja tuhoajafunktiot Usein oliota luodessa t�ytyy tehd� jotain toimia, kuten varata muistia luokan tiedoille. Ei kannata j�tt�� luokan k�ytt�j�n vastuulle kutsua homman hoitavaa funktiota, vaan k�ytt�� luokkaan liittyv�� muodostinfunktiota (constructor). Kun luokka luodaan, luo k��nt�j� sille automaattisesti muodostinfunktion - joka ei tee mit��n. Jos haluamme laittaa jotain toimia luokan tyyppisen olion luonnin yhteyteen, voimme korvata muodostinfuktion omallamme. Muodostinfunktion nimi on luokan nimi ja sill� ei ole paluuarvoa. Muodostinfunktio pit�� tietenkin m��ritell� julkiseksi. > #include<iostream.h> class Auto { public: Auto(); // muodostin }; Auto::Auto() { cout << "Muodostinta kutsuttu"; } int main() { Auto lada; return EXIT_SUCCESS; } Muodostinfunktiolle voi my�s v�litt�� parametrej� ja siit� voi kirjoittaa monta erilaista versiota eri parametreill� - polymorfismi siis toimii t�ss�kin suhteessa. Muodostinfunktion parina toimii tuhoajafunktio (destructor). Sit� kutsutaan kun olio tuhotaan. Sen m��rittely on muuten vastaava, mutta funktion nimi alkaa ~ (tilde, mato)-merkill�. Jos m��rittelet oman muodostinfunktion, niin k��nt�j� j�tt�� oman tyhj�n muodostimensa m��rittelem�tt�. Siis jos m��rittelet yhden int-parametrin ottavan muodostimen, ei luokkaa voida en�� luoda ilman parametrej�, koska tyhj� parametriton muodostin j�� m��rittelem�tt�. Rakennamme nyt luokan, jota voidaan k�ytt�� hyvin yksinkertaiseen tiedon kryptaamiseen, siis salaamiseen. Siin� on taulukollinen unsigned char muuttujia. Taulukko varataan dynaamisesti (dynaamisesta varauksesta kerron tarkemmin sitten my�hemmin), sen koko annetaan oliota luodessa. Jos kokoa ei anneta, k�ytet��n oletuskokoa. Tietenkin varattu muisti vapautetaan kun olio lakkaa olemasta. Itse kryptausosa on mukana l�hinn� aidon tunnelman saavuttamiseksi. > const int OLETUS_KOKO = 256; class KryptattuTaulukko { public: KryptattuTaulukko(); KryptattuTaulukko(int koko); ~KryptattuTaulukko(); void Koodaa(); unsigned char *taulukko; int taulukonKoko; }; KryptattuTaulukko::KryptattuTaulukko() { taulukko = new unsigned char[OLETUS_KOKO]; // varataan muisti taulukonKoko = OLETUS_KOKO; } KryptattuTaulukko::KryptattuTaulukko(int koko) { taulukko = new unsigned char[koko]; // varataan muisti taulukonKoko = koko; } KryptattuTaulukko::~KryptattuTaulukko() { delete [] taulukko; // vapautetaan muisti } void KryptattuTaulukko::Koodaa() { for (int i=0; i < taulukonKoko; i++) taulukko[i] = 255 ^ taulukko[i]; // py�r�ytet��n bitit ymp�ri } Pari puutetta viel� yll� olevan ohjelman rakenteessa on, mutta ne eiv�t ole niin oleellisi� - viel�. Muodostinfunktiossa muuttujien alustus voidaan hoitaa my�s itse funktion rungon ulkopuolella, t�h�n tyyliin: > KryptattuTaulukko::KryptattuTaulukko() : taulukonKoko(OLETUS_KOKO) { taulukko = new unsigned char[OLETUS_KOKO]; } Siis muodostinfunktion nimen j�lkeen kaksoispiste, sitten muuttujien alustus. Muuttujan arvo annetaan suluissa, muuttujan nimen per�ss�. T�m� tapa on suositeltavampi kuin muodostinfunktion rungossa muuttujien alustaminen. Yll� oleva funktio on karsea esimerkki muodostinfunktiosta. Koska muodostinfunktio ei palauta arvoa, se ei voi viesti� onnistumisesta mitenk��n. Ja koska se varaa muistia, voi ongelmiakin tulla. Muodostinfunktiossa ei saa tehd� mit��n, mik� voi ep�onnistua (muistin varaus, tiedostojen avaus jne...). Joten luokan kehittely jatkuu, kunhan vaan ved�mme operaattorit ensin k�ytt��n. # Operaattoreiden ylikuormittaminen Mik�li et ole viel� tutustunut String-luokkaan, niin kertoilenpa siit� t�ss� aluksi. Merkkijonojen ja String-luokan k�ytt� on tarkemmin esitelty standardikirjastojen yhteydess�. String luokka on kuin yhdistetty luokka ja taulukko. Toisaalta sill� on muodostin- ja tuhoajafunktiot, mutta toisaalta sit� voi k�ytt�� indeksointioperaattorilla kuin tavallista taulukkoa. Siis String-luokan olioita voi k�ytt�� n�in: merkkijono[3]. T�m� palauttaa merkkijonon nelj�nnen merkin. Vaikka String onkin k��nt�j�n mukana tuleva, ei siihen kuitenkaan liity mit��n maagisia, kuolevaisille saavuttamattomia temppuja. Pelk�st��n operaattoreiden ylikuormittamista, mik� kyll� tavallisille kuolevaisille voi vaikuttaa mystisten voimien ty�lt� - mutta ei C++-velholle! Kun k��nt�j�n pit�� k�sitell� +-operaattori kahden int-luvun yhteydess�, ei se ole mik��n ongelma. Kai nyt jokainen pari lukua osaa yhteen ynn�t�. Mutta ent� jos k��nt�j�� k�sket��n ynn��m��n kaksi itse ohjelmoidun Tyontekija-luokan oliota? K��nt�j� ei tunne luokan ominaisuuksia, joten ainoa heti mieleen tuleva ratkaisu olisi laskea olioiden muistiosoitteet yhteen. Ratkaisu onkin mahdollinen, mutta j�rjeton. Muistiosoitteella ei ole mit��n tekemist� luokan toiminnan kanssa ja tulos osoittaisi mihin sattuu. Parempi vaihtoehto olisi vaikka laskea yhteen ty�ntekij�iden palkat. N�in �lyk�st� toimintaa emme kuitenkaan C++-k��nt�j�lt� voi odottaa, vaan meid�n pit�� se itse ohjelmoida. Ensimm�inen ratkaisu olisi tehd� Tyontekija-luokkaan metodi Lisaa(Tyontekija&). Lisays tehtaisiin nain: > Tyontekija jamppa; Tyontekija jomppa; palkatYhteensa = jomppa.Lisaa(jamppa); Tuo ei kuitenkaan ole hirve�n havainnollinen tapa. Me nimitt�in voimme ohjelmoida Tyontekija-luokkaan +-operaattorin, siis ylikuormittaa +-operaattorin. C++ antaa mahdollisuuden ylikuormittaa seuraavat operaattorit: > + - * / % ^ & | ~ ! = < > += -= *= /= %= ^= &= |= << >> >>= <<= == != <= >= && || ++ -- ->* , -> [] () new delete Ylikuormitettu operaattori on funktio, joka saa operaattorista riippuvat parametrit. Se siis toimii kuin Lisays(Tyontekija&) -funktio toimisi aikaisemmassa esimerkiss�. Operaattorifunktiota voidaan kuitenkin kutsua niin kuin operaatoreita k�ytet��n. Funktio m��ritell��n operator-sanalla. Sen per��n kirjoitetaan haluttu operaattori, siis vaikka operator+. Jotta operaattorit ++olio ja olio++ voitaisiin erottaa toisistaan, m��ritell��n j�lkimm�isempi (postfix-muoto) int operator(int) {} Siis se saa int-tyyppisen haamuparametrin, parametrin joka ei sis�ll� mit��n. T�ss�p� sit� on sitten ylikuormitusta kullekin. > #include <iostream.h> class Tyontekija { public: void AsetaPalkka(int p) { palkka = p; } int AnnaPalkka() { return palkka; } int operator+(Tyontekija& toinen) { return palkka + toinen.AnnaPalkka(); } private: int palkka; }; int main() { Tyontekija jamppa; jamppa.AsetaPalkka(8000); Tyontekija jomppa; jomppa.AsetaPalkka(12000); cout << "Kaveruksille pit�� maksaa yhteens� " << jomppa + jamppa << endl; return EXIT_SUCCESS; } Nyt voimme kirjoittaa kryptatusta taulukosta hienon luokan. Sit� voi k�ytt�� kuin taulukkoa, mutta se on kuitenkin luokka - siis sijoituksien oikeellisuus voidaan tarkistaa, muutamia hienouksia mainitakseni. > #include const int OLETUS_KOKO = 256; class KryptattuTaulukko { public: KryptattuTaulukko(int koko = OLETUS_KOKO); // oletusparametri ~KryptattuTaulukko(); int Alusta(); // todellinen muodostinfunktio void Koodaa(); int AnnaKoko() { return taulukonKoko; } int OnkoKoodattu() { return onKoodattu; } int OnkoAlustettu() { return onAlustettu; } int& operator[](unsigned kohta); // voidaan sijoittaa kuin taulukkoon int operator[](unsigned kohta) const; // voidaan lukea kuin taulukkoa void operator=(const int* arvot);// voidaan sijoittaa taulukollinen arvoja private: int onAlustettu; int onKoodattu; int *taulukko; int taulukonKoko; int virhe; // virheelliset viittaukset ohjataan t�nne }; KryptattuTaulukko::KryptattuTaulukko(int koko) : onAlustettu(0), onKoodattu(0), taulukonKoko(koko), virhe(0) { // tyhj� muodostimen runko } int KryptattuTaulukko::Alusta() { taulukko = new int[taulukonKoko]; if (taulukko == 0) return 0; onAlustettu = 1; return 1; } KryptattuTaulukko::~KryptattuTaulukko() { if (onAlustettu) delete [] taulukko; } int& KryptattuTaulukko::operator[](unsigned kohta) { if (onAlustettu) { if (kohta < taulukonKoko) return taulukko[kohta]; // laillinen sijoitus else return virhe; // ylivuoto } else return virhe; // vakion nolla palauttaminen ei olisi mahdollista, koska se ei ole olemassa kuin metodissa } int KryptattuTaulukko::operator[](unsigned kohta) const // unsigned est�� laittomat negatiiviset indeksit { if (onAlustettu) { if (kohta < taulukonKoko) return taulukko[kohta]; else return 0; } else return 0; // ei tarvita viitattavaa kohdetta, joten nolla k�y } void KryptattuTaulukko::operator=(const int* arvot) { // vaarallista, const int* arvot eiv�t v�ltt�m�tt� osoita taulukonKoko kokoiseen muistialueeseen... if (onAlustettu) for (int a = 0; a < taulukonKoko; a++) taulukko[a] = arvot[a]; } void KryptattuTaulukko::Koodaa() { for (int i=0; i < taulukonKoko; i++) taulukko[i] = 255 ^ taulukko[i]; // py�r�ytet��n bitit ymp�ri if (onKoodattu) onKoodattu = 0; // vaihdetaan koodauksen tila else onKoodattu = 1; } int main() { int alkupTaulu[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; KryptattuTaulukko taulu(10); taulu[5] = 5; // ei tee mit��n, koska ei alustettu if (!taulu.Alusta()) return EXIT_FAILURE; // taulukon luonti ep�onnistui taulu = alkupTaulu; // kopioidaan alkupTaulu taulu:n taulu[-1] = 5; // kumpikin laittomia sijoituksia, eiv�t tee mit��n taulu[100] = 5; taulu.Koodaa(); cout << "Koodattu taulu: "; for (int a = 0; a < 10; a++) cout << taulu[a] << " "; taulu.Koodaa(); cout << endl << "Koodaamaton taulu: "; for (int b = 0; b < 10; b++) cout << taulu[b] << " "; cout << endl << endl; cout << "Ensimm�inen alkio on nyt " << taulu[0] << endl; taulu[0] = 7; cout << "Sijoituksen j�lkeen se on " << taulu[0] << endl << endl; cout << "Tilamuuttujat: koodaus:" < # coutin todellinen luonne Itse olen joskus kummastellut: "C++:ss� on olemassa muuttujia, funktioita, luokkia ja olioita. Mik� ihmeen vetkutin se cout sitten on?" Vaikka ihan ensimm�isest� ohjelmasta asti olet k�ytt�nyt cini� ja coutia, niin silti niiden olemus lienee hieman ep�selv�. cin ja cout ovat olioita. Ne ovat iostream.h:ssa (tai sen alaisessa otsikkotiedostossa) valmiiksi m��riteltyj� olioita. Niist� l�ytyy uudelleenm��riteltyn� << tai >> operaattori. Siksi siis kun k�skemme coutia tulostamaan - siis kutsumme sen j�senfunktiota - ei toimenpide vaikuta milt��n funktiokutsulta, vaikka se sit� onkin. Sellaisia peijooneita ne operaattorit ovat, varsinkin uudelleenm��ritellyt. << -operaattorin k�ytt�minen kutsuu todellisuudessa operator<<(...) -funktiota, jonka me alla olevassa esimerkiss� esiinmerkitsemme: #include <iostream.h> int main() { int luku = 5; cout << "Ik�ni on " << luku << endl; cout.operator<<("Ik�ni on ").operator<<(luku).operator<<(endl); return EXIT_SUCCESS; } Esimerkin kahden tulostuslauseen tulostama teksti on sama, k�yt�mme funktiokutsun mit� muotoa tahansa. Monien per�kk�isten funktiokutsujen ketjuttaminen onnistuu sen vuoksi, ett� operator<<(...) palauttaa viittauksen coutiin. Siis alku: cout.operator<<("Ik�ni on ") ... muuttuu funktiokutsun j�lkeen lausekkeeksi... cout .. ja sen per��n voi lyk�t� uutta funktiokutsua ihan rauhassa. Kuten ehk� arvasitkin, n�m� pohdinnot ovat kuin hyv� ranskanleip�: ne toimivat my�s toisesta p��st� pureskeltuna - siis sama idea p�tee ciniin, operaattorin nuolet ovat vain toiseen suuntaan. # Osoitin j�senfunktioon Piti sitten t�llekin asialle oma kappale kyh�t�. No, nyt on komia paragraafi, niin pit�� sitten jotakin yritt�� t�h�n rustata. void (Luokka::*pFunktio)(int, char); Voi kehveli, tuohon se nyt lipsahti. Mahtaako sit� en�� mit��n sanoa? Siis * merkkaamaan osoitinta, luokka ja n�kyvyysoperaattori (siis :: ) alkuun. Ja asteriski eli * ennen funktion nime�, ei koko rimpsun alkuun, koska luokalla ei olla osoittelemassa mihink��n. # Muistinhallinta # Muistin varaaminen ja vapauttaminen Nyt kannattaisi lukea aluksi Sekalaiset-osiosta kappale muistialueista. Kuten nyt tiedät, pidetään kaikki paikalliset muuttujat pinossa (stack). Paikalliset muuttujat eivät ole kuitenkaan pysyviä, mikä on melkoinen ongelma. Globaalit muuttujat ovat kyllä pysyviä, mutta niitä sää sörkkiä kuka tahansa ja niinpä tiedon kapselointi ei toteudu ollenkaan. Ja vielä samaan hengenvetoon mainittakoon, että pino on melko pieni, joten suurien alueiden säilyttäminen siellä ei ole mahdollista. Sanonpa senkin, että muistia ei voi myöskään kätevästi vapauttaa, joten vähänkään kehittyneempi muistinhallinta ei ole mahdollista. Muistin kulutus kasvaa kuin bensan hinta konsanaan. Mutta meillähän on vapaa muistialue, jota ratkaisee kaikki nämä ongelmat! Joko olet valmis marssimaan dynaamisen muistinhallinnan liehuvan lipun alla? Muistin varaaminen tehdään new-käskyllä. Muistialuetta ei pidä tietenkään hukata, vaan joku osoitin pitää laittaa osoittamaan sen alkua. Varattu muistialue vapautetaan delete-käskyllä. Sen jälkeen osoitin kannattaa asettaa nollaksi, koska se ei enää osoita mitään aluetta. Jos nollaamaton, satunnaiseen paikkaan osoittava osoitin annetaan deletelle uudestaan, niin tapahtuu kauheita. > int *pOsoitin = new int; // luodaan osoitin ja varataan muisti *pOsoitin = 666; // käytetään muistia, * alkuun koska haluamme muuttaa // muistialueen sisältöä, emme osoittimen sisältöä (=osoitetta) delete pOsoitin; // vapautetaan muisti pOsoitin = 0; // varmuuden vuoksi # Taulukot ja oliot muistia varaamalla Omimmillaan muistin varaaminen on suuria tietomääriä - siis yleensä taulukoita - käsitellessä. Taulukon varaaminen tapahtuu antamalla taulukon koko muuttujatyypin yhteydessä. Osoitin osoittaa taulukon ensimmäiseen alkioon, joten delete vapauttaa vain taulukon ensimmäisen alkion. delete [] sen sijaan vapauttaa koko taulukon. > int *pTaulukko = new int[800]; pTaulukko[0] = 10; // taulukon ensimmäisen alkion arvon on 10 delete [] pTaulukko; pTaulukko = 0; Nyt ei tarvitse laittaa *-merkkiä osoittimen eteen, koska taulukon kanssa käytettävä []-operaattori ajaa saman asian. Myös olioita voidaan luoda muistia varaamalla. Kun olioita käyttää, tulee muistaa että käyttää olion osoitinta. Siis olioon viitataan (*pOlio).muuttuja. Tuo on kuitenkin vähän inhottava kirjoittaa, joten on kehitelty mukavampi tapa tehdä sama asia: pOlio->muuttuja. > class Hirmu { public: int ika; }; Hirmu *karvainenHirvio = new Hirmu; (*karvainenHirvio).ika = 10; karvainenHirvio->ika = 20; // mukavampi tapa delete karvainenHirvio; # Varo vaanivaa vaaraa Kun muistin hallinta ei ole enää niin paljon kääntäjän vastuulla, on paljon enemmän mahdollisuuksia mokata. Ja sinisilmäinen aloittelijahan käyttää jokaisen mahdollisuuden hyväkseen ja oppii kantapään kautta jokaisen sudenkuopan oikein isän kädestä (tässä vaiheessa kai vanha kansa napsii jo nitroja). Kauhein virhe on tietenkin vahingossa muuttaa osoitinta. Kun se osoittaa väärään paikkaan muistialuetta ohjelma kaatuu kuin lonkkavikainen tuhatjalkainen rasvatuissa liukuportaissa. Jos taas muistialue vapautetaan ja sitä yhä käytetään, on tilanne suunnilleen sama. Alueella saattaa olla jo jotain muuta käyttöä ja niinpä sinne kirjoitettaessa meneekin kaikki pahemman kerran sekaisin. Pienempi paha on jos muistia vain hukataan. Ohjelma ei kaadu, mutta kuluttaa muistia turhaan. Esimerkiksi jos käytät jotain osoitinta - joka yhä osoittaa varattuun muistiin - muistin varaukseen uudestaan, jää vanha alue vapauttamatta ja menee hukkaan. Myös jos vapautat taulukon deletellä ilman []-merkkejä, jää taulukko ekaa alkiota lukuunottamatta vapauttamatta ja taas menee muistia tärviölle. Eikä siinä kaikki, vaan tuloksena saattaa olla myös muistin korruptoituminen ja ohjelman kaatuminen tai muistin loppuminen kesken ja ohjelman kaatuminen tai vastaava virhetilanne. Eli iso virhe se muistin hukkaaminenkin on. Saatat ehkä ihmetellä, että kun tämä dynaamisen muistinhallinnan hienous tuo niin monia uusia vaaroja ohjelmointiin, niin miksi tätä yleensäkään on olemassa. Raaka tosiasia on, että kehittyneemmät ja ohjelmoinnin kannalta välttämättömät tietorakenteet eivät ole mahdollisia ilman dynaamista muistinhallintaa. Sellaisia rakenteita ovat esimerkiksi lennossa kokoaan muuttavat tai tehokkaat hakumahdollisuudet omaavat rakenteet. Näiden tietorakenteiden vaatima muistinkäyttö on niin monimutkaista, ettei kääntäjän ole mahdollista hoitaa niiden vaatimaa muistinkäsittelyä - yksinkertaisesti kääntämisvaiheessa ei vielä voida tietää, miten tietorakenteet tulevat tarvitsemaan muistia. Eli käyttäjän on itse ohjelmoitava niiden muistinkäyttö. Toki on myös mahdollista tehdä ohjelmaan osa, joka valvoo muistinkäyttöä. Siis ohjelman suorituksen aikana seuraa mitkä muistialueet ovat käytössä ja mitkä saa jo vapauttaa. Sellaista kutsutaan roskien kerääjäksi (garbage collector). Esimerkiksi Javassa roskienkeruu on, mutta C++:ssa ei ole eikä todennäköisesti tule. C++:n on saatavana kyllä roskienkeruumekanismeja erillisinä paketteina, joten sellaisenkin voi ottaa käyttöön jos haluaa. Vaikka roskienkeruussa on joitain ongelmia, niin täytyy silti henkilökohtaisesti tunnustaa että ihan mahtava apuväline se on... # Periytyminen # Luokkahierarkiat Päivän mörkö on koodin kopioiminen. Tämä ohjelmoitsijoiden perivihollinen voi vapaaksi päästessään aiheuttaa suurta tuhoa ja mielipahaa. Ongelmahan on siis se, että joudumme monistamaan samaa ohjelmakoodia moniin ohjelman eri kohtiin. Se johtaa siihen, että meillä on tuplasti enemmän ylläpidettävää ja vaarallinen mahdollisuus unohtaa toisen kopion päivittäminen. Pieni esimerkki taas kehiin, näitä klassikkoja Libertyn kirjasta. On luokat Koira ja Kissa. Ne ovat erilaisia, koska kissa haukkuu ja koira naukuu. Eikunsiis... Kuitenkin, ne liikkuvat samalla tavalla: neljällä jalalla kävellen. Joutuisimme siis kopioimaan kissan Liiku()-metodin Koira-luokkaan, mikä olisi hyvin harmillista. Toisaalta kissojen ja koirien esittäminen samalla luokalla ei ole järkevää, koska erojakin on paljon. Ongelmaan on kuitenkin ratkaisu. Voimme ajatella, että kissat ja koirat ovat nisäkkäitä - ja eläimiä. Tämän pohjalta voisimme rakentaa tällaisen luokkahierarkian. Tuo biologisesti hyvin korrekti hierarkia voidaan kääntää C++:ksi suoraan. Tarvitsemme vain yhtä uutta niksiä, nimittäin perintää. Idea on simppeli: Koira perii luokan Nisakas. Se siis saa kaikki Nisakas-luokan ominaisuudet, joita se sitten voi täydentää omillaan. Samankaltaisuudet täytyy koodata vain Nisakas-luokkaan, joten työmäärä vähenee. Ja mikä tärkeintä, meillä on koodista vain yksi versio ylläpidettävänä. Eiköhän tuo ala olla jo selvää, joten läimäistään nyt se periytymisen kielioppi tähän. > class Nisakas { public: int ika; int paino; }; class Koira : public Nisakas { public: int hannanPituus; }; int main() { Koira jesse; jesse.ika = 10; // näin ei saisi tehdä, halusin vaan pitää esimerkin lyhyenä return EXIT_SUCCESS; } Koira siis perii luokan Nisakas. Koska jesse on koira, se on perinyt Nisakas-luokalta jäsenmuuttujan ika ja niinpä sitä voidaan käyttää. Metodit periytyvät myös, mutta niitä en laiskuudessani jaksanut kirjoittaa. Koira ei pelkästään ole samankaltainen kuin Nisakas, vaan Koira on Nisakas. Nisakas-osoittimeen voi sijoittaa Koira olion - tosin ainoastaan Nisakkaassa olevia ominaisuuksia voi käyttää osoittimen kautta. Käytännössä periminen tapahtuu siis kirjoittamalla luokan määrittelyssä. > : public KantaLuokka public tarkoittaa julkista periytymistä, mikä on yleisimmin käytetty periytymisen muoto. Muilla muodoilla ei kannata vielä stressata itseään. Jos jäsentieto määritellään yksityiseksi, se ei näy luokan perillisille. Toisaalta sen määritteleminen julkiseksi olisi hirmuinen riski, koska jokainen huolimaton luokan käyttäjä voisi sotkea sen. Niinpä jäsentiedon voi määritellä suojatuksi, protected, jolloin vain luokan jäsenfunktiot pääsevät siihen käsiksi, mutta se on käytössä myös luokan perillisissä. Kantaluokan metodeja voidaan korvata kirjoittamalla niistä uusi versio periytyvään luokkaan. Tämä kuitenkin piilottaa kaikki kantaluokasta peräisin olevat sen funktion versiot. Jos kantaluokassa on metodit Metodi(), Metodi(int) ja Metodi(int, int) ja periytyvässä luokassa uudelleenmääritellään metodi Metodi(int), ei siinä luokassa voida käyttää kantaluokan metodeja Metodi() ja Metodi(int, int). # Muodostinfunktiot Kun luokkaa luodaan, kutsutaan ensin sen kantaluokan muodostinfunktiota ja sen jälkeen luokan omaa muodostinfunktiota. Koska luokan perillinen on myös sen kantaluokan jäsen, kuten vaikka koira on nisäkäs, pitää nisäkäsosa luoda ennen koiraosan luomista. Sama pätee myös tuhoajafunktioihin, mutta niitä tietenkin kutsutaan päinvastaisessa järjestyksessa. Ensin siis tuhotaan koira, sitten nisäkäs. Koiran tai yleensä nisäkkään tuhoaminen on kyllä tuhmaa. Sellaista ei saa tehdä kuin virtuaalimaailmassa. Luokan muodostinfunktio voi myös antaa parametreja kantaluokan muodostimelle. Se tapahtuu kirjoittamalla muodostinfunktion sisällön määrittelyn yhteyteen : kantaLuokka(parametri). > #include <iostream.h> class Nisakas { public: Nisakas(int p); int ika; int paino; }; class Hirvio : public Nisakas { public: Hirvio(int paino, int silmienLkm); }; Nisakas::Nisakas(int p) { cout << "Nisäkäs luotu" << endl; paino = p; } Hirvio::Hirvio(int paino, int silmienLkm) : Nisakas(paino) { cout << "Hirviö luotu" << endl; } int main() { Hirvio roellipeikko(85, 2); return EXIT_SUCCESS; } Hirviota luodessa luodaan siis Nisakas, jolle annetaan parametriksi haluttu ikä. Toisin sanoen annettu paino passitetaan kantaluokan muodostinfunktiolle. # Moniperintä Jos ryhdyt tarkemmin miettimään eläinkuntaa, voi joidenkin eläinten sijoittaminen edellä esitettyyn luokkahierarkiaan olla vaikeaa. Esimerkiksi lohikäärme: sehän on toisaalta kala, mutta toisaalta matelija. Pitäisikö se periyttää kalasta vai matelijasta? C++ tukee moniperintää, joten kysymykseen on kolmaskin vastausvaihtoehto: periytetään se molemmista! > class Lohikaarme : public Kala, Matelija { public: Lohikaarme(int suomujenLkm, int pituus); }; Lohikaarme::Lohikaarme(int suomujenLkm, int pituus) : Kala(suomujenLkm), Matelija(pituus) { cout << "Lohikaarme luotu"; } Näin ongelma ratkaistiin, Lohikaarme on sekä Kala että Matelija ja se perii molempien kantaluokkiensa ominaisuudet. Esimerkistä myös näet kuinka monen kantaluokan muodostinfunktioita voidaan kutsua - siinähän ei toki ole mitään erikoista tai yllättävää. # Virtuaaliset funktiot Nyt jätämme eläintarhan ja palaamme puhtaasti tietokonemaailman asioihin. Todennäköisesti katsot parhaillaan ruutua, joka on täynnä painonappeja, vierityspalkkeja ja muita graafisia vipuja joiden avulla ohjelmia käytetään. Oletko tullut ajatelleeksi, kuinka noita vempeleitä käytetään? Oletetaan, että jokainen vipstaaki on oma luokkansa (todellisuudessakin monet graafiset käyttöliittymät toimivat näin). Otetaan hyvin yksinkertainen ongelma: kun piirretään uusi ikkuna, pitää jokaista oliota pyytää piirtämään itsensä. Koska erityyppisiä vipstaakeja on paljon, syntyy hankala if-kasauma kun päätämme mitä luokkaa milloinkin käytämme. Luokat tarvitsisivat jotain yhteistä, koska jokaisen namiskuukkelin tulisi pystyä piirtämään itsensä. Yhteistä piirtofunktiota ei voi tehdä, koska vitkuttimet ovat erinäköisiä, joten ne piirretäänkin erilailla. Eli tarvitsisimme yhtenäisen liittymän erilaisiin toiminnallisuuksiin. Auttaisiko periyttäminen? Halleluja! Teemme yhteisen kantaluokan Vipstaakkeli, josta kaikki erilaiset nappulat ja palkit periytyvät. piirraItsesi()-metodi voi sijaita kantaluokassa. Kun haluamme piirtää namiskat ruudulle, voimme käsitellä niitä kantaluokan osoittimen kautta ja kutsua piirraItsesi()-metodia - kätevästi yhdessä silmukassa. Itse luokalla ei ole väliä, koska kaikki periytyvät Vipstaakkelista ja siten niitä voi käyttää Vipstaakkeli-osoittimen kautta. Mutta voihan räkä! Kuten edellä kerrotiin, kantaluokan osoittimen kautta käytettäessä voidaan käyttää vain kantaluokan ominaisuuksia ja niinpä ollen kutsutaan vain kantaluokan piirraItsesi()-metodia, eikä sitä oikeaa lapsiluokan metodia. Voi kun ohjelmointi osaakin olla kinkkistä. Tähän asti opituilla nikseillä ongelma ei ratkea, mutta C++:ssahan niitä niksejä riittää ihan haitaksi asti. C++ antaa mahdollisuuden määritellä funktio virtuaaliseksi. Se tarkoittaa sitä, että siitä funktiosta kutsutaan aina luokkahierarkiassa alinna olevaa toteutusta. Eli jos Vipstaakkelin piirraItsesi() on virtuaalinen, niin silloin kutsutaan lapsiluokan piirraItsesi()-metodia vaikka funktiokutsu tehdäänkin Vipstaakkeli-osoittimen kautta. Eli suomeksi: kun piirraItsesi() määritellään virtuaaliseksi, ratkeaa ongelmamme siihen. Tässä on pieni esimerkkitoteutus aiheesta. Määrittelin Vipstaakkeli::piirraItsesi()-metodin puhtaasti virtuaaliseksi, siis tein sijoituksen = 0, enkä kirjoittanut mitään runkoa. Se tarkoittaa sitä, että funktiota ei ole toteutettu. Luokkaan, jossa on toteuttamattomia funktioita, ei voi tietenkään luoda olioita, koska olion funktioita pitää pystyä kutsumaan ja huono sellaista on kutsua johon ei ole ohjelmoitu mitään sisältöä. Siis pelkkää Vipstaakkeli-oliota ei voi olla olemassa: ja sehän on vain hyvä, koska Vipstaakkeli on abstrakti ja hassu sana, ja käytännössä vipstaakkelit ovat aina nappeja, palkkeja tai valikoita - pelkkää "vipstaakkelia" ei ole konkreettisesti olemassa. Myös mikäli lapsiluokka ei määrittele runkoa piirraItsesi()-metodille, ei siitäkään voi luoda olioita - eli lapsiluokkien ohjelmoijat eivät voi unohtaa metodin ohjelmoimista.Vipstaakkeli on abstrakti luokka (abstract class). > #include<iostream.h> class Vipstaakkeli { public: virtual void piirraItsesi() = 0; }; class Painonappi : public Vipstaakkeli { public: void piirraItsesi(); }; class Vierityspalkki : public Vipstaakkeli { public: void piirraItsesi(); }; void Painonappi::piirraItsesi() { cout << "Painonappi piirretty" << endl; } void Vierityspalkki::piirraItsesi() { cout << "Vierityspalkki piirretty" << endl; } int main() { const int vipsLkm = 2; Vipstaakkeli* ikkunanVipstaakkelit[vipsLkm]; ikkunanVipstaakkelit[0] = new Painonappi(); ikkunanVipstaakkelit[1] = new Vierityspalkki(); for (int i = 0; i < vipsLkm; i++) ikkunanVipstaakkelit[i]->piirraItsesi(); return EXIT_SUCCESS; } # Polymorfismi isolla P:llä Edellisessä kappaleessa läpikäyty esimerkki on sitä Polymorfismia, siis ohjelmointitekniikka johon sanalla polymorfismi useimmiten viitataan. Funktiotason polymorfismi on vain pieni näppärä konsti verrattuna äsken esitettyyn. Luokkahierarkioiden ja virtuaalisten funktioiden avulla toteutettu polymorfismi voi toimia pohjana koko järjestelmän rakenteelle - kuten äsken käsitellyn ikkunointijärjestelmän yhteydessä olikin. Polymorfismin hienous piilee siinä, että ohjelmassa voidaan tunnetun liittymän kautta käyttää tuntematonta toteutusta. Siis kun esimerkissä tunnetaan Vipstaakkeli-luokka, voidaan sen luokan kautta käyttää Painonappi- ja Vierityspalkkiluokkien ominaisuuksia - tietämättä itse Painonappi- tai Vierityspalkkiluokista yhtään mitään. Ajattele kuinka helppoa on lisätä erilaisia vipstaakkeleja tai muuttaa vaikka Painonapin toteutusta! Se ei vaadi mitään muutoksia yhteisen Vipstaakkeli-liittymän eli kantaluokan kautta toimivaan koodiin. Olio-ohjelmissa ei pitäisikään törmätä tilanteeseen, jossa käsipelillä, eli if- tai switch..case-rakenteilla, valitaan saman toiminnon eri muoto. Siis tehdään sama asia, mutta se joudutaan tekemään erilailla erilaisten luokkien kanssa. Jos luokilla on yhteisiä ominaisuuksia, tulee niitä voida käyttää samalla tavalla, olivatpa sitten toimintojen luokkakohtaiset toteutukset millaisia tahansa. Periytymisen avulla toteutettu polymorfismi on ajonaikaista polymorfismia, koska kutsuttava funktio päätetään vasta ohjelman suorituksen aikana. Virtuaalista funktiota kutsuttaessa lähdekoodissa ei mitenkään kerrota, mitä tiettyä funktion toteutusta kutsutaan, vaan ohjelman tulee päätellä se ajonaikana kutsun kohteena olevan olion tyypistä. Tämä operaatio vaatii jonkin verran suoritusaikaa, joten virtuaaliset funktiot ovat hitaampia kuin tavalliset. C++:lla voidaan käyttää myös käännöksenaikaista polymorfismia, joka toteutetaan mallien avulla. Kääntäjän mukana seuraa aina paljon kivaa, kuten erilaisia kirjastoja kaikenlaisten tehtävien hoitamiseen. Kirjastot vaihtelevat kääntäjittäin, mutta standardinmukaiset osat löytyvät jokaisesta. Yleisesti standardikirjastoa voisi kuvailla funktioiksi ja luokiksi, joilla voi tehdä kaikki kakkahommat. Ja sehän meille sopii - emmehän halua haaskata aivokapasiteettiamme joutavanpäiväisyyksiin, kun järjenjuoksu meinaa ontua jo muutenkin. C++:n perinteinen standardikirjasto on kohtuullisen suppea. Juuri sen vuoksi se löytyy jokaisesta kääntäjästä - kirjaston toteuttaminen ei ole ollut ylivoimainen työmäärä kääntäjän tekijöille. Myöhemmin C++:n on tullut myös laaja ja kattava kirjasto, Standard Template Library (STL). Mutta sellaista ei näpyttelekään illan tai parin aikana, joten ihan jokainen kääntäjä ei STL:ää sisällä. Siksi onkin hyvä tietää myös mitä perinteinen kirjasto pitää sisällään. # Merkkijonot C:ssä merkkijonot ovat char-taulukoita. Ja niinhän ne pohjimmiltaan ovat C++:ssakin. Merkkijonoja käytettäessä on hyvä muistaa, että niitä ei pidä mennä käyttämään.Vältä niitä kuin ruttoa. Ehkä vähän liioittelin, mutta minä ja monet muut ohjelmoijat olemme huomanneet, että jostain maagisesta syystä merkkijonot onnistuvat houkuttelemaan virheitä kuin "toinen linssi kaupan päälle" -tarjous kyklooppipariskuntia. Nollatavu lopusta saattaa unohtua tai jonoa käsitellessä hukkua, jolloin merkkijonoja käsittelevät funktiot rullaavat ympäri muistia ja sotkevat sen. Ohjelma ei todennäköisesti kaadu siihen paikkaan, vaan virhe esiintyy myöhemmin täysin käsittämättömänä käytöksenä - joku ihan satunnainen muuttuja on voinut muuttaa arvoaan. Siksi kannattaakin merkkijonojen sijasta käyttää merkkijonoluokkaa. Ihan perinteen vuoksi kerrataan kuitenkin merkkijonojen käsittelyn perusfunktiot: strcmp(..), strcat(..), strcpy(..) ja strlen(..). Kaikkien määrittelyt löytyvät string.h-tiedostosta. strcmp(..) (string compare) vertailee kahta merkkijonoa. Merkkijonoja ei voi vertailla ==-operaattorilla, koska se vain vertailee kahta char-osoitinta, jotka osoittavat eri kohdassa muistia oleviin merkkijonoihin: vertailu on aina epätosi (ellei vertaile merkkijonomuuttujaa itseensä). strcmp(..) palauttaa 0, jos merkkijonot ovat samat. Siis: > if (strcmp(mjono1, mjono2)) cout << "Samat."; .. on väärin, koska strcmp(..) palauttaa epätoden mikäli jonot ovat samat. Jos jälkimmäinen on aakkosissa aikaisempi, paluuarvo on suurempi kuin nolla, ja toisinpäin paluuarvo on pienempi kuin nolla. Mikäli strcmp toimisi loogisesti ja palauttaisi toden (nollasta poikkeavan) kun merkkijonot ovat samat, niin aakkosellinen vertailu ei onnistuisi. Tämmöistä ikuista itkuvirttä se on näiden C-merkkijonojen kanssa... strcat(..) (string concanate) lisää ensimmäisenä parametrina annetun merkkijonon perään toisena annetun. strcpy(..) (string copy) kopioi taas ensimmäiseen merkkijonoon toisen. strlen(..) (string length) palauttaa merkkijonon pituuden. Nyt sitten pistetään nämä merkkihirmut tositoimiin: > #include <string.h> #include <iostream.h> int main() { char testi[40] = "<NAME>"; char oikea[20] = "<NAME>"; cout << testi << endl; if (!strcmp(testi, "<NAME>ainen haisee kukkasille.")) // eivät ole samat cout << "Samat ovat merkkijonot." << endl; else cout << "Erilaisia ovat." << endl; strcpy(testi, oikea); // kopioidaan oikea alku strcat(testi, " haisee kukkasille."); // lisätään oikea loppu cout << testi << endl; if (!strcmp(testi, "Herra Tossavainen haisee kukkasille.")) // ovat samat cout << "No nyt ovat samat." << endl; else cout << "Erilaisia ovat vielä." << endl; return EXIT_SUCCESS; } Mutta ei näitä C-kielen aikuisia merkkijonoräpsyjä kannata käyttää, jos vaan vaihtoehto löytyy. Juuri nollatavuun päättyminen tekee merkkijonoista yhden pahimmista ongelmapesäkkeistä C:ssa. Merkkijonojen kanssa taistellessa olen minäkin pahimmat kolhuni hankkinut ohjelmoijan kimmeltävään sotisopaan. Onhan siinä opittu, vaan olisi tuon voinut uskoa vähemmälläkin. Ja nyt uskon: paljon parempi vaihtoehto on tehdä luokka, joka hoitaa merkkijonojen käsittelyn. Kun kaikki merkkijonotemppuilu on yhden pirun hyvin testatun luokan sisällä, ei mahdollisuuksia merkkijonojen kanssa niin yleisiin inhimillisiin virheisiin enää ole. Luokan tekemisessä on vaan oma vaivansa. Niinpä onkin mukavaa ja mieltä ylentävää, että tuo maallinen puurtaminen on hoidettu meidän puolestamme - C++:n STL-standardikirjastosta löytyy näpsäkkä merkkijonoluokka string. Sitä käyttäen voidaan merkkijonoja, kiitos uudelleenmääriteltyjen operaattoreiden, käyttää kuin mitä tahansa muuttujia. Tällä tavalla yllä oleva tehtäisiin standardikirjaston string-luokan avulla: > #include <string> #include <iostream> using std::string; using std::cout; using std::endl; int main() { string testi = "<NAME>"; string oikea = "<NAME>"; cout << testi << endl; if (testi == "H<NAME>ainen haisee kukkasille.") cout << "Samat ovat merkkijonot." << endl; else cout << "Erilaisia ovat." << endl; testi = oikea; testi += " haisee kukkasille."; cout << testi << endl; if (testi == "Herra Tossavainen haisee kukkasille.") cout << "No nyt ovat samat." << endl; else cout << "Erilaisia ovat vielä." << endl; return EXIT_SUCCESS; } Itseasiassa standardikirjaston toteutus on hoidettu niin kätevästi, että luokan avulla ei pelkästään voi käsitellä merkkijonoja, vaan mitä tahansa merkkijonon kaltaisia tietorakenteita: vaikka numerojonoja tai Tilaus-oliojonoja. Tämän joustavuuden hyödyntäminen vaatii kuitenkin mallien hallintaa, mihin emme tässä voi pureutua. Koska merkkijonot ovat ylivoimaisesti yleisimpiä tarvittuja jonoja, on tyyppimäärittelyn (typedef) avulla määritelty tyyppi string, joka on siis ihan perinteinen merkkijono. Taustalla piilee ovela mallitoteutus, mutta se on niin hyvin piiloitettu että siitä ei käyttäjän tarvitse välittää. Vanhempien kääntäjien kirjastot eivät sisällä STL:ää - eivätkä siis string-luokkaa. Kuitenkin lähes poikkeuksetta löytyy kääntäjän oma samantyyppinen merkkijonoluokka, nimeltään yleensä String. Sellaisen löytää otsikkotiedostosta string.hpp, joissain kääntäjissä (Turbo C++) strng.h. Luokkien käyttäminen on yleensä samanlaista kuin standardin string-luokan. Toki aina tulee käyttää standardia vaihtoehtoa, mikäli mahdollista. # atoi ja itoa atoi tulee sanoista alphabet to integer, kirjaimet numeroiksi. atoi() siis heittää merkkijonon int-muotoon. Sehän onnistuu myös pelkällä tyyppimuunnoksella, mutta silloin int luku muutetaan tavuksi - siis kaikki ylimääräiset bitit heitetään mäkeen ja tulos ei ole ollenkaan sitä mitä haluttiin. Jos haluamme että merkkijono "222" muuttuu int-luvuksi, jonka arvo on 222, pitää se tekemän atoi():lla. Toisinpäin taas käytetään itoa():aa. > #include <iostream.h> int main() { char luku1[] = "222"; char luku2[5]; int x = atoi(luku); itoa(x, luku2, 10); // kymmenlukumuunnos cout << "Ja muunnosten tulos on " << luku2 << endl; return EXIT_SUCCESS; } Siis atoi():lle annetaan osoitin merkkijonoon ja saadaan muunnettu int-numero. itoa() syö vähän enemmän argumentteja, ensin annetaan muunnettava int-luku, sitten osoitin kohdemerkkijonoon ja lopuksi minkä kantainen muunnos tehdään. Matti Meikäläinen käyttää kymmenlukuja, joten viimeinen parametri on siinä tapauksessa kymmenen. C++-tyylinen tapa hoitaa muunnokset on käyttää STL:n stringstream-luokkaa. # Sattumia soppaan Seuraava aihe sattuu olemaan satunnaisuus. Filosofisesta näkökulmasta kurkistaen aihe on enemmänkin kuin mielenkiintoinen. Satunnaisuus on metafysiikan perustavanlaatuisia kysymyksiä, johon liittyy mm. kiistakysymys siitä, onko maailma deterministinen vai ei. Myös modernilla kvanttifysiikalla on kantansa asiassa - satunnaisuutta puolustava kanta, keskimäärin. Kuitenkaan kovin syvällistä filosofista katsantoa ei tarvita noppapelin ohjelmoimiseen, joten tartumme taas käytäntöä kädestä ja talutamme sen toiselle puolelle tietä kuin Sudenpojat ikään. Koska tietokone on deterministinen vehje, siis syöte määrää aina tarkasti tulosteen, ei "todellista satunnaisuutta" saada aikaan. Moneen tarkoitukseen ihan riittävän lähelle päästään kuitenkin käyttämällä ns. kaaottisia kaavoja. Hauska sana kaaos tarkoittaa sitä, että kaava on puhtaan matemaattinen ja samoilla alkuarvoilla saadaan aina sama tulos, mutta riippuvuus syötteen ja tuloksen välillä on niin monimutkainen, että käytännössä mitään riippuvuutta ei ole havaittavissa. Tulokset heittelehtivät villisti kuin villiintyneet viidakkoapinat. Kaikkien kääntäjien mukana toimitetaan satunnaislukujen luomiseen tarvittava ohjelmanpätkä, satunnaislukugeneraattori. Generaattori laskee uuden satunnaisluvun aina edellisen pohjalta. Ensimmäinen luku on nimeltään siemenluku, joka kannattaa ottaa kellosta, jotta syntyvä satunnaislukusarja olisi aina erilainen. Siemenluku asetetaan näin (menoon mukaan tarvitaan stdlib.h ja time.h): > srand(time(0)); // jossain kääntäjissä (DJGPP) srandom(time(0)) Satunnaisluku väliltä 0 - max: > luku = rand() % max; Satunnaisluku väliltä min - max: > luku = min + rand() % (max - min); Tämä kääntäjän standardi satunnaislukugeneraattori ei kuitenkaan ole kovin satunnainen. Jotkut algoritmit vaativat kunnollista satunnaisuutta, johon kääntäjän mukana tuleva ANSI C -standardin mukainen valitettavan köykäinen generaattori ei kelpaa. Kuten mainitsinkin, aitoa satunnaisuutta deterministisellä ja loogisella tietokoneella ei saavuteta - ilman pieniä, tai itseasiassa aivan hemmetin suureellisia, jippoja. Näitä kaikkia kiinnostavia kysymyksiä pohditaan Matematiikka-sektion kappaleessa Sattuu ja tapahtuu... # qsort Sorttia löytyy monenlaista sorttia. Viittaamme nyt lajittelualgoritmeihin, siis "sort algorithms". Ne järjestävät kasan tietoa tietyn säännön mukaan, esimerkiksi numerojärjestykseen. Saatan joskus luennoida erilaisista lajittelualgoritmeistä, mutta en nyt. Lätkäisen vaan kääntäjän mukana tulevan valmiin ja hyvän qsortin käyttöohjeet. Lähes kaikissa C++-kääntäjissä on mukana yleispätevä ja hyvä quicksort-algoritmin toteutus. Se on nopea ja joustava, niinpä sitä voi käyttää melkein mihin tarkoitukseen vain. qsort(..) nielaisee neljä parametria. Ensin pistetaan lajiteltavan taulukon osoite, sitten tieto kuinka monta alkiota lajitellaan, sitten yhden alkion koko tavuina ja lopuksi annetaan osoitin vertailufunktioon. Vertailufunktio tehdään itse. Sen tulee ottaa kaksi void*-tyyppistä parametria, siis tyypittömät osoittimet vertailtaviin arvoihin. Osoittimet kannattaa aluksi muuntaa oikeaan tyyppiin. Sen jälkeen vertailtaessa pitää muistaa, että vertailee osoittimien osoittamaa dataa - ei itse osoittimia. Mikäli sen unohtaa, niin ainakin Watcom-kääntäjän qsort(..) kiemurtelee umpisolmulle ja tukehtuu lopulta. Vertailufunktion pitää palauttaa int-arvo, joka on pienempi kuin nolla jos ensimmäinen on pienempi, 0 jos vertailtavat ovat yhtäsuuret ja suurempi kuin 0 jos ensimmäinen on suurempi. Alla lepää sitten int-taulukon lajitteleva esimerkki. > #include <stdlib.h> #include <iostream.h> int compare(const void *op1, const void *op2) { const int *p1 = (const int *) op1; // typecast void pointers to int const int *p2 = (const int *) op2; // void pointer is type insensitive, it can point to anything if ((*p1) < (*p2)) return -1; // first is less, so return is less than 0 else if ((*p1) > (*p2)) return 1; // first is more, so return is more than 0 return 0; // equal } void main() { const int cVal = 20; int values[cVal]; for (int a=0; a < cVal; a++) values[a] = rand() % 200; cout << "Before: "; for (a=0; a < cVal; a++) cout << values[a] << " "; qsort((void*)values, cVal, sizeof(int), compare); cout << endl << "After: "; for (a=0; a < cVal; a++) cout << values[a] << " "; return EXIT_SUCCESS; } Aidosti C++-tyylinen tapa hoitaa tämä juttu olisi käyttää STL:ää (Standard Template Library). Ongelmahan on siinä, että yleispätevän lajittelualgoritmin pitäisi pystyä lajittelemaan mitä vain tietoa. Alla olevassa esimerkissä se on ratkaistu käyttämällä tyypitöntä void*-osoitinta, joka kuitenkin on hyvin vaarallinen lelu. STL:ssä ongelma on elegantisti ratkaistu malleilla. Palaamme asiaan siis mallien yhteydessä. # Trigonometria Kyllä niitä sinejä ja kosinejä voi C++:llakin laskea. Funktiot ovat sin(..), cos(..) ja tan(..), otsikkotiedosto math.h, katso kääntäjän helpeistä loput. No, mikäli trigonometrologia ei ole niin hirveän tuttua, niin yhden kompastuskiveyksen voisin nostaa tässä esille. Tosi insinöörit eivät käytä asteita kulmien mittaamiseen, vaan tupsulakkien keskuudessa pinnalle noussut ilmiö on radiaanien käyttö perinteisten asteiden sijasta. Kun täysi kulma on 360 astetta, niin radiaaneina se on 2*PII. Siis kaksi kertaa pii. Pii on se loppumaton luku, joka alkaa 3.141... ja jonka desimaalien opettelu on tapa päästä Guinnesin kirjan sivuille - mikäli ei jaksa syödä kilokaupalla kuukiaisenmunia. Pii radiaania on 180 astetta, siis oikokulma. Mitä ideaa piillä pilailemisessa sitten on? No, se on ympyrän, tässä tapauksessa yksikköympyrän, perustavanlaatuisiin ominaisuuksiin liittyvä, eikä mitenkään vaikea juttu. En minä rupea sitä kuitenkaan nyt selostamaan tässä, ei se ole mitenkään kiinnostavaa - sen voi siis opetella vaikka koulussa. Lapset, olkaa tarkkaavaisia laskento-opin tunnilla. Harvoin kyllä tulee vajottua näin alas, kun yritän keksiä jotain sisältöä aiheesta, jossa mitään erityistä selitettävää ei juurikaan ole. Taidanpa nyt tipauttaa leikepöydältä esimerkin tähän. Vielä ennen kuin ryntäät paheellisiin harrastuksiisi, niin mainitsen että edellä esiteltyjen funktioiden käänteisfunktiot (arkusfunktiot) ovat acos(..), asin(..) ja atan(..). Niillä saa laskettua kulmia, kun tietää suorakulmaisen kolmion kahden sivun pituudet. Esimerkki on englanniksi, älä suotta peljästy. > #include <math.h> #include <iostream.h> const double pi = 3.141; // far from accurate value double DegToRad(double deg) { return (deg/180.0) * pi; } double RadToDeg(double rad) { return (rad/pi) * 180.0; } int main() { double n, number; cout << "Give me an angle in degrees: "; cin >> n; number = DegToRad(n); cout << "Thank you." << endl; cout << " Sine of " << " radians is " << sin(number) << endl; return EXIT_SUCCESS; } # Tee-se-itse: linkitetty lista K�yn t�ss� l�pi k�yt�nn�nl�heisen esimerkin, jonka avulla toivottavasti ymm�rr�t mik� juju mallien takana piilee. Kuvittele, ett� sinun pit�isi ohjelmoida ammuskelupeli. Unohtaen kaiken muun mit� r�iskint�pelin ohjelmointiin voisikaan liitty�, keskitymme yhteen haasteeseen: miten hoitaa ammuttujen laukausten k�sittely (siis niiden jotka lentelev�t ymp�riins�). Selv�stikin laukausta esitt�v�t oliot pit�� ker�t� yhteen, jotta niiden sijaintia voi p�ivitt�� lentoradan mukaan ja mahdolliset osumat havaita. Yht�aikaa voidaan joutua k�sittelem��n suuriakin m��ri� ammuksia (asearsenaali on hyvin konetulipainotteinen). Joten jos ker��mme ammutut kutit taulukkoon, tulee sen olla suuri. Suurimman osan ajasta ei lent�vi� luoteja ole yht��n, koska pelaaja lymyilee vihollisten n�kym�tt�miss�. Eli suurimman osan ajasta taulukko veisi turhaan suuren m��r�n muistia ja teki siit� kuinka ison tahansa, aina voi tulla eteen tilanteita jossa se ei ole riitt�v�n iso. Tarvitsemme fiksumpaa tietorakennetta, linkitetty� listaa. Lista idea on, ett� yhdest� tietoalkiosta on aina osoitin seuraavaan - siis sen kokoa ei ole rajoitettu ja alkioiden lis��minen ja poistaminen on helppoa. Luonnostelemme Ammus-luokan: class Ammus { public: // saantifunktiot private: int x; int y; int z; Ammus* seuraava; }; Koska Ammus-luokka mallintaa pelin todellisuuden k�sitett�, sen pit�isi olla mahdollisimman yhdenmukainen peliss� suihkivien ammusten kanssa. Ja se onkin, ammuksella on sijainti jota kolmella koordinaatilla (x, y, z) kuvataan. Sopiiko Ammus*-osoitin kuvaan? Ei, koska pelin todellisuudessa ammuksia ole mitenk��n linkitetty toisiinsa. Ratkaisu ei ole siis paras mahdollinen: samaa linkitetty� listaa olisi mukava k�ytt�� muuallakin ja toisaalta mik�li ammuksien tallentamiseen p��tet��n k�ytt�� jotain viel� fiksumpaa tietorakennetta, on kurjaa menn� muuttamaan Ammus-luokkaa joka ei tietorakenneasiaan suuremmin liity. Siis linkitetyn listan toteutus pit�� repi� irti Ammus-luokasta (toki listalla olisi my�s oma luokkansa, jonka kautta sit� k�ytett�isiin; t�ss� on esitelty pelk�st��n yht� linkki� eli solmua esitt�v� luokka jotta esimerkit olisivat lyhyit� ja ytimekk�it�): class ListanSolmu { public: // saantifunktiot private: Ammus* alkio; ListanSolmu* seuraava; }; T�m� on parempi: linkitetyn listan voi vaihtaa ilman ett� Ammus-luokkaan tarvitsee koskeakaan. Mutta listaa ei voi viel�k��n k�ytt�� muiden luokkien kanssa, koska sen osoitin tietoalkioon on Ammus*-tyyppinen. C++-k��nt�j� huolehtii tietotyyppien oikeasta k�yt�st� - mik� toki on hyvin jalo ja kunnioitettava teko - eik� anna sijoittaa Ammus*-osoittimeen mink��n muun tyyppist� tietoa. Tarvitsisimme osoitinta, joka kattaa kaikki mahdolliset tietotyypit. Ja sellainen onkin, nimitt�in void*. Mutta koska void* on tyypit�n osoitin, ei sen k�ytt� anna k��nt�j�lle mink��nlaista vinkki� siit� mit� me olemme oikein tekem�ss�, joten k��nt�j� ei my�sk��n osaa varoittaa jos teemme huolimattomuuserheen. Siis void*-osoittimella toteutettuun listaan voimme ammuksien sekaan sijoitella ep�huomiossa vaikka ensiapulaukkuja tai muuta ammuskelupeleiss� yleist� tarveaineistoa - k��nt�j� ei �r�hd� ollenkaan. Toisaalta olisihan se voitto maailman rauhalle, jos konekiv��ri ampuisikin vain laastereita ja sideharsoa... void*-osoittimet eiv�t ole hyv� idea. Itseasiassa ajatus tyypitt�mien osoittimien k�yt�st� n�in korkean tason ohjelmoinnissa on loukkaus ket� tahansa osaavaa ohjelmoijaa kohtaan. Seuraavaksi turvaudummekin viisaisiin opetuksiin, joita t�ss� oppaassa tarjotaan. K�yt�mme abstraktiota, eli nousemme yl�s ansakuopasta siirt�m�ll� t�m�n pohdinnan korkeammalle abstraktiotasolle. Meh�n haluamme listan, joka osaa k�sitell� kaikkia pelin luokkia. Joten teemme luokan PeliObjekti, joka kuvaa mit� tahansa peliss� esiintyv�� asiaa ja josta kaikki pelin luokan on periytetty. Nyt - kiitos polymorfismin - voimme tehd� listan, joka PeliObjekti-kantaluokan avulla voi k�sitell� kaikkia pelin luokkia. class PeliObjekti {};class Ammus : public PeliObjekti { public: // saantifunktiot private: int x; int y; int z; };class ListanSolmu { public: // saantifunktiot private: PeliObjekti* alkio; ListanSolmu* seuraava; }; T�m� ei olekaan ihan huono ratkaisu, n�in nimitt�in Java-ohjelmointikieless� on toteutettu kielen standardikirjaston linkitetty lista ja muut tietorakenteet. Mutta Java on siin� mieless� erilainen tapaus, ett� Javassa kaikki luokat periytyv�t kantaluokasta Object, joten listaan voi ihan oikeasti laittaa kaikentyyppist� tietoja. Meid�n listamme toimii vain pelin sis�ll�, siihen ei voi esimerkiksi laittaa int-lukuja tai jonkun muun ohjelman olioita. Huomaat varmaan my�s, ett� t�ll� toteutuksella voidaan kyll� samaan listaan laittaa lyijy� ja laastareita, mutta Sidepakkaus-oliota ei voida vahingossa k�sitell� kuin se olisi Ammus-olio. Siis tyyppiturvallisuus s�ilyy, vaikka lista voikin sis�lt�� eri tietotyyppien olioita. Sen lis�ksi, ett� t�m� ratkaisu ei ole yleist�tt�viss� kaikelle tiedolle, se on my�skin hitaahko. Varsinkin jos rakentaisimme monimutkaisempia rakenteita, ei polymorfismia k�ytt�en saavutettaisi huippusuorituskyky�. Jos ongelmaan olisi olemassa unelmaratkaisu, se olisi t�m�nlainen: voitaisiin luoda koodia, joka pystyy k�sittelem��n kaikkea mahdollista tietoa, joka olisi tyyppiturvallinen ja joka tuottaisi yht� tehokasta k��nnetty� koodia kuin saman C++-koodin kirjoittaminen k�sin jokaiselle tietotyypille erikseen. Mutta ei vaan tule sellaista ratkaisua mieleen. Tietenkin yksi mahdollisuus olisi makrojen avulla rakentaa viritelm�, joka esik��nt�j�� k�ytt�en loisi useita versioita koodinp�tkist�, mutta makromagian harjoittaminen on aina ep�suotavaa, koska lopputulos on vaikeasti ymm�rrett�v� ja huonosti hallittava kyh�elm�, joka ei ole edes kunnolla tyyppiturvallinen. K�sink��n ei viitsisi aina luoda uutta versiota koodista, kun kerta t�ysin samaa logiikka vain sovelletaan uuteen tietotyyppiin. Valitettavasti ei ole varaa my�sk��n palkata toista ohjelmoijaa tekem��n rutiininomaista koodin monistamista, eik� �lykk�ist� simpansseistakaan saa mill��n koulutettua hyvi� C++-ohjelmoijia (toiseen suuntaan kouluttaminen on joskus, tosin harvoin, mahdollista). Mutta IT-maailmassa unelmat k�yv�t toteen ja ongelmiin l�ytyy t�ydellinen ratkaisu; saanen esitell� mallit: template <class T> class ListanSolmu { public: // saantifunktiot private: T* alkio; ListanSolmu* seuraava; }; # Mit� mallit oikeasti ovat? Mallit ovat tekniikka, jonka avulla k��nt�j�n saa luomaan koodia k��nn�ksen yhteydess�. Kuuluu vain ilmavaa huminaa, kun ongelmien raskas pilviverho haihtuu pois ja p�iv� paistaa taas. Mallien avulla saadaan k��nt�j� luomaan automaattisesti listasta uusi versio kaikkia tarvittavia tietotyyppej� varten. Koska k��nt�j� on asialla, se voi hoitaa tyyppien tarkistuksen t�ysin normaalisti ja havaita kurjat ohjelmointivirheet jo k��nn�svaiheessa. Ja koska ty� tapahtuu k��nn�ksen aikana, on lopputuloksena syntyv� ohjelma yht� nopea kuin k�sin r��t�l�ity. Tarkastellaan esimerkki� l�hemmin: template <class T> class ListanSolmu { public: // saantifunktiot private: T* alkio; ListanSolmu* seuraava; }; Template alussa tarkoittaa mallia. Emme siis t�ss� m��rittele luokkaa, vaan mallin jonka mukaan k��nt�j� osaa luoda uusia luokkia. Mik�li listaa ei k�ytet� ollenkaan, ei k��nt�j� luo yht��n `ListanSolmu<...` -luokkaa. Jos oliot ovat piparkakkuja ja luokat muotteja joilla ne tehd��n, ovat mallit valumuotteja jonka avulla piparkakkumuotit tehtaalla valmistetaan. Koodissa esiintyy eriskummallinen luokka T. Itseasiassa T ei ole luokka, vaan parametrisoitu tyyppi (T on m��ritelty class-tyyppiseksi eli tietotyypiksi, T voi siis olla luokka tai muuttujatyyppi). T on toisinsanoen tyyppi, joka voidaan sy�tt�� parametrina. Huomaa ett� T ei voi olla mik� tahansa tyyppi, vaan sen pit�� tukea kaikkia niit� operaatioita, joita malli sill� tekee. Jos T-oliosta kutsutaan metodia, jota sill� ei ole, antaa k��nt�j� luonnollisesti virheilmoituksen. Mallin avulla voidaan kertoa, ett� mink� tyypin listoja halutaan. Solmu-malliluokan instanssi ammuksia varten luotaisiin n�in: ListanSolmu<Ammus> ammusSolmu; Lause itseasiassa luo kaksi asiaa: luokan ja olion. `ListanSolmu<Ammus>` saa k��nt�j�n luomaan `ListanSolmu<...>` -mallista instanssin `ListanSolmu<Ammus>` , siis uuden luokan. Sen j�lkeen luodaan olio `ammusSolmu` ; t�h�n luokkaan. Jos olisimme tekem�ss� piparkakkuja, niin ensin kone muotoilisi luodin muotoisen piparkakkumuotin, jolla sitten painettaisiin yksi leivonnainen. Mit�p� tekisi seuraavanlainen koodi? ListanSolmu<Ammus> ammusSolmu; ListanSolmu<Luotiliivi> luotiliivisolmuSolmu; ListanSolmu<Sidepakkaus> sideSolmu; ListanSolmu<Avainkortti> avainSolmu; ListanSolmu<Limsapullo> limsaSolmu; ListanSolmu<Vihollinen> vihollisSolmu; ListanSolmu<Rajahde> pommiSolmu; ListanSolmu<Tehtava> tehtavaSolmu; ListanSolmu<Pelaaja> tunariSolmu; ListanSolmu<Luodinreika> jalkiSolmu; No, aika monta luokkaa, nimitt�in kymmenen. Sit� koodia n�pyttelisi k�sin jo hetken jos toisenkin. Joidenkin mielest� mallien suuri ongelma on, ett� ne aiheuttavat koodin paisumista (code bloat). Siit�h�n t�ss�kin on kyse, kymmenen kertaa iso luokka on aika paljon koodia. C++-k��nt�j� voi ja sen pit�isi osata optimoida t�m�nkaltaisia tilanteita: mik�li luokissa on identtisi� metodeja, niit� ei tarvitse monistaa vaan yhdell� p�rj��. Toki sellaiset metodit joissa k�sitell��n parametrisoitua tyyppi� tulee monistaa, koska ne k�sittelev�t erilaista tietoa eiv�tk� ole identtisi�. Mutta esimerkiksi oikeassa linkitetyn listan toteutuksessa suurin osa metodeista ei ole riippuvaisia listaan sijoitettujen alkioiden tyypist� (listan koko, onko lista lopussa? jne...) ja niinp� niit� ei tarvitse useita. Joten hyv� k��nt�j� monistaa vain ne metodit jotka on ehdottomasti pakko ja natinat koodin paisumisesta ovat kohtuullisen per�tt�mi�. Valitettavasti kaikki k��nt�j�t eiv�t ole hyvi�, joten tietty� varovaisuutta tulee noudattaa ettei k��nnetyn ohjelman koko paisu kuin pullasorsan maha. Kun pohditaan millaista koodia mallit tuottavat, niin ei voi kuin todeta: s�p�kk��. Koska jokaiselle tietotyypille generoidaan oma koodinsa, voi k��nt�j� optimoida sen viimeiseen asti (toisin kuin k�ytett�ess� virtuaalifunktioilla toteutettua polymorfismia) ja syntyv� konekielinen ohjelma on nopeampi mit� keskiverto ohjelmoija saisi aikaan konekielist� koodia viilaamalla. Yksi inhottava k�yt�nn�n puoli malleissa on. Koska k�ytett�ess� malleja k��nt�j� generoi C++-koodia ja yleisesti ottaen k��nt�j� ei ole kovin luova nime�m��n luokkia, voi tuloksena synty� hyvin kummallisia virheilmoituksia. T�m� on erityisen totta kun k�ytet��n C++:n mallikirjastoa, jossa malleja on k�ytetty ja paljon. Yksi virheilmoitus voi olla sivun pituinen eli toisinsanoen melko k�sitt�m�t�n. Hyv�t k��nt�j�t osaavat tuottaa fiksuja virheilmoituksia my�s malleja k�ytett�ess�, mutta varmasti pitki� itkuvirsi� luritteleviin k��nt�jiinkin t�rm��. Esittelen nyt laajemman esimerkin mallien k�yt�st�. Siin� on vanha tuttu `ListanSolmu<...>` , jota k�ytt�� `LinkitettyLista<...>` - eli homma on hoidettu tyylikk��sti. Listasta instantioidaan `int` - ja `Ammus` -versiot, ja niill� hieman temppuillaan jotta n�hd��n miten homma toimii. Kuten huomaat, mallien kanssa koodista tulee melko monimutkaista. Olen kommentoinut esimerkki� paljon, jotta se varmasti avautuu. Suosittelen viett�m��n hetken jos toisenkin tuon pikku p�tk�n parissa, jotta mallien k�ytt� varmasti aukenee.#include <iostream> using std::cout; using std::endl; // Ensimm�inen malli, linkitetyn listan solmu. T�m� ei n�y listan k�ytt�j�lle. template <class T> class ListanSolmu { public: ListanSolmu(); // Kuten huomaat, C++ sallii pient� lepsuilua muodostimen nime�misess� //ListanSolmu<T>(); // Tarkkaan ottaen oikean niminen muodostin (toimii my�s) void asetaAlkio(const T* alkio); const T* annaAlkio(); void asetaSeuraava(ListanSolmu<T>* seuraava); ListanSolmu<T>* annaSeuraava(); private: const T* alkio; // Alkio on const T*, koska se ei voi muuttua ListanSolmu<T>* seuraava; // Seuraava solmu linkkien ketjussa }; // Kun mallimetodi m��ritell��n, ei se kuulu luokkaan vaan malliin // (eli ListanSolmu::ListanSolmu() ei kelpaa) template <class T> ListanSolmu<T>::ListanSolmu() { alkio = 0; seuraava = 0; } template <class T> void ListanSolmu<T>::asetaAlkio(const T* alkio) { this->alkio = alkio; // this, jotta luokan alkio ja parametrialkio eiv�t sekoitu } template <class T> const T* ListanSolmu<T>::annaAlkio() { return alkio; } // Huomaa, ett� seuraava:n tyyppi ei ole ListanSolmu. K��nt�j� pystyy p��ttelem��n // tyyppej� ja t�ss� k�visi my�s pelkk� ListanSolmu, mutta ListanSolmu<T> on tarkka // ja yleens� kannattaa m��ritell� aina mahdollisimman tarkasti mit� haluaa, k��nt�j�n // j�rjenlentoon ei ole aina luottaminen... template <class T> void ListanSolmu<T>::asetaSeuraava(ListanSolmu<T>* seuraava) { this->seuraava = seuraava; } template <class T> ListanSolmu<T>* ListanSolmu<T>::annaSeuraava() { return seuraava; } template <class T> class LinkitettyLista { public: LinkitettyLista(); void LisaaListaan(const T& alkio); const T& AnnaEnsimmainen(); const T& AnnaSeuraava(); bool OnkoViimeinen(); private: ListanSolmu<T>* alku; // Ensimm�inen solmu, ei sis�ll� listan tietoa ListanSolmu<T>* nykyinen; // Listan l�pik�ynti� varten }; template <class T> LinkitettyLista<T>::LinkitettyLista() { alku = new ListanSolmu<T>; // Tyhj� "otsikkosolmu" nykyinen = alku; } // LisaaListaan lis�� listan loppuun template <class T> void LinkitettyLista<T>::LisaaListaan(const T& alkio) { // Luo uusi solmu tietoa varten ListanSolmu<T>* uusi = new ListanSolmu<T>(); uusi->asetaAlkio(&alkio); // L�hde liikkeelle nykyisest� ja kulje listan loppuun asti ListanSolmu<T>* solmu = nykyinen; while (solmu->annaSeuraava() != 0) solmu = solmu->annaSeuraava(); // Lis�� listan jatkoksi solmu->asetaSeuraava(uusi); // P�ivit� nykyinen nykyinen = uusi; } template <class T> const T& LinkitettyLista<T>::AnnaEnsimmainen() { nykyinen = alku; // Otsikkosolmusta ei voi viel� ottaa alkiota koska se on tyhj� return AnnaSeuraava(); } template <class T> const T& LinkitettyLista<T>::AnnaSeuraava() { // Ota askel eteenp�in linkkien ketjussa nykyinen = nykyinen->annaSeuraava(); // Jos olemme tulleet loppuun, palauta nolla (muuntuu tyypiksi T) if (nykyinen == 0) return 0; // Palauta itse alkio return *(nykyinen->annaAlkio()); } // bool on kaksiarvoinen tietotyyppi (tosi / ep�tosi) // int k�visi my�s paluuarvon tyypiksi template <class T> bool LinkitettyLista<T>::OnkoViimeinen() { // Olemmeko yli listan lopun? return nykyinen != 0; } // Listan kokeilua varten class Ammus { int x; int y; int z; }; int main() { // Luo numerolista LinkitettyLista<int> pisteet; // Lis�� sinne muutamia lukuja pisteet.LisaaListaan(1); pisteet.LisaaListaan(2); pisteet.LisaaListaan(3); pisteet.LisaaListaan(4); pisteet.LisaaListaan(5); // Katsotaan tulevatko oikeat luvut ulos... for (int i = pisteet.AnnaEnsimmainen(); pisteet.OnkoViimeinen(); i = pisteet.AnnaSeuraava()) cout << i << endl; // Instantioidaan listasta my�s Ammus-versio (eli luokka LinkitettyLista<Ammus>) LinkitettyLista<Ammus> paukut; paukut.LisaaListaan(*new Ammus()); return EXIT_SUCCESS; } # Mallien spesialisointi Malleja ei voida soveltaa pelk�st��n luokkiin ja niiden metodeihin, vaan my�s yksitt�isiin funktioihin. On siis mahdollista luoda funktio summaa, jossa summattavien tyyppi on parametrisoitu: template <class T> summaa(T t1, T t2) { return t1 + t2; } int i = summaa<int>(1, 2); // esimerkki funktion k�yt�st� Miten toimisi `summaa<string>` ? No huonosti, koska se ei summaisi merkkijonoja vaan yhdist�isi ne. Meid�n tulisi siis pysty� ohjelmoimaan malli t�lle erikoistapaukselle. Aivan kuten luokka voidaan periytt�� ja siit� luoda erikoistunut lapsiluokka, my�s malleja voi spesialisoida. Spesialisoitu versio summaa-funktiosta voi k�ytt�� yleisemp�� versiota hyv�kseen, vain muuttaen merkkijonot luvuiksi ja tuloksen takaisin merkkijonoksi. Huomaa t�rke� ero t�ydellisen (complete spesialisation) ja osittaisen (partial spesialisation) spesialisoinnin v�lill�: t�ydellinen spesialisointi on luokka, osittainen taas malli jonka parametrisoinnit ovat vain yleist� mallia rajatumpia. Eli summaa<string> on t�ydellinen spesialisointi, koska siin� tyyppi ei ole mill��n tavalla parametrisoitu, kun taas summaa<T*> on osittainen, koska siin� tyyppi voi olla mit� vain, sill� rajoituksella ett� se on osoitin. T�ydellisess� spesialisoinnissa ei parametrilistassa saa olla tyyppej�, koska niit� ei k�ytet� mallin rungossa.#include<cstdlib> #include<iostream> #include<sstream> #include<string> // Yleinen summaa-malli template <class T> T summaa(T t1, T t2) { return t1 + t2; } // Koska teemme t�ydellisen spesialisoinnin, m��rittelemme paluuarvon // ja parametrit string-tyyppisiksi. Koska emme k�yt� parametrisoitua // tyyppi� T, se ei my�sk��n saa olla mallin parametrilistassa. // Vain osittainen spesialisointi saa k�ytt�� parametrisoitua tyyppi�, // (esim. T* olisi osittainen spesialisointi) - mutta t�ydellisess� // spesialisoinnissa parametrisointia ei tietenk��n tarvittaisikaan! template <> string summaa<string>(string t1, string t2) { // T�m� metodi itseasiassa tekee vain tyyppimuunnoksia // ja delegoi itse ty�n yleiselle mallille stringstream ss; // jotta voimme muuttaa intin stringiksi // kutsutaan yleisen version int-instanssia hoitamaan itse homma ss << summaa<int>(std::atoi(t1.c_str()), std::atoi(t2.c_str())); return ss.str(); // tyyppimuunnos takaisin } int main() { string kolme("3"), nelja("4"); std::cout << summaa<string>(kolme, nelja); return EXIT_SUCCESS; } Kuten todettiin, spesialisoinnin voi tehd� esimerkiksi kaikille osoittimille. T�llainen tarve tulee esille, mik�li malli vaatii operaatioita, jotka on m��ritelty (j�rkev�sti) osoittimen osoittamassa tyypiss�. Hyv� esimerkki on summaa. summaa<int*> palauttaa kahden osoittimen yhteenlasketun osoitteen, mik� on t�ysin hy�dyt�n tulos. Parempi olisi, ett� se palauttaisi osoittimen int-lukuun, joka on annettujen osoittimien osoittamien lukujen summa. Mik�li osoittimet ovat tyyppi� void*, ei tietenk��n mit��n summaa voida laskea ja silloin palautetaan tyhj� osoitin (osoitin, jonka arvo on 0). T�m� saataisiin aikaan seuraavilla malleilla (pelk�t esittelyt): template <class T> summaa(T t1, T t2); template <class T> summaa<T*>(T t1, T t2); template <class T> summaa<void*>(T t1, T t2); K��nt�j� poimisi aina kaikista spesialisoiduimman version, eli `void*` -osoittimille `void*` -version, muille osoittimille osoitinversion ja yleisen version lopuille. Huomaa ett� osoitinversion parametrit eiv�t ole T*-tyyppisi�, vaan T-tyyppisi�. Jos luodaan `summaa<int*>` , sopii tyyppimaski T* tyyppiin int* niin, ett� T on int. Eli silloin summaa saisi int-parametreja. # Mallit k�yt�nt�jen parametrisoijana Ehdottomasti yleisin tapa k�ytt�� malleja on tietorakenneluokkien luominen. Koska rakenteiden tulee toimia kaikilla tietotyypeill� ja koska niiden tulee olla nopeita, sopivat mallit kuin nyrkki silm��n. Toinen hyv� k�ytt�kohde malleille on k�yt�nt�jen parametrisointi (policy parametrization). Siis mahdollisuus p��tt�� jonkin toiminnon toteutus tarpeen mukaan. Esimerkki voisi olla mallifunktio "suositeltavampi": template <class T> suositeltavampi(T t1, T t2) { if (ti > t2) return t1; else return t2; } Se valitsisi kahdesta sy�tteest� aina paremmin soveltuvan. Mutta soveltuvuus ei ole pelk�st��n suureemmuutta, olisi siis hyv� jos vertailuehto olisi asetettavissa tilanteen mukaan. Eli toisinsanoen olisi hyv�, jos vertailuk�yt�nt� olisi parametrisoitavissa. Voimmekin tehd� luokan, jossa on m��ritelty staattinen vertailumetodi ja joka voidaan antaa suositeltavampi-mallille parametrina. T�t� luokkaa kutsutaan k�yt�nt�luokaksi (policy class): #include<iostream> #include<string> using std::string; using std::cout; using std::endl; // K�yt�nt�, joka suosii pidempi� rakenteita. // Toimii vain tyypeill� jotka sis�lt�v�t metodin "int size()". template <class T> class Pidempi { public: static bool ParempiKuin(T t1, T t2) { return t1.size() > t2.size(); } }; template <class T, class K> T suositeltavampi(T t1, T t2) { if (K::ParempiKuin(t1, t2)) return t1; else return t2; } int main() { string nimi1("Aki"); string nimi2("Aki-Petteri"); // Huomaa t�rke� v�lily�nti > > -merkkien v�liss�, ettei sit� // tulkita >>-operaattoriksi! string lapsenNimi = suositeltavampi<string, Pidempi<string> >(nimi1, nimi2); cout << "Kastan sinut " << lapsenNimi << "..." << endl; return EXIT_SUCCESS; } Hyvi� k�ytt�kohteita parametrisoiduille k�yt�nn�ille ovat juuri vertailut (esimerkiksi tietorakenteen j�rjestely suuruusj�rjestykseen) tai pysyvien olioiden instantiointi (haetaan verkon yli, luetaan tiedostosta, luetaan tietokannasta jne...). Huomaa, ett� my�s virtuaalifunktioita k�ytt�en voidaan saavuttaa sama asia. Virtuaalifunktiolla toteutettuna my�s k�yt�nt�� voidaan vaihtaa kesken suorituksen - toisin kuin mallien avulla. Mutta toisaalta mallit ovat rutkasti nopeampia, mik� on erityisen t�rke�� jos k�sitelt�v�n tiedon m��r� on suuri, kuten tietorakenteita tai suuria pysyvien olioiden laumoja k�sitelless� asia yleens� on. # Mallien monimutkainen k�ytt� Mallien erikoisemmat k�ytt�mahdollisuudet perustuvat kahteen asiaan: mallien avulla ei voi parametrisoida pelk�st��n tyyppej� (esimerkiksi `class T` ), vaan my�s ihan normaaleja muuttujia (kuten `int i` ). Lis�ksi muuttujan tyyppi voi olla mallissa parametrisoitu tyyppi, kunhan parametrisoidun tyypin m��rittely on ennen muuttujan m��rittely�. Pieni esimerkki selvent�nee asiaa:#include<iostream> template <class T, int koko, T oletusarvo> class Taulukko { public: Taulukko() { for (int i = 0; i < koko; i++) taulu[i] = oletusarvo; } T taulu[koko]; }; int main() { Taulukko<int, 2, 3> luvut; std::cout << luvut.taulu[1] << std::endl; // tulostaa 3... return 0; } N�in voi luoda taulukon, joka on sovellettavissa kaikille tyypeille ja josta voidaan luoda oikeankokoinen versio eri tarkoituksiin. Koska luominen ja koon asettaminen tapahtuu k��nn�ksen yhteydess�, voi k��nt�j� optimoida taulukon k�ytt�� paremmin kuin ajonaikaisia rakenteita. T�m� tarkoittaa my�s sit�, ett� koko- ja oletusarvo-parametrien tulee olla vakioita. Jokaiselle k�ytetylle eri tyypin, koon ja oletusarvon yhdistelm�lle luodaan oma luokkansa k��nn�ksen aikana, joten normaali muuttuja ei kelpaa: sen arvoa kun ei voi tiet�� viel� k��nn�ksen aikana. Vaikka t�llainen mallimagia onkin mahdollista, kannattaa kuitenkin usein mietti� onko se perusteltua. Mallien k�yt�ss� on yleens� paras rajoittua geneerisiin tietotyyppeihin ja tarvittaessa k�yt�nt�jen parametrisointiin. # Mit� mallit abstraktisti ovat? * Periytt�misell� toteutetun polymorfismin avulla voidaan luoda koodia, joka pystyy k�sittelem��n useita eri tyyppej�. Siin� kaikki perustuu kantaluokkaan, eli koodin vaikutusalue voidaan ajatella puuna, jonka juurena on kantaluokka ja oksina periytyv� luokkahierarkia. Malleilla toteutetun koodin vaikutusalue on kaikkien niiden tietotyyppien lista, jotka tukevat kaikkia koodissa k�ytettyj� operaatioita - mit��n j�rke� operaatioissa ei tarvitse olla, kunhan ne on m��ritelty. Malleihin verrattuna polymorfismi on t�sm�ase, sen vaikutusalue on pienempi ja paljon rajatumpi: vaikka kantaluokkaa k�sittelev�n koodin kirjoittaja ei voikaan aina arvata, millaisia lapsiluokkia luokalla tulee olemaan, niin huomattavasti vaikeampi on mallia kirjoittavan ohjelmoijan arvata mink�laiset luokat tulevatkaan tukemaan mallin vaatimia operaatioita - ja miten j�rjett�m�sti ne sen tulevat tekem��n. Itseasiassa mallien k�ytt�kin voidaan ajatella polymorfismina. Puhutaankin C++:n kahdesta erilaisesta polymorfismista, k��nn�ksenaikaisesta - tai parametrisoidusta - polymorfismista (mallit) ja ajonaikaisesta polymorfismista (periytt�minen ja virtuaalifunktiot). N�ill� kahdella on sek� k�yt�nn�llisi� ett� teoreettisia eroja. K�yt�nn�ss� mallit ovat nopeampia, mutta hieman hankalampia ja ep�intuitiivisempia. Teoreettisesti t�rkein ero on vaikutusalueella. Ajonaikaisen polymorfismin vaikutusalue on pienempi, mutta ennen kaikkea hallittavampi. Koska virtuaalifunktioiden m��rittelyt rajoittavat huomattavasti lapsiluokkien toteuttajia, on polymorfisen koodin kirjoittajalla paljon selke�mpi ja rajatumpi kuva koodin vaikutuksesta kohteena oleviin tietotyyppeihin. Yleens�, kuten my�s t�ss� oppaassa, polymorfismilla viitataan juuri ajonaikaiseen polymorfismiin ja mallien avuilla luotua monimuotoisuutta kutsutaan geneeriseksi ohjelmoinniksi. Geneerinen eli yleinen kuvaa hyvin mallien k�ytt��: malli eli parametrisoitu ohjelmanp�tk� antaa yleisen valtakirjan kaikille, jotka sit� haluavat k�ytt��. Perinteinen polymorfismi vaatii hyvin rajoittavasti, ett� kohteena oleva olio on jotakin tietty�: lapsiluokan olio on kantaluokan olio, siis PaloAuto on Auto. Vaikka polymorfinen koodi voikin k�sitell� PaloAutoja, KuormaAutoja ja PakettiAutoja, ne kaikki ovat Autoja. Vastakohtana geneerinen lista voidaan instantioida Autoille tai int*-osoittimille, eik� Auto ole int* tai int* ole Auto. Niill� ei ole juuri mit��n muuta yhteist�, kuin ett� niiss� on m��ritelty sijoitusoperaattori - mik� riitt��kin linkitetyn listan toteutukselle. T�m� yleisyys voi olla vaarallistakin ja johtaa v��rin toimivaan koodin: esimerkiksi yhteenlasku on normaali toimitus numeroille, mutta kahdella osoittimella tehtyn� ynn�ys ei tuota mit��n j�rkev�� - mutta on mahdollista! Toki malleja on mahdollista spesialisoida ja luoda osoittimille oma versionsa, joka tuottaa j�rkevi� tuloksia. T�ss� kuitenkin havaitaan, ett� liian pitk�lle vietyn� p��dymme kopioimaan tietotyyppien v�lisi� suhteita (esim. luokkahierarkiat) omassa spesialisaatiorakenteessamme, mik� ei ole hyv� merkki - kaksinkertainen rakenne on tuhatkertainen p��nvaiva. Voikin havaita, ett� parametrisoiduilta tyypeilt� ei saa vaatia kovin useita tai monimutkaisia operaatioita - niit� tulisi k�ytt�� hyvin rajatulla tavalla. Mik�li t�h�n ei pystyt�, on hyv� ratkaisu tehd� v�liin erillinen kerros geneerisi� tyyppej�, joiden avulla operaatiot voidaan suorittaa. Esimerkki t�st� l�ytyy C++:n standardikirjastosta (STL:st�), jossa algoritmit kuten j�rjestely ovat yhteydess� tietorakenteisiin erillisten iteraattorien avulla. Malleja ja perimist� on mahdollista yhdist��. Malliluokka voi peri� tavallisen luokan tai malliluokan, tavallinen luokka ei tietenk��n voi peri� malliluokkaa. Mutta mik�li periminen laajennetaan t�ysimittaiseksi olio-ohjelmoinniksi (mukaanlukien virtuaalifunktioiden k�ytt�), ei malleja kannata sotkea en�� mukaan. Parametrisoiduista virtuaalifunktioista tehdyt "tuplapolymorfiset" rakennelmat ovat hyvin vaikeita hahmottaa. Yleisesti ottaen olio-ohjelmointia ja geneerist� ohjelmointia ei kannatta yhdist�� - oliorakennelmat voivat kyll� k�ytt�� geneerist� kirjastoa (kuten STL:��) tai geneerinen ohjelma voi k�ytt�� oliopohjaista j�rjestelm��, kunhan niiden v�linen raja on selke�. # Geneerinen ohjelmointi * Geneeriseen ohjelmointiin voi pureutua vertaamalla sit� olio-ohjelmointiin. Toki geneeriset ohjelmatkin sis�lt�v�t olioita ja luokkia, mutta olio-ohjelmoinnilla tarkoitan t�ss� koko konseptia, periytymist�, virtuaalifunktioita, luokkahierarkioita ja yleens� kaiken mallintamista olioiden avulla. Olio-ohjelmoinnissa abstraktit k�sitteet mallinnetaan kantaluokkien avulla (esim. Ajoneuvo). Geneerisess� ohjelmoinnissa taas abstraktiot eiv�t ole niin konkreettisia, vaan vaatimuksia siit� mit� operaatioita parametrisoidun tyypin tulee tukea (esimerkiksi taulukkomuotoisen tietorakenteen tulee tukea indeksointia eli []-operaattoria - eli taulukkomuotoisen tietorakenteen abstraktioon kuuluu vaatimus indeksoinnin tukemisesti). Mik�li vaatimusta ei t�ytet�, johtaa se virheeseen k��nn�ksess�. Kaikkia vaatimuksia ei kuitenkaan voida mallintaa C++:n rakenteiden avulla. Esimerkiksi jos j�rjestelyfunktiolle annetaan j�rjestelt�v�n alueen alku- ja loppupiste, se ei pysty havaitsemaan jos pisteet sijaitsevat eri tietorakenteissa. Oliomallissa luokka Indeksi sis�lt�isi tiedon siit� mihin tietorakenteeseen se kuuluu, joten tarkistaminen olisi paljon helpompaa. Niinp� geneerisest� ohjelmoinnista voidaankin havaita hyvin yleinen ilmi�: mit� laajemmin joku asia on sovellettavissa, sit� voimattomampi se on. Sellainen perustuslaki, jonka kaikki maailman maat voisivat allekirjoittaa, saisi sis�lt�� vain harmaas�vyisen kansilehden. Laajamittaisessa geneerisess� ohjelmoinnissa tuleekin soveltaa k�yt�nt��, jolla abstraktioiden vaatimukset voidaan dokumentoida selke�sti. Mit� vaaditaan tietorakenteelta? Ent� taulukolta? Geneerisen ohjelmoinnin yhteydess� puhutaan konsepteista, eli m��ritelmist� jotka kuvaavat kuinka eri osat ovat yhteydess� toisiinsa ja kuinka j�rjestelm��n voidaan lis�t� uusia ominaisuuksia. Jotta suurta geneerist� j�rjestelm�� voi hallita ja kehitt��, tulee konseptit dokumentoida selke�sti. Geneerisess� ohjelmoinnissa p��roolissa eiv�t ole luokat. Esimerkiksi algoritmit - siis k�yt�nn�ss� mallifunktiot - ovat keskeisi�. Luokkien v�lill� ei my�sk��n ole juurikaan riippuvuuksia, kuten olio-ohjelmoinnissa. Jotta yleisi� operaatioita voidaan soveltaa luokkiin, luokkien tulee olla yksinkertaisia - joten niiden yhdistely, periytt�minen ja muut vastaavat monimutkaisuudet eiv�t ole k�ytett�viss�. J�rjestelm�n �lykkyys ei ole luokkien sis�ll�, vaan siin� miten algoritmeja sovelletaan tietorakenteisiin. Geneerisille j�rjestelmille on yleist� k�yt�nt�jen parametrisointi. Toisaalta luokat ovat kapseloituja yksikk�j�, mutta toisaalta niist� on erotettu tiettyj� k�yt�nt�j�, jotka on parametrisoitu. K�yt�nn�t ovatkin luokan kapseloimaan k�sitteeseen verrattuna eri ulottuvuudessa - siis sill� miten tietorakenteita j�rjestell��n ei ole merkityst� erilaisten tietorakenteiden muodostamassa ulottuvuudessa. K�yt�nn�t ovatkin hyvin samantyyppinen ratkaisu kuin aspektit olio-ohjelmoinnissa. Yhteenvetona voisi todeta, ett� geneerinen ohjelmointi ei ole er�s olio-ohjelmoinnin erityistapaus. Geneerinen tapa k�sitell� abstraktioita on erilainen ja huonommin C++-kielen tukema kuin oliomallinnuksessa. Niinp� geneerist� ohjelmointia ei tulisikaan soveltaa suuriin sovelluksiin: oliomallinnuksen on todettu auttavan suurten sovelluksien mallintamisessa, mutta geneerinen ohjelmointi ei sis�ll� yht� voimakkaita ominaisuuksia. Yleisk�ytt�isten kirjastojen tai alij�rjestelmien toteuttamiseen geneerinen ohjelmointi soveltuu hyvin, josta oiva esimerkki ovat yleiset tietorakenteet ja algoritmit, jotka C++:n STL-standardikirjastossa on toteutettu geneerisen ohjelmoinnin avulla. # Standard Template Libraryn idea STL on C++:n oma kirjasto, joka sis�lt�� kaikenlaista yleishy�dyllist� kivaa. Se on toteutettu pitk�lti mallien avulla, geneerisen ohjelmoinnin periaatteiden mukaan. STL ei ole pelk�st��n kokoelma hy�dyllisi� ohjelmanp�tki�, vaan laajennettava kehysj�rjestelm� (framework), jonka avulla voidaan luoda uusia geneerisi� j�rjestelmi�. STL:n ytimen muodostovat tietorakenteet (containerit tai suomettuneesti "kontit") ja niihin sovellettavat algoritmit. Niiden v�liss� ovat iteraattorit. Voidaan ajatella, ett� iteraattori on abstraktio tietorakenteiden k�sittelyst�, samalla tavalla kuten naulaaminen on abstraktio naulan ja naulaajan v�lisest� toiminnasta. Iteraattoreiden avulla voidaan erottaa toiminnallisuus (algoritmit) ja data (tietorakenteet) - kun vertaat t�t� l�hestymistapaa oliosuunnitteluun, huomaat kuinka se eroaa "luokassa on kapseloitu toiminnallisuus ja data" -ajattelusta. # Tietorakenteet ja l�hes tietorakenteet Containerit, kontit, tietorakenteet - miksi niit� haluaakaan kutsua - ovat STL:n ydin. STL:n tietorakenteet astuvat kuvaan kun taulukot eiv�t riit�. Geneerisen ohjelmoinnin periaatteiden mukaan eri tietorakenteiden v�lill� ei ole juurikaan yhteyksi�: mit��n tietorakenteiden hierarkiaa ei ole. Koska suorituskyky on hyvin t�rke�� yleisk�ytt�isess�, suuria tietom��ri� k�sittelev�ss� koodissa, ei rakenteisiin ole toteutettu sellaisia ominaisuuksia jotka eiv�t ole niille ominaisia - eli sellaiset ominaisuudet jotka olisi ollut mahdollista toteuttaa, mutta jotka olisivat toimineet hitaasti, on j�tetty pois (esimerkkin� listan indeksointi). T�rkeimm�t containerit ovat: vector<...>, joka on vektori eli taulukko jonka koko voi muuttua; list<...> eli linkitetty lista, k�tev� kun alkiota lis�t��n ja poistetaan paljon; stack<...> eli pino ja queue<...> eli jono, ensimm�isen� laitettu alkio tulee pinosta viimeisen�, jonosta ensimm�isen� (kuten nimist� voikin p��tell�); map<...> eli sanakirja eli hakupuu, josta alkiota voidaan hakea nopeasti avaimen perusteella (kuten nimi numeron perusteella) ja set<...> eli joukko, jossa samanarvoisia alkioita voi olla vain yksi. Hyvin pitk�lle p��see jo vector<...>, list<...> ja map<...> -kolmikolla. Lis�ksi l�ytyv�t puoliveriset tietorakenteet, kuten string eli merkkijono ja array eli normaali taulukko, jotka tukevat osittain containerien operaatioita. # Iteraattorit STL:n tietorakenteet eiv�t ole samasta tyypist� periytettyj�, joten jotta algoritmej� (kuten j�rjestely) ei tarvitse toteuttaa erikseen niille kaikille, tulee v�liss� olla jotakin. Se jotakin on iteraattorit. Iteraattorit ovat abstrahoituja iteroimisen eli plaraamisen tapahtumia: jos tietorakenteet olisivat kirjoja, niin iteraattorit olisivat "sivunk��ntimi�". Iteraattoreilla ei my�sk��n ole yhteist� kantaluokkaa, mutta ne tukevat samoja operaatioita. T�rkeimpi� ovat kasvatus (i++, ++i, i += 4) ja vastaavat v�hennykset sek� alkion arvon haku (*i). Kuten huomaat, normaali osoitin taulukon alkioon on my�s iteraattori: sit� voidaan kasvattaa, jolloin se siirtyy alkion koon mukaisilla askelilla ja *-operaattorilla saadaan sen osoittama arvo. Kun iteraattori luodaan, tulee luonnollisesti tiet�� sen tyyppi. Sen l�ytyy m��riteltyn� (typedefin avulla) tietorakenteen luokasta, nimell� iterator. Mik�li iteraattorin avulla vain luetaan tietoja, voimme k�ytt�� tyyppi� const_iterator. Koska tyypin m��rittely tietorakenneluokan kautta on kohtuullisen vaivalloinen kirjoittaa, kannattaa usein m��ritell� uusi tyyppinimi sille (eli k�ytt�� typedefi�). T�ss�p� esimerkki, toivottavasti n�et kuinka takana olevien tietorakenteiden erot h�vi�v�t kun niit� k�sitell��n iteraattorien kautta: #include<iostream> #include<vector> #include<list> #include<string> int main() { // otetaan kaksi containeria vector<string> vec; list<string> lis; // ty�nnet��n niihin tietoa (vec:ss� on tuplasti enemm�n alkioita) vec.push_back(string("Satu")); vec.push_back(string("meni")); lis.push_back(string("saunaan,")); vec.push_back(string("pani")); vec.push_back(string("laukun")); lis.push_back(string("naulaan.")); // Otetaan iteraattorit, huomaa ett� iteraattorien tyyppi tulee aina // ottaa luokan tyyppim��rittelyist�, yleens� kannattaa m��ritell� typedef // helpottamaan kirjoittamista - kuten j�lkimm�isess� on tehty vector<string>::iterator vi = vec.begin(); typedef list<string>::iterator list_iter; list_iter li = lis.begin(); // Kunnes vektorin iteraattori tulee loppuun... while (vi != vec.end()) { // Ensin otetaan iteraattorin osoittama arvo (*-operaattori), sitten // kasvatetaan sit� std::cout << *vi++ << " "; std::cout << *vi++ << " "; std::cout << *li++ << " "; } return EXIT_SUCCESS; } # Algoritmit Olen v�sym�tt�m�sti toistanut, kuinka iteraattorit toimivat tietorakenteiden ja algoritmien v�liss�. Ja nyt se n�hd��n: algoritmit eiv�t sy� tietorakenteita, vaan tarvitsevat iteraattorin tietorakenteen alkuun ja loppuun. Eli vektori (mik� tahansa muu tietorakenne) j�rjestell��n: sort(vektori.begin(), vektori.end()); T�rkeimpi� algoritmeja ovat: sort, joka j�rjestelee tietorakenteen (ei voi k�ytt�� listaan!); merge joka yhdist�� kaksi j�rjestelty� rakennetta s�ilytt�en j�rjestyksen; unique joka siirt�� duplikaatit (samat alkiot) j�rjestellyst� rakenteesta loppuun ja palauttaa iteraattorin uniikkien alkioiden alueen loppuun; find joka etsii jonkin alkion ja palauttaa iteraattorin siihen; count joka laskee tiettyjen alkioiden lukum��r�n ja max_element (tai min_element vastaavasti) joka paluttaa iteraattorin suurimpaan elementtiin. Allapa on henkil�stohallinnollinen esimerkki, huomaa kuinka n�ps�k�sti algoritmit toimivat ihan tavallisten C-taulukoiden kanssa: #include<string> #include<vector> #include<algorithm> #include<iostream> using std::cout; using std::endl; int main() { vector<string> tyontekijat; tyontekijat.push_back(string("Raimo")); tyontekijat.push_back(string("Liisa")); tyontekijat.push_back(string("Kalle")); tyontekijat.push_back(string("Liisa")); tyontekijat.push_back(string("Benjamin")); // j�rjestell��n ty�ntekij�t sort(tyontekijat.begin(), tyontekijat.end()); // Liisoja on kaksi, erotetaan toinen kun ei koskaan muista // ett� kumpi on kumpi vector<string>::iterator new_end = unique(tyontekijat.begin(), tyontekijat.end()); // Hesekiel tulee Kallen tilalle *find(tyontekijat.begin(), new_end, string("Kalle")) = string("Hesekiel"); for (vector<string>::const_iterator i = tyontekijat.begin(); i != new_end; ++i) cout << *i << endl; int palkat[] = {17000, 11000, 9000, 9000}; cout << "Yhdeks�� tonnia saa " << count(&palkat[0], &palkat[4], 9000) << ", suurin palkka on " << *max_element(&palkat[0], &palkat[2]) << endl; return EXIT_SUCCESS; } # Virrat C++:n virrat ovat hyvin monipuolisia vekkuleita. Kaikki on parametrisoitu: esimerkiksi sovittaminen uuteen merkist��n on t�ysin mahdollista. Normaali kuolevainen ohjelmoija kuitenkin harvoin tarvitsee tuonkaltaisia ominaisuuksia. Peruskoodaajan kannalta t�rkein asia on mahdollisuus omien tyyppien sovittamiseen mukaan virtoihin. Se tapahtuu m��rittelem�lle operaattori <<, joka saa parametrikseen virran ja sinne pukattavan kanootin. Hyvin n�pp�r� apu ovat my�s stringstreamit, virrat jotka tulostavat merkkijonoon. Niit� on kiva k�ytell� lukujen muuttamiseen merkkijonoiksi, t�h�n tyyliin: #include<iostream> #include<sstream> #include<string> // oma lukutyyppimme, ei viel� vakiintunut normaalik�yt�ss� class huuhaaluku { public: int hups; int hips; }; ostream& operator<<(ostream& o, const huuhaaluku h) { stringstream ss; ss << h.hups * 5 + h.hips << "!!" << h.hips; return o << ss.str(); } int main() { huuhaaluku h; h.hips = 5; h.hups = 3; std::cout << "Huuhaa: " << h << std::endl; return EXIT_SUCCESS; } # Numerot ja matematiikka STL tarjoaa moninaisia ominaisuuksia my�s numeerisiin karkeloihin. Tavallisimpia on numeric_limits<...>-malli, jolla saa selville eri numerotyyppien lukualueiden rajoja ja perinteiset matemaattiset funktiot kuten sini, kosini, tangentti ja neli�juuri. Paletista l�ytyy my�s matemaattisiin vektorioperaatioihin suunniteltu val_array ja matriisien esitt�mist� varten slice. T�ss� pieni esittelykierros: #include<cmath> #include<limits> #include<iostream> using namespace std; // jotta esimerkki s�ilyisi lyhyen�... int main() { cout << "intin lukualue on " << numeric_limits<int>::min() << " - " << numeric_limits<int>::max() << endl; cout << "unsigned intin lukualue on " << numeric_limits<unsigned int>::min() << " - " << numeric_limits<unsigned int>::max() << endl; double i = -1.0; // otetaan i:n itseisarvon neli�n neli�juuren sinin arkussinin vastaluku double r = -asin(sin(sqrt(pow(abs(i), 2)))); cout << "r on " << r << endl; // pit�isi tulla -1.0, py�ristysvirheet poislukien return EXIT_SUCCESS; } Takaisin # Oliosuunnittelu Joku risupartainen ja kyynisen kieroutunut vanha jäärä saattaisi sanoa, että kaikki mitä tässä oppaassa on tähän mennessä kerrottu ei edes mitään ohjelmointia olekaan. Vain yksinkertaisia ohjeita siitä miten eräs ohjelmointikieli toimii. Se on kyllä totta, että ohjelmoinnissa on paljon muutakin kuin ohjelmointikielen osaaminen. C++-kielen kehittäjä Bjarne Stroustrup kirjoittaa kirjassaan, että hän pyrkii opettamaan olio-ohjelmointia eikä C++-kieltä. Joten nyt minäkin vaatimattomasti yritän summata niitä olio-ohjelmointiin liittyviä suuria totuuksia, joihin olen törmännyt varsinkin työelämässä suurempien projektien yhteydessä. Tätä kappaletta voisi kuvata muutamaksi omakohtaiseksi tarinaksi oliosuunnittelusta ja siihen liittyvistä ongelmista. Kappaleet lähtevät jossakin mielessä konkreettisista asioista ja kohoavat yhä käsitteellisemmälle ja myös ristiriitaisemmalle tasolle. Ota siis itseäsi niskasta kiinni ja sinkoa henkinen minäsi maata kiertävälle radalla. Irrottaudumme C++-kielen kiekuroista ja otamme hieman lintuperspektiiviä olio-ohjelmointiin! # Luokan kaksi liittymää Kuten tiedät, oliossa yhdistyy tiedot ja toiminnallisuus. Tiedot, ohjelman muuttujat, ovat kapseloituja. Tätä kutsutaan informaation piilotukseksi, information hiding. Huomaa että en puhu tiedoista, ohjelman konkreettisesta datasta, vaan informaatiosta. Informaatiolla tarkoitetaan tietoa siitä, miten luokka oikeasti toimii. Luokka on musta laatikko, informaatio luokan - eli sen olioiden - toiminnasta on piilotettu. Tiedon rakenne, siis muuttujat ja niiden tyypit, kertoo hyvin paljon luokan toiminnasta ja niinpä se pitää piilottaa käyttäjältä, jotta pystymme kätkemään luokan todellisen toiminnan. Niinpä - käyttäjän näkökulmasta - kaikkein tärkeintä luokassa on sen liittymä. Liittymän muodostavat luokan julkiset metodit: ne ovat mitä ulkopuolinen käyttäjä näkee (huomaa että ystäviksi määritellyt oliot ja funktiot näkevät luokan yksityisenkin tiedon). Julkisen liittymän suunnittelu on tärkeämpää kuin sisäisen toteutuksen: virhe sisäisessä toteutuksessa voidaan korjata lennossa, kulissien takana, käyttäjät eivät huomaa mitään. Mutta mikäli luokan liittymä muuttuu, joutuvat luokan käyttäjät muuttamaan omaa koodiaan. Pahimmassa tapauksessa käyttäjät ovat rakentaneet oman ohjelmansa jonkin ominaisuuden päälle, joka katoaa tai muuttuu - ja käyttäjät ovat silloin todella pulassa. Kun puhun käyttäjistä, ei se tarkoita että tämä koskisi vain yleisesti käytettävien luokkakirjastojen suunnittelijoita. Käyttäjä voi olla ja lähes aina on luokan suunnittelija, sinä! Huomenna tai viikon päästä tai ensi vuonna et muista enää miten tekemäsi luokka tarkkaan ottaen toimii. Mutta muistat kyllä miten sitä käytetään, jos liittymä on taidokkaasti suunniteltu. Kirjoitat luokan tänään ja otat sen käyttöön suuremmassa kokonaisuudessa huomenna. Mikäli luokkasi ei ole kunnolla suunniteltu ja kapseloitu, joudut pohtimaan sitä jatkuvasti, etkä pysty keskittymään muun kokonaisuuden suunnitteluun. Hyvä ohjelmoija on nero, joka luo mahtavia, oivaltavia ja uskomattomia luokkia, kapseloi ne ja unohtaa seuraavana päivänä. Kun suunnittelee luokkaa, on siis ensiarvoisen tärkeää millaisen liittymän luokka julkistaa muille luokille. Eikä siinä kaikki. Luokalla ei nimittäin ole vain yhtä liittymää ulkomaailmaan, vaan itseasiassa kaksi. Luokan näkökulmasta katsottuna ulkomaailma jakautuu kahteen osaan. Keksitkö mihin kahteen? Mitkä luokat ovat erityisasemassa muihin verratuna? No, luonnollisesti kantaluokat. Mutta itseasiassa kantaluokat eivät ole osa ulkomaailmaa, vaan ne ovat osa itse periytettyä luokkaa. Kantaluokat eivät ole vastaus, mutta liippaavat läheltä. Oikea vastaus on lapsiluokat. Lapsiluokat näkevät enemmän kantaluokastaan kuin muut. private-tieto on niille näkymätöntä ja public julkista, kuten kaikille muillekin. Mutta on kolmaskin vaihtoehto, protected eli suojattu näkyvyys. Muistathan? protected on avainsana, jolla määritelty tieto ei näy julkisesti, mutta näkyy kantaluokille. Milloin tulisi siis käyttää private-näkyvyyttä, milloin vähemmän rajattua protected-näkyvyyttä? En tiedä, en todellakaan tiedä. Olemme nyt nimittäin niin kurjan pitkällä C++:n ominaisuuksissa, että jykeviä totuuksia ei tahdo oikein enää löytyä. Asian tekee erittäin hankalaksi se, että kantaluokka harvemmin tietää lapsiluokistaan - ja vastaavasti luokan ohjelmoija ei voi ennustaa miten luokkaa tullaan periyttämään. Tässä esimerkki tilanteesta: > class MuotoiltuAika { private: int sekunteja; public: string annaMuotoiltuAika(); }; string MuotoiltuAika::annaMuotoiltuAika() { string p; int tunteja = sekunteja / 3600; int minuutteja = (sekunteja - (3600 * tunteja)) / 60; if (tunteja % 12 > 0) { p = "PM"; tunteja -= 12; } else p = "AM"; stringstream ma; ma << tunteja << ":" << minuutteja << " " << p; return ma.str(); } class SuomalainenMuotoiltuAika : public MuotoiltuAika { public: string annaMuotoiltuAika(); }; string SuomalainenMuotoiltuAika::annaMuotoiltuAika() { // ei voi kääntää, koska sekunteja ei näy tähän lapsiluokkaan string p; int tunteja = sekunteja / 3600; int minuutteja = (sekunteja - (3600 * tunteja)) / 60; stringstream ma; ma << tunteja << ":" << minuutteja; return ma.str(); } Luokkaa SuomalainenMuotoiltuAika ei voi toteuttaa, koska sekunteja on yksityinen. MuotoiltuAika-luokkaa ei siis voi järkevästi periyttää, siitä ei voi rakentaa erikoistuneita versioita. Se on lajinsa viimeinen. Mikäli sekunteja olisi suojattu (protected), se olisi näkyvissä lapsiluokille ja eri maihin sopivia muotuiluja voitaisiin lisätä. Ja mikäli annaMuotoiltuAika olisi virtuaalinen, voitaisiin muotoiluja käyttää polymorfisesti ja siis ohjelman lokalisointi eli maan merkintätapoihin mukauttaminen olisi erittäin helppoa. MuotoiltuAika-luokan liittymä täysin ulkopuolisiin luokkiin on onnistunut, mutta liittymä lapsiluokkiin on mennyt pieleen. Ainoa resepti näihin tilanteisiin on: mieti! Kun teet luokkaa, jota et itse juuri nyt aio periyttää, niin mieti silti olisiko sitä edes mahdollista järkevästi periyttää. Se on helpommin sanottu kuin tehty, mutta erilaisia tulevaisuuden käyttömalleja miettimällä lopputulos on ainakin parempi kuin keskittymällä pelkästään julkiseen liiittymään - joka toki taas on parempi kuin luokan liittymien suunnittelun unohtaminen kokonaan. Mietintöjen lopputulos ei automaattisesti ole, että luokka avataan lapsiluokille suojatun näkyvyyden avulla ja mahdollinen polymorfinen käyttö otetaan huomioon. Tulos voi hyvinkin olla, että luokkaa ei pidä periyttää - sen sisuskalut ovat sellaisia, että niitä ei voi avata lapsiluokille. Syynä voi olla esimerkiksi se, että luokka tulee ehkä radikaalisti muuttumaan tai että luokan metodit muodostavat monimutkaisen kokonaisuuden jonka muokkaaminen lapsiluokissa johtaisi helposti virheisiin. Tosin kannattaa kysyä, olisiko tällaisessa tapauksessa parempi pilkkoa monimutkainen luokka osiin. Kuitenkin: syvällisten pohdintojen perusteella voi olla perusteltu ratkaisu sulkea luokka periyttämiseltä kokonaan. Onko tähän olemassa muita niksejä tai suuria teorioita? Niksejä kyllä. Niihin voit tutustua perehtymällä suunnittelumalleihin (design patterns). Suuria teorioita ei ole. Periyttäminen on mielestäni kiinnostava asia myös teoreettisessa mielessä. Yllä esiteltyä ongelmaa pidetään oliomallin suurimpana heikkoutena, tosin yleensä ajateltuna toisin päin: miten lapsiluokka voi suojautua kantaluokan muutoksilta. Mikäli minulta kysyttäisiin mikä olisi paras ratkaisu näissä perintään liittyvissä ongelmassa, voisi vastaukseni hyvinkin olla: hankkiutua periytymisestä kokonaan eroon. Miksikö? Se on pitkä tarina, en sitä tässä yhteydessä käsittele. Mutta voit ajatusleikkinä miettiä millaista olio-ohjelmointi olisi ilman yhteisen toiminnallisuuden jakamista luokkahierarkioiden avulla. # Ohjelmoinnin ihmissuhdeteoria Hyvät ystävät ovat ihmisiä, joihin voi luottaa. Hyvälle ystävälle voi vaikka antaa oman pankkikorttinsa tunnuslukuineen. Mattobasaarin kauppiaalle sen sijaan en suosittelisi kovin luottamuksellisten luottotietojen luovuttamista. Miten tämä sitten liittyy ohjelmointiin? Ohjelmien maailmassa ei ole ystäviä. Kaikki ovat helppoheikkejä ja kepuliveivareita, jotka yrittävät huijata sinua. Puhun nyt luonnollisesti olioista ja muista ohjelman osista. Ohjelmia suunnittellessa pitäisi lähteä siitä, että olio tai muu ohjelman osa ei saa kertoa itsestään muille mitään, mitä voitaisiin käyttää sitä vastaan. Käännän äskeisen esimerkin C++-kielelle, jossa kaikki ovat ystäviä keskenään ja luottavat toisiinsa: > class CreditCard // luottokortti { public: void transferMoney(int amount, string secretNumber, string destAccount); void bill(int amount, string destAccount); }; class Person // henkilö { public: CreditCard* getCreditCard(); string getSecretNumber(); private: CreditCard card; string secretNumber; }; class AnotherPerson // toinen henkilö, paras kaveri { void bill(Person& bestFriend); private: string myAccount; }; void AnotherPerson::bill(Person& bestFriend) // laskuta toisen luottokorttia { // laskuta luottokorttia, tämän metodin tarkoitus bestFriend.getCreditCard()->bill(100, myAccount); // AnotherPerson voisi myös kavalasti nostaa rahaa kaverinsa tililtä // bestFriend.getCreditCard()->transferMoney(10000, bestFriend.getSecretNumber(), myAccount); // tai hävittää (tai vaihtaa) kaverinsa luottokortin // delete bestFriend.getCreditCard(); } Tämä rakenne toimii, mutta ei ole hyvä. Se rikkoo informaation piilotuksen periaatetta vastaan. Periaatteen voisi muotoilla myös informaation paikallisuuden periaatteeksi: ohjelman osan rakenteesta ja toiminnasta kertova informaatio tulee pitää mahdollisimman paikallisena. Ystäville voit kertoa kaikki salaisuutesi - mutta ohjelmoinnin maailmassa sinulla pitäisi olla mahdollisimman vähän ystäviä. Rakenteellisesti parempi versio äskeisestä esimerkistä olisi tällainen: > class CreditCard // luottokortti (sama kuin äsken) { public: void transferMoney(int amount, string secretNumber, string destAccount); void bill(int amount, string destAccount); }; class billingException {}; // virhe laskutuksessa class Person // henkilö { public: void bill(int amount, string account); protected: CreditCard& getCreditCard(); string getSecretNumber(); private: CreditCard card; string secretNumber; static const int MAX_BILL; }; const int Person::MAX_BILL = 25000; // suurin laskutettava summa class AnotherPerson // toinen henkilö, epäluotettava { void bill(Person& bestFriend); private: string myAccount; }; void Person::bill(int amount, string account) { if (amount < MAX_BILL) card.bill(amount, account); else throw billingException(); } void AnotherPerson::bill(Person& bestFriend) { bestFriend.bill(10000, myAccount); } Tässä versiossa AnotherPerson ei saa CreditCard-oliota haltuunsa eikä voi tehdä sille mitään pahaa. CreditCardin saavat vain Person-luokan alaluokat. Myöskin tunnusnumero on suojattu vain alaluokille. Kun laskutusta ei tehdä suoraan luottokortilla, vaan Person-luokan bill(..)-metodin kautta, voi Person valvoa tapahtumaa ja tarvittaessa heittää poikkeuksen ja estää laskutuksen. Nyt verryttelemme visuaalista hahmotuskykyä: kuvittele ohjelman rakenne verkostona - vaikka ihmissuhteiden verkostona. Huono ohjelma on sellainen, jossa voidaan lähteä jostain kohti verkkoa ja kulkea verkon linkkejä pitkin mihin halutaan. Mikäli jostain ohjelman osasta voidaan saavuttaa tarpeetonta tietoa jonkin toisen osan toiminnasta, ovat nämä kaksi osaa kytkettyjä toisiinsa. Ja kun yksi osa muuttuu, niin joudutaan toistakin muuttamaan. Kun kyseessä ovat verkostot, jossa jokaisen linkin takana on useita uusia, johtaa tämä suunnitteluvirhe työmäärän eksponentiaaliseen räjähtämiseen ja käytännössä siihen, että osa työstä unohtuu ja jää tekemättä eli ohjelmaan tulee virheitä - mikä taas aiheuttaa hankaluuksia. Hyvä ohjelma onkin kuin kartano, joka on täynnä lukittuja huoneita. Huoneesta toiseen näkee pelkästään avaimenreiän kautta. Ja voit kuvitella, että avaimenreiästä ei enää näe toisen huoneen avaimenreikää ja sitä kautta kolmatta huonetta. Siis jos sinun makuuhuoneesi ja uima-altaan välissä on pukuhuone, et koskaan saa tietää mikäli uima-allas jäädytetään ja siihen rakennetaan iglu. Uima-altaan rakenteesta kertova tieto on paikallista, eikä kuulu sinulle, koska et asu siinä. Jos siis hyvää ohjelmaa ajatellaan verkkona, ovat sen linkit kapenevia - niitä ei pysty seuraamaan kuin korkeintaan parin eri ohjelman osan läpi. Koitan havainnollistaa tätä toteamusta pienellä esimerkillä, joka ei onneksi liity millään tavalla igluihin. Siinä on eri funktioita, jotka muodostavat kutsuketjun ja joissa aina seuraava kutsuja saa kapeamman näkymän tietoalkioon - toisinsanoen jokainen saa sellaisen liittymän tietoon, joka on juuri ja juuri riittävä. > #include<iostream> using std::cout; using std::endl; void j(const int luku) { // luku++; // tämä olisi laiton, koska luku on vakio tälle metodille (const-parametri) cout << "j() vain tulostaa luvun: " << luku << endl; } void i(int luku) { luku++; // luvun paikallinen kopio on 5 cout << "i(): luku: " << luku << endl; j(luku); } void h(int* luku) { (*luku)++; // muutan alkuperäistä lukua, tarvitsen siihen osoittimen i(*luku); // *luku on 4 } void g(int** luku) { (*luku)++; // siirrän osoitinta, joten tarvitsen osoittimen osoittimeen h(*luku); // **luku on nyt 3 } int main() { int taulu[] = {1, 2, 3}; int* luku = taulu + 1; // osoittaa lukuun 2 cout << "*luku " << *luku << endl; // pitäisi olla 2 g(&luku); cout << "*luku " << *luku << endl; // pitäisi olla 4 return EXIT_SUCCESS; } Huomaa kuinka ketjun ensimmäinen metodi saa kaksoisosoittimen, jonka avulla se voi muuttaa main():ssa olevaa osoitinta. Seuraava saa osoittimen, jolla se voi muuttaa alkuperäistä lukua, seuraava pelkän kopion arvosta jota se voi kasvattaa (mutta se ei vaikuta alkuperäiseen) ja viimeinen pelkästään arvon, jota se ei voi kasvattaa edes paikallisesti. Yksikään metodi ei voisi tehdä enempää kuin nyt tekee. Jokainen metodi siis katsoo aina vaan pienemmästä avainmenreiästä alkuperäistä tietoa eli main()-metodin luku-osoitinta. # Oliosuunnittelun pyhä kolminaisuus Oliosuunnittelu on käsitteenä suuri mutta venyvä kuin ohjuskauppiaan omatunto. Nyt kuitenkin ajan mutkat suoriksi ja vedän kulmat pyöreiksi ja yritän summata koko kupletti juonen niin tiiviiksi paketiksi, että se mahtuisi vaikka tekstiviestiin. Opeta itsellesi oliosuunnittelu viidessätoista minuutissa, ole hyvä! Asian voi parhaiten aukaista pohdiskelemalla käytännön esimerkkiä ja siihen liittyviä ongelmia. Kuvitelkaamme ampumasimulaattori, jossa on kaksi maalityyppiä, ihminen ja nukke, luokat Human ja Dummy. Molempiin voi ampua, mutta Dummyn voi nostaa ylös osuman jälkeen. Molemmat luokat käyttävät samanlaista osumametodia ohjelman ensimmäisessä versiossa. Ohjelmakoodina asia voitaisiin esittää näin: > class Human { public: void hit(int precision); }; class Dummy { public: void hit(int precision); void liftUp(); }; Mutta hyi hyi! Kyseessähän on selvä ohjelmakoodin kopiointi, täysin samanlainen hit(int)-metodi on koodattu kahteen kertaan. Otetaanpa uudelleen, käyttäen periytymistä avuksi: > class Human { public: void hit(int precision); }; class Dummy : public Human { public: void liftUp(); }; Silmää jää hieman kirvelemään nuken periyttäminen ihmisestä, koska nukkehan ei liene ihminen. No, se lienee vain allerginen reaktio, ei sen kummempaa. Yksi todellinen käytännön ongelma koodissa kuitenkin on: kapselointi ei ole täysin kunnossa. Simulaattorin ensimmäisessä versiossa ei ole osumakohtien mallinnusta, mutta sellainen tulee jo seuraavaan versioon. Pohdiskelemalla tätä tulevaisuuden visiota näemme, kuinka kapselointi ei todellakaan ole kohdallaan: pahvisella nukella ei ole osumakohtia, mutta ihmisellä on ja metodia joudutaan muuttamaan, jolloin muutos virheellisesti heijastuu myös nukkeen. Ajatus periyttää ihminen nukesta olikin käytännössä mätä - tarkka silmä ja delikantti vainu ei koskaan erehdy! Voi itkujen itku ja surkeuksien kurjuus, joudumme ilmeisesti tässä tilanteessa valitsemaan pienemmän kahdesta pahasta. Periytyminen ei vie puusta pitkään, pyörittelipä sitä miten vaan. Nuken periyttäminen ihmisestä ei ainakaan paranna tilannetta. Ihmisolion voisi myös laittaa osaksi nukkeoliota, jolloin nukke voisi delegoida osumien käsittelyn ihmiselle ja ohjelman jatkokehityksessä viritelmä voitaisiin purkaa. Mutta silloinhan jos kentällä olisi enää yksi nukke, laskisi simulaattori siellä olevan myös ihmisen ja se johtaisi määrittelemättömiin ongelmiin. Tämäkin ajatus oli surkea viritelmä jo syntyessään. Lienee parasta tyytyä ensimmäisenä esitettyyn, pieni koodin kopioiminen ei haittaa, kun asia tullaan kakkosversioon kuitenkin muuttamaan. Ratkaisu ei kuitenkaan ole tyydyttävä. Kokemuksestani voin antaa vinkin: jos joku ratkaisu jää hieman kaivelemaan sinua, on se ollut väärä. Toki toisaalta pitäähän ohjelman valmistua ja jotkut ongelmat eivät vaan ratkea. Mutta se johtuu hyvin usein siitä, että olet etsinyt ratkaisua väärältä tasolta. Muista! Kolme tärkeintä oliosuunnittelun menetelmää ovat abstraktio, abstraktio ja abstraktio. Näin on joku alan guru joskus todennyt. Mikä tahansa noista kolmesta ratkaisee tämänkin ongelman. Voimme luoda abstraktion, yläluokan Target, jossa hit()-metodi on. Siis kun asiaa oikein miettii, niin ihmiset ja nukethan ovat maaleja. Maali on abstrakti käsite, joka yhdistää molempia. Kun kapseloinnin ja uudelleenkäytön ristitulessa yrittää sommitella palasi kohdalleen, on abstraktio juuri se temppu jolla ne loksahtavat. Muuten saa jatkaa venkuilua vaikka maailmanloppuun asti, siltikään ei päädy kuin välttävään ratkaisuun. Ongelma on ratkaistu, opetus opittu, tässä on koodi: > class Target { protected: Target(); // suojattu muodostin public: virtual void hit(int precision); }; class Human : public Target { }; class Dummy : public Target { public: void liftUp(); }; Kakkosversio ei synny ongelma, Human vain esittelee oman osumametodinsa joka korvaa Target-luokan metodin - ja ehkä jopa käyttää sitä hyväkseen, mikäli uudessa osumankäsittelyssä tarvitaan vanhankin toiminnallisuutta. Käsitteellisellä tasolla luokkahierarkia on myös selkeä eikä mikään jää häiritsemään kokonaisuutta. Kun kapselointi ja uudelleenkäyttö riitelee, niin abstraktio palaset kohdalleen siirtelee. Siinä oliosuunnitteluun mielestäni tärkein idea, pyhä kolminaisuus. Muodostinfunktio on määritelty suojatuksi, jotta Target-olioita ei voida luoda. Target on abstrakti käsite, mutta koska luokassa ei ole yhtään puhdasta virtuaalifunktioita, voitaisiin sellainen luoda - ellei muodostinta olisi suojattu. Lapsiluokat korvaavat suojatun muodostimen oletuksena julkisella muodostimella ja niinpä lapsiluokkaan voi luoda normaalisti olioita. Suojaus ei ole täydellinen, koska uusi olio voidaan luoda myös kopiomuodostimella tai sijoitusoperaattorilla. Ne olisi pitänyt suojata myöskin, mutta esimerkin selkeyden vuoksi jätettiin väliin. Näin muuten ohimennen, esimerkki ei ollut täysin tuulesta temmattu. On aika ironista (tai lähinnä valitettavaa), että usea hyvä ohjelmistosuunnitteluun liittyvä keksintö on syntynyt sotateollisuuden tarpeisiin. Nykyajan pommit vaativat järjestelmän rakenteelta enemmän kuin tavalliset mikronkäyttäjät ja rahaahan sillä alalla on aina piisannut. Siviilisuunnittelijan kannattaakin ottaa oppia armeijan järjestelmistä - olisihan sääli jos kaikille niille hyville ideoille ei olisi mitään hyötykäyttöä. # Oliomallinnuksen heikkoudet Kuten varmasti huomaat, on tämän kappaleen sävy erilainen kuin aikaisemmissa. En lauo suuria totuuksia ja höystä niitä jalkaproteesivitseillä, vaan päivittelen vaan että näin ne asiat ovat eivätkä siitä paljon paremmaksi muutu. Se johtuu yksinkertaisesti siitä, että olemme jättäneet perusasiat taaksemme ja purjehdimme aika tuntemattomilla vesillä. Tuntemattomilla vesillä purjehtiessa saattaa nähdä peräti hämmentäviä näkyjä. Jopa sellaisia, joissa epäillään että onko oliomallinnus sittenkään vastaus kaikkeen. Ja kyseessä ei ole pelkkä harhanäky ja illuusio, vaan tosiasia joka jokaiselle ohjelmistosuunnittelijalle on uurtunut selkärankaan: oliomallinnus ei tosiaankaan ole ratkaisu kaikkeen. Millaiset ongelmat ovat erityisen hankalia oliomallinnuksen kannalta? Kokemuksesta voin luetella: ohjelman lokikirjanpito, käyttäjien oikeuksien valvonta, ohjelman osien asetusten hallinta, transaktiot jne... Mikä esimerkiksi lokista tekee niin hankalan? Se, että se koskettaa koko ohjelmaa. Tarpeeksi pitkälle mentäessä joka ikisen luokan tulee pystyä kirjaamaan toimenpiteitään ylös yhteiseen lokiin. Ja siitähän syntyy ongelmia - kuvittele vaikka miten vaikea on muuttaa lokijärjestelmää, kun se koskettaa koko ohjelmaa. Mitään erityisen hyvää ratkaisu ongelmaan ei ole, lokin on pakko liittyä koko ohjelmaan - rajaamalla lokikirjanpito vain pieneen alijärjestelmään ei saada tietoa koko järjestelmän käyttäytymisestä ja lokista tulee lähes hyödytön. Sama koskee käyttäjien oikeuksia ja asetusten hallintaa: ohjelmassa voidaan tehdä hyvin monenlaisia operaatioita hyvin monissa eri ohjelman kohdissa, ja jokaisen yhteydessä tulee tarkistaa onko käyttäjällä oikeuksia toimenpiteeseen - samoin asetuksia (tiedostojen nimet, verkko-osoitteet, tietokantojen asetukset...) tarvitaan joka puolella ohjelmaa. Havaitsemme, että nämä murheenkryynit leikkaavat poikittain ohjelmaa, ne siis eivät ole pilkottavissa oliohierarkioiksi samalla tavalla kuin muut ohjelman ominaisuudet ovat. Niitä voisi kuvata aspekteiksi, ohjelman toimintaa kuvaaviksi asioiksi joita ei voi paikallistaa mihinkään tiettyyn luokkaan tai luokkakokoelmaan. Jotta tätä ongelmaa pohtiessa voi saavuttaa valaistumisen, on hyvä tuntea hyperavaruusmalli. Se on IBM:n <NAME>.tutkimuskeskuksesta peräisin oleva malli, jossa ohjelman vaatimukset ajatellaan hyperavaruudeksi, moniulotteiseksi tilaksi. Ohjelman suunnittelu on tuon vaatimusavaruuden jäsentämistä, lokerointia. Jotta avarruutta voi kunnollisesti jäentää, tulee ohjelmointityökalun mahdollistaa ohjelman rakentaminen monessa eri ulottuvuudessa, siis monien eri näkökulmien avulla. Puhutaan moniulotteisesta vaatimusten jäsentämisestä (multidimensional separation of concerns). Oliomaailmassa moniulotteinen jäsentäminen ei ole mahdollista. Tämän vuoksi ne asiat, jotka ovat hyperavaruudessa samalla tasolla oliomallin kanssa jäsentyvät helposti, mutta oliomallin kanssa eri ulottuvuudessa olevat asiat eivät. Tätä kutsututaan hallitsevan mallin tyranniaksi (tyranny of dominant decomposition). Kyse ei ole pelkästään oliomallia vaivaavasta ongelmasta, vaan minkä tahansa ohjelmointimallin valitseminen johtaa joidenkin ohjelman kannalta ehkä oleellistenkin ulottuvuuksien laiminlyöntiin. Mutta toisaalta, jokin tapa jäsentää on parempi kuin ei jäsentämistä ollenkaan. Niinpä oliomalli on varsin hyvä ratkaisu monissa tilanteissa - ja tulee myös muistaa, että uudet ulottuvuudet tekevät ohjelmasta hankalamman hahmottaa. Merkittävin hallitsevan mallin tyranniasta johtuva ongelma oliomaailmassa ovat aspektit. Erityisen yleisiä aspektimaiset ominaisuudet ovat suurissa monen käyttäjän palvelinohjelmistoissa, kuten verkkokaupoissa ja intranet-sovelluksissa. Mitä enemmän voidaan olettaa tiettyjä vakioita (sama ympäristö, sama käyttäjä, vain yksi yhtäaikainen käyttäjä), sitä vähemmän ulottuvuuksia ohjelman vaatimuksissa on. Siis konkreettisesti, tavallisen Windows-sovelluksen suunnittelu on siksi helppoa, että liikkuvia osia on vähän. Ehkäpä juuri sen takia tasapäistävä Windows onkin menestynyt niin hyvin. Verkkomaailma, jossa hyvin harvojen asioiden voidaan olettaa pysyvän vakioina, on haastavampi mallinnettava. Eikä pelkästään siksi, että se on uusi asia, vaan juuri teoreettisen pohjan vuoksi. Verkkosovellusten vaatimuksissa on enemmän ulottuvuuksia, joten niiden hallitsemiseen tarvitaan moniulotteisempaa mallinnusta. Verkkoympäristöjen monitahoisuus ei ole jäänyt huomaamatta ohjelmistoteollisuudelta. Vaikka harva tuntee hyperavaruusmallia, niin silti mallin hengessä olevia teknologioita on syntynyt jo useita. Merkittävin kehityslinja ovat komponenttiteknologiat (CORBA, EJB, COM+), joissa yksi avainsana ovat nk. komponentin deklaratiiviset ominaisuudet. Komponentti on oliota tiiviimmin paketoitu ohjelman osa. Komponenttiin liittyy määrittelytiedosto, jolla se säädetään toimimaan siinä ympäristössä missä sitä milloinkin käytetään. Määrittelytiedostoissa määritellään deklaratiivisia ominaisuuksia, kuten se, että miten komponentti osallistuu transaktioihin - eli jos joku menee pieleen, niin miten järjestelmä peruu keskeneräisen toimenpiteen. Siis osa ohjelman älystä on siirretty määrittelytiedostoihin. Määriteltävät asiat ovat hyvin aspektimaisia - kuten esimerkiksi transaktiot. Ne koskevat koko järjestelmää. Mielestäni merkittävin komponenttiteknologioiden tarjoama etu on vaatimuksen moniulotteinen jäsentäminen, eli aspektien parempi kapselointi. Myös puhtaasti aspekti- ja hyperavaruusajattelun pohjalta on syntynyt konkreettisia teknologisia ratkaisuja. Aspektiohjelmointi on eräs tutkimussuunta, joka on tuottanut AspectJ-ohjelmointikielen (Javaan perustuva). AspectJ:n avulla tehdään jo jonkinverran oikeitakin ohjelmia ja myös C-versio on kehitteillä. Hyperavaruusmallia, joka on aspektiajattelua laajempi malli, voi kokeilla Hyper/J-ohjelman avulla. Hyper/J tukee hyperavaruuksia Java-ohjelmoinnisssa. Totuus kuitenkin on, että mihinkään todella vakavaan työhön ei näistä tutkimusprojektien tuotoksista vielä ole. Sen sijaan komponenttiteknologiat ovat jo ihan arkipäivää. Date: 1998-01-01 Categories: Tags: Numeerinen matematiikka on se osa-alue, jossa ei pyöritellä kaavoja ja symboleja, vaan lasketaan raakasti luvuilla. Eli juuri se alue, jossa tietokone on hakannut ihmisen mennen tullen keksimisestään lähtien. Koska C/C++:n ominaisuudet numeerisen matematiikan käsittelyyn eivät ole aivan huippua, toisin kuin esimerkiksi sellaisessa kielessä kuin Fortran, ajattelin teidän opetuslapsien tarvitsevan jonkinlaista avustusta tässä asiassa - vaikka tarkasti ottaen eihän tämä enää C++-kieleen liitykään. Näitä numeerisen matematiikan labyrinttejä harhaillessa lyhtynäni on heilunut alan suuri opus; Numerical Recipes in C, Second Edition [Press, Teukolsky, Vetterling, Flannery]. Se on suositeltava hankinta jokaiselle numeroita pyörittelevälle C++-ohjelmoijalle, tosin vaikean sisältönsä vuoksi ei mikään ensimmäinen hankinta aloittelijalle. # Sattuu ja tapahtuu - satunnaislukugeneraattorit Kuten lupasin, nyt pureudumme syvemmälle satunnaisuuden olemukseen. Käytännönläheisempi tarinointi löytyy Standardikirjastot-osiosta. Aluksi meidän pitää pohtia satunnaisuuden todellista luonnetta - emmehän voi tyytä mihinkään sattumanvaraisiin satunnaisuuden määritelmiin. Tietokoneen toiminta ei ole satunnaista - se kaikki irrationaalinen Windowsin kaatuilu ei oikeasti ole satunnaista, vaan pelkästään vaikuttaa siltä. Tietokoneeseen voi kytkeä kuitenkin kaikenlaisia analogisia vatkaimia, joiden avulla yhteys todelliseen ja (mahdollisesti) satunnaiseen maailmaan on mahdollinen. Kovin paljon tätä mahdollisuutta kytkeä ulkoisia satunnaislähteitä ei ole hyödynnetty - ymmärrettävästi, onhan se sen verran työlästä. Joidenkin salausprojektien yhteydessä, kun on tarvittu aivan äärimmäistä satunnaisuutta, on käytetty hyvin omaperäistä ja jopa hippiaikoja sivuavaa järjestelmää. Kaiken ytimenä on toiminut laavalamppu, tuo yltäkylläisesti hinnoiteltu sisustuselementti. Lamppu koostuu valaistusta säiliöstä, jossa kiinteämpää ainetta olevat möykyt vellovat ja muuttavat muotoaan. Liikkeet ovat hyvin satunnaisia. Sitten tarvitsemme vain digitaalikameran, joka kuvaa laavan liikkeitä. Nyt meillä on digitaalista tietoa analogisesta ja satunnaisesta tapahtumasta. Sitä käsittelemällä voimme luoda todella satunnaisen satunnaislukugeneraattorin. Tiettävästi lamppuja oli vielä useita ja niiden tuottamaa satunnaisdataa yhdistettiin. Mikäli tällainen askartelu ei kiinnosta, pitää tyytyä tietokoneen näennäiseen satunnaisuuteen (pseudo random). Ensimmäinen esimerkki pseudosatunnaislukugeneraattorista on kääntäjän mukana seuraava rand(). Lähes kaikissa kääntäjissä käytetään yksinkertaista lineaarisen yhtenevyyden generaattoria (onko suom. oikein? suom. huom.) (linear congruential generator). Kun edellinen luotu luku on I, saadaan seuraava luku X kaavasta: X=(aI + c) mod m a, c ja m ovat huolella valittuja vakioita. Siis edellinen luku kerrotaan a:lla, lisätään siihen c ja otetaan jakojäännös osamäärästä luvun m kanssa. Kaava on hyvin yksinkertainen ja tietokone suorittaa satunnaislukujen luonnin nopeasti ja tuottaa säädyllisen satunnaisia lukuja, mutta systeemi on silti ihan syvältä vaativammissa tehtävissä. Jos siis tarvitsemme todellista satunnaisuutta, kuten asianlaita on mm. simuloidussa jäähdytyksessä (simulated annealing), pitää rand() jättää väliin. Sen pahin teoreettinen puute on satunnaislukujen jaksollisuus. Käytännössä suurin vika on pieni m:n arvo. Millaista sitten on hyvä satunnaisuus? Satunnaislukugeneraattorien tuottamien lukujen tulisi pidemmän päälle noudattaa tasajakaumaa (uniform deviation). Kun siis arvotaan monta lukua, pitäisi jokaista lukua tulla lähes yhtä paljon. Myös muunlaisia jakaumia voi käyttää, normaalijakauma tärkeimpänä. Normaalijakauma noudattaa Gaussin käyrää, siis suurin osa arvoista on keskittyneenä keskivaiheille ja aivan äärilaidoissa arvoja on vähän. Normaalijakaumaa noudattelee moni luontoon ja todellisuuteen liittyvä asia, kuten ihmisten pituus. Se onkin sopiva väline simuloidessa vaikka sääolosuhteita lentopelissä - yleensä on normaalisää, mutta myrskytkään eivät ole täysi mahdottomuus. Kaiken pohjana yleensä kuitenkin on tasajakauma, josta erilaisilla operaatioilla saadan erikoistuneempia satunnaislukujen jakaumia. Jaksollisuudestaan johtuen rand() voi sopivissa olosuhteissa tuottaa hyvin heikkoa jakaumaa - tietyt arvot ovat toisia yleisempiä. Tietyt olosuhteet ovat voimassa esimerkiksi silloin, kun satunnaisluvut jaetaan järjestelmällisesti joka kierroksella: huonolla tuurilla tietty jaksollisuus luvuissa voi moninkertaistua - näin on esimerkiksi koulutettaessa neuroverkkoja simulated annealing algoritmilla. Suurempi ongelma varsinkin arkiohjelmoijalle on kuitenkin m, kääntäjän vakio RAND_MAX. Generaattori palauttaa luvun väliltä 0 - RAND_MAX. 16-bittisten aikojen perintönä RAND_MAX hyvin yleisesti on 2^15=32767. Se ei itseasiassa ole paljon. Mikäli mielii saada suurempia satunnaislukuja, joutuu monta generoitua satunnaislukua yhdistämään ja siinä touhussa saa olla tarkka, ettei hävitä sitä satunnaisuutta mitä generaattorista saa. Otin sitten ja tein pienen ohjelman satunnaislukugeneraattorien testaamiseen. Se tuottaa lukuja kääntäjän mukana tulleella generaattorilla ja toisella, Minimal Standard -algoritmiin perustuvalla generaattorilla. Tulokset kirjataan tiedostoon, josta sitten syötin ne Excelille ja piirtelin jakaumat. Kyseessä tulisi olla tasajakauma, siis viivan pitäisi olla mahdollisimman suora ja tasainen. Kuten huomaat, ran0 (Minimal Standard) tuottaa ihan hivenen tasaisempaa jälkeä. Kun lukuja arvottiin 2 300 000 kappaletta väliltä 0 - 230, jokaisen luvun tulisi siis toistua keskimäärin 10 000 kertaa, olivat poikkeamien keskiarvot: rand: 82,7 ja ran0: 78,4. Siis ran0 oli hivenen parempi. Tosin voi spekuloida, olisiko ero tullut selvemmäksi mikäli suorituskertojen määrää olisi vielä lisätty. Mikäli vaikka haluat kokeilla sitä tai muuten vaan tutustua testikalustoon, on käyttämäni ohjelman listaus saatavilla - samoin kuin aiheesta tuherrettu Excel-taulukko. Ohjelma kertoo myös RAND_MAX:in arvon. [rands.cpp - rands.xls] Pitää kuitenkin muistaa, että on epätodennäköistä, että "täydellinen" satunnaislukugeneraattori tuottaa täysin tasaista jälkeä rajallisella otosten määrällä. Siksi jakaumien tarkastelu ei ole paras tai edes mitenkään erityisen hyvä tapa tarkastella generaattorien paremmuutta - toki sillä löytää pahat mokat mikäli esimerkiksi joutuu itse kehittelemään oman generaattorinsa johonkin erityistarkoitukseen. <NAME> niminen satunnaisuusmies on kehittänyt joukon testejä, joilla erotetaan jyvät apinoista (puhumme siis yhä erilaisista satunnaislukugeneraattoista). Tasajakauman lisäksi niihin kuuluu parien, kolmikoiden jne... esiintymisten tasaisuus, pitkien jonojen esiintymättömyys rajatuissa otoksissa ja monia muita menetelmiä. Lisää aiheesta voi lukea vaikka kirjasta Satunnaisuuden viidakot [Terra Cognita 1998: Peterson, suom. Pietiläinen]. # Hyvän koodin kirjoitus Tämä on tärkeää! Ellet halua, että koodisi on lukukelvotonta spagettia, ota tästä parit neuvot onkeesi. Toki koodin kirjoitustapoja on yhtä paljon kuin ohjelmoijiakin, joten nämä pohdiskelut ovat hieman yksilöllisiä asioita. Itse kirjoitin melko vakiintuneella tavalla koodia parin vuoden ajan, kunnes lopulta taivuin enemmistön tahtoon ja muutin hieman kirjoitustyyliäni (kuvitelkaapa senaikaisia ohjelmiani; puolet kirjoitettu vanhaan tyyliin ja puolet uuteen...). Esittelen nyt käyttämäni tyylin tässä. Se on ehkä kaikista standardein tapa, mutta ei suinkaan mitenkään parempi kuin muut. Parasta tapaa ei ole. Kannattaa käyttää sellaista tapaa mikä tuntuu itselle mukavimmalta. Tietenkin omaksumalla melko yleisen tyyliin pääsee ehkä vähän helpommalla. Tärkeintä on kuitenkin noudattaa tyyliään orjallisesti joka paikassa. C++:ssa on mahdollista laittaa koodin sekaan ns. näkymättömiä merkkejä, joita ovat välilyönnit, tabuloinnit ja rivinvaihdot. Eli lause: > if (a < b); voidaan myös esittää: > if ( a < b ) ; ..jos välttämättä halutaan. Tätä ominaisuutta voidaan hyötykäyttää näin: Huono pätkä: > if(a<b&&b==10||b+k==0){a = 10;cout<<"Terve";} Sama pätkä paremmassa muodossa: > if (a < b && b == 10 || b+k == 0) { a = 10; cout << "Terve"; } Näin. Kumpi on selvempi? Välilyöntiä kannattaa käyttää ahkerasti. if:ssä jätin b+k:n yhteen, koska minusta se on selvempi niin. Lohkot on tapana sisentää näin: > if (a == 10) { a = 5; b = 8; } Tai näin: > if (a == 10) { a = 5; b = 8; } Lis�ksi yleens� on tapana kirjoittaa ensimm�inen aaltosulku samalle riville: > if (a == 10) { a = 5; b = 8; } Tuo lieneekin nyky��n yleisin tapa kirjoittaa lohkoja. Muuttujille kannattaa antaa selvät nimet, ab-tyylisiä muuttujia kannattaa välttää. Laskurimuuttujina ne kyllä kelpaavat, mutta pidemmät nimet ovat silti pitkän päälle parempia: ne eivät vie enempää muistia tai ole hitaampia, niitä on vaan hitaampi kirjoittaa. Mutta on aika tylsää selailla koodia läpi ja selvittää, että mitäs siinä xp-nimisessä muuttujassa taas olikaan. Muuttujien ja funktioiden nimissä kirjoitan eri osat isolla kirjaimella, siis vaikka muuttujat keskiArvo ja poistoputkenValisuodattimenKriittinenLampotila ja funktiot Liiku() ja AmmuAleksi(). Kuten huomaat, funktiot aloitan isolla kun taas muuttujat pienellä. Näin ne ainakin erottaa nopeasti. Luokan nimen kirjoitan isolla, mutta luokkaan kuuluvan olion pienellä - sehän on periaatteessa vain muuttuja. Miksi luokat isolla? Luokan muodostinfunktio on funktio, joten se isolla. Luokalla on sama nimi kuin muodostinfunktiolla, joten senkin pitää alkaa isolla. Muutamat wanhat parrat käyttävät muuttujien nimessä unkarilaista notaatiota. Se tarkoittaa, että muuttujien alkuun laitetaan yksi merkki kertomaan muuttujan tyypistä. iNopeus tarkoittaisi int-muuttujaa, jossa pidetään nopeutta. Unkarilainen notaatio auttaa muistamaan muuttujan tyypin ja olemaan käyttämättä sitä väärin. C++ hoitaa kuitenkin muuttujien tyyppitarkastuksen niin hyvin, että unkarilaisen notaation käyttö on melko turhaa C++-ohjelmissa. Poikkeuksena kuitenkin on melko yleinen tapa laittaa osoitinmuuttujien eteen pieni p (pointer) ja viittauksien eteen pieni r (reference). Tässä oli melko löyhä esitys siistin koodin kirjoituksesta. Jos kaipaat tarkkaa ja mahdottoman laajaa ehdotelmaa C++-standardista, siis siitä miten vaikka firman sisällä pitäisi kaikkien kirjoittaa ohjelmansa, jotta muut niitä ymmärtäisivät, niin katso ihan asiallisen oloinen selostus osoitteesta: http://www.possibility.com/Cpp/CppCodingStandard.html En voi olla vielä painottamatta sitä, että siisti merkintätapa on vasta ensimmäinen askel hyvään ohjelmointiin. Ohjelman todellinen selkeys ei tule kivasti laitetuista sulkumerkeistä, vaan hyvin tehdystä, selkeästä ja yksinkertaisesta luokkarakenteesta. Mutta merkitseminen on myös tärkeää, ja kokeneilla ohjelmoijilla se on jo niin verissä, että ohjelmakoodi ei tunnu kotoisalta ennen kuin siinä on merkinnät kohdallaan. # Muistialueet Tietokoneessa on muistia, johon se säilöö tietoa. Siinä perusteet. Sitten vähän syvällisempää tietoa. Muisti voidaan jakaa eri alueisiin. C++-kielen kannalta alueet ovat seuraavat: Ensiksi mainittakoon pino (stack). Se on muistialue, joka toimii LIFO-periaatteella, Last In First Out. Siis mitä sinne on viimeksi laittanut, sen sieltä myös saakin. Tieto kasataan pinoon kuin lautaset kasaan. Pinoa käytetään paikallisten muuttujien ja funktion parametrien säilyttämiseen ja sen koko on rajattu - ympäristöstä, kääntäjästä ja sen asetuksista riippuen. Globaali muistialue pitää sisällään kaikki globaalit muuttujat ja koodialue itse ohjelmakoodin. Prosessorin sisällä olevat rekisterit (register), joita on muutama, mutta jotka ovat myös ihan käsittämättömän nopeita, voidaan laskea tavallaan myös muistiksi. Niiden käyttö riippuu prosessorista ja kääntäjästä, yleensä niitä käytetään pinon kaverina pienen ja väliaikaisen tiedon säilyttämiseen. Kaikki loppu onkin sitten villiä ja vapaata muistia. Vapaan muistin alueelta voi ohjelma varata muistia käyttöönsä. Vapaata muistia käytetään sen osoitteiden avulla - siis osoitinmuuttujien avulla. # C++:n varatut sanat Varatut sanat vaihtelevat hieman kääntäjittäin, mutta melko yleispätevä lista on tässä: > auto break case catch char class const continue default delete do double else enum extern float for friend goto if inline int long mutable new operator private protected public register return short signed sizeof static struct switch template this throw typedef union unsigned virtual void volatile while Monissa kääntäjissä on käytössä myös mm. nämä varatut sanat: > asm far huge interrupt near # volatile ja register Muistia on montaa plaatua ja eri nopeutta - ja ehdottomasti nopeimpia ovat prosessorin sisäiset rekisterit. Niitä ei ole paljon, joten muuttujien jaottelu rekisterien ja itse keskusmuistin välillä on hankala homma, joka yleensä kannattaa jättää kääntäjän tehtäväksi. Jotain vaikutusta voi ohjelmoijalla näissä henkimaailman asioissa kuitenkin olla. Kun kääntäjä saa sijoittaa haluamiaan muuttujia rekistereihin, nopeuttaa se ohjelmaa joskus huomattavastikin. Joskus kuitenkin tämmöinen temppuilu voi aiheuttaa ongelmia. Tällainen esimerkki ovat keskeytykset. Keskeytyksiä löytyy lähinnä DOS-ympäristöstä. Ne ovat ohjelmanpätkiä, jotka jonkun tietyn tapahtuman laukaisemana (esim. näppäimen painallus) keskeyttävät itse ohjelman ja tekevät jotakin. Kun kääntäjä on siirtänyt jonkun muuttujan rekisteriin ja kesken kaiken hyppää arvaamatta keskeytys, joka käsittelee muuttujaa - siis sen muistissa olevaa versiota - on tuloksena hyvin epämiellyttävä sekasotku. Mutta onneksi on volatile: varattu sana, joka voidaan kirjoittaa muuttujamäärittelyn eteen ja joka kertoo kääntäjälle, että kyseistä muuttujaa voi joku taustaohjelmista yllättäen muuttaa. Kääntäjä antaa muuttujan olla koko ajan muistissa eikä yritäkään nopeuttaa sen käyttöä rekisterikikoilla. register tekee sitten mitä lupaakin: käskee kääntäjän sijoittaa muuttuja rekistereihin, mikäli vaan mahdollista. Joskus tämä voi johtaa nopeampaan ohjelmaan. Nyrkkisääntö on kuitenkin: älä käytä registeria. Se yleensä vaan sotkee kääntäjän optimointipasmat - nykyajan kääntäjät kuitenkin tekevät hommansa vähintääkin vuosien taidolla ja kokemuksella. # Komentoriviparametrit > #include <iostream.h> int main(int argc, char* argv[]) { cout << "Parametreja annettiin " << argc << " kipaletta." << endl; for (int i=0; i< argc; i++) cout << i << ". parametri on " << argv[i] << endl; return EXIT_SUCCESS; } Esimerkki oli kopioitu melkein suoraan Libertyn kirjasta. Se vaan iskee selkeydellään kuin miljoona volttia, joten turha sitä on mitenkään sotkea. Juttuhan on siis komentoriviparametrit, se litania mitä käynnistettävän ohjelman perään monissa käyttöjärjestelmissä voi kirjoittaa. Niihin pureudutaan kiinni kahdella muuttujalla, arcg ja argv, jotka main(..) saa osakseen. argc tulee sanoista argument count ja argv on argument vector. Nimet voivat olla mitä vaan, mutta nämä kaksi kaverusta ovat vakiinnuttaneet itsensä jo standardiksi. argc kertoo paljonko parametrejä on - itse ohjelman nimi mukaanlukien. Siis argc on aina ainakin yksi. argv on taas taulukollinen osoittimia parametrimerkkijonojen alkuun (siis määrittelyn char* argv[] sijasta kävisi myös char** argv tai char argv[][]). argv[0] osoittaa ensimmäisen merkkijonoon, joka on ohjelman nimi. argv[1] on sitten ensimmäinen parametri, jos sellainen on, jne.. # Sanasto Slangisanat ja englanninkieliset termit voivat hämmentää aloittelijan, mutta ei hätää! Tähän niitä on kerätty ihan mukava lajitelma. Ja jos ei tästä listasta löydy, niin ei kun vaan sähköinen kirjekyyhky matkaan, niin pian löytyy. Osoite on siellä jossakin alkusivulla. Rajoituksena kuitenkin termin pitää kuulua ohjelmoinnin perustermeihin tai C++:n erikoistermeihin. Ihan joka ikistä jollain tavalla ohjelmointiin liittyvää termiä ei täällä ole: ovathan nämä C++-ohjelmoinnin sivut, eivät signaalinkäsittelyn tai 3D-ohjelmoinnin. Linkit heittävät siihen kohti opasta missä termi on tarkemmin selostettu, ne siis vastaavat kirjojen sisällysluetteloiden sivunumeroviitteitä. Rennot slangisanat on kursivoitu. +, -, *, %Kiinalaisen miehen repliikki, kun hän on vahingossa tökännyt syömäpuikon nenäänsä. No okei, katso "Matemaattinen operaattori"... Abstrakti luokka (kts. myös[ilman puhtaita virtuaalifunktioita])Luokka joka vastaa abstraktia käsitettä (esim. Lähde) ja johon ei voi luoda olioita. Toteutetaan puhtailla virtuaalifunktioilla, vastaava vaikutus saadaan ilman puhtaita virtuaalifunktioita aikaan suojaamalla muodostin, kopiomuodostin ja sijoitusoperaattori. AspektiOhjelman ominaisuus, jota ei voi rajata tiettyyn osaan ohjelmaa. Hankala mallintaa oliokielen avulla. Assembler, Assembly, AssySymbolinen konekieli. Hyvin koneläheinen ohjelmointikieli, jossa konekielikäskyt on korvattu helpommin muistettavilla lyhennyksillä, kuten MOV (move, siirrä). Assemblylla voidaan tehdä nopeaa koodia ja kieli on sinänsä on hyvin yksinkertainen, mutta prosessorit eivät ole kovin yksinkertaisia, joten Assemblylla koodaaminen on työlästä touhua. Assembly on kielen nimi, kun taas Assembler on Assembly-kielen kääntäjä. assertMakro, joka varmistaa muuttujien oikean arvon ohjelman kehitysversiossa. Kts. "makro" ja "esikääntäjä". atoiMuuntaa merkkijonon luvuksi. Kts. myös "stringstream". Avoin funktioFunktio, jonka sisällön kääntäjä asettaa jokaiseen kohtaan jossa sitä kutsutaan. Kasvattaa ohjelman kokoa, mutta on nopea. BASICMuinainen ja legendaarinen ohjelmointikieli, kehittyneemmät versiot vieläkin käytössä joissain paikoissa. BinäärilukuLuku, joka on esitetty ykkösinä ja nollina (001010), niinkuin tietokone lukuja käsittelee. Kaksikantainen luku. BittiBinääriluvun osa; arvo voi olla 1 tai 0. (mikron virtapiireissä virtaa tai ei virtaa) Bittien käsittelyBittien kanssa touhuilu onnistuu hyvinkin C++:lla, koska siinä on säilytetty C:n laiteläheisyys. Kts. bittioperaattorit. Bittioperaattorit (|, &, ^, ~, !, <<, >>)Bittioperaattoreilla päästään käsiksi muuttujan bitteihin. breakHyppää pois toistorakenteesta. BugiVirhe ohjelmassa. charMuuttujatyyppi, merkki. cinTiedon lukemisen hoitava olio. classVarattu sana, jolla määritellaan luokka. Kts. myös "luokka" ja "olio". clrscr()Borlandin DOS-kääntäjien tukema funktio, jolla saa ruudun tyhjennettyä. CompilerKts. "Kääntäjä". ConstantKts. "Vakio". continueJättää toistorakenteen lopun suorittamatta. cosKts. "trigonometriset funktiot". coutTulostusta hoitava olio. DebugataEtsiä virheitä ohjelmasta, yleensä erillisellä hommaan tarkoitetulla ohjelmalla eli debuggerilla. DebuggerOhjelma, jolla voidaan tehtyä ohjelmaa ajaa askel askeleelta ja tutkia eri muuttujien arvoa. Hyvin kätevä etsittäessä virheitä. deleteVapauttaa osoittimen osoittaman muistialueen. Katso myös "delete []". delete []Vapauttaa taulukon, jonka ensimmäiseen alkioon osoitin osoittaa. do..whileSuorittaa silmukan kerran ja sen jälkeen niin kauan kun ehto on tosi. DokuDokumentti, ohjetiedosto. doubleMuuttujatyyppi, liukuluku. EditorHieman tekstinkäsittelyohjelmaa vastaava ohjelma, jolla ohjelma kirjoitetaan. EhtolauseKts. "if". elseJos if ei toteudu, niin else toteutuu. Kts. "if". EngineJotakin tiettyä tehtävää hoitava ohjelman osa; puhutaan esim. 3D-engineistä. enumKts. "lueteltu tyyppi". EsikääntäjäKäsittelee koodin ennen kääntäjää. Voidaan usein hyödyntää virheiden paikallistamiseen. EtuliiteoperaattoriMatemaattisista operaattoreista värkätty kätevä erikoisoperaattori tiettyihin tilanteisiin. Katso myös "Matemaattinen operaattori". externKertoo otsikkotiedostossa, että kyseinen muuttuja on määritelty muualla. File, FileeTiedosto. float (kts. myös)Muuttujatyyppi, liukuluku. forKätevä käsky toistorakenteiden tekoon Funktio, functionOhjelman osa, jota voidaan kutsua tietyillä lähtöarvoilla ja joka voi palauttaa arvon. Kts. "oletusparametri" ja "paluuarvo". Funktion uudelleenmäärittelyTehdään samannimisestä funktiosta monta eri versiota eri parametreilla ja paluuarvoilla. Globaali muuttuja, global variableJokaisesta ohjelman osasta käytettävissä oleva muuttuja. GrafiikkaC++:lla saa aikaan maatajärisyttäviä graafisia efektejä ja silmiä vinouttavia visuaalisia illuusioita. Tie grafiikkaguruksi on kuitenkin pitkä ja kivetty yhteensopimattomilla näytönohjaimilla. Hallitsevan mallin tyranniaKaikki ohjelmointiparadigmat (mallit) lähestyvät ongelmaa omasta näkökulmastaa, minkä vuoksi jotkut asiat on helpompi mallintaa kuin toiset. Hyvä ohjelmoijaHyvä ohjelmoija noudattaa hyvän ohjelmoinnin sääntöjä ja saa siitä palkinnoksi hyvän elämän. IDEIntegrated Development Environment, kehitysympäristö. Editori, debuggeri, kääntäjä, linkkeri ja muut vermeet yhdistettynä käteväksi graafiseksi kokonaisuudeksi. Monissa nykyajan kääntäjissä on hyvin kehittyneet ja mukavanoloiset IDE:t. ifSuorittaa seuraavan lauseen tai lohkon, jos ehto on tosi. Kts. myös "else". ifdef, ifndefEsikääntäjän käsky. Jättää/ottaa merkityn koodialueen mukaan, mikäli annettu sana on määritelty. includeEsikääntäjän käsky, joka käskee laittamaan annetun tiedoston sisällön siihen kohden ohjelmakoodia. inlineKatso "avoin funktio". intMuuttujatyyppi, kokonaisluku. itoaMuuntaa luvun merkkijonoksi. Kts. myös "stringstream". JäsenfunktioOlioon määritelty funktio. Käytetään myös nimitystä metodi. KaatuaOhjelman jumittuminen kesken toiminnan. Kapselointi (kts. myös)Suojataan tieto sitä käyttävien osien yhteyteen, niin ettei sitä voida sorkkia muualta. Onnistuu parhaiten ohjelmoidessa oliopohjaisesti. Kirjasto, libraryYhteen kerätty kasa ohjelmakoodia, joka voidaan ottaa omaan ohjelmaan mukaan. KomentoriviparametriParametri, joka ohjelmalle ajettaessa voidaan syöttää. KommentointiKun lisätään ihmisten kielellä olevia huomautuksia ohjelmakoodin sekaan. KoodiJoko ohjelman lähdekoodi eli kääntämätön muoto tai jo käännetty konekieli. Kääntäjä, compilerOhjelma, joka kääntää lähdekielisen tiedoston konekieleksi. LaavalamppuKeski-iän kriisiä potevan yritys palata villiin nuoruuteen. LajittelualgoritmiLaittaa tietoa nopeasti järjestykseen jonkun ehdon perusteella. Kts. "qsort". LaskutoimitusKatso "Matemaattinen operaattori". LausePuolipisteeseen päättyvä ohjelmakoodin pätkä. LausekeArvon palauttava ohjelmakoodin pätkä. LIFOLast In, First Out -periaate, käytetään yleensä tietorakenteista. Toimii kuin pino käytettyjä vauvanvaippoja: minkä olet päällimmäiseksi laittanut, se ensimmäisenä käteesi tarttuu (ihan kirjaimellisesti). Liittymä, interfaceLuokkaa ei voi käyttää miten haluaa, vaan sille pitää suunnitella huolella ja taiten hyvä liittymä, joka piilottaa sen toteutuksen likaiset yksityiskohdat. Linkkeri, linkerOhjelma, joka yhdistää aliohjelmakirjastot mukaan konekieliseen ohjelmaan. LohkoAaltosulkeiden väliin kirjoitettu ohjelman osa. Looginen operaattoriKäytetään ehtolauseissa vertailuoperaattoreiden yhdistelemiseen. LoopKts. "silmukka". Lueteltu tyyppiNumeromuuttuja, jonka arvoille voi antaa havainnollisempia nimiä. Lukujen merkitseminenKun koodin sekaan kirjoitetaan lukuarvoja, tulee huomioida lukujen merkitsemiseen liittyvät säännöt ja vipstaakkelit. LuokkaOliot kuuluvat johonkin luokkaan, jotka määrittelevät olioiden ominaisuudet. Kts. myös "Periytyminen". main(void)Funktio, jota kutsutaan ohjelman alussa. Voi olla paluuarvoltaan void tai int, hyvä tapa olisi määritellä paluuarvoksi int ja palauttaa vakio EXIT_SUCCESS mikäli ohjelman suorituksessa ei tullut mitään häikkää. MakroEsikääntäjän "funktio", siis esikääntäjä korvaa tietyn sanan lyhyellä koodinpätkällä. Malli, templateOminaisuus, jonka avulla C++-kääntäjä luo automaattisesti tyyppikohtaiset versiot mallitetusta koodista. C++:n käännöksenaikaista polymorfismia. Käytetään C++:n standardinmukaisessa STL-kirjastossa. Kts. myös "polymorfismi". Matemaattinen operaattoriNäillä hoidetaan laskutoimitukset C++-kielessä. MerkkijonoC-tyylinen merkkijono on char-muuttujien taulukko, C++-tyylinen merkkijono on elegantisti oma luokkansa. Kts. myös "nollatavu". MetodiKts. "jäsenfunktio". Moniperintä, multiple inheritanceLuokka perii monta kantaluokkaa. Moniulotteinen taulukko.Kts. "Taulukko". Moniulotteinen vaatimukset jäsentäminenOliomalli ei onnistu mallintamaan kaikkea mitä ohjelman pitää tehdä - ainakaan helposti. Muisti, memorySiellä muuttujat asustavat. MuistinhallintaJokaisen kunnollisen ohjelman perusjuttu. Ei riekuta muistinkäytön kanssa miten sattuu. Muodostinfunktio, constructor (kts. myös[periytettäessä])Kutsutaan oliota luodessa. MuuttujaPaikka muistissa, jolle annetaan kiva nimi. Siis tieto säilötään muuttujiin. Kts. myös "näkyvyys". newVaraa halutun kokoisen muistialueen ja palauttaa osoittimen siihen. Nollatavu, null byte (kts. myös)C-tyyppisen merkkijonon päättävä merkki. NäkyvyysMuuttujat ovat käytettävissä vain tietyissä kohdissa ohjelmaa. Kts. "paikallinen muuttuja" ja "globaali muuttuja". Ohjausmerkki (kts. myös)Syöteen ulkoasua voidaan ohjata erilaisilla \-alkuisilla merkeillä, kuten \n eli rivinvaihto. OletusparametriFunktion parametrin arvo, jota käytetään mikäli muuta arvoa ei anneta kutsussa. OlioOlio-ohjelman perushiukkanen. Ohjelman osa, joka sisältää muuttujia ja jäsenfunktioita. Kts. myös "jäsenfunktio" ja "luokka". Oliosuunnittelu (kts. myös[ongelmat])On olioita ja luokkia ja periytymistä, mutta miten näistä vihanneksista syntyy maukas soppa? OptimointiOhjelman viilaaminen niin, että se toimii mahdollisimman nopeasti tai vie mahdollisimman vähän tilaa tai mahdollisimman vähän muistia suorituksen aikana. Käytetään yleensä ensimmäisestä. Osoitin, pointer, pointteri (kts. myös[muistia varattaessa], myös[taulukot], myös[funktioon], myös[taulukollinen funktioon] ja myös[jäsenfunktioon])Muuttuja, joka on osoite muistissa. Voi osoittaa muuttujaan, funktioon tai olioon. Paikallinen muuttuja, local variableMuuttuja, joka on käytettävissä vain luontialueensa sisällä. Paluuarvo (kts. myös[main])Funktion palauttama muuttuja. Parametri (kts. myös[viittaus])Funktiolle annettava lähtöarvo. Voi olla myös ohjelmalle annettava, kts. siis "komentoriviparametri". Periytyminen, inheritanceLuokka perii toisen luokan tai luokkien ominaisuuksia. Pino, stackMuistialue, joka toimii LIFO-periaatteella. Kts. siis "LIFO". Poikkeus, exceptionC++:n mekanismi virheiden käsittelyyn. Virhetilanteessa heitetään poikkeus, jolloin ohjelman suoritus pysähtyy ja funktiokutsupinoa aletaan purkaa, kunnes törmätään lohkoon joka ottaa poikkeuksen kiinni. PolymorfismiOhjelman osan monimuotoisuus. Osaa, esim. oliota, voidaan käyttää eri yhteyksissä tietämättä sen tarkkaa toteutusta eli "muotoa". Kts. myös "funktion uudelleenmäärittely" ja "malli". PreprocessorEsikääntäjä private (kts. myös[periytettäessä])Yksityinen näkyvyys. Muuttuja tai metodi on näkyvissä vain luokan sisällä. Kantaluokka voidaan myös periä yksityisesti. ProfilerOhjelma, joka analysoi tehdyn ohjelman ja ilmoittaa kuinka kauan eri funktioiden suorittaminen kestää. Käytetään ohjelman nopeuden parantamisessa. Projekti (kts. myös[extern])Sivistynyt tapa järjestää isompi ohjelma moneen eri lähdekooditiedostoon. protectedSuojattu näkyvyys. Muuttuja tai metodi on näkyvissä lapsiluokille, mutta ei muille ulkopuolisille. Kantaluokka voidaan myös periä suojatusti. public (kts. myös[periytettäessä])Julkinen näkyvyys. Muuttuja tai metodi on näkyvissä kaikille. Kantaluokka peritään usein julkisesti. Pyhä kolminaisuusKirjoittajan näkemys ohjelmistosuunnittelun olemuksesta: kapselointi, uudelleenkäyttö ja kaikista suurimpana abstraktio. qsortMonien kääntäjien mukana tuleva kätevä quicksort-lajittelualgoritmin toteutus rand (kts. myös)C/C++-kääntäjän mukana tuleva satunnaislukugeneraattori. Kts. myös "satunnaislukugeneraattori". registerPyytää kääntäjää optimoimaan muuttujaan rekisteriin. Rekisteri, registerProsessorin sisäisiä "muuttujia". Nopeinta muistia mitä tietokoneesta löytyy. Roskien keruu, garbage collectionAutomaattinen muistin vapauttaminen. Ei kuulu standardiin C++:n. RutiiniJoku ohjelmanpätkä, joka tekee jonkun tietyn asian, esim. tiedostonlukurutiini. Ruudun tyhjennysEi onnistu mitenkään yleispätevästi, yksi vaihtoehto on clrscr. Kts. "clrscr()". SaantifunktioFunktio, jonka kautta ulkopuoliset voivat käyttää luokan sisäisiä muuttujia. Näin voidaan muuttujat suojata muilta pölvästeiltä. Monesti saantifunktio ovat get/set-alkuisia. Satunnaislukugeneraattori, random number generatorOhjelma, joka luo lähes täysin sattumanvaraisia (siis pseudosatunnaisia) lukuja. Kts. myös "rand" ja "satunnaisuus". SatunnaisuusVoi sen kun osaisin pätevästi määritellä, niin Nobelin kisat voittaisin... SilmukkaMontaa kertaa toistettava ohjelman osa. sinKts. "trigonometriset funktiot". Source, source code, SorsaLähdekoodi, ohjelman kääntämätön versio. strcatYhdistelee merkkijonoja. Kts. "merkkijono". strcmpVertailee merkkijonoja. Kts. "merkkijono". strcpyKopioi merkkijonoja. Kts. "merkkijono". stringLuokka merkkijonojen käsittelyyn. Kts. "merkkijono". stringstream (kts. myös[esimerkki käytöstä])Tietovirta, joka onkin merkkijono. Voidaan kätevästi käyttää numeroiden muuttamiseksi merkkijonomuotoon ja toisinpäin. SuunnitteluKts. "Oliosuunnittelu". switch..case -rakenneValitsee muuttujan arvon perusteella tietyn vaihtoehdon. sizeofPalauttaa tietotyypin koon tavuina. säie, thread, thread of executionYksi ohjelman suorituksen kohta. Säikeistettyä ohjelmaa voidaan suorittaa useasta kohdasta yhtä aikaa. Yleistä mm. palvelinohjelmoinnissa jossa käsitellään useita yhtäaikaisia käyttäjiä. tanKts. "trigonometriset funktiot". Taulukko, array (kts. myös[vapauttaminen] ja myös[osoittimena])Monta peräkkäistä muuttujaa, jotka on indeksoitu yhden taulukon alle. ToistolauseRakenne jolla sama asia tehdään kunnes tietty ehto täyttyy. Trigonometriset funktiotKolmion kulmien kanssa koheltaessa käytettävät sin, cos ja tan kaikkine versioineen. Tuhoajafunktio, destructorKutsutaan oliota hävitettäessä. Tutorial, TuttiJostain aiheesta tehty ohjetiedosto. typedefMuuttujatyyppien peitenimien määrittely. Tyyppimuunnos, typecastMuuttujan muuttaminen toisentyyppiseksi. unionEhkä turhin asia C++:ssa. Unionin avulla voivat kaksi eri muuttujaa jakaa saman muistialueen. Pärjäät erittäin hyvin ilmankin. UudelleenkäyttöVain tyhmä koodaa saman asian kahteen kertaan. Vakio, constantMuuttuja jonka arvo ei muutu, tai esikääntäjälle määritelty korvattava merkkijono. Varattu sanaEi kelpaa muuttujanimeksi, koska on C++-kielessä pyhitetty muuhun käyttöön. VertailuoperaattoriKäytetään muuttujien vertailemiseen ehtolauseissa. Kts. "if". Viittaus, referenceOsoittaa muuttujaan, osoitettua muuttujaa ei voi muuttaa. Virtuaalinen metodi, virtual methodJäsenfunktio, jonka toteutus valitaan aina olion todellisen luokan mukaan. voidTietotyyppi: ei arvoa tai tyyppi määrittelemätön. volatileKieltää kääntäjää optimoimasta muuttujaa rekistereihin. whileSuorittaa lausetta tai lohkoa niin kauan kun ehto on tosi. [oppaan vanhemmissa versioissa selitys oli epäselvä ja harhaanjohtava. kirj. huom.] Ystävä, friendLuokka voi määritellä toisen luokan, luokan metodin tai funktion ystäväkseen ( ``` friend ToinenLuokka::erasMetodi(); ``` ), jolloin se pääsee käsiksi luokan yksityiseen tietoon. Määrittely on yksisuuntainen. Ystävä-määrittelyjä ei tulisi käyttää paljon, tai välttämättä ollenkaan, koska ne huonontavat kapselointia. Takaisin # Kysymykset ja vastaukset Tälle sivulle on kerätty lähinnä asioita, jotka ovat liian hankalia asiayhteydessään mainittavaksi. Niin, ja sinäkin saat sitten kysyä. Tuntuu hieman skitsofreniselta esittää itselleen kysymyksiä. K: Luen tiedostosta/muusta syötteestä tietoa merkkitaulukkoon merkki kerrallaan. Kun vertailen sitten merkkijonoa: strcmp(input, "wiihaa"); tulee tulokseksi false, vaikka input onkin "wiihaa" kuten pitääkin. Mikä pissii? V: Jos alustat merkkijonon char mjono[]="Moikkelis koikkelis."; tai luet siihen sisältöä käyttäjältä cin >> mjono; niin lisätään nollatavu merkkijonon perään automaattisesti. Jos kuitenkin luet itse syötettä merkki kerrallaan ja lopetat nollatavun sattuessa kohdalle, kopioimatta nollatavua, homma ei tietenkään toimi. mjono sisältää tekstin "wiihaa" ja toinen vertailtava merkkijono on "wiihaa\0", siis päättyy nollatavuun; tällöin ne eivät ole vastaavia ja vertailut eivät ole koskaan tosia. Ongelman saat ratkaistua yksinkertaisesti sijoittamalla ennen vertailua nollatavun lukemasi merkkijonon loppuun, siis mjono[loppuKohta]=NULL;. Toinen vaihtoehto on lukea syötteestä myös nollatavu mukaan, jos se sellaisen sisältää. Mutta esimerkiksi kun luetaan tiedostosta yksittäisiä sanoja keskeltä lausetta, ei niissä ole nollatavua valmiina perässä ja sinun pitää se itse lisätä. K: Kun käsken ifstream file("files\file.txt") ei tiedostoa löydy. Alihakemistossa on kuitenkin tuollainen tiedosto kuten pitääkin. Onko minua huijattu? V: C++ käyttää merkkijonoissa ohjausmerkkejä, jotka alkavat \ -merkillä. Jotta kääntäjä tajuaa sinun haluavan \ -merkin eikä mitään ohjausmerkkiä, pitää sinun käyttää \\ -ohjausmerkkiä, joka siis vastaa \ -merkkiä. Oikea syntaksi on siis ifstream file("files\\file.txt"). K: Kuinka voin käyttää tekemääni funktiota toisessa ohjelmassa? Kuinka tehdään kirjastoja C++:lla? V: Jos haluat päästä tosi helpolla, niin kirjoitat funktion kokonaan omaan tiedostoon (funktio.h) ja sitten laitat sinne missä funktiota tarvitaan: > #include"funktio.h" Tuossa on se vika, että kun include heittää funktion kohdallaan, niin se käännetään aina uudelleen - vaikka sitä ei mitenkään olisi muuteltukaan. Kun on kysymys isommasta projektista ja jos kääntäjä ei vielä ole niin hirveän nopea, niin sillä on tosissaan väliä. Oikein se tehdään niin, että funktion määrittely kirjoitetaan .h tai .hpp-tiedostoksi (funktio.h) ja itse funktion runko erilliseen tiedostoon (funktio.cpp) (katso seuraava kysymys, jossa on arvokas vinkki tähän). Sitten voidaan joko:a) Kääntää funktio kirjastoksi (.lib tai .a) ja ottaa kirjasto mukaan sinne missä sitä tarvitaan. Näin on tehty kääntäjän mukana tulevien funktioiden kanssa. Tällä tavalla funktiota voi levittää binäärimuodossa, joten voit laittaa oman apuohjelmakirjastosi levitykseen niin että kukaan ei voi muutella sitä, koska lähdekoodia ei tarvita mukana. Menetelmän heikkous on siinä, että binääri toimii vain yhdessä ympäristössä: joudut kääntämään monta eri versiota kirjastosta, mikäli haluat laajan käyttäjäkunnan (dos, win32, linux, kaikista debug- ja normaaliversio). Kirjaston tekeminen on kääntäjäkohtaista, yleensä se tapahtuu valitsemalla asetuksista projektin kohteeksi (target) kirjasto (library). b) Tehdä projekti, jossa on mukana monta tiedostoa, siis vaikka main.cpp ja funktio.cpp. Kääntäjä automaattisesti kääntää ne, ja vain ne, osat uudelleen mitä olet muuttanut. Tämä on ehdottomasti kätevämpi tapa kun tarvitset apuohjelmanpätkiä vain itse. Myös julkiseen levitykseen erilliset lähdekooditiedostot ovat käteviä, koska ei tarvita erillisiä binäärejä eri alustoille (jokainen kääntää omansa) ja lähdekoodi yleensä vie vähemmän tilaa ja kopiointiaikaa kuin binäärikoodi. K: Olen tehnyt oman juttuja.h-tiedoston. Käytän sitä monissa paikoissa ja sisällytän sen myös erääseen toiseen vibat.h-tiedostoon. Kun sisällytän ohjelmaani molemmat tiedostot, juttuja.h ja vibat.h, tulee juttuja.h kahdesti, koska se sisällytetään yksinään ja vielä vibat.h:n mukana. Ja sehän ei mene kääntäjästä läpi. Miten homma hoidetaan elegantisti? V: Kun tehdään .h-tiedostoja on tapana tehdä näin - tai pikemminkin kun teet .h-tiedostoja, tee aina näin: > #ifndef _OMA_H #define _OMA_H // sitten itse tiedoston sisalto #endif Idea siis on, että ekalla kerralla _OMA_H ei tietenkään ole määritelty. Siis if-not-defined (#ifndef) toteutuu ja _OMA_H määritellään ja tiedoston sisältö käsitellään. Mutta tokalla kerralla kun riviin törmätään, _OMA_H on jo määritelty ja loput tiedostosta jätetään käsittelemättä. Näin itse sisältö ei tule määritellyksi kahdesti missään yhteydessä ja ongelma on ratkaistu ja kaikilla on kivaa ja serpentiiniä ja vappuneniä riittää kaikille. K: Miten saa määriteltyä sellaisen globaalin muuttujan, joka toimii myös toisissa tiedostoissa olevassa koodissa? V: Ensimmäinen vastaus on: globaaleja muuttujia ei tarvita. Ne ovat yleensä merkki huonosta suunnittelusta. Globaali muuttuja on saatavilla joka puolella, joten sellainen voidaan myös sotkea mistä vaan. Hyvin suunnitellussa oliopohjaisessa C++-ohjelmassa ei ainakaan törmää koskaan globaalin muuttujan tarpeeseen. Poikkeuksena voisi mainita tietyt laitteistoläheiset toimenpiteet, joissa teknisistä syistä on pakko käyttää globaaleja muuttujia. Jos haluat globaaleja käyttää, niin perässä seuraa esimerkki. Maaginen sana on extern, joka siis ilmoittaa muuttujan olevan määritelty jossain muualla. Ohjelma on ihan teennäinen, ei noin oikeasti tietenkään saisi turhaan käyttää globaaleja. Mikäli #ifndef hämää, niin katso edellinen esimerkki. Tiedosto main.cpp: > #include "program.hpp" int luku; int main() { luku = 0; while (luku < 100) { TulostaLuku(); luku++; } return EXIT_SUCCESS; } Tiedosto program.hpp: > #ifndef _program_hpp #define _program_hpp void TulostaLuku(); extern int luku; #endif Tiedosto tl.cpp: > #include <iostream.h> #include "program.hpp" void TulostaLuku() { cout << luku << " "; } K: Miten saan lisättyä C++-ohjelmiini kuvia? Miten teen animaatioita C++:lla? V: Tämä on ehdottomasti yleisin asia mitä minulta kysytään. C++ on kieli, jonka suunnittelussa on ollut päämääränä mm.: C++:aa voi käyttää kaikissa ohjelmointiympäristöissä ja C++ on suoraan yhteydessä tietokonelaitteistoon. Monissa eri ympäristöissä toimimisesta suoraa se, että ominaisuuksia, jotka ovat erilaisia eri ympäristöissä, kuten grafiikka, ei ole C++:n otettu mukaan. Kaikissa laitteissa kun ei ole edes näyttöä. Toisaalta voi kysyä, että miksi Java, joka on vielä helpommin siirrettävissä laiteympäristöstä toiseen, mahdollistaa grafiikan käsittelyn kielen omilla kirjastoilla. Vastaus on siinä, että Java ei ole suorassa yhteydessä laitteistoon ja niinpä välissä oleva virtuaalikone voi tulkita ohjelman tekemät grafiikkaoperaatiot alustana toimivan laitteiston ymmärtämään muotoon. Tulkitseminen luonnollisesti vie aikaa ja niinpä Javalla ei kovin hämmentävään nopeuteen grafiikanpyörittelyssä pääsekään. Mutta se, että C++-kielessä ei ole valmiita grafiikkaominaisuuksia, ei tarkoita sitä, että C++:lla ei voi käsitellä grafiikkaa. Päinvastoin, suurin osa hyvin graafisista sovelluksista, peleistä ja kuvankäsittelyohjelmista, on tehty C++:lla. Mitään standardia tapaa ei ole, vaan grafiikan käyttö riippuu aina siitä laiteympäristöstä missä toimitaan. Ja kun C++:lla tehdään alustalle räätälöityä grafiikkakoodia, on meno niin nopeata että varmasti karstat karisevat näytönohjaimesta! Helpoiten grafiikka-asioissa pääsee liikkeelle käyttämällä valmista grafiikkakirjastoa. DOS/Windows/Unix-ympäristössä löytyy Allegro, joka on erittäin hyvä kirjasto grafiikan käsittelyyn - ja sovellukset ovat siirrettävissä ympäristöstä toiseen. Windowsissa voi käyttää Windowsin C-ohjelmointirajapintaa tai C++-tyylistä MFC-oliokirjastoa, jolla sama asia hoituu oliomaisesti - todellinen Windows-peliohjelmointi tosin vaatii jo DirectX-rajapinnan käyttöä. Mikäli haluaa kirjoittaa monessa eri ympäristössä toimivaa grafiikkakoodia, niin Prometheus TrueColor (PTC) -kirjasto on hyvä valinta. Tai on se hyvä grafiikkakirjasto, vaikka siirrettävyys ei kiinnostakaan. Joidenkin kääntäjien mukana tulee yksinkertaisia grafiikkakirjastoja, mutta ne ovat yleensä enemmän tai vähemmän kökköjä. K: Olen lukenut erästä C++-kirjaa ja eteeni tuli seuraava kummallinen koodinpätkä. Mitäköhän mahtaa tarkoittaa tuo "TAI ja sijoitus" -operaatio? > #define CLIP_CODE_N 0x0008 int p1_code = 0; p1_code |= CLIP_CODE_N; // rivi 1 V: Rivi 1 suorittaa bitti-TAI-operaation p1_code:n ja CLIP_CODE literaalivakion välillä ja sijoittaa tuloksen p1_code:en. Eli |= on samaa veljessarjaa kuin esimerkiksi +=. Eli toisin asia sanoiksi asetellen rivi 1 voitaisiin kirjoittaa myös: > p1_code = p1_code | CLIP_CODE_N; Bitti-TAI tekee TAI:n jokaisen bitin välillä, eli jos toinen tai molemmat biteistä on 1 niin lopputulos on 1. Kyseessä on inklusiivinen TAI, olemassa on myös ekslusiivinen TAI jossa vain toinen saa olla 1 jotta lopputulos on 1 (ekslusiivinen tai merkitään "hatulla" eli: ^). Käytännössä |-operaatiota käytetään yleensä bittien kytkemiseen päälle, niinkuin tuossakin koodissa. Ensin tehdään bittimaski, jolla valitaan että mikä bitti halutaan päälle. Esimerkissä maski on 0x0008 eli binäärinä 0000000000001000. Kun suoritetaan TAI, niin niissä kohdin missä maskin bitti on 0, kopioituu alkuperäisen arvon (p1_code) bitti semmoisenaan. Siellä missä maskin arvo on 1, tulee tulokseen myös yksi. Siis koodi laittaa p1_code:n neljännen bitin päälle, jättäen muut alkuperäisiksi (eli nolliksi, koska p1_code alustettiin nollaksi). # Lähteitä Ihan kaikkea mitä sinun pitää tietää C++-ohjelmoinnista ja yleensä ohjelmoinnista ei löydy näiltä sivuilta. Tässäpä vähän siis suuntaviisaria tutkimusmatkoillesi ohjelmointitietouden maailmaan. Linkeissä olen koittanut panostaa laatuun, en määrään. WWW: http://users.utu.fi/sisasa/oasis/cppfaq/ - C++ FAQ, siis ennenkin kysytyt asiat C++-ohjelmoinnista http://www.inquiry.com/techtips/cpp_pro/ - Voit kysyä C++-gurulta tai selailla muiden kysymyksiä. Suosittelen. http://www.possibility.com/Cpp/CppCodingStandard.html - Yksi näkemys siitä, miten tehdään yhtenäistä C++-koodia. http://www.csci.csusb.edu/dick/c++std#Drafts - Uusin (ollut ainakin joskus) julkinen C++-kielen standardi. Ei mitään aloittelijan materiaalia. http://www.comeaucomputing.com/tryitout/ - Online-kääntäjä, joka on hyvin standardinmukainen ja tuottaa pirun hyviä virheilmoituksia. Ohjelmoijan paras apu tilanteessa jossa epäilee oman kääntäjänsä toimintaa. Suosittelen. http://www.sgi.com/tech/stl - Oppia Standard Template Libraryn (STL) k�yt�st�. Usenet news: sfnet.atk.ohjelmointi.alkeet - Voit kysellä alkeellisiakin kysymyksiä ihan vapaasti (suomeksi). sfnet.atk.ohjelmointi - Vähän kehittyneempää juttua (suomeksi). comp.lang.c++.moderated - Täällä pyöriikin todella ammattitaitoista C++-väkeä, tosin kieli on englanti. Muu kiinnostava ohjelmointimateriaali: http://www.talula.demon.co.uk/allegro - P�tev� peliohjelmointikirjasto, toimii hyvin monessa ymp�rist�ss� http://www.gaffer.org/ptc - Pätevä grafiikkaohjelmointikirjasto, mahdollistaa ohjelman siirtämisen ympäristöstä toiseen. http://msdn.microsoft.com - Ehdoton paikka Windows-tietouden hakemiseen. Suosittelen. Kirjat: Mikäli sinä haluat kommentoida jotakin lukemaasi C++-kirjaa, niin senkun sähköpostitat vaan. Merkittävimpiä tästä puuttuvia kirjoja ovat Deitel&Deitelin C++-opus ja Bruce Eckelin Thinking in C++. C++ ja olio-ohjelmointi - <NAME> (Teknolit, 1998, ISBN: 952-9823-45-2) Paljon asiaa ja selkeästi esitetty. Ei sellaisia ympäripyöreyksiä mitä alkeisoppaissa valitettavan usein tapaa. Lähestymistapa on mielestäni liiankin perusteellinen ja tarpeettomiin yksityiskohtiin (esim. union) puututaan turhan tarkasti, joten aloittelija voi tuntea itsensä välillä tukahtuneeksi ja turhautuneeksi. Opeta itsellesi C++-ohjelmointi - <NAME> (Satku, 1996, ISBN: 951-762-335-6) Oikein perinteinen C++-opas: asiaa riittävästi, asiallisesti esitettynä. Toisaalta juuri yhtään ei vaivauduta selittämään miksi asiat pitää tehdä kuten on neuvottu, joten syvällinen asioiden ymmärtäminen jää vähän heikoksi. Teksti on melko kuivaa ja ne vähätkin mehut haihtuvat lukiessa pitkiä ja mielikuvituksettomia esimerkkejä, joita minun makuun on aivan liian paljon. Pikaisen selailun perusteella kirjan uudempi painos ei ole juurikaan parantunut. The C++ Programming Language, 3rd Edition - Bjarne Stroustrup: (Addison-Wesley, 1997, ISBN: 0-201-88954-4) Bjarne on C++:n kehittäjä, Bjarne tietää mistä puhuu. Lisäksi Bjarne on hyvä kirjoittaja. Kirjasta paistaa läpi C++:n täydellinen hallitseminen ja olennaisen erottaminen joutenpäiväisestä. Kuten Stroustrup itse sanoo, tärkeintä on opettaa oikeaa ohjelmointia eikä kielen koukeroita. En suosittelisi tätä erinomaista teosta kuitenkaan aivan aloittelijoille. Kirjasta on myös Special Edition, joka ei ilmeisesti sisällä mitään erityisen hyödyllistä uutta ja siinä olevat lisäkappaleet on saatavilla myös Stroustrupin www-sivuilta. Kirja on myös suomennettu ja suomennos on tiettävästi peräti hyvä. Introduction to C++ Programming - <NAME>: (Prentice Hall , 1999, ISBN: 0-13-88801-9) Kirja on kerännyt mainetta erityisen onnettoma yritelmänä - tosin itse en ole kirjaa lukenut. Ilmeisesti suurin osa C++:n hyvistä tavoista ja kirjoittamattomista säännöistä on unohdettu esimerkkejä laadittaessa ja muutenkin asian käsittely on hyvin suppeaa. Liekö taustalla ollut pedagoginen ajattelu ja aloittelijalähtöinen lähestymistapa, mutta liika on liikaa. Oliosuunnittelukirjat: Tässä esitelty kolmikko tarjoaa hyvän menetelmän (eli minun suosikkimenetelmäni) olio-ohjelmoinnin soveltamiseen todelliseen ohjelmointityöskentelyyn. Design Patterns - <NAME>, <NAME>, <NAME>, <NAME>: (Addison-Wesley, 1995, ISBN: 0201633612) Oliomaailman ehdoton klassikko. Esittelee suunnittelumallit, hyvät oliosuunniteluratkaisut yleisesti esiintyviin ongelmiin. Sisältää esimerkkejä C++:lla ja Smalltalkilla toteutettuna. On myös suomennettu nimellä Suunnittelumallit, pikaisen tutkistelun jälkeen suomennos vaikutti pääasiassa hassulta. Extreme Programming Explained - <NAME> (Addison-Wesley, 2000, ISBN: 0201616416) Esittelee Extreme Programming (XP) -menetelmän. XP-projekteissä keskitytään vähemmän turhaan dokumentointiin ja enemmän ohjelman tekemiseen ja kehittämiseen. Mielestäni erittäin hyvä tapa organisoida ohjelmointityötä. Refactoring: Improving the Design of Existing Code - <NAME> (Addison-Wesley, 1999, ISBN: 0201485672) Jotkut ihmiset uskovat, että hyvä ohjelma suunnitellaan niin huolella, että sitä ei tarvitse jälkeenpäin muuttaa. Minä en kuulu tuohon kiihkomieliseen joukkoon. Tulevaisuuden ennustaminen vaatii yli-ihnimillisiä kykyjä, niinpä sellaisen varaan ei kannata ohjelmistoprojektia rakentaa. Parempi vaihtoehto on tunnustaa, että ennustaminen on kaappinostradamusten hommaa ja järjestää ohjelmointityöskentely niin, että sovelluksen rakenteen muokkaaminen on mahdollisimman helppoa. Refaktorointi on keskeinen elementti myös XP-menetelmässä. Takaisin
FastImputation
cran
R
Package ‘FastImputation’ September 25, 2023 Type Package Title Learn from Training Data then Quickly Fill in Missing Data Version 2.2.1 Date 2023-09-25 Author <NAME> Maintainer <NAME> <<EMAIL>> Description TrainFastImputation() uses training data to describe a multivariate normal distribution that the data approximates or can be transformed into approximating and stores this information as an object of class 'FastImputationPatterns'. FastImputation() function uses this 'FastImputationPatterns' object to impute (make a good guess at) missing data in a single line or a whole data frame of data. This approximates the process used by 'Amelia' <https://gking.harvard.edu/amelia> but is much faster when filling in values for a single line of data. License GPL (>= 2) Depends R (>= 4.0) Collate 'FastImputation.R' 'TrainFastImputation.R' 'UnfactorColumns.R' 'BoundNormalizedVariable.R' 'NormalizeBoundedVariable.R' 'CovarianceWithMissing.R' 'FI_train.R' 'FI_test.R' 'FI_true.R' RoxygenNote 7.2.3 Imports methods, Matrix Suggests testthat, caret, e1071 NeedsCompilation no Encoding UTF-8 Repository CRAN Date/Publication 2023-09-25 15:10:02 UTC R topics documented: BoundNormalizedVariabl... 2 CovarianceWithMissin... 3 FastImputatio... 3 FI_tes... 5 FI_trai... 6 FI_tru... 7 NormalizeBoundedVariabl... 8 TrainFastImputatio... 9 UnfactorColumn... 10 BoundNormalizedVariable Take a normalized variable and transform it back to a bounded vari- able. Description This takes variables on the real line and constrains them to be on a half-line (constrained above or below) or a segment (constrained both above and below). This is approximately the inverse of NormalizeBoundedVariable; this does not completely reverse the effect of NormalizeBoundedVariable because NormalizeBoundedVariable first forces values away from the bounds, and this informa- tion is lost. Usage BoundNormalizedVariable(x, constraints) Arguments x A vector, matrix, array, or dataframe with value to be coerced into a range or set. constraints A list of constraints. See the examples below for formatting details. Value An object of the same class as x with the values transformed into the desired half-line or segment. Author(s) <NAME> <<EMAIL>> Examples constraints=list(lower=5) # lower bound when constrining to an interval constraints=list(upper=10) # upper bound when constraining to an interval constraints=list(lower=5, upper=10) # both lower and upper bounds CovarianceWithMissing Estimate covariance when data is missing Description Ignoring missing values can lead to biased estimates of the covariance. Lounici (2012) gives an unbiased estimator when the data has missing values. Usage CovarianceWithMissing(x) Arguments x matrix or data.frame, data with each row an observation and each column a variable. Value matrix, unbiased estimate of the covariance. Author(s) <NAME> <<EMAIL>> References High-dimensional covariance matrix estimation with missing observations. Karim Lounici. 2012. FastImputation Use the pattern learned from the training data to impute (fill in good guesses for) missing values. Description Like Amelia, FastImputation assumes that the columns of the data are multivariate normal or can be transformed into approximately multivariate normal. Usage FastImputation(x, patterns, verbose = TRUE) Arguments x Dataframe, possibly with some missing (NA) values. patterns An object of class ’FastImputationPatterns’ generated by TrainFastImputation. verbose If TRUE then the progress in imputing the data will be shown. Value x, but with missing values filled in (imputed) Author(s) <NAME> <<EMAIL>> References https://gking.harvard.edu/amelia See Also TrainFastImputation Examples data(FI_train) # provides FItrain dataset patterns <- TrainFastImputation( FI_train, constraints=list(list("bounded_below_2", list(lower=0)), list("bounded_above_5", list(upper=0)), list("bounded_above_and_below_6", list(lower=0, upper=1)) ), idvars="user_id_1", categorical="categorical_9") data(FI_test) FI_test # note there is missing data imputed_data <- FastImputation(FI_test, patterns) imputed_data # good guesses for missing values are filled in data(FI_true) continuous_cells_imputed <- is.na(FI_test[,2:8]) continuous_imputed_values <- imputed_data[,2:8][continuous_cells_imputed] continuous_true_values <- FI_true[,2:8][continuous_cells_imputed] rmse <- sqrt(median((continuous_imputed_values-continuous_true_values)^2)) rmse median_relative_error <- median( abs((continuous_imputed_values - continuous_true_values) / continuous_true_values) ) median_relative_error imputed_data_column_means <- FI_test[,2:8] for(j in 1:ncol(imputed_data_column_means)) { imputed_data_column_means[is.na(imputed_data_column_means[,j]),j] <- mean(imputed_data_column_means[,j], na.rm=TRUE) } cont_imputed_vals_col_means <- imputed_data_column_means[continuous_cells_imputed] rmse_column_means <- sqrt(median((cont_imputed_vals_col_means-continuous_true_values)^2)) rmse_column_means # much larger error than using FastImputation median_relative_error_col_means <- median( abs((cont_imputed_vals_col_means - continuous_true_values) / continuous_true_values) ) median_relative_error_col_means # larger error than using FastImputation # Let's look at the accuracy of the imputation of the categorical variable library("caret") categorical_rows_imputed <- which(is.na(FI_test$categorical_9)) confusionMatrix(data=imputed_data$categorical_9[categorical_rows_imputed], reference=FI_true$categorical_9[categorical_rows_imputed]) # Compare to imputing with the modal value stat_mode <- function(x) { unique_values <- unique(x) unique_values <- unique_values[!is.na(unique_values)] unique_values[which.max(tabulate(match(x, unique_values)))] } categorical_rows_imputed_col_mode <- rep(stat_mode(FI_test$categorical_9), length(categorical_rows_imputed)) confusionMatrix(data=categorical_rows_imputed_col_mode, reference=FI_true$categorical_9[categorical_rows_imputed]) # less accurate than using FastImputation FI_test Imputation Test Data Description Smaller simulated dataset drawn from the same distribution as FI_train and FI_true. This dataset is entirely the same as FI_true except this one has 5% of its values missing. Used with FastImputation. Usage data(FI_test) Format A data frame with 9 variables and 250 observations. user_id_1 Sequential user ids bounded_below_2 Multivariate normal, transformed using exp(x) unbounded_3 Multivariate normal unbounded_4 Multivariate normal bounded_above_5 Multivariate normal, transformed using -exp(x) bounded_above_and_below_6 Multivariate normal, transformed using pnorm(x) unbounded_7 Multivariate normal unbounded_8 Multivariate normal categorical_9 "A" if the first of three multivariate normal draws is greatest; "B" if the second is greatest; "C" if the third is greatest Author(s) <NAME> <<EMAIL>> Source All columns start as multivariate normal draws. Columns 2, 5, and 6 are transformed. Column 9 is the result of three multivariate normal columns being interpreted as one-hot encoding of a three-valued categorical variable. FI_train Imputation Training Data Description Larger simulated dataset drawn from the same distribution as FI_test and FI_true and used to train the imputation algorithm. 5% of the values are missing. Used with TrainFastImputation. Usage data(FI_train) Format A data frame with 9 variables and 10000 observations. user_id_1 Sequential user ids bounded_below_2 Multivariate normal, transformed using exp(x) unbounded_3 Multivariate normal unbounded_4 Multivariate normal bounded_above_5 Multivariate normal, transformed using -exp(x) bounded_above_and_below_6 Multivariate normal, transformed using pnorm(x) unbounded_7 Multivariate normal unbounded_8 Multivariate normal categorical_9 "A" if the first of three multivariate normal draws is greatest; "B" if the second is greatest; "C" if the third is greatest Author(s) <NAME> <<EMAIL>> Source All columns start as multivariate normal draws. Columns 2, 5, and 6 are transformed. Column 9 is the result of three multivariate normal columns being interpreted as one-hot encoding of a three-valued categorical variable. FI_true Imputation "True" Data Description Smaller simulated dataset drawn from the same distribution as FI_train and FI_test. This dataset is entirely the same as FI_test except FI_test has 5% of its values missing. Used to evaluate the quality of the values imputed in FI_test. Usage data(FI_true) Format A data frame with 9 variables and 250 observations. user_id_1 Sequential user ids bounded_below_2 Multivariate normal, transformed using exp(x) unbounded_3 Multivariate normal unbounded_4 Multivariate normal bounded_above_5 Multivariate normal, transformed using -exp(x) bounded_above_and_below_6 Multivariate normal, transformed using pnorm(x) unbounded_7 Multivariate normal unbounded_8 Multivariate normal categorical_9 "A" if the first of three multivariate normal draws is greatest; "B" if the second is greatest; "C" if the third is greatest Author(s) <NAME> <<EMAIL>> Source All columns start as multivariate normal draws. Columns 2, 5, and 6 are transformed. Column 9 is the result of three multivariate normal columns being interpreted as one-hot encoding of a three-valued categorical variable. NormalizeBoundedVariable Take a variable bounded above/below/both and return an unbounded (normalized) variable. Description This transforms bounded variables so that they are not bounded. First variables are coerced away from the boundaries. by a distance of tol. The natural log is used for variables bounded either above or below but not both. The inverse of the standard normal cumulative distribution function (the quantile function) is used for variables bounded above and below. Usage NormalizeBoundedVariable(x, constraints, tol = stats::pnorm(-5), trim = TRUE) Arguments x A vector, matrix, array, or dataframe with value to be coerced into a range or set. constraints A list of constraints. See the examples below for formatting details. tol Variables will be forced to be at least this far away from the boundaries. trim If TRUE values in x < lower and values in x > upper will be set to lower and upper, respectively, before normalizing. Value An object of the same class as x with the values transformed so that they spread out over any part of the real line. A variable x that is bounded below by lower is transformed to log(x - lower). A variable x that is bounded above by upper is transformed to log(upper - x). A variable x that is bounded below by lower and above by upper is transformed to qnorm((x-lower)/(upper - lower)). Author(s) <NAME> <<EMAIL>> Examples constraints=list(lower=5) # lower bound when constrining to an interval constraints=list(upper=10) # upper bound when constraining to an interval constraints=list(lower=5, upper=10) # both lower and upper bounds TrainFastImputation Learn from the training data so that later you can fill in missing data Description Like Amelia, FastImputation assumes that the columns of the data are multivariate normal or can be transformed into approximately multivariate normal. Usage TrainFastImputation(x, constraints = list(), idvars, categorical) Arguments x Dataframe containing training data. Can have incomplete rows. constraints A list of constraints. See the examples below for formatting details. idvars A vector of column numbers or column names to be ignored in the imputation process. categorical A vector of column numbers or column names of varaibles with a (small) set of possible values. Value An object of class ’FastImputationPatterns’ that contains information needed later to impute on a single row. Author(s) <NAME> <<EMAIL>> References https://gking.harvard.edu/amelia See Also FastImputation Examples data(FI_train) # provides FI_train dataset patterns_with_constraints <- TrainFastImputation( FI_train, constraints=list(list("bounded_below_2", list(lower=0)), list("bounded_above_5", list(upper=0)), list("bounded_above_and_below_6", list(lower=0, upper=1)) ), idvars="user_id_1", categorical="categorical_9") UnfactorColumns Convert columns of a dataframe from factors to character or numeric. Description Convert columns of a dataframe from factors to character or numeric. Usage UnfactorColumns(x) Arguments x A dataframe Value A dataframe containing the same data but any factor columns have been replaced with numeric or character columns. Author(s) <NAME> <<EMAIL>>
ogp
hex
Erlang
ogp === The [Open Graph protocol](https://ogp.me/) library in Elixir. [![CI](https://github.com/goofansu/ogp/actions/workflows/ci.yml/badge.svg)](https://github.com/goofansu/ogp/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/goofansu/ogp/badge.svg?branch=main)](https://coveralls.io/github/goofansu/ogp?branch=main) Installation --- ``` def deps do [ {:ogp, "~> 1.0.0"} ] end ``` Usage --- I recommend to run [ogp.livemd](./ogp.livemd) in [Livebook](https://github.com/elixir-nx/livebook) for detail. ### Parse HTML ``` iex> html = """ <meta property="og:title" content="The Rock" /> <meta property="og:type" content="video.movie" /> <meta property="og:url" content="https://www.imdb.com/title/tt0117500/" /> <meta property="og:image" content="https://ia.media-imdb.com/images/rock.jpg" /> <meta property="og:image" content="https://ia.media-imdb.com/images/rock2.jpg" /> <meta property="og:audio" content="https://example.com/bond/theme.mp3" /> <meta property="og:description" content="<NAME> found fame and fortune as the suave, sophisticated British agent, <NAME>." /> <meta property="og:determiner" content="the" /> <meta property="og:locale" content="en_GB" /> <meta property="og:locale:alternate" content="fr_FR" /> <meta property="og:site_name" content="IMDb" /> <meta property="og:video" content="https://example.com/bond/trailer.swf" /> """ iex> OpenGraph.parse(html) %OpenGraph{ audio: "https://example.com/bond/theme.mp3", description: "<NAME> found fame and fortune as the\n suave, sophisticated British agent, <NAME>.", determiner: "the", image: "https://ia.media-imdb.com/images/rock.jpg", locale: "en_GB", site_name: "IMDb", title: "The Rock", type: "video.movie", url: "https://www.imdb.com/title/tt0117500/", video: "https://example.com/bond/trailer.swf" } ``` ### Fetch URL ``` iex> OpenGraph.fetch!("https://github.com") %OpenGraph{ audio: nil, description: "GitHub is where over 65 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...", determiner: nil, image: "https://github.githubassets.com/images/modules/site/social-cards/github-social.png", locale: nil, site_name: "GitHub", title: "GitHub: Where the world builds software", type: "object", url: "https://github.com/", video: nil } ``` Redirect is followed automatically, see the following example: ``` iex> OpenGraph.fetch!("https://producthunt.com") %OpenGraph{ audio: nil, description: "Product Hunt is a curation of the best new products, every day. Discover the latest mobile apps, websites, and technology products that everyone's talking about.", determiner: nil, image: "https://ph-static.imgix.net/ph-logo-1.png", locale: "en_US", site_name: "Product Hunt", title: " Product Hunt – The best new products in tech. ", type: "article", url: "https://www.producthunt.com/", video: nil } ``` [API Reference](api-reference.html) OpenGraph === Summary === [Types](#types) --- [t()](#t:t/0) [value()](#t:value/0) [Functions](#functions) --- [fetch(url)](#fetch/1) Fetch URL and parse Open Graph protocol. [fetch!(url)](#fetch!/1) Similar to [`fetch/1`](#fetch/1) but raises a [`OpenGraph.Error`](OpenGraph.Error.html) exception if request failed. [parse(html)](#parse/1) Parse Open Graph protocol. [Link to this section](#types) Types === [Link to this section](#functions) Functions === OpenGraph.Error exception === Summary === [Types](#types) --- [reason()](#t:reason/0) [status_code()](#t:status_code/0) [t()](#t:t/0) [Link to this section](#types) Types === API Reference === Modules --- [OpenGraph](OpenGraph.html) [OpenGraph.Error](OpenGraph.Error.html) [ogp](readme.html)
multcomp
cran
R
Package ‘multcomp’ June 20, 2023 Title Simultaneous Inference in General Parametric Models Version 1.4-25 Date 2023-06-20 Description Simultaneous tests and confidence intervals for general linear hypotheses in parametric models, including linear, generalized linear, linear mixed effects, and survival models. The package includes demos reproducing analyzes presented in the book ``Multiple Comparisons Using R'' (Bretz, Hothorn, Westfall, 2010, CRC Press). Depends stats, graphics, mvtnorm (>= 1.0-10), survival (>= 2.39-4), TH.data (>= 1.0-2) Imports sandwich (>= 2.3-0), codetools Suggests lme4 (>= 0.999375-16), nlme, robustbase, coin, MASS, foreign, xtable, lmtest, coxme (>= 2.2-1), SimComp, ISwR, tram (>= 0.2-5), fixest (>= 0.10), glmmTMB URL http://multcomp.R-forge.R-project.org The publishers web page is http://www.crcpress.com/product/isbn/9781584885740 LazyData yes License GPL-2 NeedsCompilation no Author <NAME> [aut, cre] (<https://orcid.org/0000-0001-8301-0471>), <NAME> [aut], <NAME> [aut], <NAME> [ctb], <NAME> [ctb], <NAME> [ctb] Maintainer <NAME> <<EMAIL>> Repository CRAN Date/Publication 2023-06-20 17:30:06 UTC R topics documented: adeven... 2 cftes... 4 cholestero... 5 cl... 6 cm... 8 contrMa... 9 detergen... 10 fattyaci... 11 glh... 12 glht-method... 16 litte... 20 mm... 21 modelpar... 25 mtep... 26 par... 27 plot.cl... 28 recover... 30 sb... 31 trees51... 32 wast... 33 adevent Adverse Events Data Description Indicators of 28 adverse events in a two-arm clinical trial. Usage data(adevent) Format A data frame with 160 observations on the following 29 variables. E1 a factor with levels no event event E2 a factor with levels no event event E3 a factor with levels no event event E4 a factor with levels no event event E5 a factor with levels no event event E6 a factor with levels no event event E7 a factor with levels no event event E8 a factor with levels no event event E9 a factor with levels no event event E10 a factor with levels no event event E11 a factor with levels no event event E12 a factor with levels no event event E13 a factor with levels no event event E14 a factor with levels no event event E15 a factor with levels no event event E16 a factor with levels no event event E17 a factor with levels no event event E18 a factor with levels no event event E19 a factor with levels no event event E20 a factor with levels no event event E21 a factor with levels no event event E22 a factor with levels no event event E23 a factor with levels no event event E24 a factor with levels no event event E25 a factor with levels no event event E26 a factor with levels no event event E27 a factor with levels no event event E28 a factor with levels no event event group group indicator. Details The data is provided by Westfall et al. (1999, p. 242) and contains binary indicators of 28 adverse events (E1,..., E28) for two arms (group). Source <NAME>, <NAME>, <NAME>, <NAME>, <NAME> (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc. cftest Testing Estimated Coefficients Description A convenience function for univariate testing via z- and t-tests of estimated model coefficients Usage cftest(model, parm, test = univariate(), ...) Arguments model a fitted model. parm a vector of parameters to be tested, either a character vector of names or an integer. test a function for computing p values, see summary.glht. ... additional arguments passed to summary.glht. Details The usual z- or t-tests are tested without adjusting for multiplicity. Value An object of class summary.glht. See Also coeftest Examples lmod <- lm(dist ~ speed, data = cars) summary(lmod) cftest(lmod) cholesterol Cholesterol Reduction Data Set Description Cholesterol reduction for five treatments. Usage data("cholesterol") Format This data frame contains the following variables trt treatment groups, a factor at levels 1time, 2times, 4times, drugD and drugE. response cholesterol reduction. Details A clinical study was conducted to assess the effect of three formulations of the same drug on reduc- ing cholesterol. The formulations were 20mg at once (1time), 10mg twice a day (2times), and 5mg four times a day (4times). In addition, two competing drugs were used as control group (drugD and drugE). The purpose of the study was to find which of the formulations, if any, is efficacious and how these formulations compare with the existing drugs. Source <NAME>, <NAME>, <NAME>, <NAME>, <NAME> (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc., page 153. Examples ### adjusted p-values for all-pairwise comparisons in a one-way layout ### set up ANOVA model amod <- aov(response ~ trt, data = cholesterol) ### set up multiple comparisons object for all-pair comparisons cht <- glht(amod, linfct = mcp(trt = "Tukey")) ### cf. Westfall et al. (1999, page 171) summary(cht, test = univariate()) summary(cht, test = adjusted("Shaffer")) summary(cht, test = adjusted("Westfall")) ### use only a subset of all pairwise hypotheses K <- contrMat(table(cholesterol$trt), type="Tukey") Ksub <- rbind(K[c(1,2,5),], "D - test" = c(-1, -1, -1, 3, 0), "E - test" = c(-1, -1, -1, 0, 3)) ### reproduce results in Westfall et al. (1999, page 172) ### note: the ordering of our estimates here is different amod <- aov(response ~ trt - 1, data = cholesterol) summary(glht(amod, linfct = mcp(trt = Ksub[,5:1])), test = adjusted("Westfall")) cld Set up a compact letter display of all pair-wise comparisons Description Extract information from glht, summary.glht or confint.glht objects which is required to create and plot compact letter displays of all pair-wise comparisons. Usage ## S3 method for class 'summary.glht' cld(object, level = 0.05, decreasing = FALSE, ...) ## S3 method for class 'glht' cld(object, level = 0.05, decreasing = FALSE, ...) ## S3 method for class 'confint.glht' cld(object, decreasing = FALSE, ...) Arguments object An object of class glht, summary.glht or confint.glht. level Significance-level to be used to term a specific pair-wise comparison significant. decreasing logical. Should the order of the letters be increasing or decreasing? ... additional arguments. Details This function extracts all the information from glht, summary.glht or confint.glht objects that is required to create a compact letter display of all pair-wise comparisons. In case the contrast matrix is not of type "Tukey", an error is issued. In case of confint.glht objects, a pair-wise comparison is termed significant whenever a particular confidence interval contains 0. Otherwise, p-values are compared to the value of "level". Once, this information is extracted, plotting of all pair-wise comparisons can be carried out. Value An object of class cld, a list with items: y Values of the response variable of the original model. yname Name of the response variable. x Values of the variable used to compute Tukey contrasts. weights Weights used in the fitting process. lp Predictions from the fitted model. covar A logical indicating whether the fitted model contained covariates. signif Vector of logicals indicating significant differences with hyphenated names that identify pair-wise comparisons. References Hans-<NAME> (2004), An Algorithm for a Letter-Based Representation of All-Pairwise Com- parisons, Journal of Computational and Graphical Statistics, 13(2), 456–466. See Also glht plot.cld Examples ### multiple comparison procedures ### set up a one-way ANOVA data(warpbreaks) amod <- aov(breaks ~ tension, data = warpbreaks) ### specify all pair-wise comparisons among levels of variable "tension" tuk <- glht(amod, linfct = mcp(tension = "Tukey")) ### extract information tuk.cld <- cld(tuk) ### use sufficiently large upper margin old.par <- par(mai=c(1,1,1.25,1), no.readonly = TRUE) ### plot plot(tuk.cld) par(old.par) ### now using covariates data(warpbreaks) amod2 <- aov(breaks ~ tension + wool, data = warpbreaks) ### specify all pair-wise comparisons among levels of variable "tension" tuk2 <- glht(amod2, linfct = mcp(tension = "Tukey")) ### extract information tuk.cld2 <- cld(tuk2) ### use sufficiently large upper margin old.par <- par(mai=c(1,1,1.25,1), no.readonly = TRUE) ### plot using different colors plot(tuk.cld2, col=c("black", "red", "blue")) par(old.par) ### set up all pair-wise comparisons for count data data(Titanic) mod <- glm(Survived ~ Class, data = as.data.frame(Titanic), weights = Freq, family = binomial()) ### specify all pair-wise comparisons among levels of variable "Class" glht.mod <- glht(mod, mcp(Class = "Tukey")) ### extract information mod.cld <- cld(glht.mod) ### use sufficiently large upper margin old.par <- par(mai=c(1,1,1.5,1), no.readonly = TRUE) ### plot plot(mod.cld) par(old.par) cml Chronic Myelogenous Leukemia survival data. Description Survival in a randomised trial comparing three treatments for Chronic Myelogeneous Leukemia (simulated data). Usage data("cml") Format A data frame with 507 observations on the following 7 variables. center a factor with 54 levels indicating the study center. treatment a factor with levels trt1, trt2, trt3 indicating the treatment group. sex sex (0 = female, 1 = male) age age in years riskgroup risk group (0 = low, 1 = medium, 2 = high) status censoring status (FALSE = censored, TRUE = dead) time survival or censoring time in days. Details The data are simulated according to structure of the data by the German CML Study Group used in Hehlmann (1994). Source <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>- effler, <NAME>, <NAME> (1994), Randomized comparison of interferon-alpha with busul- fan and hydroxyurea in chronic myelogenous leukemia. The German CML study group. Blood 84(12):4064-4077. Examples if (require("coxme")) { data("cml") ### one-sided simultaneous confidence intervals for many-to-one ### comparisons of treatment effects concerning time of survival ### modeled by a frailty Cox model with adjustment for further ### covariates and center-specific random effect. cml_coxme <- coxme(Surv(time, status) ~ treatment + sex + age + riskgroup + (1|center), data = cml) glht_coxme <- glht(model = cml_coxme, linfct = mcp(treatment = "Dunnett"), alternative = "greater") ci_coxme <- confint(glht_coxme) exp(ci_coxme$confint)[1:2,] } contrMat Contrast Matrices Description Computes contrast matrices for several multiple comparison procedures. Usage contrMat(n, type = c("Dunnett", "Tukey", "Sequen", "AVE", "Changepoint", "Williams", "Marcus", "McDermott", "UmbrellaWilliams", "GrandMean"), base = 1) Arguments n a (possibly named) vector of sample sizes for each group. type type of contrast. base an integer specifying which group is considered the baseline group for Dunnett contrasts. Details Computes the requested matrix of contrasts for comparisons of mean levels. Value The matrix of contrasts with appropriate row names is returned. References <NAME>, <NAME> and <NAME> (2010), Multiple Comparisons Using R, CRC Press, Boca Raton. <NAME>, <NAME> and <NAME> (2001), On the numerical availability of multiple comparison procedures. Biometrical Journal, 43(5), 645–656. Examples n <- c(10,20,30,40) names(n) <- paste("group", 1:4, sep="") contrMat(n) # Dunnett is default contrMat(n, base = 2) # use second level as baseline contrMat(n, type = "Tukey") contrMat(n, type = "Sequen") contrMat(n, type = "AVE") contrMat(n, type = "Changepoint") contrMat(n, type = "Williams") contrMat(n, type = "Marcus") contrMat(n, type = "McDermott") ### Umbrella-protected Williams contrasts, i.e. a sequence of ### Williams-type contrasts with groups of higher order ### stepwise omitted contrMat(n, type = "UmbrellaWilliams") ### comparison of each group with grand mean of all groups contrMat(n, type = "GrandMean") detergent Detergent Durability Data Set Description Detergent durability in an incomplete two-way design. Usage data("detergent") Format This data frame contains the following variables detergent detergent, a factor at levels A, B, C, D, and E. block block, a factor at levels B_1, ..., B_10. plates response variable: number of plates washed before the foam disappears. Details Plates were washed with five detergent varieties, in ten blocks. A complete design would have 50 combinations, here only three detergent varieties in each block were applied in a balanced incom- plete block design. Note that there are six observations taken at each detergent level. Source <NAME> (1959). The Analysis of Variance. New York: John Wiley & Sons, page 189. <NAME>, <NAME>, <NAME>, <NAME>, <NAME> (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc., page 189. Examples ### set up two-way ANOVA without interactions amod <- aov(plates ~ block + detergent, data = detergent) ### set up all-pair comparisons dht <- glht(amod, linfct = mcp(detergent = "Tukey")) ### see Westfall et al. (1999, p. 190) confint(dht) ### see Westfall et al. (1999, p. 192) summary(dht, test = univariate()) ## Not run: summary(dht, test = adjusted("Shaffer")) summary(dht, test = adjusted("Westfall")) ## End(Not run) fattyacid Fatty Acid Content of Bacillus simplex. Description Fatty acid content of different putative ecotypes of Bacillus simplex. Usage data("fattyacid") Format A data frame with 93 observations on the following 2 variables. PE a factor with levels PE3, PE4, PE5, PE6, PE7, PE9 indicating the putative ecotype (PE). FA a numeric vector indicating the content of fatty acid (FA). Details The data give the fatty acid content for different putative ecotypes of Bacillus simplex. Variances of the values of fatty acid are heterogeneous among the putative ecotypes. Source <NAME>, <NAME>, <NAME>, <NAME> (2008), The temperature adaptive fatty acid content in Bacillus simplex strains from ”Evolution Canyon“, Israel. Microbiology 154, 2416- 2426. Examples if (require("sandwich")) { data("fattyacid") ### all-pairwise comparisons of the means of fatty acid content ### FA between different putative ecotypes PE accounting for ### heteroscedasticity by using a heteroscedastic consistent ### covariance estimation amod <- aov(FA ~ PE, data = fattyacid) amod_glht <- glht(amod, mcp(PE = "Tukey"), vcov = vcovHC) summary(amod_glht) ### simultaneous confidence intervals for the differences of ### means of fatty acid content between the putative ecotypes confint(amod_glht) } glht General Linear Hypotheses Description General linear hypotheses and multiple comparisons for parametric models, including generalized linear models, linear mixed effects models, and survival models. Usage ## S3 method for class 'matrix' glht(model, linfct, alternative = c("two.sided", "less", "greater"), rhs = 0, ...) ## S3 method for class 'character' glht(model, linfct, ...) ## S3 method for class 'expression' glht(model, linfct, ...) ## S3 method for class 'mcp' glht(model, linfct, ...) ## S3 method for class 'mlf' glht(model, linfct, ...) mcp(..., interaction_average = FALSE, covariate_average = FALSE) Arguments model a fitted model, for example an object returned by lm, glm, or aov etc. It is assumed that coef and vcov methods are available for model. For multiple comparisons of means, methods model.matrix, model.frame and terms are expected to be available for model as well. linfct a specification of the linear hypotheses to be tested. Linear functions can be specified by either the matrix of coefficients or by symbolic descriptions of one or more linear hypotheses. Multiple comparisons in AN(C)OVA models are specified by objects returned from function mcp. . alternative a character string specifying the alternative hypothesis, must be one of ’"two.sided"’ (default), ’"greater"’ or ’"less"’. You can specify just the initial letter. rhs an optional numeric vector specifying the right hand side of the hypothesis. interaction_average logical indicating if comparisons are averaging over interaction terms. Experi- mental! covariate_average logical indicating if comparisons are averaging over additional covariates. Ex- perimental! ... additional arguments to function modelparm in all glht methods. For func- tion mcp, multiple comparisons are defined by matrices or symbolic descriptions specifying contrasts of factor levels where the arguments correspond to factor names. Details A general linear hypothesis refers to null hypotheses of the form H0 : Kθ = m for some parametric model model with parameter estimates coef(model). The null hypothesis is specified by a linear function Kθ, the direction of the alternative and the right hand side m. Here, alternative equal to "two.sided" refers to a null hypothesis H0 : Kθ = m, whereas "less" corresponds to H0 : Kθ ≥ m and "greater" refers to H0 : Kθ ≤ m. The right hand side vector m can be defined via the rhs argument. The generic method glht dispatches on its second argument (linfct). There are three ways, and thus methods, to specify linear functions to be tested: 1) The matrix of coefficients K can be specified directly via the linfct argument. In this case, the number of columns of this matrix needs to correspond to the number of parameters estimated by model. It is assumed that appropriate coef and vcov methods are available for model (modelparm deals with some exceptions). 2) A symbolic description, either a character or expression vector passed to glht via its linfct argument, can be used to define the null hypothesis. A symbolic description must be interpretable as a valid R expression consisting of both the left and right hand side of a linear hypothesis. Only the names of coef(model) must be used as variable names. The alternative is given by the direction under the null hypothesis (= or == refer to "two.sided", <= means "greater" and >= indicates "less"). Numeric vectors of length one are valid values for the right hand side. 3) Multiple comparisons of means are defined by objects of class mcp as returned by the mcp func- tion. For each factor, which is included in model as independent variable, a contrast matrix or a symbolic description of the contrasts can be specified as arguments to mcp. A symbolic description may be a character or expression where the factor levels are only used as variables names. In addition, the type argument to the contrast generating function contrMat may serve as a symbolic description of contrasts as well. 4) The lsm function in package lsmeans offers a symbolic interface for the definition of least- squares means for factor combinations which is very helpful when more complex contrasts are of special interest. The mcp function must be used with care when defining parameters of interest in two-way ANOVA or ANCOVA models. Here, the definition of treatment differences (such as Tukey’s all-pair compar- isons or Dunnett’s comparison with a control) might be problem specific. Because it is impossible to determine the parameters of interest automatically in this case, mcp in multcomp version 1.0-0 and higher generates comparisons for the main effects only, ignoring covariates and interactions (older versions automatically averaged over interaction terms). A warning is given. We refer to Hsu (1996), Chapter 7, and Searle (1971), Chapter 7.3, for further discussions and examples on this issue. glht extracts the number of degrees of freedom for models of class lm (via modelparm) and the exact multivariate t distribution is evaluated. For all other models, results rely on the normal ap- proximation. Alternatively, the degrees of freedom to be used for the evaluation of multivariate t distributions can be given by the additional df argument to modelparm specified via .... glht methods return a specification of the null hypothesis H0 : Kθ = m. The value of the linear function Kθ can be extracted using the coef method and the corresponding covariance matrix is available from the vcov method. Various simultaneous and univariate tests and confidence intervals are available from summary.glht and confint.glht methods, respectively. A more detailed description of the underlying methodology is available from Hothorn et al. (2008) and Bretz et al. (2010). Value An object of class glht, more specifically a list with elements model a fitted model, used in the call to glht linfct the matrix of linear functions rhs the vector of right hand side values m coef the values of the linear functions vcov the covariance matrix of the values of the linear functions df optionally, the degrees of freedom when the exact t distribution is used for in- ference alternative a character string specifying the alternative hypothesis type optionally, a character string giving the name of the specific procedure with print, summary, confint, coef and vcov methods being available. When called with linfct being an mcp object, an additional element focus is available storing the names of the factors under test. References <NAME>, <NAME> and <NAME> (2010), Multiple Comparisons Using R, CRC Press, Boca Raton. <NAME> (1971), Linear Models. John Wiley & Sons, New York. <NAME> (1996), Multiple Comparisons. Chapman & Hall, London. <NAME>, <NAME> and <NAME> (2008), Simultaneous Inference in General Para- metric Models. Biometrical Journal, 50(3), 346–363; See vignette("generalsiminf", package = "multcomp"). Examples ### multiple linear model, swiss data lmod <- lm(Fertility ~ ., data = swiss) ### test of H_0: all regression coefficients are zero ### (ignore intercept) ### define coefficients of linear function directly K <- diag(length(coef(lmod)))[-1,] rownames(K) <- names(coef(lmod))[-1] K ### set up general linear hypothesis glht(lmod, linfct = K) ### alternatively, use a symbolic description ### instead of a matrix glht(lmod, linfct = c("Agriculture = 0", "Examination = 0", "Education = 0", "Catholic = 0", "Infant.Mortality = 0")) ### multiple comparison procedures ### set up a one-way ANOVA amod <- aov(breaks ~ tension, data = warpbreaks) ### set up all-pair comparisons for factor `tension' ### using a symbolic description (`type' argument ### to `contrMat()') glht(amod, linfct = mcp(tension = "Tukey")) ### alternatively, describe differences symbolically glht(amod, linfct = mcp(tension = c("M - L = 0", "H - L = 0", "H - M = 0"))) ### alternatively, define contrast matrix directly contr <- rbind("M - L" = c(-1, 1, 0), "H - L" = c(-1, 0, 1), "H - M" = c(0, -1, 1)) glht(amod, linfct = mcp(tension = contr)) ### alternatively, define linear function for coef(amod) ### instead of contrasts for `tension' ### (take model contrasts and intercept into account) glht(amod, linfct = cbind(0, contr %*% contr.treatment(3))) ### mix of one- and two-sided alternatives warpbreaks.aov <- aov(breaks ~ wool + tension, data = warpbreaks) ### contrasts for `tension' K <- rbind("L - M" = c( 1, -1, 0), "M - L" = c(-1, 1, 0), "L - H" = c( 1, 0, -1), "M - H" = c( 0, 1, -1)) warpbreaks.mc <- glht(warpbreaks.aov, linfct = mcp(tension = K), alternative = "less") ### correlation of first two tests is -1 cov2cor(vcov(warpbreaks.mc)) ### use smallest of the two one-sided ### p-value as two-sided p-value -> 0.0232 summary(warpbreaks.mc) ### more complex models: Continuous outcome logistic ### regression; parameters are log-odds ratios if (require("tram", quietly = TRUE, warn.conflicts = FALSE)) { confint(glht(Colr(breaks ~ wool + tension, data = warpbreaks), linfct = mcp("tension" = "Tukey"))) } glht-methods Methods for General Linear Hypotheses Description Simultaneous tests and confidence intervals for general linear hypotheses. Usage ## S3 method for class 'glht' summary(object, test = adjusted(), ...) ## S3 method for class 'glht' confint(object, parm, level = 0.95, calpha = adjusted_calpha(), ...) ## S3 method for class 'glht' coef(object, rhs = FALSE, ...) ## S3 method for class 'glht' vcov(object, ...) ## S3 method for class 'confint.glht' plot(x, xlim, xlab, ylim, ...) ## S3 method for class 'glht' plot(x, ...) univariate() adjusted(type = c("single-step", "Shaffer", "Westfall", "free", p.adjust.methods), ...) Ftest() Chisqtest() adjusted_calpha(...) univariate_calpha(...) Arguments object an object of class glht. test a function for computing p values. parm additional parameters, currently ignored. level the confidence level required. calpha either a function computing the critical value or the critical value itself. rhs logical, indicating whether the linear function K θ̂ or the right hand side m (rhs = TRUE) of the linear hypothesis should be returned. type the multiplicity adjustment (adjusted) to be applied. See below and p.adjust. x an object of class glht or confint.glht. xlim the x limits (x1, x2) of the plot. ylim the y limits of the plot. xlab a label for the x axis. ... additional arguments, such as maxpts, abseps or releps to pmvnorm in adjusted or qmvnorm in confint. Note that additional arguments specified to summary, confint, coef and vcov methods are currently ignored. Details The methods for general linear hypotheses as described by objects returned by glht can be used to actually test the global null hypothesis, each of the partial hypotheses and for simultaneous confidence intervals for the linear function Kθ. The coef and vcov methods compute the linear function K θ̂ and its covariance, respectively. The test argument to summary takes a function specifying the type of test to be applied. Classical Chisq (Wald test) or F statistics for testing the global hypothesis H0 are implemented in functions Chisqtest and Ftest. Several approaches to multiplicity adjusted p values for each of the lin- ear hypotheses are implemented in function adjusted. The type argument to adjusted specifies the method to be applied: "single-step" implements adjusted p values based on the joint nor- mal or t distribution of the linear function, and "Shaffer" and "Westfall" implement logically constraint multiplicity adjustments (Shaffer, 1986; Westfall, 1997). "free" implements multiple testing procedures under free combinations (Westfall et al, 1999). In addition, all adjustment meth- ods implemented in p.adjust are available as well. Simultaneous confidence intervals for linear functions can be computed using method confint. Univariate confidence intervals can be computed by specifying calpha = univariate_calpha() to confint. The critical value can directly be specified as a scalar to calpha as well. Note that plot(a) for some object a of class glht is equivalent to plot(confint(a)). All simultaneous inference procedures implemented here control the family-wise error rate (FWER). Multivariate normal and t distributions, the latter one only for models of class lm, are evaluated us- ing the procedures implemented in package mvtnorm. Note that the default procedure is stochastic. Reproducible p-values and confidence intervals require appropriate settings of seeds. A more detailed description of the underlying methodology is available from Hothorn et al. (2008) and Bretz et al. (2010). Value summary computes (adjusted) p values for general linear hypotheses, confint computes (adjusted) confidence intervals. coef returns estimates of the linear function Kθ and vcov its covariance. References <NAME>, <NAME> and <NAME> (2010), Multiple Comparisons Using R, CRC Press, Boca Raton. <NAME> (1986), Modified sequentially rejective multiple test procedures. Journal of the American Statistical Association, 81, 826–831. <NAME> (1997), Multiple testing of general contrasts using logical constraints and correla- tions. Journal of the American Statistical Association, 92, 299–306. <NAME>, <NAME>, <NAME>, <NAME>, <NAME> (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc. <NAME>, <NAME> and <NAME> (2008), Simultaneous Inference in General Para- metric Models. Biometrical Journal, 50(3), 346–363; See vignette("generalsiminf", package = "multcomp"). Examples ### set up a two-way ANOVA amod <- aov(breaks ~ wool + tension, data = warpbreaks) ### set up all-pair comparisons for factor `tension' wht <- glht(amod, linfct = mcp(tension = "Tukey")) ### 95% simultaneous confidence intervals plot(print(confint(wht))) ### the same (for balanced designs only) TukeyHSD(amod, "tension") ### corresponding adjusted p values summary(wht) ### all means for levels of `tension' amod <- aov(breaks ~ tension, data = warpbreaks) glht(amod, linfct = matrix(c(1, 0, 0, 1, 1, 0, 1, 0, 1), byrow = TRUE, ncol = 3)) ### confidence bands for a simple linear model, `cars' data plot(cars, xlab = "Speed (mph)", ylab = "Stopping distance (ft)", las = 1) ### fit linear model and add regression line to plot lmod <- lm(dist ~ speed, data = cars) abline(lmod) ### a grid of speeds speeds <- seq(from = min(cars$speed), to = max(cars$speed), length = 10) ### linear hypotheses: 10 selected points on the regression line != 0 K <- cbind(1, speeds) ### set up linear hypotheses cht <- glht(lmod, linfct = K) ### confidence intervals, i.e., confidence bands, and add them plot cci <- confint(cht) lines(speeds, cci$confint[,"lwr"], col = "blue") lines(speeds, cci$confint[,"upr"], col = "blue") ### simultaneous p values for parameters in a Cox model if (require("survival") && require("MASS")) { data("leuk", package = "MASS") leuk.cox <- coxph(Surv(time) ~ ag + log(wbc), data = leuk) ### set up linear hypotheses lht <- glht(leuk.cox, linfct = diag(length(coef(leuk.cox)))) ### adjusted p values print(summary(lht)) } litter Litter Weights Data Set Description Dose response of litter weights in rats. Usage data("litter") Format This data frame contains the following variables dose dosages at four levels: 0, 5, 50, 500. gesttime gestation time as covariate. number number of animals in litter as covariate. weight response variable: average post-birth weights in the entire litter. Details Pregnant mice were divided into four groups and the compound in four different doses was admin- istered during pregnancy. Their litters were evaluated for birth weights. Source <NAME>, <NAME>, <NAME>, <NAME>, <NAME> (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc., page 109. <NAME> (1997). Multiple Testing of General Contrasts Using Logical Constraints and Corre- lations. Journal of the American Statistical Association, 92(437), 299–306. Examples ### fit ANCOVA model to data amod <- aov(weight ~ dose + gesttime + number, data = litter) ### define matrix of linear hypotheses for `dose' doselev <- as.integer(levels(litter$dose)) K <- rbind(contrMat(table(litter$dose), "Tukey"), otrend = c(-1.5, -0.5, 0.5, 1.5), atrend = doselev - mean(doselev), ltrend = log(1:4) - mean(log(1:4))) ### set up multiple comparison object Kht <- glht(amod, linfct = mcp(dose = K), alternative = "less") ### cf. Westfall (1997, Table 2) summary(Kht, test = univariate()) summary(Kht, test = adjusted("bonferroni")) summary(Kht, test = adjusted("Shaffer")) summary(Kht, test = adjusted("Westfall")) summary(Kht, test = adjusted("single-step")) mmm Simultaneous Inference for Multiple Marginal Models Description Calculation of correlation between test statistics from multiple marginal models using the score decomposition Usage mmm(...) mlf(...) Arguments ... A names argument list containing fitted models (mmm) or definitions of linear functions (mlf). If only one linear function is defined for mlf, it will be applied to all models in mmm by glht.mlf. Details Estimated correlations of the estimated parameters of interest from the multiple marginal models are obtained using a stacked version of the i.i.d. decomposition of parameter estimates by means of score components (first derivatives of the log likelihood). The method is less conservative than the Bonferroni correction. The details are provided by Pipper, Ritz and Bisgaard (2012). The implementation assumes that the model were fitted to the same data, i.e., the rows of the matri- ces returned by estfun belong to the same observations for each model. The reference distribution is always multivariate normal, if you want to use the multivariate t, please specify the corresponding degrees of freedom as an additional df argument to glht. Observations with missing values contribute zero to the score function. Models have to be fitted using na.exclude as na.action argument. Value An object of class mmm or mlf, basically a named list of the arguments with a special method for glht being available for the latter. vcov, estfun, and bread methods are available for objects of class mmm. Author(s) Code for the computation of the joint covariance and sandwich matrices was contributed by Chris- <NAME> and <NAME>. References <NAME>, <NAME> and <NAME> (2012), A Versatile Method for Confir- matory Evaluation of the Effects of a Covariate in Multiple Models, Journal of the Royal Statistical Society, Series C (Applied Statistics), 61, 315–326. Examples ### replicate analysis of Hasler & Hothorn (2011), ### A Dunnett-Type Procedure for Multiple Endpoints, ### The International Journal of Biostatistics: Vol. 7: Iss. 1, Article 3. ### DOI: 10.2202/1557-4679.1258 library("sandwich") ### see ?coagulation if (require("SimComp")) { data("coagulation", package = "SimComp") ### level "S" is the standard, "H" and "B" are novel procedures coagulation$Group <- relevel(coagulation$Group, ref = "S") ### fit marginal models (m1 <- lm(Thromb.count ~ Group, data = coagulation)) (m2 <- lm(ADP ~ Group, data = coagulation)) (m3 <- lm(TRAP ~ Group, data = coagulation)) ### set-up Dunnett comparisons for H - S and B - S ### for all three models g <- glht(mmm(Thromb = m1, ADP = m2, TRAP = m3), mlf(mcp(Group = "Dunnett")), alternative = "greater") ### joint correlation cov2cor(vcov(g)) ### simultaneous p-values adjusted by taking the correlation ### between the score contributions into account summary(g) ### simultaneous confidence intervals confint(g) ### compare with ## Not run: library("SimComp") SimCiDiff(data = coagulation, grp = "Group", resp = c("Thromb.count","ADP","TRAP"), type = "Dunnett", alternative = "greater", covar.equal = TRUE) ## End(Not run) ### use sandwich variance matrix g <- glht(mmm(Thromb = m1, ADP = m2, TRAP = m3), mlf(mcp(Group = "Dunnett")), alternative = "greater", vcov = sandwich) summary(g) confint(g) } ### attitude towards science data data("mn6.9", package = "TH.data") ### one model for each item mn6.9.y1 <- glm(y1 ~ group, family = binomial(), na.action = na.omit, data = mn6.9) mn6.9.y2 <- glm(y2 ~ group, family = binomial(), na.action = na.omit, data = mn6.9) mn6.9.y3 <- glm(y3 ~ group, family = binomial(), na.action = na.omit, data = mn6.9) mn6.9.y4 <- glm(y4 ~ group, family = binomial(), na.action = na.omit, data = mn6.9) ### test all parameters simulaneously summary(glht(mmm(mn6.9.y1, mn6.9.y2, mn6.9.y3, mn6.9.y4), mlf(diag(2)))) ### group differences summary(glht(mmm(mn6.9.y1, mn6.9.y2, mn6.9.y3, mn6.9.y4), mlf("group2 = 0"))) ### alternative analysis of Klingenberg & Satopaa (2013), ### Simultaneous Confidence Intervals for Comparing Margins of ### Multivariate Binary Data, CSDA, 64, 87-98 ### http://dx.doi.org/10.1016/j.csda.2013.02.016 ### see supplementary material for data description ### NOTE: this is not the real data but only a subsample influenza <- structure(list( HEADACHE = c(1L, 0L, 0L, 1L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 0L, 0L, 0L, 1L, 1L), MALAISE = c(0L, 0L, 1L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 0L, 0L, 1L, 1L, 0L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 1L, 0L, 1L, 0L), PYREXIA = c(0L, 0L, 0L, 0L, 0L, 1L, 0L, 1L, 0L, 0L, 1L, 1L, 1L, 1L, 0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L ), ARTHRALGIA = c(0L, 0L, 0L, 0L, 1L, 0L, 1L, 0L, 1L, 1L, 0L, 0L, 1L, 1L, 0L, 1L, 0L, 0L, 1L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L ), group = structure(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = c("pla", "trt"), class = "factor"), Freq = c(32L, 165L, 10L, 23L, 3L, 1L, 4L, 2L, 4L, 2L, 1L, 1L, 1L, 1L, 167L, 1L, 11L, 37L, 7L, 7L, 5L, 3L, 3L, 1L, 2L, 4L, 2L)), .Names = c("HEADACHE", "MALAISE", "PYREXIA", "ARTHRALGIA", "group", "Freq"), row.names = c(1L, 2L, 3L, 5L, 9L, 36L, 43L, 50L, 74L, 83L, 139L, 175L, 183L, 205L, 251L, 254L, 255L, 259L, 279L, 281L, 282L, 286L, 302L, 322L, 323L, 366L, 382L), class = "data.frame") influenza <- influenza[rep(1:nrow(influenza), influenza$Freq), 1:5] ### Fitting marginal logistic regression models (head_logreg <- glm(HEADACHE ~ group, data = influenza, family = binomial())) (mala_logreg <- glm(MALAISE ~ group, data = influenza, family = binomial())) (pyre_logreg <- glm(PYREXIA ~ group, data = influenza, family = binomial())) (arth_logreg <- glm(ARTHRALGIA ~ group, data = influenza, family = binomial())) ### Simultaneous inference for log-odds xy.sim <- glht(mmm(head = head_logreg, mala = mala_logreg, pyre = pyre_logreg, arth = arth_logreg), mlf("grouptrt = 0")) summary(xy.sim) confint(xy.sim) ### Artificial examples ### Combining linear regression and logistic regression set.seed(29) y1 <- rnorm(100) y2 <- factor(y1 + rnorm(100, sd = .1) > 0) x1 <- gl(4, 25) x2 <- runif(100, 0, 10) m1 <- lm(y1 ~ x1 + x2) m2 <- glm(y2 ~ x1 + x2, family = binomial()) ### Note that the same explanatory variables are considered in both models ### but the resulting parameter estimates are on 2 different scales ### (original and log-odds scales) ### Simultaneous inference for the same parameter in the 2 model fits summary(glht(mmm(m1 = m1, m2 = m2), mlf("x12 = 0"))) ### Simultaneous inference for different parameters in the 2 model fits summary(glht(mmm(m1 = m1, m2 = m2), mlf(m1 = "x12 = 0", m2 = "x13 = 0"))) ### Simultaneous inference for different and identical parameters in the 2 ### model fits summary(glht(mmm(m1 = m1, m2 = m2), mlf(m1 = c("x12 = 0", "x13 = 0"), m2 = "x13 = 0"))) ### Examples for binomial data ### Two independent outcomes y1.1 <- rbinom(100, 1, 0.45) y1.2 <- rbinom(100, 1, 0.55) group <- factor(rep(c("A", "B"), 50)) m1 <- glm(y1.1 ~ group, family = binomial) m2 <- glm(y1.2 ~ group, family = binomial) summary(glht(mmm(m1 = m1, m2 = m2), mlf("groupB = 0"))) ### Two perfectly correlated outcomes y2.1 <- rbinom(100, 1, 0.45) y2.2 <- y2.1 group <- factor(rep(c("A", "B"), 50)) m1 <- glm(y2.1 ~ group, family = binomial) m2 <- glm(y2.2 ~ group, family = binomial) summary(glht(mmm(m1 = m1, m2 = m2), mlf("groupB = 0"))) ### use sandwich covariance matrix summary(glht(mmm(m1 = m1, m2 = m2), mlf("groupB = 0"), vcov = sandwich)) modelparm Generic Accessor Function for Model Parameters Description Extract model parameters and their covariance matrix as well as degrees of freedom (if available) from a fitted model. Usage modelparm(model, coef., vcov., df, ...) Arguments model a fitted model, for example an object returned by lm, glm, aov, survreg, fixest, or lmer etc. coef. an accessor function for the model parameters. Alternatively, the vector of co- efficients. vcov. an accessor function for the covariance matrix of the model parameters. Alter- natively, the covariance matrix directly. df an optional specification of the degrees of freedom to be used in subsequent computations. ... additional arguments, currently ignored. Details One can’t expect coef and vcov methods for arbitrary models to return a vector of p fixed effects model parameters (coef) and corresponding p × p covariance matrix (vcov). The coef. and vcov. arguments can be used to define modified coef or vcov methods for a specific model. Methods for lmer, fixest, and survreg objects are available (internally). For objects inheriting from class lm the degrees of freedom are determined from model and the corresponding multivariate t distribution is used by all methods to glht objects. By default, the asymptotic multivariate normal distribution is used in all other cases unless df is specified by the user. Value An object of class modelparm with elements coef model parameters vcov covariance matrix of model parameters df degrees of freedom mtept Multiple Endpoints Data Description Measurements on four endpoints in a two-arm clinical trial. Usage data(mtept) Format A data frame with 111 observations on the following 5 variables. treatment a factor with levels Drug Placebo E1 endpoint 1 E2 endpoint 2 E3 endpoint 3 E4 endpoint 4 Details The data (from Westfall et al., 1999) contain measurements of patients in treatment (Drug) and control (Placebo) groups, with four outcome variables. Source <NAME>, <NAME>, <NAME>, <NAME>, <NAME> (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc. parm Model Parameters Description Directly specify estimated model parameters and their covariance matrix. Usage parm(coef, vcov, df = 0) Arguments coef estimated coefficients. vcov estimated covariance matrix of the coefficients. df an optional specification of the degrees of freedom to be used in subsequent computations. Details When only estimated model parameters and the corresponding covariance matrix is available for simultaneous inference using glht (for example, when only the results but not the original data are available or, even worse, when the model has been fitted outside R), function parm sets up an object glht is able to compute on (mainly by offering coef and vcov methods). Note that the linear function in glht can’t be specified via mcp since the model terms are missing. Value An object of class parm with elements coef model parameters vcov covariance matrix of model parameters df degrees of freedom Examples ## example from ## <NAME>, and Westfall (2002). ## On multiple comparisons in R. R News, 2(3):14-17. beta <- c(V1 = 14.8, V2 = 12.6667, V3 = 7.3333, V4 = 13.1333) Sigma <- 6.7099 * (diag(1 / c(20, 3, 3, 15))) confint(glht(model = parm(beta, Sigma, 37), linfct = c("V2 - V1 >= 0", "V3 - V1 >= 0", "V4 - V1 >= 0")), level = 0.9) plot.cld Plot a cld object Description Plot information of glht, summary.glht or confint.glht objects stored as cld objects together with a compact letter display of all pair-wise comparisons. Usage ## S3 method for class 'cld' plot(x, type = c("response", "lp"), ...) Arguments x An object of class cld. type Should the response or the linear predictor (lp) be plotted. If there are any covari- ates, the lp is automatically used. To use the response variable, set type="response" and covar=FALSE of the cld object. ... Other optional print parameters which are passed to the plotting functions. Details This function plots the information stored in glht, summary.glht or confint.glht objects. Prior to plotting, these objects have to be converted to cld objects (see cld for details). All types of plots include a compact letter display (cld) of all pair-wise comparisons. Equal letters indicate no significant differences. Two levels are significantly different, in case they do not have any letters in common. If the fitted model contains any covariates, a boxplot of the linear predictor is generated with the cld within the upper margin. Otherwise, three different types of plots are used depending on the class of variable y of the cld object. In case of class(y) == "numeric", a boxplot is generated using the response variable, classified according to the levels of the variable used for the Tukey contrast matrix. Is class(y) == "factor", a mosaic plot is generated, and the cld is printed above. In case of class(y) == "Surv", a plot of fitted survival functions is generated where the cld is plotted within the legend. The compact letter display is computed using the algorithm of Piepho (2004). Note: The user has to provide a sufficiently large upper margin which can be used to depict the compact letter display (see examples). References Hans-<NAME> (2004), An Algorithm for a Letter-Based Representation of All-Pairwise Com- parisons, Journal of Computational and Graphical Statistics, 13(2), 456–466. See Also glht cld cld.summary.glht cld.confint.glht cld.glht boxplot mosaicplot plot.survfit Examples ### multiple comparison procedures ### set up a one-way ANOVA data(warpbreaks) amod <- aov(breaks ~ tension, data = warpbreaks) ### specify all pair-wise comparisons among levels of variable "tension" tuk <- glht(amod, linfct = mcp(tension = "Tukey")) ### extract information tuk.cld <- cld(tuk) ### use sufficiently large upper margin old.par <- par(mai=c(1,1,1.25,1), no.readonly=TRUE) ### plot plot(tuk.cld) par(old.par) ### now using covariates amod2 <- aov(breaks ~ tension + wool, data = warpbreaks) tuk2 <- glht(amod2, linfct = mcp(tension = "Tukey")) tuk.cld2 <- cld(tuk2) old.par <- par(mai=c(1,1,1.25,1), no.readonly=TRUE) ### use different colors for boxes plot(tuk.cld2, col=c("green", "red", "blue")) par(old.par) ### get confidence intervals ci.glht <- confint(tuk) ### plot them plot(ci.glht) old.par <- par(mai=c(1,1,1.25,1), no.readonly=TRUE) ### use 'confint.glht' object to plot all pair-wise comparisons plot(cld(ci.glht), col=c("white", "blue", "green")) par(old.par) ### set up all pair-wise comparisons for count data data(Titanic) mod <- glm(Survived ~ Class, data = as.data.frame(Titanic), weights = Freq, family = binomial()) ### specify all pair-wise comparisons among levels of variable "Class" glht.mod <- glht(mod, mcp(Class = "Tukey")) ### extract information mod.cld <- cld(glht.mod) ### use sufficiently large upper margin old.par <- par(mai=c(1,1,1.5,1), no.readonly=TRUE) ### plot plot(mod.cld) par(old.par) ### set up all pair-wise comparisons of a Cox-model if (require("survival") && require("MASS")) { ### construct 4 classes of age Melanoma$Cage <- factor(sapply(Melanoma$age, function(x){ if( x <= 25 ) return(1) if( x > 25 & x <= 50 ) return(2) if( x > 50 & x <= 75 ) return(3) if( x > 75 & x <= 100) return(4) } )) ### fit Cox-model cm <- coxph(Surv(time, status == 1) ~ Cage, data = Melanoma) ### specify all pair-wise comparisons among levels of "Cage" cm.glht <- glht(cm, mcp(Cage = "Tukey")) # extract information & plot old.par <- par(no.readonly=TRUE) ### use mono font family if (dev.interactive()) old.par <- par(family = "mono") plot(cld(cm.glht), col=c("black", "red", "blue", "green")) par(old.par) } if (require("nlme") && require("lme4")) { data("ergoStool", package = "nlme") stool.lmer <- lmer(effort ~ Type + (1 | Subject), data = ergoStool) glme41 <- glht(stool.lmer, mcp(Type = "Tukey")) old.par <- par(mai=c(1,1,1.5,1), no.readonly=TRUE) plot(cld(glme41)) par(old.par) } recovery Recovery Time Data Set Description Recovery time after surgery. Usage data("recovery") Format This data frame contains the following variables blanket blanket type, a factor at four levels: b0, b1, b2, and b3. minutes response variable: recovery time after a surgical procedure. Details A company developed specialized heating blankets designed to help the body heat following a surgical procedure. Four types of blankets were tried on surgical patients with the aim of comparing the recovery time of patients. One of the blanket was a standard blanket that had been in use already in various hospitals. Source <NAME>, <NAME>, <NAME>, <NAME>, <NAME> (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc., page 66. Examples ### set up one-way ANOVA amod <- aov(minutes ~ blanket, data = recovery) ### set up multiple comparisons: one-sided Dunnett contrasts rht <- glht(amod, linfct = mcp(blanket = "Dunnett"), alternative = "less") ### cf. Westfall et al. (1999, p. 80) confint(rht, level = 0.9) ### the same rht <- glht(amod, linfct = mcp(blanket = c("b1 - b0 >= 0", confint(rht, level = 0.9) sbp Systolic Blood Pressure Data Description Systolic blood pressure, age and gender of 69 people. Usage data("sbp") Format A data frame with 69 observations on the following 3 variables. gender a factor with levels male female sbp systolic blood pressure in mmHg age age in years Source <NAME>, <NAME>, <NAME>, <NAME>, A. (1998), Applied Regression Analysis and Other Multivariable Methods, Duxbury Press, North Scituate, MA. trees513 Frankonian Tree Damage Data Description Damages on young trees caused by deer browsing. Usage data("trees513") Format A data frame with 2700 observations on the following 4 variables. damage a factor with levels yes and no indicating whether or not the trees has been damaged by game animals, mostly roe deer. species a factor with levels spruce, fir, pine, softwood (other), beech, oak, ash/maple/elm/lime, and hardwood (other). lattice a factor with levels 1, ..., 53, essentially a number indicating the position of the sampled area. plot a factor with levels x_1, ..., x_5 where x is the lattice. plot is nested within lattice and is a replication for each lattice point. Details In most parts of Germany, the natural or artificial regeneration of forests is difficult due to a high browsing intensity. Young trees suffer from browsing damage, mostly by roe and red deer. In order to estimate the browsing intensity for several tree species, the Bavarian State Ministry of Agriculture and Foresty conducts a survey every three years. Based on the estimated percentage of damaged trees, suggestions for the implementation or modification of deer management plans are made. The survey takes place in all 756 game management districts (‘Hegegemeinschaften’) in Bavaria. The data given here are from the game management district number 513 ‘Unterer Aischgrund’ (located in Frankonia between Erlangen and H\"ochstadt) in 2006. The data of 2700 trees include the species and a binary variable indicating whether or not the tree suffers from damage caused by deer browsing. Source Bayerisches Staatsministerium fuer Landwirtschaft und Forsten (2006), Forstliche Gutachten zur Situation der Waldverjuengung 2006. https://www.stmelf.bayern.de/wald/ <NAME>, <NAME> and <NAME> (2008), Simultaneous Inference in General Para- metric Models. Biometrical Journal, 50(3), 346–363; See vignette("generalsiminf", package = "multcomp"). Examples summary(trees513) waste Industrial Waste Data Set Description Industrial waste output in a manufactoring plant. Usage data("waste") Format This data frame contains the following variables temp temperature, a factor at three levels: low, medium, high. envir environment, a factor at five levels: env1 . . . env5. waste response variable: waste output in a manufacturing plant. Details The data are from an experiment designed to study the effect of temperature (temp) and environment (envir) on waste output in a manufactoring plant. Two replicate measurements were taken at each temperature / environment combination. Source <NAME>, <NAME>, <NAME>, <NAME>, <NAME> (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc., page 177. Examples ### set up two-way ANOVA with interactions amod <- aov(waste ~ temp * envir, data=waste) ### comparisons of main effects only K <- glht(amod, linfct = mcp(temp = "Tukey"))$linfct K glht(amod, K) ### comparisons of means (by averaging interaction effects) low <- grep("low:envi", colnames(K)) med <- grep("medium:envi", colnames(K)) K[1, low] <- 1 / (length(low) + 1) K[2, med] <- 1 / (length(low) + 1) K[3, med] <- 1 / (length(low) + 1) K[3, low] <- - 1 / (length(low) + 1) K confint(glht(amod, K)) ### same as TukeyHSD TukeyHSD(amod, "temp") ### set up linear hypotheses for all-pairs of both factors wht <- glht(amod, linfct = mcp(temp = "Tukey", envir = "Tukey")) ### cf. Westfall et al. (1999, page 181) summary(wht, test = adjusted("Shaffer"))